/* Manufacture presentation palette. No data or behavior changes. */
:root {
    --app-bg: #06131f;
    --app-panel: #102638;
    --app-panel-soft: #16364d;
    --app-border: #294a60;
    --app-text: #f8fafc;
    --app-muted: #b7c9d8;
    --app-gold: #f59e0b;
    --app-green: #20d997;
    --app-cyan: #38a3ff;
}
body {
    background: radial-gradient(ellipse at 70% 0%, #0a2639 0%, transparent 55%), #06131f;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--app-text);
}
body .sidebar {
    background-image: linear-gradient(180deg, #0a1e2e 0%, rgba(4,28,46,.96) 43%, rgba(4,28,46,.48) 65%, rgba(4,28,46,.08)), url("sidebar-oil-rig-sunset.png");
    border-right: 1px solid #294a60;
    box-shadow: 8px 0 28px #0003;
}
body .sidebar-brand-title {font-size:.82rem;letter-spacing:2px;line-height:1.5;max-width:220px}
body .sidebar-logo-card {max-width:108px;padding:5px;border-radius:10px}
body .sidebar a {margin:6px 10px;padding:15px 20px;color:#d9e9fa;border:1px solid transparent}
body .sidebar a:hover, body .sidebar a.is-active {
    background:linear-gradient(180deg,#ffb020,#fb8c00);color:#06131f;border-color:#ffb020;box-shadow:0 8px 22px #f59e0b26;
}
body .sidebar-monitor {background:#0a1e2eeF;border-color:#294a60}
body .content {padding:28px 30px;background:transparent}
body .ops-dashboard {max-width:1440px}
body .ops-hero {
    min-height:146px;border-color:#426078;border-radius:11px;
    background-image:linear-gradient(90deg,#0a2032 0%,rgba(6,25,41,.94) 48%,rgba(6,25,41,.25)),url("sidebar-oil-rig-sunset.png");
    background-size:cover, auto 760px;background-position:center,right 43%;background-repeat:no-repeat;
    box-shadow:0 12px 32px #0003,inset 0 -2px #d9770655;
}
body .ops-hero h1 {font-size:clamp(1.65rem,2.4vw,2.4rem);line-height:1.2;letter-spacing:.2px}
body .ops-hero p {color:#d8e9fa;letter-spacing:3px;font-size:.85rem}
body .hero-line {width:120px;background:linear-gradient(90deg,#f59e0b, #f59e0b 35%,transparent)}
body .hero-contact-card {flex-shrink:0;min-width:200px;background:linear-gradient(135deg,#06131fee,#102638f5);border-color:#426078;padding:16px}
body .hero-contact-divider {background:#f59e0b}
body .hero-contact-role {color:#ffb020}
body .metric-row, body .chart-row {gap:18px}
body .metric-panel, body .chart-panel, body .risk-panel, body .hpu-finance-panel,
body .schedule-panel, body .sheet-panel {
    border:1px solid #294a60;border-radius:11px;
    background:linear-gradient(135deg,#102638,#062337);box-shadow:inset 0 1px #ffffff06,0 8px 24px #0002;
}
body .metric-panel {min-height:112px;padding:18px 22px}
body .metric-content {padding:0 56px 0 0}
body .metric-value {margin-top:6px;font-size:2.1rem}
body .metric-note,body .metric-note strong {color:#20d997}
body .metric-icon {color:#ffb020;background:#d9770638;border-color:#d97706;top:28px}
body .metric-blue .metric-icon {color:#38a3ff;background:#0078d444;border-color:#1685d5}
body .metric-green .metric-icon {color:#20d997;background:#009e7744;border-color:#00a881}
body .chart-header {grid-template-columns:minmax(0,1fr) minmax(150px,45%)}
body .chart-select, body .schedule-panel input,body .schedule-panel select,body .sheet-panel input,body .sheet-panel select {
    background-color:#061b2b;color:#f8fafc;border-color:#294a60;border-radius:7px;
}
body .btn-warning,body .schedule-panel button,body .schedule-table .schedule-open,body .sheet-button {
    background:linear-gradient(180deg,#ffb020,#fb8c00);border:1px solid #ffb020;color:#06131f;font-weight:700;box-shadow:0 3px 10px #0002;
}
body .btn-warning:hover,body .schedule-panel button:hover,body .schedule-table .schedule-open:hover,body .sheet-button:hover {background:#ffb020;color:#06131f}
body .table thead th,body .hpu-finance-table thead,body .sheet-table thead th {
    background:linear-gradient(180deg,#ffb020,#fb8c00) !important;color:#06131f !important;border-color:#d97706 !important;
}
body .table {--bs-table-bg:#0a2032;--bs-table-hover-bg:#16364d;--bs-table-color:#f8fafc}
body .hpu-finance-table th,body .hpu-finance-table td {border-color:#294a60}
body .hpu-finance-table tbody tr:nth-child(even) {background:#102638}
body .hpu-finance-table tbody tr:hover {background:#16364d}
body .hpu-finance-table .negative {color:#ef4444}
body .hpu-finance-table tfoot {background:#16364d;border-top-color:#f59e0b}
body .hpu-finance-table tfoot th {color:#ffb020}
body .schedule-table .schedule-actions {margin-top:2px}
body :is(a,button,input,select,textarea):focus-visible {outline:2px solid #38a3ff;outline-offset:3px}
@media (max-width:1100px) {body .chart-header {grid-template-columns:1fr}}
@media (max-width:768px) {
    body .content {padding:18px 12px}
    body .sidebar {background-color:#0a1e2e}
    body .ops-hero {padding:20px;gap:18px}
    body .hero-contact-card {width:100%;min-width:0}
    body .ops-hero p {letter-spacing:1.5px}
}

body .sidebar > a {display:flex;align-items:center;gap:16px;padding:14px 18px}
body .sidebar > a:hover,body .sidebar > a.is-active {padding-left:18px}
body .sidebar-menu-icon {width:23px;height:23px;flex:0 0 23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;color:#b7d9f5}
body .sidebar > a span {min-width:0;line-height:1.45}
body .sidebar > a:hover .sidebar-menu-icon,body .sidebar > a.is-active .sidebar-menu-icon {color:#06131f}

/* Reference dashboard icon treatments. */
body .dashboard-icon {display:inline-block;width:24px;height:24px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
body .dashboard-sheet-link {display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 18px}
body .metric-panel {display:flex;align-items:center;gap:18px}
body .metric-symbol {display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:50%;background:#f59e0b26;color:#ffb020}
body .metric-symbol .dashboard-icon {width:32px;height:32px}
body .metric-blue .metric-symbol {background:#0085ff26;color:#22c7ff}
body .metric-green .metric-symbol {background:#20d99726;color:#20d997}
body .metric-content {min-width:0;flex:1}
body .metric-note > .dashboard-icon {width:15px;height:15px;margin-right:5px}
body .timing-summary {gap:12px;margin-top:18px}
body .timing-circle {display:flex;align-items:center;justify-content:center;gap:10px;width:auto;height:auto;margin:0;padding:5px;border:0;border-radius:8px;background:transparent;box-shadow:none;text-align:left}
body .timing-symbol {display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border:1px solid #397594;border-radius:50%;color:#f59e0b;background:#061b2b}
body .timing-symbol .dashboard-icon {width:27px;height:27px}
body .timing-circle.is-active {box-shadow:none}
body .timing-circle.ahead.is-active .timing-symbol {border-color:#20d997}
body .timing-circle.ontime.is-active .timing-symbol {border-color:#f59e0b}
body .timing-circle.delay.is-active .timing-symbol {border-color:#ef4444}
body .timing-value {font-size:.85rem;line-height:1.3}
body .timing-label {font-size:.72rem;max-width:64px;line-height:1.3}
@media (max-width:1400px) and (min-width:1101px) {body .metric-panel {gap:10px;padding:16px 12px}body .metric-symbol {width:42px;height:42px;flex-basis:42px}body .metric-value {font-size:1.8rem}}
@media (max-width:480px) {body .timing-circle {flex-direction:column;text-align:center}body .timing-label {max-width:none}body .metric-panel {gap:12px}body .dashboard-sheet-link {width:100%}}
