*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f7fa;color:#2c3e50}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}.container{max-width:1400px;margin:0 auto;padding:0 20px}.icon-location:before{content:"📍";margin-right:5px}.icon-clock:before{content:"🕐";margin-right:5px}.icon-check:before{content:"✓";margin-right:5px}.icon-alert:before{content:"⚠️";margin-right:5px}.icon-pin:before{content:"📌";margin-right:5px}.icon-route:before{content:"🛣️";margin-right:5px}.icon-time:before{content:"⏰";margin-right:5px}.icon-chart:before{content:"📊";margin-right:5px}.icon-download:before{content:"⬇️";margin-right:5px}.icon-print:before{content:"🖨️";margin-right:5px}.icon-map:before{content:"🗺️";margin-right:5px}.icon-info:before{content:"ℹ️";margin-right:5px}.icon-plus:before{content:"➕";margin-right:5px}.btn{font-weight:500}.btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.15)}.btn-primary{background-color:#3498db}.btn-primary:hover{background-color:#2980b9}.btn-success{background-color:#2ecc71}.btn-success:hover{background-color:#27ae60}.btn-secondary{background-color:#95a5a6;color:#fff}.btn-secondary:hover{background-color:#7f8c8d}.btn-info{background-color:#3498db}.btn-sm{padding:6px 12px;font-size:12px}.badge-warning{background-color:#f39c12}.badge-info,.badge-warning{color:#fff;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600}.badge-info{background-color:#3498db}.badge-success{background-color:#2ecc71}.badge-danger,.badge-success{color:#fff;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600}.badge-danger{background-color:#e74c3c}.text-success{color:#2ecc71}.text-danger{color:#e74c3c}.text-warning{color:#f39c12}.orders-view{background:#fff;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:30px}.view-header{margin-bottom:30px}.view-header h2{margin-bottom:20px}.view-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:20px;gap:20px}.stat-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px;flex-direction:column;grid-gap:8px;gap:8px}.stat-label{font-size:14px;opacity:.9}.selection-actions{background:#ecf0f1;padding:20px;border-radius:8px;margin-bottom:20px;display:flex;grid-gap:12px;gap:12px;align-items:center}.orders-grid,.orders-tabs{margin-top:20px}.orders-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));grid-gap:20px;gap:20px}.order-card{background:#fff;border:2px solid #ecf0f1;border-radius:12px;padding:16px;cursor:pointer;transition:all .3s ease}.order-card:hover{border-color:#3498db;box-shadow:0 4px 16px rgba(52,152,219,.2);transform:translateY(-2px)}.order-card.selected{border-color:#2ecc71;background:#e8f8f5}.order-header{display:flex;align-items:center;grid-gap:12px;gap:12px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #ecf0f1}.order-header input[type=checkbox]{width:18px;height:18px;cursor:pointer}.order-id{font-weight:600;color:#3498db}.order-status{margin-left:auto;padding:4px 12px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.status-por-preparar{background-color:#f39c12;color:#fff}.status-listo-para-envio{background-color:#3498db;color:#fff}.status-entregado{background-color:#2ecc71;color:#fff}.order-body{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.order-customer{font-size:16px;font-weight:600;color:#2c3e50}.order-address,.order-delivery-info,.order-time{font-size:13px;color:#7f8c8d;display:flex;align-items:center}.order-delivery-info{background:#e8f4f8;color:#2980b9;padding:6px 10px;border-radius:6px;font-weight:600;margin-top:4px}.order-coords{margin-top:8px}.coords-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:6px;font-size:11px;font-weight:600}.coords-badge.success{background-color:#d5f4e6;color:#27ae60}.coords-badge.warning{background-color:#fef5e7;color:#f39c12}.order-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid #ecf0f1;font-size:14px}.order-footer-left{display:flex;flex-direction:column;grid-gap:4px;gap:4px}.order-total{font-weight:700;color:#2c3e50}.order-delivery{color:#7f8c8d}.btn-edit-coords{background:linear-gradient(135deg,#667eea,#764ba2);border:none;color:#fff;width:44px;height:44px;border-radius:50%;font-size:20px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;flex-shrink:0}.btn-edit-coords:hover{transform:scale(1.1) rotate(15deg);box-shadow:0 4px 16px rgba(102,126,234,.4)}.grouped-orders{margin-top:20px}.group-section{margin-bottom:40px}.group-title{font-size:20px;font-weight:600;color:#2c3e50;margin-bottom:20px;display:flex;align-items:center;padding:12px 0;border-bottom:2px solid #ecf0f1}.modal-overlay{top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6)}.modal-content{background:#fff;border-radius:16px;width:100%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.modal-header{padding:24px}.modal-header h3{font-size:24px;font-weight:700}.modal-close{font-size:32px;color:#95a5a6;padding:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:all .3s ease}.modal-close:hover{background:#ecf0f1}.modal-body{padding:24px}.order-info{background:linear-gradient(135deg,#f8f9fa,#e8f4f8);padding:20px;border-radius:12px;margin-bottom:24px;border:2px solid #e3f2fd}.order-info h4{margin:0 0 12px;font-size:20px;font-weight:700;color:#2c3e50;display:flex;align-items:center;grid-gap:8px;gap:8px}.order-info h4:before{content:"👤";font-size:18px}.address-details{display:flex;flex-direction:column;grid-gap:8px;gap:8px}.address-full{margin:0;font-size:15px;color:#2c3e50;font-weight:500;line-height:1.6;display:flex;flex-wrap:wrap;align-items:center;grid-gap:6px;gap:6px}.type-badge{display:inline-block;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:4px 12px;border-radius:20px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.district{margin:0;font-size:14px;color:#64748b;font-weight:500;display:flex;align-items:center;grid-gap:6px;gap:6px}.district:before{content:"📍";font-size:14px}.delivery-instructions{margin:8px 0 0;padding:12px;background:#fff8e1;border-left:4px solid #ffc107;font-size:13px;color:#f57c00;line-height:1.5}.delivery-instructions strong{display:block;margin-bottom:4px;color:#e65100}.form-group{margin-bottom:20px}.form-group label{font-size:13px;color:#2c3e50;margin-bottom:8px;text-transform:uppercase;letter-spacing:.5px}.form-input{width:100%;padding:12px 16px;border:2px solid #ecf0f1;border-radius:8px;font-size:16px;transition:all .3s ease;box-sizing:border-box}.form-input:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px rgba(52,152,219,.1)}.form-input:disabled{background:#f8f9fa;color:#95a5a6;cursor:not-allowed}.form-help{display:block;margin-top:6px;font-size:12px;color:#7f8c8d;font-style:italic}.form-row{grid-gap:16px;gap:16px}.extracting-indicator{background:#e8f4f8;color:#3498db;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600;margin-bottom:20px;text-align:center;animation:pulse 1.5s ease-in-out infinite}.preview-coords{background:#f0fdf4;border:2px solid #16a34a;padding:12px 16px;border-radius:8px;font-size:14px;color:#15803d;margin-top:16px}.preview-coords strong{display:block;margin-bottom:4px;color:#166534}.modal-footer{padding:20px 24px;grid-gap:12px;gap:12px}.modal-footer .btn{border:none;padding:12px 24px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}.modal-footer .btn-secondary{background:#ecf0f1;color:#2c3e50}.modal-footer .btn-secondary:hover{background:#d5dbdb}.modal-footer .btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff!important}.modal-footer .btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(102,126,234,.4)}.modal-footer .btn:disabled{opacity:.5;cursor:not-allowed;transform:none;background:#bdc3c7!important;color:#7f8c8d!important}.modal-footer .btn:disabled:hover{transform:none;box-shadow:none}@media (max-width:768px){.modal-overlay{padding:0}.modal-content{max-width:100%;max-height:100vh;border-radius:0}.modal-header{padding:20px}.modal-header h3{font-size:20px}.modal-body{padding:20px}.form-row{grid-template-columns:1fr;grid-gap:12px;gap:12px}.modal-footer{padding:16px 20px;flex-direction:column-reverse}.modal-footer .btn{width:100%}}@media (max-width:480px){.modal-header{padding:16px}.modal-header h3{font-size:18px}.modal-body{padding:16px}.order-info{padding:12px}.order-info h4{font-size:16px}.form-input{padding:10px 14px;font-size:14px}.modal-footer{padding:12px 16px}.modal-footer .btn{padding:10px 20px;font-size:14px}}.route-view{background:#fff;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:30px}.route-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.route-header h2{font-size:28px;font-weight:700;color:#2c3e50}.route-content{display:grid;grid-template-columns:350px 1fr;grid-gap:30px;gap:30px}.route-sidebar{background:#f8f9fa;border-radius:12px;padding:20px;max-height:calc(100vh - 300px);overflow-y:auto}.route-sidebar h3{font-size:18px;font-weight:600;color:#2c3e50;margin-bottom:20px}.route-list{display:flex;flex-direction:column;grid-gap:12px;gap:12px}.route-summary-card{background:#fff;border:2px solid #ecf0f1;border-radius:12px;padding:16px;cursor:pointer;transition:all .3s ease}.route-summary-card:hover{border-color:#3498db;box-shadow:0 4px 12px rgba(52,152,219,.2)}.route-summary-card.active{border-color:#3498db;background:#e8f4f8}.route-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.route-card-header h4{font-size:16px;font-weight:600;color:#2c3e50}.route-status{padding:4px 12px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.route-card-stats{display:flex;grid-gap:16px;gap:16px;margin-bottom:8px}.route-card-stats .stat{display:flex;align-items:center;font-size:13px;color:#7f8c8d}.route-card-time{font-size:12px;color:#95a5a6}.route-main{background:#f8f9fa;border-radius:12px;padding:30px;max-height:calc(100vh - 300px);overflow-y:auto}.route-detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:30px}.route-detail-header h3{font-size:24px;font-weight:700;color:#2c3e50;margin-bottom:8px}.route-created{font-size:13px;color:#7f8c8d}.route-actions{display:flex;grid-gap:8px;gap:8px}.route-summary{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:20px;gap:20px;margin-bottom:30px}.summary-stat{background:#fff;border-radius:12px;padding:20px;display:flex;align-items:center;grid-gap:16px;gap:16px;box-shadow:0 2px 8px rgba(0,0,0,.05)}.stat-icon{width:50px;height:50px;background:linear-gradient(135deg,#667eea,#764ba2);font-size:24px}.stat-content{display:flex;flex-direction:column;grid-gap:4px;gap:4px}.stat-content .stat-label{font-size:11px;color:#7f8c8d;text-transform:uppercase;font-weight:600}.stat-content .stat-value{font-size:22px;font-weight:700;color:#2c3e50}.optimization-info{background:#fff;border-radius:12px;padding:20px;margin-bottom:30px;box-shadow:0 2px 8px rgba(0,0,0,.05)}.optimization-info h4{font-size:16px;font-weight:600;color:#2c3e50;margin-bottom:16px;display:flex;align-items:center}.optimization-details{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:16px;gap:16px}.optimization-item{display:flex;flex-direction:column;grid-gap:4px;gap:4px}.optimization-item label{font-size:11px;color:#7f8c8d;text-transform:uppercase;font-weight:600}.optimization-item span{font-size:16px;font-weight:600;color:#2c3e50}.route-warnings{margin-bottom:30px}.warning-alert{background:#fff;border-left:4px solid #f39c12;border-radius:8px;padding:16px;margin-bottom:12px;display:flex;align-items:center;grid-gap:12px;gap:12px;box-shadow:0 2px 8px rgba(0,0,0,.05)}.warning-alert.high{border-left-color:#e74c3c}.warning-alert.medium{border-left-color:#f39c12}.stops-section h4{font-size:18px;font-weight:600;color:#2c3e50;margin-bottom:20px}.stops-list{display:flex;flex-direction:column;grid-gap:0;gap:0}.stop-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.05);margin-bottom:8px}.stop-card.warning{border:2px solid #f39c12}.stop-header{grid-gap:16px;gap:16px;padding:16px;cursor:pointer;transition:background .3s ease}.stop-header:hover{background:#f8f9fa}.stop-number{flex-shrink:0}.stop-badge{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:700;font-size:16px}.stop-main-info{flex:1 1;min-width:0}.stop-customer{font-weight:600;color:#2c3e50;font-size:16px;margin-bottom:4px;white-space:nowrap}.stop-address,.stop-customer{overflow:hidden;text-overflow:ellipsis}.stop-address{font-size:13px;color:#7f8c8d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.stop-delivery-badge{background:#e8f4f8;color:#2980b9;padding:6px 10px;border-radius:6px;font-weight:600;font-size:12px;margin-top:6px;display:inline-block}.stop-time-info{text-align:right}.arrival-time{font-size:14px;font-weight:600;color:#2c3e50;margin-bottom:4px}.stop-warning{font-size:11px;color:#f39c12;font-weight:600}.stop-expand-btn{background:none;border:none;font-size:16px;color:#95a5a6;cursor:pointer;padding:8px}.stop-details{padding:0 16px 16px;border-top:1px solid #ecf0f1;background:#f8f9fa}.stop-detail-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px;padding:16px 0}.detail-item{display:flex;flex-direction:column;grid-gap:4px;gap:4px}.detail-item label{font-size:11px;color:#7f8c8d;text-transform:uppercase;font-weight:600}.detail-item span{font-size:14px;font-weight:600;color:#2c3e50;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.detail-item.detail-delivery-info{grid-column:1/-1}.delivery-instructions{background:#e8f4f8;color:#2980b9;padding:8px 12px;font-weight:600;display:inline-block}.stop-actions{grid-gap:8px;gap:8px;padding-top:16px;border-top:1px solid #ecf0f1}.stop-connector{display:flex;align-items:center;grid-gap:12px;gap:12px;padding:0 16px 8px 72px;position:relative}.connector-line{width:2px;height:20px;background:linear-gradient(180deg,#95a5a6,transparent);position:absolute;left:36px;top:-8px}.connector-info{display:flex;grid-gap:16px;gap:16px;font-size:12px;color:#7f8c8d;padding:4px 12px;background:#ecf0f1;border-radius:6px}.empty-state{padding:80px 20px}.empty-state i{font-size:64px;margin-bottom:20px;display:block}.empty-state h3{color:#7f8c8d}.time-window-group{margin-bottom:32px;border:2px solid #e8f4fd;border-radius:12px;overflow:hidden;background:#f8fcff}.time-window-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:16px 20px;display:flex;align-items:center;grid-gap:16px;gap:16px;font-weight:600}.window-badge{background:hsla(0,0%,100%,.2);padding:6px 14px;border-radius:20px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.window-time{font-size:18px;font-weight:700;flex:1 1}.window-count{background:hsla(0,0%,100%,.15);padding:6px 14px;border-radius:20px;font-size:13px}.time-window-stops{padding:20px;background:#fff}.time-window-stops .stop-card{margin-bottom:16px}.time-window-stops .stop-card:last-child{margin-bottom:0}.stop-time-window{font-size:13px;color:#667eea;font-weight:600;margin-top:6px;display:flex;align-items:center;grid-gap:6px;gap:6px}.window-warning{color:#e74c3c;font-weight:700;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.stop-card.outside-window{border-left:4px solid #e74c3c;background:#fff5f5}.stop-card.outside-window .stop-header{background:linear-gradient(90deg,#fff5f5,#fff)}@media (max-width:1024px){.route-content{grid-template-columns:240px 1fr;grid-gap:20px;gap:20px}.optimization-details,.route-summary{grid-template-columns:repeat(2,1fr)}}@media (max-width:768px){.route-view{padding:16px}.route-content{grid-template-columns:1fr;grid-gap:20px;gap:20px}.route-sidebar{max-height:300px}.route-main{padding:20px;max-height:none}.route-detail-header{flex-direction:column;grid-gap:16px;gap:16px;align-items:stretch}.route-detail-header>div{width:100%}.route-actions{width:100%;flex-direction:column}.route-actions .btn,.route-actions button{width:100%;padding:12px 16px;font-size:14px;white-space:normal;text-align:center}.route-summary{grid-template-columns:1fr;grid-gap:12px;gap:12px}.summary-stat{padding:16px}.stat-content .stat-value{font-size:20px}.optimization-details,.stop-detail-grid{grid-template-columns:1fr}.stop-detail-grid{grid-gap:12px;gap:12px}.stop-actions{flex-direction:column}.stop-actions .btn,.stop-actions button{width:100%;padding:10px 16px;font-size:14px}.stop-header{flex-wrap:wrap;grid-gap:12px;gap:12px}.stop-main-info{width:100%;order:1}.stop-time-info{width:100%;text-align:left;order:2;margin-top:8px;padding-top:8px;border-top:1px solid #ecf0f1}.stop-expand-btn{order:0;position:absolute;right:16px;top:16px}.stop-delivery-badge{font-size:11px;padding:5px 8px}}@media (max-width:480px){.route-view{padding:12px}.route-header h2{font-size:22px}.route-main{padding:16px}.route-detail-header h3{font-size:18px}.route-created{font-size:12px}.route-actions .btn,.route-actions button{font-size:13px;padding:10px 12px}.stop-customer{font-size:14px}.stop-address{font-size:12px}.stop-badge{width:32px;height:32px;font-size:14px}.stop-time-window{font-size:12px}.arrival-time{font-size:13px}.stop-delivery-badge{font-size:11px;padding:4px 7px}.time-window-header{flex-wrap:wrap;grid-gap:8px;gap:8px;padding:12px 16px}.window-badge{font-size:11px;padding:5px 10px}.window-time{width:100%;font-size:15px}.window-count{font-size:12px;padding:5px 10px}.time-window-stops{padding:12px}.stat-content .stat-value{font-size:18px}.stat-content .stat-label{font-size:10px}.stat-icon{width:42px;height:42px;font-size:20px}}.route-map-container{background:#fff;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.1);overflow:hidden;margin:20px 0}.map-header{padding:20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.map-header h3{margin:0 0 15px;font-size:1.5rem;font-weight:600}.map-stats{display:flex;flex-wrap:wrap;grid-gap:15px;gap:15px}.map-stat{background:hsla(0,0%,100%,.2);padding:8px 15px;border-radius:20px;font-size:.9rem;font-weight:500;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.map-stat.traffic-real{background:rgba(34,197,94,.3);border:1px solid hsla(0,0%,100%,.3)}.no-route-message{padding:60px 20px;text-align:center;color:#64748b}.no-route-message p{margin:10px 0;font-size:1.1rem}.no-route-message .text-muted{color:#94a3b8;font-size:.95rem}.custom-marker,.custom-marker-start{background:transparent!important;border:none!important}.marker-pin{width:35px;height:35px;border-radius:50% 50% 50% 0;background:#2563eb;position:absolute;transform:rotate(-45deg);left:50%;top:50%;margin:-20px 0 0 -20px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(0,0,0,.3);border:3px solid #fff}.marker-pin:after{content:"";width:8px;height:8px;margin:0 0 12px;background:#fff;position:absolute;border-radius:50%}.marker-number{position:absolute;color:#fff;font-weight:700;font-size:14px;transform:rotate(45deg);margin:-8px 0 0 -6px}.marker-pin-start{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#22c55e,#16a34a);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 15px rgba(34,197,94,.4);border:3px solid #fff;position:absolute;left:50%;top:50%;margin:-23px 0 0 -23px}.marker-icon{font-size:20px}.marker-pulse,.marker-pulse-start{background:rgba(37,99,235,.3);border-radius:50%;height:50px;width:50px;position:absolute;left:50%;top:50%;margin:-25px 0 0 -25px;transform:rotateX(55deg);z-index:-2;animation:pulsate 1.5s ease-out infinite}.marker-pulse-start{background:rgba(34,197,94,.3);height:60px;width:60px;margin:-30px 0 0 -30px}@keyframes pulsate{0%{transform:scale(.1);opacity:0}50%{opacity:1}to{transform:scale(1.2);opacity:0}}.stop-popup{min-width:250px}.popup-header{font-size:1.1rem;margin-bottom:10px;padding-bottom:8px;border-bottom:2px solid #e5e7eb;color:#1f2937}.popup-content{font-size:.9rem;color:#4b5563}.popup-content p{margin:8px 0;line-height:1.5}.popup-content hr{border:none;border-top:1px solid #e5e7eb;margin:12px 0}.delivery-instructions{background:#fef3c7;padding:10px;border-radius:6px;border-left:3px solid #f59e0b;font-size:.85rem}.traffic-delay{background:#fee2e2;padding:8px;border-radius:4px;border-left:3px solid #ef4444;color:#991b1b}.popup-actions{display:flex;grid-gap:10px;gap:10px;margin-top:15px;padding-top:10px;border-top:1px solid #e5e7eb}.btn-popup{flex:1 1;padding:8px 12px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:500;transition:all .2s}.btn-popup:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(102,126,234,.4)}.btn-popup:active{transform:translateY(0)}.map-legend{padding:20px;background:#f8fafc;border-top:1px solid #e5e7eb}.map-legend h4{margin:0 0 15px;font-size:1rem;color:#1f2937;font-weight:600}.legend-items{grid-gap:15px;gap:15px}.legend-item{font-size:.9rem;color:#4b5563}.legend-marker{width:20px;height:20px;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}.leaflet-container{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif}.leaflet-popup-content-wrapper{border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,.15)}.leaflet-popup-tip{box-shadow:0 2px 10px rgba(0,0,0,.1)}.leaflet-tooltip{background:rgba(0,0,0,.85);border:none;border-radius:6px;color:#fff;padding:8px 12px;font-weight:500;box-shadow:0 4px 12px rgba(0,0,0,.3)}.leaflet-tooltip-top:before{border-top-color:rgba(0,0,0,.85)}.leaflet-tooltip-bottom:before{border-bottom-color:rgba(0,0,0,.85)}.leaflet-tooltip-left:before{border-left-color:rgba(0,0,0,.85)}.leaflet-tooltip-right:before{border-right-color:rgba(0,0,0,.85)}@media (max-width:768px){.map-header h3{font-size:1.2rem}.map-stats{grid-gap:8px;gap:8px}.map-stat{font-size:.8rem;padding:6px 12px}.legend-items{grid-gap:10px;gap:10px}.legend-item{font-size:.85rem}.popup-actions{flex-direction:column}.btn-popup{width:100%}}.driver-view{max-width:800px;margin:0 auto;padding:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}.driver-view.loading,.driver-view.no-route{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;text-align:center}.loading-spinner{font-size:64px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.no-route-icon{font-size:80px;margin-bottom:20px}.driver-header{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.1);margin-bottom:20px}.route-info h1{margin:0 0 16px;font-size:24px;color:#2c3e50}.route-stats{display:flex;grid-gap:20px;gap:20px;flex-wrap:wrap}.route-stats .stat{font-size:14px;color:#7f8c8d;background:#ecf0f1;padding:8px 16px;border-radius:20px}.progress-bar{height:8px;border-radius:4px;margin:20px 0 8px}.progress-fill{background:linear-gradient(90deg,#16a34a,#22c55e)}.progress-text{text-align:right;font-size:12px}.current-stop-card{background:linear-gradient(135deg,#0891b2,#06b6d4);color:#fff;border-radius:16px;padding:24px;margin-bottom:24px;box-shadow:0 8px 24px rgba(6,182,212,.4)}.current-stop-card .label,.current-stop-card .value,.current-stop-card h2,.current-stop-card strong{text-shadow:0 1px 2px rgba(0,0,0,.2)}.stop-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.stop-number-badge{background:hsla(0,0%,100%,.3);padding:8px 16px;border-radius:20px}.stop-number-badge,.stop-status{font-weight:600;font-size:14px}.stop-customer{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.stop-customer h2{margin:0;font-size:28px;font-weight:700}.btn-call{background:hsla(0,0%,100%,.2);border:2px solid #fff;color:#fff;padding:10px 20px;border-radius:24px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-call:hover{background:#fff;color:#667eea}.stop-address{display:flex;align-items:flex-start;grid-gap:12px;gap:12px;background:hsla(0,0%,100%,.15);padding:16px;border-radius:12px;margin-bottom:20px}.address-icon{font-size:24px;flex-shrink:0}.address-text{font-size:16px;color:#fff}.stop-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-gap:12px;gap:12px;margin-bottom:24px}@media (max-width:480px){.stop-details{grid-template-columns:1fr;grid-gap:8px;gap:8px}}.detail-item{background:hsla(0,0%,100%,.1);padding:12px;border-radius:8px}.detail-item .label{display:block;font-size:12px;opacity:.8;margin-bottom:4px}.detail-item .value{display:block;font-size:16px;font-weight:600}.detail-item.detail-delivery-instructions{grid-column:1/-1}.detail-item .value.delivery-note{background:#e8f4f8;color:#2980b9;padding:10px 14px;border-radius:8px;font-weight:600;display:inline-block;margin-top:4px}.stop-actions{display:flex;flex-direction:column;grid-gap:12px;gap:12px}.action-buttons{display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:12px;gap:12px}.btn{padding:14px 24px;border-radius:12px;font-size:16px;text-align:center}.btn:disabled{opacity:.5;background:#bdc3c7;color:#7f8c8d}.btn:disabled:hover{transform:none;box-shadow:none;background:#bdc3c7}.btn-large{padding:18px 32px;font-size:18px}.btn-primary{background:#fff;color:#0891b2;font-weight:700}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(6,182,212,.4);background:#f0fdfa}.btn-success{background:#16a34a;color:#fff;font-weight:700}.btn-success:hover{background:#15803d;transform:translateY(-2px);box-shadow:0 4px 16px rgba(22,163,74,.4)}.btn-danger{background:#dc2626;font-weight:700}.btn-danger:hover{background:#b91c1c;transform:translateY(-2px);box-shadow:0 4px 16px rgba(220,38,38,.4)}.btn-info{background:#2563eb;color:#fff;font-weight:700}.btn-info:hover{background:#1d4ed8;transform:translateY(-2px);box-shadow:0 4px 16px rgba(37,99,235,.4)}.btn-warning{background:#ea580c;font-weight:700}.btn-warning:hover{background:#c2410c;transform:translateY(-2px);box-shadow:0 4px 16px rgba(234,88,12,.4)}.btn-block{width:100%;margin-top:12px}.stops-list{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.1)}.stops-list h3{margin:0 0 20px;font-size:20px;color:#2c3e50}.stop-item{display:flex;align-items:center;grid-gap:16px;gap:16px;padding:16px;border:2px solid #ecf0f1;border-radius:12px;margin-bottom:12px;cursor:pointer;transition:all .3s ease}.stop-item:hover{border-color:#0891b2;transform:translateX(4px);box-shadow:0 2px 12px rgba(6,182,212,.2)}.stop-item.current{border-color:#0891b2;background:#ecfeff;border-width:3px}.stop-item.completed{opacity:.75;border-color:#16a34a;background:#f0fdf4}.stop-item.failed{opacity:.75;border-color:#dc2626;background:#fef2f2}.stop-item-number{font-size:24px;font-weight:700;color:#0891b2;min-width:60px;text-align:center}.stop-item.completed .stop-item-number{color:#16a34a}.stop-item.failed .stop-item-number{color:#dc2626}.stop-item-info{flex:1 1}.stop-item-customer{font-weight:600;font-size:16px;color:#2c3e50;margin-bottom:4px}.stop-item-address{font-size:14px;color:#7f8c8d;margin-bottom:4px}.stop-item-time{font-size:12px;color:#95a5a6;margin-bottom:4px}.stop-item-delivery-info{font-size:13px;background:#e8f4f8;color:#2980b9;padding:6px 10px;border-radius:6px;font-weight:600;margin:6px 0;display:inline-block}.stop-item-status{font-size:12px;font-weight:600;color:#7f8c8d}.stop-item-actions{display:flex;grid-gap:8px;gap:8px}.btn-mini{border:none;background:#ecf0f1;padding:12px 14px;border-radius:8px;font-size:16px;cursor:pointer;transition:all .3s ease;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center}.btn-mini:hover{background:#d5dbdb;transform:scale(1.05)}.route-complete-card{background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;border-radius:16px;padding:32px;text-align:center;margin-top:24px;box-shadow:0 8px 24px rgba(22,163,74,.4)}.route-complete-card h2{margin:0 0 20px;font-size:28px}.navigation-buttons{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px;margin-bottom:16px}.navigation-buttons .btn{min-height:48px;display:flex;align-items:center;justify-content:center}@media (max-width:768px){.driver-view{padding:16px}.driver-header{padding:20px}.route-info h1{font-size:20px}.current-stop-card{padding:20px}.stop-customer{flex-direction:column;align-items:flex-start;grid-gap:12px;gap:12px}.stop-customer h2{font-size:24px}.btn-call{width:100%;text-align:center}.action-buttons,.navigation-buttons,.stop-details{grid-template-columns:1fr}.route-stats{flex-direction:column;grid-gap:8px;gap:8px}.route-stats .stat{width:100%;text-align:center}.stop-item{flex-direction:column;align-items:flex-start}.stop-item-number{min-width:auto;text-align:left}.stop-item-actions{width:100%;justify-content:flex-end}}@media (max-width:480px){.driver-view{padding:12px}.driver-header{padding:16px}.route-info h1{font-size:18px}.current-stop-card{padding:16px}.stop-customer h2{font-size:20px}.btn{padding:12px 20px;font-size:14px}.btn-large{padding:16px 24px;font-size:16px}.address-text,.detail-item .value{font-size:14px}.stops-list{padding:16px}.stop-item{padding:12px}.stop-item-customer{font-size:14px}.stop-item-address{font-size:13px}.navigation-buttons .btn{padding:14px 16px;font-size:15px}.route-stats .stat{font-size:12px;padding:6px 12px}.detail-item .label{font-size:11px}.detail-item .value{font-size:13px}}.missing-coords-view{background:#fff;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:30px}.view-header h2{font-size:28px;font-weight:700;color:#2c3e50;margin-bottom:30px}.stats-section{margin-bottom:40px}.view-subtitle{color:#7f8c8d;font-size:14px;margin-top:8px;font-weight:400}.stats-cards{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:20px;gap:20px;margin-bottom:24px}.stat-card{background:#fff;border-radius:12px;padding:24px;display:flex;align-items:center;grid-gap:16px;gap:16px;box-shadow:0 2px 8px rgba(0,0,0,.08);border:2px solid transparent;transition:all .3s ease}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.12)}.stat-card.total{border-color:#3498db}.stat-card.success{border-color:#27ae60}.stat-card.warning{border-color:#f39c12}.stat-card.progress{border-color:#9b59b6}.stat-card.info{border-color:#3498db}.stat-icon{font-size:36px;width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#f8f9fa}.stat-content{flex:1 1}.stat-label{font-size:12px;color:#7f8c8d;text-transform:uppercase;font-weight:600;margin-bottom:4px;letter-spacing:.5px}.stat-value{font-size:32px;font-weight:700;color:#2c3e50;line-height:1}.progress-bar-container{background:#f8f9fa;border-radius:12px;padding:20px}.progress-bar{height:40px;background:#ecf0f1;border-radius:20px;overflow:hidden;position:relative;margin-bottom:12px}.progress-fill{height:100%;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:20px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;transition:width .5s ease}.progress-text{text-align:center;color:#7f8c8d;font-size:14px;font-weight:600}.orders-section{background:#f8f9fa;border-radius:12px;padding:24px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-header h3{font-size:20px;font-weight:600;color:#2c3e50}.btn-refresh{background:#3498db;color:#fff;border:none;padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-refresh:hover:not(:disabled){background:#2980b9;transform:translateY(-2px);box-shadow:0 4px 12px rgba(52,152,219,.3)}.btn-refresh:disabled{opacity:.6;cursor:not-allowed}.orders-table{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.05)}.orders-table table{width:100%;border-collapse:collapse}.orders-table thead{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.orders-table th{padding:16px 12px;text-align:left;font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.orders-table tbody tr{border-bottom:1px solid #ecf0f1;transition:background .2s ease}.orders-table tbody tr:hover{background:#f8f9fa}.orders-table tbody tr:last-child{border-bottom:none}.orders-table td{padding:16px 12px;vertical-align:top}.col-customer{width:20%}.col-address{width:25%}.col-district{width:12%}.col-stats{width:10%}.col-date{width:15%}.col-actions{width:150px;text-align:center}.customer-email{font-size:12px;color:#7f8c8d;margin-top:4px}.delivery-note{margin-top:6px;padding:6px 10px;background:#fff3cd;color:#856404;border-radius:6px;font-size:12px;font-weight:500}.purchase-count{display:inline-block;background:#e8f4f8;color:#2980b9;padding:6px 12px;border-radius:6px;font-weight:600;font-size:13px}.last-purchase{font-size:13px;color:#2c3e50;font-weight:600;margin-bottom:4px}.typical-time{font-size:12px;color:#7f8c8d;margin-top:4px}.address-text{color:#2c3e50;font-size:14px;line-height:1.5}.district-badge{display:inline-block;background:#f8f9fa;color:#2c3e50;padding:6px 12px;border-radius:6px;font-size:13px;font-weight:600}.time-range{color:#7f8c8d;font-size:13px;font-weight:500}.btn-edit{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:10px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:all .3s ease;white-space:nowrap}.btn-edit:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(102,126,234,.4)}.empty-state,.loading-state{text-align:center;padding:80px 20px}.empty-icon,.loading-icon{font-size:64px;margin-bottom:20px}.empty-state h3{font-size:24px;color:#27ae60;margin-bottom:12px;font-weight:700}.loading-state p{font-size:16px;color:#7f8c8d;margin-top:20px}@media (max-width:1024px){.stats-cards{grid-template-columns:repeat(2,1fr)}}@media (max-width:768px){.missing-coords-view{padding:20px}.view-header h2{font-size:22px}.stats-cards{grid-template-columns:1fr;grid-gap:12px;gap:12px}.stat-card{padding:16px}.stat-icon{font-size:28px;width:50px;height:50px}.stat-value{font-size:24px}.orders-section{padding:16px}.section-header{flex-direction:column;grid-gap:12px;gap:12px;align-items:stretch}.btn-refresh{width:100%}.orders-table{overflow-x:auto}.orders-table table{min-width:800px}}@media (max-width:480px){.missing-coords-view{padding:16px}.view-header h2{font-size:18px}.stat-card{padding:12px}.stat-icon{font-size:24px;width:40px;height:40px}.stat-value{font-size:20px}.stat-label{font-size:11px}.progress-bar{height:32px}.progress-fill{font-size:12px}}.queue-view{background:#fff;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:30px}.queue-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;flex-wrap:wrap}.header-left,.queue-header{grid-gap:16px;gap:16px}.header-left h2{font-size:28px;font-weight:700;color:#2c3e50;margin:0}.date-display{background:#e8f4f8;color:#2980b9;padding:6px 14px;border-radius:20px;font-size:14px;font-weight:600}.header-right{grid-gap:16px;gap:16px}.auto-refresh-toggle{display:flex;align-items:center;grid-gap:8px;gap:8px;font-size:14px;color:#7f8c8d;cursor:pointer}.auto-refresh-toggle input[type=checkbox]{width:18px;height:18px;cursor:pointer}.queue-content{display:grid;grid-template-columns:320px 1fr;grid-gap:30px;gap:30px}.windows-panel{background:#f8f9fa;border-radius:12px;padding:20px;max-height:calc(100vh - 300px);overflow-y:auto}.windows-panel h3{font-size:18px;font-weight:600;color:#2c3e50;margin-bottom:20px}.windows-list{display:flex;flex-direction:column;grid-gap:12px;gap:12px}.window-card{background:#fff;border:2px solid #ecf0f1;border-radius:12px;padding:16px;cursor:pointer;transition:all .3s ease}.window-card:hover{border-color:#3498db;box-shadow:0 4px 12px rgba(52,152,219,.2)}.window-card.selected{border-color:#3498db;background:#e8f4f8}.window-card.closed{opacity:.6;background:#f5f5f5}.window-card .window-time{font-size:16px;font-weight:600;color:#2c3e50;margin-bottom:8px}.window-card .window-stats{display:flex;grid-gap:12px;gap:12px;align-items:center}.window-card .stat{font-size:13px;color:#7f8c8d}.requires-call-section{margin-top:30px;padding-top:20px;border-top:2px solid #ecf0f1}.requires-call-section h3{font-size:16px;font-weight:600;color:#e74c3c;margin-bottom:16px}.requires-call-list{display:flex;flex-direction:column;grid-gap:12px;gap:12px}.requires-call-item{background:#fff;border:2px solid #f8d7da;border-radius:12px;padding:14px;transition:all .3s ease}.requires-call-item:hover{border-color:#e74c3c;box-shadow:0 4px 12px rgba(231,76,60,.15)}.call-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.call-item-header .customer-name{font-weight:600;color:#2c3e50;font-size:14px}.call-icon{font-size:20px}.call-item-details{display:flex;grid-gap:16px;gap:16px;align-items:center}.phone-link{color:#3498db;text-decoration:none;font-weight:600;font-size:14px}.phone-link:hover{color:#2980b9;text-decoration:underline}.call-item-details .window-time,.call-item-notes{font-size:12px;color:#7f8c8d}.call-item-notes{margin-top:8px;font-style:italic;padding:8px;background:#f8f9fa;border-radius:6px}.queue-panel{background:#f8f9fa;border-radius:12px;padding:30px;max-height:calc(100vh - 300px);overflow-y:auto}.queue-panel-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-wrap:wrap;grid-gap:16px;gap:16px}.queue-panel-header h3{font-size:20px;font-weight:700;color:#2c3e50;margin:0}.capacity-info{display:flex;flex-direction:column;grid-gap:8px;gap:8px;min-width:200px}.capacity-bar{height:12px;background:#ecf0f1;border-radius:6px;overflow:hidden}.capacity-fill{height:100%;background:linear-gradient(135deg,#27ae60,#2ecc71);border-radius:6px;transition:width .3s ease}.capacity-bar.exceeded .capacity-fill{background:linear-gradient(135deg,#e74c3c,#c0392b)}.capacity-text{font-size:13px;color:#7f8c8d;font-weight:500}.queue-list{display:flex;flex-direction:column;grid-gap:12px;gap:12px}.queue-item{background:#fff;border:2px solid #ecf0f1;border-radius:12px;padding:16px;display:flex;grid-gap:16px;gap:16px;align-items:flex-start;transition:all .3s ease}.queue-item:hover{border-color:#3498db;box-shadow:0 4px 12px rgba(52,152,219,.15)}.queue-item.priority{border-left:4px solid #f39c12;background:#fffcf5}.queue-item.locked{border-left:4px solid #9b59b6;background:#f9f5ff}.queue-item-position{display:flex;flex-direction:column;align-items:center;grid-gap:4px;gap:4px;min-width:50px}.position-number{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-weight:700;font-size:16px}.priority-badge{color:#f39c12;font-size:16px}.locked-badge{font-size:14px}.queue-item-content{flex:1 1;min-width:0}.queue-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;flex-wrap:wrap;grid-gap:8px;gap:8px}.customer-name{font-weight:600;color:#2c3e50;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-item-details{display:flex;flex-wrap:wrap;grid-gap:16px;gap:16px;margin-bottom:10px}.queue-item-details .detail-item{display:flex;align-items:center;grid-gap:6px;gap:6px;font-size:13px;color:#7f8c8d}.detail-icon{font-size:14px}.queue-item-badges{display:flex;flex-wrap:wrap;grid-gap:8px;gap:8px}.queue-item-actions{display:flex;flex-direction:column;align-items:flex-end;grid-gap:8px;gap:8px}.purchase-id{font-size:12px;color:#95a5a6;font-weight:500}.badge{display:inline-flex;align-items:center;grid-gap:4px;gap:4px;padding:4px 10px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.badge-primary{background:#e8f4f8;color:#2980b9}.badge-success{background:#d5f4e6;color:#27ae60}.badge-warning{background:#fef3e2;color:#f39c12}.badge-danger{background:#fce4e4;color:#e74c3c}.badge-info{background:#e8f4f8;color:#3498db}.badge-secondary{background:#ecf0f1;color:#7f8c8d}.queue-legend{margin-top:24px;padding-top:20px;border-top:2px solid #ecf0f1}.queue-legend h4{font-size:14px;font-weight:600;color:#7f8c8d;margin-bottom:12px}.legend-items{display:flex;flex-wrap:wrap;grid-gap:20px;gap:20px}.legend-item{display:flex;align-items:center;grid-gap:8px;gap:8px;font-size:12px;color:#7f8c8d}.empty-state{text-align:center;padding:60px 20px;color:#95a5a6}.empty-icon{font-size:48px;display:block;margin-bottom:16px}.empty-state p{font-size:16px;color:#7f8c8d;margin:0}.btn{grid-gap:8px;gap:8px;padding:10px 20px;border-radius:8px;font-size:14px;transition:all .3s ease}.btn-primary:disabled{opacity:.6;cursor:not-allowed}@media (max-width:1024px){.queue-content{grid-template-columns:260px 1fr;grid-gap:20px;gap:20px}}@media (max-width:768px){.queue-view{padding:16px;border-radius:0;box-shadow:none;min-height:calc(100vh - 180px)}.queue-header{flex-direction:column;align-items:stretch;grid-gap:12px;gap:12px;position:-webkit-sticky;position:sticky;top:0;background:#fff;z-index:10;margin:-16px -16px 16px;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,.08)}.header-left{flex-direction:row;align-items:center;justify-content:space-between;grid-gap:8px;gap:8px}.header-left h2{font-size:20px}.header-right{flex-direction:row;align-items:center;justify-content:space-between;grid-gap:12px;gap:12px}.auto-refresh-toggle{font-size:12px}.btn-primary{padding:8px 16px;font-size:13px}.queue-content{grid-template-columns:1fr;grid-gap:16px;gap:16px}.windows-panel{max-height:none;padding:16px;order:1}.windows-panel h3{font-size:16px;margin-bottom:12px}.windows-list{flex-direction:row;overflow-x:auto;grid-gap:10px;gap:10px;padding-bottom:8px;margin:0 -16px;padding-left:16px;padding-right:16px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.windows-list::-webkit-scrollbar{height:4px}.windows-list::-webkit-scrollbar-track{background:#ecf0f1;border-radius:4px}.windows-list::-webkit-scrollbar-thumb{background:#bdc3c7;border-radius:4px}.window-card{min-width:140px;flex-shrink:0;padding:12px;scroll-snap-align:start}.window-card .window-time{font-size:14px;margin-bottom:6px}.window-card .window-stats{flex-direction:column;grid-gap:4px;gap:4px;align-items:flex-start}.window-card .stat{font-size:11px}.requires-call-section{margin-top:16px;padding-top:16px}.requires-call-section h3{font-size:14px}.requires-call-list{flex-direction:row;overflow-x:auto;grid-gap:10px;gap:10px;margin:0 -16px;padding:0 16px 8px;-webkit-overflow-scrolling:touch}.requires-call-item{min-width:200px;flex-shrink:0;padding:12px}.queue-panel{padding:16px;max-height:none;order:2}.queue-panel-header{flex-direction:column;align-items:stretch;grid-gap:12px;gap:12px;margin-bottom:16px}.queue-panel-header h3{font-size:16px}.capacity-info{min-width:100%}.capacity-bar{height:10px}.capacity-text{font-size:12px}.queue-list{grid-gap:10px;gap:10px}.queue-item{flex-direction:column;grid-gap:12px;gap:12px;padding:14px}.queue-item-position{flex-direction:row;justify-content:space-between;align-items:center;width:100%;padding-bottom:10px;border-bottom:1px solid #ecf0f1;margin-bottom:0}.position-number{width:36px;height:36px;font-size:14px}.queue-item-content{width:100%}.queue-item-header{margin-bottom:8px}.customer-name{font-size:14px;max-width:70%}.queue-item-details{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px;margin-bottom:10px}.queue-item-details .detail-item{font-size:12px;grid-gap:4px;gap:4px}.detail-icon{font-size:12px}.queue-item-badges{grid-gap:6px;gap:6px}.queue-item-actions{flex-direction:row;width:100%;justify-content:flex-end;padding-top:10px;border-top:1px solid #ecf0f1}.queue-legend{margin-top:16px;padding-top:16px}.queue-legend h4{font-size:12px;margin-bottom:10px}.legend-items{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.legend-item{font-size:11px;grid-gap:6px;gap:6px}.empty-state{padding:40px 16px}.empty-icon{font-size:40px;margin-bottom:12px}.empty-state p{font-size:14px}}@media (max-width:480px){.queue-view{padding:12px}.queue-header{margin:-12px -12px 12px;padding:12px}.header-left h2{font-size:18px}.date-display{font-size:11px;padding:4px 10px}.header-right{flex-wrap:wrap}.auto-refresh-toggle{font-size:11px;flex:1 1}.btn-primary{padding:8px 12px;font-size:12px;flex:1 1;justify-content:center}.windows-panel{padding:12px}.windows-panel h3{font-size:14px;margin-bottom:10px}.windows-list{margin:0 -12px;padding-left:12px;padding-right:12px}.window-card{min-width:120px;padding:10px}.window-card .window-time{font-size:13px}.window-card .stat{font-size:10px}.requires-call-list{margin:0 -12px;padding:0 12px 8px}.requires-call-item{min-width:180px;padding:10px}.call-item-header .customer-name{font-size:12px}.call-icon{font-size:16px}.phone-link{font-size:12px}.call-item-details .window-time{font-size:11px}.queue-panel{padding:12px}.queue-panel-header h3{font-size:14px}.queue-list{grid-gap:8px;gap:8px}.queue-item{padding:12px;grid-gap:10px;gap:10px}.position-number{width:32px;height:32px;font-size:13px}.locked-badge,.priority-badge{font-size:12px}.customer-name{font-size:13px;max-width:60%}.queue-item-details{grid-template-columns:1fr 1fr;grid-gap:6px;gap:6px}.queue-item-details .detail-item{font-size:11px}.badge{font-size:9px;padding:3px 6px;border-radius:8px}.purchase-id{font-size:11px}.legend-items{grid-template-columns:1fr;grid-gap:8px;gap:8px}.legend-item{font-size:10px}.legend-item .badge{font-size:9px}}@media (max-width:360px){.queue-view{padding:8px}.queue-header{margin:-8px -8px 8px;padding:8px}.header-left h2{font-size:16px}.date-display{font-size:10px;padding:3px 8px}.queue-panel,.windows-panel{padding:10px}.window-card{min-width:110px;padding:8px}.window-card .window-time{font-size:12px}.queue-item{padding:10px}.position-number{width:28px;height:28px;font-size:12px}.customer-name{font-size:12px}.queue-item-details .detail-item{font-size:10px}.badge{font-size:8px;padding:2px 5px}}@media (hover:none) and (pointer:coarse){.window-card{min-height:70px}.queue-item{min-height:80px}.btn-primary{min-height:44px}.phone-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;background:#e8f4f8;border-radius:8px}}.users-view{padding:20px 0}.users-header{align-items:center;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap}.users-header,.users-title{display:flex;grid-gap:12px;gap:12px}.users-title{align-items:baseline}.users-title h2{margin:0;font-size:1.5rem;color:#2c3e50}.users-count{font-size:.875rem;color:#7f8c8d;background:#ecf0f1;padding:2px 10px;border-radius:12px}.users-loading{text-align:center;padding:60px 0;color:#7f8c8d;font-size:1rem}.users-table-wrapper{background:#fff;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden}.users-table{width:100%;border-collapse:collapse;font-size:.9rem}.users-table thead{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.users-table th{padding:14px 16px;text-align:left;font-weight:600;letter-spacing:.03em;font-size:.82rem;text-transform:uppercase}.users-table td{padding:13px 16px;border-bottom:1px solid #f0f0f0;color:#2c3e50;vertical-align:middle}.users-table tbody tr:last-child td{border-bottom:none}.users-table tbody tr:hover{background:#f8f9ff}.users-empty{text-align:center;color:#aaa;padding:40px!important;font-style:italic}.user-name-cell{grid-gap:10px;gap:10px}.user-avatar,.user-name-cell{display:flex;align-items:center}.user-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;justify-content:center;font-size:.75rem;font-weight:700;flex-shrink:0;text-transform:uppercase}.text-muted{color:#bdc3c7}.role-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:.78rem;font-weight:600}.role-superadmin{background:#f3e8ff;color:#7c3aed}.role-admin{background:#e0f0ff;color:#1d6fa4}.role-driver{background:#e6f9f0;color:#16a34a}.status-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:.78rem;font-weight:600}.status-active{background:#dcfce7;color:#15803d}.status-inactive{background:#fee2e2;color:#b91c1c}.user-actions{display:flex;grid-gap:6px;gap:6px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 18px;border:none;border-radius:6px;font-size:.88rem;font-weight:600;cursor:pointer;transition:all .2s ease}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px rgba(102,126,234,.4)}.btn-secondary{background:#ecf0f1;color:#2c3e50}.btn-secondary:hover:not(:disabled){background:#dde4e6}.btn-danger{background:#e74c3c;color:#fff}.btn-danger:hover:not(:disabled){background:#c0392b}.btn-warning{background:#f39c12;color:#fff}.btn-warning:hover:not(:disabled){background:#d68910}.btn-sm{padding:5px 12px;font-size:.8rem}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-box{background:#fff;border-radius:12px;width:100%;max-width:520px;box-shadow:0 20px 60px rgba(0,0,0,.25);display:flex;flex-direction:column}.modal-box.modal-sm{max-width:420px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #ecf0f1}.modal-header h3{margin:0;font-size:1.1rem;color:#2c3e50}.modal-close{background:none;border:none;font-size:1.4rem;line-height:1;color:#7f8c8d;cursor:pointer;padding:0 4px;transition:color .2s}.modal-close:hover{color:#2c3e50}.modal-body,.modal-box form{padding:20px 24px}.modal-body p{margin:0 0 8px;color:#2c3e50}.modal-footer{display:flex;justify-content:flex-end;grid-gap:10px;gap:10px;padding:16px 24px;border-top:1px solid #ecf0f1}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:.83rem;font-weight:600;color:#555;margin-bottom:5px}.form-group input,.form-group select{width:100%;padding:9px 12px;border:1px solid #dde4e6;border-radius:6px;font-size:.9rem;color:#2c3e50;transition:border-color .2s;box-sizing:border-box}.form-group input:focus,.form-group select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px rgba(102,126,234,.15)}.form-group select:disabled{background:#f5f5f5;color:#888;cursor:not-allowed}.form-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;gap:14px}@media (max-width:500px){.form-row{grid-template-columns:1fr}.users-table td:nth-child(3),.users-table th:nth-child(3){display:none}}.app-sider .ant-layout-sider-trigger{background:#002140}.sider-logo{height:64px;justify-content:center;font-size:18px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;padding:0 16px;background:#002140;letter-spacing:.5px}.app-header-ant,.sider-logo{display:flex;align-items:center}.app-header-ant{background:#fff;padding:0 24px;justify-content:space-between;box-shadow:0 1px 4px rgba(0,21,41,.08);position:-webkit-sticky;position:sticky;top:0;z-index:99}.header-left{display:flex;align-items:center}.header-trigger{font-size:18px;cursor:pointer;color:rgba(0,0,0,.65);transition:color .2s}.header-trigger:hover{color:#1890ff}.header-right{grid-gap:20px;gap:20px}.header-date,.header-right{display:flex;align-items:center}.header-date{grid-gap:8px;gap:8px;color:rgba(0,0,0,.45)}.date-input-ant{border:1px solid #d9d9d9;border-radius:6px;padding:4px 10px;font-size:14px;outline:none;color:rgba(0,0,0,.85);transition:border-color .2s}.date-input-ant:focus{border-color:#1890ff}.header-user{display:flex;align-items:center;grid-gap:8px;gap:8px;cursor:pointer;padding:4px 8px;border-radius:6px;transition:background .2s}.header-user:hover{background:#f5f5f5}.header-username{font-size:14px;color:rgba(0,0,0,.85);max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-role-tag{font-size:11px;line-height:18px;padding:0 6px;border-radius:10px}.avatar-superadmin{background-color:#722ed1!important}.avatar-admin{background-color:#1890ff!important}.avatar-driver{background-color:#52c41a!important}.app-content-ant{padding:24px;min-height:calc(100vh - 64px);background:#f0f2f5;overflow:auto}.login-page{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:400px;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.login-header{display:flex;flex-direction:column;align-items:center;grid-gap:4px;gap:4px;margin-bottom:32px;text-align:center}.login-version{text-align:center;font-size:12px;color:rgba(0,0,0,.25);margin-top:8px}@media (max-width:768px){.header-role-tag,.header-username{display:none}.header-date{grid-gap:6px;gap:6px}.date-input-ant{font-size:13px;padding:3px 8px}.app-content-ant{padding:16px}}@media (max-width:480px){.app-header-ant{padding:0 12px}.app-content-ant{padding:12px}}
/*# sourceMappingURL=main.ee64eef0.chunk.css.map */