:root{font-family:system-ui,sans-serif;color:#123440;background:#f3f7f7;line-height:1.55}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{max-width:820px;margin:30px auto;padding:0 22px 50px}header{display:flex;justify-content:space-between;align-items:center}header img{width:255px;max-width:65%;height:auto}h1{font-size:32px;margin-bottom:0}h2{font-size:21px;margin-top:0}.intro,.hint,footer{color:#52666d}.hint{font-size:14px}section{background:white;border:1px solid #dce5e7;border-radius:14px;padding:24px;margin:20px 0}.routing{display:flex;gap:40px;background:#e8f6f2}.routing p{margin:0}label{display:block;font-weight:600;margin:12px 0}input,select,textarea{display:block;width:100%;font:inherit;border:1px solid #aabfc5;border-radius:7px;padding:10px;background:white;color:#123440;margin-top:5px}textarea{resize:vertical}button{font:inherit;background:#006b60;border:0;border-radius:7px;color:white;padding:10px 17px;cursor:pointer}button:disabled{opacity:.55;cursor:wait}button.secondary,header button{background:#e5ecee;color:#123440}a{color:#006b60;overflow-wrap:anywhere}.row{display:flex;gap:12px;align-items:end}.row label{flex:1;margin-bottom:0}.check{display:flex;gap:10px;align-items:center}.check input{width:auto;margin:0}details{margin-top:20px}summary{cursor:pointer;font-weight:600}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7f7;border-radius:8px;padding:15px;font:inherit;font-size:14px}.sender{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0f1;padding:12px 0}.sender span{overflow-wrap:anywhere}.sender small{display:block;color:#52666d}#notice:not(:empty){position:sticky;top:10px;background:#e8f6f2;padding:12px;border:1px solid #9bbfb5;border-radius:7px;z-index:2}#notice.error{background:#fff0ed;border-color:#daa392;color:#862c21}footer{font-size:14px}@media(max-width:570px){.routing,.row{display:block}.routing p+p{margin-top:14px}.row button{margin-top:12px}section{padding:18px}}

/* IntakeBot order queue only. */
.review-main{max-width:1200px}.review-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:28px;align-items:start}.queue{position:sticky;top:20px;background:white;border:1px solid #dce5e7;border-radius:14px;padding:20px}.queue h2{margin:0}.queue-list{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow:auto}.queue-order{display:block;text-decoration:none;padding:12px;border:1px solid #dce5e7;border-radius:8px;color:#123440}.queue-order[aria-current="true"]{background:#e8f6f2;border-color:#006b60}.queue-order strong,.queue-order small{display:block}.queue-order small{color:#52666d}.queue-order:focus-visible{outline:3px solid #006b60;outline-offset:2px}#detail{min-width:0}@media(max-width:760px){.review-layout{grid-template-columns:1fr}.queue{position:static}.queue-list{max-height:260px}}
.ai-warning{color:#b42318;font-weight:700}
.issue-group{margin-top:24px}.issue-group h3{font-size:17px;margin:0 0 6px}.issue-group ul{margin-top:0}
.delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.delivery-grid label{margin:0}.delivery-grid input{width:100%;box-sizing:border-box}@media(max-width:720px){.delivery-grid{grid-template-columns:1fr}}
.order-heading{display:flex;align-items:baseline;justify-content:space-between;gap:24px}.order-heading h2{margin-bottom:8px}.order-heading #poNumber{white-space:nowrap;text-align:right}
.summary-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0 22px}.summary-counts div{background:#f3f7f7;border-radius:9px;padding:14px}.summary-counts strong,.summary-counts span{display:block}.summary-counts strong{font-size:24px;color:#073c4e}.summary-counts span{font-size:13px;color:#52666d}.summary-table-wrap{overflow-x:auto}.order-summary-table{width:100%;border-collapse:collapse;font-size:14px}.order-summary-table th,.order-summary-table td{padding:12px 10px;border-bottom:1px solid #dce5e7;text-align:left;vertical-align:top}.order-summary-table thead th{font-size:12px;color:#52666d}.order-summary-table th:nth-child(n+4),.order-summary-table td:nth-child(n+4){text-align:right;white-space:nowrap}.order-summary-table tfoot th{text-align:right}.order-summary-table tfoot tr:last-child{font-weight:700}@media(max-width:720px){.summary-counts{grid-template-columns:1fr}.order-summary-table thead{display:none}.order-summary-table,.order-summary-table tbody,.order-summary-table tfoot,.order-summary-table tr,.order-summary-table td,.order-summary-table th{display:block;width:100%}.order-summary-table tr{border-bottom:1px solid #b9cdd2;padding:8px 0}.order-summary-table td,.order-summary-table th{border:0;padding:5px 0;text-align:left!important;white-space:normal!important}.order-summary-table tbody td:before,.order-summary-table tfoot td:before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:#52666d}.order-summary-table tfoot th{padding-top:12px}}
.decision-actions{display:flex;gap:14px;align-items:stretch;flex-wrap:wrap}.decision-actions button{flex:1 1 210px;min-height:48px}.decision-actions button[data-action="confirm_duplicate"]{background:#52666d}.decision-actions button[data-action="wait"]{background:#9a4a22}@media(max-width:720px){.decision-actions{flex-direction:column}.decision-actions button{width:100%;flex-basis:auto}}
