@font-face{font-family:Office;src:local("Segoe UI");font-display:swap}
:root{font-family:Office,system-ui,sans-serif;color:#202d37;background:#f5f7f8;--navy:#102943;--navy-deep:#0c2238;--gold:#e4c885;--teal:#176b62;--line:#dfe5e9;--muted:#536573;--red:#9b392e}
*{box-sizing:border-box}body{margin:0;font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.75px;line-height:1.2}h2{font-size:17px;letter-spacing:-.15px}h3{font-size:14px}.muted,small{color:var(--muted)}.muted{line-height:1.5}.pre{white-space:pre-wrap}
.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:26px 15px 18px;display:flex;flex-direction:column;background:var(--navy-deep);color:#e9f0f6}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 30px}.mark{display:grid;place-items:center;width:39px;height:39px;flex:none;border:1px solid #bca16c;border-radius:8px;color:var(--gold);font-family:Georgia,serif;font-size:20px;letter-spacing:-2px;padding-right:2px}.brand b{font-size:16px;display:block;letter-spacing:-.25px}.brand small{font-size:11px;color:#aabbca}.nav{display:grid;gap:5px}.nav a{display:flex;align-items:center;gap:11px;padding:10px;border-radius:6px;color:#c8d6e2;font-weight:600}.nav a:hover{background:#193750;color:#fff}.nav a.active{background:#24425d;color:#fff;border-left:2px solid var(--gold);padding-left:8px}.nav a.active .icon{color:var(--gold)}.icon{width:20px;flex:none;text-align:center;font-family:system-ui;font-size:17px;line-height:1}.userbox{margin-top:auto;border-top:1px solid #34506a;padding:16px 5px 0;display:flex;align-items:center;gap:9px}.userbox small{color:#b4c3d1;display:block}.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#dcc391;color:#102943;font-size:11px;font-weight:800}.logout{margin-left:auto;color:#c8d6e2;background:none;border:0;border-radius:4px;font-size:17px}.topbar{height:64px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:10px}.topbar strong{color:var(--navy)}.crumb{color:var(--muted)}.date{font-size:12px;color:#485c6a;white-space:nowrap}.topbar .topmenu{display:none}
.content{max-width:1550px;margin:auto;padding:27px 30px 36px}.heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:24px}.heading p{margin-top:5px}.actions,.filters,.tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.tabs{gap:4px;margin-bottom:15px;border-bottom:1px solid var(--line)}.tabs a{padding:8px 10px;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);white-space:nowrap}.tabs .active{color:var(--teal);border-color:var(--teal);font-weight:700}.btn{display:inline-flex;gap:6px;align-items:center;justify-content:center;border:1px solid #cbd6dc;border-radius:6px;background:white;padding:7px 11px;min-height:35px;color:#243947;white-space:nowrap;font-weight:650}.btn:hover{border-color:#74938e;background:#f1f7f6}.btn.primary{background:var(--teal);color:white;border-color:var(--teal)}.btn.primary:hover{background:#115a52}.btn.small{min-height:29px;padding:4px 8px;font-size:12px}.link,.btn.link-btn{appearance:none;min-height:auto;padding:0;background:none;border:0;color:var(--teal);text-align:left;font-weight:700}.link:hover,.btn.link-btn:hover{text-decoration:underline}
.card,.stat{border:1px solid var(--line);border-radius:8px;background:white;min-width:0}.card+.card{margin-top:16px}.card-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;gap:10px;border-bottom:1px solid var(--line)}.card-body{padding:16px 17px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:21px}.stat{display:grid;gap:9px;text-align:left;padding:14px 13px}.stat:hover{border-color:#8aaca3}.stat .icon{display:grid;place-items:center;width:29px;height:29px;border-radius:6px;background:#e9f4f1;color:var(--teal)}.stat:nth-child(2) .icon{background:#edf0f7;color:#3b547d}.stat:nth-child(3) .icon{background:#f8eae7;color:var(--red)}.stat:nth-child(4) .icon{background:#f7f0df;color:#765517}.stat b{font-size:24px;color:var(--navy);line-height:1}.stat span:last-child{font-size:12px;font-weight:650;color:#3f5262}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2.6fr) minmax(215px,1fr);gap:16px;align-items:start}.dashboard-grid .card{margin:0}.activity{padding:12px 16px;border-bottom:1px solid #ecf0f2;display:flex;align-items:flex-start;gap:10px}.activity:last-child{border-bottom:0}.activity-icon{display:grid;place-items:center;width:25px;height:25px;background:#e9f4f1;border-radius:50%;color:var(--teal);flex:none;font-weight:800}.activity strong,.activity small{display:block}.activity small{margin-top:3px;line-height:1.45}.section-gap{margin-top:16px}.account-layout{display:grid;grid-template-columns:166px minmax(0,1fr);gap:16px;align-items:start}.account-main{min-width:0}.subnav{padding:6px}.subnav a{padding:8px 9px;display:block;border-radius:5px;font-size:13px;color:#405464}.subnav a.active{background:#e9f4f1;color:#115d55;font-weight:700}.subnav a:hover{background:#f0f5f4}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;white-space:nowrap}th,td{padding:10px 12px;border-bottom:1px solid #e9edf0}th{background:#f8fafb;color:#495c69;font-size:11px;text-transform:uppercase;letter-spacing:.035em;font-weight:750}tr:last-child td{border-bottom:0}tr:hover td{background:#fafcfc}.table-wrap td strong,.table-wrap td small{display:block}.table-wrap td small{margin-top:2px}.num{display:block;text-align:right;font-variant-numeric:tabular-nums}.badge{background:#edf1f4;color:#3e5262;display:inline-block;border-radius:4px;padding:4px 6px;font-size:11px;font-weight:700;line-height:1.1}.badge.good{background:#e6f2eb;color:#245b43}.badge.warn{background:#f8eed9;color:#755214}.badge.bad{background:#f9eae7;color:#8d342a}.badge.progress{background:#e9eff7;color:#3c5276}.badge+.badge{margin-left:5px}.empty{padding:21px 17px;color:var(--muted)}
.filters{padding:11px 13px;border-bottom:1px solid var(--line)}label{display:grid;gap:5px;font-size:12px;color:#334a5b;font-weight:650}input,select,textarea{width:100%;min-width:0;border:1px solid #ccd7dd;border-radius:5px;background:#fff;padding:7px 8px;min-height:34px;color:#1f2f3a}input[type=checkbox]{min-height:auto;width:auto;accent-color:var(--teal);vertical-align:middle}textarea{min-height:73px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--teal)}.filters input,.filters select{width:auto;max-width:100%}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wide{grid-column:1/-1}.form-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px}.inline-box{border:1px solid var(--line);padding:10px;border-radius:6px;background:#f8fafb}.modal-body form>[data-voucher-fields]{margin-top:12px}.modal-body .form-grid+.inline-box{margin-top:12px}.info{margin:10px 0;color:#425967;line-height:1.45}.form-error{color:var(--red);min-height:18px;margin-top:7px;font-size:13px}.details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.detail{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #ecf0f2;overflow-wrap:anywhere}.detail small{display:block;margin-bottom:2px}.entry-row,.check-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:6px;align-items:end;margin-bottom:7px}.entry-row.fee-row,.check-row{grid-template-columns:2fr 1fr auto}.entry-row.opening{grid-template-columns:1.4fr .8fr .8fr 1.15fr 1.1fr 1.1fr auto}.inline-check{align-self:center}.check-list{display:grid;gap:6px;margin-top:8px}.repeat{margin-top:11px;border:1px solid var(--line);border-radius:5px;padding:8px}.repeat summary{font-weight:700;color:#334a5b;cursor:pointer}.repeat [data-repeat]{margin-top:7px}.repeat-row{padding:8px;border:1px solid var(--line);margin-bottom:7px;border-radius:5px}.pager{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;border-top:1px solid var(--line);gap:8px}.filter-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
dialog{border:1px solid var(--line);border-radius:9px;padding:0;width:min(760px,calc(100vw - 24px));max-height:calc(100vh - 35px);color:#202d37;box-shadow:0 14px 52px #10294333}dialog::backdrop{background:#0d283f77}.modal-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 17px;position:sticky;top:0;background:white;z-index:1}.modal-body{padding:17px}.modal-body>.card{margin-top:10px}.modal-head button{background:none;border:0;font-size:21px;color:#496070}.signin{display:grid;place-items:center;min-height:100vh;padding:16px}.signin .card{width:min(380px,100%);padding:26px;display:grid;gap:13px}.signin .brand{padding:0 0 13px}.signin .brand small{color:var(--muted)}.signin .mark{background:var(--navy)}.signin form{display:grid;gap:11px}.demo{background:#fbf3e2;color:#634913;border:1px solid #e7d4a9;border-radius:5px;padding:8px 9px;font-size:12px;line-height:1.5}.flash{position:fixed;bottom:16px;right:16px;max-width:min(450px,calc(100vw - 32px));padding:10px 13px;background:#163e3a;color:white;border-radius:6px;z-index:10}.flash.error{background:#84372f}.secret{overflow-wrap:anywhere;font-family:monospace;user-select:all}
@media(max-width:1140px){.shell{grid-template-columns:184px minmax(0,1fr)}.content,.topbar{padding-left:18px;padding-right:18px}.account-layout{grid-template-columns:143px minmax(0,1fr)}.dashboard-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:730px){.shell{display:block}.sidebar{height:auto;position:static;padding:9px 11px}.brand{padding:0 4px 9px}.mark{width:32px;height:32px;font-size:16px}.nav{display:flex;overflow:auto;gap:4px}.nav a{white-space:nowrap;padding:7px;font-size:12px;gap:5px}.nav a.active{padding-left:5px}.nav .icon{width:15px;font-size:13px}.sidebar .userbox{display:none}.topbar{height:45px;padding:0 12px}.topbar .topmenu{display:inline-flex}.content{padding:17px 12px 25px}.heading{align-items:flex-start;margin-bottom:16px}.heading p{font-size:12px}h1{font-size:24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:13px}.stat{padding:9px}.account-layout{display:block}.subnav{display:flex;overflow:auto;margin-bottom:10px}.subnav a{white-space:nowrap}.details{grid-template-columns:1fr}.entry-row.opening{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid{gap:8px}.heading .actions{justify-content:flex-end}.topbar .date{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Tally-style statements and customer documents */
.financial-statement { padding: 0 20px 18px; }
.statement-title { padding: 20px 12px; text-align: center; border-bottom: 1px solid var(--border, #dce4e8); }
.statement-title h2 { margin: 6px 0; font-size: 20px; }
.statement-title p { margin: 5px 0; color: #536573; }
.financial-sides { display: grid; grid-template-columns: 1fr 1fr; }
.financial-side { min-width: 0; display: flex; flex-direction: column; }
.financial-side + .financial-side { border-left: 1px solid #ccd8df; }
.financial-columns, .financial-line, .financial-group summary { display: flex; justify-content: space-between; gap: 16px; padding: 13px 15px; }
.financial-columns { background: #f0f5f4; border-top: 1px solid #ccd8df; border-bottom: 1px solid #ccd8df; }
.financial-body { flex: 1; min-height: 200px; }
.financial-group { border-bottom: 1px solid #edf0f2; }
.financial-group summary { cursor: pointer; font-weight: 600; }
.financial-group summary > span:first-child::before { content: '+ '; color: #176b62; }
.financial-group[open] summary > span:first-child::before { content: '- '; }
.financial-line.detail { padding-left: 28px; font-size: 12px; }
.financial-line.detail small { display: block; color: #657582; }
.financial-line.result { margin-top: 12px; color: #176b62; }
.financial-total { border-top: 2px solid #899da9; border-bottom: 3px double #899da9; font-weight: 700; }
.customer-document { padding: 0 20px 20px; }
.customer-document p { overflow-wrap: anywhere; }
.customer-document small { display: block; color: #62717b; font-size: 11px; margin-top: 4px; }
.statement-balances { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px 0; }
.document-actions { padding: 16px; }
.sample-mark { color: #925921 !important; font-weight: 700; }
.fee-row { grid-template-columns: minmax(130px, 1fr) minmax(160px, 1.4fr) minmax(100px, .7fr) auto; }
.print-document { background: white; margin: 24px; color: #102943; }
.print-document .customer-document { max-width: 1100px; margin: 0 auto; }
@media (max-width: 700px) {
  .financial-statement { padding: 0 7px 12px; }
  .financial-sides { grid-template-columns: 1fr; }
  .financial-side + .financial-side { border-left: 0; margin-top: 20px; }
  .financial-body { min-height: 0; }
  .financial-line, .financial-group summary, .financial-columns { padding: 12px 9px; }
  .customer-document { padding: 0 10px 15px; }
  .fee-row { grid-template-columns: 1fr; }
}
@media print {
  .print-document { margin: 0; font-size: 10pt; }
  .print-document .table-wrap { overflow: visible; }
  .print-document table { width: 100%; min-width: 0; font-size: 9pt; }
  .print-document th, .print-document td { white-space: normal; overflow-wrap: anywhere; padding: 7px; }
  .print-document thead { display: table-header-group; }
  .print-document tr { break-inside: avoid; }
  .print-document button { border: 0; background: none; padding: 0; color: inherit; }
  .print-document .statement-title { break-after: avoid; }
}

.invoice-fee-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr) 85px auto; }
.invoice-sheet { max-width: 860px; margin: 0 auto; padding: 14px 18px 24px; background: #fff; color: #102b41; overflow-wrap: anywhere; }
.invoice-sheet h2, .invoice-sheet h3, .invoice-sheet h4 { color: #102b41; margin: 0 0 9px; }
.invoice-sheet h3 { font-size: 15px; }.invoice-sheet h4 { font-size: 13px; }
.invoice-sheet p { margin: 4px 0; }
.invoice-heading, .invoice-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: 22px; }
.invoice-heading { align-items: start; border-bottom: 1px solid #c5ac78; padding-bottom: 18px; margin-bottom: 18px; }
.invoice-heading > div:last-child { text-align: right; }
.invoice-heading h2 { font-size: clamp(19px, 3vw, 28px); line-height: 1.18; margin-top: 12px; }
.invoice-logo { display: block; width: min(100%, 270px); height: auto; }
.invoice-issuer-name { font-size: 22px; font-weight: 700; }
.invoice-contact { margin-top: 10px; color: #3d5264; white-space: pre-line; }
.invoice-contact b { color: #102b41; }
.invoice-billing { margin-bottom: 18px; }
.invoice-billing strong { font-size: 16px; }
.invoice-sheet dl { margin: 0; }
.invoice-sheet dl div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.invoice-sheet dd, .invoice-sheet dt { margin: 0; }
.invoice-sheet dd { text-align: right; }
.invoice-meta { border-radius: 6px; align-self: start; padding: 9px 11px; background: #f4f7f9; }
.invoice-meta dd { font-weight: 700; }
.invoice-items th { background: #102b41; color: #fff; font-size: 11px; font-weight: 700; white-space: normal; }
.invoice-items td { white-space: normal; }
.invoice-items th:first-child, .invoice-items td:first-child { text-align: center; width: 42px; }
.invoice-items th:last-child, .invoice-items td:last-child { text-align: right; white-space: nowrap; }
.invoice-summary { margin: 18px 0; }
.invoice-summary dl div:nth-child(2), .invoice-summary dl div:last-child { font-weight: 700; }
.invoice-summary dl div:last-child { background: #f4f7f9; margin-top: 5px; padding: 8px; border-radius: 4px; }
.invoice-summary .invoice-subnote { color: #3d5264; font-size: 12px; margin-top: 8px; }
.invoice-summary section:last-child .invoice-subnote { text-align: right; }
.invoice-notice { color: #8c362f; font-weight: 700; margin-bottom: 12px !important; }
.invoice-footer { border-top: 1px solid #dce4e9; padding-top: 16px; }
.invoice-payment { display: flex; flex-wrap: wrap; gap: 10px; align-items: start; }
.invoice-payment > div:first-child { flex: 1 1 150px; min-width: 0; }
.invoice-payment dl { margin-bottom: 10px; }
.invoice-payment dt { font-weight: 700; }
.invoice-payment dl div { align-items: start; }
.invoice-payment figure { margin: 0; text-align: center; }
.invoice-qr { display: block; width: 76px; height: auto; }
.invoice-payment figcaption { font-size: 11px; }
.invoice-qr-placeholder { padding: 14px 8px; min-width: 76px; text-align: center; background: #f4f7f9; border-radius: 4px; font-weight: 700; }
.invoice-qr-placeholder small { font-weight: 400; }
.invoice-multiline { white-space: pre-line; }
.invoice-signatory { margin-top: 29px; text-align: right; }
.invoice-signatory p { margin: 19px 0 0 auto; padding-top: 5px; border-top: 1px solid #dce4e9; max-width: 150px; }
.invoice-thanks { margin-top: 17px; border-top: 1px solid #c5ac78; padding-top: 12px; font-weight: 700; }
@media (max-width: 700px) {
  .invoice-fee-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .invoice-sheet { padding: 10px 5px 16px; }
  .invoice-heading, .invoice-columns { gap: 12px; }
}
@media (max-width: 490px) {
  .invoice-heading, .invoice-columns { grid-template-columns: 1fr; }
  .invoice-heading > div:last-child { text-align: left; }
}
@media print {
  .print-document .invoice-sheet { max-width: none; padding: 0; }
  .print-document .invoice-heading, .print-document .invoice-columns { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); }
  .print-document .invoice-heading > div:last-child { text-align: right; }
  .print-document .invoice-items th { print-color-adjust: exact; }
  .print-document .invoice-billing, .print-document .invoice-summary, .print-document .invoice-footer { break-inside: avoid; }
}

/* Fin Ease Associates workspace styling */
:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #182b3d;
  background: #f0f3f6;
  --navy: #102943;
  --navy-deep: #0c2238;
  --gold: #c5ac78;
  --paper: #fff;
  --soft: #f4f7fa;
  --line: #dbe3eb;
  --muted: #4b6276;
  --panel-shadow: 0 2px 5px #10294309;
}
body { line-height: 1.45; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 720; letter-spacing: -.035em; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 15px; }
h1, h2, h3 { color: var(--navy); }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid #236895;
  outline-offset: 3px;
}
.sidebar :where(a, button):focus-visible { outline-color: #e4c78e; }
.shell { grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { padding: 22px 15px 16px; }
.brand { display: block; padding: 0; }
.brand img { display: block; width: 100%; height: auto; }
.sidebar .brand {
  display: block;
  flex: none;
  padding: 12px 11px;
  margin: 0 0 22px;
  background: var(--paper);
  border-radius: 9px;
  box-shadow: inset 0 -2px var(--gold);
}
.sidebar .nav { gap: 4px; }
.sidebar .nav a {
  border-left: 3px solid transparent;
  min-height: 42px;
  padding: 7px 9px;
  gap: 9px;
  border-radius: 7px;
  color: #dce7ef;
}
.sidebar .nav a:hover { background: #1a3550; color: #fff; }
.sidebar .nav a.active { border-left-color: var(--gold); background: #233f5b; color: #fff; }
.sidebar .nav .icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  background: #ffffff10;
  font-size: 14px;
}
.sidebar .nav a.active .icon { background: #ffffff18; color: #f3d49a; }
.userbox { padding: 14px 5px 4px; }
.logout { min-width: 33px; min-height: 33px; }
.logout:hover { background: #ffffff12; }
.topbar { height: 61px; box-shadow: var(--panel-shadow); }
.topbar strong { font-size: 17px; }
.topbar .date {
  background: var(--soft);
  padding: 5px 9px;
  border-radius: 5px;
  color: #435a6c;
  font-variant-numeric: tabular-nums;
}
.content { max-width: 1480px; padding-top: 28px; }
.heading p { margin-top: 5px; }
.content[data-page="dashboard"] > .heading {
  min-height: 111px;
  align-items: center;
  background: #e7eef5;
  border: 1px solid #d7e2ec;
  border-left: 4px solid var(--gold);
  border-radius: 11px;
  padding: 19px 22px;
  margin-bottom: 20px;
}
.content[data-page="dashboard"] > .heading p { color: #3b566d; }
.stats { gap: 13px; margin-bottom: 20px; }
.stat { padding: 15px 16px; gap: 8px; }
.stat b { font-size: 29px; font-variant-numeric: tabular-nums; }
.stat span:last-child { font-size: 13px; color: #344e63; }
.stat:hover { border-color: #8ba4ba; }
.card, .stat { border-radius: 11px; box-shadow: var(--panel-shadow); }
.card-head { padding: 14px 17px; }
.card-head { border-radius: 11px 11px 0 0; }
.btn { min-height: 36px; border-color: #c8d5e1; border-radius: 7px; color: #18344d; font-weight: 650; }
.btn:hover { background: #edf3f8; border-color: #91aac0; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: #214663; border-color: #214663; }
.btn.small { min-height: 30px; }
.link, .btn.link-btn { color: #184e72; }
.tabs .active { color: #153f5f; border-color: #153f5f; }
.subnav { padding: 7px; }
.subnav a.active { background: #e8eff6; color: #133a5a; }
.subnav a:hover { background: #f0f4f8; }
.table-wrap th { background: #eaf0f5; color: #263f55; font-size: 11.5px; font-weight: 700; }
.table-wrap td { border-bottom-color: #e5ebf1; }
.table-wrap tr:hover td { background: #f6f9fb; }
.table-wrap td:last-child { font-variant-numeric: tabular-nums; }
label { color: #29475f; }
input, select, textarea { border-color: #c6d5e1; border-radius: 7px; min-height: 36px; color: #173147; }
input:focus, select:focus, textarea:focus { border-color: #2d6b96; }
input[type=checkbox] { min-height: auto; accent-color: var(--navy); }
.filters { background: #f9fbfd; }
.inline-box { background: #f6f9fb; }
dialog { border-radius: 12px; box-shadow: 0 12px 36px #10294335; }
dialog::backdrop { background: #0c223870; }
.modal-head { border-top: 3px solid var(--gold); }
.modal-head button { min-width: 32px; min-height: 32px; border-radius: 5px; }
.modal-head button:hover { background: #edf3f8; }
.signin .card { width: min(430px, 100%); padding: 28px; border-top: 4px solid var(--gold); box-shadow: 0 7px 24px #10294314; }
.signin .brand { padding: 0 0 13px; }
.signin .brand img { width: min(100%, 257px); }
.signin h1 { font-size: 26px; }
.signin form { gap: 13px; }
.signin form .btn { min-height: 40px; }
.statement-logo { display: block; width: min(100%, 225px); height: auto; margin: 0 auto 12px; }
.invoice-items .table-wrap th { background: var(--navy); color: #fff; text-transform: none; }
.invoice-items .table-wrap table { width: 100%; table-layout: fixed; }
.invoice-items .table-wrap td { overflow-wrap: anywhere; }
.invoice-items .table-wrap th:first-child, .invoice-items .table-wrap td:first-child { width: 56px; white-space: nowrap; padding: 10px 5px; }
.invoice-items .table-wrap th:nth-child(3) { width: 24%; }
.invoice-items .table-wrap th:last-child { width: 109px; }
.invoice-meta dd { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 731px) and (max-width: 1140px) {
  .shell { grid-template-columns: 195px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand { padding-inline: 9px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .sidebar { padding: 11px 12px; }
  .sidebar .brand { width: 176px; padding: 7px 9px; margin-bottom: 10px; border-radius: 7px; }
  .sidebar .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .sidebar .nav a { padding: 4px 5px; min-height: 34px; gap: 5px; }
  .sidebar .nav .icon { width: 20px; height: 20px; font-size: 12px; }
  .topbar { height: 49px; }
  .topbar strong { font-size: 15px; }
  .topbar .date { padding: 3px 6px; font-size: 10.5px; }
  .content { padding-top: 15px; }
  .content[data-page="dashboard"] > .heading { min-height: 0; padding: 14px 12px; gap: 8px; margin-bottom: 12px; }
  .content[data-page="dashboard"] > .heading h1 { font-size: 23px; }
  .content[data-page="dashboard"] > .heading .btn { padding-inline: 7px; font-size: 12px; }
  .stats { gap: 8px; margin-bottom: 13px; }
  .stat { padding: 10px 11px; }
  .stat b { font-size: 24px; }
  .stat span:last-child { font-size: 12px; }
  .card-head { padding: 12px; }
  .invoice-items .table-wrap th:first-child, .invoice-items .table-wrap td:first-child { width: 44px; }
  .invoice-items .table-wrap th:last-child { width: 86px; }
  .invoice-items .table-wrap th, .invoice-items .table-wrap td { padding-inline: 6px; }
}
@media print {
  .print-document .invoice-items .table-wrap th { print-color-adjust: exact; }
  .print-document .invoice-items .table-wrap th:last-child { width: 94px; }
}

/* Phone layout */
.mobile-date, .mobile-more, .mobile-list, .mobile-account-nav { display: none; }

@media screen and (max-width: 730px) {
  :root { --mobile-tabs-height: 65px; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 10px;
    padding: calc(9px + env(safe-area-inset-top, 0px)) max(15px, env(safe-area-inset-right, 0px)) 9px max(15px, env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--panel-shadow);
  }
  .sidebar .brand {
    width: min(177px, 55vw);
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .mobile-date {
    display: block;
    color: #4b6276;
    font-size: 12px;
    white-space: nowrap;
  }
  .topbar { display: none; }
  .sidebar .nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    min-height: calc(var(--mobile-tabs-height) + env(safe-area-inset-bottom, 0px));
    padding: 5px max(6px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 17px #10294312;
    overflow: visible;
  }
  .sidebar .nav a, .sidebar .nav .mobile-more {
    display: grid;
    grid-template-rows: 25px 14px;
    place-content: center;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 49px;
    padding: 2px;
    border: 0;
    border-radius: 10px;
    text-align: center;
    color: #415d72;
    background: transparent;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.12;
  }
  .sidebar .nav a.nav-secondary { display: none; }
  .sidebar .nav .icon {
    width: 31px;
    height: 25px;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font-size: 17px;
    line-height: 1;
  }
  .sidebar .nav a:hover, .sidebar .nav .mobile-more:hover { background: #f1f5f9; color: #102943; }
  .sidebar .nav a.active, .sidebar .nav .mobile-more.active { background: #e8eff6; color: #102943; }
  .sidebar .nav a.active .icon, .sidebar .nav .mobile-more.active .icon { background: #d9e5f0; color: #102943; }
  .sidebar :where(a, button):focus-visible { outline-color: #236895; }
  .mobile-menu-list { display: grid; gap: 8px; }
  .mobile-menu-list .btn { justify-content: flex-start; min-height: 46px; padding-left: 14px; }
  .mobile-menu-list .btn:last-child { color: var(--red); }

  .content {
    padding: 15px max(13px, env(safe-area-inset-right, 0px)) calc(var(--mobile-tabs-height) + 18px + env(safe-area-inset-bottom, 0px)) max(13px, env(safe-area-inset-left, 0px));
  }
  .content > .heading { align-items: center; gap: 12px; }
  .content > .heading h1 { font-size: 25px; }
  .content > .heading p { font-size: 13px; }
  .content > .heading > .actions { justify-content: flex-end; }
  .content .heading .btn, .content .card-head .btn { min-height: 40px; }
  .content[data-page="dashboard"] > .heading {
    min-height: 107px;
    align-items: flex-start;
    padding: 15px;
    border: 0;
    border-radius: 15px;
    background: #102943;
  }
  .content[data-page="dashboard"] > .heading h1 { color: #fff; font-size: 25px; }
  .content[data-page="dashboard"] > .heading p { color: #d8e6f1; margin-bottom: 0; }
  .content[data-page="dashboard"] > .heading .btn {
    background: #e4c98f;
    border-color: #e4c98f;
    color: #182b3d;
    padding-inline: 11px;
  }
  .stats { gap: 9px; margin-bottom: 14px; }
  .stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "value icon" "label label";
    align-items: center;
    min-height: 81px;
    padding: 11px 12px;
    gap: 6px;
    border-radius: 13px;
  }
  .stat .icon { grid-area: icon; width: 27px; height: 27px; }
  .stat b { grid-area: value; font-size: 26px; }
  .stat span:last-child { grid-area: label; font-size: 12.5px; }
  .dashboard-grid { gap: 13px; }
  .card { border-radius: 13px; }
  .card-head { border-radius: 13px 13px 0 0; }
  .card-head h2 { font-size: 17px; }
  .activity { padding: 13px 12px; }
  .activity button { min-height: 28px; }
  .desktop-list { display: none; }
  .mobile-list { display: block; padding: 0; margin: 0; list-style: none; }
  .mobile-list li + li { border-top: 1px solid #e7edf2; }
  .mobile-item {
    display: grid;
    width: 100%;
    gap: 4px;
    padding: 11px 13px;
    background: transparent;
    border: 0;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .mobile-item:hover { background: #f4f8fb; }
  .mobile-item:focus-visible { outline-offset: -3px; }
  .mobile-item-title { color: #123b59; font-size: 14px; font-weight: 700; }
  .mobile-item-context, .mobile-item-meta { color: #486075; font-size: 12px; }
  .mobile-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin-top: 2px; }
  .mobile-item-status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
  .mobile-item-status .badge + .badge { margin-left: 0; }

  .account-layout .subnav, .desktop-account-tools { display: none; }
  .mobile-account-nav { display: block; margin-bottom: 12px; }
  .mobile-account-nav label { font-weight: 700; }
  .mobile-account-nav select { margin-top: 2px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 3px; }
  .tabs a, .tabs button { min-height: 42px; padding-inline: 9px; }
  .filter-form { width: 100%; gap: 8px; }
  .filter-form label { flex: 1 1 125px; min-width: 0; }
  .filter-form input, .filter-form select { width: 100%; }
  input:not([type=checkbox]), select, textarea { min-height: 44px; font-size: 16px; }
  .form-grid { gap: 11px; }
  .filters .btn, .form-actions .btn { min-height: 42px; }
  .form-actions { gap: 8px; }
  .form-actions .btn.primary { min-width: 110px; }
  .table-wrap { overscroll-behavior-inline: contain; }
  .financial-statement .statement-title { padding: 13px 8px; }
  .financial-statement .financial-columns, .financial-line, .financial-group summary { padding-block: 12px; }
  .financial-line.detail { padding-inline-start: 18px; }
  .signin { padding: calc(15px + env(safe-area-inset-top, 0px)) 14px calc(15px + env(safe-area-inset-bottom, 0px)); }
  .signin .card { padding: 22px; }
  .signin form .btn { min-height: 46px; }
  dialog {
    inset: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 15px);
    max-height: calc(100dvh - 15px);
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 19px 19px 0 0;
    overscroll-behavior: contain;
  }
  dialog .modal-head { padding: 9px 13px; }
  dialog .modal-head button { width: 43px; height: 43px; }
  dialog .modal-body { padding: 13px; }
  .document-actions { padding: 3px 0 14px; }
  .document-actions .btn { min-height: 41px; }
  .flash { bottom: calc(var(--mobile-tabs-height) + 10px + env(safe-area-inset-bottom, 0px)); }
}

@media screen and (max-width: 374px) {
  .sidebar .nav a, .sidebar .nav .mobile-more { font-size: 10.5px; }
  .content[data-page="dashboard"] > .heading h1 { font-size: 22px; }
  .content[data-page="dashboard"] > .heading .btn { padding-inline: 8px; }
  .mobile-item { padding-inline: 10px; }
}


