/* Isolated review build. Shared form hierarchy and compact order editing. */
label,.field>span,.s-formgrid label,.form-grid label {color:#175780;font-weight:650}
input,select,textarea{color:#17476a;font-weight:400}
label:has([required])>.cell-label:after{content:' *';color:#bd3028}
.cw-heading{justify-content:flex-start!important;gap:32px;flex-wrap:wrap}
.cw-heading>.cw-actions{margin-left:0!important;align-self:center}
html body #app button[data-cw="order-new"]{background:#ee812d!important;border-color:#ee812d!important;color:white!important}
html body #app button[data-cw="customer-new"]{background:#eaf4ff!important;border-color:#bad7f3!important;color:#19547e!important}
#cw-lines{max-height:52vh;overflow:auto;border:1px solid #c7def2;border-radius:10px;margin-top:14px}
.cw-grid-head,.cw-line-grid{display:grid;grid-template-columns:28px 60px 86px 76px minmax(110px,1fr) 64px 56px 64px 80px 84px 50px;gap:6px;align-items:center;min-width:940px;padding:10px;box-sizing:border-box}
.cw-grid-head{position:sticky;top:0;z-index:3;background:#e9f3fc;color:#175780;font-weight:700;border-bottom:1px solid #bad7ed}
.cw-line.compact-order-line{padding:0!important;margin:0!important;border:0!important;border-bottom:1px solid #d8e7f3!important;border-radius:0!important;min-width:940px;background:#fff}
.compact-order-line:nth-child(odd){background:#f7fbff}
.compact-order-line:focus-within{background:#fff5e9}
.cw-line-grid label{display:block;margin:0;min-width:0}
.cw-line-grid .cw-line-photo{margin:0!important}
.cw-line-grid input{width:100%;padding:7px;min-height:36px;box-sizing:border-box}
.cw-line-grid .cell-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cw-line-grid .row-amount{text-align:right;padding-right:5px;color:#a74613}
.cw-line-grid .s-upload{display:block!important;padding:2px!important;border:0!important;background:transparent!important;min-height:0!important;margin:0!important}
.cw-line-grid .s-upload img{width:48px!important;height:48px!important;object-fit:contain!important;margin:auto}
.cw-line-grid .s-upload strong,.cw-line-grid .s-upload small{display:none!important}
.cw-line-grid .s-upload-status:empty{display:none!important}
.cw-line-grid .s-upload-status:not(:empty){display:block!important;font-size:11px;color:#ae3026}
.cw-line-grid .s-upload label{font-size:11px}
.cw-line-grid .s-upload input[type=file]{font-size:10px;padding:0;width:64px;min-height:20px}
.cw-line-grid .s-upload:focus-within{outline:2px solid #ed832f}
.row-extra{padding:0 12px 8px 132px;font-size:12px;color:#356583}
.row-extra textarea{width:95%;min-height:55px;margin-top:6px}
.cw-line-match:empty{display:none}
#cw-total{position:sticky;bottom:70px;z-index:4;background:#eaf4ff;border:1px solid #bad7f3;margin:8px 0;padding:12px;font-weight:700;color:#184e75}
.confirmed-hint{color:#166341;background:#edf8f1;padding:12px;border-radius:8px}
.review-badge{position:fixed;bottom:8px;left:12px;z-index:100000;background:#fff1dc;color:#85450e;border:1px solid #efb877;padding:5px 10px;border-radius:6px;font-size:12px;pointer-events:none}
table tfoot.review-total td{background:#e9f3fc;color:#174f79;font-weight:700;border-top:2px solid #b8d7ee}
@media print{.review-badge{position:static}.cw-grid-head{position:static}#cw-lines{max-height:none;overflow:visible}}
