/* Reorder planner demo additions. Base frame and components come from ../cycle-count/assets/style.css */
.filters{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-end;margin-bottom:12px}
.filters .field label{margin-bottom:2px}
.filters .chk{display:flex;align-items:center;gap:6px;font-size:12.5px;height:28px}
.filters .chk input{margin:0}
.why{font-size:11.5px;color:var(--mute);line-height:1.35;margin-top:2px}
.reason{min-width:250px;white-space:normal!important;font-size:12px;line-height:1.4}
.qty{width:78px;text-align:right}
tr.off td{color:var(--mute)}
tr.off td .qty{color:var(--mute)}
tr.blocked td{background:#fbf7f1}
.exs{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}
.math td{background:#f8fafc;white-space:normal!important;font-size:12px;line-height:1.5}
.math code{font-family:inherit;background:#fff;border:1px solid var(--line);border-radius:3px;padding:1px 5px}
.linkbtn{background:none;border:0;padding:0;color:var(--blue);font:inherit;font-size:11.5px;cursor:pointer;text-decoration:underline}
.vgrp .hd .tot{font-weight:700;color:var(--navy)}
.vgrp .rule{font-size:12px;color:var(--ink2);margin:0 0 10px}
.tfoot td{font-weight:700;background:var(--head)}
.polist{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.polist span{background:#fff;border:1px solid #bcd2ea;border-radius:4px;padding:4px 8px;font-weight:600;font-size:12.5px}
.fixf{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.fixf input[type=number]{width:80px}
.fixf select{max-width:200px}
.lock{font-size:11.5px;color:var(--mute)}
.matrix td,.matrix th{text-align:center} .matrix td:first-child,.matrix th:first-child{text-align:left}
.sw{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--line)}
.sw:last-child{border-bottom:0}
.sw input{margin-top:3px}
.sw b{display:block;font-size:13px}
.clsrules input[type=number]{width:72px}
.clsrules select{width:150px}
#errs ul{margin:4px 0 0 18px;padding:0}
.fieldgrid select{max-width:100%}
.runrow td{vertical-align:top}
.kpis > *{min-width:0}
@media (max-width:700px){
  .filters .field{flex:1 1 140px}
  .filters .field select,.filters .field input{width:100%}
}
