:root {
    --orange: #e76513;
    --orange-dark: #b84308;
    --ink: #172033;
    --muted: #687386;
    --line: #e5e9f0;
    --paper: #ffffff;
    --bg: #f4f6fa;
    --nav: #111827;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; padding: 28px 20px; background: var(--nav); color: white; display: flex; flex-direction: column; overflow-y: auto; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: -.4px; }
.brand span { color: #ff7a1a; }
.brand.large { color: var(--ink); font-size: 27px; }
.system-name { font-size: 17px; line-height: 1.15; }
.system-name small { color: #bdc6d5; font-size: 11px; font-weight: 600; }
.sidebar nav { display: grid; gap: 8px; margin-top: 40px; }
.sidebar nav a { padding: 12px 14px; color: #dbe2ee; text-decoration: none; border-radius: 9px; }
.sidebar nav a:hover { background: #202b3e; color: white; }
.nav-disabled { padding: 12px 14px; color: #7f8ba0; border-radius: 9px; }
.nav-disabled small { display: block; margin-top: 2px; color: #ff9c58; }
.logout-form { margin-top: auto; }
.logout-form button { width: 100%; border: 1px solid #39455a; color: white; background: transparent; padding: 11px; border-radius: 9px; cursor: pointer; }
.content { width: auto; min-width: 0; margin-left: 240px; padding: clamp(18px, 2.5vw, 32px); min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.topbar h1, .panel h2 { margin: 3px 0 0; }
.eyebrow { margin: 0; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.user-chip { background: white; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; margin-bottom: 22px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; margin-bottom: 24px; }
.module-card { min-height: 158px; padding: 22px; color: var(--ink); background: white; border: 2px solid var(--orange); border-radius: 16px; text-decoration: none; box-shadow: 0 10px 28px rgba(23,32,51,.07); transition: transform .15s ease, box-shadow .15s ease; }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23,32,51,.09); }
.module-card.disabled { border-top-color: #adb5c2; opacity: .67; }
.module-number { color: var(--orange); font-size: 12px; font-weight: 850; letter-spacing: 1.2px; }
.module-card h2 { margin: 18px 0 9px; font-size: 19px; }
.module-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); gap: 22px; }
.notification { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.notification span, .notification small { color: var(--muted); font-size: 12px; }
.stat-card { min-height: 126px; background: linear-gradient(145deg, #fff, #fff7f1); border: 1px solid #f3d8c5; border-radius: 14px; padding: 22px; box-shadow: 0 8px 24px rgba(23,32,51,.05); }
.stat-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 17px; font-size: 32px; }
.stat-card.amber { border-top: 4px solid #e49b0f; }
.stat-card.red { border-top: 4px solid #d83b3b; }
.stat-card.blue { border-top: 4px solid #3478d4; }
.stat-card.purple { border-top: 4px solid #7b53c5; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 2vw, 24px); box-shadow: 0 8px 28px rgba(23,32,51,.045); margin-bottom: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.text-link { color: var(--orange-dark); font-weight: 700; text-decoration: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 12px; color: var(--muted); background: #f8f9fb; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: .5px; }
td { padding: 15px 12px; border-top: 1px solid var(--line); font-size: 14px; }
td small { color: var(--muted); }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.status { display: inline-block; padding: 6px 9px; border-radius: 999px; background: #edf0f4; color: #475267; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status.overdue { background: #fee6e6; color: #a22121; }
.status.due { background: #fff0cb; color: #8a5a00; }
.status.submitted-for-review { background: #e5efff; color: #2459a8; }
.status.returned-for-correction { background: #f0e8ff; color: #6338a7; }
.status.approved, .status.active { background: #ddf7e8; color: #1b7544; }
.status.upcoming { background: #edf0f4; color: #596477; }
.button { display: inline-block; border: 0; border-radius: 8px; padding: 10px 15px; background: #eef1f5; color: var(--ink); font-weight: 750; text-decoration: none; cursor: pointer; }
.button.small { padding: 7px 11px; font-size: 13px; }
.button.primary { background: linear-gradient(135deg, var(--orange), #f1832f); color: white; box-shadow: 0 6px 15px rgba(231,101,19,.23); }
.button.full { width: 100%; margin-top: 8px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.inline-form { display: inline-block; margin-top: 14px; }
.project-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.project-summary div { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.project-summary span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.project-summary strong { font-size: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; }
.details { margin: 22px 0; }
.details div { display: grid; grid-template-columns: 145px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 650; }
.stacked-form label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 750; }
.stacked-form input[type=text], .stacked-form input[type=password], .stacked-form input[type=url], .stacked-form input[type=email], .stacked-form input[type=number], .stacked-form input[type=date], .stacked-form select, .stacked-form textarea { width: 100%; padding: 12px; border: 1px solid #cfd6e2; border-radius: 8px; background: white; font: inherit; }
.stacked-form ul { list-style: none; padding: 0; }
.stacked-form ul label { display: flex; gap: 9px; align-items: center; }
.stacked-form .errorlist { color: #a22121; font-size: 13px; }
.muted { color: var(--muted); }
.message { padding: 13px 16px; margin-bottom: 18px; background: #e3f6ea; border: 1px solid #b5e6c8; border-radius: 9px; }
.message.error { background: #fee6e6; border-color: #f4bebe; }
.review-note { margin-top: 20px; padding: 16px; background: #fff8ed; border-left: 4px solid var(--orange); border-radius: 7px; }
.timeline article { display: flex; gap: 14px; position: relative; padding: 4px 0 20px; }
.timeline-dot { width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
.timeline p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.review-box { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.timesheet-grid { max-width: 100%; }
.timesheet-grid table { min-width: 1300px; }
.timesheet-grid th, .timesheet-grid td { padding: 5px; text-align: center; }
.timesheet-grid .sticky-col { position: sticky; left: 0; z-index: 2; min-width: 150px; text-align: left; background: white; }
.timesheet-grid th.sticky-col { background: #f8f9fb; }
.timesheet-grid .weekend { background: #fff67a; }
.timesheet-grid .inactive-cell { background: #e9edf3; color: #98a2b3; }
.hour-input { width: 48px; padding: 5px 2px; text-align: center; border: 1px solid #cfd6e2; border-radius: 4px; }
.login-page { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(circle at 20% 20%, #fff3e9, transparent 35%), #f3f5f9; }
.login-card { width: min(430px, calc(100% - 32px)); padding: 36px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(23,32,51,.12); }
.login-card h1 { margin-bottom: 8px; }
.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.control-card { display: flex; flex-direction: column; gap: 7px; min-height: 105px; padding: 20px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; text-decoration: none; }
.control-card span { color: var(--muted); font-size: 13px; }
.backup-card { font: inherit; text-align: left; }
.backup-card button { margin-top: auto; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.warning-panel { border-left: 4px solid #d99a19; }
.form-panel { max-width: 850px; }
.form-grid { columns: 2; column-gap: 28px; }
.form-grid p { break-inside: avoid; }
.subform { padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.filter-grid p { margin: 0; }
.health-green { color: #1b7544; }.health-amber { color: #8a5a00; }.health-red { color: #a22121; }

/* Executive management reports and grouped administration workspace. */
.reports-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 42px); margin-bottom: 18px; color: white; background: radial-gradient(circle at 90% 20%, rgba(255,255,255,.15), transparent 30%), linear-gradient(120deg, #172033, #26364d 70%, #55351f); border-radius: 18px; box-shadow: 0 18px 42px rgba(23,32,51,.14); }
.reports-hero h2 { margin: 7px 0 8px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.7px; }
.reports-hero > div:first-child > p:last-child { max-width: 640px; margin: 0; color: #d0d8e5; line-height: 1.6; }
.reports-hero .eyebrow { color: #ffab6f; }
.reports-total { display: grid; gap: 4px; min-width: 145px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.08); text-align: center; }
.reports-total strong { font-size: 32px; line-height: 1; }
.reports-total span { color: #d0d8e5; font-size: 12px; }
.report-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.report-tools p { margin: 0; color: var(--muted); font-size: 13px; }
.report-search { display: flex; align-items: center; gap: 9px; width: min(390px, 100%); padding: 0 12px; border: 1px solid #d8deea; border-radius: 9px; color: #8993a4; }
.report-search > span { font-size: 22px; }
.report-search input { width: 100%; padding: 11px 0; border: 0; outline: 0; color: var(--ink); font: inherit; }
.report-section { margin-bottom: 30px; }
.report-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.report-section-heading h3, .admin-area-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.25px; }
.report-section-heading p, .admin-area-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.report-section-heading > span { padding: 6px 10px; border-radius: 999px; background: #edf0f5; color: #596477; font-size: 11px; font-weight: 750; white-space: nowrap; }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.report-card { position: relative; display: flex; flex-direction: column; min-height: 167px; padding: 18px; overflow: hidden; border: 1px solid #e3e7ee; border-radius: 13px; background: white; color: var(--ink); text-decoration: none; box-shadow: 0 5px 17px rgba(23,32,51,.035); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.report-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #f1832f, #d45512); content: ""; }
.report-card:hover { transform: translateY(-2px); border-color: #edb58e; box-shadow: 0 12px 28px rgba(23,32,51,.09); }
.report-card-mark { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 13px; border-radius: 9px; background: #fff1e7; color: var(--orange-dark); font-size: 16px; font-weight: 800; }
.report-card > strong { padding-right: 24px; font-size: 14px; }
.report-description { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.report-open { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.report-no-results { padding: 30px; border: 1px dashed #cad2df; border-radius: 12px; color: var(--muted); text-align: center; }
.report-card[hidden], .report-section[hidden], .report-no-results[hidden] { display: none; }
.admin-hero-premium { align-items: stretch; padding: clamp(24px, 3vw, 34px); color: white; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.16), transparent 28%), linear-gradient(118deg, #172033 0%, #27364b 68%, #68401f 100%); border: 0; box-shadow: 0 16px 38px rgba(23,32,51,.13); }
.admin-hero-premium .eyebrow { color: #ffab6f; }
.admin-hero-premium h2 { margin-top: 7px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.6px; }
.admin-hero-copy > p:not(.eyebrow) { max-width: 520px; color: #d0d8e5; line-height: 1.55; }
.admin-hero-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.admin-hero-stats span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(255,255,255,.07); color: #e0e6ef; font-size: 12px; }
.admin-hero-stats strong { margin-right: 3px; color: white; }
.admin-generate-form { display: grid; align-content: start; gap: 9px; width: min(300px, 100%); flex: 0 0 290px; padding: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(255,255,255,.09); }
.admin-action-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.16); color: white; font-size: 20px; }
.admin-generate-form > strong { font-size: 14px; }
.admin-generate-form > span:not(.admin-action-icon) { color: #d0d8e5; font-size: 12px; line-height: 1.45; }
.admin-generate-form label { margin-top: 3px; color: #e0e6ef; font-size: 11px; font-weight: 700; }
.admin-generate-form input { width: 100%; padding: 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: white; font: inherit; }
.admin-generate-form .button { margin-top: 3px; }
.admin-attention { padding: 19px 21px; margin: 0 0 26px; border: 1px solid #f1d5a0; border-radius: 14px; background: linear-gradient(110deg, #fffaf0, white 75%); }
.admin-attention-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.admin-attention-heading h2 { margin: 3px 0 0; font-size: 17px; }
.attention-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #fff0c9; color: #986400; font-weight: 900; }
.admin-attention-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-attention-list a { display: grid; grid-template-columns: minmax(100px, .45fr) minmax(0, 1fr) 18px; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid #f0e4cd; border-radius: 9px; background: white; text-decoration: none; font-size: 12px; }
.admin-attention-list a > span:not(.attention-arrow) { color: var(--muted); }
.attention-arrow { color: var(--orange-dark); font-size: 16px; font-weight: 800; }
.admin-clear-state { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin: 0 0 26px; border: 1px solid #cce8d6; border-radius: 12px; background: #f3fbf6; }
.admin-clear-state > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #def4e6; color: #207344; font-weight: 900; }
.admin-clear-state p { display: grid; gap: 3px; margin: 0; font-size: 13px; }
.admin-clear-state small { color: var(--muted); font-size: 11px; }
.admin-area { margin: 0 0 29px; }
.admin-area-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.admin-area-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #f0c5a3; border-radius: 10px; background: #fff3e9; color: var(--orange-dark); font-size: 11px; font-weight: 850; }
.admin-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.admin-link-card { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; grid-template-rows: auto auto; align-items: center; column-gap: 11px; row-gap: 4px; min-height: 80px; padding: 13px 15px; border: 1px solid #e3e7ee; border-radius: 12px; background: white; color: var(--ink); text-align: left; text-decoration: none; box-shadow: 0 4px 14px rgba(23,32,51,.03); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.admin-link-card:hover { transform: translateY(-1px); border-color: #edb58e; box-shadow: 0 9px 22px rgba(23,32,51,.075); }
.admin-link-icon { display: grid; grid-row: 1 / span 2; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff1e7; color: var(--orange-dark); font-size: 17px; font-weight: 800; }
.admin-link-card strong { align-self: end; font-size: 12px; line-height: 1.35; }
.admin-link-card small { align-self: start; color: var(--muted); font-size: 11px; line-height: 1.35; }
.admin-link-arrow { grid-column: 3; grid-row: 1 / span 2; color: #8d97a7; font-size: 16px; }
.admin-link-card.featured { border-color: #e8a879; background: linear-gradient(120deg, #fff7f0, white); }
.admin-link-card.featured .admin-link-icon { background: var(--orange); color: white; }
.admin-backup-card { font: inherit; cursor: default; }
.admin-backup-card .text-link { grid-column: 2 / 4; align-self: end; padding: 2px 0 0; border: 0; background: transparent; text-align: left; font-size: 11px; cursor: pointer; }

.page-actions { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.invoice-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 0 0 16px; padding: 4px; background: #e9edf3; border-radius: 12px; }
.invoice-tabs a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 9px; color: #455166; text-decoration: none; font-weight: 700; font-size: 13px; }
.invoice-tabs a:hover { background: #f8f9fb; }
.invoice-tabs a.is-active { background: white; color: var(--orange-dark); box-shadow: 0 2px 7px rgba(23,32,51,.09); }
.invoice-tabs span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: #f0f2f6; color: #596477; font-size: 11px; }
.invoice-filters { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.invoice-filters label { display: grid; gap: 5px; min-width: min(260px, 100%); color: var(--muted); font-size: 12px; font-weight: 750; }
.invoice-filters select { max-width: 100%; padding: 10px 12px; border: 1px solid #cfd6e2; border-radius: 8px; background: white; font: inherit; }
.invoice-register { min-width: 1120px; }
.invoice-actions { white-space: nowrap; }
.summary-table { min-width: 1120px; }
.idle-warning { position: fixed; right: 22px; bottom: 22px; z-index: 20; padding: 15px; border: 1px solid #edc27d; border-radius: 10px; background: #fff7e7; box-shadow: 0 12px 35px rgba(0,0,0,.18); }
.idle-warning strong { margin-right: 12px; }

/* Per-user navigation choices: Executive Groups, Compact Rail and Warm Executive. */
.module-nav { display: grid; gap: 18px; margin-top: 28px !important; }
.nav-group { display: grid; gap: 4px; }
.nav-group-title { margin: 0 0 3px 12px; color: #8390a4; font-size: 10px; font-weight: 800; letter-spacing: 1.15px; line-height: 1.4; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px !important; border-radius: 9px !important; color: #dbe2ee; text-decoration: none; font-size: 13px; line-height: 1.35; }
.nav-item:hover { background: #202b3e; color: white; }
.nav-item.is-active { background: #26364b; color: #fff; box-shadow: inset 3px 0 #f07824; }
.nav-icon { display: inline-grid; flex: 0 0 20px; place-items: center; width: 20px; height: 20px; color: #aebbd0; font-size: 17px; line-height: 1; }
.nav-item.is-active .nav-icon { color: #ff9a50; }
.nav-disabled { cursor: default; }
.nav-disabled .nav-icon { color: #778398; }
.nav-disabled small { display: block; margin-top: 2px; color: #ff9c58; font-size: 10px; }
.nav-executive .nav-group { padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-executive .nav-preferences { padding-bottom: 0; border-bottom: 0; }

.nav-compact .sidebar { width: 82px; padding: 22px 12px; align-items: center; }
.nav-compact .content { margin-left: 82px; }
.nav-compact .brand-lockup { width: 100%; text-align: center; }
.nav-compact .system-name { font-size: 0; line-height: 1; }
.nav-compact .system-name::before { content: "TI"; display: inline-grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--orange); border-radius: 13px; font-size: 15px; font-weight: 850; letter-spacing: .5px; }
.nav-compact .system-name small { display: none; }
.nav-compact .module-nav { width: 100%; gap: 9px; margin-top: 27px !important; }
.nav-compact .nav-group { gap: 5px; border: 0; padding: 0; }
.nav-compact .nav-group-title, .nav-compact .nav-label { display: none; }
.nav-compact .nav-item { justify-content: center; width: 54px; height: 48px; margin: 0 auto; padding: 0 !important; }
.nav-compact .nav-icon { flex-basis: auto; width: auto; height: auto; font-size: 21px; }
.nav-compact .nav-item.is-active { box-shadow: inset 0 -3px #f07824; }
.nav-compact .logout-form { width: 100%; }
.nav-compact .logout-form button { overflow: hidden; height: 42px; padding: 0; font-size: 0; }
.nav-compact .logout-form button::before { content: "↪"; font-size: 18px; }

.nav-warm .sidebar { inset: 16px auto 16px 16px; width: 258px; padding: 28px 19px; color: #3d3028; background: linear-gradient(165deg, #fff5ea 0%, #fff 70%); border: 1px solid #f0d7c1; border-radius: 20px; box-shadow: 0 16px 45px rgba(79,52,32,.12); }
.nav-warm .content { margin-left: 290px; }
.nav-warm .nav-group-title { color: #967d6b; }
.nav-warm .nav-item { color: #554234; }
.nav-warm .nav-item:hover, .nav-warm .nav-item.is-active { background: #ffe8d6; color: #873b0d; }
.nav-warm .nav-item.is-active { box-shadow: inset 3px 0 #d85e16; }
.nav-warm .nav-icon, .nav-warm .nav-item.is-active .nav-icon { color: #b65b24; }
.nav-warm .system-name small { color: #8a715f; }
.nav-warm .logout-form button { color: var(--ink); border-color: #e8c5ab; }
.status.approved-and-locked { background: #dceafc; color: #194f90; }

@media (max-width: 1000px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-columns { grid-template-columns: 1fr; }
    .project-summary { grid-template-columns: repeat(2, 1fr); }
    .report-grid, .admin-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .sidebar { position: static; width: auto; min-height: auto; }
    .sidebar nav { margin-top: 20px; grid-template-columns: 1fr 1fr; }
    .sidebar nav.module-nav { grid-template-columns: 1fr; }
    .logout-form { margin-top: 16px; }
    .content { margin-left: 0; padding: 20px; }
    .reports-hero, .admin-hero-premium { align-items: stretch; flex-direction: column; }
    .reports-total { width: fit-content; min-width: 120px; }
    .report-tools { align-items: stretch; flex-direction: column; }
    .report-search { width: 100%; }
    .report-grid, .admin-link-grid, .admin-attention-list { grid-template-columns: 1fr; }
    .admin-generate-form { width: 100%; flex-basis: auto; }
    .nav-compact .content, .nav-warm .content { margin-left: 0; }
    .nav-warm .sidebar { position: static; width: auto; margin: 10px; min-height: auto; border-radius: 14px; }
    .nav-compact .sidebar { width: auto; align-items: stretch; }
    .nav-compact .brand-lockup { text-align: left; }
    .nav-compact .system-name { font-size: 17px; }
    .nav-compact .system-name::before { display: none; }
    .nav-compact .system-name small { display: inline; }
    .nav-compact .module-nav { grid-template-columns: 1fr; }
    .nav-compact .nav-group-title, .nav-compact .nav-label { display: inline; }
    .nav-compact .nav-item { justify-content: flex-start; width: auto; height: auto; margin: 0; padding: 9px 10px !important; }
    .nav-compact .nav-icon { flex-basis: 20px; width: 20px; font-size: 17px; }
    .nav-compact .logout-form { width: auto; }
    .nav-compact .logout-form button { height: auto; padding: 11px; font-size: inherit; }
    .nav-compact .logout-form button::before { content: none; }
    .detail-grid, .project-summary, .stat-grid, .filter-grid { grid-template-columns: 1fr; }
    .form-grid { columns: 1; }
    .module-grid { grid-template-columns: 1fr; }
    .control-grid { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; gap: 12px; }
    .page-actions { align-items: flex-start; flex-direction: column; }
    .invoice-filters { align-items: stretch; }
    .invoice-filters label { min-width: 100%; }
}
