/* Cuadro de producción por dependencia: pantalla y hoja horizontal para exportar. */
.prod-cuadro{margin-top:28px}
.prod-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.prod-heading h3{margin:6px 0 4px;font-size:20px}.prod-heading p{margin:0;color:#6d7f90;font-size:12px;max-width:720px}
.prod-filters{display:grid;grid-template-columns:minmax(210px,.75fr) minmax(260px,1.15fr) minmax(320px,1.6fr);gap:16px;background:#fff;border:1px solid #dce4eb;border-radius:14px;padding:16px 18px;margin-bottom:16px;box-shadow:0 1px 2px #1026380a,0 6px 18px #1026380f}
.prod-filters fieldset{border:0;margin:0;padding:0;min-width:0}
.prod-filters legend{font-size:12px;font-weight:700;color:#243a4e;letter-spacing:.02em;margin-bottom:8px}.prod-filters legend small{font-weight:500;color:#8193a3}
.prod-period label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:600;color:#4b6175;margin-bottom:8px}
.prod-period input{min-height:38px;padding:8px 10px;font-size:13px}
.prod-quick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px}
.prod-quick button{border:1px solid #d3dde6;background:#f6f8fb;color:#38566e;border-radius:999px;padding:5px 11px;font:600 11px Inter,Arial,sans-serif;cursor:pointer;transition:border-color .15s,background-color .15s}
.prod-quick button:hover{border-color:#c9ab6e;background:#fbf8f1}
.prod-quick .prod-toggle{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#4b6175;margin-left:auto}
.prod-filters input[type=checkbox]{width:15px;height:15px;min-height:0;margin:1px 0 0;padding:0;flex:none;accent-color:#294e6a}
.prod-checks{max-height:200px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:5px 12px;padding:8px 10px;border:1px solid #e3e9ef;border-radius:10px;background:#fbfcfd}
.prod-checks label{display:flex;flex-direction:row;align-items:flex-start;gap:7px;font-size:11px;font-weight:500;color:#33495d;line-height:1.3;cursor:pointer}
.prod-checks i{width:11px;height:11px;border-radius:3px;flex:none;margin-top:2px;box-shadow:inset 0 0 0 1px #0000001f}
.prod-empty{margin:4px 0;font-size:11px;color:#8193a3}
.prod-sheet{background:#fff;border:1px solid #dce4eb;border-radius:14px;padding:18px;box-shadow:0 1px 2px #1026380a,0 6px 18px #1026380f}
.prod-sheet-title{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:14px}
.prod-sheet-title small{display:block;font-size:10px;letter-spacing:.14em;color:#8b754f;font-weight:700}
.prod-sheet-title strong{display:block;font:800 18px/1.25 "Libre Franklin",Inter,Arial,sans-serif;color:#13293b;letter-spacing:.01em;border-bottom:2px solid #c9ab6e;padding-bottom:3px}
.prod-table-wrap{overflow:auto;border-radius:6px}
.prod-table{border-collapse:collapse;min-width:100%;font-size:11px;color:#1f2f3d;font-variant-numeric:tabular-nums}
.prod-table th,.prod-table td{border:1px solid #9fb0bf;padding:4px 6px;text-align:center;vertical-align:middle}
.prod-table thead th{font-size:9px;font-weight:700;line-height:1.15;text-transform:uppercase;letter-spacing:.02em}
.prod-table th.pc-brand{background:#fff;color:#13293b;font:800 24px "Libre Franklin",Inter,Arial,sans-serif;letter-spacing:.02em}
.prod-table th.pc-group{min-width:64px;max-width:160px;padding:6px}
.prod-table .v{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);white-space:normal;max-height:165px;line-height:1.15;text-align:left}
.prod-table th.pc-single,.prod-table th.pc-sub{padding:8px 3px;height:150px;min-width:30px}
.prod-table td.pc-n{width:26px;color:#6b7c8c;font-size:10px}
.prod-table td.pc-name{text-align:left;font-weight:700;font-size:10.5px;text-transform:uppercase;min-width:220px;max-width:320px}
.prod-table tbody td{background:#fff}.prod-table tbody tr:nth-child(even) td{background:#f8fafc}
.prod-table tbody tr td.pos{background:#fff27a;font-weight:700}
.prod-table td.na{color:#8a96a3}
.prod-table tfoot td{background:#f59a3a;color:#2a1700;font-weight:800;font-size:13px;border-color:#c97a24}
.prod-table tfoot td.pos{background:#f59a3a}
.prod-table tfoot td.pc-total{font:800 15px "Libre Franklin",Inter,Arial,sans-serif;letter-spacing:.06em}
.prod-status{font-size:11px;color:#6b7c8c;margin:10px 2px 0}
.prod-preview{width:96vw;max-width:1500px;height:92vh;padding:12px;border:1px solid #ccd7df;border-radius:14px}
.prod-preview iframe{width:100%;height:calc(100% - 48px);border:0}.prod-preview>button{margin-bottom:8px}
@media(max-width:1100px){.prod-filters{grid-template-columns:1fr 1fr}.prod-items{grid-column:1/-1}}
@media(max-width:700px){.prod-filters{grid-template-columns:1fr}.prod-table th.pc-brand{min-width:200px;font-size:18px}.prod-quick .prod-toggle{margin-left:0}}

/* Hoja exportada */
.prod-report{margin:18px;font-family:Arial,Helvetica,sans-serif;color:#1f2f3d;background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.prod-print-controls{display:flex;align-items:center;gap:14px;padding:12px;background:#edf2f7;border-radius:8px;margin-bottom:16px;font-size:12px}
.prod-print-controls button{padding:10px 18px;background:#294e6a;color:#fff;border:0;border-radius:6px;font-weight:700;cursor:pointer}
.prod-report-head{display:flex;align-items:center;gap:14px;border-bottom:3px solid #c9ab6e;padding-bottom:8px;margin-bottom:12px}
.prod-report-head img{width:54px;height:54px}
.prod-report-head small{font-size:9px;letter-spacing:.08em;color:#6b5a36;font-weight:700}
.prod-report-head h1{margin:4px 0 0;font:800 21px Arial,Helvetica,sans-serif;color:#13293b;text-decoration:underline;text-decoration-color:#c9ab6e;text-underline-offset:4px}
.prod-report .prod-table{width:100%;min-width:0;font-size:9.5px}
.prod-report .prod-table th.pc-brand{min-width:0;width:22%;font-size:22px}
.prod-report .prod-table td.pc-name{white-space:normal;font-size:9px}
.prod-report footer{margin-top:10px;font-size:8.5px;font-weight:700;color:#405366}
@media print{.prod-report{margin:0}.prod-print-controls{display:none}.prod-report .prod-table{font-size:8.5px}.prod-report .prod-table th.pc-single,.prod-report .prod-table th.pc-sub{height:125px}}
