.layout{display:flex;min-height:100%}.sidebar{width:248px;flex-shrink:0;background:var(--color-bg);color:var(--color-text-inverse);display:flex;flex-direction:column;padding:var(--space-lg) var(--space-md);gap:var(--space-xl)}.brand{display:flex;flex-direction:column;gap:2px;padding:0 var(--space-sm)}.brand-name{font-size:20px;font-weight:800}.brand-sub{font-size:13px;color:#94a3b8}.nav{display:flex;flex-direction:column;gap:var(--space-xs)}.nav-link{padding:11px var(--space-md);border-radius:var(--radius-md);color:#cbd5e1;font-size:14px;font-weight:600;transition:background .15s ease,color .15s ease}.nav-link:hover{background:#ffffff0f;color:#fff}.nav-link-active{background:var(--color-primary);color:#fff}.main{flex:1;display:flex;flex-direction:column;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;padding:var(--space-md) var(--space-xl);background:var(--color-surface);border-bottom:1px solid var(--color-border)}.topbar-user{display:flex;flex-direction:column}.user-name{font-weight:700;font-size:15px}.user-email{font-size:13px;color:var(--color-text-muted)}.content{padding:var(--space-xl);flex:1}.page-title{font-size:22px;font-weight:800;margin:0 0 var(--space-lg)}.page-subtitle{color:var(--color-text-muted);font-size:13px;margin:calc(-1 * var(--space-md)) 0 var(--space-lg)}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--space-md)}.kpi-card{border-right:4px solid var(--color-primary)}.kpi-count{font-size:32px;font-weight:800;margin:0}.kpi-label{color:var(--color-text-muted);font-size:14px;margin:var(--space-xs) 0 0}.row-actions{display:flex;gap:var(--space-sm)}.assign-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-lg);margin-bottom:var(--space-md);flex-wrap:wrap}.assign-driver-field{margin:0;min-width:260px;flex:1}.assign-action{display:flex;align-items:center;gap:var(--space-md)}.assign-count{font-size:14px;font-weight:700;color:var(--color-text-muted)}.rate-input{max-width:120px;padding:7px 10px;font-size:14px}.table-actions{display:flex;flex-wrap:wrap;gap:var(--space-sm);justify-content:flex-end}.geo-section{margin-bottom:var(--space-lg)}.geo-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-md)}.geo-section-title{font-size:18px;font-weight:800;margin:0}.geo-section-hint,.page-lead{margin:var(--space-xs) 0 0;font-size:13px;color:var(--color-muted);font-weight:500;max-width:42rem}.geo-color{display:inline-block;width:14px;height:14px;border-radius:3px;margin-left:var(--space-sm);vertical-align:middle;border:1px solid var(--color-border)}.geo-color-row{display:flex;gap:var(--space-sm);align-items:center}.geo-coords{display:flex;gap:var(--space-md)}.geo-coords .field{flex:1}.geo-check{display:flex;align-items:center;gap:var(--space-sm);font-size:14px;font-weight:600;margin-bottom:var(--space-md)}.geo-primary{margin-right:var(--space-sm)}.muted-text{color:var(--color-text-muted, #888);font-size:13px}.field-label{display:block;font-size:14px;font-weight:700;margin:var(--space-sm) 0}.perm-list{display:flex;flex-direction:column;gap:var(--space-sm);margin-bottom:var(--space-md)}.perm-option{display:flex;align-items:center;gap:var(--space-sm);font-size:14px}.perm-chips{display:flex;flex-wrap:wrap;gap:6px}.delegate-target{font-weight:700;margin:0 0 var(--space-md)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.billing-section{margin-top:var(--space-lg);margin-bottom:var(--space-md)}.banner{border-radius:8px;padding:10px 14px;font-size:14px;font-weight:700;margin-bottom:var(--space-md)}.banner-ok{background:#e7f6ec;color:#1b7a3d;border:1px solid #b7e2c4}.banner-warn{background:#fdf1e3;color:#9a5b12;border:1px solid #f3d7ad}.branding-card{max-width:640px}.logo-row{display:flex;align-items:center;gap:var(--space-md);margin-bottom:var(--space-md)}.logo-preview{max-height:48px;max-width:160px;border:1px solid var(--color-border);border-radius:6px;padding:4px;background:#fff}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;padding:var(--space-lg);z-index:50}.modal{background:var(--color-surface);border-radius:var(--radius-lg);width:100%;max-width:440px;max-height:90vh;overflow-y:auto;box-shadow:0 10px 40px #0f172a40}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:var(--space-md) var(--space-lg);border-bottom:1px solid var(--color-border)}.modal-title{font-size:17px;font-weight:800;margin:0}.modal-close{border:none;background:transparent;font-size:26px;line-height:1;color:var(--color-text-muted)}.modal-body{padding:var(--space-lg)}.modal-applicant{margin:0 0 var(--space-md);font-size:15px}.modal.modal-wide{max-width:760px}.approval-rates-table-wrap{max-height:320px;overflow-y:auto;border:1px solid var(--color-border);border-radius:var(--radius-sm);margin-bottom:var(--space-md)}.approval-rates-table{margin:0}.approval-rates-table .rate-input{width:90px;padding:4px 8px;font-size:13px}.login-wrap{min-height:100%;display:flex;align-items:center;justify-content:center;padding:var(--space-lg);background:radial-gradient(circle at top,#1e293b,var(--color-bg))}.login-card{width:100%;max-width:380px}.login-brand{display:flex;flex-direction:column;gap:2px;margin-bottom:var(--space-lg)}.login-name{font-size:22px;font-weight:800;color:var(--color-primary)}.login-sub{font-size:13px;color:var(--color-text-muted)}.login-title{font-size:18px;font-weight:700;margin:0 0 var(--space-lg)}.login-alt{text-align:center;margin:var(--space-md) 0 0;font-size:13px;color:var(--color-text-muted)}.login-alt-link{color:var(--color-primary);font-weight:700}.tabs{display:flex;gap:var(--space-xs);background:var(--color-surface-muted);border-radius:var(--radius-md);padding:4px;margin-bottom:var(--space-lg)}.tab{flex:1;border:none;background:transparent;padding:9px;border-radius:var(--radius-sm);font-size:14px;font-weight:700;color:var(--color-text-muted)}.tab-active{background:var(--color-surface);color:var(--color-primary);box-shadow:var(--shadow-card)}.signup-success{color:var(--color-text);font-size:15px;line-height:1.7;margin:0 0 var(--space-lg)}.welcome{min-height:100%;display:flex;flex-direction:column;background:var(--color-surface-muted)}.welcome-nav{display:flex;align-items:center;justify-content:space-between;padding:var(--space-md) var(--space-xl);background:var(--color-surface);border-bottom:1px solid var(--color-border)}.welcome-brand{display:flex;flex-direction:column}.welcome-logo{font-size:22px;font-weight:800;color:var(--color-primary)}.welcome-tag{font-size:12px;color:var(--color-text-muted)}.welcome-actions{display:flex;gap:var(--space-sm)}.welcome-hero{padding:72px var(--space-xl);text-align:center;background:radial-gradient(circle at top,#1e293b,var(--color-bg));color:var(--color-text-inverse)}.welcome-hero-title{font-size:34px;font-weight:800;margin:0 auto var(--space-md);max-width:760px;line-height:1.3}.welcome-hero-sub{font-size:17px;color:#cbd5e1;margin:0 auto var(--space-xl);max-width:620px;line-height:1.7}.welcome-cta{display:flex;gap:var(--space-md);justify-content:center}.welcome-cta-btn{padding:13px 28px;font-size:15px}.welcome-features{padding:var(--space-xl);max-width:1100px;margin:0 auto;width:100%}.welcome-features-title{font-size:24px;font-weight:800;text-align:center;margin:var(--space-lg) 0 var(--space-xl)}.welcome-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:var(--space-md)}.welcome-feature h3{font-size:17px;font-weight:700;margin:0 0 var(--space-sm);color:var(--color-primary-dark)}.welcome-feature p{margin:0;color:var(--color-text-muted);font-size:14px;line-height:1.7}.welcome-footer{margin-top:auto;padding:var(--space-lg) var(--space-xl);text-align:center;color:var(--color-text-muted);font-size:13px;border-top:1px solid var(--color-border);background:var(--color-surface)}:root{--color-bg: #0f172a;--color-surface: #ffffff;--color-surface-muted: #f1f5f9;--color-border: #e2e8f0;--color-text: #0f172a;--color-text-muted: #64748b;--color-text-inverse: #f8fafc;--color-primary: #2563eb;--color-primary-dark: #1d4ed8;--color-success: #16a34a;--color-warning: #d97706;--color-danger: #dc2626;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 16px;--space-xs: 4px;--space-sm: 8px;--space-md: 16px;--space-lg: 24px;--space-xl: 32px;--shadow-card: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);font-family:system-ui,-apple-system,Segoe UI,Tahoma,Arial,sans-serif;color:var(--color-text)}*{box-sizing:border-box}html,body,#root{margin:0;height:100%}body{background:var(--color-surface-muted)}button{font-family:inherit;cursor:pointer}input{font-family:inherit}a{color:inherit;text-decoration:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-sm);border:1px solid transparent;border-radius:var(--radius-md);padding:10px 18px;font-size:14px;font-weight:700;transition:background .15s ease,opacity .15s ease}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--color-primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--color-primary-dark)}.btn-secondary{background:var(--color-surface);border-color:var(--color-border);color:var(--color-text)}.btn-secondary:hover:not(:disabled){background:var(--color-surface-muted)}.btn-success{background:var(--color-success);color:#fff}.btn-danger{background:var(--color-danger);color:#fff}.btn-block{width:100%}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--space-lg);box-shadow:var(--shadow-card)}.field{display:flex;flex-direction:column;gap:var(--space-xs);margin-bottom:var(--space-md)}.field label{font-size:13px;font-weight:600;color:var(--color-text-muted)}.input{border:1px solid var(--color-border);border-radius:var(--radius-md);padding:11px 14px;font-size:15px;background:var(--color-surface);color:var(--color-text);width:100%}.input:focus{outline:2px solid var(--color-primary);outline-offset:-1px}.form-error{color:var(--color-danger);font-size:13px;margin:0 0 var(--space-md)}.form-success{color:var(--color-success);font-size:13px;font-weight:700;margin:0 0 var(--space-md)}.state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-md);padding:var(--space-xl);color:var(--color-text-muted)}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:right;padding:12px var(--space-md);border-bottom:1px solid var(--color-border);font-size:14px}.table th{color:var(--color-text-muted);font-weight:700;font-size:13px}.table .cell-muted{color:var(--color-text-muted);font-size:13px;max-width:220px}.user-detail-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--space-md);margin-bottom:var(--space-lg);padding:var(--space-md);background:var(--color-bg-muted, #f8fafc);border-radius:var(--radius-md, 8px);border:1px solid var(--color-border)}.user-detail-grid dt{font-size:12px;font-weight:700;color:var(--color-text-muted);margin-bottom:4px}.user-detail-grid dd{margin:0;font-size:14px;word-break:break-word}.user-detail-permissions{grid-column:1 / -1}.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}.badge-merchant{background:#dbeafe;color:#1d4ed8}.badge-driver,.badge-status-active{background:#dcfce7;color:#15803d}.badge-status-pending,.badge-status-approved{background:#fef9c3;color:#a16207}.badge-status-rejected,.badge-status-disabled{background:#fee2e2;color:#b91c1c}.users-toolbar{display:flex;flex-wrap:wrap;gap:var(--space-md);align-items:center;margin-bottom:var(--space-md)}.users-toolbar .input{flex:1;min-width:200px;max-width:320px}.users-pagination{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);margin-top:var(--space-md);flex-wrap:wrap}.users-pagination-meta{color:var(--color-text-muted);font-size:14px}.users-table-card{padding:var(--space-md);overflow:hidden}.users-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.users-table{table-layout:fixed;min-width:1100px}.users-table th,.users-table td{padding:10px 12px;vertical-align:middle}.users-col-name{width:11%}.users-col-email{width:17%}.users-col-phone{width:10%}.users-col-status{width:9%}.users-col-roles{width:14%}.users-col-permissions{width:18%}.users-col-area{width:12%}.users-col-merchant{width:9%}.users-col-actions{width:10%;min-width:148px}.users-cell-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:0}.users-cell-nowrap,.users-cell-actions{white-space:nowrap}.users-cell-actions .row-actions{flex-wrap:nowrap;justify-content:flex-start}.users-cell-actions .btn{padding:6px 10px;font-size:13px}
