/* 납기 관리 본문은 업무 원장의 공통 격자·헤더 스타일을 사용한다. */
.pd-error{background:#fef2f2;color:var(--bad);padding:10px 14px;border:1px solid #fecaca;border-radius:8px;margin-bottom:12px;font-size:13px}
#page-purchase-delivery{height:calc(100dvh - 40px);overflow:hidden;min-height:0}
#page-purchase-delivery:not(.hidden){display:flex;flex-direction:column}
#page-purchase-delivery .page-head,#purchaseDeliveryError,#purchaseDeliveryPager,.pd-selection-toolbar{flex:0 0 auto}
.pd-selection-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.pd-selection-toolbar .hint{margin:0;font-size:12px}
#purchaseDeliveryWrap{flex:1 1 auto;min-height:120px;max-height:none;overflow:auto;overscroll-behavior:contain;position:relative;margin-bottom:5px}
#purchaseDeliveryTbl{table-layout:fixed}
#purchaseDeliveryTbl thead th{position:sticky;top:0;z-index:2;white-space:normal;overflow-wrap:anywhere}
#purchaseDeliveryTbl td{font-size:12px;vertical-align:middle;height:22px;padding:2px 4px!important;line-height:1.15}
#purchaseDeliveryTbl .pd-selection-cell{text-align:center;padding:4px!important}
#purchaseDeliveryTbl .pd-selection-cell input[type="checkbox"]{width:14px;height:14px;min-width:14px;margin:0;vertical-align:middle;cursor:pointer;accent-color:var(--brand,#2563eb)}
#purchaseDeliveryTbl .pd-selection-cell input:disabled{cursor:default}
#purchaseDeliveryTbl tr.pd-selected .pd-selection-cell{background:#dbeafe}
#purchaseDeliveryTbl .pd-due-cell{overflow:visible}
#purchaseDeliveryTbl [data-due-id]{width:132px;height:20px;box-sizing:border-box;font-size:12px;padding:2px 4px;line-height:1.1}
.pd-due-value{font-size:12px}
#purchaseDeliveryTbl .pd-empty{text-align:center;padding:30px 18px!important;white-space:normal!important;color:var(--sub);line-height:1.8}
.pd-empty strong{display:block;color:var(--txt);margin-bottom:4px;font-size:14px}
#purchaseDeliveryTbl .pd-saving td{opacity:.6;pointer-events:none}
#purchaseDeliveryPager{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:8px 0}
#purchaseDeliveryPager .hint{margin:0;font-size:12px}
@media(max-width:800px){#page-purchase-delivery{height:calc(100dvh - 20px)}}

/* 구매마감대기 전체의 SPLR 이름 버튼: 표 영역을 가리지 않고 많은 이름도 조회 가능. */
.pd-supplier-toolbar{display:flex;align-items:flex-start;gap:8px;flex:0 0 auto;margin:0 0 8px}
.pd-supplier-toolbar>.hint{margin:4px 0 0;min-width:36px}
.pd-supplier-buttons{display:flex;gap:6px;flex-wrap:wrap;max-height:104px;overflow-y:auto;min-width:0;padding:1px 2px}
.pd-supplier-button{white-space:nowrap;flex:0 0 auto}
.pd-supplier-button.active{background:var(--pri);border-color:var(--pri);color:#fff}
.pd-supplier-button[aria-pressed="true"]:focus-visible{outline:2px solid var(--pri2);outline-offset:2px}
