.production-report-modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 28px; border: 1px solid #dce3ec; border-radius: 18px; background: #fff; color: #172234; box-shadow: 0 24px 70px #0f172a33; font-family: Sarabun, sans-serif; }
.production-report-modal::backdrop { background: #0f172a88; }
.production-report-modal header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.production-report-modal h2 { margin: 3px 0 0; font-size: 24px; font-weight: 700; }
.production-report-modal .report-modal-eyebrow { margin: 0; color: #476582; font-size: 13px; }
.production-report-modal .report-modal-description { margin: 16px 0 22px; color: #526277; font-size: 14px; line-height: 1.6; }
.production-report-modal label { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.production-report-modal select, .production-report-modal input { width: 100%; min-width: 0; height: 44px; border: 1px solid #b8c4d3; border-radius: 8px; background-color: white; color: #172234; padding: 8px 12px; font: inherit; font-weight: 400; }
.production-report-modal :focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.production-report-modal [hidden] { display: none !important; }
.production-report-modal .report-date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.production-report-modal small { display: block; font-size: 12px; margin: -6px 0 16px; color: #526277; }
.production-report-modal .report-range-preview { border: 1px solid #cbddef; background: #f0f6fc; padding: 13px; border-radius: 9px; color: #25496c; font-size: 14px; line-height: 1.6; }
.production-report-modal .report-scope { margin: 12px 0; font-size: 12px; line-height: 1.7; color: #526277; }
.production-report-modal .report-error { font-size: 14px; color: #b91c1c; }
.production-report-modal footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e1e7ef; }
.production-report-modal button { cursor: pointer; font: inherit; border-radius: 8px; padding: 10px 16px; border: 1px solid #cbd5e1; background: white; }
.production-report-modal .report-close { border: 0; padding: 0 7px; font-size: 26px; line-height: 30px; color: #526277; }
.production-report-modal .report-submit { background: #183f68; border-color: #183f68; color: white; }
@media (max-width: 420px) { .production-report-modal { padding: 20px; } .production-report-modal .report-date-pair { grid-template-columns: 1fr; gap: 0; } }
.production-plant-matrices { display: grid; gap: 24px; min-width: 0; }
.production-matrix-scroll { overflow-x: auto; max-width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; }
.production-matrix-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; color: #172234; }
.production-matrix-scroll th, .production-matrix-scroll td { border: 1px solid #cbd5e1; padding: 8px 12px; }
.production-matrix-scroll th { background: #f1f5f9; }
.production-matrix-scroll .section-title { text-align: left; padding: 14px; font-size: 15px; }
.production-matrix-scroll td:first-child { min-width: 90px; white-space: nowrap; }
.production-matrix-scroll td:nth-child(2) { min-width: 200px; }
.production-matrix-scroll .employee-heading { min-width: 54px; height: 190px; vertical-align: bottom; }
.production-matrix-scroll .employee-heading span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.production-matrix-scroll .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.production-matrix-scroll tbody tr:last-child { font-weight: 700; background: #eaf1f8; }
.production-matrix-scroll .empty { text-align: center; padding: 20px; }
