:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f6f7f9; color: #17202a; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, .download { align-items: center; background: #146c5f; border: 0; border-radius: 8px; color: #fff; cursor: pointer; display: inline-flex; font-weight: 800; justify-content: center; min-height: 42px; padding: 0 14px; text-decoration: none; }
button.ghost { background: #e7ecef; color: #17202a; }
.shell { margin: 0 auto; max-width: 1280px; padding: 22px; }
.topbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
h1, h2, p { margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }
.topbar p { color: #667085; margin-top: 4px; }
.hidden { display: none !important; }
.login-view { display: grid; min-height: 70vh; place-items: center; }
.panel { background: #fff; border: 1px solid #dfe4ea; border-radius: 8px; box-shadow: 0 16px 32px rgba(23, 32, 42, .06); padding: 18px; }
.form-panel { display: grid; gap: 14px; max-width: 420px; width: 100%; }
label { color: #344054; display: grid; font-size: 14px; gap: 8px; }
input, select, textarea { border: 1px solid #cfd7df; border-radius: 8px; min-height: 42px; padding: 0 12px; width: 100%; }
textarea { grid-column: span 2; min-height: 88px; padding-top: 10px; resize: vertical; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button { background: #e7ecef; color: #17202a; }
.tabs button.active { background: #146c5f; color: #fff; }
.tab { display: none; }
.tab.active { display: grid; gap: 16px; }
.metrics { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(160px, 1fr)); }
.metric { background: #fff; border: 1px solid #dfe4ea; border-radius: 8px; padding: 18px; }
.metric span { color: #667085; display: block; font-size: 13px; margin-bottom: 8px; }
.metric strong { font-size: 28px; }
.section-head { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.form-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(160px, 1fr)); }
.list, .sector-grid, .photo-grid, .map-board, .sector-result-grid { display: grid; gap: 12px; }
.list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid #dfe4ea; border-radius: 8px; display: grid; gap: 8px; padding: 16px; }
.card small { color: #667085; }
.order-card { align-content: start; }
.badge { border-radius: 999px; display: inline-flex; font-size: 11px; font-weight: 900; justify-content: center; max-width: max-content; padding: 4px 8px; }
.OVERDUE, .CRITICAL { background: #fee4e2; color: #b42318; }
.DUE_TODAY, .HIGH { background: #fff1c6; color: #b54708; }
.DUE_SOON { background: #e0f2fe; color: #026aa2; }
.ON_TRACK, .DELIVERED { background: #dcfae6; color: #067647; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-button { background: #e7ecef; color: #17202a; min-height: 34px; padding: 0 10px; }
.chip-button.active { background: #146c5f; color: #fff; }
.sector-result-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 12px; }
.sector-result { background: #f8fafc; border: 1px solid #dfe4ea; border-radius: 8px; display: grid; gap: 6px; padding: 12px; }
.sector-result strong { color: #17202a; }
.sector-result span { color: #475467; font-size: 13px; }
.map-board { background: linear-gradient(135deg, #eef6ff, #eef8f1); border: 1px solid #cfd7df; border-radius: 8px; min-height: 420px; padding: 16px; position: relative; }
.map-point { background: #fff; border: 1px solid #cfd7df; border-left: 6px solid #146c5f; border-radius: 8px; box-shadow: 0 10px 24px rgba(23, 32, 42, .08); padding: 12px; }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.photo { aspect-ratio: 4/3; background: #e7ecef; border-radius: 8px; object-fit: cover; width: 100%; }
.sector-grid { grid-template-columns: 1fr; }
.sector-card { background: #fff; border: 1px solid #dfe4ea; border-left: 6px solid #146c5f; border-radius: 8px; display: grid; gap: 14px; padding: 16px; }
.sector-card-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.sector-card-head small { color: #667085; font-weight: 800; }
.sector-card-head span { background: #f2f4f7; border-radius: 999px; color: #344054; font-size: 12px; font-weight: 800; padding: 5px 9px; white-space: nowrap; }
.sector-card p { color: #475467; }
.sector-columns { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sector-columns div { background: #f8fafc; border: 1px solid #edf1f5; border-radius: 8px; padding: 12px; }
.sector-columns strong { display: block; font-size: 13px; margin-bottom: 8px; }
.sector-columns ul { color: #475467; display: grid; font-size: 13px; gap: 6px; margin: 0; padding-left: 18px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.empty { background: #fff; border: 1px dashed #cfd7df; border-radius: 8px; color: #667085; padding: 16px; }
.error { color: #b42318; min-height: 18px; }
@media (max-width: 900px) { .metrics, .form-grid { grid-template-columns: repeat(2, 1fr); } .shell { padding: 14px; } }
@media (max-width: 900px) { .sector-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } textarea { grid-column: 1 / -1; } }
@media (max-width: 560px) { .metrics, .form-grid, .sector-columns { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-direction: column; } .top-actions { justify-content: flex-start; } .tabs { overflow-x: auto; flex-wrap: nowrap; } textarea { grid-column: auto; } }
