.packet-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin:18px 0}.packet-controls label{display:flex;flex-direction:column;gap:7px;min-width:0}.packet-controls input,.packet-controls select{width:100%;min-height:46px}.packet-choice{display:flex;align-items:center;gap:10px;margin:14px 0}.packet-choice input{width:22px;height:22px;flex:none}#actions{border-top:1px solid var(--line,#8195a5);margin-top:18px;padding-top:18px}#actions button{margin:4px}#message{white-space:pre-wrap}#packet{background:#fff;color:#182b3c;padding:26px;border-radius:10px;margin:20px 0;overflow-wrap:anywhere}#packet:empty{display:none}.packet-head{border-bottom:4px solid #dca315;padding-bottom:16px}.packet-head h1{font-size:26px}.packet-section{margin-top:25px}.packet-section h2{color:#183e58;font-size:20px}.packet-section p{font-size:13px}.packet-section table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.packet-section th,.packet-section td{border:1px solid #91a3af;padding:8px;text-align:left;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}.packet-section th{background:#e9eff4;color:#142e42}.packet-section small{display:block;font-size:10px;overflow-wrap:anywhere}.packet-section a{color:#145176}.packet-section li{margin:10px 0}body:has(#packet:empty) #actions{display:none}@media(max-width:650px){.packet-controls{grid-template-columns:1fr}#packet{padding:12px}.packet-section table{font-size:10px}.packet-section td,.packet-section th{padding:4px}#actions .btn{width:100%;margin:4px 0}.packet-head h1{font-size:22px}}@media print{@page{size:Letter;margin:.45in}.no-print,header.top,#sbmBackControl,.sbm-back-bar{display:none!important}body,main.wrap,#packet{margin:0!important;padding:0!important;max-width:none!important;background:#fff!important;color:#111!important}#packet{border:0;border-radius:0}.packet-section h2{break-after:avoid}.packet-section th{display:table-cell}.packet-section thead{display:table-header-group}.packet-section tr{break-inside:auto}.packet-section table{font-size:9px}.packet-section td,.packet-section th{padding:5px}.packet-section a{color:#111}body:not(.packet-ready) main::after{content:'No prepared packet. Return to SBM ONE and prepare a packet before printing.'}}

#pdfFrame{display:block;width:100%;height:75vh;min-height:400px;border:1px solid #8195a5;background:#eef3f7}#downloadPdf[hidden],#pdfPreview[hidden]{display:none!important}

#packet h1,#packet h2,#packet h3{color:#183e58!important}#packet p,#packet td,#packet th,#packet small{color:#182b3c!important}

/* The audit packet is a paper document in both screen themes. Pair foregrounds
   and surfaces here so shared dark table/hover rules cannot split the pair. */
html #packet,
html #packet :is(table,thead,tbody,tfoot,tr,td,th){
  background:#fff!important;
  color:#182b3c!important;
  -webkit-text-fill-color:#182b3c!important;
}
html #packet :is(th,td){border-color:#91a3af!important}
html #packet thead th{background:#e9eff4!important;color:#142e42!important;-webkit-text-fill-color:#142e42!important}
html #packet tbody tr:nth-child(even) td{background:#f3f6f9!important}
html #packet :is(p,li,small,span,strong,b,em){color:#182b3c!important;-webkit-text-fill-color:#182b3c!important}
html #packet :is(h1,h2,h3){color:#183e58!important;-webkit-text-fill-color:#183e58!important}
html #packet a,html #packet a:visited{color:#145176!important;-webkit-text-fill-color:#145176!important;text-decoration:underline}
@media print{
  html #packet tbody tr:nth-child(even) td{background:#fff!important}
  html #packet :is(table,th,td){print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
