:root { color-scheme: light; --navy: #152b43; --teal: #087f78; --ink: #20334a; --muted: #6d7e91; --border: #e1e8ef; --line: var(--border); --background: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 14px/1.5 "Segoe UI", Arial, sans-serif; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; background: var(--navy); color: #fff; padding: 30px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar > * { flex-shrink: 0; }
.brand { display: flex; gap: 12px; align-items: center; color: #fff; font-size: 23px; font-weight: 700; letter-spacing: -.5px; }
.brand:hover { text-decoration: none; }
.brand-icon { background: #1b9d95; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.brand small { color: #acbdcf; font-size: 11px; font-weight: 400; letter-spacing: .3px; }
small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.nav-label { font-size: 10px; color: #8da5bd; letter-spacing: 1.8px; margin: 42px 14px 14px; }
nav a { display: block; padding: 12px 15px; margin: 4px 0; border-radius: 8px; color: #c4d1df; font-weight: 500; }
nav a:hover { background: #203c56; text-decoration: none; }
nav a.active { background: #254b5b; color: #fff; box-shadow: inset 3px 0 #3cc0ac; }
.sidebar-note { margin-top: auto; padding: 25px 8px 4px; color: #d1deea; font-size: 12px; border-top: 1px solid #2a4058; }
.sidebar-note small { font-size: 11px; color: #8da5bd; margin-left: 14px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3cc0ac; margin-right: 5px; }
.logout { margin-top: 20px; }
.workspace { margin-left: 240px; }
.topbar { display: flex; justify-content: space-between; padding: 20px 36px; background: #fff; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.content { padding: 30px 36px; max-width: 1600px; margin: auto; }
.page-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-heading { margin-bottom: 24px; }
.eyebrow { color: var(--teal); font-size: 10px; letter-spacing: 1.6px; font-weight: 700; }
h1 { font-size: 30px; letter-spacing: -.7px; margin: 5px 0; font-weight: 650; }
h2 { font-size: 18px; letter-spacing: -.3px; margin: 0 0 18px; font-weight: 650; }
h3 { font-size: 14px; margin: 0 0 7px; }
p { margin: 8px 0 18px; color: var(--muted); }
.page-heading p { margin: 0; }
.pill { display: inline-block; padding: 7px 11px; background: #e6f3ef; color: #167164; border: 1px solid #cce9df; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 22px; box-shadow: 0 3px 12px #17344e03; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--border); padding: 22px; border-radius: 12px; }
.stat > span { color: var(--muted); font-size: 12px; }
.stat > strong { display: block; font-size: 29px; margin: 8px 0 5px; letter-spacing: -.7px; overflow-wrap: anywhere; }
.stat:first-child > strong { color: var(--teal); }
.stat small { font-size: 11px; }
.workflow { display: flex; gap: 25px; align-items: center; justify-content: space-between; background: linear-gradient(110deg, #fff, #f2fbf8); }
.workflow h2 { margin: 5px 0; }
.workflow p { margin-bottom: 0; font-size: 12px; }
.workflow-steps { display: flex; align-items: center; gap: 18px; }
.workflow-steps a { color: var(--ink); white-space: nowrap; font-size: 12px; }
.workflow-steps b { display: block; margin-bottom: 8px; color: var(--teal); font-size: 17px; }
.workflow-steps > span { color: #9dafbe; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { background: #f7f9fc; color: #728397; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; text-align: left; white-space: nowrap; }
td, th { padding: 13px 12px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
td { font-size: 12px; }
td strong { font-weight: 600; }
td small { font-size: 11px; }
tfoot td { font-weight: 700; background: #f7f9fc; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; background: #e6f4ef; color: #247462; border-radius: 5px; padding: 4px 9px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.badge.neutral { background: #edf0f5; color: #6d7890; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.note { border: 1px solid #d9e6ee; background: #edf5f8; padding: 18px 22px; border-radius: 9px; font-size: 12px; color: #4c687a; margin: 12px 0 22px; }
.note p { color: #4c687a; margin: 0; }
.split { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }
label { display: block; font-size: 12px; font-weight: 600; color: #4f6379; margin-bottom: 18px; }
input, select, textarea { width: 100%; display: block; background: #fff; border: 1px solid #d6e0ea; border-radius: 6px; padding: 10px 12px; color: var(--ink); margin-top: 7px; min-height: 40px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid #087f7822; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.entry-table { margin: 0 0 15px; }
.entry-table select { min-width: 220px; }
.entry-table input { min-width: 105px; }
.entry-table input, .entry-table select { margin: 0; }
.entry-table td:first-child { width: 48%; }
.entry-table td { padding: 12px 6px; }
.button { display: inline-block; background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: 6px; padding: 10px 16px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; text-align: center; }
.button:hover { background: #076c65; text-decoration: none; }
.button.secondary { background: #fff; border-color: #d6e0ea; color: #4f6379; }
.button.secondary:hover { background: #f1f6fa; }
.button.subtle { color: #a45353; border-color: transparent; background: transparent; padding: 7px; font-weight: 400; }
.button.subtle:hover { background: #fff0f0; }
[data-add] { margin-bottom: 22px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.hint { color: var(--muted); font-size: 12px; }
.alert { padding: 14px 18px; margin: 0 0 20px; border-radius: 8px; border: 1px solid; }
.alert.success { color: #216951; background: #e9f8ee; border-color: #c6e6d3; }
.alert.error { color: #a13838; background: #fff0f0; border-color: #f0caca; }
.local-notice { font-size: 11px; color: var(--muted); margin: -8px 0 20px; }
.document-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: #f7f9fc; padding: 18px; border-radius: 7px; margin-bottom: 20px; }
.document-meta span { font-size: 11px; color: var(--muted); }
.document-meta strong { display: block; color: var(--ink); font-size: 14px; margin-top: 5px; }
.document-links { padding: 0; list-style: none; }
.document-links li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.inline-form { display: flex; gap: 8px; }
.inline-form select { margin: 0; }
.report-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.report-filters label { margin: 0; }
.filter-actions { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.export-buttons { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.report-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
footer { font-size: 10px; color: #8998a8; padding: 12px 0; text-align: center; }
pre { padding: 16px; background: #f2f5fa; border-radius: 6px; overflow: auto; }
.login { display: grid; min-height: 100vh; place-items: center; padding: 20px; }
.login .panel { width: min(100%, 420px); }
.brand-logo { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; flex-shrink: 0; }
.brand { font-size: 19px; }
.signed-user { padding: 16px 12px 0; color: #dbe7ef; font-size: 12px; }
.signed-user small { display: block; margin-top: 5px; color: #94a7be; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 24px; font-size: 11px; }
.app-footer strong { color: #577082; }
.compact-form { display: inline-block; margin: 0 0 0 6px; }
.permission-matrix th:not(:first-child), .permission-matrix td:not(:first-child) { text-align: center; }
.permission-matrix input[type="checkbox"] { width: 19px; height: 19px; accent-color: #087e87; cursor: pointer; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 36px 24px; background: radial-gradient(ellipse at top right, #d9eded, transparent 65%), #eef3f8; }
.login-shell { display: grid; grid-template-columns: 1.05fr 1fr; width: min(100%, 1020px); overflow: hidden; border-radius: 24px; box-shadow: 0 24px 75px #13233c24; background: #fff; }
.login-story { padding: 50px 44px; background: linear-gradient(145deg,#16283e,#123e4b); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.login-logo { width: 142px; height: 94px; object-fit: contain; border-radius: 12px; background: #fff; padding: 8px; margin-bottom: 44px; }
.login-story .eyebrow { color: #80d4d0; letter-spacing: 1.6px; font-size: 10px; }
.login-story h1 { margin: 15px 0; color: #fff; font-size: 36px; }
.login-story p { color: #dce7ee; line-height: 1.6; font-size: 22px; }
.login-features { display: flex; gap: 9px; flex-wrap: wrap; margin: 18px 0 40px; }
.login-features span { background: #ffffff12; border: 1px solid #ffffff24; padding: 8px 11px; border-radius: 7px; font-size: 11px; }
.login-story > small { color: #9db7c5; font-size: 11px; }
.login-card { padding: 55px 48px 28px; align-self: center; }
.login-card h2 { font-size: 28px; margin: 12px 0; }
.login-card > p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.login-card form { margin-top: 24px; }
.login-submit { width: 100%; margin-top: 10px; padding: 14px; }
.login-card footer { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; font-size: 11px; }
.dashboard-hero { background: linear-gradient(112deg,#172b43,#11616a); border-radius: 16px; color: #fff; padding: 28px 32px; display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; box-shadow: 0 8px 24px #16344a15; }
.dashboard-hero .eyebrow { color: #85d5d1; font-size: 10px; letter-spacing: 1.8px; }
.dashboard-hero h2 { font-size: 26px; color: #fff; margin: 10px 0; }
.dashboard-hero p { font-size: 13px; color: #d1e6eb; }
.hero-meta { display: block; color: #a5c9d1; font-size: 11px; margin-top: 20px; }
.hero-mark { display: flex; align-items: center; }
.hero-mark img { width: 132px; height: 90px; background: #fff; object-fit: contain; border-radius: 12px; padding: 9px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { display: block; padding: 22px; border-radius: 13px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 15px #203e5610; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #203e561b; text-decoration: none; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.kpi-icon { display: grid; place-items: center; width: 38px; height: 38px; font-size: 10px; border-radius: 10px; background: #e6f5f2; color: #147b73; }
.blue .kpi-icon { color: #4167ab; background: #eaf0fc; }
.amber .kpi-icon { color: #a86b12; background: #fff3db; }
.rose .kpi-icon { color: #b64e63; background: #fcecf0; }
.kpi-card > strong { display: block; font-size: 25px; margin: 17px 0 7px; font-weight: 700; letter-spacing: -.6px; overflow-wrap: anywhere; }
.kpi-card > small { color: var(--muted); font-size: 10px; display: block; line-height: 1.6; }
.kpi-link { display: block; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 15px; color: #147b73; font-size: 11px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,1fr); gap: 22px; align-items: start; }
.dashboard-columns > .panel:only-child { grid-column: 1/-1; }
.chart-legend { display: flex; justify-content: end; gap: 18px; font-size: 11px; color: var(--muted); margin: 12px 0; }
.chart-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.receipt-legend::before, .receipt-bar { background: #1ca39a; fill: #1ca39a; }
.issue-legend::before, .issue-bar { background: #6e8cce; fill: #6e8cce; }
.flow-chart { width: 100%; height: auto; }
.chart-axis { stroke: #c8d6df; }
.chart-grid { stroke: #e9eff4; stroke-dasharray: 4 5; }
.flow-chart text { font-size: 12px; fill: #71839b; }
.monthly-values th, .monthly-values td { font-size: 10px; padding: 5px 8px; }
.quick-links a { display: grid; grid-template-columns: 1fr 20px; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.quick-links a span { font-size: 12px; font-weight: 600; }
.quick-links a small { grid-column: 1; color: var(--muted); font-size: 10px; }
.quick-links a b { grid-column: 2; grid-row: 1/3; align-self: center; color: #147b73; }
.health-heading { margin-top: 26px; }
.health-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.health-row strong { color: var(--ink); }
.document-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.document-back { margin-bottom: 18px; }
.user-edit-tab { display: block; padding: 9px 18px; border-radius: 6px; font-size: 12px; font-weight: 650; background: #fff; color: var(--teal); box-shadow: 0 2px 5px #20334a12; white-space: nowrap; }
.document-tabs { display: flex; gap: 5px; background: #e8eef4; padding: 4px; border-radius: 9px; }
.document-tabs a { color: var(--muted); font-size: 12px; padding: 9px 18px; margin: 0; border-radius: 6px; white-space: nowrap; }
.document-tabs a.selected { background: #fff; color: var(--teal); box-shadow: 0 2px 5px #20334a12; font-weight: 650; }
.document-tabs a:hover { background: #fff; color: var(--teal); }
@media (max-width: 550px) { .document-toolbar { flex-wrap: wrap; gap: 10px; } .document-tabs { overflow-x: auto; max-width: 100%; } .document-tabs a { padding: 8px 14px; } }
.sidebar { padding: 22px 14px 16px; overflow: hidden; }
.sidebar > .brand { padding: 0 5px 20px; border-bottom: 1px solid #ffffff14; gap: 10px; font-size: 17px; }
.sidebar .brand-logo { width: 42px; height: 42px; }
.sidebar .brand small { font-size: 10px; }
.sidebar > .sidebar-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 14px -6px 12px 0; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #49647b transparent; }
.sidebar-nav::-webkit-scrollbar { width: 4px; height: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #49647b; border-radius: 4px; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-group-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; padding: 9px 12px; color: #88a3bc; font-size: 9px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; cursor: pointer; list-style: none; border-radius: 7px; }
.nav-group-label::-webkit-details-marker { display: none; }
.nav-group-label::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); flex-shrink: 0; transition: transform .15s; }
.nav-group details[open] > .nav-group-label::after { transform: rotate(45deg); }
.nav-group-label:hover { color: #d1deea; background: #ffffff08; }
.nav-group-label:focus-visible { outline: 2px solid #42c7b5; outline-offset: -2px; }
.nav-group details:not([open]) > .nav-group-links { display: none; }
.sidebar-nav .nav-link { display: flex; align-items: center; gap: 11px; min-height: 37px; margin: 2px 0; padding: 8px 12px; font-size: 12px; font-weight: 500; line-height: 1.45; border-radius: 7px; transition: background .15s, color .15s; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: #8eaac2; }
.nav-link:hover .nav-icon, .nav-link.active .nav-icon { color: #6ee0ce; }
.sidebar-nav .nav-link.active { background: #234757; box-shadow: inset 3px 0 #42c7b5; }
.sidebar-account { border-top: 1px solid #ffffff14; padding: 12px 6px 0; }
.sidebar-account .signed-user { padding: 0; font-size: 11px; }
.sidebar-account .signed-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account .signed-user small { margin-top: 2px; font-size: 10px; }
.sidebar-account .logout { margin-top: 10px; }
.sidebar-account .logout .button { width: 100%; padding: 7px 12px; font-size: 11px; background: #ffffff08; border-color: #ffffff24; color: #d1deea; }
.sidebar-account .logout .button:hover { background: #ffffff14; }
@media (max-width: 1000px) { .dashboard-columns { grid-template-columns: 1fr; } .login-story { padding: 36px 28px; } .login-card { padding: 36px 28px; } }
@media (max-width: 650px) { .login-page { padding: 16px; } .login-shell { grid-template-columns: 1fr; } .login-story { padding: 24px; } .login-logo { width: 110px; height: 70px; margin-bottom: 20px; } .login-story h1 { font-size: 28px; } .login-story p, .login-features, .login-story > small { display: none; } .dashboard-hero { padding: 24px; } .hero-mark { display: none; } .dashboard-hero h2 { font-size: 23px; } .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .kpi-card { padding: 16px 12px; } .kpi-card > strong { font-size: 21px; } .kpi-top { font-size: 10px; } .kpi-icon { width: 30px; height: 30px; font-size: 9px; flex-shrink: 0; } .app-footer { flex-direction: column; } }
@media (max-width: 1200px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workflow { display: block; } .workflow-steps { margin-top: 20px; } .split { grid-template-columns: 280px minmax(0, 1fr); } .content { padding: 24px; } }
@media (max-width: 850px) { .sidebar { position: static; width: 100%; padding: 18px; } .brand { font-size: 20px; } .nav-label, .sidebar-note { display: none; } nav { display: flex; gap: 4px; overflow-x: auto; margin-top: 15px; } nav a { white-space: nowrap; font-size: 12px; padding: 9px 12px; } .workspace { margin: 0; } .topbar { padding: 16px 20px; } .split { grid-template-columns: 1fr; gap: 0; } .logout { margin: 8px 0 0; } }
@media (max-width: 850px) {
    .sidebar > .brand { padding-bottom: 14px; }
    .sidebar > .sidebar-nav { flex: none; display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; margin: 14px 0 0; padding: 0 0 8px; }
    .nav-group, .nav-group + .nav-group { margin: 0; flex-shrink: 0; }
    .nav-group-label { margin: 0 0 7px; padding: 9px 10px; font-size: 9px; }
    .nav-group-links { display: flex; gap: 3px; }
    .sidebar-nav .nav-link { padding: 8px 10px; gap: 7px; }
    .sidebar-account { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 10px; padding-top: 10px; }
    .sidebar-account .logout { margin: 0; }
    .sidebar-account .signed-user { min-width: 0; }
}
@media (max-width: 550px) { .content { padding: 18px 12px; } .page-heading { align-items: start; } .page-heading > .pill { display: none; } h1 { font-size: 26px; } .panel { padding: 18px 14px; } .stats { gap: 10px; } .stat { padding: 16px; } .stat > strong { font-size: 24px; } .form-grid, .document-meta { grid-template-columns: 1fr; gap: 0; } .document-meta { gap: 14px; } .workflow-steps { gap: 10px; } .workflow-steps a { white-space: normal; } .form-footer, .section-heading { align-items: start; flex-wrap: wrap; } .inline-form { width: 100%; } .inline-form select { min-width: 0; } }
@media print { body { background: #fff; } .sidebar, .topbar, .page-heading, .local-notice, .alert, .no-print, button, footer { display: none; } .workspace { margin: 0; } .content { padding: 0; max-width: none; } .panel { box-shadow: none; border: none; padding: 10px; } .table-scroll { overflow: visible; } th, td { padding: 9px 6px; } a { color: #20334a; } }
