/* Compact operational cards: scoped to commands only. */
.command-board{--line:#e8e6ec;--wine:#923e65;--pink:#f6edf2}
.cq-card{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 3px 10px #27233203;min-width:0}.cq-card-head{display:flex;align-items:center;justify-content:space-between;padding:18px 21px 12px}.cq-folio{font-size:16px;font-weight:650;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.cq-state{font-size:10px;padding:3px 8px;border-radius:6px;background:#f1eff4;color:#74707c;font-weight:550}.cq-state.en_proceso{color:#90630d;background:#fbf0da}.cq-state.listo{color:#286c4b;background:#edf5ef}.cq-timing{display:flex;gap:26px;padding:0 21px 17px;border-bottom:1px solid #f0eef3}.cq-timing>div{display:flex;flex-direction:column;justify-content:flex-end}.cq-timing small{color:#8c8793;font-size:10px;margin-bottom:1px}.cq-timing strong{font-size:25px;line-height:1.25;font-weight:600;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.cq-timing span{font-size:14px;line-height:1.8;font-variant-numeric:tabular-nums;color:#5e5867}
.cq-product{padding:18px 21px 6px}.cq-product+.cq-product{border-top:1px solid var(--line);margin-top:10px}.cq-product h3{font-size:18px;letter-spacing:-.35px;line-height:1.35;font-weight:600;display:flex;align-items:center;gap:10px}.cq-quantity{flex-shrink:0;display:flex;align-items:center;gap:3px;color:var(--wine);font-size:17px;background:var(--pink);border-radius:8px;padding:4px 8px;font-weight:600}.cq-quantity small{font-size:11px;color:#b47c96}.cq-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:10px;margin:16px 0}.cq-options div{min-width:0}.cq-options .cq-wide{grid-column:1/-1}.cq-options dt{font-size:10px;color:#8a8492;margin-bottom:1px}.cq-options dd{font-size:13px;margin:0;color:#37313d;white-space:pre-wrap;overflow-wrap:anywhere}.cq-instruction{padding:11px 13px;background:#f7f6f9;border-radius:9px;margin:12px 0;color:#514959}.cq-instruction strong{font-size:10px;font-weight:650;color:#7c7182}.cq-instruction p{font-size:13px;margin-top:3px;white-space:pre-wrap;overflow-wrap:anywhere}.cq-general{margin:10px 21px;background:#fff8eb}.cq-general strong{color:#8b651d}.cq-extras{border-left:2px solid #b86c90;margin:15px 0;padding-left:11px}.cq-extras p{font-size:12px}.cq-extras strong{display:block;color:var(--wine);font-weight:600}.cq-extras span{display:block;color:#706875;margin-top:2px;white-space:pre-wrap}.cq-reference{display:flex;gap:8px;align-items:center;border:0;background:transparent;padding:4px 0;min-height:36px;font-size:12px;color:var(--wine);font-weight:550;margin:5px 0}.cq-reference span{font-size:14px}.cq-reference svg{width:17px;height:17px}.cq-reference:hover{background:transparent;text-decoration:underline}.cq-names{display:flex;gap:20px;padding:12px 21px;font-size:11px;color:#77717e;flex-wrap:wrap}.cq-names span{overflow-wrap:anywhere}.cq-names small{display:block;font-size:9px;color:#a49ca9}.cq-details{margin:0 21px 16px}.cq-details summary{font-size:10px;color:#8c8393;cursor:pointer;padding:3px 0;min-height:25px}.cq-details p{font-size:12px;white-space:pre-wrap;line-height:1.7;padding:12px 0;overflow-wrap:anywhere;color:#696071}.cq-actions{border-top:1px solid var(--line);padding:12px 20px;display:flex;gap:10px;justify-content:flex-end;align-items:center}.cq-actions button{min-height:38px;font-size:12px;padding:8px 12px}.cq-primary{background:var(--wine);border-color:var(--wine);color:#fff}.cq-primary:hover{background:#78304f;border-color:#78304f}.cq-primary span{margin-right:4px}.cq-working{margin-right:auto;font-size:11px;color:#9b7c40}.cq-completed{padding:13px 21px;color:#36835b;border-top:1px solid var(--line);font-size:12px}.cq-notice{background:#fff4dc;font-size:12px;padding:12px 21px;white-space:pre-wrap}.cq-notice strong{display:block}.cq-original{padding:18px 21px 8px;font-size:14px;line-height:1.8;overflow-wrap:anywhere}.cq-original p{white-space:pre-wrap}

.command-board .cq-card{padding:0;margin-bottom:16px}.cq-card p{margin:0}.cq-card .cq-instruction p{margin-top:3px}.cq-card h3{margin:0}.cq-card .cq-general{margin:10px 21px}.cq-card .cq-notice{margin:0}.cq-notice small{display:block;margin-top:4px}.cq-date-label{padding:0 21px 8px;font-size:11px;color:#77717e}.cq-photo-access{padding:4px 21px}.cq-card .cq-reference{border:0;background:transparent;color:#923e65;box-shadow:none}.cq-card svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.cq-card .cq-primary{background:#923e65;border-color:#923e65;color:#fff}.cq-card .cq-primary:hover{background:#78304f}.cq-card .cq-actions{flex-wrap:wrap}.cq-card .cq-product>.cq-instruction{border-left:2px solid #e4cbd8;background:transparent;border-radius:0;padding:3px 0 3px 11px;margin:12px 0}.cq-card .cq-details p{padding:12px 0}.cq-card .cq-extras p+p{margin-top:8px}.cq-card .cq-product h3{overflow-wrap:anywhere}.cq-card button:focus-visible,.cq-card summary:focus-visible{outline:3px solid #bd668e;outline-offset:3px}
@media(max-width:760px){.cq-card .cq-options dd,.cq-card .cq-instruction p{font-size:14px}.cq-card .cq-options dt,.cq-card .cq-instruction strong{font-size:11px}.cq-card .cq-details summary{font-size:12px}.cq-card .cq-actions button{min-height:44px;font-size:13px}.cq-card .cq-names{font-size:12px}}

.cq-reopen{margin-top:10px}.cq-reopen button{min-height:44px;width:100%;font-size:12px;color:#923e65;border-color:#e6d1dc}.cq-reopen-note{display:block;color:#77717e;margin-top:7px;line-height:1.5}

/* History is a compact overview; active command styling stays unchanged. */
.cq-history-card .cq-card-head{padding:16px 20px 9px}
.cq-history-card .cq-date-label{padding:0 20px 8px}
.cq-history-card .cq-history-schedule{display:flex;flex-wrap:wrap;gap:10px 22px;padding:0 20px 10px;font-size:13px;font-variant-numeric:tabular-nums;color:#62596a}
.cq-history-card .cq-history-schedule>span{display:grid;gap:2px}
.cq-history-card .cq-history-schedule small{font-size:10px;color:#8c8393}
.cq-history-card .cq-history-schedule strong{font-size:14px;font-weight:600;color:#39313f}
.cq-history-card .cq-names{padding:6px 20px 13px;gap:9px 24px}
.cq-history-card .cq-history-preview{padding:12px 20px 4px;border-top:1px solid #f0eef3;font-size:13px}
.cq-history-card .cq-history-products{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cq-history-card .cq-history-products>li{display:grid;gap:2px;overflow-wrap:anywhere;line-height:1.45}
.cq-history-card .cq-history-products strong{font-size:14px;font-weight:600}
.cq-history-card .cq-history-products small{font-size:12px;color:#923e65}
.cq-history-card .cq-history-free{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.cq-history-card .cq-history-more{font-size:11px;color:#827887;margin-top:8px}
.cq-history-card .cq-history-detail{margin:4px 0 8px}
.cq-history-card .cq-history-detail>summary{padding:12px 20px;box-sizing:border-box;min-height:44px;color:#923e65;font-size:12px;list-style-position:inside;line-height:1.5}
.cq-history-card .cq-history-detail[open]>summary{background:#faf8fb;border-block:1px solid #eee9f0}
.cq-history-card .cq-history-detail-body .cq-product{padding:14px 20px 6px}
.cq-history-card .cq-history-detail-body .cq-product h3{font-size:16px}
.cq-history-card .cq-history-detail-body .cq-quantity{font-size:15px}
.cq-history-card .cq-history-detail-body .cq-instruction p{padding:0;margin-top:3px}
.cq-history-card .cq-history-detail-body .cq-extras p{padding:0}
.cq-history-card .cq-history-original{padding:12px 20px;border-top:1px solid #eee9f0;margin-top:10px}
.cq-history-card .cq-history-original h4{font-size:11px;color:#8c8393;margin:0}
.cq-history-card .cq-history-original p{font-size:12px;padding:7px 0 0}
.cq-history-card .cq-history-detail-body .cq-original{padding:12px 20px 4px}
.cq-history-card .cq-history-detail-body .cq-original p{padding:0}
.cq-history-card .cq-completed{padding:10px 20px;font-size:11px}
.cq-history-card .cq-photo-access{padding:0 20px 8px}
.cq-history-card .cq-reference{min-height:40px}
@media(max-width:600px){.cq-history-card .cq-history-products strong{font-size:14px}.cq-history-card .cq-names{font-size:12px}.cq-history-card .cq-history-detail>summary{font-size:13px}}
@media print{
 .cq-history-card .cq-history-detail>summary,.cq-history-card .cq-photo-access,.cq-history-card .cq-reopen{display:none!important}
 .cq-history-card .cq-history-detail>.cq-history-detail-body{display:block!important}
 .cq-history-card .cq-history-detail::details-content{display:block!important;content-visibility:visible!important;height:auto!important}
 .cq-history-card .cq-product{break-inside:avoid}
}
/* Confirmación de «Marcar lista»: confirmar a la izquierda, cancelar donde estaba «Marcar lista». */
.cq-actions.cq-confirm{flex-direction:column;align-items:stretch;gap:10px;background:#fff6e5;border-top-color:#efd59c}.cq-confirm-question{font-size:14px;line-height:1.45;color:#5c3d00}.cq-confirm-question strong{display:block;font-size:16px;margin-bottom:2px}.cq-confirm-buttons{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.cq-actions.cq-confirm .cq-confirm-buttons button{min-height:46px;font-size:14px;padding:10px 16px;flex:1 1 140px}
