.purchase-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:16px 0;border:1px solid #dde7e4;border-radius:14px;background:#fff;overflow:hidden}
.purchase-metrics>div{padding:16px 18px;border-right:1px solid #e8eeec}.purchase-metrics>div:last-child{border-right:0}
.purchase-metrics small{display:block;color:#6b7d7a;font-size:12px}.purchase-metrics b{display:block;margin-top:7px;font-size:22px;color:#193b37}
.purchase-workspace{border:1px solid #dde7e4;border-radius:14px;background:#fff;overflow:hidden}
.purchase-view-tabs{display:flex;gap:4px;padding:12px 14px 0;border-bottom:1px solid #e8eeec}
.purchase-view-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:9px 16px;color:#657773;cursor:pointer;font:inherit}
.purchase-view-tabs button.active{border-bottom-color:#246bfd;color:#174fe3;font-weight:700}
.purchase-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:14px}
.purchase-toolbar input,.purchase-toolbar select{height:36px;border:1px solid #dfe7e5;border-radius:8px;background:#fff;padding:0 10px;color:#233c38;font:inherit;font-size:13px}
.purchase-toolbar input{flex:2;min-width:250px}.purchase-toolbar select{min-width:130px;flex:1}.purchase-toolbar button{height:36px}
.purchase-list-count{padding:0 15px 11px;color:#637773;font-size:12px}
.purchase-table-wrap{overflow:auto;border-top:1px solid #e8eeec}
.purchase-table{width:100%;min-width:1040px;border-collapse:collapse}
.purchase-table th{padding:11px 12px;background:#f6f9f8;color:#657773;text-align:left;font-size:12px;white-space:nowrap}
.purchase-table td{padding:13px 12px;border-top:1px solid #edf1f0;vertical-align:middle;color:#263e39;font-size:13px}
.purchase-table tbody tr:hover{background:#f9fcfb}.purchase-table td small{display:block;margin-top:4px;color:#80908c;font-size:11px}.purchase-table .num{text-align:right;white-space:nowrap}
.purchase-link{border:0;background:none;padding:0;color:#1765ca;font:inherit;font-weight:600;cursor:pointer;text-align:left}.purchase-link:hover{text-decoration:underline}
.purchase-badge{display:inline-block;border-radius:99px;background:#fff2e3;color:#8e601b;padding:4px 9px;font-size:12px;white-space:nowrap}
.purchase-badge.is-paid{background:#e5f7ed;color:#247251}.purchase-badge.is-partial{background:#edf4ff;color:#3262a9}.purchase-badge.is-void{background:#fbeaea;color:#b04f4f}
.purchase-line-actions{display:flex;gap:5px;white-space:nowrap}.purchase-line-actions button{padding:6px 8px;font-size:12px}
.purchase-empty{padding:40px 20px!important;text-align:center;color:#82938f!important}
.purchase-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 14px 14px;padding:14px;border:1px solid #dce9e8;border-radius:10px;background:#f7fbfa}
.purchase-detail-head>div{display:flex;flex-direction:column;gap:5px}.purchase-detail-head b{font-size:16px}.purchase-detail-head strong{font-size:18px}.purchase-detail-head span,.purchase-detail-tip{color:#6f817c;font-size:12px}
.purchase-detail-tip{margin:0 15px 14px}.purchase-void-row{opacity:.65}.purchase-order-picker label{display:flex;flex-direction:column;gap:7px;font-weight:600}.purchase-order-picker [hidden]{display:none}.purchase-order-picker select{width:100%;min-height:40px;padding:0 10px;border:1px solid #dce5e2;border-radius:8px}.purchase-order-picker p,.purchase-help{color:#617672;line-height:1.7}
@media(max-width:900px){.purchase-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-metrics>div:nth-child(2){border-right:0}.purchase-metrics>div:nth-child(-n+2){border-bottom:1px solid #e8eeec}.purchase-toolbar input{flex-basis:100%}.purchase-detail-head{flex-wrap:wrap}}
@media(max-width:760px){
  #content .purchase-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  #content .purchase-toolbar>#purchaseQueryV5,#content .purchase-toolbar>#purchaseClearV5{grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box}
  #content .purchase-toolbar>select{width:100%;min-width:0;box-sizing:border-box}
  #content .purchase-toolbar>label{width:100%;min-width:0;display:flex;align-items:center;gap:5px}
  #content .purchase-toolbar>label input[type=date]{width:100%;min-width:0;flex:1;box-sizing:border-box}
}
.purchase-selection-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:10px 14px;border-top:1px solid #e8eeec;background:#fbfcfc;color:#526761;font-size:12px}.purchase-selection-bar label{display:flex;align-items:center;gap:7px;font-weight:600}.purchase-selection-bar input,.purchase-check-cell input{width:15px;height:15px;accent-color:#246bfd;cursor:pointer}.purchase-selection-bar>span{color:#2465c8;font-weight:700}.purchase-selection-bar small{margin-left:auto;color:#85938f}.purchase-selection-bar button{height:30px;padding:4px 9px;font-size:12px}.purchase-check-cell{width:42px;text-align:center!important}.purchase-export-help{margin:0 0 14px;color:#667973;font-size:13px;line-height:1.6}.purchase-export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.purchase-export-grid label{display:flex;align-items:center;gap:8px;min-height:36px;padding:5px 8px;border:1px solid #e5ece9;border-radius:7px;color:#334b45;font-size:12px;cursor:pointer}.purchase-export-grid label:has(input:checked){border-color:#a9c4f5;background:#f4f8ff}.purchase-export-grid input{accent-color:#246bfd}
@media(max-width:700px){.purchase-selection-bar small{flex-basis:100%;margin-left:0}.purchase-export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sales-draft-streamlined .draft-extras-toggle{display:block;width:100%;margin:10px 0;padding:13px 16px;border:1px solid #d9e7e3;border-radius:10px;background:#f5faf8;color:#236451;text-align:left;font:inherit;font-weight:700;cursor:pointer}
.sales-draft-streamlined .draft-extras-toggle:hover{background:#eaf5f1}
.sales-draft-streamlined.draft-extras-collapsed .shipping-draft-section,.sales-draft-streamlined.draft-extras-collapsed .production-requirement-section{display:none}
.payment-draft-section.is-unpaid .payment-actual-field{display:none!important}
.sales-draft-streamlined .sales-modal-actions{position:sticky;bottom:0;z-index:12;margin-top:12px;border-top:1px solid #dce8e4;background:rgba(255,255,255,.98);box-shadow:0 -8px 24px rgba(25,60,55,.07)}
.order-next-actions{align-items:center;gap:18px}.order-next-copy{display:flex;flex-direction:column;gap:4px;min-width:260px}.order-next-copy small{color:#617976}.order-next-copy b{font-size:16px}.order-next-copy span{font-size:12px;color:#738782}.order-next-buttons{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}.order-next-buttons button{white-space:nowrap}
@media(max-width:900px){.order-next-actions{align-items:flex-start;flex-direction:column}.order-next-buttons{justify-content:flex-start;margin-left:0}}
.purchase-print-preview{max-height:65vh;overflow:auto;padding:12px;background:#eef2f6}.purchase-print-sheet{background:#fff;color:#1e293b;padding:24px;margin-bottom:16px;box-shadow:0 2px 12px #1e293b18}.purchase-print-brand,.purchase-print-meta,.purchase-print-sign{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.purchase-print-brand{align-items:end;border-bottom:2px solid #1e3a5f;padding-bottom:12px;margin-bottom:14px}.purchase-print-brand strong{display:block;font-size:20px}.purchase-print-brand small{display:block;color:#64748b;margin-top:4px}.purchase-print-meta{margin-bottom:14px;font-size:12px}.purchase-print-meta span{min-width:29%}.purchase-print-sheet table{width:100%;border-collapse:collapse;font-size:12px}.purchase-print-sheet th,.purchase-print-sheet td{border:1px solid #bbc5d2;padding:8px;overflow-wrap:anywhere}.purchase-print-sheet th{background:#f1f5f9}.purchase-print-sheet .print-total{text-align:right;font-weight:700;font-size:16px}.purchase-print-note{min-height:30px;border-top:1px solid #d7dde5;padding-top:10px}.purchase-print-sign{margin-top:36px;font-size:12px}
.purchase-document-dialog{width:min(1100px,96vw)}.purchase-document-dialog .workspace-body{padding:12px}.purchase-document-dialog .purchase-print-preview{max-height:70vh;overflow-y:auto;overflow-x:hidden}.purchase-document-dialog .purchase-print-sheet{margin-bottom:0;min-width:0}.purchase-document-dialog .purchase-print-sheet table{table-layout:fixed}.purchase-document-dialog .purchase-print-sheet th,.purchase-document-dialog .purchase-print-sheet td{word-break:break-word}@media(max-width:760px){.purchase-document-dialog{width:100%}.purchase-document-dialog .purchase-print-preview{overflow-x:auto}.purchase-document-dialog .purchase-print-sheet{min-width:680px}}
