:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;color:#17382b;background:#f3f7f4;font-size:16px;line-height:1.5;--ink:#17382b;--green:#117451;--muted:#60766a;--line:#d4e3da;--pale:#dcefe4;--surface:#fff}
*{box-sizing:border-box;min-width:0} [hidden]{display:none!important} body{margin:0} button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:44px;white-space:normal}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #4eaa7e;outline-offset:3px}button:active{filter:brightness(.96)}h1,h2,h3,p{margin:0}h1{font-size:2rem;line-height:1.3}h2{font-size:1.35rem}h3{font-size:1.06rem;margin-bottom:8px}.muted,small{color:var(--muted)}.green{color:var(--green)}.orange{color:#ac5b19}
.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10;gap:12px}.brand{display:flex;align-items:center;gap:16px}.brand img{width:74px;height:55px;object-fit:contain}.brand strong{font-size:1.6rem}.draft-tag{font-size:.78rem;font-weight:650;background:#eef4ef;color:var(--muted);padding:4px 8px;border-radius:6px;white-space:nowrap}.header-user{display:flex;align-items:center;gap:14px;color:var(--green);font-weight:650}
.shell{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:calc(100vh - 80px)}.sidebar{position:sticky;top:80px;align-self:start;min-height:calc(100vh - 80px);padding:26px 14px;background:white;border-right:1px solid var(--line);display:grid;align-content:start;gap:12px}.sidebar button{text-align:left;border:0;background:none;color:var(--muted);padding:10px 20px;font-size:1.12rem;border-radius:9px}.sidebar button[aria-current=page]{background:#dcefe4;color:var(--green);font-weight:750}.sidebar button:hover{background:#eef5ef}
main{padding:30px 32px;max-width:1800px;width:100%;margin-inline:auto}.page{display:grid;gap:16px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap}.page-head p{margin-top:5px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.metric{background:white;border:1px solid var(--line);border-radius:13px;padding:16px 19px;display:grid;gap:8px;min-height:132px;text-align:left;color:var(--ink)}.metric>span{font-size:1.06rem;color:var(--muted)}.metric>strong{font-size:1.95rem;font-weight:800;letter-spacing:-.02em;white-space:nowrap}.metric small{font-size:.86rem}.metric-link:hover{border-color:#86b99e;background:#fdfffd}.vehicle-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{border:1px solid var(--line);border-radius:14px;background:white;padding:18px 20px;display:grid;gap:16px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.text-button{border:0;background:transparent;color:var(--green);font-weight:700;padding:6px 9px}.text-button:hover{text-decoration:underline}.prepaid-overview{display:flex;justify-content:space-between;gap:12px;color:var(--green);font-size:1.24rem;font-weight:700}.progress{height:18px;border-radius:12px;background:#e1e9e3;overflow:hidden}.progress span{height:100%;width:0%;display:block;background:var(--green)}.progress-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:.88rem}
.table-wrap{overflow:auto;width:100%;border-radius:4px}table{width:100%;min-width:760px;border-collapse:collapse;text-align:left;font-size:.94rem}th{background:#eaf2ed;color:var(--muted);font-size:.91rem;padding:13px 12px;font-weight:700;white-space:nowrap}td{padding:20px 12px;border-bottom:1px solid var(--line)}td.empty{text-align:center;color:var(--muted);height:140px;font-size:.98rem}footer{margin-top:34px;color:var(--muted);font-size:.86rem;padding-bottom:15px}
.primary,.secondary,.outline{border-radius:10px;padding:9px 18px;font-weight:700;border:1px solid transparent}.primary{color:white;background:var(--green)}.secondary{color:var(--green);background:var(--pale)}.outline{color:var(--green);background:white;border-color:#9bcab0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wide{grid-column:1/-1}label{display:grid;gap:5px;color:#385446;font-weight:650;font-size:.95rem}input,select,textarea{border:1px solid #c6dbcd;border-radius:9px;background:#f8fbf8;padding:10px 12px;color:var(--ink);width:100%;min-height:45px}input::placeholder{color:#7c8d83}.form-actions{display:flex;justify-content:flex-end;gap:10px}.draft-note{background:#f0f5f1;border:1px solid var(--line);border-radius:10px;padding:11px 13px;font-size:.9rem;color:var(--muted)}.contact-list{display:grid;gap:12px;margin:10px 0}.contact-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.check{display:flex;align-items:center;gap:7px;min-height:45px;font-size:.9rem}.check input{width:17px;min-height:17px;accent-color:var(--green)}.filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.filters label{flex:1 1 150px}.filters button{flex-shrink:0}.empty-actions{display:flex;justify-content:end}.segments{display:flex;gap:5px;background:#eef5ef;padding:4px;border-radius:10px}.segments button{border:0;background:none;color:var(--muted);padding:7px 13px;border-radius:7px;font-size:.91rem}.segments button[aria-pressed=true]{background:var(--green);color:white;font-weight:750}
dialog{border:1px solid var(--line);background:#fff;color:var(--ink);width:min(94vw,620px);max-height:85dvh;overflow:auto;padding:20px;border-radius:16px;box-shadow:0 16px 50px #17382b30}dialog::backdrop{background:#17382b55}.modal-form{display:grid;gap:16px}.icon-close{background:none;border:0;color:var(--muted);font-size:1.7rem;width:44px;padding:0}.receipt-placeholders{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.receipt-placeholders>div{border:1px dashed #aac7b6;border-radius:10px;background:#f8fbf8;padding:25px 10px;text-align:center}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:20px}.login-card{background:white;border:1px solid var(--line);border-radius:18px;padding:30px;width:min(100%,420px);display:grid;gap:20px;text-align:center}.login-logo{margin:auto;width:92px;height:72px;object-fit:contain}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 17px;background:#17382b;color:white;border-radius:10px;z-index:100;width:max-content;max-width:90vw;text-align:center;box-shadow:0 6px 20px #17382b33}
@media(max-width:1000px){.shell{grid-template-columns:185px minmax(0,1fr)}main{padding:22px}.sidebar{padding:20px 10px}.sidebar button{font-size:1rem;padding-inline:13px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.topbar{height:62px;padding:0 13px}.brand{gap:7px}.brand img{width:43px;height:41px}.brand strong{font-size:1.13rem}.brand .draft-tag{display:none}.header-user{font-size:.84rem;gap:4px}.header-user>span{display:none}.shell{display:block;min-height:calc(100vh - 62px)}.sidebar{position:sticky;top:62px;z-index:9;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:7px;background:#fff;border-right:0;border-bottom:1px solid var(--line);min-height:0}.sidebar button{font-size:.92rem;padding:8px 3px;text-align:center;min-height:42px}.sidebar button[aria-current=page]{font-weight:750}main{padding:18px 12px}.page-head{align-items:center}.page-head h1{font-size:1.6rem}.card{padding:14px 12px;gap:12px}.metric-grid{gap:9px}.metric{padding:12px;min-height:110px}.metric>span{font-size:.88rem}.metric>strong{font-size:1.5rem}.metric small{font-size:.78rem}.vehicle-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.vehicle-metrics .metric{padding:10px;min-height:88px}.vehicle-metrics .metric>strong{font-size:1.22rem}.card-heading h2{font-size:1.12rem}.prepaid-overview{font-size:1rem;gap:8px;flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.contact-row{grid-template-columns:1fr}.form-actions{justify-content:stretch}.form-actions button{flex:1}.filters{gap:8px}.filters label{flex:1 1 130px}.filters button{flex:1}table{min-width:680px}.receipt-placeholders{grid-template-columns:1fr}.receipt-placeholders>div{padding:16px}.segments button{padding-inline:9px}.draft-note{font-size:.83rem}footer{margin-top:22px}}
.account-status{font-size:.85rem;padding:4px 9px;border-radius:6px;background:#dcefe4;color:#117451;white-space:nowrap}.account-status.inactive{background:#f3e5df;color:#a33b21}.cycle-field{display:grid;gap:5px;color:#385446;font-weight:650;font-size:.95rem}.cycle-field output{display:block;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#eef3ef;color:var(--muted);font-weight:500}.cycle-field small{font-weight:400}.contact-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto}.contact-delete{color:#a33b21;border-color:#e2b6a9}.photo-field{display:grid;gap:8px}.photo-drop{display:grid;gap:10px;text-align:center;border:1px dashed #9bcab0;border-radius:10px;background:#f8fbf8;padding:14px}.photo-drop:focus-visible{outline:3px solid #4eaa7e}.photo-drop input{background:#fff}.photo-drop #photoPreview{display:grid;gap:7px;justify-items:center}.photo-drop img{max-width:100%;max-height:200px;object-fit:contain;border-radius:6px}.photo-drop #photoError{color:#a33b21;font-size:.85rem}.login-card label{text-align:left}
@media(max-width:680px){.contact-row{grid-template-columns:1fr}.contact-delete{justify-self:end}.account-status{font-size:.72rem;padding:3px 5px}.header-user{gap:4px}.header-user .text-button{padding-inline:4px}.header-user>span{display:none}}
.account-status,.account-status.inactive{background:transparent;padding-inline:0}
#billDialog{width:min(94vw,860px)}
.bill-summary-card{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}.bill-summary-amount{display:grid;gap:5px;min-width:180px}.bill-summary-amount>span{color:var(--muted);font-size:1.06rem}.bill-summary-amount>strong{font-size:2rem;line-height:1.15;font-weight:800}.bill-summary-card .filters{flex:0 1 auto;min-width:min(360px,100%);justify-content:flex-end}.bill-summary-card .filters label{flex:1 1 150px}
@media(max-width:680px){.bill-summary-card{gap:16px}.bill-summary-card .filters{width:100%;justify-content:stretch}.bill-summary-card .filters button{flex:0 0 auto}}
.bill-filter-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:min(360px,100%)}.bill-filter-cards button{min-height:56px;background:#f8fbf8;border-color:#c6dbcd;color:var(--green);white-space:nowrap}.bill-filter-cards button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green);font-weight:750}
@media(max-width:680px){.bill-filter-cards{width:100%;gap:7px}.bill-filter-cards button{min-height:48px;padding-inline:6px}}
.bill-unpaid{color:#ab3029}.bill-photo-button{white-space:nowrap;font-weight:500;padding-inline:4px}.bill-photo-placeholder{grid-template-columns:1fr}#billDialog{width:min(95vw,1120px)}#billDialog table{min-width:1010px}#billPhotoDialog{width:min(94vw,480px)}
#photoViewer{display:grid;gap:10px;text-align:center}#photoViewer img{max-width:100%;max-height:65dvh;object-fit:contain;margin:auto}#photoNav{align-items:center;justify-content:space-between}#loginError,#vehicleError{color:#ab3029}input:read-only{background:#eef3ef}button:disabled{opacity:.55;cursor:not-allowed}.header-user #headerName{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-user .text-button{white-space:nowrap}

.bill-outstanding{font-weight:400}

.cycle-inline{font-size:.95rem;color:#385446;font-weight:650;line-height:1.5}

.contact-row.primary-contact{grid-template-columns:minmax(0,1fr) auto auto}.contact-row.primary-contact>label:nth-child(2){display:none}@media(max-width:680px){.contact-row.primary-contact{grid-template-columns:1fr}}

.vehicle-status-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:min(270px,100%)}.vehicle-status-filters button{min-height:45px;background:#f8fbf8;border-color:#c6dbcd;color:var(--green);white-space:nowrap}.vehicle-status-filters button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}@media(max-width:680px){.vehicle-status-filters{flex:1 1 190px;min-width:min(190px,100%);gap:5px}.vehicle-status-filters button{padding-inline:6px}}

.bill-detail-amount{font-weight:400}

.topbar .brand{flex:1 1 auto;min-width:0}.topbar .brand img{flex:none}.topbar .brand #headerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.topbar .header-user{flex:none}

.header-clock{color:var(--muted);font-size:.9rem;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.topbar .header-clock{display:block}@media(max-width:900px){.topbar .header-user{gap:8px}.header-clock{font-size:.82rem}}@media(max-width:680px){.topbar{height:104px;gap:5px;padding-block:7px;flex-wrap:wrap}.topbar .brand{flex:1 1 100%;height:40px}.topbar .header-user{width:100%;justify-content:flex-end;gap:8px}.header-clock{font-size:.72rem;white-space:normal}.sidebar{top:104px}.shell{min-height:calc(100vh - 104px)}}

.bill-actions{white-space:nowrap}.bill-actions .text-button{padding-inline:7px}

.prepaid-empty{text-align:center;justify-items:center;padding:48px 20px;min-height:190px;align-content:center;gap:10px}.prepaid-empty h2{margin:0;font-size:23px}.prepaid-empty p{margin:0;font-size:17px;color:var(--muted,#527063)}

.metric #overviewSavings{color:var(--green);font-weight:650}.metric #overviewSavings.adverse{color:#ac5b19}.metric #overviewBilled,.metric #overviewUnbilled{white-space:normal;font-variant-numeric:tabular-nums}.bill-receipt-section{display:grid;gap:6px;border-top:1px solid var(--line);padding-top:14px}#billDialog .bill-receipt-table{min-width:420px}.bill-receipt-table td{padding:12px}.bill-receipt-section h3{margin:0}

.history-total{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:1px solid var(--line);border-radius:10px;background:#f8fbf8;padding:12px}.history-total>div{display:grid;gap:3px}.history-total span{font-size:.82rem;color:var(--muted)}.history-total strong{font-size:1.12rem;overflow-wrap:anywhere}.history-total small{font-size:.75rem}#prepaidRatioBar{width:100%;height:18px;accent-color:var(--green)}#prepaidProgress .progress-caption{gap:10px;flex-wrap:wrap}#prepaidLowNotice{color:#ac5b19;background:#fff8ed;border-color:#eed9b7}@media(max-width:680px){.history-total{gap:7px;padding:9px}.history-total strong{font-size:.98rem}}

#changePasswordError{color:#ab3029}#changePasswordDialog,#forgotPasswordDialog{width:min(94vw,500px)}#accountSecurity .muted{font-size:.85rem;margin-top:3px}#forgotPasswordOpen{justify-self:center}

.mobile-only{display:none!important}.mobile-entry-link{display:none;color:var(--green);font-weight:650;text-align:center}@media(max-width:680px){.mobile-entry-link{display:block}}
