:root {
  --navy: #122536;
  --navy-2: #1d364a;
  --orange: #ea580c;
  --orange-hover: #c94a08;
  --ink: #172331;
  --muted: #687786;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --line: #dfe5ea;
  --shadow: 0 12px 34px rgba(18, 37, 54, .08);
}

* { box-sizing: border-box; }
html { max-width:100%; overflow-x:hidden; font-size: 16px; }
body { max-width:100%; overflow-x:hidden; margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.5; }
a { color: #174f79; text-decoration: none; }
a:hover { color: var(--orange); }
.skip-link { position:fixed; left:12px; top:-80px; z-index:100; padding:10px 14px; color:#fff; background:var(--navy); border-radius:8px; }
.skip-link:focus { top:12px; color:#fff; }
button, a, input, select, textarea { touch-action: manipulation; }
.btn, .form-control, .form-select, .input-group-text { min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 700; border-radius: .65rem; }
.btn:disabled { cursor:not-allowed; opacity:.55; }
.btn-accent { color: #fff; background: var(--orange); border-color: var(--orange); }
.btn-accent:hover, .btn-accent:focus { color: #fff; background: var(--orange-hover); border-color: var(--orange-hover); }
.form-control, .form-select { border-color: #ccd5dc; border-radius: .65rem; }
.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(234, 88, 12, .13); }
.form-label { font-size: .83rem; font-weight: 750; color: #344454; margin-bottom: .35rem; }
.form-text { display: block; margin-top: .35rem; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; padding: 26px 20px 20px; flex-direction: column; color: #fff; background: var(--navy); z-index: 50; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; padding: 0 8px 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: var(--orange); border-radius: 13px; font-weight: 900; letter-spacing: -.03em; }
.brand strong, .brand small { display: block; }
.brand small { color: #aebcc8; font-size: .72rem; margin-top: 1px; }
.sidebar-nav { display: grid; gap: 4px; padding-top: 22px; }
.sidebar-nav a { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 14px; color: #c7d2db; border-radius: 10px; font-weight: 650; }
.sidebar-nav a i { width: 20px; font-size: 1.05rem; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-nav a.active { box-shadow: inset 3px 0 var(--orange); }
.sidebar-logout { margin-top: auto; }

.app-main { min-height: 100vh; margin-left: 258px; }
.topbar { min-height: 100px; padding: 20px clamp(22px, 3vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(12px); }
.topbar h1 { margin: 1px 0 0; font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 850; letter-spacing: -.04em; }
.topbar-actions, .toolbar-actions, .detail-actions, .form-actions { display: flex; align-items: center; gap: 10px; }
.eyebrow { color: var(--orange); font-size: .7rem; font-weight: 900; letter-spacing: .14em; }
.content-wrap { padding: 28px clamp(18px, 3vw, 44px) 52px; max-width: 1600px; margin: 0 auto; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 1.2rem; font-weight: 820; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.metric-grid.mini { grid-template-columns: repeat(5,minmax(0,1fr)); }
.metric-card { min-height: 116px; display: flex; align-items: center; gap: 15px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.metric-card span, .metric-card strong { display: block; }
.metric-card span { color: var(--muted); font-size: .8rem; font-weight: 700; margin-bottom: 5px; }
.metric-card strong { font-size: clamp(1.05rem, 1.7vw, 1.55rem); line-height: 1.2; }
.metric-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-size: 1.15rem; }
.navy-icon { color: #fff; background: var(--navy); }.orange-icon { color: #9a3b06; background: #fff0e6; }.blue-icon { color: #175b91; background: #e7f3ff; }.green-icon { color: #13764b; background: #e5f8ef; }.red-icon { color: #b42318; background: #feeceb; }.yellow-icon { color: #806000; background: #fff7d6; }
.accent-metric { color: #fff; background: var(--navy); border-color: var(--navy); }.accent-metric span { color: #c9d4dd; }

.stack-list { display: grid; gap: 2px; }.stack-list.compact { gap: 0; }
.work-row, .cash-row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 4px; color: var(--ink); border-bottom: 1px solid #edf0f2; }
.work-row:hover { color: var(--ink); background: #fafbfc; }
.work-main { min-width: 0; flex: 1; }.work-main strong, .work-main span, .cash-row strong, .cash-row small { display: block; }.work-main span, .cash-row small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-progress { width: 130px; }.work-progress span { display: block; text-align: right; font-size: .72rem; font-weight: 800; }.progress { height: 7px; background: #e7edf1; }.progress-bar { background: var(--orange); }.progress-lg { height: 18px; border-radius: 20px; }.progress-lg .progress-bar { font-size: .7rem; font-weight: 800; }
.cash-row > div:nth-child(2), .cash-row > div:first-child { flex: 1; min-width: 0; }.cash-direction { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }.cash-direction.income { color: #13764b; background:#e5f8ef; }.cash-direction.expense { color:#b42318; background:#feeceb; }.cash-row b { white-space: nowrap; }
.empty-state { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }.empty-state > i { font-size: 2.4rem; color: var(--orange); }.empty-state h3, .empty-state h2 { margin: 12px 0 5px; font-weight: 820; }.empty-state p { color: var(--muted); max-width: 420px; }
.pagination-wrap { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:16px; color:var(--muted); font-size:.8rem; }.page-link { color:var(--navy); min-width:40px; min-height:40px; display:grid; place-items:center; }.page-item.active .page-link { background:var(--navy); border-color:var(--navy); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.search-form { width: min(460px,100%); }.filter-form { display: flex; gap: 10px; width: min(680px,100%); }.filter-form .input-group { flex: 1; }.filter-form .form-select { max-width: 200px; }
.table-panel { padding: 0; overflow: hidden; }.responsive-list { display: grid; }.data-row-wrap { position:relative; border-bottom:1px solid #e8edf0; }.data-row-wrap:last-child { border-bottom:0; }.data-row { min-height: 78px; display: grid; grid-template-columns: minmax(240px,1.8fr) repeat(3,minmax(100px,.75fr)) 32px; gap: 15px; align-items: center; padding: 13px 82px 13px 20px; color: var(--ink); }.data-row:hover { color: var(--ink); background: #fbfcfd; }.responsive-list > .data-row { border-bottom:1px solid #e8edf0; }.responsive-list > .data-row:last-child { border-bottom: 0; }.row-delete-action { position:absolute; z-index:2; top:50%; right:16px; transform:translateY(-50%); }.row-delete-action .btn { width:44px; height:44px; padding:0; display:grid; place-items:center; }.row-delete-action .btn:disabled { opacity:.35; }.data-primary { min-width: 0; }.data-primary strong,.data-primary span,.data-label { display: block; }.data-primary strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.data-primary span,.data-label { color: var(--muted); font-size: .76rem; }.data-label { font-weight: 750; margin-bottom: 2px; }.row-arrow { color: #8c99a4; text-align: right; }.inline-progress { width: 90px; height: 5px; overflow: hidden; background:#e7edf1; border-radius: 8px; }.inline-progress div { height:100%; background:var(--orange); }.cash-data-row { grid-template-columns:minmax(240px,1.8fr) repeat(3,minmax(100px,.7fr)) 70px; }.is-reversed { opacity:.55; text-decoration:line-through; }

.form-panel { max-width: 1120px; margin: 0 auto; padding: clamp(20px,3vw,34px); }.section-title { display:flex; align-items:flex-start; gap:13px; margin-bottom:24px; }.section-title > span { width:38px; height:38px; display:grid; place-items:center; color:#fff; background:var(--navy); border-radius:10px; font-size:.78rem; font-weight:900; }.section-title h2 { margin:0; font-size:1.25rem; font-weight:840; }.section-title p { color:var(--muted); margin:2px 0 0; font-size:.85rem; }.section-title.small-section { margin-bottom:18px; }.section-title.small-section > span { background:var(--orange); }.form-actions { justify-content:flex-end; margin-top:28px; padding-top:20px; border-top:1px solid var(--line); }.sticky-actions { position:sticky; bottom:0; z-index:30; padding:14px 0 max(14px,env(safe-area-inset-bottom)); background:rgba(243,246,248,.96); border-top:1px solid var(--line); backdrop-filter:blur(10px); }

.offer-form { max-width:1200px; margin:0 auto; }.offer-items { display:grid; gap:12px; }.offer-item { padding:16px; background:#f7f9fa; border:1px solid #dfe5ea; border-radius:12px; }.offer-item-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }.line-total { min-height:44px; display:flex; align-items:center; justify-content:flex-end; padding:0 11px; background:#fff4e8; border:1px solid #ffd6b8; border-radius:.65rem; font-weight:800; }.offer-summary { display:flex; align-items:flex-start; justify-content:flex-end; gap:28px; margin-top:20px; }.offer-summary > div { width:120px; }.offer-summary dl { width:min(360px,100%); display:grid; grid-template-columns:1fr auto; gap:9px 20px; margin:0; padding:15px 18px; background:var(--navy); color:#fff; border-radius:12px; }.offer-summary dt,.offer-summary dd { margin:0; }.offer-summary dd { text-align:right; font-weight:800; }.offer-summary dt:last-of-type,.offer-summary dd:last-of-type { color:#ff8b35; font-size:1.05rem; }
.template-picker { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:end; margin-bottom:12px; padding:14px; background:#f4f7f9; border:1px solid var(--line); border-radius:12px; }.template-picker .btn { min-height:44px; white-space:nowrap; }.auto-note,.auto-terms-bar { display:flex; align-items:center; gap:10px; margin-bottom:14px; padding:12px 14px; color:#243746; background:#fff8ef; border:1px solid #ffd7b8; border-radius:10px; }.auto-note i,.auto-terms-bar i { color:var(--orange); }.auto-terms-bar { justify-content:space-between; }
.offer-steps { position:sticky; top:100px; z-index:32; display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-bottom:18px; padding:10px; background:rgba(255,255,255,.96); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); backdrop-filter:blur(10px); }
.offer-steps a { min-height:48px; display:flex; align-items:center; justify-content:center; gap:8px; color:var(--ink); border-radius:9px; font-size:.82rem; font-weight:750; }
.offer-steps a:hover,.offer-steps a:focus { color:var(--orange); background:#fff2e9; }.offer-steps b { width:25px; height:25px; display:grid; place-items:center; color:#fff; background:var(--navy); border-radius:8px; font-size:.72rem; }
.scope-item { border-left:4px solid var(--navy); }.price-item { border-left:4px solid var(--orange); }.scope-link-select { min-height:74px; }
.internal-cost-section,.internal-panel { border-color:#f1c7aa; background:#fffaf6; }.internal-cost-section.is-optional { opacity:.92; }.internal-badge { display:inline-flex; align-items:center; min-height:24px; padding:2px 8px; color:#8b3b08; background:#ffeadb; border-radius:20px; font-size:.68rem; font-weight:850; vertical-align:middle; }
.internal-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:18px; }.internal-summary span { padding:14px; background:#fff; border:1px solid #f0d4bf; border-radius:10px; color:var(--muted); font-size:.76rem; }.internal-summary strong { display:block; margin-top:3px; color:var(--ink); font-size:1.05rem; }
.scope-preview { display:grid; gap:10px; }.scope-preview article { display:flex; gap:13px; padding:15px; background:#f7f9fa; border:1px solid var(--line); border-radius:12px; }.scope-preview article>span { width:32px; height:32px; flex:0 0 auto; display:grid; place-items:center; color:#fff; background:var(--navy); border-radius:9px; font-size:.75rem; font-weight:850; }.scope-preview h3 { margin:1px 0 5px; font-size:1rem; }.scope-preview p { margin:0 0 5px; color:var(--muted); }.scope-preview small { color:var(--orange); font-weight:800; }

.detail-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; padding:23px 27px; color:#fff; background:var(--navy); border-radius:17px; box-shadow:var(--shadow); }.detail-hero h2 { margin:3px 0; font-size:clamp(1.45rem,2.4vw,2.15rem); font-weight:850; letter-spacing:-.035em; }.detail-hero p { margin:0; color:#c8d3dc; }.detail-actions form { display:inline-flex; }.detail-list { display:grid; grid-template-columns:1fr auto; gap:10px 18px; margin:0; }.detail-list dt { color:var(--muted); font-weight:650; }.detail-list dd { margin:0; text-align:right; font-weight:750; }.subcard { margin-top:18px; padding:14px; background:#f4f7f9; border-radius:11px; }.subcard strong,.subcard p { display:block; margin:3px 0 0; }.subcard p { color:var(--muted); font-size:.84rem; }
.checklist { display:grid; gap:8px; }.check-row { display:flex; align-items:center; gap:12px; padding:11px; border:1px solid var(--line); border-radius:10px; }.check-status-form { width:145px; flex:0 0 auto; }.status-select { min-height:38px; font-size:.78rem; }.check-row > div { min-width:0; }.check-row strong,.check-row small { display:block; }.check-row small { color:var(--muted); }.inline-add { display:grid; grid-template-columns:1fr 1.4fr auto; gap:8px; }.timeline { display:grid; gap:0; }.timeline-item { position:relative; padding:0 0 18px 22px; border-left:2px solid #dce3e8; }.timeline-item:before { content:""; position:absolute; left:-6px; top:3px; width:10px; height:10px; background:var(--orange); border-radius:50%; }.timeline-item span { color:var(--muted); font-size:.75rem; font-weight:750; }.timeline-item p { margin:3px 0 0; }.upload-box { padding:14px; background:#f4f7f9; border:1px dashed #b9c5ce; border-radius:11px; }.document-list { margin-top:10px; }.document-row { min-height:55px; display:flex; align-items:center; gap:11px; padding:9px 3px; color:var(--ink); border-bottom:1px solid #edf0f2; }.document-row > i:first-child { color:var(--orange); font-size:1.2rem; }.document-row span { flex:1; min-width:0; }.document-row strong,.document-row small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.document-row small { color:var(--muted); font-size:.72rem; }

.attendance-list { display:grid; gap:8px; }.attendance-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 15px; border:1px solid var(--line); border-radius:11px; }.attendance-row strong,.attendance-row small { display:block; }.attendance-row small { color:var(--muted); }.attendance-person { min-width:0; }.segmented { display:flex; padding:3px; background:#edf1f4; border-radius:10px; }.segmented input { position:absolute; opacity:0; pointer-events:none; }.segmented label { min-height:44px; display:grid; place-items:center; padding:0 13px; border-radius:8px; cursor:pointer; font-size:.78rem; font-weight:750; }.segmented input:checked + label { color:#fff; background:var(--navy); box-shadow:0 3px 9px rgba(18,37,54,.18); }.segmented input:focus-visible + label { outline:3px solid rgba(234,88,12,.35); }.attendance-panel-head { align-items:flex-end; gap:20px; }.attendance-panel-head p { font-size:.86rem; }.attendance-date-form { min-width:190px; }.attendance-date-form .form-label { margin-bottom:5px; }.attendance-save-bar { position:sticky; bottom:76px; z-index:8; display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:14px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.96); box-shadow:0 10px 24px rgba(18,37,54,.1); }.attendance-save-bar span { color:var(--muted); }.compact-empty { padding:28px 15px; }
.quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.quick-action { min-height:105px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--ink); background:#f4f7f9; border:1px solid var(--line); border-radius:12px; font-weight:750; }.quick-action i { color:var(--orange); font-size:1.5rem; }.quick-action:hover { color:var(--ink); border-color:var(--orange); transform:translateY(-1px); }

.mobile-nav { position:fixed; z-index:60; left:0; right:0; bottom:0; min-height:66px; padding:7px 4px max(7px,env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); background:#fff; border-top:1px solid var(--line); box-shadow:0 -8px 24px rgba(18,37,54,.08); }.mobile-nav a { min-width:0; min-height:50px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; color:#71808d; font-size:.62rem; font-weight:750; border-radius:9px; }.mobile-nav a i { font-size:1.05rem; }.mobile-nav a.active { color:var(--orange); background:#fff3eb; }

.login-body { min-height:100vh; background:var(--navy); }.login-shell { min-height:100vh; display:grid; grid-template-columns:1.15fr .85fr; }.login-brand { position:relative; display:flex; flex-direction:column; justify-content:center; padding:clamp(40px,8vw,120px); color:#fff; overflow:hidden; }.login-brand:after { content:""; position:absolute; width:420px; height:420px; right:-150px; bottom:-180px; border:85px solid rgba(234,88,12,.18); border-radius:50%; }.login-mark { width:72px; height:72px; display:grid; place-items:center; margin-bottom:30px; background:var(--orange); border-radius:18px; font-size:1.5rem; font-weight:900; }.login-brand h1 { max-width:720px; margin:8px 0 18px; font-size:clamp(2.3rem,5vw,4.8rem); line-height:1.03; letter-spacing:-.055em; font-weight:900; }.login-brand > p:last-child { max-width:520px; color:#c4d0da; font-size:1.05rem; }.login-card { display:flex; flex-direction:column; justify-content:center; padding:clamp(34px,8vw,110px); background:#fff; }.login-card h2 { margin:3px 0 28px; font-weight:850; }.login-help { margin:25px 0 0; color:var(--muted); text-align:center; font-size:.78rem; }

.bank-hero { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:30px; min-height:178px; padding:30px 34px; color:#fff; background:linear-gradient(125deg,#0d2030 0%,#173d57 68%,#175d62 100%); border-radius:20px; box-shadow:0 18px 40px rgba(18,37,54,.18); }
.bank-hero:after { content:""; position:absolute; width:260px; height:260px; right:-85px; bottom:-155px; border:55px solid rgba(255,255,255,.07); border-radius:50%; }
.bank-hero h2 { margin:4px 0 3px; font-size:clamp(1.7rem,3vw,2.5rem); font-weight:900; letter-spacing:-.04em; }.bank-hero p { margin:0; overflow-wrap:anywhere; color:#c9dae4; letter-spacing:.04em; }.bank-balance { position:relative; z-index:1; min-width:250px; padding:18px 22px; text-align:right; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.15); border-radius:15px; backdrop-filter:blur(8px); }.bank-balance small,.bank-balance strong,.bank-balance span { display:block; }.bank-balance small,.bank-balance span { color:#c9dae4; }.bank-balance strong { margin:4px 0; font-size:clamp(1.35rem,2.4vw,2.1rem); }
.bank-upload-panel { border-color:#bcd9dc; background:linear-gradient(145deg,#fff 0%,#f3faf9 100%); }.bank-upload-panel .panel-head>i { color:#187578; font-size:2rem; }.bank-import-status { min-height:50px; display:flex; align-items:center; padding:12px 14px; color:var(--muted); background:#f1f5f6; border:1px solid #dbe4e7; border-radius:10px; font-size:.86rem; font-weight:650; }.bank-import-status[data-state="loading"] { color:#175b91; background:#eef7ff; }.bank-import-status[data-state="success"] { color:#12633f; background:#e9f8ef; border-color:#bde8cd; }.bank-import-status[data-state="error"] { color:#a4261d; background:#fff0ef; border-color:#f0c0bc; }
.bank-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(120px,.8fr)) minmax(190px,1.4fr) auto; gap:10px; align-items:end; }.bank-search-field { min-width:0; }
.bank-transaction-list { display:grid; margin:0 -4px; }.bank-transaction-row { min-height:82px; display:grid; grid-template-columns:42px minmax(0,1fr) 90px 130px 18px; align-items:center; gap:12px; padding:12px 6px; color:var(--ink); border-bottom:1px solid #e8edf0; }.bank-transaction-row:hover { color:var(--ink); background:#f8fafb; }.bank-party { min-width:0; }.bank-party strong,.bank-party small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.bank-party small { color:var(--muted); font-size:.73rem; }.bank-date { color:var(--muted); font-size:.78rem; }.bank-transaction-row>b { text-align:right; white-space:nowrap; }.bank-transaction-row>i:last-child { color:#91a0aa; }
.bank-ranking { display:grid; gap:15px; }.bank-rank>div { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:7px; }.bank-rank span,.bank-rank b,.bank-rank small { display:block; min-width:0; }.bank-rank span { overflow:hidden; }.bank-rank b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.83rem; }.bank-rank small { color:var(--muted); font-size:.69rem; }.bank-rank strong { flex:0 0 auto; font-size:.78rem; }.bank-rank>i { display:block; min-width:3px; max-width:100%; height:6px; background:linear-gradient(90deg,var(--orange),#ff9a52); border-radius:10px; }.bank-rank.category-rank>i { background:linear-gradient(90deg,#174f79,#38a1a5); }
.bank-months { display:grid; }.bank-months>div { display:grid; grid-template-columns:70px 1fr 1fr; gap:8px; align-items:center; min-height:46px; border-bottom:1px solid #edf0f2; font-size:.74rem; }.bank-months>div span { text-align:right; white-space:nowrap; }
.bank-import-row { min-height:65px; display:flex; align-items:center; gap:11px; padding:9px 0; color:var(--ink); border-bottom:1px solid #edf0f2; }.bank-import-row:hover { color:var(--ink); }.bank-import-row>span { width:36px; height:36px; display:grid; place-items:center; flex:0 0 auto; color:#16734b; background:#e8f7ef; border-radius:9px; }.bank-import-row>div { flex:1; min-width:0; }.bank-import-row strong,.bank-import-row small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.bank-import-row small { color:var(--muted); font-size:.7rem; }.bank-import-row>i { color:#84939d; }

@media (max-width:1199.98px) { .metric-grid.mini { grid-template-columns:repeat(3,1fr); }.data-row { grid-template-columns:minmax(220px,1.7fr) repeat(3,minmax(90px,.7fr)) 25px; }.bank-filter-grid { grid-template-columns:repeat(3,1fr); }.bank-search-field { grid-column:span 2; } }
@media (max-width:991.98px) { .app-main { margin-left:0; padding-bottom:78px; }.topbar { min-height:82px; padding:14px 18px; }.content-wrap { padding:20px 14px 40px; }.metric-grid { grid-template-columns:repeat(2,1fr); }.metric-grid.mini { grid-template-columns:repeat(2,1fr); }.login-shell { grid-template-columns:1fr; }.login-brand { min-height:42vh; padding:35px 25px; }.login-brand h1 { font-size:clamp(2.1rem,10vw,3.5rem); }.login-card { min-height:58vh; padding:35px 25px; } }
@media (max-width:767.98px) { .topbar-actions > span { display:none; }.topbar .btn-accent { width:44px; padding:0; font-size:0; }.topbar .btn-accent i { font-size:1rem; }.metric-grid,.metric-grid.mini { grid-template-columns:1fr 1fr; gap:10px; }.metric-card { min-height:96px; padding:14px; }.metric-icon { display:none; }.metric-card strong { font-size:1rem; }.toolbar { align-items:stretch; flex-direction:column; }.toolbar-actions { display:grid; grid-template-columns:1fr 1fr; }.filter-form { flex-direction:column; }.filter-form .form-select { max-width:none; }.data-row,.cash-data-row { grid-template-columns:1fr auto; padding:14px 72px 14px 15px; gap:8px 15px; }.responsive-list > .data-row { padding-right:15px; }.data-row > div:not(.data-primary) { font-size:.83rem; }.data-row .row-arrow { display:none; }.data-primary { grid-column:1/-1; }.job-list-row > div:nth-child(2) { grid-column:1/2; }.row-delete-action { right:12px; }.detail-hero { align-items:flex-start; flex-direction:column; padding:20px; }.detail-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }.detail-actions form,.detail-actions .btn { width:100%; }.offer-summary { align-items:stretch; flex-direction:column; }.offer-summary > div,.offer-summary dl { width:100%; }.offer-steps { top:82px; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; padding:6px; overflow:hidden; }.offer-steps a { min-width:0; flex-direction:column; gap:2px; font-size:.6rem; text-align:center; }.template-picker { grid-template-columns:1fr; }.template-picker .btn { width:100%; }.auto-terms-bar { align-items:flex-start; flex-direction:column; }.auto-terms-bar .btn { width:100%; }.internal-summary { grid-template-columns:1fr; }.check-row { align-items:flex-start; flex-direction:column; }.check-status-form { width:100%; }.inline-add { grid-template-columns:1fr; }.attendance-panel-head { align-items:stretch; flex-direction:column; }.attendance-date-form { width:100%; min-width:0; }.attendance-row { align-items:flex-start; flex-direction:column; }.segmented { width:100%; }.segmented label { flex:1; padding:0 8px; text-align:center; }.attendance-save-bar { bottom:74px; align-items:stretch; flex-direction:column; }.attendance-save-bar .btn { width:100%; min-height:48px; }.quick-grid { grid-template-columns:repeat(2,1fr); }.cash-data-row > button { grid-column:2; }.panel { padding:16px; }.table-panel { padding:0; }.form-panel { padding:18px 15px; }.bank-hero { align-items:flex-start; flex-direction:column; padding:22px; }.bank-balance { width:100%; min-width:0; text-align:left; }.bank-filter-grid { grid-template-columns:1fr 1fr; }.bank-search-field { grid-column:1/-1; }.bank-transaction-row { grid-template-columns:38px minmax(0,1fr) auto; gap:8px 10px; padding:12px 2px; }.bank-party { grid-column:2/4; }.bank-date { grid-column:2; }.bank-transaction-row>b { grid-column:3; }.bank-transaction-row>i:last-child { display:none; } }
@media (max-width:420px) { .metric-grid,.metric-grid.mini { grid-template-columns:1fr; }.metric-card { min-height:82px; }.topbar h1 { font-size:1.3rem; }.content-wrap { padding-left:10px; padding-right:10px; }.quick-grid { grid-template-columns:1fr 1fr; }.segmented label { padding:0 8px; font-size:.72rem; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
.bank-account-tabs{gap:.5rem}.bank-account-tabs .nav-link{min-height:44px;display:inline-flex;align-items:center;gap:.45rem;border:1px solid #dce3e8;color:#122536;background:#fff}.bank-account-tabs .nav-link.active{background:#122536;border-color:#122536}.bank-transaction-row.is-internal-transfer{background:#eef7fb;border-left:4px solid #2186a7}.bank-transaction-row.is-internal-transfer .bank-party>strong{color:#17647d}
.bank-trend-panel{overflow:hidden}.bank-trend-panel .panel-head{align-items:flex-start}.bank-chart-legend{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;font-size:.9rem;font-weight:700;color:#405160}.bank-chart-legend span{display:inline-flex;align-items:center;gap:.4rem}.bank-chart-legend i{display:block;width:16px;height:10px;border-radius:3px}.bank-chart-legend .income,.bank-chart-bars .income{background:#16855b}.bank-chart-legend .expense,.bank-chart-bars .expense{background:#e26a21;background-image:repeating-linear-gradient(135deg,transparent 0,transparent 4px,rgba(255,255,255,.35) 4px,rgba(255,255,255,.35) 6px)}.bank-chart-plot{height:250px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(3px,1vw,12px);padding:18px 8px 0;border-bottom:1px solid #ced7de;background:repeating-linear-gradient(to bottom,#eef2f5 0,#eef2f5 1px,transparent 1px,transparent 25%)}.bank-chart-month{min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch}.bank-chart-bars{min-height:0;flex:1;display:flex;justify-content:center;align-items:flex-end;gap:clamp(2px,.45vw,6px)}.bank-chart-bars i{display:block;width:min(15px,42%);min-height:3px;border-radius:4px 4px 0 0}.bank-chart-month>span{text-align:center;white-space:nowrap;font-size:.72rem;font-weight:700;color:#657480;padding-top:8px}.bank-chart-note{margin:.8rem 0 0;color:#657480;font-size:.82rem}.bank-chart-note i{margin-right:.3rem}@media(max-width:575.98px){.bank-trend-panel{padding-left:14px;padding-right:14px}.bank-chart-legend{width:100%;margin-top:.65rem}.bank-chart-plot{height:210px;gap:2px;padding-left:0;padding-right:0}.bank-chart-month>span{font-size:.58rem;transform:rotate(-45deg);transform-origin:center;min-height:28px;padding-top:12px}.bank-chart-bars{gap:1px}.bank-chart-bars i{width:42%}.bank-chart-note{font-size:.75rem}}
.bank-sync-panel{border:1px solid #b9d6c9;background:linear-gradient(135deg,#fff 0,#f2faf6 100%)}.bank-sync-panel>.panel-head>i{font-size:2rem;color:#16855b}.bank-sync-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.bank-sync-summary span{padding:14px;border-radius:12px;background:#fff;border:1px solid #dbe8e2;display:flex;flex-direction:column}.bank-sync-summary small{color:#657480}.bank-sync-summary strong{font-size:1.25rem;color:#122536}@media(max-width:575.98px){.bank-account-tabs .nav-link{flex:1 1 auto;justify-content:center;padding:.6rem .7rem}.bank-sync-summary{grid-template-columns:1fr}}
