:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#27304d;background:#f7f8fc;font-size:14px;font-synthesis:none;-webkit-font-smoothing:antialiased;--purple:#7152d0;--violet:#8866dc;--purple-bg:#f1edff;--ink:#27304d;--muted:#8992a7;--line:#e7eaf2;--surface:#fff;--good:#28845c;--warning:#b57831;--danger:#c34e5e}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a18af180;outline-offset:2px}.app-shell{min-height:100vh;display:grid;grid-template-columns:242px minmax(0,1fr)}.sidebar{display:flex;flex-direction:column;background:white;border-right:1px solid var(--line);padding:28px 15px;position:sticky;top:0;height:100vh;z-index:2}.side-brand{display:flex;align-items:center;gap:12px;padding:0 12px}.brand-mark{display:grid;place-items:center;width:41px;height:41px;border-radius:13px;background:linear-gradient(145deg,#9b79f4,#5941c1);color:#fff;font-size:25px;font-weight:900;box-shadow:0 5px 14px #7f66cd40}.side-brand strong{display:block;font-size:19px;letter-spacing:-.5px}.side-brand small{font-weight:750;font-size:9px;color:#8a90a4;letter-spacing:1.5px}.side-caption{padding:49px 14px 15px;font-size:10px;letter-spacing:1.2px;font-weight:850;color:#a5a9b8}.side-nav{display:grid;gap:7px}.nav-link{border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:11px;color:#656e86;font-weight:660;font-size:13px}.nav-link:hover{background:#f8f6ff;color:#6650c3}.nav-link.active{background:#f1edff;color:#6549c4}.nav-symbol{font-size:18px;width:19px;text-align:center;color:#957ddd}.side-footer{margin-top:auto;background:#f8f8fc;border:1px solid #eeeeF7;padding:14px;border-radius:12px;color:#68728b;font-size:11px;line-height:1.8}.side-footer small{color:#9aa2b3}.live-dot{display:inline-block;width:7px;height:7px;background:#3db88b;border-radius:50%;margin-right:6px}
.main-area{min-width:0}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 clamp(18px,3vw,42px);gap:14px}.breadcrumbs{display:flex;align-items:center;gap:10px;color:#a0a7b7;font-size:11px;white-space:nowrap}.breadcrumbs b{color:#606a83}.top-actions{display:flex;gap:12px;align-items:center}.demo-label{font-size:10px;background:#f8f3e7;color:#a37528;padding:7px 10px;border-radius:99px;font-weight:700;white-space:nowrap}.page-content{max-width:1320px;margin:0 auto;padding:30px clamp(18px,3vw,42px) 70px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.page-head h1{font-size:27px;font-weight:800;letter-spacing:-.7px}.page-head p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:7px}.page-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.button{border:1px solid transparent;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 16px;white-space:nowrap;background:var(--purple);color:white;font-size:12px;font-weight:730;min-height:38px;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:#6142c8}.button.secondary{color:#6a4fc4;background:#f4f0ff;border-color:#e5dcfd}.button.secondary:hover{background:#eae3ff}.button.subtle{color:#70788d;background:#fff;border-color:#e4e7ef}.button.subtle:hover{background:#f8f9fc}.button.danger{background:#fff;color:var(--danger);border-color:#efccd3}.button.danger:hover{background:#fff4f5}.button.small{min-height:30px;padding:7px 11px;font-size:11px}.button.icon{padding:7px 10px;min-width:31px}.button.full{width:100%}.button.secondary:disabled{background:#f7f5ff}.text-button{padding:0;border:none;background:none;color:var(--purple);font-weight:750;font-size:12px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.kpi{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 2px 12px #25234a06}.kpi.highlight{background:linear-gradient(135deg,#8063dc,#654bcc);color:white;border-color:transparent;box-shadow:0 6px 20px #8063dc35}.kpi .kpi-label{font-size:11px;color:#8e97a8;font-weight:650}.kpi.highlight .kpi-label{color:#ece5ff}.kpi .kpi-value{font-size:clamp(17px,2vw,22px);font-weight:850;letter-spacing:-.6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:9px 0}.kpi small{font-size:10px;color:#a9afbc}.kpi.highlight small{color:#e6dbff}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 2px 14px #22204406;min-width:0}.card-head{padding:20px 22px;border-bottom:1px solid #eef0f6;display:flex;justify-content:space-between;align-items:center;gap:10px}.card-head h2{font-size:15px;font-weight:800}.card-head small{font-size:11px;color:var(--muted)}.card-body{padding:20px 22px}.card-actions{display:flex;gap:8px;flex-wrap:wrap}.filter-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr 1.45fr auto;gap:10px;align-items:end}.field{display:grid;gap:6px;min-width:0}.field label,.group-label{font-size:11px;font-weight:750;color:#7c8599}.field input,.field select,.field textarea,.input{width:100%;background:#fff;border:1px solid #dfe3ee;border-radius:9px;padding:10px 11px;color:#293550;min-height:39px;font-size:12px;min-width:0}.field textarea{resize:vertical;min-height:73px;line-height:1.5}.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:#a893ed;box-shadow:0 0 0 3px #a996eb2d}.field small,.help{font-size:11px;color:var(--muted);line-height:1.5}.filters{padding:17px 22px;border-bottom:1px solid var(--line)}.hint{color:var(--muted);font-size:11px;margin-top:9px}.table-scroll{overflow-x:auto;max-width:100%;scrollbar-width:thin}.table{width:100%;border-collapse:collapse;min-width:820px;font-size:12px}.table th{color:#929aac;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.3px;background:#fbfcff;padding:12px 16px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:14px 16px;border-bottom:1px solid #f0f1f5;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#faf9ff}.table .name{font-size:12px;font-weight:780;color:#313953}.table .sub{font-size:10px;color:#a0a7b4;margin-top:3px}.table .nowrap{white-space:nowrap}.table .number{text-align:right;font-variant-numeric:tabular-nums}.tag{display:inline-block;font-size:10px;padding:5px 8px;border-radius:7px;background:#f3f0ff;color:#755ac8;font-weight:750;white-space:nowrap}.tag.container{background:#edf5ff;color:#4775b8}.tag.paid{background:#e8f8f0;color:#2c8b65}.tag.partial{background:#fff3e6;color:#ad782d}.tag.unpaid{background:#f1f3f6;color:#9199a7}.tag.neutral{background:#f3f5f8;color:#718098}.row-actions{display:flex;gap:5px;justify-content:flex-end}.cell-button{background:transparent;border:0;color:#8663d9;font-size:11px;font-weight:760;padding:4px;white-space:nowrap}.cell-button:hover{text-decoration:underline}.cell-button.delete{color:#c76572}
.stack{display:grid;gap:18px}.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.batch-card{padding:18px 20px}.batch-top{display:flex;justify-content:space-between;gap:12px;align-items:start}.batch-top h3{font-size:14px;font-weight:800}.batch-top p{color:var(--muted);font-size:11px;margin-top:5px}.batch-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:10px 0;border-bottom:1px solid #f1f2f6;gap:7px}.batch-row:last-child{border-bottom:0}.batch-row strong{font-variant-numeric:tabular-nums}.batch-total{background:#f7f5ff;border-radius:10px;margin-top:10px;padding:13px 12px;display:flex;justify-content:space-between;font-weight:800;color:#5d49ae}.section-eyebrow{font-size:10px;letter-spacing:1px;color:#a5a2b5;font-weight:850;margin-bottom:13px}.section-title{font-size:16px;font-weight:800;margin-bottom:10px}.explain{border-left:3px solid #b9a5f0;background:#f8f6ff;padding:11px 14px;border-radius:0 9px 9px 0;color:#70618c;font-size:12px;line-height:1.7}.empty{padding:32px;text-align:center;color:#9da5b5;font-size:12px}.empty strong{display:block;color:#59627b;font-size:15px;margin-bottom:9px}.demo-flow{display:flex;gap:5px;align-items:center;flex-wrap:wrap;font-size:11px;color:#7e89a0;margin-top:10px}.flow-item{background:#f5f6fb;border:1px solid #edf0f6;padding:6px 9px;border-radius:7px}.flow-arrow{color:#aa9ad3}
.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:20px;align-items:start}.form-main{display:grid;gap:18px}.form-card{padding:21px}.form-section-head{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:780;margin-bottom:18px}.step{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:#f1edff;color:#7551cc;font-size:12px;font-weight:800}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid .wide{grid-column:span 2}.chips{display:flex;gap:9px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #e5e5ed;border-radius:9px;padding:8px 11px;font-size:11px;color:#626a80;cursor:pointer;user-select:none}.chip input{width:15px;height:15px;accent-color:#795bd1;margin:0}.chip.checked{background:#f2efff;border-color:#bfaef7;color:#684ac1;font-weight:700}.mode-selector{display:flex;gap:7px;flex-wrap:wrap}.mode{padding:10px 12px;font-size:11px;border-radius:9px;border:1px solid var(--line);background:#fff;color:#6b7385;font-weight:740}.mode.active{background:#ede8ff;border-color:#bbaaf0;color:#694dc0}.vehicle-row{border:1px solid #e7e6f0;border-radius:12px;background:#fcfcff;padding:13px;margin-bottom:10px}.vehicle-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.vehicle-top strong{font-size:12px}.row-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.vehicle-row .field label{font-size:10px}.form-side{position:sticky;top:20px}.summary-card{padding:20px;background:#fff}.summary-card .summary-title{font-size:14px;font-weight:800}.summary-line{display:flex;justify-content:space-between;gap:8px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.summary-line:last-of-type{border:0}.summary-line strong{font-variant-numeric:tabular-nums}.summary-big{font-size:26px;color:#6749c5;font-weight:850;letter-spacing:-.9px;margin:7px 0 17px}.notice{background:#f0f7ff;border:1px solid #d9e7fb;border-radius:10px;padding:12px;color:#5876a8;font-size:11px;line-height:1.65;margin:12px 0}.price-panel{background:#f8f6ff;border-radius:11px;padding:15px;display:grid;gap:11px;margin-top:12px}.form-bottom{display:flex;justify-content:flex-end;gap:9px;padding:3px 0 18px}.alert{padding:12px 14px;background:#fff5f4;border:1px solid #f4dddd;color:#b34d5c;font-size:12px;border-radius:10px;margin-bottom:12px}.success{padding:12px 14px;background:#effaf4;border:1px solid #d9f1e3;color:#29845d;font-size:12px;border-radius:10px;margin-bottom:12px}.small-meta{font-size:10px;color:var(--muted)}.money{font-variant-numeric:tabular-nums;letter-spacing:-.2px}.pay-select{max-width:500px}.payment-form{display:grid;gap:13px}.payment-list{display:grid;gap:10px}.payment-entry{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fcfcff;border:1px solid #edeef5;border-radius:10px;padding:12px 15px}.payment-entry strong{font-size:14px}.payment-entry small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.divider{border:0;border-top:1px solid var(--line);margin:14px 0}.progress-track{height:6px;border-radius:6px;background:#ebeaf5;overflow:hidden;margin-top:12px}.progress-value{height:100%;background:#795ad3;border-radius:6px;transition:width .2s}.guide-step{padding:15px 0;border-bottom:1px solid var(--line);display:flex;gap:14px}.guide-step:last-child{border-bottom:0}.guide-no{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:9px;background:#f0ecff;color:#7752c6;font-size:11px;font-weight:900}.guide-step h3{font-size:13px;margin-bottom:5px}.guide-step p{font-size:12px;line-height:1.65;color:#788196}.footer-note{color:#a6a9b8;font-size:10px;margin-top:20px}
#modal-root .overlay{position:fixed;inset:0;background:#151a3485;z-index:10;display:flex;align-items:center;justify-content:center;padding:15px}#modal-root .dialog{width:min(490px,100%);max-height:90vh;overflow:auto;background:white;border-radius:17px;box-shadow:0 20px 70px #0e14345c;padding:25px}#modal-root .dialog h2{font-size:19px;letter-spacing:-.3px;margin-bottom:11px}#modal-root .dialog p{font-size:12px;line-height:1.65;color:#788096;margin-bottom:17px}#modal-root .dialog .buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.toast-area{position:fixed;right:20px;bottom:20px;z-index:20;pointer-events:none}.toast{padding:12px 17px;border-radius:11px;background:#27304d;color:white;font-size:12px;box-shadow:0 8px 30px #171a3040;max-width:380px;line-height:1.5}
@media(max-width:1200px){.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-grid .search-field{grid-column:span 2}.filter-grid .filter-action{align-self:end}.kpi-grid{gap:9px}.kpi{padding:14px}.form-layout{grid-template-columns:minmax(0,1fr) 270px}}
@media(max-width:960px){.app-shell{grid-template-columns:72px minmax(0,1fr)}.sidebar{padding:20px 9px}.side-brand{padding:0 5px}.side-brand strong,.side-brand small,.side-caption,.side-footer,.nav-link{font-size:0}.side-brand>div:last-child{display:none}.nav-link{justify-content:center;padding:12px}.nav-symbol{font-size:22px;width:24px}.side-footer{font-size:0;height:38px;padding:12px}.side-footer small{display:none}.side-footer .live-dot{margin:0}.form-layout{grid-template-columns:1fr}.form-side{position:static;order:-1}}
@media(max-width:680px){.app-shell{display:block}.sidebar{position:sticky;top:0;height:auto;display:flex;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--line);padding:10px 13px;gap:10px}.side-brand{display:none}.side-nav{display:flex;gap:2px;overflow:auto;width:100%}.nav-link{flex:1 0 auto;justify-content:center;gap:5px;padding:8px;font-size:10px;white-space:nowrap}.nav-symbol{font-size:14px;width:auto}.side-footer,.side-caption{display:none}.topbar{height:49px;padding:0 15px}.breadcrumbs{font-size:10px;gap:6px}.breadcrumbs span:last-child{display:none}.top-actions{gap:5px}.demo-label{font-size:9px;padding:6px 8px}.top-actions .button{font-size:0;min-width:35px;padding:5px}.top-actions .button::first-letter{font-size:12px}.page-content{padding:19px 13px 50px}.page-head{align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:17px}.page-head h1{font-size:23px}.page-head p{font-size:11px}.page-actions{width:100%}.page-actions .button{flex:1}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kpi .kpi-value{font-size:19px}.card-head,.card-body{padding:16px}.filters{padding:14px}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.filter-grid .search-field{grid-column:span 2}.filter-grid .filter-action{grid-column:span 2}.filter-grid .filter-action .button{width:100%}.two-col{grid-template-columns:1fr}.form-card{padding:16px}.form-grid{gap:11px}.row-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-side{order:-1}.dialog{padding:19px!important}.payment-entry{align-items:flex-start}.payment-entry .button{margin-top:5px}.sidebar .nav-link.active{background:#ede6ff}}
@media(max-width:380px){.nav-link{font-size:9px;gap:3px}.nav-symbol{display:none}.breadcrumbs a{display:none}.breadcrumbs span:first-of-type{display:none}.kpi .kpi-value{font-size:16px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:span 1}}
