@font-face{font-family:App;src:local('Segoe UI')}*{box-sizing:border-box}body{margin:0;background:#f6f8fc;color:#1a2742;font-family:App,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #80aaff;outline-offset:3px}a{color:#1769ff;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;font-weight:750}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:16px}p{margin:6px 0}.muted{color:#7b879d}.small{font-size:12px}.mono{font-variant-numeric:tabular-nums}.boot{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.brand-icon{background:#1769ff;color:white;width:38px;height:42px;border-radius:11px;display:grid;place-items:center;box-shadow:0 5px 14px #1769ff22;font-weight:700;font-size:25px}.brand-icon img{width:38px;height:38px}.layout{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid #e5eaf3;padding:28px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:32px}.brand{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:750;letter-spacing:-.5px}.nav{display:grid;gap:8px}.nav button{border:0;background:transparent;text-align:left;padding:13px 15px;color:#5b6b86;border-radius:9px;display:flex;align-items:center;gap:13px;font-weight:550}.nav button:hover{background:#f5f8ff}.nav button.active{background:#eaf2ff;color:#1769ff;box-shadow:inset 3px 0 #1769ff}.icon{font-size:18px;width:23px;text-align:center;font-weight:400}.sidebar-bottom{margin-top:auto;display:grid;gap:16px}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid #edf0f5;padding-top:20px}.avatar{width:38px;height:38px;background:#eaf0fa;color:#587092;border-radius:50%;display:grid;place-items:center;font-weight:650}.logout{border:0;background:transparent;color:#718099;text-align:left;padding:6px}.workspace{padding:30px 36px 48px;min-width:0;max-width:1760px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:27px}.eyebrow{color:#8a97ad;font-size:12px;letter-spacing:.7px;margin-bottom:4px}.top-actions{display:flex;align-items:center;gap:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dfe5f0;background:white;border-radius:8px;padding:11px 17px;color:#354760;font-weight:600;min-height:44px;white-space:nowrap}.btn:hover{background:#f5f8fd}.btn.primary{background:#1769ff;border-color:#1769ff;color:#fff;box-shadow:0 3px 8px #1769ff18}.btn.primary:hover{background:#0b59e6}.btn.subtle{background:#f4f7fc;border-color:transparent}.btn.danger{color:#ba3540;background:#fff4f4}.btn.full{width:100%}.btn.small{padding:7px 11px;min-height:34px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat{background:white;border:1px solid #e2e8f2;padding:22px;border-radius:12px;display:flex;align-items:center;gap:16px}.stat-symbol{width:46px;height:46px;background:#edf5ff;color:#1b70e7;border-radius:12px;display:grid;place-items:center;font-size:22px}.stat-symbol.green{background:#e8f7f2;color:#13876a}.stat-symbol.amber{background:#fff5e5;color:#c78819}.stat-title{color:#7b879d;font-size:12px;margin-bottom:5px}.stat-value{font-size:26px;letter-spacing:-.7px;font-weight:730;font-variant-numeric:tabular-nums}.card{background:#fff;border:1px solid #e3e9f2;border-radius:12px;overflow:hidden}.card-pad{padding:24px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px 24px;border-bottom:1px solid #eef1f6}.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:18px 20px;border-bottom:1px solid #edf1f7;background:#fcfdff}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>label,.field-label{font-size:12px;color:#6a7892;font-weight:600}input,select,textarea{width:100%;border:1px solid #dfe5ef;border-radius:7px;background:white;padding:10px 11px;color:#243650;min-height:42px;outline:none}input:focus,select:focus,textarea:focus{border-color:#5790f6;box-shadow:0 0 0 3px #1769ff12}input[type=checkbox]{width:17px;min-height:17px;accent-color:#1769ff}textarea{resize:vertical;min-height:75px}.filter-footer{display:flex;align-items:center;gap:12px;padding:12px 20px;background:#fcfdff;border-bottom:1px solid #edf1f7;flex-wrap:wrap}.filter-footer .search{flex:1;min-width:170px;max-width:350px}.filter-footer .period{min-width:130px;width:auto}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;color:#7b8aa3;font-weight:600;letter-spacing:.3px;background:#fafcff;padding:14px 20px;white-space:nowrap}td{padding:17px 20px;border-bottom:1px solid #eef1f6;vertical-align:middle;font-size:13px}tbody tr:last-child td{border-bottom:0}tbody tr.clickable{cursor:pointer}tbody tr.clickable:hover{background:#f5f9ff}tbody tr.selected{background:#edf4ff}.amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700;color:#152443}.right{text-align:right}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:5px 9px;font-size:11px;font-weight:600;white-space:nowrap;background:#eef2f8;color:#61718b}.badge:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.badge.approved{background:#e9f8ef;color:#18884d}.badge.pending{background:#fff4df;color:#b4780b}.badge.clarify{background:#fff0e9;color:#c46628}.badge.draft{background:#eff2f7;color:#6e7a90}.receipt-dot{width:32px;height:38px;background:#eef4ff;color:#7197d0;border:1px solid #dce7f8;border-radius:5px;display:grid;place-items:center;font-size:18px}.row-title{display:flex;align-items:center;gap:12px}.table-foot{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-top:1px solid #edf0f6;color:#8792a4;font-size:12px}.empty{text-align:center;padding:65px 24px;color:#8090a7}.empty strong{display:block;color:#435672;font-size:17px;margin-bottom:8px}.empty .btn{margin-top:15px}.split{display:grid;grid-template-columns:230px minmax(0,1fr);gap:25px}.receipt-image{display:block;width:100%;max-height:360px;object-fit:contain;background:#f2f4f7;border:1px solid #e2e7ef;border-radius:8px}.receipt-image.small-preview{width:62px;height:80px;object-fit:cover}.allocation{padding:14px 16px;border:1px solid #e3e9f2;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fcfdff;margin-bottom:10px}.allocation p{margin:2px 0}.detail{margin-top:22px}.detail-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.notice{padding:12px 15px;border-radius:8px;background:#eff5ff;color:#47668e;font-size:12px;line-height:1.6}.notice.success{background:#edf9f0;color:#217a42}.notice.warn{background:#fff7e8;color:#99631a}.notice.error{background:#fff0f0;color:#b13645}.spacer{height:18px}.tabs{display:flex;gap:8px}.tabs .btn.active{background:#eaf2ff;border-color:#bcd3fc;color:#1769ff}.report-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:20px;margin:22px 0}.chart{min-height:300px;padding:12px 15px}.chart svg{width:100%;height:290px;display:block}.chart text{font-family:App,'Segoe UI',sans-serif;font-size:12px;fill:#7b8ba4}.chart .value{fill:#293e5e;font-weight:650}.chart-legend{display:grid;gap:12px;max-height:300px;overflow:auto}.legend-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #f1f3f7}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-brand{background:#f0f5ff;padding:12%;display:flex;flex-direction:column;justify-content:center;gap:27px}.login-brand h1{font-size:44px;line-height:1.2;max-width:440px}.login-brand p{color:#6f82a0;font-size:16px;max-width:370px}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.login-form{width:360px;display:grid;gap:22px}.login-form .brand{margin-bottom:14px}.login-form h2{font-size:27px}.login-error{color:#b13645;min-height:20px;font-size:13px}.feature-row{display:flex;align-items:center;gap:12px;color:#526888}.feature-check{background:white;color:#1769ff;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}dialog{border:0;border-radius:15px;padding:0;max-width:760px;width:calc(100% - 32px);max-height:92vh;box-shadow:0 25px 90px #142d5638;color:#1a2742}dialog::backdrop{background:#16284477;backdrop-filter:blur(3px)}.modal-head{position:sticky;top:0;background:white;display:flex;align-items:center;justify-content:space-between;z-index:2;padding:20px 25px;border-bottom:1px solid #e9edf4}.modal-body{padding:24px;display:grid;gap:19px}.modal-foot{position:sticky;bottom:0;background:white;padding:16px 24px;border-top:1px solid #e9edf4;display:flex;justify-content:flex-end;gap:12px}.close{border:0;background:#f1f4f9;border-radius:7px;width:32px;height:32px;color:#6c7b93;font-size:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-full{grid-column:1/-1}.upload-zone{border:1px dashed #adc5ed;border-radius:10px;background:#f7faff;padding:23px;text-align:center}.upload-zone input{margin-top:12px;background:white;font-size:12px}.photos{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.photo-item{display:grid;gap:4px;justify-items:center}.photo-item img{width:65px;height:80px;object-fit:cover;border:1px solid #dee6f0;border-radius:7px}.part-card{background:#f8faff;border:1px solid #e2eafa;border-radius:10px;padding:16px;margin-top:12px}.part-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;color:#6c7f9a;font-size:12px;font-weight:650}.part-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.alloc-balance{font-weight:650;padding:12px 0;font-size:13px;color:#168353}.alloc-balance.bad{color:#c8791c}.check-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:220px;overflow:auto;background:#f7f9fc;border-radius:8px;padding:13px}.check-label{display:flex;align-items:center;gap:9px}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.list-item{padding:18px 20px;border-bottom:1px solid #edf1f6;display:flex;align-items:center;justify-content:space-between;gap:15px}.list-item:last-child{border:0}.line{height:1px;background:#e6ebf4;margin:20px 0}#toasts{position:fixed;bottom:25px;right:25px;z-index:1000;display:grid;gap:10px}.toast{background:#233955;color:#fff;padding:14px 20px;border-radius:10px;max-width:400px;box-shadow:0 5px 24px #1233}.toast.error{background:#a33a47}.mobile-title{display:none}.checkbox-title{font-weight:600}.network{padding:10px;background:#fff4db;text-align:center;color:#8b620f}.hidden{display:none!important}
@media(min-width:1500px){.workspace{padding:38px 52px}.stat{padding:25px}.stats{gap:22px}td{padding:20px}.card-pad{padding:28px}}
body:has(dialog[open]){overflow:hidden}

@media(max-width:1100px){.layout{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:23px 13px}.brand{font-size:15px}.workspace{padding:25px 22px}.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:16px;gap:10px}.stat-value{font-size:22px}.stat-symbol{width:36px;height:40px}.split{grid-template-columns:170px minmax(0,1fr)}.report-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.layout{display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;height:66px;padding:5px 7px;border:0;border-top:1px solid #e2e9f2;z-index:10;background:#fffffffa}.sidebar>.brand,.sidebar-bottom{display:none}.nav{display:flex;gap:2px;justify-content:space-around;height:100%}.nav button{padding:6px 8px;font-size:10px;display:flex;flex-direction:column;gap:2px;flex:1;justify-content:center}.nav button.active{box-shadow:none}.nav .icon{font-size:19px}.workspace{padding:20px 14px 90px}.topbar{align-items:flex-start;margin-bottom:20px;gap:10px}.topbar h1{font-size:26px}.top-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.top-actions .btn{padding:9px 10px;font-size:12px}.eyebrow{font-size:10px}.stats{gap:8px;margin-bottom:16px}.stat{padding:13px 10px;display:block;border-radius:9px}.stat-symbol{display:none}.stat-title{font-size:10px}.stat-value{font-size:18px}.filters{grid-template-columns:1fr 1fr;gap:10px;padding:13px}.field>label{font-size:11px}.filter-footer{padding:10px 13px}.filter-footer .period{flex:1}.filter-footer .search{max-width:none}.card-head{padding:17px 15px}.card-pad{padding:17px}.table-wrap th,.table-wrap td{padding:13px 12px}.split{display:block}.split>.receipt-images{display:flex;gap:10px;margin-bottom:15px;overflow:auto}.split .receipt-image{width:130px;height:170px;flex-shrink:0}.allocation{padding:12px}.allocation .amount{font-size:14px}.actions{flex-wrap:wrap}.actions .btn{flex:1}.report-grid{margin:16px 0;gap:15px}.tabs{gap:3px}.tabs .btn{font-size:11px;padding:7px}.login-shell{display:block}.login-brand{display:none}.login-form-wrap{min-height:100vh;padding:25px}.login-form{max-width:380px;width:100%}.settings-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-full{grid-column:auto}dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;border-radius:0;margin:0}.modal-body{padding:18px}.modal-head{padding:17px 18px}.modal-foot{padding:14px 18px}.modal-foot .btn{flex:1}.part-fields{grid-template-columns:1fr 1fr}.part-fields .field:nth-child(2){grid-column:1/-1;grid-row:2}.check-list{grid-template-columns:1fr}.mobile-title{display:block}.table-foot{padding:12px}.notice{font-size:11px}#toasts{right:12px;left:12px;bottom:82px}.toast{max-width:none}}

@media(max-width:760px){.modal-foot .btn{flex:1 1 0;min-width:0;white-space:normal;font-size:12px;padding:10px 8px}.stat-value{overflow-wrap:anywhere}.topbar{flex-wrap:wrap}}
.user-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:215px}.audit-entry{border:1px solid #e3e9f2;border-radius:10px;margin-bottom:12px;overflow:hidden}.audit-entry summary{padding:15px;cursor:pointer;background:#f8faff;display:grid;gap:5px}.audit-entry>p,.audit-entry>.notice,.audit-entry>.photos{margin:15px}.audit-changes{padding:0 15px}.audit-change{padding:13px 0;border-top:1px solid #edf0f6;overflow-wrap:anywhere}.audit-values{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:8px}.audit-values.single{grid-template-columns:1fr}.audit-parts{display:grid;gap:10px}.audit-photo{width:75px;height:95px;object-fit:contain;border:1px solid #dfe5ef;border-radius:6px}.history-filters{margin:20px 0}.history-filters>summary{padding:16px 20px;cursor:pointer;font-weight:600}.my-filters{display:grid;gap:14px;padding:0 20px 20px;max-width:650px}.my-expenses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.my-expense{padding:20px;display:flex;flex-direction:column;gap:8px}.my-expense-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.my-expense .actions{margin-top:auto;padding-top:10px}.my-expense h3{overflow-wrap:anywhere}.my-expense .amount{font-size:21px}.actions{flex-wrap:wrap}.hidden{display:none!important}
@media(max-width:760px){.my-expenses{grid-template-columns:1fr}.my-expense{padding:17px}.my-expense .btn{min-height:44px}.audit-values{gap:10px}.audit-photo{width:60px;height:80px}.profile .avatar{flex-shrink:0}}

.expense-page-grid{display:grid;grid-template-columns:minmax(260px,0.8fr) minmax(0,1.2fr);gap:22px;align-items:start}.expense-page-photos{display:grid;gap:20px;margin-top:20px}.expense-page-photos a{display:grid;gap:7px;text-align:center}.expense-page-photos img{display:block;width:100%;max-height:650px;object-fit:contain;background:#f6f8fc;border-radius:8px}.expense-total{font-size:32px;margin:15px 0}.expense-meta{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px 15px}.expense-meta dt{color:#7b879d}.expense-meta dd{margin:0;overflow-wrap:anywhere}.voided-row{background:#f7f8fa;color:#7b879d}.voided-row .amount{text-decoration:line-through;color:#7b879d}.settings-grid .card{display:flex;flex-direction:column}.settings-grid .actions{margin-top:auto;padding-top:18px;justify-content:flex-start}.settings-grid h2{overflow-wrap:anywhere}
@media(max-width:1000px){.expense-page-grid{grid-template-columns:1fr}.expense-page-photos{display:flex;overflow-x:auto}.expense-page-photos a{min-width:180px;max-width:100%;flex:1}.expense-page-photos img{max-height:350px}.expense-meta{grid-template-columns:120px minmax(0,1fr)}}
