/* Read-only raw receipt detail. No ledger, registration, or other module rules. */
.raw-receipt-detail-panel{box-sizing:border-box;width:min(100%,calc(100vw - 72px));max-width:100%;min-width:0;color:#214563;font-size:13px;line-height:1.6}
:is(#rawInspectionHistory,#rhTable){container-type:inline-size}
:is(#rawInspectionHistory,#rhTable) .raw-receipt-detail-panel{width:min(100%,calc(100cqw - 24px))}
.raw-inspection-readout{min-width:0;border:1px solid #ccddec;border-radius:7px;background:#fff;padding:16px}
.raw-receipt-detail-panel h4{margin:16px 0 9px;font-size:14px;color:#214e79;line-height:1.5}
.raw-receipt-detail-panel h4:first-child{margin-top:0}
.rr-result-header{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:18px;padding-bottom:14px;border-bottom:1px solid #dae5ef}
.rr-result-header>div{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.rr-result-header span{font-size:12px;color:#607c93}
.rr-result-header strong{font-size:16px;overflow-wrap:anywhere}
.rr-result-header .rr-judge{padding:3px 14px;border-radius:5px;background:#edf2f8}
.rr-result-header .is-pass{background:#e5f5ed;color:#12633d}
.rr-result-header .is-fail{background:#fff0ee;color:#aa3022}
.rr-result-header .is-pending{background:#fff5df;color:#8e5d13}
body .raw-receipt-detail-panel table.rr-dimensions{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;margin:0}
body .raw-receipt-detail-panel table.rr-dimensions :is(th,td){box-sizing:border-box;padding:11px 12px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.5;font-size:13px;border-bottom:1px solid #dbe5ee;text-align:left}
body .raw-receipt-detail-panel table.rr-dimensions thead th{font-weight:500;color:#60798e;background:#f2f6fb}
body .raw-receipt-detail-panel table.rr-dimensions tbody th{color:#284f73;background:#f8fafd;font-weight:700}
body .raw-receipt-detail-panel table.rr-dimensions .rr-measured{font-size:17px;font-weight:800;color:#173d61}
.rr-basis-note{margin:7px 0 0;font-size:11px;color:#886224}
.rr-appearance{margin-top:15px;padding-top:1px;border-top:1px solid #e4ecf3}
.rr-appearance-checks{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0}
.rr-appearance-checks>div{min-width:0;padding:9px 11px;border:1px solid #e1e9f0;border-radius:5px;background:#f8fafd}
.rr-appearance-checks dt{font-size:12px;color:#60798e;overflow-wrap:anywhere}
.rr-appearance-checks dd{margin:3px 0 0;font-size:13px;font-weight:700;overflow-wrap:anywhere}
.rr-appearance-checks .is-normal{color:#226749}
.rr-appearance-checks .is-unchecked{color:#8e641e}
.rr-note-fields{display:grid;gap:7px;margin:12px 0 0}
.rr-note-fields>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px}
.rr-note-fields dt{font-size:12px;color:#60798e}
.rr-note-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.raw-receipt-detail-panel details.rr-reference{box-sizing:border-box;min-width:0;padding:0!important;margin:10px 0 0!important;border:1px solid #d5e2ee;border-radius:6px;background:#fff}
.raw-receipt-detail-panel .rr-reference>summary{padding:11px 14px;cursor:pointer;font-size:13px;font-weight:700;color:#315e87;line-height:1.6;overflow-wrap:anywhere}
.raw-receipt-detail-panel .rr-reference>summary span{margin-left:10px;color:#73879a;font-size:11px;font-weight:400}
.raw-receipt-detail-panel .rr-reference[open]>summary{border-bottom:1px solid #e0e9f1}
.rr-reference-fields,.rr-property-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:14px}
.rr-reference-fields>div,.rr-property-fields>div{min-width:0}
.rr-reference-fields dt,.rr-property-fields dt{font-size:11px;color:#698094}
.rr-reference-fields dd,.rr-property-fields dd{margin:4px 0 0;font-size:13px;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
.rr-reference-fields .rr-wide{grid-column:1/-1}
.rr-millsheet-source{padding:12px 14px 0}
.rr-property-sections{display:grid;grid-template-columns:1fr 1.25fr;gap:12px;padding:0 14px}
.rr-property-sections>section{min-width:0;border-top:1px solid #e1e9f1}
.rr-property-sections h4{font-size:13px}
.rr-property-sections .rr-property-fields{padding:0 0 14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.rr-millsheet>h4,.rr-verification,.rr-millsheet>.rr-muted{margin-left:14px;margin-right:14px}
.rr-verification{margin-bottom:14px;max-width:calc(100% - 28px);overflow:auto}
.rr-verification table{min-width:0!important}
.rr-muted{color:#74889a;font-size:12px}
#rawReceiptDetailDialog .rr-receipt-fields{padding:14px}
#rawReceiptDetailDialog .raw-receipt-detail-panel{width:100%}
@media(max-width:760px){
 .raw-receipt-detail-panel{width:min(100%,calc(100vw - 54px));font-size:13px}
 .raw-inspection-readout{padding:12px}
 .rr-result-header{grid-template-columns:1fr 1fr;gap:10px}
 .rr-result-header>div:first-child{grid-column:1/-1}
 .rr-result-header strong{font-size:15px}
 .rr-appearance-checks{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rr-reference-fields,.rr-property-fields{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
 .rr-property-sections{grid-template-columns:1fr}
 .rr-note-fields>div{grid-template-columns:72px minmax(0,1fr);gap:7px}
 body .raw-receipt-detail-panel table.rr-dimensions thead{display:none}
 body .raw-receipt-detail-panel table.rr-dimensions tbody{display:grid;gap:10px}
 body .raw-receipt-detail-panel table.rr-dimensions tbody tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dbe5ee;border-radius:5px;overflow:hidden}
 body .raw-receipt-detail-panel table.rr-dimensions :is(th,td){padding:9px 10px!important;border:0}
 body .raw-receipt-detail-panel table.rr-dimensions tbody th{grid-column:1/-1;background:#edf3f9}
 body .raw-receipt-detail-panel table.rr-dimensions td::before{content:attr(data-label);display:block;font-size:11px;font-weight:400;color:#70869a;margin-bottom:3px}
 .raw-receipt-detail-panel .rr-reference>summary span{display:block;margin-left:0}
}
