#order-system-status{padding:18px;border:1px solid #e7a475;background:#35271e;color:#fff;white-space:pre-line}
#order-system-status[hidden],#vendor-history[hidden]{display:none!important}
.order-receipt dd,.admin-specs strong,.review-reason{white-space:pre-wrap;overflow-wrap:anywhere}
.pricing-editor,#customer-quote-review{margin:24px 0;padding:22px;border:1px solid #627c8c;background:#102535;color:#edf4f8}
.pricing-editor form{display:grid;gap:16px}.pricing-editor label{display:grid;gap:8px}
.pricing-editor input[type=number],.pricing-editor textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #7893a4;border-radius:3px;background:#071522;color:#fff;font:inherit}
.review-check{display:flex!important;align-items:flex-start;gap:10px!important;line-height:1.65;margin:12px 0}
.review-check input{flex:0 0 20px;width:20px;height:20px;margin:3px 0;accent-color:#92bdd7}
.review-reason{line-height:1.8}.review-error{color:#ffc9a6;white-space:pre-wrap}
.quote-button:disabled{opacity:.5;cursor:default}
#vendor-history-list{display:grid;gap:12px;margin:24px 0}
.admin-period{flex-wrap:wrap}.admin-stats strong{overflow-wrap:anywhere}
.admin-dashboard{width:100%;margin-left:0;min-width:0}
.vendor-session{flex-wrap:wrap}.vendor-session .order-actions{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
.glass-panel{overflow-x:auto}
.work-order-dialog{width:min(1120px,94vw);max-height:92vh;padding:0;border:1px solid #6b8392;background:#102535;color:#fff;border-radius:8px}
.work-order-dialog::backdrop{background:rgba(0,10,20,.8)}
.work-order-dialog header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;padding:16px;background:#102535;z-index:2}
.work-order-dialog header h2{margin:0;font-size:1.05rem}.work-order-dialog header button,.work-order-download{display:inline-block;min-height:44px;box-sizing:border-box;padding:12px 16px;border:1px solid #7893a4;background:#e8f0f4;color:#071522;font:inherit;cursor:pointer;text-decoration:none}
.work-order-pages{padding:16px}.work-order-page{margin:0 0 24px;text-align:center}.work-order-page img{display:block;width:100%;height:auto;margin-bottom:10px;background:#fff}.work-order-dialog>p{padding:0 16px}
@media print{body:has(.work-order-dialog[open])>*:not(.work-order-dialog){display:none!important}body:has(.work-order-dialog[open]){overflow:visible!important;background:white!important}.work-order-dialog[open]{display:block;position:static;max-height:none;width:100%;max-width:none;border:0;background:white;padding:0;overflow:visible}.work-order-dialog header,.work-order-dialog>p,.work-order-download{display:none}.work-order-pages{padding:0}.work-order-page{break-after:page;margin:0}.work-order-page:last-child{break-after:auto}.work-order-page img{width:100%;max-height:260mm;object-fit:contain;margin:0}@page{size:A4;margin:10mm}}

/* Large screen view is separate from the fixed-size, price-free export pages. */
.work-order-screen{margin:16px;padding:clamp(18px,3vw,32px);background:#fff;color:#203e52;border-radius:5px}
.work-order-screen p{margin:8px 0;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem}
.work-order-screen h3{margin:26px 0 12px;font-size:1.3rem;color:#122f43}
.work-order-emphasis{font-weight:700}.work-order-screen-id{color:#526a7a;font-size:.9rem!important}
.work-order-screen-diagram{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;align-items:center;margin:20px 0}
.work-order-screen-diagram>img{display:block;width:100%;height:auto;max-height:600px;object-fit:contain}
.work-order-glass-table{width:100%;border-collapse:collapse;table-layout:fixed;background:white}
.work-order-glass-table th,.work-order-glass-table td{padding:14px 6px;text-align:center;border-bottom:1px solid #d1dce3;overflow-wrap:anywhere}
.work-order-glass-table thead{background:#e6eef3}.work-order-glass-table th{font-size:.9rem}.work-order-glass-table th:first-child{width:13%}
.work-order-glass-table td{font-size:.95rem}.work-order-glass-table td.glass-dimension{font-size:clamp(1.25rem,2.5vw,1.85rem);font-weight:800;color:#123951;line-height:1.3;font-variant-numeric:tabular-nums}
.work-order-glass-table caption{caption-side:bottom;text-align:left;padding:12px 0;color:#526a7a;font-size:.85rem}
.work-order-image-downloads{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px 16px}
.work-order-screen-pricing{margin:0 16px 20px;padding:24px;border:1px solid #7893a4;border-radius:5px;background:#17394d}
.work-order-screen-pricing h3{margin:0 0 12px;font-size:1.3rem}.work-order-screen-pricing p{line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.work-order-screen-pricing dl{margin:20px 0}.work-order-screen-pricing dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;padding:10px 0}
.work-order-screen-pricing dt{color:#d4e2eb}.work-order-screen-pricing dd{margin:0;font-size:1.25rem;font-weight:700}
.work-order-screen-pricing .grand-total{margin-top:10px;padding-top:20px;border-top:1px solid #7893a4}.work-order-screen-pricing .grand-total dd{font-size:clamp(1.6rem,4vw,2rem)}
.work-order-screen-help{font-size:.85rem;color:#b9d1df}
@media screen{.work-order-pages{display:none}}
@media(max-width:740px){.work-order-screen-diagram{grid-template-columns:1fr}.work-order-screen-diagram>img{max-height:500px}.work-order-screen{margin:12px;padding:16px}.work-order-screen-pricing{margin:0 12px 16px;padding:18px}.work-order-glass-table th,.work-order-glass-table td{padding:12px 4px}}
@media print{.work-order-screen-only{display:none!important}}

/* R37 original workbook preview is visible only in its own dialog. */
@media screen{.work-order-template-dialog .work-order-pages{display:block}}

.work-order-preparing{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:10000;box-sizing:border-box;width:min(430px,90vw);padding:24px;border:1px solid #7893a4;border-radius:12px;background:#fff;color:#173d32;box-shadow:0 8px 40px #0005;text-align:center;font:600 17px/1.6 sans-serif;pointer-events:none}@media print{.work-order-preparing{display:none!important}}
