.production-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.hero-badge,
.production-badge {
    background: var(--red);
    color: white;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.production-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.production-kpi {
    padding: 18px;
    min-height: 145px;
}

.production-kpi.large {
    min-height: 172px;
}

.production-kpi p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0 12px;
}

.kpi-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.kpi-topline b {
    color: var(--red);
}

.kpi-value {
    font-size: 28px;
    font-weight: 900;
}

.kpi-value.small {
    font-size: 24px;
}

.kpi-progress,
.focus-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.kpi-progress span,
.focus-bar i {
    display: block;
    height: 100%;
    background: var(--red);
    border-radius: inherit;
}

.stock-card {
    background: var(--info-bg);
}

.warning-card {
    background: var(--warn-bg);
}

.good-card {
    background: var(--good-bg);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.chart-header p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin-top: 6px;
}

.stage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stage-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.stage-card.is-hot {
    background: var(--warn-bg);
    border-color: #fde68a;
}

.stage-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.stage-top span {
    color: var(--muted);
    font-size: 13px;
}

.stage-top b {
    color: var(--red);
    font-size: 12px;
}

.stage-main {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 14px;
}

.stage-main small {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.stage-bars {
    display: grid;
    gap: 10px;
}

.stage-bars div {
    display: grid;
    grid-template-columns: 70px 70px 1fr;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.stage-bars span {
    color: var(--muted);
}

.stage-bars i {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.stage-bars em {
    display: block;
    height: 100%;
    background: var(--red);
    border-radius: inherit;
}

.stage-bars em.dark {
    background: #475569;
}

.stage-meta {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.production-grid-main {
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 20px;
    margin-top: 20px;
}

.warehouse-advantage {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    align-items: center;
}

.warehouse-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 8px;
}

.warehouse-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.warehouse-metrics div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.warehouse-metrics span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.warehouse-metrics strong {
    font-size: 18px;
}

.capacity-focus {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.capacity-focus-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    background: #f8fafc;
}

.capacity-focus-card.good {
    background: var(--good-bg);
}

.capacity-focus-card.danger {
    background: var(--danger-bg);
    border-color: #fecdd3;
}

.capacity-focus-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.capacity-focus-card strong {
    font-size: 24px;
}

.capacity-focus-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0 12px;
}

.table-panel {
    margin-top: 20px;
}

.table-help {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.table-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.table-dot.good { background: var(--green); }
.table-dot.warn { background: var(--yellow); }
.table-dot.bad { background: var(--red); }

.production-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.production-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: white;
}

.production-table th {
    text-align: left;
    padding: 13px 14px;
    color: var(--muted);
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    white-space: nowrap;
}

.production-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    white-space: nowrap;
}

.production-table tbody tr:hover {
    background: #f8fafc;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: inherit;
    z-index: 2;
    font-weight: 800;
}

.q-start td {
    border-top: 2px solid #cbd5e1;
}

.empty-month {
    color: #94a3b8;
}

.stock-ok {
    color: var(--green);
    font-weight: 700;
}

.stock-high {
    color: var(--yellow);
    font-weight: 700;
}

.stock-low {
    color: var(--red);
    font-weight: 700;
}

.load-pill {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.load-good {
    background: #dcfce7;
    color: #166534;
}

.load-warn {
    background: #fef3c7;
    color: #92400e;
}

.director-comment {
    margin-top: 20px;
}

.director-comment p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 15px;
}

@media (max-width: 1600px) {
    .stage-grid,
    .production-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .production-grid-main,
    .warehouse-advantage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .production-hero,
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stage-grid,
    .production-kpi-grid,
    .warehouse-metrics {
        grid-template-columns: 1fr;
    }
}