#purchase-orders-panel{min-width:0;margin-bottom:0}
.purchase-orders-heading{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,420px) auto;align-items:center;gap:8px 24px;padding:16px 18px;border-bottom:1px solid var(--line)}
.purchase-orders-heading h2{font-size:16px;margin:0}.purchase-orders-heading p{grid-column:3;grid-row:1;justify-self:end;text-align:right;max-width:100%;overflow-wrap:anywhere;font-size:12px;margin:0}
.purchase-orders-heading>#purchase-orders-refresh{grid-column:4;grid-row:1}
.purchase-orders-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0}.purchase-orders-tools>input{width:360px;max-width:100%}.purchase-orders-tools>span:empty{display:none}
#purchase-orders-panel input,#purchase-orders-panel select,.purchase-order-fields input{border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);padding:8px;font:inherit}
#purchase-orders-feedback{padding:0 18px;margin:0;font-size:12px;color:#a24427}
.purchase-orders-scroll{flex:1 1 auto;min-height:0;overflow:auto;max-width:100%}
.purchase-orders-table{border-spacing:0;width:100%;min-width:1640px;table-layout:fixed;font-size:12px}
.purchase-orders-table th{position:sticky;top:0;z-index:1;text-align:left;background:#f2f8f6;color:#486c68;font-weight:600}
.purchase-orders-table th,.purchase-orders-table td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.order-column-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:24px}
.order-column-heading>span{white-space:nowrap}.purchase-orders-table th:nth-child(9){width:125px}
.order-filter-button{display:inline-flex;align-items:center;justify-content:center;width:22px;height:24px;flex:0 0 22px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#8a9eaa;cursor:pointer}
.order-filter-button:hover{background:#e5f1ed;color:#26776c}.order-filter-button.active{color:#008d85;background:#dff2ec;border-color:#c2e6dc}.order-filter-button:focus-visible{outline:2px solid #53b6aa;outline-offset:1px}
.order-filter-popover{position:fixed;inset:auto;margin:0;width:320px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:14px;border:1px solid #d9e7e2;border-radius:12px;background:#fff;color:#284555;box-shadow:0 12px 36px #183f3a24;font-size:13px;overflow:auto}
.order-filter-popover::backdrop{background:transparent}
.order-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.order-filter-heading strong{font-weight:600}.order-filter-heading button{width:24px;height:24px;border-radius:6px;color:#8498a4;font-size:20px}.order-filter-heading button:hover{background:#f0f5f4}
#order-filter-search{display:block;width:100%;border:1px solid #dce8e4;border-radius:7px;padding:9px 11px;color:inherit;background:#fafcfb;font:inherit;outline:none}#order-filter-search:focus{border-color:#6bbbad;box-shadow:0 0 0 2px #e4f4ef}
.order-filter-actions{display:flex;align-items:center;gap:14px;margin:12px 0;font-size:12px}.order-filter-actions button{color:#00857c;cursor:pointer}.order-filter-actions button:hover{text-decoration:underline}#order-filter-count{margin-left:auto;color:#7b909a}
.order-filter-options{overflow:auto;max-height:min(280px,40vh);min-height:40px;overscroll-behavior:contain;border-top:1px solid #edf2f0;border-bottom:1px solid #edf2f0;padding:4px 0}
.order-filter-option{display:flex;align-items:center;gap:9px;padding:8px 6px;border-radius:6px;cursor:pointer;font-weight:400;line-height:1.45}.order-filter-option:hover{background:#f2f8f6}.order-filter-option input{width:15px;height:15px;margin:0;accent-color:#008d85;flex:none}.order-filter-option>span{overflow-wrap:anywhere;min-width:0}.order-filter-option small{margin-left:auto;color:#91a1aa;font-size:11px;flex:none}
#order-filter-note{font-size:11px;color:#879ba5;margin:10px 0}.order-filter-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.order-filter-empty{padding:18px 8px;text-align:center;color:#879ba5}#order-filter-more{display:block;width:100%;padding:10px;text-align:center;color:#00857c;font-size:12px}
.purchase-orders-table th:first-child{width:160px}.purchase-orders-table th:nth-child(2){width:210px}.purchase-orders-table th:nth-child(12){width:230px}.purchase-orders-table th:last-child{width:112px}
.purchase-orders-table td.numeric{text-align:right;font-variant-numeric:tabular-nums}.purchase-orders-table tbody tr:hover{background:#fafdfc}
.purchase-order-history{padding:0;margin:0;list-style:none}.purchase-order-history li{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-variant-numeric:tabular-nums}.purchase-order-history strong{color:#008d85}.purchase-order-history time{white-space:nowrap;font-size:11px;color:#647d8e}
.purchase-orders-table summary{font-size:11px;color:#008d85;margin-top:5px;cursor:pointer}.purchase-orders-empty{text-align:center;padding:40px!important;color:#647d8e}
.purchase-orders-note{margin:0;padding:10px 18px;font-size:11px;color:#647d8e;background:#fafcfc;border-top:1px solid var(--line)}
#purchase-order-dialog{width:min(640px,94vw)}.purchase-order-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.purchase-order-fields label{display:flex;flex-direction:column;gap:8px;font-size:13px}.purchase-order-fields input{width:100%;min-width:0}
#purchase-order-history{margin-top:20px}#purchase-order-history h3{font-size:13px}#purchase-order-error{color:#a24427;font-size:12px}#purchase-order-product{overflow-wrap:anywhere}
@media(min-width:900px){.purchase-orders-table th:first-child,.purchase-orders-table td:first-child{position:sticky;left:0}.purchase-orders-table th:nth-child(2),.purchase-orders-table td:nth-child(2){position:sticky;left:160px}.purchase-orders-table td:nth-child(-n+2){background:white;z-index:1}.purchase-orders-table th:nth-child(-n+2){z-index:3}.purchase-orders-table th:last-child,.purchase-orders-table td:last-child{position:sticky;right:0}.purchase-orders-table td:last-child{background:white;z-index:1}.purchase-orders-table th:last-child{z-index:3}}
@media(max-width:600px){.purchase-order-fields{grid-template-columns:1fr}.purchase-orders-heading{align-items:flex-start}.purchase-orders-tools{gap:10px}}
@media(max-width:1200px){.purchase-orders-heading{grid-template-columns:auto minmax(0,1fr) auto}.purchase-orders-heading>#purchase-orders-refresh{grid-column:3}.purchase-orders-heading p{grid-column:1/-1;grid-row:2}}
@media(max-width:900px){.purchase-orders-heading{grid-template-columns:minmax(0,1fr) auto}.purchase-orders-heading>#purchase-orders-refresh{grid-column:2}.purchase-orders-tools{grid-column:1/-1;grid-row:2}.purchase-orders-heading p{grid-row:3}}
