*{box-sizing:border-box}body{color:#172033;background:#f4f7fb;margin:0;font-family:Arial}button,input{font:inherit}.login{background:#14213d;place-items:center;min-height:100vh;display:grid}.login form,form,.list,article{background:#fff;border-radius:16px;padding:24px;box-shadow:0 8px 28px #0001}.login form{width:min(420px,92vw)}input{border:1px solid #dce3ee;border-radius:9px;width:100%;margin:7px 0;padding:12px}button{color:#fff;cursor:pointer;background:#172033;border:0;border-radius:9px;padding:11px 16px}.shell{grid-template-columns:230px 1fr;min-height:100vh;display:grid}aside{color:#fff;background:#111827;flex-direction:column;gap:18px;padding:24px;display:flex}main{padding:28px}header{justify-content:space-between;display:flex}.stats{grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0;display:grid}.stats article{flex-direction:column;gap:8px;display:flex}.stats b{font-size:30px}.grid{grid-template-columns:360px 1fr;gap:18px;display:grid}.row{border-bottom:1px solid #edf0f5;justify-content:space-between;padding:13px 0;display:flex}@media (width<=850px){.shell{grid-template-columns:1fr}aside{display:none}.stats,.grid{grid-template-columns:1fr}main{padding:15px}}.visit-select h3{margin:0 0 22px;font-size:22px}.visit-actions{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.visit-actions select{background:#fff;border:1px solid #d9e0ea;border-radius:10px;min-width:240px;height:48px;padding:0 14px;font-size:15px}.visit-actions button{cursor:pointer;white-space:nowrap;border:0;border-radius:10px;height:48px;padding:0 22px}.active-visit{background:#f8fafc;border:1px solid #dce4ee;border-radius:14px;justify-content:space-between;align-items:center;gap:24px;padding:22px 24px;display:flex}.active-visit>div{min-width:0}.active-visit b{margin-bottom:10px;font-size:18px;display:block}.active-visit p{margin:5px 0;line-height:1.5}.active-visit button{cursor:pointer;white-space:nowrap;border:0;border-radius:10px;min-width:170px;height:48px;padding:0 22px}@media (width<=900px){.visit-actions{flex-direction:column;align-items:stretch}.visit-actions select,.visit-actions button{width:100%}.active-visit{flex-direction:column;align-items:stretch}.active-visit button{width:100%}}.visit-select{background:#fff;border-radius:20px;margin-top:28px;padding:30px;box-shadow:0 10px 30px #0f172a0f}.visit-head{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.visit-head h3{margin:0;font-size:24px}.visit-head p{color:#64748b;margin:6px 0 0}.active-visit-v2{background:#f8fafc;border:1px solid #dbe4ef;border-radius:16px;padding:26px}.active-visit-top{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:20px;display:flex}.visit-badge{background:#e8eefc;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;display:inline-block}.active-visit-top h4{margin:12px 0 4px;font-size:22px}.visit-time{color:#64748b;margin:0}.gps-status{white-space:nowrap;border-radius:10px;padding:10px 14px;font-weight:700}.gps-status.ok{color:#15803d;background:#ecfdf3}.gps-status.warn{color:#c2410c;background:#fff7ed}.visit-metrics{grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0;display:grid}.visit-metrics div{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px}.visit-metrics span{color:#64748b;margin-bottom:6px;font-size:13px;display:block}.visit-metrics b{font-size:17px}.finish-form{grid-template-columns:1fr 1fr;gap:16px;display:grid}.finish-form label,.visit-start-fields label{flex-direction:column;gap:8px;font-weight:600;display:flex}.finish-form select,.finish-form input,.finish-form textarea,.visit-start-fields select{box-sizing:border-box;width:100%;font:inherit;background:#fff;border:1px solid #d7e0eb;border-radius:10px;padding:12px 14px}.finish-form textarea{resize:vertical}.notes-field{grid-column:1/-1}.finish-visit-btn{color:#fff;cursor:pointer;background:#0f172a;border:0;border-radius:11px;width:100%;height:52px;margin-top:18px;font-size:16px;font-weight:700}.visit-start-v2{background:#f8fafc;border:1px solid #e2e8f0;border-radius:15px;padding:24px}.visit-start-fields select{max-width:420px;min-height:48px}.visit-start-buttons{flex-wrap:wrap;gap:14px;margin-top:18px;display:flex}.visit-start-buttons button{cursor:pointer;border:0;border-radius:10px;min-height:48px;padding:0 22px;font-weight:700}.location-btn{color:#0f172a;background:#e9eef6}.start-visit-btn{color:#fff;background:#0f172a}.visit-info{color:#334155;background:#eef6ff;border-radius:10px;margin-top:18px;padding:13px 15px;font-size:14px}@media (width<=900px){.active-visit-top{flex-direction:column}.visit-metrics,.finish-form{grid-template-columns:1fr}.notes-field{grid-column:auto}.visit-start-buttons{flex-direction:column}.visit-start-buttons button{width:100%}}.visit-history-v1{background:#fff;border-radius:20px;margin-top:28px;padding:30px;box-shadow:0 10px 30px #0f172a0f}.visit-history-head{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;display:flex}.visit-history-head h2{margin:0;font-size:24px}.visit-history-head p{color:#64748b;margin:7px 0 0}.visit-summary-cards{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px;display:grid}.visit-summary-cards>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:18px}.visit-summary-cards span{color:#64748b;margin-bottom:8px;font-size:13px;display:block}.visit-summary-cards b{font-size:26px}.visit-history-table-wrap{width:100%;overflow:auto}.visit-history-table{border-collapse:collapse;width:100%;min-width:1050px}.visit-history-table th{text-align:left;color:#64748b;text-transform:uppercase;border-bottom:1px solid #dce4ee;padding:13px 12px;font-size:12px;font-weight:700}.visit-history-table td{vertical-align:top;border-bottom:1px solid #eef2f6;padding:15px 12px}.visit-history-table td strong{display:block}.visit-history-table td small{color:#64748b;margin-top:5px;line-height:1.4;display:block}.visit-row.suspicious{background:#fffaf3}.gps-pill,.status-pill{border-radius:999px;padding:6px 9px;font-size:12px;font-weight:700;display:inline-block}.gps-pill.verified{color:#15803d;background:#ecfdf3}.gps-pill.unverified{color:#c2410c;background:#fff7ed}.status-pill.in_progress{color:#1d4ed8;background:#eef6ff}.status-pill.completed{color:#334155;background:#f1f5f9}.suspicious-text{font-weight:600;color:#b45309!important}.empty-row{text-align:center;color:#64748b;padding:30px!important}@media (width<=1100px){.visit-summary-cards{grid-template-columns:repeat(2,1fr)}}@media (width<=700px){.visit-history-v1{padding:18px}.visit-summary-cards{grid-template-columns:1fr}}.personnel-management-v1{background:#fff;border-radius:20px;margin-top:28px;padding:30px;box-shadow:0 10px 30px #0f172a0f}.personnel-head{margin-bottom:24px}.personnel-head h2{margin:0;font-size:24px}.personnel-head p{color:#64748b;margin:7px 0 0}.personnel-layout{grid-template-columns:340px 1fr;align-items:start;gap:22px;display:grid}.personnel-create-card,.personnel-list-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:22px}.personnel-create-card h3,.personnel-list-card h3{margin:0 0 18px}.personnel-create-card label{flex-direction:column;gap:7px;margin-bottom:13px;font-weight:600;display:flex}.personnel-create-card input,.personnel-create-card select{box-sizing:border-box;width:100%;min-height:44px;font:inherit;background:#fff;border:1px solid #d6dee9;border-radius:9px;padding:10px 12px}.personnel-create-card button{color:#fff;cursor:pointer;background:#0f172a;border:0;border-radius:10px;width:100%;min-height:48px;margin-top:6px;font-weight:700}.personnel-list-title{justify-content:space-between;align-items:center;gap:15px;display:flex}.personnel-list-title span{color:#64748b}.personnel-grid{gap:14px;display:grid}.personnel-card{background:#fff;border:1px solid #dfe6ef;border-radius:14px;padding:18px}.personnel-card.disabled{opacity:.68;background:#f8fafc}.personnel-card-top{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.personnel-card-top h4{margin:0;font-size:17px}.personnel-card-top p{color:#64748b;margin:5px 0 0}.employee-status{white-space:nowrap;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}.employee-status.active{color:#15803d;background:#ecfdf3}.employee-status.passive{color:#b91c1c;background:#fef2f2}.personnel-performance{grid-template-columns:repeat(4,1fr);gap:10px;margin:17px 0;display:grid}.personnel-performance>div{background:#f8fafc;border-radius:10px;padding:12px}.personnel-performance span{color:#64748b;margin-bottom:5px;font-size:11px;display:block}.personnel-performance b{font-size:17px}.personnel-actions{justify-content:space-between;align-items:end;gap:14px;display:flex}.personnel-actions label{flex-direction:column;gap:5px;font-size:12px;font-weight:600;display:flex}.personnel-actions select{background:#fff;border:1px solid #d7e0eb;border-radius:8px;min-width:150px;min-height:39px;padding:7px 9px}.personnel-actions button{cursor:pointer;border:0;border-radius:8px;min-height:39px;padding:0 14px;font-weight:700}.deactivate-btn{color:#b91c1c;background:#fef2f2}.activate-btn{color:#15803d;background:#ecfdf3}@media (width<=1100px){.personnel-layout{grid-template-columns:1fr}}@media (width<=700px){.personnel-management-v1{padding:18px}.personnel-performance{grid-template-columns:repeat(2,1fr)}.personnel-actions{flex-direction:column;align-items:stretch}.personnel-actions select,.personnel-actions button{width:100%}}.customer-row{align-items:center;gap:14px}.customer-row>div{min-width:0}.customer360-btn{min-width:58px;color:#172033!important;background:#eef2f7!important;width:auto!important;padding:8px 12px!important}.customer360-overlay{z-index:9999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f172a7a;padding:30px;position:fixed;inset:0;overflow:auto}.customer360-modal{background:#f8fafc;border-radius:22px;width:min(1180px,100%);margin:0 auto;padding:30px;box-shadow:0 30px 80px #00000040}.customer360-header{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;display:flex}.customer360-label{background:#e9eef8;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;display:inline-block}.customer360-header h2{margin:10px 0 4px;font-size:30px}.customer360-header p{color:#64748b;margin:0}.customer360-close{height:44px;font-size:26px;border-radius:50%!important;width:44px!important;padding:0!important}.customer360-kpis{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px;display:grid}.customer360-kpis>div{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px}.customer360-kpis span{color:#64748b;margin-bottom:8px;font-size:12px;display:block}.customer360-kpis b{font-size:22px}.customer360-grid{grid-template-columns:repeat(2,1fr);gap:18px;display:grid}.customer360-card,.customer360-visits{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:22px}.customer360-card h3,.customer360-visits h3{margin-top:0}.customer360-card dl{grid-template-columns:130px 1fr;gap:10px 16px;margin:0;display:grid}.customer360-card dt{color:#64748b}.customer360-card dd{margin:0;font-weight:600}.location360{border-radius:12px;flex-direction:column;gap:7px;padding:16px;display:flex}.location360.verified{color:#166534;background:#ecfdf3}.location360.pending{color:#9a3412;background:#fff7ed}.contact360{border-bottom:1px solid #eef2f6;padding:12px 0}.contact360 span,.contact360 small{color:#64748b;margin-top:4px;display:block}.customer360-visits{margin-top:18px}.customer360-visit-list{gap:10px;display:grid}.customer360-visit-list article{border:1px solid #eef2f6;border-radius:11px;justify-content:space-between;gap:20px;padding:14px;display:flex}.customer360-visit-list span{color:#64748b;margin-top:4px;display:block}@media (width<=800px){.customer360-overlay{padding:10px}.customer360-modal{padding:18px}.customer360-kpis,.customer360-grid,.customer360-card dl{grid-template-columns:1fr}}.followup-center-v1{background:#fff;border-radius:20px;margin-top:28px;padding:30px;box-shadow:0 10px 30px #0f172a0f}.followup-head h2{margin:0;font-size:24px}.followup-head p{color:#64748b;margin:7px 0 0}.followup-summary{grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0;display:grid}.followup-summary>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:18px}.followup-summary span{color:#64748b;margin-bottom:7px;font-size:12px;display:block}.followup-summary b{font-size:26px}.followup-summary .danger{background:#fff7ed}.followup-summary .danger b{color:#c2410c}.followup-summary .today{background:#eef6ff}.followup-layout{grid-template-columns:350px 1fr;align-items:start;gap:20px;display:grid}.followup-create,.followup-list{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:22px}.followup-create h3{margin-top:0}.followup-create label{flex-direction:column;gap:6px;margin-bottom:12px;font-weight:600;display:flex}.followup-create input,.followup-create select,.followup-create textarea{box-sizing:border-box;width:100%;font:inherit;background:#fff;border:1px solid #d7e0eb;border-radius:9px;padding:10px 12px}.followup-create button{color:#fff;cursor:pointer;background:#0f172a;border:0;border-radius:10px;width:100%;min-height:48px;font-weight:700}.followup-list-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.followup-list-head h3{margin:0}.followup-list-head span{color:#64748b}.followup-item{background:#fff;border:1px solid #e2e8f0;border-radius:13px;margin-bottom:12px;padding:17px}.followup-item.overdue{background:#fffaf5;border-color:#fed7aa}.followup-item.critical{border-color:#fecaca}.followup-item-main{justify-content:space-between;gap:20px;display:flex}.followup-item h4{margin:7px 0 4px;font-size:17px}.followup-item p{color:#64748b;margin:7px 0 0}.priority-pill{background:#f1f5f9;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800;display:inline-block}.priority-pill.high{color:#b45309;background:#fff7ed}.priority-pill.critical{color:#b91c1c;background:#fef2f2}.followup-due{text-align:right;min-width:180px}.followup-due span,.followup-due small{color:#64748b;font-size:11px;display:block}.followup-due b{margin:5px 0;display:block}.followup-item>button{color:#15803d;cursor:pointer;background:#ecfdf3;border:0;border-radius:8px;margin-top:14px;padding:9px 13px;font-weight:700}.followup-empty{text-align:center;color:#64748b;padding:30px}@media (width<=1000px){.followup-layout{grid-template-columns:1fr}}@media (width<=700px){.followup-center-v1{padding:18px}.followup-summary{grid-template-columns:repeat(2,1fr)}.followup-item-main{flex-direction:column}.followup-due{text-align:left}}
