:root{--navy:#34361f;--blue:olive;--blue-soft:#f0f0dc;--ink:#292b21;--muted:#737566;--line:#e6e6dd;--surface:#fff;--background:#f4f7f8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{color:var(--ink);background:var(--background);margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.68}.login-page{background:radial-gradient(circle at top left, #eeeece, transparent 38%), var(--background);place-items:center;min-height:100vh;padding:28px;display:grid}.login-card{border:1px solid var(--line);background:#fff;border-radius:18px;width:min(430px,100%);padding:36px;box-shadow:0 24px 70px #11283f1f}.login-brand{align-items:center;gap:11px;display:flex}.login-brand-logo{object-fit:contain;width:190px;height:auto}.login-copy{margin:35px 0 25px}.login-copy h1{letter-spacing:-.03em;margin:7px 0 8px;font-size:27px}.login-copy>p:last-child{color:var(--muted);margin:0;line-height:1.55}.login-form{gap:8px;display:grid}.login-form>label{color:#40505d;margin-top:9px;font-size:12px;font-weight:700}.login-input{color:#83939d;border:1px solid #d9e1e6;border-radius:9px;align-items:center;gap:10px;height:44px;padding:0 13px;display:flex}.login-input:focus-within{border-color:olive;box-shadow:0 0 0 3px #8080001c}.login-input input{width:100%;color:var(--ink);background:0 0;border:0;outline:0}.login-submit{width:100%;margin-top:15px}.login-error{color:#b43f34;margin:7px 0 0;font-size:12px}.login-warning{color:#7a5b19;background:#fff5d9;border-radius:8px;margin:-7px 0 15px;padding:11px 12px;font-size:11px;line-height:1.5}.app-shell{min-height:100vh;display:flex}.sidebar{color:#dce7ed;background:var(--navy);z-index:30;flex-direction:column;width:248px;padding:22px 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;min-height:82px;padding:7px 8px 24px;display:flex}.brand-logo{object-fit:contain;background:#fff;border-radius:8px;width:100%;height:auto;padding:8px}nav{gap:5px;display:grid}.nav-item{color:#b8c8d1;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;width:100%;min-height:43px;padding:0 12px;text-decoration:none;display:flex}.nav-item:hover,.nav-item.active{color:#fff;background:#ffffff17}.nav-item.active{box-shadow:inset 3px 0 #b1b15a}.nav-count,.alert-dot{margin-left:auto;font-size:11px}.nav-count{background:#ffffff14;border-radius:10px;padding:3px 7px}.alert-dot{color:#fff;background:#e67e45;border-radius:50%;place-items:center;width:20px;height:20px;display:grid}.nav-label{color:#6e8998;letter-spacing:.12em;margin:25px 12px 8px;font-size:10px;font-weight:700}.content{width:calc(100% - 248px);margin-left:248px}.topbar{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;height:68px;padding:0 34px;display:flex}.topbar-title{color:var(--muted);font-size:13px}.topbar-actions,.user-chip{align-items:center;display:flex}.topbar-actions{gap:18px}.icon-button{color:#637381;background:0 0;border:0;place-items:center;display:grid;position:relative}.notification-dot{background:#ee7444;border:2px solid #fff;border-radius:50%;width:7px;height:7px;position:absolute;top:1px;right:1px}.user-chip{gap:9px}.user-chip strong,.user-chip span{display:block}.user-chip strong{font-size:12px}.user-chip span{color:var(--muted);margin-top:2px;font-size:10px}.avatar{color:#5d5d00;background:#eeeece;border-radius:9px;place-items:center;width:34px;height:34px;font-weight:750;display:grid}.page{max-width:1320px;margin:0 auto;padding:36px 38px 60px}.page-heading{justify-content:space-between;align-items:flex-end;gap:25px;display:flex}.eyebrow{letter-spacing:.13em;font-weight:800;color:#787800!important;font-size:10px!important}.page-heading h1{letter-spacing:-.03em;margin:6px 0 7px;font-size:29px}.page-heading p,.panel-header p{color:var(--muted);margin:0;font-size:13px}.heading-actions{gap:9px;display:flex}.button{border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:41px;padding:0 16px;font-weight:650;display:inline-flex}.button.primary{color:#fff;background:olive;box-shadow:0 5px 15px #5a5a002e}.button.primary:hover{background:#6c6c00}.button.secondary{color:#40505d;background:#fff;border:1px solid #d9e0e5}.stats-grid{grid-template-columns:repeat(4,1fr);gap:15px;margin-top:30px;display:grid}.stat-card{border:1px solid var(--line);background:#fff;border-radius:12px;min-height:133px;padding:22px 23px;position:relative;overflow:hidden;box-shadow:0 3px 13px #1e3a4909}.stat-accent{width:4px;position:absolute;inset:0 auto 0 0}.stat-accent.blue{background:#2a91ac}.stat-accent.red{background:#dd6b5a}.stat-accent.amber{background:#dba83e}.stat-accent.green{background:#4a9b73}.stat-card>span{color:#667783;font-size:12px}.stat-card>strong{letter-spacing:-.03em;margin:10px 0 5px;font-size:27px;display:block}.stat-card p{color:#91a0aa;margin:0;font-size:11px}.panel{border:1px solid var(--line);background:#fff;border-radius:12px;box-shadow:0 3px 13px #1e3a4909}.attention-panel{border-left:4px solid #dda43a;justify-content:space-between;align-items:center;margin-top:16px;padding:15px 19px;display:flex}.attention-panel>div{align-items:center;gap:13px;display:flex}.attention-icon{color:#b47a14;background:#fff4d9;border-radius:9px;place-items:center;width:38px;height:38px;display:grid}.attention-panel p{color:var(--muted);margin:4px 0 0;font-size:12px}.text-button{color:#747400;background:0 0;border:0;font-size:12px;font-weight:700}.table-panel{margin-top:16px;overflow:hidden}.panel-header{justify-content:space-between;align-items:center;padding:20px 22px;display:flex}.panel-header h2{margin:0 0 4px;font-size:17px}.filters{grid-template-columns:minmax(260px,1fr) 130px 180px 180px;gap:9px;padding:0 22px 16px;display:grid}.search-box{color:#8a9aa5;border:1px solid #dce3e7;border-radius:8px;align-items:center;gap:9px;height:40px;padding:0 12px;display:flex}.search-box input{width:100%;color:var(--ink);background:0 0;border:0;outline:0}.filters select,.modal select{color:#44535e;background:#fff;border:1px solid #dce3e7;border-radius:8px;outline:0;height:40px;padding:0 33px 0 12px}.table-wrap{border-top:1px solid var(--line);overflow-x:auto}table{border-collapse:collapse;white-space:nowrap;width:100%}th{color:#85949e;text-align:left;text-transform:uppercase;letter-spacing:.055em;background:#fafbfc;padding:11px 18px;font-size:10px}td{border-top:1px solid #edf0f2;padding:14px 18px;font-size:12px}tbody tr:hover{background:#fbfcfc}.muted{color:#788894}.company-mark{color:#686800;background:#efefd7;border-radius:7px;place-items:center;width:25px;height:25px;margin-right:9px;font-size:11px;font-weight:800;display:inline-grid}.author-pill{color:#535f68;background:#eef1f3;border-radius:14px;place-items:center;width:auto;min-width:25px;height:25px;padding:0 8px;font-size:10px;font-weight:700;display:grid}.status{border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700}.status-open{color:#a5483b;background:#fbe8e5}.status-closing{color:#846311;background:#fff2ce}.status-billable{color:#9a6614;background:#ffedc9}.status-invoiced{color:#315e9e;background:#e7effa}.status-paid{color:#28734f;background:#e1f2e8}.status-waiting{color:#846311;background:#fff2ce}.status-cancelled{color:#666f77;background:#eceff1}.status-review{color:#a5483b;background:#fbe8e5}.overdue{color:#c44b3a;font-weight:700}.empty-state{text-align:center;color:var(--muted);padding:35px}.table-summary{border-top:1px solid var(--line);color:var(--muted);text-align:right;background:#fafbfc;padding:13px 22px;font-size:11px}.table-summary strong{color:var(--ink)}.table-summary span{color:#b5bdc2;margin:0 7px}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#08182485;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:15px;width:min(500px,100%);padding:31px;position:relative;box-shadow:0 25px 70px #0000003b}.modal-close{color:#6f7f89;background:0 0;border:0;position:absolute;top:17px;right:17px}.modal-icon{color:#747400;background:#f0f0dc;border-radius:12px;place-items:center;width:48px;height:48px;display:grid}.modal h2{margin:19px 0 7px;font-size:22px}.modal>p{color:var(--muted);margin:0 0 22px;font-size:13px}.modal form>label:not(.drop-zone){gap:7px;font-size:12px;font-weight:650;display:grid}.new-case-form{gap:14px;display:grid}.new-case-form input,.new-case-form textarea{width:100%;color:var(--ink);background:#fff;border:1px solid #dce3e7;border-radius:8px;outline:0;padding:0 12px}.new-case-form input{height:40px}.new-case-form textarea{resize:vertical;min-height:82px;padding-top:10px}.new-case-form input:focus,.new-case-form textarea:focus,.new-case-form select:focus{border-color:#929200;box-shadow:0 0 0 3px #8080001a}.new-case-form .optional{color:var(--muted);font-weight:400}.new-case-form .modal-note,.new-case-form .upload-feedback,.new-case-form .modal-actions{margin-top:0}.drop-zone{color:#71838e;text-align:center;background:#f9fbfb;border:1.5px dashed #b9cbd2;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:150px;margin-top:14px;padding:20px;display:flex}.drop-zone strong{color:#33444f;font-size:12px}.drop-zone span{font-size:10px}.drop-zone input{width:170px;font-size:10px}.modal-note{color:#62737d;background:#f0f5f6;border-radius:8px;margin-top:14px;padding:11px 12px;font-size:11px;line-height:1.55}.upload-feedback{border-radius:8px;margin-top:12px;padding:10px 12px;font-size:11px;line-height:1.45}.upload-feedback.error{color:#9d3429;background:#fdebea}.upload-feedback.success{color:#246a49;background:#e5f4eb}.button:disabled{cursor:wait;opacity:.65}.modal-actions{justify-content:flex-end;gap:9px;margin-top:20px;display:flex}.mobile-menu,.mobile-close{display:none}@media (max-width:1050px){.stats-grid{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:1fr 1fr}.search-box{grid-column:1/-1}}@media (max-width:760px){.sidebar{transition:transform .2s;transform:translate(-100%);box-shadow:15px 0 40px #0003}.sidebar-open{transform:translate(0)}.content{width:100%;margin-left:0}.mobile-menu,.mobile-close{display:grid}.mobile-close{color:#afc0c9;margin-left:auto}.topbar{height:60px;padding:0 18px}.topbar-title,.user-chip div:not(.avatar),.user-chip>svg{display:none}.page{padding:25px 17px 45px}.page-heading{flex-direction:column;align-items:flex-start}.heading-actions{width:100%}.heading-actions .button{flex:1}.stats-grid{grid-template-columns:1fr 1fr;gap:10px;margin-top:23px}.stat-card{min-height:120px;padding:18px}.stat-card>strong{font-size:24px}.attention-panel{align-items:flex-start;gap:15px}.attention-panel .text-button{display:none}.panel-header{padding:17px}.filters{grid-template-columns:1fr;padding:0 17px 14px}.search-box{grid-column:auto}.panel-header .text-button{display:none}}@media (max-width:430px){.stats-grid{grid-template-columns:1fr}.modal{padding:24px}}.review-page{background:var(--bg);min-height:100vh;padding:35px}.review-header{justify-content:space-between;align-items:center;max-width:1100px;margin:0 auto 24px;display:flex}.review-header a{color:#707000;font-size:13px;font-weight:700}.review-card{border:1px solid var(--line);background:#fff;border-radius:14px;max-width:1100px;margin:0 auto;padding:30px}.review-card h1{margin:7px 0;font-size:25px}.review-card>p:not(.eyebrow){color:var(--muted);font-size:13px}.review-table{border:1px solid var(--line);border-radius:10px;margin-top:22px;overflow-x:auto}.review-actions{justify-content:flex-end;align-items:center;gap:18px;margin-top:20px;display:flex}.review-actions span{color:var(--muted);font-size:12px}.review-section-title{align-items:center;gap:9px;margin:26px 0 10px;font-size:17px;display:flex}.review-section-title span{color:#626200;background:#eeeece;border-radius:14px;place-items:center;min-width:25px;height:25px;padding:0 7px;font-size:11px;display:inline-grid}.unmatched-title{margin-top:34px}.unmatched-title span{color:#9d3429;background:#fdebea}.review-help{margin:-3px 0 13px!important}.review-empty{border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:10px;padding:25px}.unmatched-list{gap:10px;display:grid}.unmatched-card{background:snow;border:1px solid #efd8d4;border-radius:10px;grid-template-columns:160px 1fr minmax(280px,1fr);align-items:center;gap:18px;padding:16px;display:grid}.unmatched-card span,.manual-match label{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:10px;font-weight:700;display:block}.unmatched-card>div:first-child strong{margin-top:6px;font-size:16px;display:block}.suggestion-list{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.suggestion-list>span{width:100%}.suggestion-button{min-height:38px;color:var(--ink);text-align:left;background:#fff;border:1px solid #d9e0e5;border-radius:7px;gap:1px;padding:6px 10px;display:grid}.suggestion-button:hover{background:#f8f8e9;border-color:#929200}.suggestion-button small{color:var(--muted);font-size:9px}.manual-match{align-items:flex-end;gap:7px;display:flex}.manual-match label{flex:1}.manual-match input{width:100%;height:39px;color:var(--ink);text-transform:none;background:#fff;border:1px solid #d9e0e5;border-radius:7px;outline:none;margin-top:5px;padding:0 10px}.manual-match input:focus{border-color:#929200}.manual-match .button{white-space:nowrap;min-height:39px;padding:0 11px;font-size:11px}.unmatched-create{border-top:1px solid #efd8d4;grid-column:1/-1;justify-content:space-between;align-items:center;gap:18px;padding-top:13px;display:flex}.unmatched-create>div{gap:3px;display:grid}.unmatched-create small{color:var(--muted);font-size:10px}.unmatched-create form{gap:8px;display:flex}.unmatched-create select{min-width:180px;height:39px;color:var(--ink);background:#fff;border:1px solid #d9e0e5;border-radius:7px;padding:0 10px}.unmatched-create .button{white-space:nowrap;min-height:39px;font-size:11px}@media (max-width:900px){.unmatched-card{grid-template-columns:1fr}.manual-match{max-width:520px}}@media (max-width:620px){.unmatched-create,.unmatched-create form{flex-direction:column;align-items:stretch}.unmatched-create select{width:100%}}
