.ref-production-page { width: 100%; min-width: 0; }
.ref-production-page [hidden] { display: none; }
.ref-production-page .ref-production-context { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 16px; color: var(--ref-text-muted); font-size: 12px; line-height: 1.5; }
.ref-production-page .ref-production-context > span { display: inline-flex; align-items: center; gap: 6px; }
.ref-production-page .ref-production-context .ref-badge { margin-left: auto; }
.ref-production-page .ref-production-metrics { --ref-summary-columns: 5; grid-template-columns: repeat(var(--ref-summary-columns), minmax(0, 1fr)); margin-bottom: 16px; }
.ref-production-page .ref-production-section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 17px 18px; border-bottom: 1px solid var(--ref-border); }
.ref-production-page .ref-production-section-title h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ref-text); font-size: 16px; font-weight: 700; line-height: 1.35; }
.ref-production-page .ref-production-section-title h2 i { color: var(--ref-primary); }
.ref-production-page .ref-production-section-title p { margin: 5px 0 0; color: var(--ref-text-muted); font-size: 12px; line-height: 1.5; }
.ref-production-page .ref-table-card { min-width: 0; margin-bottom: 16px; }
.ref-production-page .ref-production-number { text-align: right; font-variant-numeric: tabular-nums; }
.ref-production-page .ref-production-items th:first-child { width: 58%; }
.ref-production-page .ref-production-items td strong { color: var(--ref-primary); font-size: 17px; }
.ref-production-page .ref-production-items td:last-child { width: 20%; }
.ref-production-page .ref-production-additional { border-color: color-mix(in srgb, var(--ref-warning) 40%, var(--ref-border)); }
.ref-production-page .ref-production-additional .ref-production-section-title { background: var(--ref-warning-soft); }
.ref-production-page .ref-production-charts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.ref-production-page .ref-production-chart-scroll { max-height: 420px; overflow-y: auto; padding: 16px; }
.ref-production-page .ref-production-chart-bars { position: relative; height: 260px; min-width: 0; }
.ref-production-page .ref-production-chart-donut { position: relative; height: 230px; margin: 18px; }
.ref-production-page .ref-production-chart-feedback { padding: 28px 18px; margin: 0; color: var(--ref-text-muted); font-size: 13px; text-align: center; }
.ref-production-page .ref-production-status-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 0 18px 18px; margin: 0; list-style: none; }
.ref-production-page .ref-production-status-legend li { display: flex; align-items: center; gap: 8px; color: var(--ref-text-muted); font-size: 12px; }
.ref-production-page .ref-production-status-legend li::before { content: ''; flex: 0 0 9px; height: 9px; border-radius: 3px; background: var(--ref-status-color, var(--ref-primary)); }
.ref-production-page .ref-production-status-legend strong { margin-left: auto; color: var(--ref-text); }
.ref-production-page .ref-production-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 18px; }
.ref-production-page .ref-production-search { position: relative; display: flex; flex: 1 1 260px; align-items: center; margin: 0; }
.ref-production-page .ref-production-search > i { position: absolute; left: 13px; color: var(--ref-text-muted); pointer-events: none; }
.ref-production-page .ref-production-search input { width: 100%; padding-left: 37px; }
.ref-production-page .ref-production-filter { display: grid; flex: 0 1 240px; gap: 4px; margin: 0; }
.ref-production-page .ref-production-filter select { width: 100%; }
.ref-production-page .ref-production-pagination { padding: 11px 18px; border-top: 1px solid var(--ref-border); background: var(--ref-surface-muted); }
.ref-production-page .ref-production-orders { min-width: 740px; }
.ref-production-page .ref-production-expand { display: inline-flex; align-items: center; gap: 8px; padding: 7px 3px; border: 0; color: var(--ref-primary); background: transparent; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ref-production-page .ref-production-expand i { transition: transform .15s; font-size: 10px; }
.ref-production-page .ref-production-expand[aria-expanded="true"] i { transform: rotate(90deg); }
.ref-production-page .ref-production-expand:focus-visible { outline: 2px solid var(--ref-primary); outline-offset: 2px; border-radius: 3px; }
.ref-production-page .ref-production-order-detail > td { padding: 12px 22px; background: var(--ref-surface-muted); }
.ref-production-page .ref-production-order-detail .ref-production-items { background: var(--ref-surface); }
.ref-production-page .ref-production-additional-label { display: block; margin-top: 4px; color: var(--ref-warning); }
.ref-production-page .ref-production-no-results { padding: 24px; color: var(--ref-text-muted); text-align: center; }
.ref-production-page .ref-production-updated { margin: 0 0 12px; color: var(--ref-text-muted); font-size: 11px; }
.ref-production-page .ref-production-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 20px; border: 1px solid var(--ref-border); border-radius: var(--ref-radius-lg); color: var(--ref-text-muted); background: var(--ref-surface); text-align: center; }
.ref-production-page .ref-production-empty > i { color: var(--ref-warning); font-size: 26px; }
@media (max-width: 1050px) {
    .ref-production-page .ref-production-metrics { --ref-summary-columns: 3; }
    .ref-production-page .ref-page-header { flex-wrap: wrap; }
    .ref-production-page .ref-production-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) { .ref-production-page .ref-production-metrics { --ref-summary-columns: 2; } }
@media (max-width: 600px) {
    .ref-production-page .ref-page-header__actions { width: 100%; justify-content: flex-start; }
    .ref-production-page .ref-production-context .ref-badge { margin-left: 0; }
    .ref-production-page .ref-production-filter { flex: 1 1 180px; }
    .ref-production-page .ref-production-filters { align-items: stretch; }
    .ref-production-page .ref-production-status-legend { grid-template-columns: minmax(0, 1fr); }
    .ref-production-page .ref-production-items th:first-child { width: auto; }
}
@media (max-width: 390px) { .ref-production-page .ref-production-metrics { --ref-summary-columns: 1; } }
