:root{
  --navy:#0f172a;--navy2:#153b5b;--blue:#2563eb;--blue2:#1c78a7;
  --cyan:#0891b2;--teal:#0f766e;--green:#15803d;--orange:#d97706;
  --red:#dc2626;--purple:#7c3aed;--text:#0f172a;--muted:#64748b;
  --line:#dbe5ee;--soft:#f1f5f9;--page:#f8fafc;--white:#fff;
  --shadow:0 10px 28px rgba(15,23,42,.07);--radius:18px;
}
*{box-sizing:border-box}html{min-height:100%;background:var(--page)}body{margin:0;min-height:100%;font-family:Inter,Arial,Helvetica,sans-serif;background:var(--page);color:var(--text)}body.modal-open{overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden,[hidden]{display:none!important}
a{color:inherit}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:5000;background:var(--navy);color:#fff;box-shadow:0 8px 24px rgba(15,23,42,.18)}.topbar-inner{max-width:1740px;margin:auto;padding:11px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:950;letter-spacing:-.04em;white-space:nowrap}.brand-mark{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#22d3ee,#2563eb);display:grid;place-items:center;font-size:17px}.top-actions{display:flex;align-items:center;gap:8px}.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;position:relative}.icon-btn:hover{background:rgba(255,255,255,.15)}.notification-count{position:absolute;right:-4px;top:-5px;background:#ef4444;color:#fff;border-radius:999px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;font-size:9px;font-weight:950}.user-chip{display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:6px 9px;background:rgba(255,255,255,.07)}.avatar{width:30px;height:30px;border-radius:9px;background:#2563eb;display:grid;place-items:center;font-weight:950}.user-name{font-size:12px;font-weight:900}.user-role{font-size:9px;color:#cbd5e1;font-weight:800;margin-top:2px}.layout{max-width:1740px;margin:auto;display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 62px)}.sidebar{padding:18px 13px;border-right:1px solid #e2e8f0;background:#fff;position:sticky;top:62px;height:calc(100vh - 62px);overflow:auto}.nav-group{display:grid;gap:5px}.nav-btn{border:0;width:100%;display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:12px;background:transparent;color:#475569;font-weight:850;font-size:12px;text-align:left}.nav-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.nav-btn:hover{background:#f1f5f9;color:#0f172a}.nav-btn.active{background:#eff6ff;color:#1d4ed8}.nav-separator{height:1px;background:#e2e8f0;margin:11px 4px}.install-box{margin-top:18px;border:1px solid #dbeafe;background:#eff6ff;border-radius:13px;padding:11px}.install-box strong{font-size:11px}.install-box p{font-size:10px;color:#475569;line-height:1.4;margin:5px 0 9px}.content{padding:22px;min-width:0}.view{display:none}.view.active{display:block}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.page-head h1{font-size:28px;letter-spacing:-.035em;margin:0}.page-head p{font-size:12px;color:var(--muted);font-weight:700;margin:5px 0 0}.head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.btn{border:0;border-radius:11px;padding:10px 14px;background:var(--blue);color:#fff;font-weight:900;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;transition:filter .14s,transform .14s,box-shadow .14s}.btn:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 8px 20px rgba(37,99,235,.2)}.btn.light{background:#e2e8f0;color:#0f172a}.btn.dark{background:#0f172a}.btn.teal{background:#0f766e}.btn.green{background:#15803d}.btn.orange{background:#d97706}.btn.danger{background:#dc2626}.btn.ghost{background:#fff;color:#334155;border:1px solid #dbe5ee}.btn.small{padding:7px 10px;font-size:10px;border-radius:9px}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:14px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:var(--radius);box-shadow:var(--shadow)}.summary-card{padding:14px 15px;min-width:0;border-top:3px solid #2563eb}.summary-card.green{border-top-color:#16a34a}.summary-card.cyan{border-top-color:#0891b2}.summary-card.orange{border-top-color:#e88a0c}.summary-card.purple{border-top-color:#7c3aed}.summary-card.red{border-top-color:#dc2626}.summary-label{font-size:9.5px;color:#64748b;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.summary-value{font-size:21px;font-weight:950;margin-top:7px;line-height:1.05;overflow-wrap:anywhere}.summary-sub{font-size:10px;color:#64748b;font-weight:700;margin-top:5px;line-height:1.35}.grid{display:grid;gap:13px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:16px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.panel-title{font-size:15px;font-weight:950}.panel-sub{font-size:10.5px;color:#64748b;font-weight:700;margin-top:3px}.active-charge{background:linear-gradient(135deg,#0f172a,#153b5b);color:#fff;border:0;overflow:hidden}.active-charge .panel-sub{color:#cbd5e1}.charge-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:12px 0}.charge-stat{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.07);border-radius:12px;padding:10px}.charge-stat label{display:block;color:#cbd5e1;font-size:9px;font-weight:900;text-transform:uppercase}.charge-stat strong{display:block;font-size:16px;margin-top:5px}.progress{height:8px;background:rgba(255,255,255,.14);border-radius:99px;overflow:hidden}.progress>span{display:block;height:100%;background:linear-gradient(90deg,#22d3ee,#3b82f6);border-radius:inherit}.chart-wrap{height:210px;position:relative}.chart-wrap canvas{width:100%;height:100%}.empty{padding:28px;text-align:center;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;color:#64748b;font-size:12px;font-weight:750;line-height:1.5}.table-card{overflow:hidden}.table-head{padding:14px 15px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;gap:12px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:850px}.table th{background:#f1f5f9;color:#475569;font-size:9.5px;text-transform:uppercase;letter-spacing:.045em;text-align:left;padding:11px;white-space:nowrap}.table td{padding:11px;border-top:1px solid #edf2f7;font-size:11px;vertical-align:middle}.table tr:hover td{background:#f8fafc}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;background:#e2e8f0;color:#334155;font-size:9.5px;font-weight:950;text-transform:uppercase}.badge.active,.badge.finished,.badge.approved,.badge.credited{background:#dcfce7;color:#166534}.badge.pending,.badge.created,.badge.stopping{background:#fef3c7;color:#92400e}.badge.blocked,.badge.error,.badge.canceled,.badge.failed{background:#fee2e2;color:#991b1b}.badge.charging{background:#dbeafe;color:#1d4ed8}.money{font-weight:950}.muted{color:#64748b}.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.quick{padding:14px;display:flex;align-items:center;gap:11px;text-align:left;border:1px solid #e2e8f0;border-radius:15px;background:#fff}.quick-icon{width:39px;height:39px;border-radius:12px;background:#eff6ff;color:#2563eb;display:grid;place-items:center}.quick strong{font-size:12px}.quick span{display:block;font-size:9.5px;color:#64748b;margin-top:3px}.wallet-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border-bottom:1px solid #edf2f7}.wallet-entry:last-child{border-bottom:0}.entry-main{display:flex;align-items:center;gap:10px}.entry-icon{width:35px;height:35px;border-radius:11px;background:#f1f5f9;display:grid;place-items:center;font-weight:950}.entry-amount{font-weight:950;white-space:nowrap}.entry-amount.credit{color:#15803d}.entry-amount.debit{color:#b91c1c}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.rfid-card{padding:15px;position:relative;overflow:hidden}.rfid-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:#2563eb}.rfid-card.blocked:before{background:#dc2626}.rfid-title{font-size:14px;font-weight:950}.rfid-uid{font-family:monospace;font-size:11px;color:#64748b;margin-top:4px}.rfid-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.rfid-stat{background:#f8fafc;border-radius:10px;padding:8px}.rfid-stat label{font-size:8.5px;text-transform:uppercase;color:#64748b;font-weight:900}.rfid-stat strong{font-size:12px;display:block;margin-top:4px}.vehicle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.vehicle-card{padding:15px}.vehicle-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.vehicle-title strong{font-size:14px}.vehicle-meta{font-size:10.5px;color:#64748b;line-height:1.5;margin-top:9px}.document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.doc-card{padding:14px}.doc-code{font-size:14px;font-weight:950}.doc-meta{font-size:10.5px;color:#64748b;line-height:1.5;margin-top:6px}.notification-list{display:grid;gap:8px}.notification{padding:12px 13px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:flex-start;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.notification.unread{border-color:#bfdbfe;background:#eff6ff}.notification-dot{width:9px;height:9px;border-radius:99px;background:#2563eb;margin-top:4px}.notification-title{font-size:11.5px;font-weight:950}.notification-body{font-size:10.5px;color:#475569;line-height:1.45;margin-top:3px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.field label{display:block;font-size:9.5px;font-weight:950;color:#475569;text-transform:uppercase;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 11px;background:#fff;color:#0f172a}.field textarea{min-height:90px;resize:vertical}.field.span2{grid-column:1/-1}.hint{font-size:10.5px;color:#475569;line-height:1.45;background:#eff6ff;border-left:4px solid #2563eb;padding:10px 12px;border-radius:9px}.overlay{position:fixed;inset:0;z-index:20000;background:rgba(15,23,42,.7);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:18px}.overlay[hidden]{display:none}.modal{width:min(820px,96vw);max-height:94vh;background:#fff;border-radius:19px;box-shadow:0 28px 90px rgba(2,6,23,.42);overflow:hidden;display:flex;flex-direction:column}.modal.large{width:min(1180px,98vw)}.modal-head{background:linear-gradient(135deg,#0f172a,#1c78a7);color:#fff;padding:18px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-title{font-size:20px;font-weight:950}.modal-sub{font-size:10.5px;color:#dbeafe;margin-top:4px}.modal-close{width:37px;height:37px;border-radius:11px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font-size:22px}.modal-body{padding:17px 20px;overflow:auto;min-height:0}.modal-foot{padding:13px 20px;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;gap:9px}.pix-box{text-align:center}.pix-image{width:min(250px,70vw);height:auto;border:1px solid #e2e8f0;border-radius:14px;padding:8px;background:#fff}.copy-box{display:flex;gap:7px;margin-top:10px}.copy-box input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:10px}.toast{position:fixed;right:18px;bottom:18px;z-index:30000;padding:12px 16px;border-radius:12px;background:#0f172a;color:#fff;box-shadow:0 14px 45px rgba(15,23,42,.3);max-width:420px;font-size:11px;font-weight:850;display:none}.toast.show{display:block}.toast.error{background:#b91c1c}.toast.success{background:#15803d}.loading{position:fixed;inset:0;z-index:40000;background:rgba(248,250,252,.78);backdrop-filter:blur(2px);display:grid;place-items:center}.spinner{width:42px;height:42px;border:4px solid #cbd5e1;border-top-color:#2563eb;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#0f172a,#153b5b)}.login-card{width:min(430px,100%);background:#fff;border-radius:22px;padding:28px;box-shadow:0 30px 90px rgba(0,0,0,.35)}.login-brand{display:flex;align-items:center;gap:11px;font-size:25px;font-weight:950;letter-spacing:-.04em}.login-card h1{font-size:22px;margin:23px 0 6px}.login-card>p{font-size:11px;color:#64748b;line-height:1.5}.login-form{display:grid;gap:13px;margin-top:19px}.login-error{padding:10px 12px;border-radius:10px;background:#fee2e2;color:#991b1b;font-size:11px;font-weight:850}.login-footer{text-align:center;font-size:9.5px;color:#94a3b8;margin-top:18px}.mobile-nav{display:none;position:fixed;z-index:6000;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e2e8f0;grid-template-columns:repeat(5,1fr);padding:6px 4px max(6px,env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:transparent;color:#64748b;font-size:8px;font-weight:900;display:grid;place-items:center;gap:3px}.mobile-nav button.active{color:#2563eb}.mobile-nav svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
@media(max-width:1250px){.summary-grid{grid-template-columns:repeat(3,1fr)}.card-grid,.vehicle-grid,.document-grid{grid-template-columns:repeat(2,1fr)}.charge-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{display:none}.content{padding:16px 14px 88px}.mobile-nav{display:grid}.topbar-inner{padding:10px 13px}.user-chip .user-text{display:none}.summary-grid{grid-template-columns:repeat(2,1fr)}.quick-actions{grid-template-columns:repeat(2,1fr)}.grid.two{grid-template-columns:1fr}.page-head{align-items:flex-start}.page-head h1{font-size:24px}.head-actions{justify-content:flex-start}.card-grid,.vehicle-grid,.document-grid{grid-template-columns:1fr}.charge-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.summary-grid{grid-template-columns:1fr 1fr}.summary-value{font-size:18px}.quick-actions{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.span2{grid-column:auto}.content{padding-left:10px;padding-right:10px}.panel{padding:13px}.page-head{flex-direction:column}.top-actions .user-chip{padding:5px}.charge-grid{grid-template-columns:1fr 1fr}.table-head{align-items:flex-start;flex-direction:column}}
