#mod-ordenes{--oc-muted:#69675f}
.oc-head,.oc-actions,.oc-tabs,.oc-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.oc-head{justify-content:space-between;margin-bottom:20px}.oc-head h2{font-size:26px;letter-spacing:-.6px}.oc-head p{color:var(--oc-muted);font-size:14px;margin-top:6px}
.oc-button{font:inherit;font-size:13px;font-weight:600;border:1px solid var(--border);border-radius:9px;padding:10px 15px;cursor:pointer;background:#fff;color:var(--text)}
.oc-button.primary{background:var(--accent);border-color:var(--accent);color:white}.oc-button:disabled{opacity:.45;cursor:not-allowed}
.oc-button:focus-visible,#mod-ordenes input:focus-visible,#mod-ordenes select:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.oc-tabs{border-bottom:1px solid var(--border);margin-bottom:20px;padding-bottom:12px}.oc-tabs .active{background:#111118;color:#fff;border-color:#111118}
.oc-banner{padding:14px 16px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e40af;border-radius:10px;line-height:1.55;margin-bottom:16px;font-size:14px}
.oc-banner.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.oc-banner.error{background:#fff1f2;border-color:#fecdd3;color:#9f1239}
.oc-banner[hidden],#mod-ordenes [hidden]{display:none!important}
.oc-loading-dot{display:inline-block;width:13px;height:13px;border:2px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:spin .7s linear infinite;margin-right:8px}
.oc-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.oc-kpi{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px}.oc-kpi span{font-size:12px;color:var(--oc-muted);display:block}.oc-kpi strong{font-size:28px;display:block;margin-top:6px}.oc-kpi small{color:var(--oc-muted);font-size:11px}
.oc-sources{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.oc-source{padding:16px;border:1px solid var(--border);border-radius:10px;background:white;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.oc-source b{display:block}.oc-source small{display:block;color:var(--oc-muted)}
.oc-filters{margin-bottom:14px}.oc-filters input{flex:1;min-width:190px}.oc-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:var(--oc-muted)}
#mod-ordenes input:not([type=checkbox]),#mod-ordenes select,#mod-ordenes textarea{font:inherit;font-size:13px;border:1px solid var(--border);border-radius:8px;padding:10px;background:white;color:var(--text);max-width:100%}
#mod-ordenes input[type=checkbox]{accent-color:#2563eb;width:17px;height:17px;flex-shrink:0}
.oc-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px;background:white}.oc-table{border-collapse:collapse;width:100%;min-width:850px;font-size:13px}.oc-table th{background:#fafaf8;color:var(--oc-muted);text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.4px;padding:13px 12px;white-space:nowrap}.oc-table td{padding:14px 12px;border-top:1px solid var(--border);vertical-align:top}.oc-table .num{text-align:right;white-space:nowrap}.oc-table small{display:block;color:var(--oc-muted);font-size:11px;line-height:1.5;margin-top:4px}.oc-table input[type=number]{width:96px}.oc-table .oc-product{min-width:215px;max-width:310px}.oc-status{display:inline-block;padding:4px 8px;background:#f3f4f6;border-radius:5px;font-size:11px;font-weight:600}.oc-status.candidato,.oc-status.lista,.oc-status.emitida{background:#ecfdf5;color:#047857}.oc-status.revision,.oc-status.incierta{background:#fffbeb;color:#92400e}
.oc-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;padding:15px 0;color:var(--oc-muted);font-size:13px}.oc-note{font-size:12px;line-height:1.7;color:var(--oc-muted);margin:14px 0}
.oc-form{background:white;border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:18px}.oc-form h3{font-size:17px;margin-bottom:15px}.oc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.oc-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6;margin:18px 0}.oc-totals{display:flex;justify-content:flex-end;gap:28px;flex-wrap:wrap;padding:20px 0}.oc-totals span{display:block;font-size:12px;color:var(--oc-muted)}.oc-totals b{display:block;font-size:22px;margin-top:5px}
.oc-detail{padding:18px;background:white;border:1px solid var(--border);border-radius:12px;margin:18px 0}.oc-detail summary{cursor:pointer;font-weight:600}.oc-detail p{font-size:13px;line-height:1.6;margin:12px 0}
.oc-empty{text-align:center;color:var(--oc-muted);padding:35px!important}.oc-selected-bar{padding:15px 18px;background:#111118;color:#fff;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
@media(max-width:950px){.oc-grid{grid-template-columns:repeat(2,1fr)}.oc-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.oc-sources,.oc-grid{grid-template-columns:1fr}.oc-head h2{font-size:23px}}
