@font-face {
  font-family: Vazirmatn;
  src: url('/assets/vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #193647;
  --muted: #687e8b;
  --line: #e5eaee;
  --green: #217d70;
  --red: #ad585b;
}

body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.85;
  background: #f5f7f9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; }
button { border-radius: 11px; font-weight: 500; }
input, select, textarea { font-size: 13px; }
button:focus-visible, a:focus-visible {
  outline: 2px solid #ad8541;
  outline-offset: 3px;
}
button.primary { background: #23465a; border-color: #23465a; }
button.primary:hover { background: #2d566d; }
.page-head h1 { font-weight: 750; font-size: 26px; letter-spacing: -.6px; }
.eyebrow { font-weight: 500; font-size: 11px; letter-spacing: 0; }
.subtext { font-size: 12px; }
.topbar strong { font-weight: 650; }
.date { font-size: 11px; }
.connection { color: #36756b; background: #f6fbf9; border-color: #dceae4; }
.connection.offline { background: #fcf8ee; border-color: #ecdfc2; }
.panel, .stat, .bank-card {
  border-color: #e4eaee;
  box-shadow: 0 3px 14px #1b3a4c04;
  border-radius: 17px;
}
.panel-head { background: #fdfefe; }
.panel-head h2 { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.panel-head h2::before {
  content: '';
  width: 4px;
  height: 15px;
  background: #c3a164;
  border-radius: 4px;
  flex-shrink: 0;
}
.stat { border-top: 3px solid #d6e4ec; }
.stat:nth-child(2) { border-top-color: #cee6df; }
.stat:nth-child(3) { border-top-color: #ecd9d9; }
.stat:nth-child(4) { border-top-color: #eaddc2; }
.stat-icon { color: #42758e; background: #edf4f8; border-radius: 11px; }
.stat:nth-child(2) .stat-icon { color: #247c69; background: #eaf6f0; }
.stat:nth-child(3) .stat-icon { color: #ad6265; background: #fbefee; }
.stat:nth-child(4) .stat-icon { color: #9c793b; background: #faf3e6; }
.stat .number { font-weight: 750; font-size: 29px; letter-spacing: -.5px; }
.stat-top { font-size: 12px; }
.stat-foot { font-size: 11px; }
.dashboard-entry button[data-action=debtor-new] {
  color: #287766; background: #edf7f2; border-color: #d6e9df;
}
.dashboard-entry button[data-action=creditor-new] {
  color: #936c32; background: #fbf5e9; border-color: #eadfc7;
}
.dashboard-entry .icon { width: 18px; height: 18px; }
.hint { line-height: 1.95; }
.empty strong { font-weight: 650; }
.empty svg { color: #86a4b4; }
.badge { font-size: 11px; font-weight: 500; }
.plan-symbol { border-radius: 12px; background: #f8f0e1; }
.step-num { background: #fcf8ee; border-color: #eadfc8; font-weight: 600; }
.bank-card h2, .modal-head h2 { font-weight: 650; }
.modal-head { background: #fcfdfd; }
th { font-size: 11px; }
td, td strong { font-size: 13px; }
.field label { font-weight: 500; }
.field small { line-height: 1.9; }
.nav-label-mobile { display: none; }
.nav button { font-size: 13px; font-weight: 450; }
.nav button.active { color: #efd299; }
.nav button.active .icon { stroke-width: 2; }

@media (max-width: 700px) {
  body { font-size: 13px; }
  .main { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 23px; }
  .date { font-size: 10px; }
  .subtext { font-size: 12px; }
  .stat .number { font-size: 23px; }
  .stat-top { font-size: 11px; }
  .stat-foot { font-size: 10px; }
  .stat-icon { width: 28px; height: 28px; }
  .sidebar {
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e1e8ed;
    box-shadow: 0 -5px 22px #19364709;
    color: var(--ink);
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    width: 100%;
  }
  .nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 58px;
    padding: 7px 1px;
    margin: 0;
    text-align: center;
    color: #6a7e8b;
    border-radius: 12px;
    box-shadow: none;
  }
  .nav button .icon { display: block; width: 21px; height: 21px; margin: 0; }
  .nav-label-desktop { display: none; }
  .nav-label-mobile {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 10px;
    line-height: 1.55;
    white-space: nowrap;
    text-align: center;
    font-weight: 500;
  }
  .nav button.active { background: #f7f1e5; color: #89672c; box-shadow: none; }
  .nav button:hover { background: #f3f6f8; }
  .nav button.active:hover { background: #f7f1e5; }
  .nav .desktop-only { display: none; }
  .update-notice { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .footer { font-size: 9px; }
  .panel-head h2 { font-size: 14px; }
}

@media print {
  body { font-family: Vazirmatn, Tahoma, sans-serif; background: white; }
  .panel, .stat, .bank-card { box-shadow: none; }
}

@media(max-width:700px){.panel-head:has(.tabs){flex-direction:column;align-items:stretch;gap:12px}.panel-head:has(.tabs) h2{white-space:nowrap}.panel-head .tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible;width:100%}.panel-head .tabs button{min-width:0;white-space:normal;line-height:1.7;padding:7px 5px;font-size:10px}}

.dashboard-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:22px}.dashboard-panels>.panel{margin:0}.dashboard-wide{grid-column:1/-1}.widget-actions{display:flex;align-items:center;gap:5px}.widget-actions .icon{width:15px;height:15px}.widget-choices{display:grid;gap:13px;padding:10px 0 24px}.widget-choices .check{padding:10px 12px;background:#f5f8fa;border:1px solid var(--line);border-radius:10px;margin:0}.proposal-actions,.tx-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.payment-flow{display:flex;flex-wrap:wrap;gap:10px;color:#607b8b;margin-bottom:16px;font-size:12px}.payment-flow span{padding:7px 12px;background:#edf3f6;border-radius:9px}.payment-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.payment-filters button{font-size:12px;padding:7px 13px}@media(max-width:700px){.dashboard-panels{grid-template-columns:1fr;gap:18px}.dashboard-wide{grid-column:auto}.widget-actions{gap:2px}.widget-actions button{padding:4px}.widget-actions .icon{width:14px;height:14px}.payment-flow{font-size:10px;gap:5px}.payment-flow span{padding:5px 7px}.proposal-actions{width:100%}.proposal-actions button{flex:1}.payment-filters{gap:5px}.payment-filters button{font-size:11px;padding:6px 10px}}

.audit-changes{margin-top:12px;border:1px solid var(--line);border-radius:10px}.audit-changes table{white-space:normal}.audit-changes td{vertical-align:top;overflow-wrap:anywhere;font-size:12px}.audit-changes th{font-size:11px}.step .actions{margin-top:8px}.step button{font-size:11px}.step p{font-size:12px;line-height:1.9}

.person-state{font-size:11px;color:#647c8a;margin:-5px 0 16px;line-height:1.9}.person-state.is-new{color:#2c7a67}.person-state.is-new::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#5a9a82;margin-left:6px;vertical-align:middle}.person-state[hidden],.entry-balance[hidden]{display:none}.entry-balance{font-size:11px;color:#637988;margin:-5px 0 17px;line-height:1.9}

.widget-order{margin-right:auto;min-width:25px;text-align:center}.dashboard-summary .stats{margin-bottom:0}.dashboard-quick .dashboard-entry{margin-bottom:0}.maintenance-ack{margin:18px 0;line-height:1.9}.audit-toolbar{align-items:flex-start}.audit-toolbar>.date-control{min-width:150px}.audit-toolbar .date-panel{z-index:5}.audit-toolbar .count{width:100%;margin:0}@media(max-width:700px){.audit-toolbar input[type=search]{flex-basis:100%}.audit-toolbar>.date-control{min-width:120px}.widget-choices .check{font-size:12px}}
.audit-badges{display:flex;align-items:center;gap:8px;margin-bottom:7px}.audit-category{font-size:11px;color:var(--muted,#647b88)}.audit-level.high{color:#955014;background:#fff1dc}.audit-level.normal{color:#386a7c;background:#edf4f7}.audit-level.low{color:#697984;background:#f0f3f5}.audit-high{border-inline-start:3px solid #d8a45d}.audit-low{background:#fafbfc}.audit-priority-note{padding:12px 20px;font-size:12px;color:#607b8b;border-bottom:1px solid var(--line)}.audit-toolbar select{max-width:100%}
.settlement-steps{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px;color:#4b6a7c;font-size:12px}.settlement-steps span{background:#edf4f7;padding:9px 14px;border-radius:10px}.settlement-intro{padding:0 20px;color:#607b8b;font-size:13px}.settlement-toolbar{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;align-items:center}.settlement-toolbar p{font-size:13px;line-height:1.9;max-width:650px;color:#607b8b;margin:0}.settlement-summary{padding:18px 22px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;background:#f3f8fa;font-size:13px}.settlement-summary>span{color:#607b8b}.settlement-row{padding:20px 22px;border-bottom:1px solid var(--line)}.settlement-row-head,.settlement-row-foot{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.settlement-row-head .check{margin:0;font-size:12px}.settlement-row-foot{margin-top:16px}.settlement-row-foot>span{font-size:12px;color:#607b8b;max-width:60%}.settlement-row.is-excluded{background:#f6f7f8}.settlement-row.is-excluded .money-route{opacity:.55}.money-route{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.65fr) minmax(0,1fr);align-items:center;gap:15px;margin:18px 0;direction:rtl}.route-node{padding:16px;border:1px solid #dbe6ec;border-radius:14px;background:#fbfdfe;min-width:0;display:flex;flex-direction:column;gap:7px}.route-source{border-top:3px solid #6d9fa6}.route-target{border-top:3px solid #d5ad68}.route-label{font-size:11px;color:#607b8b}.route-node strong{font-size:15px;overflow-wrap:anywhere}.route-node small,.route-transfer small{font-size:11px;color:#607b8b}.route-number{font-size:12px;overflow-wrap:anywhere;direction:ltr;text-align:right}.route-transfer{text-align:center;min-width:0}.route-transfer>strong{font-size:14px;color:#254e63}.route-track{height:24px;position:relative;margin:5px 10px;direction:ltr}.route-track:before{content:'';position:absolute;left:0;right:0;top:12px;border-top:2px dashed #91b5bd}.route-arrow{position:absolute;left:-6px;top:-1px;font-size:26px;line-height:24px;color:#347d89;background:white}.route-pulse{position:absolute;top:9px;right:0;width:8px;height:8px;border-radius:50%;background:#3d8995;animation:money-travel 2.6s ease-in-out infinite}.route-preview{padding:0 22px;border-top:1px solid var(--line)}.settlement-home-action{padding:10px 22px 22px}.settlement-submit{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:22px;background:#edf5f7}.settlement-submit small{display:block;font-size:12px;color:#607b8b;margin-top:7px}.settlement-gaps{padding:18px 22px;color:#7b6547;background:#fffaf1;font-size:13px}.settlement-gaps h3{font-size:14px}.settlement-confirm-row{border-bottom:1px solid var(--line);padding-bottom:12px}.settlement-confirm-row .route-transfer>strong{font-size:12px}.settlement-confirm-row .route-node{padding:10px}.settlement-confirm-row .route-node strong{font-size:12px}@keyframes money-travel{0%{right:0;opacity:0}15%{opacity:1}85%{opacity:1}100%{right:95%;opacity:0}}@media(prefers-reduced-motion:reduce){.route-pulse{animation:none;right:45%}}@media(max-width:700px){.money-route{grid-template-columns:1fr;gap:0}.route-transfer{padding:10px 0;display:flex;flex-direction:column;align-items:center}.route-track{height:32px;width:24px;margin:5px 0}.route-track:before{left:12px;top:0;bottom:0;right:auto;border-top:0;border-left:2px dashed #91b5bd}.route-arrow{transform:rotate(-90deg);left:0;top:13px;background:transparent}.route-pulse{top:0;right:8px;animation:money-travel-down 2.6s ease-in-out infinite}.route-node{padding:13px}.settlement-toolbar{align-items:stretch;flex-direction:column;padding:16px}.settlement-row{padding:16px}.settlement-row-foot>span{max-width:100%}.settlement-row-foot .actions{width:100%}.settlement-row-foot .actions button{flex:1}.settlement-submit>button{width:100%}.route-preview{padding:0 16px}.settlement-confirm-row .money-route{grid-template-columns:1fr}.settlement-steps{gap:6px;font-size:10px}.settlement-steps span{padding:7px 9px}}@keyframes money-travel-down{0%{top:0;opacity:0}15%{opacity:1}85%{opacity:1}100%{top:90%;opacity:0}}@media(prefers-reduced-motion:reduce){.route-pulse{animation:none}}
.settlement-modes{flex-wrap:wrap;justify-content:flex-start}.settlement-mode-help{margin:0;padding:14px 22px;color:#466879;background:#f4f8fa;font-size:12px;line-height:1.9}.settlement-modes button{white-space:normal;line-height:1.7}@media(max-width:700px){.settlement-modes{width:100%;display:grid;grid-template-columns:1fr 1fr}.settlement-modes button{font-size:11px;padding:8px}.settlement-mode-help{padding:12px 16px}}
.settlement-coverage{padding:18px 22px;background:#fafcfd;border-bottom:1px solid var(--line)}.settlement-coverage h3{margin:0 0 8px;font-size:14px}.settlement-coverage>p{font-size:12px;color:#607b8b;margin:0 0 15px}.coverage-card{padding:15px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-top:10px}.coverage-card>strong{font-size:13px}.coverage-values{display:flex;gap:22px;flex-wrap:wrap;margin-top:13px}.coverage-values>span{font-size:11px;color:#607b8b}.coverage-values strong{display:block;font-size:13px;color:#264b60;margin-top:5px}.coverage-values .negative strong{color:#ad563c}.coverage-values .positive strong{color:#2c7b68}@media(max-width:700px){.settlement-coverage{padding:16px}.coverage-values{display:grid;grid-template-columns:1fr 1fr;gap:14px}.coverage-card>.badge{margin-top:6px}}
.settlement-simple>.panel-head{align-items:center}.settlement-simple>.panel-head h2{font-size:17px}.settlement-simple>.panel-head p{margin:7px 0 0;font-size:12px}.settlement-options{padding:14px 22px;border-bottom:1px solid var(--line);font-size:12px;color:#607b8b}.settlement-options>summary{cursor:pointer}.settlement-options .settlement-modes{margin:14px 0}.settlement-group{padding:24px;border-bottom:1px solid var(--line)}.settlement-group-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.settlement-group-head h3{font-size:15px;margin:0}.settlement-group-head>div{display:flex;gap:8px;align-items:center;font-size:12px}.settlement-network{position:relative;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:90px;align-items:center;direction:rtl}.network-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}.network-wire{fill:none;stroke:#80adb4;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.network-wire-muted{stroke:#cdd5d9;stroke-dasharray:4 5}.network-motion{fill:#3a8491}.network-payers{display:flex;flex-direction:column;gap:14px;min-width:0;z-index:1}.network-payer{position:relative;border:1px solid #d8e6ea;border-inline-start:3px solid #79a9ae;border-radius:12px;background:#fff;padding:14px;min-height:98px;box-sizing:border-box}.network-payer.is-excluded{background:#f5f6f7;border-color:#dce1e4;opacity:.7}.network-payer-top{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.network-payer-top .check{margin:0;font-size:13px;max-width:100%;line-height:1.7}.network-payer-top .amount{font-size:13px;color:#254e63}.network-payer-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:9px;font-size:11px;color:#647c8a}.network-payer-bottom button{padding:2px 4px;font-size:12px}.network-payment-details{font-size:11px;color:#6b818e;margin-top:6px}.network-payment-details summary{cursor:pointer}.network-payment-details p{line-height:1.8}.network-recipient{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid #dbc7a4;border-top:3px solid #cba56a;border-radius:15px;padding:22px 16px;background:#fffcf7;gap:9px;min-width:0}.network-recipient>strong{font-size:17px;overflow-wrap:anywhere}.network-total{font-size:20px;color:#254e63;font-weight:750}.network-recipient small,.network-recipient bdi{font-size:12px;color:#647c8a;overflow-wrap:anywhere}.network-remainder{font-size:12px;border-top:1px solid #ecdfc9;padding-top:13px;margin-top:4px;width:100%;color:#8a6141}.network-remainder strong{display:block;font-size:16px;margin-top:6px}.network-complete{font-size:12px;color:#327d69;border-top:1px solid #ece7db;padding-top:12px;width:100%}#modal .settlement-group{padding:16px 0}#modal .settlement-network{column-gap:60px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#modal .network-payer-top{font-size:12px}#modal .network-total{font-size:16px}@media(max-width:700px){.settlement-group{padding:18px 16px}.settlement-network,#modal .settlement-network{grid-template-columns:minmax(0,1fr);row-gap:48px;padding-left:36px}.settlement-group-head{align-items:flex-start}.settlement-group-head h3{font-size:14px}.settlement-group-head>div{flex-wrap:wrap;justify-content:flex-end}.network-payer{padding:12px}.network-payer-top{gap:5px}.network-payer-top .check{font-size:12px}.network-payer-top .amount{font-size:12px}.network-recipient{padding:18px 14px}.network-total{font-size:20px}.settlement-simple>.panel-head{flex-wrap:wrap}.settlement-options{padding:12px 16px}.settlement-options .settlement-modes{width:auto}}@media(prefers-reduced-motion:reduce){.network-motion{display:none}}
.home-settlement-target{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px;border-top:1px solid var(--line);font-size:13px}.home-settlement-target small{display:block;color:#6a818f;margin-top:6px;font-size:11px}
.contacts-overview{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.contacts-overview>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.contacts-overview span{font-size:12px;color:#607b8b}.contacts-overview strong{font-size:17px}.contacts-toolbar{align-items:center}.contacts-tabs{flex-shrink:0}.contacts-tabs button span{font-size:10px;opacity:.7;margin-inline-start:5px}@media(max-width:700px){.contacts-overview{gap:9px}.contacts-overview>div{padding:12px;gap:7px}.contacts-overview span{font-size:10px}.contacts-overview strong{font-size:13px;overflow-wrap:anywhere}.contacts-toolbar .contacts-tabs{width:100%;justify-content:space-between}.contacts-tabs button{flex:1}}
.financial-position{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 22px;margin-bottom:16px;border:1px solid var(--line);border-inline-start:4px solid #8da3af;border-radius:13px;background:white}.position-heading strong{font-size:14px}.position-heading>span{display:block;font-size:11px;color:#71838f;margin-top:4px}.position-result{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.position-result>strong{font-size:25px;font-weight:750}.position-result small{font-size:11px;font-weight:400}.position-status{font-size:11px;border-radius:20px;padding:3px 10px;background:#eff3f5}.position-positive{border-inline-start-color:#368f79}.position-positive .position-result{color:#257c66}.position-positive .position-status{background:#e9f6ef}.position-negative{border-inline-start-color:#b76057}.position-negative .position-result{color:#a64b44}.position-negative .position-status{background:#fcf0ee}.position-neutral .position-result{color:#536d7c}@media(max-width:700px){.financial-position{padding:14px 16px;align-items:flex-start;flex-direction:column;gap:10px}.position-result{width:100%;justify-content:space-between}.position-result>strong{font-size:23px}.position-heading>span{font-size:10px}}
.payment-bank-export{display:flex;justify-content:flex-end;margin-bottom:14px}.bank-export-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:18px 0}.bank-scope-tabs{flex-wrap:wrap;justify-content:flex-start}.bank-sheet{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;margin-bottom:24px}.bank-sheet-header{display:flex;justify-content:space-between;gap:24px;border-bottom:2px solid #244a5e;padding-bottom:18px}.bank-sheet-header h2{margin:5px 0;font-size:21px}.bank-sheet-header p{margin:5px 0;font-size:12px;color:#637d8c}.bank-sheet-header>div:last-child{display:flex;flex-direction:column;gap:5px;font-size:11px}.bank-sheet-totals{display:flex;gap:20px;justify-content:space-between;padding:15px 0;font-size:15px}.bank-sheet-payment{border:1px solid #d7e1e7;border-radius:10px;margin:0 0 18px;padding:16px;break-inside:avoid;page-break-inside:avoid}.bank-sheet-payment-head{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #e5eaee}.bank-sheet-payment-head>strong{font-size:16px}.bank-sheet-payment-head>span{font-size:11px}.bank-sheet-route{display:grid;grid-template-columns:1fr 1fr;gap:24px}.bank-sheet-route>div{display:flex;flex-direction:column;gap:6px;min-width:0}.bank-sheet-label{font-size:10px;color:#657c89}.bank-sheet-route small{font-size:11px;color:#526e7e}.bank-sheet-number{font-size:12px;overflow-wrap:anywhere}.bank-sheet-number bdi{direction:ltr;font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px;letter-spacing:.3px}.bank-sheet-tracking{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px dashed #c8d5dc;margin-top:16px;padding-top:12px;font-size:11px}.bank-sheet-note{font-size:12px;color:#566e7e}.bank-sheet-id{display:block;color:#8a9aa4;font-size:8px;margin-top:12px;overflow-wrap:anywhere}.bank-sheet-footer{font-size:10px;color:#627987;border-top:1px solid var(--line);padding-top:15px}.bank-sheet-footer>div{font-size:8px;margin-top:10px;text-align:center}.bank-sheet-missing{padding:10px 14px;margin:0 0 16px;background:#fff4e6;color:#855a28;font-size:12px;border:1px solid #edd9ba;border-radius:8px}@media(max-width:700px){.bank-sheet{padding:16px}.bank-sheet-header{flex-direction:column;gap:8px}.bank-sheet-header h2{font-size:18px}.bank-sheet-route{grid-template-columns:1fr;gap:18px}.bank-export-fields{grid-template-columns:1fr}.bank-scope-tabs{display:grid;grid-template-columns:1fr}.bank-sheet-payment{padding:12px}.bank-sheet-payment-head>strong{font-size:14px}.bank-sheet-totals{font-size:13px}}@media print{body.bank-print-mode .sidebar,body.bank-print-mode .topbar,body.bank-print-mode .page-head,body.bank-print-mode .print-title,body.bank-print-mode .footer,body.bank-print-mode .no-print{display:none!important}body.bank-print-mode .layout{display:block!important}body.bank-print-mode .main{padding:0!important}body.bank-print-mode .bank-sheet{border:0;border-radius:0;padding:0;margin:0}body.bank-print-mode .bank-sheet-route{grid-template-columns:1fr 1fr!important}body.bank-print-mode .bank-sheet-header{flex-direction:row!important}body.bank-print-mode .bank-sheet-payment{box-shadow:none;border-color:#aaa}body.bank-print-mode .bank-sheet-number{color:#000}body.bank-print-mode .bank-sheet-footer{color:#333}}
.payment-programs .panel-head h2{font-size:14px}.payment-program{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 20px;border-top:1px solid var(--line)}.payment-program strong{font-size:13px}.payment-program small{display:block;margin-top:5px;font-size:11px;color:#6e8290}.badge.cancelled{background:#edf0f2;color:#74818b}@media(max-width:700px){.payment-program{align-items:flex-start;flex-direction:column;padding:14px 16px}.payment-program .actions{width:100%}.payment-program .actions button{flex:1}}
.update-notice .update-error{margin:12px 0 4px;padding:10px 12px;background:#fff1ee;border-radius:8px;color:#a34f43;font-size:12px}.update-notice button[disabled]{cursor:wait}
.ai-advanced{margin:18px 0}.ai-advanced .field{margin-top:14px}.ai-chat .panel-head h2{font-size:17px}.ai-history-select{display:flex;align-items:center;gap:12px;padding:15px 22px;border-bottom:1px solid var(--line);font-size:12px;color:#627c8b}.ai-history-select select{flex:1;min-width:0}.ai-messages{padding:22px;display:flex;flex-direction:column;gap:18px;min-height:220px}.ai-message{padding:17px 19px;border:1px solid var(--line);border-radius:14px;max-width:100%;overflow:hidden}.ai-message>strong{font-size:11px;display:block;margin-bottom:8px;color:#6d8492}.ai-user{background:#eaf3f6;align-self:flex-start;max-width:88%}.ai-assistant{background:#fff;align-self:stretch}.ai-message-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2.05;font-size:14px}.ai-evidence{margin-top:15px;border-top:1px solid var(--line);padding-top:12px;font-size:12px}.ai-evidence>summary{cursor:pointer;color:#3c6d85}.ai-evidence .table-wrap{margin:12px 0}.ai-evidence td,.ai-evidence th{font-size:11px;padding:10px}.ai-snapshot{display:block;font-size:10px;color:#8a9ca7;margin-top:12px}.ai-composer{padding:18px 22px;background:#f5f9fb;border-top:1px solid var(--line)}.ai-composer>label{display:block;font-size:12px;margin-bottom:7px}.ai-composer textarea{width:100%;resize:vertical;min-height:88px}.ai-composer>div{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}.ai-composer small{font-size:11px;color:#718896}.ai-start{padding:14px 0}.ai-start h3{font-size:15px;margin:0 0 16px}.ai-start button{display:block;margin:9px 0;max-width:100%;text-align:right}.ai-working{font-size:12px;color:#4c8095;margin:0}@media(max-width:700px){.nav:has([data-page=ai]){grid-template-columns:repeat(7,minmax(0,1fr))}.nav:has([data-page=ai]) button{padding-inline:2px}.nav:has([data-page=ai]) .nav-label-mobile{font-size:9px}.ai-messages{padding:16px}.ai-composer{padding:16px}.ai-chat .panel-head{flex-wrap:wrap}.ai-history-select{padding:12px 16px;align-items:flex-start;flex-direction:column}.ai-history-select select{width:100%}.ai-message{padding:14px}.ai-message-content{font-size:13px}.ai-user{max-width:94%}.ai-composer>div{align-items:flex-start}}

.ai-token-usage{display:block;margin-top:12px;color:var(--muted);font-size:.76rem;line-height:1.9}.ai-composer #ai-character-count{display:block;margin-bottom:6px}.ai-composer #ai-cost-note{font-size:.75rem;line-height:1.9}

.ai-usage-list{display:grid;gap:12px}.ai-usage-entry{border:1px solid var(--line);border-radius:12px;padding:14px;font-size:.82rem;line-height:1.9;overflow-wrap:anywhere}.ai-usage-entry header{display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-usage-entry p{margin:8px 0 0}

.technical-shell{max-width:1200px;padding:32px 24px;margin:0 auto}.technical-login{max-width:440px;margin:8vh auto}.technical-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.technical-header img{width:170px}.technical-header h1{font-size:24px;margin:12px 0 3px}.technical-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.technical-event{padding:12px 0;border-bottom:1px solid var(--line)}.technical-event small{display:block;color:var(--muted)}#technical-notice,#connection-result,#login-error{white-space:pre-wrap;overflow-wrap:anywhere}#technical-app .check{margin:15px 0}#technical-app details{margin:15px 0}@media(max-width:700px){.technical-shell{padding:22px 16px}.technical-grid{grid-template-columns:1fr}.technical-header h1{font-size:21px}.technical-header img{width:145px}}

.entry-perspective{background:#edf5f5;border-inline-start:3px solid #559487;border-radius:8px;padding:12px 14px;color:#345b65;font-size:13px;margin:0 0 18px;line-height:1.9}
.ai-fab{position:fixed;left:24px;bottom:24px;z-index:30;display:flex;align-items:center;gap:9px;min-height:52px;padding:13px 17px;border-radius:28px;background:#214e62;color:#fff;border:1px solid #315e71;box-shadow:0 7px 22px #183f5433;font-size:12px}.ai-fab:hover,.ai-fab:focus-visible{background:#2c6578;box-shadow:0 9px 26px #183f5444}.ai-fab .icon{width:22px;height:22px}.ai-fab span{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;transition:max-width .18s,opacity .18s}.ai-fab:hover span,.ai-fab:focus-visible span{max-width:150px;opacity:1}body:has(.ai-fab) #toasts{bottom:96px}
dialog.ai-help-dialog{position:fixed;inset:auto auto 24px 24px;margin:0;width:min(540px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid #d6e1e5;border-radius:18px;box-shadow:0 20px 80px #183f5440;overflow:auto}dialog.ai-help-dialog::backdrop{background:#142c3b24;backdrop-filter:none}.ai-help-dialog .ai-chat{margin:0;border:0;box-shadow:none;border-radius:0}.ai-help-dialog .ai-messages{min-height:130px;max-height:43dvh;overflow:auto}.ai-help-dialog .ai-composer{padding:16px 20px}.ai-help-dialog .ai-composer textarea{min-height:74px}.ai-help-dialog .ai-history-select{padding:12px 20px}.ai-help-dialog .panel-head{padding:16px 20px;align-items:flex-start}.ai-help-dialog .panel-head h2{font-size:15px}.ai-help-dialog .panel-head .actions{flex-shrink:0}.ai-help-dialog .ai-message-content{font-size:13px}.ai-help-dialog .ai-start button{font-size:12px}.ai-help-dialog .ai-chat .panel-head small{font-size:10px}
@media(max-width:700px){.ai-fab{left:16px;bottom:calc(86px + env(safe-area-inset-bottom));min-height:46px;padding:11px 14px}.ai-fab span{max-width:125px;opacity:1}.ai-fab .icon{width:20px;height:20px}body:has(.ai-fab) #toasts{bottom:155px}dialog.ai-help-dialog{inset:auto 12px calc(12px + env(safe-area-inset-bottom)) 12px;width:auto;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom))}.ai-help-dialog .ai-messages{max-height:38dvh}.ai-help-dialog .panel-head{flex-wrap:nowrap}.ai-help-dialog .panel-head .actions{gap:3px}.ai-help-dialog .panel-head .actions button{padding:6px;font-size:10px}.ai-help-dialog .ai-composer #ai-cost-note{font-size:10px}.ai-help-dialog .ai-history-select{gap:5px;padding:10px 16px}}
@media(prefers-reduced-motion:reduce){.ai-fab span{transition:none}}@media print{.ai-fab,.ai-help-dialog{display:none!important}}

dialog.ai-help-dialog{height:min(720px,calc(100dvh - 48px));overflow:hidden}.ai-help-dialog .ai-chat{height:100%;display:flex;flex-direction:column;overflow:hidden}.ai-help-dialog .ai-chat>.panel-head,.ai-help-dialog .ai-history-select,.ai-help-dialog .ai-composer{flex:0 0 auto}.ai-help-dialog .ai-messages{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}.ai-help-dialog .ai-composer #ai-cost-note{margin:8px 0;font-size:10px;line-height:1.7}.ai-help-dialog .ai-composer>div{margin-top:8px}@media(max-width:700px){dialog.ai-help-dialog{height:min(760px,calc(100dvh - 24px - env(safe-area-inset-bottom)))}.ai-help-dialog .ai-history-select{flex-direction:row;align-items:center}.ai-help-dialog .ai-history-select label{font-size:10px;white-space:nowrap}.ai-help-dialog .ai-history-select select{width:auto}.ai-help-dialog .ai-composer textarea{min-height:65px}}

.ai-help-dialog .ai-message,.ai-help-dialog .ai-start,.ai-help-dialog .ai-working{flex-shrink:0}

.ai-composer .ai-error{padding:9px 12px;background:#fff1ee;border:1px solid #efd2ca;border-radius:8px;color:#9c4940;font-size:12px;margin:0 0 12px;line-height:1.8}
.settlement-create-actions{display:flex;gap:9px;flex-wrap:wrap}.settlement-method-summary{padding:0 22px 16px;color:var(--muted);font-size:12px}.settlement-method-summary strong{color:var(--ink)}.settlement-method-summary small{display:block;margin-top:7px}.settlement-method-choices{display:grid;gap:10px;margin:18px 0}.settlement-method-choice{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:12px;padding:14px;cursor:pointer}.settlement-method-choice:has(input:checked){border-color:var(--blue);background:#f1f7fa}.settlement-method-choice input{width:18px;height:18px;flex:0 0 18px;margin-top:3px;accent-color:var(--blue)}.settlement-method-choice strong{display:block;font-size:13px}.settlement-method-choice small{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.9}@media(max-width:700px){.settlement-create-actions{width:100%}.settlement-create-actions .primary{flex:1}.settlement-method-summary{padding:0 16px 14px}}
