.admin{display:flex;min-height:100vh;background:var(--bg)}.admin-side{width:220px;flex:none;background:#0b1220;color:#cbd5e1;padding:16px;display:flex;flex-direction:column;gap:6px}.admin-brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:16px;margin:4px 4px 18px}.admin-logo{width:30px;height:30px;border-radius:9px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:800}.admin-nav{display:flex;flex-direction:column;gap:2px}.admin-nav button{text-align:left;background:transparent;border:0;color:#cbd5e1;font:inherit;font-size:14px;padding:9px 10px;border-radius:8px;cursor:pointer}.admin-nav button:hover{background:#111c33;color:#fff}.admin-nav button.active{background:var(--brand);color:#fff}.admin-side-foot{margin-top:auto;font-size:11px;color:#5b6b85;padding:8px 6px}.admin-main{flex:1;min-width:0;display:flex;flex-direction:column}.admin-top{display:flex;align-items:center;gap:14px;padding:14px 24px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.admin-firm-select{width:200px}.admin-content{padding:24px;display:flex;flex-direction:column;gap:16px;max-width:1280px;width:100%}.admin-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stat{padding:18px}.stat-label{font-size:13px;color:var(--muted)}.stat-value{font-size:26px;font-weight:700;margin-top:6px;font-variant-numeric:tabular-nums}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border)}.card-title{font-size:15px;font-weight:600}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;font-weight:600;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em;padding:10px 18px;border-bottom:1px solid var(--border);background:#f8fafc}.table td{padding:12px 18px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#f8fafc}.money{font-variant-numeric:tabular-nums;font-weight:600}.btn-sm{height:32px;padding:0 12px;font-size:13px}.admin-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.admin-actions select{height:32px;width:140px;font-size:13px}.admin-filter{width:170px;height:36px}.admin-form{display:flex;gap:10px;padding:14px 18px;border-bottom:1px solid var(--border);flex-wrap:wrap}.admin-form input{width:200px;height:36px}.admin-geometry{flex:1 1 100%;width:100%;min-height:48px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;border:1px solid var(--border);border-radius:8px;padding:8px}.zone-map{position:relative;height:380px;margin:0 18px 18px;border-radius:12px;overflow:hidden;background:linear-gradient(rgba(148,163,184,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.16) 1px,transparent 1px),#eef2f7;background-size:32px 32px}.zone-tile{position:absolute;width:256px;height:256px;-webkit-user-select:none;user-select:none;pointer-events:none}.zone-svg{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.zone-overlay{position:absolute;top:0;right:0;bottom:0;left:0;cursor:crosshair}.zone-toolbar{position:absolute;top:10px;left:10px;display:flex;gap:6px;z-index:2}.zone-toolbar .btn{background:#ffffffeb}.zone-hint{position:absolute;bottom:8px;left:10px;right:10px;z-index:2;background:#ffffffe5;border-radius:8px;padding:6px 10px;font-size:12px;color:#334155}.admin-center{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--bg)}.login-card{width:min(420px,100%);display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:26px;box-shadow:0 12px 30px #0f172a14}.login-card h1{font-size:22px}.login-card .muted{margin:0}.dev-code{font-family:ui-monospace,SFMono-Regular,monospace;background:#eff6ff;color:#1d4ed8;border-radius:8px;padding:8px 10px;font-size:13px}.sms-list{display:flex;flex-direction:column;gap:10px;padding:14px 18px}.sms-row{display:grid;grid-template-columns:190px minmax(0,1fr) 120px;gap:10px;align-items:center}.sms-event{font-size:13px;font-weight:600}.sms-row textarea{width:100%;resize:vertical}.sms-text{max-width:460px;font-size:13px;color:#334155}.report-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.report-controls input[type=date]{height:34px;border:1px solid var(--border);border-radius:8px;padding:0 8px;font:inherit;font-size:13px}.report-controls a.btn{text-decoration:none}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.report-lines{padding:8px 18px 16px}.report-lines .kv{border-bottom:1px dashed #e2e8f0}.report-lines .kv:last-child{border-bottom:0}.driver-docs{padding:16px 18px;border-top:1px solid var(--border)}.docs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.doc-card{display:flex;flex-direction:column;gap:6px;border:1px solid var(--border);border-radius:10px;padding:10px;background:#fbfcfe}.doc-card img{width:100%;height:120px;object-fit:cover;border-radius:8px;background:#e2e8f0}.status-chip.pending{background:#fef3c7;color:#92400e}.status-chip.approved{background:#dcfce7;color:#15803d}.status-chip.rejected{background:#fee2e2;color:#b91c1c}@media (max-width: 900px){.report-grid{grid-template-columns:1fr}}@media (max-width: 1000px){.admin-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 760px){.admin-side{display:none}.admin-content{padding:14px}.table{display:block;overflow-x:auto;white-space:nowrap}}.dispatcher{min-height:100vh;background:var(--bg);display:flex;flex-direction:column}.dispatcher-top{display:flex;align-items:center;gap:16px;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap}.dispatcher-top .admin-brand{color:var(--text)}.dispatcher-filters{display:flex;gap:4px;background:#f1f5f9;padding:3px;border-radius:10px}.filter{border:0;background:transparent;font:inherit;font-size:13px;padding:6px 12px;border-radius:8px;cursor:pointer;color:#475569}.filter.active{background:#fff;color:var(--brand);font-weight:600;box-shadow:0 1px 3px #0f172a1a}.dispatcher-body{flex:1;display:grid;grid-template-columns:340px minmax(0,1fr) 340px;gap:14px;padding:16px 20px;align-items:start}.dispatcher-board,.dispatcher-map,.dispatcher-detail{display:flex;flex-direction:column;gap:10px}.dispatcher-orders{display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 160px);overflow:auto;padding-right:4px}.dispatcher-order{text-align:left;font:inherit;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:6px;cursor:pointer}.dispatcher-order:hover{border-color:#c7d2fe}.dispatcher-order.selected{border-color:var(--brand);box-shadow:0 0 0 3px #2563eb1f}.driver-route{font-weight:700;font-size:14px}.preorder-badge{align-self:flex-start;background:#fef3c7;color:#92400e;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600}.map-canvas{position:relative;width:100%;height:380px;border-radius:12px;background:radial-gradient(circle at 30% 20%,#e0f2fe 0,transparent 45%),radial-gradient(circle at 75% 70%,#dcfce7 0,transparent 50%),#eef2f7;overflow:hidden}.map-canvas svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.map-driver{position:absolute;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;background:#94a3b8;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;border:2px solid #fff;box-shadow:0 1px 4px #0f172a40}.map-driver.online{background:#16a34a}.map-driver.partner{background:#f97316}.map-stop{position:absolute;transform:translate(-50%,-50%);width:8px;height:8px;border-radius:50%;background:var(--brand);border:2px solid #fff}.dispatcher-drivers{display:flex;gap:8px;flex-wrap:wrap}.driver-pill{display:flex;align-items:center;gap:6px;font-size:13px;background:#f8fafc;border:1px solid var(--border);border-radius:999px;padding:5px 10px}.dot-online,.dot-offline{width:8px;height:8px;border-radius:50%;display:inline-block}.dot-online{background:#16a34a}.dot-offline{background:#cbd5e1}.kv{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:6px 0;border-bottom:1px dashed #e2e8f0}.dispatcher-assign{display:flex;gap:8px;align-items:center}.dispatcher-assign select{flex:1;height:38px}.between{display:flex;justify-content:space-between;align-items:center;gap:10px}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}@media (max-width: 1200px){.dispatcher-body{grid-template-columns:320px minmax(0,1fr)}.dispatcher-detail{grid-column:1 / -1}}@media (max-width: 800px){.dispatcher-body{grid-template-columns:1fr;padding:12px}.dispatcher-orders{max-height:none}}.driver-app{max-width:520px;margin:0 auto;min-height:100vh;background:var(--bg);display:flex;flex-direction:column}.driver-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.driver-head-actions{display:flex;gap:8px;align-items:center}.online{border:0;border-radius:999px;padding:9px 14px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;background:#e2e8f0;color:#334155}.online.on{background:#dcfce7;color:#15803d}.driver-body{padding:16px;display:flex;flex-direction:column;gap:14px}.driver-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}.driver-card h2{font-size:16px;margin:0}.driver-card.wallet{flex-direction:row;justify-content:space-between;align-items:center}.driver-balance{font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;margin-top:4px}.driver-orders{display:flex;flex-direction:column;gap:12px}.driver-order{border:1px solid var(--border);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;background:#fbfcfe}.driver-route{font-weight:700;font-size:15px}.driver-actions{display:flex;gap:8px}.driver-actions .btn{flex:1}.driver-history{display:flex;flex-direction:column}.driver-history-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #e2e8f0}.driver-history-row:last-child{border-bottom:0}.money.negative{color:var(--danger)}:root{color-scheme:light;--brand: #2563eb;--brand-600: #1d4ed8;--accent: #f97316;--bg: #f6f7fb;--surface: #ffffff;--text: #0f172a;--muted: #64748b;--border: #e5e7eb;--success: #16a34a;--danger: #dc2626;font-family:Inter,Segoe UI,system-ui,-apple-system,Roboto,Arial,sans-serif}h1,h2,button,input,select{font-family:Inter,Segoe UI,system-ui,-apple-system,Roboto,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}a{color:var(--brand);text-decoration:none}h1,h2{margin:0;line-height:1.2}h1{font-size:26px;letter-spacing:-.02em}h2{font-size:20px}.muted{color:var(--muted)}.small{font-size:12px}.error{color:var(--danger);font-size:13px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 12px}.hint{color:var(--muted);font-size:12px}.site{min-height:100vh;display:flex;flex-direction:column}.head{display:flex;align-items:center;gap:14px;padding:16px 32px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px}.dot{width:34px;height:34px;border-radius:10px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800}.spacer{flex:1}.phone{color:var(--text);font-weight:700}.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;padding:32px;max-width:1200px;width:100%;margin:0 auto;align-items:start}.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:22px;box-shadow:0 1px 2px #0f172a0d}.form{display:flex;flex-direction:column;gap:14px}.form h1{margin-bottom:2px}.form .muted{margin:0 0 6px}.field{display:flex;flex-direction:column;gap:6px}.field span{font-size:13px;font-weight:500;color:#334155}select,input{height:42px;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:0 12px;font:inherit;color:var(--text);width:100%}select:focus,input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px #2563eb26}.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:8px 12px;font:inherit;font-size:13px;cursor:pointer}.chip.on{border-color:var(--accent);background:#fff7ed}.btn{height:46px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-weight:600;cursor:pointer}.btn:hover{background:#f8fafc}.btn:disabled{opacity:.6;cursor:not-allowed}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-600)}.order-form{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border);padding-top:14px}.price{position:sticky;top:90px;display:flex;flex-direction:column;gap:6px}.total{font-size:40px;font-weight:800;letter-spacing:-.02em;margin:2px 0 6px}.line{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:#475569;padding:4px 0}.line b{color:var(--text);font-variant-numeric:tabular-nums}.empty{text-align:center;color:var(--muted);padding:24px 8px}.empty-icon{width:56px;height:56px;border-radius:16px;background:#eff6ff;color:var(--brand);display:grid;place-items:center;font-size:26px;font-weight:800;margin:0 auto 12px}.status{max-width:1200px;width:calc(100% - 64px);margin:0 auto 28px;display:flex;flex-direction:column;gap:14px}.between{display:flex;justify-content:space-between;align-items:center;gap:12px}.status-chip{border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700;background:#eff6ff;color:#1d4ed8}.status-chip.assigned,.status-chip.arrived{background:#fffbeb;color:#b45309}.status-chip.accepted,.status-chip.on_way{background:#e0f2fe;color:#0369a1}.status-chip.in_progress{background:#f3e8ff;color:#6d28d9}.status-chip.completed{background:#dcfce7;color:#15803d}.status-chip.cancelled{background:#f1f5f9;color:#475569}.timeline{display:flex;flex-wrap:wrap;gap:8px 18px}.step{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.bullet{width:12px;height:12px;border-radius:50%;background:#e2e8f0}.step.done{color:var(--text)}.step.done .bullet{background:var(--success)}.step.next .bullet{background:var(--brand)}.lines{display:flex;flex-direction:column;border-top:1px dashed #e2e8f0;padding-top:10px}.foot{margin-top:auto;display:flex;flex-wrap:wrap;gap:18px;padding:20px 32px;border-top:1px solid var(--border);color:var(--muted);font-size:13px;background:var(--surface)}.center{min-height:100vh;display:grid;place-items:center;padding:24px}.center .card{max-width:520px;display:flex;flex-direction:column;gap:10px}code{background:#f1f5f9;border-radius:6px;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px}@media (max-width: 980px){.hero{grid-template-columns:1fr;padding:18px}.price{position:static}.status{width:calc(100% - 36px)}.head{padding:12px 18px}.foot{padding:16px 18px}}@media (max-width: 520px){.row{grid-template-columns:1fr}h1{font-size:22px}.total{font-size:32px}}
