/* Compact till order browser: only the record area scrolls. */
#modal.order-history-dialog{width:min(1320px,97vw);height:min(900px,96dvh);max-height:96dvh;padding:0;overflow:hidden;border:1px solid #a5bad0;border-radius:18px}
#modal.order-history-dialog[open]{display:flex;flex-direction:column}
#modal.order-history-dialog .modal-head{flex:none;padding:16px 22px;gap:14px}
#modal.order-history-dialog .modal-head h2{font-size:25px;margin:0 0 4px}
#modal.order-history-dialog .modal-icon{padding:10px 14px;font-size:24px;border-radius:12px}
#modal.order-history-dialog .modal-head button{min-width:46px;min-height:46px;padding:5px 12px;font-size:28px}
#modal.order-history-dialog .modal-body{display:flex;flex-direction:column;min-height:0;flex:1;max-height:none;overflow:hidden;padding:16px 20px 0;background:#f7faff}
#modal.order-history-dialog .order-history-filters{display:grid;grid-template-columns:minmax(240px,2fr) minmax(130px,1fr) minmax(155px,1fr) auto;gap:12px;align-items:end;flex:none;margin:0}
#modal.order-history-dialog .order-history-filters label{font-size:13px}
#modal.order-history-dialog .order-history-filters input,#modal.order-history-dialog .order-history-filters select{height:44px;min-height:44px;margin-top:5px;border-radius:7px;font-size:15px;padding:8px 10px}
#modal.order-history-dialog #order-clear{height:44px;min-height:44px;font-size:14px;padding:8px 14px}
#order-summary{display:flex;justify-content:space-between;gap:16px;padding:12px 0;font-size:14px;flex:none}
#modal.order-history-dialog #order-results{min-height:0;flex:1;overflow:auto;border:1px solid #cfdeed;border-radius:9px;background:white}
#modal.order-history-dialog table{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse;margin:0;font-size:14px}
#modal.order-history-dialog th{position:sticky;top:0;z-index:1;background:#244b70;color:white;font-size:13px;padding:12px;text-align:left;height:42px}
#modal.order-history-dialog td{padding:10px 12px;height:65px;vertical-align:middle;overflow-wrap:anywhere;border-bottom:1px solid #dce6f0}
#modal.order-history-dialog tr:nth-child(even) td{background:#f3f7fb}#modal.order-history-dialog tr:nth-child(odd) td{background:#fff}
#modal.order-history-dialog th:nth-child(1){width:22%}#modal.order-history-dialog th:nth-child(2){width:19%}#modal.order-history-dialog th:nth-child(3){width:12%}#modal.order-history-dialog th:nth-child(4){width:12%}#modal.order-history-dialog th:nth-child(5){width:11%;text-align:right}#modal.order-history-dialog th:nth-child(6){width:24%}
#modal.order-history-dialog td:nth-child(5){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#modal.order-history-dialog td small{display:block;color:#61788d;margin-top:4px;font-size:12px}
#modal.order-history-dialog .order-row-actions{display:flex;flex-wrap:nowrap;gap:8px;align-items:center}
#modal.order-history-dialog .order-row-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;min-width:0;width:auto;padding:7px 10px;font-size:13px;white-space:nowrap;margin:0}
#modal.order-history-dialog .order-row-actions svg{width:18px;height:18px}
#modal.order-history-dialog .modal-foot{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px;padding:12px 20px;background:#edf4fb}
#modal.order-history-dialog .modal-foot button{min-height:44px;padding:8px 14px;font-size:14px}
.order-paging{display:flex;align-items:center;gap:12px;font-size:13px}.orders-empty{padding:45px 20px;text-align:center;color:#61788d}.orders-empty strong{font-size:18px;color:#244b70}
@media(max-width:800px){#modal.order-history-dialog .order-history-filters{grid-template-columns:1fr 1fr}#modal.order-history-dialog .modal-body{padding:10px 12px 0}#modal.order-history-dialog .modal-foot{padding:10px 12px}.order-paging{gap:5px}#modal.order-history-dialog .modal-foot button{padding:8px;font-size:12px}}

#order-print-status:empty{display:none}#order-print-status{margin:0 0 8px;font-size:13px;color:#16715c;flex:none}.print-status{font-size:13px;flex-basis:100%;margin:0;color:#16715c}#modal.order-history-dialog .tablewrap{overflow:visible;margin:0}
