:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--primary:#4f46e5;--primary-hover:#4338ca;--bg-dark:#eef4fb;--bg-card:#fffffff0;--text-main:#1e293b;--text-muted:#64748b;--border-color:#33415529;--success:#10b981;--warning:#f59e0b;--danger:#ef4444}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-dark);color:var(--text-main);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:radial-gradient(at 0 0,#60a5fa38 0,#0000 48%),radial-gradient(at 100% 100%,#2dd4bf29 0,#0000 48%);background-attachment:fixed;min-height:100vh;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;transition:background-color .25s,color .25s}.app-container{box-sizing:border-box;max-width:1400px;margin:0 auto;padding:0 1.25rem 3rem}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}.header{text-align:center;margin-bottom:2rem}.header h1{background:linear-gradient(90deg,#60a5fa,#a78bfa);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin-bottom:.5rem;font-size:2.5rem;font-weight:700}.subtitle{color:var(--text-muted);font-size:1.1rem}.system-time{color:var(--text-muted);font-size:.9rem;font-weight:600}.api-status-success{color:#34d399;font-size:.9rem;font-weight:600}.api-status-warning{color:#fcd34d;font-size:.9rem;font-weight:600}.api-status-danger{color:#b91c1c;font-size:.9rem;font-weight:700}.sheet-sync-status{color:#93c5fd;font-size:.85rem;font-weight:600}.api-success-relative{color:#a7f3d0;margin-left:.25rem;font-weight:500}.table-container{background:var(--bg-card);border-radius:12px;overflow-x:auto}.ship-table{border-collapse:collapse;text-align:left;width:100%}.ship-table th{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border-color);background:#0f172a99;padding:.3rem .25rem;font-size:.7rem;font-weight:600}.ship-table td{white-space:nowrap;border-bottom:1px solid #ffffff0d;padding:.3rem .25rem;font-size:.75rem}.ship-table tbody tr{transition:all .2s}.ship-table tbody tr:hover{background:#ffffff08;transform:translateY(-1px)}.remark-cell{color:#9ca3af;width:500px;max-width:500px;font-size:.8rem;padding-right:.5rem!important}.remark-scroll{white-space:nowrap;scrollbar-color:#60a5faa6 #ffffff14;scrollbar-width:thin;width:min(500px,42vw);min-width:280px;max-width:500px;padding-bottom:3px;overflow:auto hidden}.fw-bold{font-weight:600}.text-primary{color:#60a5fa}.text-success{color:#10b981}.text-center{text-align:center}.highlight-col{background:#ffffff05;border-left:1px solid #ffffff0d;border-right:1px solid #ffffff0d}.badge{letter-spacing:.025em;border-radius:9999px;padding:.25rem .75rem;font-size:.75rem;font-weight:600;display:inline-block}.badge.carrier{color:#60a5fa;background:#60a5fa1a;border:1px solid #60a5fa33}.badge.port{color:#a78bfa;background:#a78bfa1a;border:1px solid #a78bfa33}.qty-col{text-align:right;font-family:JetBrains Mono,monospace}.time-col{color:var(--text-muted);font-size:.85rem}.loading-state,.error-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:4rem;display:flex}.error-state{color:var(--danger)}.spinner{border:3px solid #60a5fa33;border-top-color:#60a5fa;border-radius:50%;width:40px;height:40px;margin-bottom:1rem;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media screen and (width<=768px){.header h1{font-size:1.8rem}.subtitle{font-size:.9rem}.header>div{flex-wrap:wrap!important}.header .system-time,.header .api-status-success,.header .api-status-warning,.header .api-status-danger,.header .sheet-sync-status{text-align:center;width:100%}.stats-container{flex-direction:column!important}.stats-container>div{width:100%;margin-bottom:1rem;flex:100%!important}.glass-panel{padding:1rem!important}.table-container{padding:0!important}.ship-table th,.ship-table td{padding:.75rem .5rem;font-size:.85rem}.stats-bucket-container{flex-direction:column!important}.stats-bucket-container>div{width:100%;margin-bottom:.5rem}.chart-wrapper{-webkit-overflow-scrolling:touch;min-height:350px;height:auto!important}}.pulse-warning>div:first-child>div:nth-child(2){color:var(--shortage-color)!important}.header{margin-bottom:1.5rem}.header h1{margin-bottom:.35rem;font-size:clamp(2rem,4vw,2.75rem)}.dashboard-toolbar{flex-direction:column;gap:.85rem;margin-top:1.25rem;display:flex}.toolbar-actions{flex-wrap:wrap;justify-content:center;align-items:stretch;gap:.75rem;display:flex}.toolbar-group{background:#0f172a6b;border:1px solid #94a3b82e;border-radius:.7rem;flex-wrap:wrap;align-items:center;gap:.45rem;padding:.45rem;display:flex}.toolbar-label{color:#94a3b8;letter-spacing:.08em;text-transform:uppercase;padding:0 .35rem;font-size:.68rem;font-weight:700}.toolbar-group .btn{white-space:nowrap;border-radius:.5rem;min-height:2.35rem;font-size:.78rem}.sync-status{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}.status-item{color:#cbd5e1;background:#0f172a8c;border:1px solid #94a3b833;border-radius:999px;align-items:center;gap:.35rem;min-height:2rem;padding:.35rem .65rem;font-size:.75rem;line-height:1.2;display:inline-flex}.status-item strong{color:#f8fafc;letter-spacing:.03em;font-size:.7rem}.status-item i{font-size:.8rem}.status-item.api-status-success{color:#a7f3d0;border-color:#34d39947}.status-item.api-status-warning{color:#fde68a;background:#78350f33;border-color:#fcd34d5c}.status-item.sheet-sync-status{color:#bfdbfe;border-color:#60a5fa47}.stats-container{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0 2rem;display:grid}.kpi-card{border-radius:.9rem;justify-content:space-between;align-items:center;gap:1rem;min-height:8rem;display:flex;padding:1.25rem 1.5rem!important}.kpi-primary{grid-column:1/-1}.kpi-copy{min-width:0}.kpi-label{color:#e2e8f0;letter-spacing:.04em;text-transform:uppercase;font-size:1rem;font-weight:750}.kpi-help{color:#94a3b8;margin-top:.35rem;font-size:.8rem}.kpi-description{margin-top:.35rem;font-size:.95rem;font-weight:500;line-height:1.45}.kpi-value{text-align:right;flex:none;font-size:clamp(2.2rem,5vw,3rem);font-weight:800;line-height:1}.table-container{border:1px solid #60a5fa33;position:relative;box-shadow:0 16px 40px #0206172e;padding:1rem!important}.table-toolbar{border-bottom:1px solid #94a3b824;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;padding:.25rem .15rem .8rem;display:flex}.table-title{color:#bfdbfe;letter-spacing:.02em;margin:0;font-size:1.1rem}.table-subtitle{color:#94a3b8;margin-top:.25rem;font-size:.78rem}.table-scroll-hint{color:#94a3b8;white-space:nowrap;border:1px solid #94a3b82e;border-radius:999px;flex:none;padding:.4rem .65rem;font-size:.72rem}.ship-table{min-width:1450px}.ship-table th{z-index:2;color:#b8c6dd;background:#172238;padding:.6rem .45rem;font-size:.68rem;position:sticky;top:0}.ship-table td{color:#e2e8f0;padding:.55rem .45rem;font-size:.8rem}.ship-table th:first-child,.ship-table td:first-child{z-index:3;min-width:132px;position:sticky;left:0;box-shadow:5px 0 10px #02061738}.ship-table th:first-child{z-index:5;background:#172238}.ship-table input{min-height:1.65rem}@media screen and (width<=768px){.dashboard-toolbar,.toolbar-actions,.toolbar-group{width:100%}.toolbar-group{justify-content:center}.toolbar-label{text-align:center;width:100%}.toolbar-group .btn{flex:auto}.sync-status{flex-direction:column;align-items:stretch}.status-item{border-radius:.55rem;justify-content:center}.stats-container{flex-direction:column;margin-bottom:1.25rem;display:flex}.kpi-card{min-height:6.5rem;padding:1rem!important}.kpi-label{font-size:.88rem}.kpi-description{font-size:.82rem}.kpi-value{font-size:2.25rem}.table-container{margin-left:-.25rem;margin-right:-.25rem;padding:.75rem!important}.table-toolbar{flex-direction:column;align-items:flex-start}.table-scroll-hint{align-self:flex-start}}.header h1{background:linear-gradient(110deg,#2563eb,#7c3aed);-webkit-background-clip:text;background-clip:text}.subtitle{color:#64748b}.toolbar-group{background:#ffffffad;border-color:#64748b3d;box-shadow:0 4px 14px #1e40af0f}.toolbar-label{color:#64748b}.status-item{color:#475569;background:#ffffffd1;border-color:#64748b40;box-shadow:0 3px 10px #1e40af0d}.status-item strong{color:#1e293b}.status-item.api-status-warning{color:#92400e;background:#fffbeb}.status-item.api-status-danger{color:#b91c1c;background:#fef2f2;border-color:#b91c1c59}.status-item.sheet-sync-status{color:#1d4ed8;background:#eff6ff}.kpi-card,.table-container{border-color:#60a5fa47;box-shadow:0 12px 32px #1e40af14;background:#ffffffe6!important}.kpi-label,.kpi-description{color:#334155!important}.kpi-help,.table-subtitle{color:#64748b}.kpi-alert .kpi-label,.kpi-alert .kpi-description{color:#b91c1c!important}.kpi-success .kpi-label{color:#047857!important}.kpi-success .kpi-description{color:#334155!important}.table-title{color:#1d4ed8}.table-scroll-hint{color:#2563eb;background:#eff6ff;border-color:#60a5fa4d}.ship-table th{color:#334155;background:#dbeafe;border-bottom-color:#bfdbfe}.ship-table td{color:#334155;border-bottom-color:#64748b24}.ship-table th:first-child{background:#dbeafe}.ship-table tbody td:first-child{background:#f8fafc}.ship-table tbody tr:hover td:first-child{background:#e0efff}.ship-table .text-primary{color:#1d4ed8!important}.ship-table [style*=\#fff],.ship-table [style*=\#E2E8F0]{color:#334155!important}.ship-table input{color:#334155!important;border-color:#94a3b8!important}.ship-table input::placeholder{color:#64748b}.vendor-evaluation-panel{color:#334155;border:1px solid #60a5fa3d;box-shadow:0 12px 32px #1e40af14;background:#ffffffe6!important}.vendor-evaluation-toolbar{box-shadow:0 3px 12px #1e40af0d}.vendor-evaluation-toolbar>div:last-child span{color:#64748b!important}.vendor-evaluation-toolbar .btn-outline-secondary{color:#475569!important;border-color:#94a3b8!important}.vendor-evaluation-panel .evaluation-form-control,.vendor-evaluation-panel .bg-dark{color:#334155!important;background-color:#fff!important;border-color:#94a3b8!important}.vendor-evaluation-panel .evaluation-form-control:focus,.vendor-evaluation-panel .bg-dark:focus{border-color:#3b82f6!important;box-shadow:0 0 0 .2rem #3b82f626!important}.vendor-evaluation-panel .table{--bs-table-color:#334155;--bs-table-bg:transparent;--bs-table-striped-color:#334155;--bs-table-striped-bg:#f8fafc;--bs-table-hover-color:#1e293b;--bs-table-hover-bg:#eff6ff;color:#334155!important;background:0 0!important}.vendor-evaluation-panel .table>:not(caption)>*>*{color:#334155!important;background-color:#0000!important;border-bottom-color:#cbd5e1!important}.vendor-evaluation-panel .table thead tr,.vendor-evaluation-panel .table thead th{color:#334155!important;background:#e2e8f0!important;border-bottom-color:#93c5fd!important}.vendor-evaluation-panel .table tbody tr:nth-child(2n)>*{background:#f8fafc!important}.vendor-evaluation-panel .table tbody tr:hover>*{background:#eff6ff!important}.vendor-evaluation-panel .vendor-ranking-table tbody td:nth-child(2),.vendor-evaluation-panel .truck-ranking-table tbody td:nth-child(2){color:#1e293b!important}.vendor-evaluation-panel .vendor-ranking-table tbody td:nth-child(3),.vendor-evaluation-panel .truck-ranking-table tbody td:nth-child(5){color:#0369a1!important}.vendor-evaluation-panel .vendor-ranking-table tbody td:nth-child(4),.vendor-evaluation-panel .vendor-ranking-table tbody td:nth-child(7),.vendor-evaluation-panel .truck-ranking-table tbody td:nth-child(3),.vendor-evaluation-panel .truck-ranking-table tbody td:nth-child(4),.vendor-evaluation-panel .truck-ranking-table tbody td:nth-child(7){color:#64748b!important}.vendor-evaluation-panel .vendor-ranking-table tbody td:nth-child(5),.vendor-evaluation-panel .truck-ranking-table tbody td:nth-child(2){color:#b45309!important}.vendor-evaluation-panel .vendor-ranking-table tbody td:nth-child(9),.vendor-evaluation-panel .truck-ranking-table tbody td:nth-child(9){color:#047857!important}.vendor-evaluation-panel .vendor-ranking-table tbody td:nth-child(10){color:#2563eb!important}.vendor-evaluation-panel .table thead th[style*=\#FCD34D],.vendor-evaluation-panel .table thead th[style*=\#F472B6],.vendor-evaluation-panel .table thead th[style*=\#60A5FA],.vendor-evaluation-panel .table thead th[style*=\#38BDF8],.vendor-evaluation-panel .table thead th[style*=\#34D399]{color:#1d4ed8!important}.evaluation-summary-card{color:#334155;box-shadow:0 4px 14px #1e40af0d}.evaluation-summary-card>div:first-child,.evaluation-summary-card>div:last-child{color:#64748b!important}.evaluation-summary-blue>div:nth-child(2){color:#0284c7!important}.evaluation-summary-green>div:nth-child(2){color:#047857!important}.evaluation-summary-amber>div:nth-child(2){color:#b45309!important}.evaluation-summary-purple>div:nth-child(2){color:#6d28d9!important}.evaluation-summary-pink>div:nth-child(2){color:#be185d!important}.evaluation-chart-card{color:#334155;box-shadow:0 4px 16px #1e40af0f}.evaluation-chart-card h5[style*=\#FCD34D]{color:#b45309!important}.evaluation-chart-card h5[style*=\#34D399]{color:#047857!important}.evaluation-chart-card .recharts-cartesian-axis-tick-value,.evaluation-chart-card .recharts-text,.evaluation-chart-card .recharts-legend-item-text{fill:#475569!important;color:#475569!important}.evaluation-chart-card .recharts-cartesian-axis-line,.evaluation-chart-card .recharts-cartesian-grid line{stroke:#cbd5e1!important}.app-container .recharts-cartesian-axis-tick-value,.app-container .recharts-text,.app-container .recharts-legend-item-text{fill:#475569!important;color:#475569!important}.app-container .recharts-cartesian-axis-line,.app-container .recharts-cartesian-grid line{stroke:#cbd5e1!important}.chart-wrapper svg text[fill=\#FFFFFF],.chart-wrapper svg text[fill=\#fff]{fill:#334155!important}.chart-wrapper .recharts-cartesian-axis-line,.chart-wrapper .recharts-cartesian-axis-tick-line{stroke:#94a3b8!important}.app-container .form-control{color:#334155!important;background:#fff!important;border-color:#94a3b8!important}.app-container .form-control:focus{border-color:#3b82f6!important;box-shadow:0 0 0 .2rem #3b82f626!important}.app-container h2[style*=\#FCD34D]{color:#b45309!important;border-bottom-color:#b4530938!important}.app-container h2[style*=\#60A5FA]{color:#2563eb!important;border-bottom-color:#2563eb38!important}.app-container h2[style*=\#A78BFA]{color:#6d28d9!important}.toolbar-group-theme{border-color:#60a5fa52}.theme-toggle{color:#1e3a8a;background:#dbeafe;border:1px solid #93c5fd;font-weight:700}.theme-toggle:hover,.theme-toggle:focus-visible{color:#172554;background:#bfdbfe;border-color:#60a5fa}body[data-theme=dark]{--bg-dark:#0f172a;--bg-card:#1e293beb;--text-main:#e2e8f0;--text-muted:#94a3b8;--border-color:#94a3b83d;color:#e2e8f0;background-color:#0f172a;background-image:radial-gradient(at 0 0,#1e40af47 0,#0000 48%),radial-gradient(at 100% 100%,#0d948833 0,#0000 48%)}body[data-theme=dark] .subtitle,body[data-theme=dark] .toolbar-label,body[data-theme=dark] .kpi-help,body[data-theme=dark] .table-subtitle{color:#cbd5e1}body[data-theme=dark] .toolbar-group{background:#0f172ab8;border-color:#94a3b847;box-shadow:0 4px 14px #0206173d}body[data-theme=dark] .status-item{color:#cbd5e1;box-shadow:none;background:#1e293bdb;border-color:#94a3b84d}body[data-theme=dark] .status-item strong{color:#f8fafc}body[data-theme=dark] .status-item.sheet-sync-status{color:#bfdbfe;background:#1e40af59}body[data-theme=dark] .status-item.api-status-warning{color:#fde68a;background:#78350f59}body[data-theme=dark] .theme-toggle{color:#fef3c7;background:#334155;border-color:#64748b}body[data-theme=dark] .theme-toggle:hover,body[data-theme=dark] .theme-toggle:focus-visible{color:#111827;background:#fcd34d;border-color:#f59e0b}body[data-theme=dark] .glass-panel,body[data-theme=dark] .kpi-card,body[data-theme=dark] .table-container,body[data-theme=dark] .vendor-evaluation-panel,body[data-theme=dark] .evaluation-chart-card,body[data-theme=dark] .hourly-stat-card{box-shadow:0 12px 32px #02061747;color:#e2e8f0!important;background:#1e293beb!important;border-color:#60a5fa4d!important}body[data-theme=dark] .kpi-label,body[data-theme=dark] .kpi-description,body[data-theme=dark] .table-title,body[data-theme=dark] .evaluation-summary-card,body[data-theme=dark] .evaluation-chart-card,body[data-theme=dark] .vendor-evaluation-panel{color:#e2e8f0!important}body[data-theme=dark] .ship-table th{color:#dbeafe!important;background:#1e3a5f!important;border-bottom-color:#3b82f6!important}body[data-theme=dark] .ship-table td{color:#e2e8f0;border-bottom-color:#94a3b82e}body[data-theme=dark] .ship-table tbody td:first-child{background:#1e293b}body[data-theme=dark] .ship-table tbody tr:hover td:first-child{background:#334155}body[data-theme=dark] .ship-table tbody tr:hover{background:#60a5fa1a}body[data-theme=dark] .ship-table input,body[data-theme=dark] .app-container .form-control,body[data-theme=dark] .vendor-evaluation-panel .evaluation-form-control,body[data-theme=dark] .vendor-evaluation-panel .bg-dark{color:#f8fafc!important;background:#0f172a!important;border-color:#64748b!important}body[data-theme=dark] .ship-table input::placeholder{color:#94a3b8}body[data-theme=dark] .highlight-col{background:#60a5fa1a;border-color:#94a3b82e}body[data-theme=dark] .table-scroll-hint{color:#bfdbfe;background:#1e3a5f;border-color:#3b82f6}body[data-theme=dark] .app-container .recharts-cartesian-axis-tick-value,body[data-theme=dark] .app-container .recharts-text,body[data-theme=dark] .app-container .recharts-legend-item-text{fill:#cbd5e1!important;color:#cbd5e1!important}body[data-theme=dark] .app-container .recharts-cartesian-axis-line,body[data-theme=dark] .app-container .recharts-cartesian-grid line,body[data-theme=dark] .chart-wrapper .recharts-cartesian-axis-tick-line{stroke:#64748b!important}body[data-theme=dark] .modal-content,body[data-theme=dark] .modal-dialog,body[data-theme=dark] [role=dialog]{color:#e2e8f0}body[data-theme=dark] .toolbar-group .btn-outline-light{color:#e2e8f0;border-color:#94a3b8}body[data-theme=dark] .text-muted{color:#94a3b8!important}.app-container [style*=\#9CA3AF]{color:#64748b!important}
