.ops-dashboard {
    max-width: 1120px;
    margin: 0 auto;
}

.ops-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 118px;
    margin-bottom: 22px;
    padding: 17px 30px;
    border: 1px solid rgba(54, 83, 111, 0.72);
    border-radius: 8px;
    background-image:
        repeating-linear-gradient(90deg, rgba(93, 120, 149, 0.12) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(0deg, rgba(93, 120, 149, 0.1) 0 1px, transparent 1px 42px),
        linear-gradient(90deg, #07121f 0%, rgba(7, 18, 31, 0.98) 54%, rgba(7, 18, 31, 0.82) 72%, rgba(17, 21, 28, 0.54) 100%),
        linear-gradient(180deg, rgba(7, 18, 31, 0.2) 0%, rgba(7, 18, 31, 0.68) 100%),
        radial-gradient(circle at 89% 8%, rgba(247, 183, 24, 0.13), transparent 27%),
        radial-gradient(circle at 91% 48%, rgba(234, 88, 12, 0.22), transparent 27%),
        url("sidebar-oil-rig-sunset.png");
    background-size:
        64px 100%,
        100% 42px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        auto 760px;
    background-position:
        left top,
        left top,
        center,
        center,
        center,
        center,
        right 43%;
    background-repeat:
        repeat,
        repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.ops-hero::before {
    content: "";
    position: absolute;
    top: -96px;
    right: 28px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(247, 183, 24, 0.23);
    border-radius: 999px;
    pointer-events: none;
}

.ops-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 18, 31, 0) 0%, rgba(7, 18, 31, 0) 58%, rgba(245, 126, 32, 0.09) 100%),
        radial-gradient(circle at 86% 46%, rgba(245, 126, 32, 0.15), transparent 28%);
    pointer-events: none;
}

.ops-hero > * {
    position: relative;
    z-index: 1;
}

.ops-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.12rem);
    font-weight: 900;
    line-height: 1.08;
}

.hero-line {
    width: 73px;
    height: 4px;
    margin: 14px 0 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f7b718 0 48%, #22d178 48% 100%);
}

.ops-hero p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.96rem;
    font-weight: 650;
}

.hero-contact-card {
    width: 184px;
    min-height: 78px;
    padding: 11px 16px;
    border: 1px solid rgba(129, 164, 196, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(36, 25, 24, 0.88), rgba(5, 17, 30, 0.9));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.hero-contact-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 650;
}

.hero-contact-divider {
    width: 32px;
    height: 2px;
    margin: 7px 0;
    border-radius: 999px;
    background: #22d178;
}

.hero-contact-role {
    color: #fbbf24;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-contact-name {
    margin-top: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 18px;
}

.metric-panel,
.chart-panel,
.risk-panel,
.delay-man-hours-panel {
    border: 1px solid rgba(129, 164, 196, 0.28);
    border-radius: 8px;
    background: rgba(7, 22, 38, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.metric-panel {
    position: relative;
    min-height: 88px;
    overflow: hidden;
}

.metric-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 84% 26%, rgba(247, 183, 24, 0.18), transparent 23%);
    pointer-events: none;
}

.metric-panel.metric-blue::after {
    background: radial-gradient(circle at 88% 38%, rgba(37, 99, 235, 0.34), transparent 24%);
}

.metric-panel.metric-green::after {
    background: radial-gradient(circle at 89% 34%, rgba(34, 209, 120, 0.28), transparent 24%);
}

.metric-content {
    position: relative;
    z-index: 1;
    padding: 0 56px 6px 0;
}

.metric-title {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.metric-value {
    margin-top: 15px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 0.95;
}

.metric-note {
    margin-top: 9px;
    color: var(--app-muted);
    font-size: 0.84rem;
}

.metric-note strong {
    color: #22d178;
}

.metric-icon {
    position: absolute;
    z-index: 1;
    right: 24px;
    top: 30px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(247, 183, 24, 0.48);
    border-radius: 999px;
    background: rgba(247, 183, 24, 0.28);
    color: #f7b718;
    font-size: 1rem;
    font-weight: 900;
}

.metric-blue .metric-icon {
    border-color: rgba(56, 189, 248, 0.48);
    background: rgba(37, 99, 235, 0.36);
    color: #38bdf8;
}

.metric-green .metric-icon {
    border-color: rgba(34, 209, 120, 0.5);
    background: rgba(34, 209, 120, 0.3);
    color: #22d178;
}

.risk-panel {
    margin-top: 18px;
    padding: 14px 16px;
}

.risk-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.risk-header h5 {
    margin: 0;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
}

.risk-count {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.risk-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.risk-card {
    display: block;
    padding: 10px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 8px;
    background: rgba(6, 17, 29, 0.58);
    text-decoration: none;
}

.risk-name {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.risk-meta {
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 0.75rem;
}

.risk-action {
    margin-top: 7px;
    color: #fbbf24;
    font-size: 0.74rem;
    font-weight: 800;
}

.risk-empty {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.86rem;
}

.delay-man-hours-panel {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
    margin-top: 14px;
    padding: 14px;
    background:
        linear-gradient(120deg, rgba(239, 68, 68, 0.18), rgba(7, 22, 38, 0.94) 38%),
        radial-gradient(circle at 96% 24%, rgba(247, 183, 24, 0.16), transparent 24%),
        rgba(7, 22, 38, 0.9);
}

.delay-man-hours-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ef4444, #fbbf24);
}

.delay-man-hours-accent {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    align-self: center;
    border: 1px solid rgba(251, 191, 36, 0.44);
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 900;
}

.delay-man-hours-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
    gap: 16px;
    align-items: center;
}

.delay-man-hours-label {
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.delay-man-hours-copy h5 {
    margin: 5px 0 6px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}

.delay-man-hours-copy a {
    color: inherit;
    text-decoration: none;
}

.delay-man-hours-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.delay-man-hours-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid rgba(129, 164, 196, 0.22);
    border-radius: 999px;
    background: rgba(6, 17, 29, 0.42);
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.delay-man-hours-total {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(6, 17, 29, 0.72));
    text-align: left;
}

.delay-man-hours-value {
    color: #ffffff;
    font-size: 2.08rem;
    font-weight: 900;
    line-height: 0.95;
}

.delay-man-hours-unit {
    margin-top: 4px;
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.delay-man-hours-note {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.chart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.chart-panel {
    min-height: 0;
    overflow: hidden;
}

.chart-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
    align-items: center;
    padding-bottom: 8px;
}

.chart-header h5 {
    margin: 0;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
}

.chart-select {
    min-height: 34px;
    border: 1px solid rgba(129, 164, 196, 0.28);
    border-radius: 8px;
    background-color: rgba(6, 17, 29, 0.92);
    color: #ffffff;
    font-weight: 800;
}

.chart-title {
    min-height: 20px;
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-insight {
    min-height: 0;
    margin-bottom: 5px;
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.25;
}

.chart-canvas-wrap {
    position: relative;
    height: 190px;
}

.chart-empty {
    display: none;
    place-items: center;
    height: 190px;
    color: var(--app-muted);
    border: 1px dashed rgba(129, 164, 196, 0.24);
    border-radius: 8px;
}

.project-status-panel .chart-canvas-wrap,
.project-status-panel .chart-empty {
    height: 150px;
}

.timing-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 7px;
}

.timing-circle {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 1px solid rgba(129, 164, 196, 0.28);
    border-radius: 999px;
    background: rgba(6, 17, 29, 0.7);
    color: #ffffff;
    text-align: center;
    box-shadow: inset 0 0 24px rgba(15, 23, 42, 0.42);
}

.timing-circle.is-active {
    border-width: 2px;
    box-shadow:
        0 0 24px rgba(34, 209, 120, 0.18),
        inset 0 0 24px rgba(15, 23, 42, 0.42);
}

.timing-circle.ahead.is-active {
    border-color: #22d178;
}

.timing-circle.ontime.is-active {
    border-color: #f7b718;
    box-shadow:
        0 0 24px rgba(247, 183, 24, 0.18),
        inset 0 0 24px rgba(15, 23, 42, 0.42);
}

.timing-circle.delay.is-active {
    border-color: #ef4444;
    box-shadow:
        0 0 24px rgba(239, 68, 68, 0.18),
        inset 0 0 24px rgba(15, 23, 42, 0.42);
}

.timing-value {
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
}

.timing-label {
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 0.54rem;
    font-weight: 850;
    line-height: 1.1;
}

@media (max-width: 1100px) {
    .metric-row,
    .chart-row,
    .risk-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ops-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
    }

    .chart-header {
        grid-template-columns: 1fr;
    }

    .delay-man-hours-panel {
        grid-template-columns: 1fr;
    }

    .delay-man-hours-body {
        grid-template-columns: 1fr;
    }

    .delay-man-hours-accent {
        width: 42px;
        height: 42px;
    }

    .chart-title {
        white-space: normal;
    }

    .timing-circle {
        width: 50px;
        height: 50px;
    }
}


.hpu-finance-panel {
    margin: 20px 0;
    border: 1px solid #294354;
    border-radius: 10px;
    background: #071724;
    overflow: hidden;
}
.hpu-finance-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px;
}
.hpu-finance-header h5 { margin: 0; color: #f8fafc; font-weight: 750; }
.hpu-finance-header span { color: #b5c8d8; font-size: 0.8rem; }
.hpu-finance-scroll { overflow-x: auto; }
.hpu-finance-table { width: 100%; min-width: 850px; border-collapse: collapse; color: #edf4fa; font-size: 0.9rem; }
.hpu-finance-table th, .hpu-finance-table td { padding: 14px 16px; border: 1px solid #294354; }
.hpu-finance-table thead { background: linear-gradient(180deg, #ffdb69, #f7bc20); color: #071724; }
.hpu-finance-table tbody tr:nth-child(even) { background: #0c2031; }
.hpu-finance-table tbody tr:hover { background: #183348; }
.hpu-finance-table td:nth-child(2), .hpu-finance-table td:nth-child(3), .hpu-finance-table td:nth-child(4) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hpu-finance-table th:first-child { text-align: left; white-space: nowrap; }
.hpu-finance-table td:last-child { min-width: 260px; line-height: 1.6; }
.hpu-finance-table .negative { color: #ff3333; }
.hpu-finance-table tfoot { background: #173043; font-weight: 800; border-top: 2px solid #ffc629; }
.hpu-finance-table tfoot th { color: #ffd34c; }
