.app-grid-shell{min-width:0;width:100%;color:#243047}.app-grid-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:10px}.app-grid-search{display:flex;align-items:center;gap:8px;min-width:220px;max-width:420px;flex:1 1;padding:0 12px;min-height:38px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;color:#7a869c}.app-grid-search:focus-within{border-color:var(--brand,#c81e32);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand,#c81e32) 12%,transparent)}.app-grid-search input{min-width:0;width:100%;min-height:36px;padding:0;border:0;outline:0;background:transparent;box-shadow:none}.app-grid-count{margin-left:auto;color:#6d7890;font-size:12px;white-space:nowrap}.app-grid-canvas{position:relative;width:100%;min-width:0;min-height:180px}.app-grid-canvas .ag-root-wrapper{font-family:inherit}.app-grid-canvas .ag-header-cell-label{text-transform:uppercase;letter-spacing:.035em}.app-grid-canvas .ag-cell{display:flex;align-items:center;line-height:1.35}.app-grid-canvas .ag-cell .ag-cell-wrapper,.app-grid-canvas .ag-cell-value{width:100%;min-width:0;max-width:100%}.app-grid-canvas .ag-cell-value:not(:has(.row-actions)):not(:has(.workflow-inline-actions)){overflow:hidden;text-overflow:ellipsis}.app-grid-canvas .ag-cell-value:has(.row-actions),.app-grid-canvas .ag-cell-value:has(.workflow-inline-actions){overflow:visible}.app-grid-canvas .ag-cell-value .badge,.app-grid-canvas .ag-cell-value .cell-sub,.app-grid-canvas .ag-cell-value .muted,.app-grid-canvas .ag-cell-value>b,.app-grid-canvas .ag-cell-value>div:not(.row-actions):not(.workflow-inline-actions),.app-grid-canvas .ag-cell-value>small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-grid-canvas .ag-cell-value>b{display:block}.app-grid-canvas .ag-cell-value .cell-sub,.app-grid-canvas .ag-cell-value>.muted,.app-grid-canvas .ag-cell-value>small{display:block;margin-top:3px}.app-grid-canvas .ag-cell .row-actions,.app-grid-canvas .ag-cell .workflow-inline-actions{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;white-space:nowrap}.app-grid-canvas .ag-cell .row-actions>*,.app-grid-canvas .ag-cell .workflow-inline-actions>*{flex:0 0 auto;margin:0}.app-grid-canvas .ag-cell .row-actions>button.small,.app-grid-canvas .ag-cell .row-menu>summary.small,.app-grid-canvas .ag-cell .workflow-inline-actions>a.small,.app-grid-canvas .ag-cell .workflow-inline-actions>button.small{min-height:30px;height:30px;padding:4px 8px;line-height:1.2;white-space:nowrap}.app-grid-canvas .ag-cell:has(.row-menu[open]),.app-grid-canvas .ag-row:has(.row-menu[open]){z-index:30}.app-grid-canvas .ag-cell-wrapper:has(.row-menu[open]),.app-grid-canvas .ag-cell:has(.row-menu[open]){overflow:visible}.app-grid-custom-header{display:flex;width:100%;align-items:center;justify-content:space-between;gap:6px;text-transform:uppercase}.app-grid-state{position:absolute;inset:45px 1px 1px;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;background:rgba(255,255,255,.96);color:#66738a;text-align:center}.app-grid-empty .empty-state{min-height:0;padding:12px;border:0;background:transparent}.app-grid-spinner{width:24px;height:24px;border:2px solid #e1e6ee;border-top:2px solid var(--brand,#c81e32);border-radius:50%;animation:app-grid-spin .8s linear infinite}@keyframes app-grid-spin{to{transform:rotate(1turn)}}.app-grid-shell .admin-pagination{margin-top:10px}@media (max-width:640px){.app-grid-toolbar{flex-wrap:wrap}.app-grid-search{min-width:100%;max-width:none}.app-grid-count{margin-left:0;margin-right:auto}.app-grid-canvas{min-height:160px}.app-grid-canvas .ag-paging-panel{height:auto;min-height:52px;flex-wrap:wrap;gap:8px;padding:8px}.app-grid-canvas .ag-paging-panel-content{width:100%;flex-wrap:wrap;row-gap:8px}.app-grid-canvas .ag-paging-page-summary-panel{margin-left:auto}}@media print{.app-grid-toolbar{display:none!important}.app-grid-canvas{height:auto!important;min-height:0}}@media (prefers-reduced-motion:reduce){.app-grid-spinner{animation:none}}.app-grid-row-read{opacity:.64}.app-grid-row-unread{background:#fff8f9}.app-grid-detail-panel{margin:10px 0 16px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.app-grid-auto-height .ag-root-wrapper,.app-grid-auto-height .app-grid-canvas{min-height:0}.app-grid-numeric-cell{justify-content:flex-end;text-align:right}.app-grid-boxed-cell{border-right:1px solid #dbe2ea!important}.app-grid-striped-row{background:#f6f8fb!important}@media print{.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper,.app-grid-canvas,.app-grid-shell{overflow:visible!important;height:auto!important;max-height:none!important}.app-grid-canvas .ag-header{print-color-adjust:exact;-webkit-print-color-adjust:exact}.app-grid-canvas .ag-row{page-break-inside:avoid;break-inside:avoid}}.user-analytics{margin:0 0 20px;padding:18px;border:1px solid #e1e7ef;border-radius:14px;background:linear-gradient(135deg,#fff,#f8fafc);box-shadow:0 8px 30px rgba(30,41,59,.05)}.user-analytics-controls,.user-analytics-head,.user-analytics-head>div:first-child{display:flex;align-items:center;gap:12px}.user-analytics-head{justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.user-analytics-head h2{margin:0 0 4px;font-size:18px}.user-analytics-head p{margin:0;max-width:650px;color:#64748b;font-size:12px}.user-analytics-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#fff0f2;color:var(--brand,#c81e32)}.user-analytics-controls{flex-wrap:wrap}.user-analytics-controls select{min-height:36px;width:auto}.user-analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px;margin:16px 0 12px}.user-analytics-kpis>div{padding:12px 14px;border:1px solid #e7ebf1;border-radius:10px;background:#fff}.user-analytics-kpis strong{display:block;font-size:22px;line-height:1.2}.user-analytics-kpis span{color:#64748b;font-size:11px}.user-analytics-grid{height:280px}.user-analytics .ag-chart{border-radius:12px;box-shadow:0 20px 70px rgba(15,23,42,.22)}@media (max-width:800px){.user-analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.user-analytics-controls{width:100%}.user-analytics-controls select{flex:1 1;min-width:130px}}@media print{.user-analytics-controls{display:none}.app-grid-detail-panel{page-break-inside:avoid;break-inside:avoid}}.customer-location-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.customer-location-intro p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.customer-location-intro strong{display:block;font-size:20px;color:var(--ink)}.customer-location-list{display:grid;grid-gap:12px;gap:12px}.customer-location-card{min-width:0;padding:15px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.customer-location-card.is-inactive{background:var(--neutral-50)}.customer-location-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.customer-location-title{display:flex;align-items:flex-start;gap:10px;min-width:0}.customer-location-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:var(--brand-soft);color:var(--brand-strong)}.customer-location-title h3{margin:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.customer-location-title p{margin:3px 0 0;color:var(--muted);font-size:11px}.customer-location-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.customer-location-address{margin:12px 0 8px;color:var(--ink-2);font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.customer-location-meta{display:flex;flex-wrap:wrap;gap:5px 14px;color:var(--muted);font-size:11px}.customer-location-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid var(--border)}.customer-location-actions .button,.customer-location-actions button{min-height:32px;padding:5px 10px;font-size:11px}.customer-location-empty{padding:28px 18px;border:1px dashed var(--border-strong);border-radius:10px;text-align:center}.customer-location-empty h3{margin:10px 0 5px;font-size:15px}.customer-location-empty p{max-width:400px;margin:0 auto 16px;color:var(--muted);font-size:12px;line-height:1.6}.customer-location-form-head{display:flex;align-items:center;gap:10px;padding-bottom:4px}.customer-location-form-head button{flex:0 0 auto}.customer-location-form-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.customer-location-check{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--border);border-radius:8px}.customer-location-check input{flex:0 0 auto;margin-top:2px}.customer-location-check label{color:var(--ink);font-size:12px;font-weight:650}.customer-location-check p{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.45}.visit-destination{display:grid;grid-gap:4px;gap:4px;min-width:160px}.visit-destination a{display:inline-flex;align-items:center;gap:4px;width:-moz-fit-content;width:fit-content;color:var(--brand-strong);font-size:11px;font-weight:700}@media (max-width:560px){.customer-location-card-head,.customer-location-intro{flex-direction:column}.customer-location-intro button{width:100%}.customer-location-badges{justify-content:flex-start}.customer-location-actions>*{flex:1 1 120px;justify-content:center}}html[data-theme=dark]{color-scheme:dark;--neutral-0:oklch(19% 0.014 285);--neutral-50:oklch(15.5% 0.012 285);--neutral-100:oklch(24% 0.017 285);--neutral-200:oklch(30% 0.019 285);--neutral-500:oklch(64% 0.02 280);--neutral-700:oklch(81% 0.015 280);--neutral-900:oklch(93% 0.008 280);--bg:var(--neutral-50);--surface:var(--neutral-0);--ink:var(--neutral-900);--ink-2:var(--neutral-700);--muted:var(--neutral-500);--border:var(--neutral-200);--border-strong:oklch(37% 0.02 285);--brand-soft:color-mix(in oklch,var(--brand) 16%,var(--surface));--side-bg:var(--surface);--side-bg-2:var(--surface);--side-ink:var(--ink-2);--side-ink-strong:var(--ink);--side-active:var(--brand);--shadow-sm:0 1px 2px oklch(10% 0.01 280/0.4);--shadow-md:0 12px 32px oklch(10% 0.01 280/0.5);--green-bg:oklch(30% 0.05 155);--green-ink:oklch(85% 0.14 155);--amber-bg:oklch(31% 0.05 85);--amber-ink:oklch(85% 0.13 85);--red-bg:oklch(30% 0.06 25);--red-ink:oklch(82% 0.13 25);--blue-bg:oklch(30% 0.06 260);--blue-ink:oklch(83% 0.11 260);--gray-bg:oklch(28% 0.015 285);--gray-ink:oklch(78% 0.015 285)}html[data-theme=dark] th{background:oklch(23% .016 285)}html[data-theme=dark] tbody tr:hover{background:oklch(24% .017 285)}html[data-theme=dark] button.ghost:hover{background:var(--neutral-100)}html[data-theme=dark] button:disabled{background:oklch(35% .02 285)}html[data-theme=dark] .drawer .drawer-close:hover{background:var(--neutral-100)}html[data-theme=dark] .modal-card{background:var(--surface);color:var(--ink)}html[data-theme=dark] .login-main{background:var(--bg)}html[data-theme=dark] .login-card{background:var(--surface);border-color:var(--border)}html[data-theme=dark] .toast-success{background:oklch(26% .05 155);border-color:oklch(38% .07 155);color:oklch(85% .14 155)}html[data-theme=dark] .error-banner,html[data-theme=dark] .toast-error{background:oklch(27% .06 25);border-color:oklch(40% .09 25);color:oklch(84% .13 25)}html[data-theme=dark] .warning-banner{background:oklch(28% .05 85);color:oklch(85% .12 85);border-color:oklch(40% .07 85)}html[data-theme=dark] .chat-row.ai .chat-bubble{background:var(--neutral-100);color:var(--ink)}html[data-theme=dark] .balance-callout,html[data-theme=dark] .detail-summary>div,html[data-theme=dark] .field-builder,html[data-theme=dark] .order-item{background:var(--neutral-100)}html[data-theme=dark] .ai-grade.Hot{background:oklch(30% .08 25);color:oklch(80% .15 25)}html[data-theme=dark] .ai-grade.Warm{background:oklch(30% .07 65);color:oklch(83% .13 65)}html[data-theme=dark] .ai-grade.Watch{background:oklch(29% .06 95);color:oklch(83% .12 95)}html[data-theme=dark] .bulk-import-dropzone{background:var(--neutral-100);border-color:var(--border-strong);color:var(--muted)}html[data-theme=dark] .bulk-import-ai-option{background:oklch(28% .06 300);color:oklch(83% .11 300)}html[data-theme=dark] .bulk-import-mapping{background:var(--neutral-100)}html[data-theme=dark] .bulk-import-summary>span{background:var(--neutral-100);color:var(--muted)}html[data-theme=dark] .bulk-import-summary .invalid,html[data-theme=dark] .bulk-status.failed,html[data-theme=dark] .bulk-status.invalid{background:oklch(27% .06 25);color:oklch(84% .13 25)}html[data-theme=dark] .bulk-import-preview{background:var(--surface)}html[data-theme=dark] .bulk-import-preview th{background:var(--neutral-100);color:var(--ink-2)}html[data-theme=dark] .bulk-import-preview tr.has-error td{background:oklch(27% .06 25)}html[data-theme=dark] .bulk-import-preview tr.is-imported td{background:oklch(26% .05 155)}html[data-theme=dark] .technician-card.eligible{background:oklch(26% .05 155);border-color:oklch(45% .09 155)}html[data-theme=dark] .app-grid-shell{color:var(--ink)}html[data-theme=dark] .app-grid-search{background:var(--surface);border-color:var(--border-strong);color:var(--muted)}html[data-theme=dark] .app-grid-row-unread{background:color-mix(in srgb,var(--brand) 9%,var(--surface))}html[data-theme=dark] .user-analytics-kpis>div{background:var(--surface);border-color:var(--border)}html[data-theme=dark] .user-analytics-icon{background:color-mix(in srgb,var(--brand) 14%,var(--surface))}html[data-theme=dark] .sidebar a.active{background:var(--brand-soft)}html[data-theme=dark] *{scrollbar-color:var(--border-strong) transparent}