.caller-history{min-width:0}.history-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px}.history-filters label{display:flex;flex-direction:column;gap:5px;min-width:0}.history-filters input,.history-filters select{width:100%;min-width:0}.history-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}.history-list{display:grid;gap:12px}.history-card{border:1px solid #dbe3ee;border-radius:10px;padding:14px;min-width:0;overflow-wrap:anywhere}.history-card header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.history-card dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px;margin:12px 0 0}.history-card dt{font-size:12px;color:#64748b}.history-card dd{margin:3px 0 0;white-space:pre-wrap}.history-card dl>div{min-width:0}.history-card{padding:12px 14px}.history-outcome{color:#172f50;font-size:16px}.history-timestamp{color:#526174;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.history-actor{color:#526174;font-size:12px;margin-top:3px}.history-customer,.history-payment{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:7px;align-items:baseline}.history-customer span,.history-payment{font-size:13px;color:#475569}.history-vehicles{margin-top:5px;font-weight:600}.history-imeis{color:#526174;font-size:12px;margin-top:2px}.history-remark{margin:8px 0 0;white-space:pre-wrap;line-height:1.5}.history-payment{border-top:1px solid #edf0f4;padding-top:6px}.history-card header{align-items:baseline}.history-list{gap:8px}@media (max-width:600px){.history-card{padding:10px}.history-card header{gap:4px}.history-customer{gap:3px 10px}}.customer-contact-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0;max-width:100%}.customer-contact-actions a,.customer-contact-actions button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:7px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#174b85;font:inherit;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;word-break:normal;overflow-wrap:normal}.customer-contact-actions a:hover{background:#eff6ff}.customer-contact-actions a:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.customer-contact-actions button:disabled{opacity:.5;cursor:not-allowed}.customer-contact-actions small{overflow-wrap:anywhere}.caller-followup-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px}.caller-followup-columns>div{min-width:0}@media (max-width:760px){.caller-followup-columns{grid-template-columns:minmax(0,1fr)}}@media (max-width:600px){.field-task-table,.field-task-table tbody,.field-task-table tr,.field-task-table td{display:block;width:auto;min-width:0!important;white-space:normal;overflow-wrap:anywhere}.field-task-table thead{display:none}.field-task-table tr{padding:10px 0;border-bottom:1px solid #ddd}.field-task-table td{border:0;padding:5px 8px}}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f5f7fb;color:#172033}button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(180deg,#111827,#172554);color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;margin-bottom:26px}.brand-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#38bdf8,#6366f1);display:grid;place-items:center;font-weight:900}.nav{display:flex;flex-direction:column;gap:6px}.nav button{width:100%;border:0;background:transparent;color:#cbd5e1;text-align:left;padding:11px 12px;border-radius:10px;cursor:pointer;font-weight:650}.nav button:hover,.nav button.active{background:#ffffff1f;color:#fff}.sidebar-footer{position:absolute;bottom:22px;left:16px;right:16px;padding:12px;border-radius:12px;background:#ffffff14;font-size:12px;color:#cbd5e1}.content{min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 28px;background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:5}.page{padding:26px 28px 42px}.page-title{margin:0;font-size:28px}.muted{color:#6b7280}.panel{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;box-shadow:0 8px 28px #0f172a0a}.section-stack{display:flex;flex-direction:column;gap:18px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.kpi{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;box-shadow:0 6px 20px #0f172a0a;position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--accent,#6366f1)}.kpi-label{font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#64748b}.kpi-value{font-size:32px;font-weight:800;margin:6px 0}.kpi-note{font-size:13px;color:#64748b}.accent-blue{--accent:#3b82f6}.accent-amber{--accent:#f59e0b}.accent-emerald{--accent:#10b981}.accent-rose{--accent:#f43f5e}.dashboard-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:16px}.table-wrap{overflow:auto;max-width:100%}.data-table{width:100%;border-collapse:collapse}.data-table th{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.04em;padding:11px;border-bottom:1px solid #e5e7eb;text-align:left}.data-table td{padding:12px 11px;border-bottom:1px solid #eef2f7;vertical-align:top;overflow-wrap:anywhere;word-break:break-word}.data-table tbody tr:nth-child(2n){background:#fafcff}.data-table tbody tr+tr td{border-top:1px solid #dbe3ee}.data-table:has(th:nth-child(5):last-child){table-layout:fixed}.data-table:has(th:nth-child(5):last-child) th:nth-child(1){width:16%}.data-table:has(th:nth-child(5):last-child) th:nth-child(2){width:44%}.data-table:has(th:nth-child(5):last-child) th:nth-child(3){width:14%}.data-table:has(th:nth-child(5):last-child) th:nth-child(4),.data-table:has(th:nth-child(5):last-child) th:nth-child(5){width:13%}.data-table:has(th:nth-child(5):last-child) td:nth-child(2){white-space:normal;overflow-wrap:anywhere;word-break:break-word}.freshness{display:grid;grid-template-columns:1fr 1fr;gap:12px}.freshness-card{border-radius:14px;padding:14px;background:#f8fafc;border:1px solid #e2e8f0}.status-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:#f59e0b;margin-right:6px}.mini-bars{display:flex;flex-direction:column;gap:10px;margin-top:12px}.mini-row{display:grid;grid-template-columns:110px 1fr 40px;gap:10px;align-items:center;font-size:13px}.mini-track{height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden}.mini-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#3b82f6,#6366f1)}.module-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:16px}.mobile-title{display:none}@media (max-width:980px){.app-shell{grid-template-columns:78px 1fr}.sidebar{padding:18px 10px}.brand span,.nav button span,.sidebar-footer{display:none}.brand{justify-content:center}.nav button{text-align:center;padding:11px 6px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}@media (max-width:720px){.app-shell{display:block}.sidebar{position:static;height:auto;display:flex;align-items:center;padding:10px 12px}.brand{margin:0 10px 0 0}.nav{flex-direction:row;overflow-x:auto}.nav button{white-space:nowrap}.topbar{padding:14px}.page{padding:16px}.kpi-grid,.freshness{grid-template-columns:1fr}.page-title{font-size:23px}}
