#productionView { min-width:0; }
#productionView .production-panel { background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:22px;box-shadow:0 8px 25px rgba(24,42,72,.035); }
#productionView .production-heading { display:flex;align-items:center;justify-content:space-between;gap:16px; }
#productionView h2 { margin:0;color:#182338;font-size:20px; }
#productionView .production-heading p { margin:7px 0 0;color:#8591a5;font-size:12px; }
#productionView button, #productionDialog button { border:1px solid #e1e7ef;background:#fff;border-radius:8px;padding:9px 14px;color:#455773;cursor:pointer;font:inherit; }
#productionView button:disabled, #productionDialog button:disabled { opacity:.5;cursor:default; }
#productionView .production-primary, #productionDialog .production-primary { background:#e88900;border-color:#e88900;color:white;font-weight:600; }
#productionView .production-summary { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:22px 0; }
#productionView .production-summary div { border:1px solid #edf0f5;background:#f8fafc;border-radius:12px;padding:14px 18px; }
#productionView .production-summary span { font-size:12px;color:#7b899d; }
#productionView .production-summary strong { display:block;margin-top:7px;font-size:25px;color:#182338; }
#productionView .production-summary div:last-child strong { color:#e88900; }
#productionView .production-filters { display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:18px; }
#productionView .production-filters label { display:flex;flex-direction:column;gap:6px;font-size:12px;color:#64758e; }
#productionView input, #productionView select, #productionDialog input, #productionDialog select, #productionDialog textarea { box-sizing:border-box;border:1px solid #dce4ee;border-radius:8px;padding:9px 10px;background:#fff;color:#263851;font:inherit;min-width:0; }
#productionView input[type=search] { width:220px; }
#productionView .production-filters .production-check { flex-direction:row;align-items:center;align-self:center;margin-top:18px;white-space:nowrap;flex-shrink:0; }
#productionView .production-check input { width:16px;height:16px;padding:0;flex:none;accent-color:#e88900; }
#productionView .production-table-wrap { overflow-x:auto; }
#productionView table { width:100%;min-width:1180px;border-collapse:collapse;table-layout:fixed;font-size:13px; }
#productionView th { padding:12px 8px;text-align:left;font-size:12px;background:#f5f8fc;color:#738099;border:none; }
#productionView th:first-child { width:21%; } #productionView th:nth-child(2) { width:10%; }
#productionView td { padding:15px 8px;border:0;border-bottom:1px solid #edf1f6;overflow-wrap:anywhere;color:#384a65; }
#productionView td strong { color:#1c2c44;font-weight:600; } #productionView td small { display:block;color:#8591a5;margin-top:5px; }
#productionView .production-overdue, #productionView .production-overdue small { color:#dc7600; }
#productionView td button { padding:6px 9px;color:#e88900;border-color:#ffe4bf;white-space:nowrap;font-size:12px; }
#productionView .production-badge { display:inline-block;background:#f1f5fa;color:#586b86;border-radius:6px;padding:5px 8px; }
#productionView .production-badge.is-done { color:#009674;background:#eefbf6; }
#productionView .production-empty { text-align:center;padding:45px;color:#8c98a9; }
#productionView .production-pagination { display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:#8591a5;font-size:12px; }
#productionView .production-pagination div { display:flex;gap:12px;align-items:center; }
#productionView #productionMessage { color:#bd6400;font-size:13px;min-height:18px;margin-top:12px; }
#productionDialog { box-sizing:border-box;width:min(720px,calc(100vw - 36px));max-height:calc(100vh - 40px);padding:24px;border:1px solid #e0e6f0;border-radius:18px;color:#25364e;box-shadow:0 25px 90px rgba(12,24,42,.18); }
#productionDialog::backdrop { background:rgba(17,28,47,.38); }
#productionDialog header, #productionDialog footer { display:flex;align-items:center;justify-content:space-between;gap:14px; }
#productionDialog header h2 { margin:0;font-size:22px; } #productionDialog header p { margin:8px 0 20px;color:#8995a7;font-size:12px; }
#productionDialog header button { align-self:flex-start;font-size:24px;padding:3px 12px;border:0;background:#f5f7fb; }
#productionDialog fieldset { border:0;padding:0;margin:0;min-width:0; }
#productionDialog .production-form-grid { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
#productionDialog label { display:flex;flex-direction:column;gap:7px;font-size:13px; }
#productionDialog input, #productionDialog select, #productionDialog textarea { width:100%;font-size:14px; }
#productionDialog .production-note { margin-top:16px; } #productionDialog textarea { resize:vertical; }
#productionDialog #productionQuantitySummary { min-height:38px;display:flex;align-items:center;font-size:12px;line-height:1.6;color:#64758e; }
#productionDialog #productionQuantityHistory { margin-top:16px;font-size:12px;color:#64758e; }
#productionDialog #productionQuantityHistory summary { cursor:pointer; }
#productionDialog #productionQuantityHistoryRows { max-height:170px;overflow-y:auto;overflow-wrap:anywhere; }
#productionDialog footer { justify-content:flex-end;margin-top:18px; } #productionDialog #productionFormMessage { min-height:18px;color:#be6200;font-size:13px;margin-top:12px; }
#productionDialog #productionDiscard:not([hidden]) { background:#fff7eb;border:1px solid #ffdfb4;border-radius:10px;padding:16px;margin-top:16px;font-size:13px; }
#productionDialog :focus-visible, #productionView :focus-visible { outline:2px solid #f5a623;outline-offset:2px; }
@media(max-width:1000px) { #productionView .production-summary { gap:7px; } #productionView .production-summary div { padding:12px; } }
@media(max-width:650px) { #productionView .production-panel { padding:15px; } #productionView .production-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } #productionDialog .production-form-grid { grid-template-columns:1fr; } }
