:root{color:#172622;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f6f8f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}p{margin:0}#root{min-height:100vh}.lock-screen{background:linear-gradient(120deg,#0f766e14,#0000 34%),linear-gradient(290deg,#b7791f1f,#0000 34%),#f7faf9;place-items:center;min-height:100vh;padding:24px;display:grid}.lock-card{background:#fff;border:1px solid #d9e4e1;border-radius:8px;gap:18px;width:min(440px,100%);padding:34px;display:grid;box-shadow:0 18px 60px #0f172a14}.lock-card h1{color:#102522;margin:0;font-size:28px;line-height:1.12}.lock-card p{color:#60706c}.lock-mark,.brand-icon{color:#0f766e;background:#e4f4f1;border-radius:8px;place-items:center;width:48px;height:48px;display:grid}.lock-card label{color:#41514d;gap:8px;font-size:13px;font-weight:700;display:grid}.passcode-field{background:#fff;border:1px solid #cad8d5;border-radius:6px;grid-template-columns:1fr 42px;display:grid;overflow:hidden}.passcode-field input,.search-box input,.filters select{color:#102522;min-width:0;font:inherit;background:0 0;border:0;outline:0}.passcode-field input{padding:12px 14px}.passcode-field button,.icon-button{color:#52635f;cursor:pointer;background:0 0;border:0}.primary-button,.sidebar-footer button{color:#fff;cursor:pointer;background:#0f766e;border:0;border-radius:6px;justify-content:center;align-items:center;gap:8px;min-height:42px;font-weight:800;display:inline-flex}.error-text{color:#b42318;font-weight:700}.app-shell{color:#172622;background:#f6f8f7;grid-template-columns:248px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:#fff;border-right:1px solid #dce6e3;flex-direction:column;gap:28px;height:100vh;padding:22px 18px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;display:flex}.brand strong,.merchant-row strong{color:#102522;display:block}.brand span,.sidebar-footer span,.merchant-row span{color:#6b7b77;font-size:12px;display:block}.sidebar nav{gap:6px;display:grid}.sidebar nav button,.segmented button{color:#52635f;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:6px}.sidebar nav button{text-align:left;align-items:center;gap:10px;padding:10px 12px;display:flex}.sidebar nav button.active,.sidebar nav button:hover{color:#0f766e;background:#e9f5f2}.sidebar-footer{border-top:1px solid #e5eeeb;gap:10px;margin-top:auto;padding-top:18px;display:grid}.sidebar-footer button{background:#102522}.dashboard{gap:18px;min-width:0;padding:24px;display:grid}.topbar,.filters,.table-header{justify-content:space-between;align-items:center;gap:16px;display:flex}#overview-section,#months-section,#categories-section,#payments-section,#transactions-section{scroll-margin-top:18px}.topbar h1{color:#102522;margin:0 0 4px;font-size:30px;line-height:1.1}.topbar p,.table-header p{color:#667773}.top-actions{align-items:center;gap:10px;display:flex}.search-box{color:#6b7b77;background:#fff;border:1px solid #d7e3df;border-radius:6px;align-items:center;gap:8px;width:min(420px,42vw);min-height:42px;padding:0 12px;display:flex}.icon-button{background:#fff;border:1px solid #d7e3df;border-radius:6px;place-items:center;width:42px;height:42px;display:grid}.filters{background:#fff;border:1px solid #dce6e3;border-radius:8px;flex-wrap:wrap;justify-content:flex-start;padding:12px}.filters label{color:#60706c;text-transform:uppercase;gap:5px;font-size:12px;font-weight:800;display:grid}.filters select{border:1px solid #d5e1dd;border-radius:6px;min-width:170px;padding:9px 34px 9px 10px}.segmented{background:#f6f8f7;border:1px solid #d7e3df;border-radius:7px;align-self:end;padding:3px;display:flex}.segmented button{text-transform:capitalize;min-height:34px;padding:0 13px}.segmented button.selected{color:#fff;background:#102522}.filter-note{color:#52635f;align-self:end;align-items:center;gap:8px;min-height:40px;font-weight:700;display:inline-flex}.upload-panel{background:linear-gradient(90deg,#0f766e14,#0000 46%),#fff;border:1px solid #d7e3df;border-radius:8px;justify-content:space-between;align-items:center;gap:18px;padding:16px;display:flex}.upload-panel.success{border-color:#9bd3c9}.upload-panel.error{background:linear-gradient(90deg,#b4231814,#0000 46%),#fff;border-color:#f0b8ad}.upload-copy{align-items:center;gap:14px;min-width:0;display:flex}.upload-icon{color:#0f766e;background:#e4f4f1;border-radius:8px;flex:none;place-items:center;width:44px;height:44px;display:grid}.upload-panel.error .upload-icon{color:#b42318;background:#fff0ed}.upload-panel h2{color:#102522;margin:0 0 4px;font-size:16px;line-height:1.2}.upload-panel p{color:#60706c;font-size:13px}.upload-summary{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.upload-summary span{color:#0f766e;background:#eef6f4;border-radius:999px;align-items:center;min-height:24px;padding:0 8px;font-size:12px;font-weight:800;display:inline-flex}.upload-button{color:#fff;cursor:pointer;background:#102522;border-radius:6px;flex:none;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 14px;font-weight:800;display:inline-flex;position:relative}.upload-button input{opacity:0;cursor:pointer;position:absolute;inset:0}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.metric-card,.panel,.table-panel{background:#fff;border:1px solid #dce6e3;border-radius:8px}.metric-card{gap:7px;padding:16px;display:grid}.metric-card span,.insight-row span{color:#60706c;text-transform:uppercase;font-size:12px;font-weight:800}.metric-card strong{color:#102522;font-size:24px;line-height:1.05}.metric-card p{color:#667773;font-size:13px}.main-grid{grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);align-items:start;gap:14px;display:grid}.panel{min-width:0;padding:16px}.panel.wide{grid-column:span 1}.panel h2,.table-header h2{color:#102522;margin:0 0 14px;font-size:17px;line-height:1.2}.merchant-list,.insight-list{gap:10px;display:grid}.merchant-row,.insight-row{background:#fafcfc;border:1px solid #e3ece9;border-radius:6px;align-items:center;gap:10px;padding:10px;display:grid}.merchant-row{grid-template-columns:28px minmax(0,1fr) auto}.rank{color:#0f766e;background:#e4f4f1;border-radius:6px;place-items:center;width:26px;height:26px;font-size:12px;font-weight:800;display:grid}.merchant-row em{color:#0f766e;font-style:normal;font-weight:900}.insight-row strong{color:#102522;font-size:15px}.table-panel{min-width:0;overflow:hidden}.table-header{border-bottom:1px solid #dce6e3;padding:16px}.table-header h2{margin-bottom:4px}.table-wrap{max-height:560px;overflow:auto}table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:960px;font-size:13px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #e4ece9;padding:12px 14px}th{z-index:1;color:#52635f;letter-spacing:0;text-transform:uppercase;background:#f7faf9;font-size:11px;position:sticky;top:0}td{color:#243530;overflow-wrap:anywhere}.description-cell{color:#687974}th:first-child,td:first-child{width:82px}th:nth-child(2),td:nth-child(2){width:86px}th:nth-child(3),td:nth-child(3){width:170px}th:nth-child(4),td:nth-child(4){width:148px}th:nth-child(6),td:nth-child(6){width:150px}.amount-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.amount-cell.debit{color:#102522;font-weight:800}.amount-cell.credit{color:#0f766e;font-weight:800}.category-pill{color:#0f766e;white-space:nowrap;text-overflow:ellipsis;background:#eef6f4;border-radius:999px;max-width:132px;padding:4px 8px;font-size:12px;font-weight:800;display:inline-flex;overflow:hidden}@media (width<=1100px){.app-shell{grid-template-columns:1fr}.sidebar{flex-direction:row;align-items:center;height:auto;position:static;overflow-x:auto}.sidebar nav{grid-auto-columns:max-content;grid-auto-flow:column}.sidebar-footer{display:none}.kpi-grid,.main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.dashboard{padding:16px}.topbar,.top-actions,.upload-panel{flex-direction:column;align-items:stretch}.upload-copy{align-items:flex-start}.search-box{width:auto}.kpi-grid,.main-grid{grid-template-columns:1fr}.metric-card strong{font-size:21px}.sidebar{padding:14px}.brand span{display:none}table{table-layout:fixed;min-width:100%;font-size:10px}th,td{padding:8px 6px}th:first-child,td:first-child{width:52px}th:nth-child(2),td:nth-child(2){width:48px}th:nth-child(3),td:nth-child(3){width:84px}th:nth-child(4),td:nth-child(4){width:86px}th:nth-child(5),td:nth-child(5){display:none}th:nth-child(6),td:nth-child(6){width:86px}.category-pill{max-width:76px;padding:3px 5px;font-size:9px}}
