﻿.operations-dashboard-v2 {
    max-width: 1600px;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc, #e5edf5);
    padding: 20px;
    border-radius: 22px;
}

.ops-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #081933, #1e3a5f);
    color: white;
    border-radius: 18px;
    padding: 26px 30px;
    margin-bottom: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.ops-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 800;
    color: #bfdbfe;
}

.ops-topbar h1 {
    margin: 2px 0 4px;
    font-size: 2.1rem;
    font-weight: 900;
}

.ops-topbar p {
    margin: 0;
    color: #dbeafe;
}

.ops-top-actions {
    display: flex;
    gap: 10px;
}

.ops-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ops-metric-card {
    display: flex;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 20px;
    padding: 26px 24px;
    min-height: 122px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .10);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .ops-metric-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 22px 48px rgba(15, 23, 42, .16);
        color: inherit;
    }

    .ops-metric-card .metric-icon {
        float: none;
        opacity: 1;
        width: 66px;
        height: 66px;
        border-radius: 18px;
        display: grid;
        place-items: center;
        font-size: 2rem;
        color: white;
        flex: 0 0 auto;
    }

    .ops-metric-card .metric-label {
        font-size: .82rem;
        color: #334155;
    }

    .ops-metric-card .metric-value {
        font-size: 2.45rem;
        margin-top: 4px;
        color: #020617;
    }

.metric-link {
    color: #0b4db3;
    font-weight: 900;
    font-size: .88rem;
    margin-top: 6px;
}

.ops-main-grid {
    display: grid;
    grid-template-columns: 1.3fr .75fr;
    gap: 16px;
}

.ops-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

    .panel-header h2 {
        font-size: 1.15rem;
        margin: 0;
        font-weight: 900;
    }

    .panel-header p {
        margin: 3px 0 0;
        color: #64748b;
        font-size: .9rem;
    }

.production-queue-panel {
    min-height: 360px;
}

.ops-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ops-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.ops-table {
    margin: 0;
    font-size: .9rem;
}

    .ops-table thead th {
        background: #f8fafc;
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #475569;
    }

.ops-link {
    color: #0b5ed7;
    font-weight: 900;
    text-decoration: none;
}

.ops-empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 35px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

.status-donut-shell {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 230px;
}

.status-donut {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: conic-gradient(#16a34a 0 55%, #f97316 55% 75%, #2563eb 75% 100%);
    display: grid;
    place-items: center;
}

    .status-donut > div {
        width: 112px;
        height: 112px;
        background: white;
        border-radius: 50%;
        display: grid;
        place-items: center;
        text-align: center;
    }

    .status-donut strong {
        font-size: 1.7rem;
        font-weight: 900;
    }

    .status-donut span {
        display: block;
        font-size: .75rem;
        color: #64748b;
        font-weight: 800;
    }

.status-legend {
    flex: 1;
    display: grid;
    gap: 12px;
}

    .status-legend div {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 800;
    }

    .status-legend strong {
        margin-left: auto;
    }

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

    .legend-dot.green {
        background: #16a34a;
    }

    .legend-dot.orange {
        background: #f97316;
    }

    .legend-dot.blue {
        background: #2563eb;
    }

.rack-panel {
    grid-column: 1 / 2;
}

.rack-visual {
    border: 1px solid #dbe3ef;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border-radius: 16px;
    padding: 16px;
}

.rack-row {
    display: grid;
    grid-template-columns: 34px repeat(7, 1fr);
    gap: 8px;
    align-items: stretch;
    margin-bottom: 10px;
}

    .rack-row:last-child {
        margin-bottom: 0;
    }

.rack-row-label {
    display: grid;
    place-items: center;
    background: #e2e8f0;
    border-radius: 10px;
    font-weight: 900;
}

.rack-bin {
    min-height: 70px;
    border-radius: 12px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 2px solid #cbd5e1;
    box-shadow: inset 0 -8px 14px rgba(15, 23, 42, .05);
}

    .rack-bin.filled {
        background: linear-gradient(135deg, #dcfce7, #f0fdf4);
        border-color: #22c55e;
    }

    .rack-bin.empty {
        background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
        color: #64748b;
    }

    .rack-bin strong {
        font-size: .9rem;
    }

    .rack-bin span {
        font-size: .7rem;
        font-weight: 800;
        color: #475569;
    }

.rack-summary {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    margin-top: 12px;
    color: #64748b;
}

.scanner-panel,
.alerts-panel {
    min-height: 250px;
}

.scanner-list {
    display: grid;
    gap: 10px;
}

.scanner-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 11px;
    background: #f8fafc;
}

    .scanner-item > span {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-weight: 900;
    }

    .scanner-item.success > span {
        background: #dcfce7;
        color: #15803d;
    }

    .scanner-item strong {
        display: block;
        font-size: .9rem;
    }

    .scanner-item p {
        margin: 0;
        color: #64748b;
        font-size: .8rem;
    }

    .scanner-item small {
        color: #475569;
        font-weight: 800;
    }

.attention-item.muted {
    opacity: .8;
}

@media (max-width: 1200px) {
    .ops-metric-grid,
    .ops-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rack-panel {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .ops-topbar,
    .status-donut-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .ops-metric-grid,
    .ops-main-grid {
        grid-template-columns: 1fr;
    }

    .rack-row {
        grid-template-columns: 28px repeat(3, 1fr);
    }
}

    .operations-dashboard-v2 .btn-primary {
        background: #0b4db3;
        border-color: #0b4db3;
        font-weight: 800;
    }

    .operations-dashboard-v2 .btn-outline-primary {
        color: #0b4db3;
        border-color: #0b4db3;
        font-weight: 800;
    }

        .operations-dashboard-v2 .btn-outline-primary:hover {
            background: #0b4db3;
            color: white;
        }
.operations-dashboard-v2 .btn {
    border-radius: 10px !important;
}

.operations-dashboard-v2 .btn-primary {
    background-color: #0b4db3 !important;
    border-color: #0b4db3 !important;
    color: white !important;
}

.operations-dashboard-v2 .btn-outline-primary {
    color: #0b4db3 !important;
    border-color: #0b4db3 !important;
    background: white !important;
}
.operations-dashboard-v2 {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 26px !important;
}

.ops-topbar {
    min-height: 120px;
    padding: 30px 34px !important;
}

.ops-metric-grid {
    gap: 22px !important;
    margin-bottom: 22px !important;
}

.ops-main-grid {
    gap: 22px !important;
}

.ops-panel,
.ops-metric-card {
    box-shadow: 0 18px 42px rgba(15, 23, 42, .11), 0 2px 8px rgba(15, 23, 42, .05) !important;
}

.ops-metric-card {
    min-height: 140px !important;
}

.ops-panel {
    padding: 24px !important;
}

.operations-dashboard-v2 h1,
.operations-dashboard-v2 h2,
.operations-dashboard-v2 strong {
    letter-spacing: -0.02em;
}

.rack-visual {
    padding: 22px !important;
}

.rack-bin {
    min-height: 84px !important;
}