/* Isolated shared center; the administrative sidebar and commercial header stay independent. */
.lc-qc {font:14px Inter,Arial,sans-serif;color:#102b4e;min-width:0}
.lc-qc * {box-sizing:border-box}
.lc-qc h2,.lc-qc h3,.lc-qc p{margin:0}.lc-qc h2{font-size:19px}.lc-qc h3{font-size:16px}
.lc-qc button,.lc-qc select,.lc-qc input{font:inherit;color:inherit;min-height:38px;border:1px solid #dce3eb;border-radius:7px;background:#fff;padding:8px 11px;max-width:100%}
.lc-qc button{cursor:pointer;font-weight:600}.lc-qc button:hover{background:#edf3fa}.lc-qc button:focus-visible,.lc-qc input:focus-visible,.lc-qc select:focus-visible{outline:2px solid #4876ad;outline-offset:2px}
.lc-qc-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.lc-qc-header p{font-size:12px;color:#64748b;margin-top:5px;line-height:1.5}
/* The internal shell already names this route; dialogs retain their own heading. */
#view-quotes .lc-qc-header h2{position:absolute;width:0;height:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#view-quotes .lc-qc-header p{margin-top:0}
.lc-qc [data-qc-new]{background:#102b4e;color:white;white-space:nowrap}
.lc-qc-controls{display:flex;gap:8px;flex-wrap:wrap}.lc-qc-controls label:first-child{flex:1;min-width:220px}.lc-qc-controls input{width:100%}
.lc-qc-status{font-size:12px;color:#64748b;padding:13px 0}
.lc-qc-row{display:grid;grid-template-columns:minmax(170px,1.3fr) minmax(140px,1fr) minmax(140px,.9fr) minmax(140px,1fr);gap:14px;border:1px solid #dce3eb;background:white;border-radius:9px;padding:14px;margin-bottom:9px;align-items:center}
.lc-qc-row strong{font-size:13px}.lc-qc-row small{display:block;color:#64748b;font-size:11px;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
.lc-qc-origin{font-size:11px;font-weight:600}.lc-qc-state{display:inline-block;margin-top:5px;font-size:10px;background:#edf3fa;padding:4px 7px;border-radius:5px}
.lc-qc-actions{grid-column:1/-1;display:flex;gap:7px;border-top:1px solid #edf1f5;padding-top:10px}.lc-qc-actions button{min-height:32px;padding:6px 11px;font-size:11px}
.lc-qc-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0}.lc-qc-footer small{color:#64748b;font-size:11px;margin-left:auto}
.lc-qc-empty{padding:30px 15px;border:1px dashed #c8d5e4;border-radius:8px;color:#64748b}
.lc-qc [data-qc-detail]{border:1px solid #b8ccdf;border-radius:10px;padding:18px;margin-top:15px;background:white}
.lc-qc [data-qc-detail] header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.lc-qc [data-qc-detail] p,.lc-qc [data-qc-detail] small{font-size:12px;line-height:1.6;margin:7px 0;white-space:pre-wrap}
.lc-qc [data-qc-detail] small{display:block;color:#64748b}.lc-qc-lines>div{display:grid;grid-template-columns:minmax(0,1fr) 60px 130px;gap:12px;border-bottom:1px solid #e3e9f0;padding:9px 0;font-size:12px}.lc-qc-lines strong{text-align:right}
.lc-qc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#savedDialog{width:min(1050px,calc(100vw - 24px));max-width:none}#savedList:has(.lc-qc){display:block;padding:16px;overflow:auto;max-height:calc(85dvh - 80px)}
@media(max-width:800px){.lc-qc-row{grid-template-columns:1fr 1fr;gap:10px}.lc-qc-header{align-items:flex-start}.lc-qc-header h2{font-size:17px}.lc-qc-header button{font-size:12px}.lc-qc-controls label:first-child{flex-basis:100%}.lc-qc-controls select{font-size:12px}.lc-qc-money strong{font-size:15px}.lc-qc-footer small{margin:0;flex-basis:100%}.lc-qc-lines>div{grid-template-columns:minmax(0,1fr) 40px 90px;gap:7px}}
@media(max-width:390px){.lc-qc-header{display:block}.lc-qc-header button{margin-top:10px}.lc-qc-row{padding:11px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lc-qc-controls label{max-width:100%}.lc-qc-lines>div{font-size:11px}#savedList:has(.lc-qc){padding:10px}.lc-qc-footer{gap:6px}}

.lc-qc-row>div{min-width:0}.lc-qc-lines span{overflow-wrap:anywhere}

/* Reading a document is a view, not content hidden below the entire listing. */
.lc-qc-detail-view > :not([data-qc-detail]) { display:none !important; }
.lc-qc-detail-view [data-qc-detail] { margin:0; }

.lc-qc .lc-qc-order-link{border:1px solid #cdd9e8;color:#102b4e;border-radius:6px;padding:7px 10px;text-decoration:none;font-size:12px;font-weight:600;display:inline-flex;align-items:center;min-height:34px;}.lc-qc-actions{flex-wrap:wrap;}
