
.orders-toolbar,.orders-batch,.orders-pagination{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:20px}.orders-toolbar .field{margin:0;min-width:220px}.orders-toolbar .input-wrap{min-width:220px;flex:1;max-width:420px}.orders-admin-note,[data-orders-message]{margin:0 20px 16px}.orders-pagination{justify-content:flex-end;border-top:1px solid var(--border)}.orders-component{margin-bottom:24px;overflow:hidden}.orders-component input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary)}.orders-component td small{display:block;color:var(--muted);max-width:260px;white-space:normal}.orders-component [role=status]{color:#8f5b00}.orders-component button[disabled]{opacity:.5}@media(max-width:600px){.orders-toolbar,.orders-batch,.orders-pagination{padding:16px}.orders-toolbar .field,.orders-toolbar .input-wrap{min-width:0;width:100%;max-width:none}.orders-batch .btn{width:100%;white-space:normal}}
.staff-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.staff-setting{display:flex;flex-direction:column;gap:14px;padding:28px;color:var(--text);text-decoration:none}.staff-setting:hover{outline:2px solid var(--primary)}.staff-setting h2,.staff-setting p{margin:0}.staff-setting p{color:var(--muted);line-height:1.6}.staff-setting>span:last-child{display:flex;align-items:center;gap:8px;color:var(--primary);margin-top:auto}.staff-chart{padding:24px;margin:24px 0}.staff-bars{display:flex;align-items:flex-end;gap:5px;height:210px;overflow-x:auto;padding-top:20px}.staff-bar-column{flex:1;min-width:16px;text-align:center;display:flex;flex-direction:column;justify-content:flex-end;gap:7px}.staff-bar{background:var(--primary);border-radius:5px 5px 0 0}.staff-bar-column small,.staff-bar-value{font-size:10px;color:var(--muted)}@media(max-width:850px){.staff-settings-grid{grid-template-columns:1fr}.staff-setting{padding:22px}}

.staff-stat-copy .stat-label{display:block;margin-bottom:8px}.staff-stat-copy .stat-value{display:block}
.orders-component{padding:0}.orders-toolbar{display:grid;grid-template-columns:minmax(220px,280px) minmax(240px,420px);justify-content:space-between;align-items:end;padding:24px;gap:24px}.orders-toolbar .field{min-width:0;margin:0}.orders-toolbar .orders-search{width:100%;margin-left:auto}.orders-toolbar .orders-search .input-wrap{display:block;width:100%;min-width:0;max-width:none}.orders-toolbar .input-wrap .input{padding-left:42px;width:100%}.orders-batch{padding:0 24px 20px;justify-content:space-between;border-bottom:1px solid var(--border)}.orders-batch-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.orders-batch [data-selected-count]{color:var(--muted);font-size:13px}.orders-feedback:empty{display:none}.orders-feedback{padding:14px 24px;background:var(--primary-soft);margin:0;color:var(--text);font-size:13px}.orders-select{width:48px}.order-number{font-weight:650;color:var(--primary)}.order-store-name{display:block;max-width:250px;white-space:normal;overflow-wrap:anywhere;line-height:1.45}.order-estimate-state{display:block;max-width:280px;white-space:normal;line-height:1.5}.order-calculation-dialog{width:min(1080px,calc(100vw - 32px));max-width:1080px}.order-calculation-body{padding:24px}.order-calculation-body>.form-note{margin:0 0 20px}.order-calculation-dialog>footer{padding:20px 24px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:12px}.orders-component .data-table td{vertical-align:middle}.orders-component .data-table th{white-space:nowrap}.orders-component .orders-pagination{margin:0;padding:16px 24px}@media(max-width:700px){.orders-toolbar{grid-template-columns:1fr;padding:18px;gap:14px}.orders-toolbar .orders-search{margin:0}.orders-batch{padding:0 18px 18px;gap:12px}.orders-batch-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.orders-batch-actions .btn{width:auto;font-size:12px;padding:10px;white-space:normal}.order-calculation-body{padding:16px}.order-calculation-dialog>footer .btn{white-space:normal}}
.orders-component .data-table{min-width:1000px}.orders-component .order-store-name{min-width:180px}.orders-component .orders-pagination{flex-wrap:nowrap;gap:8px}.orders-component .orders-pagination .btn{width:auto;min-width:0;padding:8px 12px}@media(max-width:700px){.orders-component .orders-pagination{padding:12px 16px;font-size:12px}.orders-component .orders-pagination .btn{font-size:12px;padding:8px}}
.order-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.order-mapping-link{font-size:12px;color:var(--primary);text-decoration:none}.order-mapping-link:hover{text-decoration:underline}.order-calculation-dialog .form-error:empty{display:none}

.order-estimates{display:grid;gap:12px}
.order-estimate{min-width:0;padding:16px;border:1px solid var(--border);border-radius:12px}
.order-estimate h3{margin:0 0 12px;font-size:1rem}
.order-estimate dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.order-estimate dt{font-size:.75rem;color:var(--muted)}
.order-estimate dd{margin:4px 0 0;font-weight:650;overflow-wrap:anywhere}
.order-estimate-state{max-width:none;margin:12px 0 0;color:var(--muted);overflow-wrap:anywhere}
.order-summary{margin-top:16px;padding:16px;border-radius:12px;background:var(--primary-soft)}
.order-summary h3{margin:0 0 12px;font-size:1rem}
.order-summary dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.order-summary dt{font-size:.75rem;color:var(--muted)}
.order-summary dd{margin:4px 0 0;font-weight:650;overflow-wrap:anywhere}
.order-calculation-dialog [hidden]{display:none}
.recipient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
.recipient-grid .field{min-width:0;margin:0}
.recipient-grid .input{width:100%;min-width:0}
@media(max-width:600px){.recipient-grid{grid-template-columns:1fr}}

.bank-copy-row{display:flex;gap:8px;align-items:center}.bank-copy-row .input{min-width:0;flex:1}.bank-fields{margin:16px 0}

.balance-section-title{margin:32px 0 16px}.topup-dialog{width:min(1100px,calc(100vw - 32px));max-width:1100px}.topup-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:32px}.topup-layout section{min-width:0}.topup-request{padding-left:24px;border-left:1px solid var(--border)}@media(max-width:750px){.topup-layout{grid-template-columns:1fr;gap:20px}.topup-request{padding-left:0;border-left:0}}

.topup-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.topup-row-actions .btn{white-space:nowrap}

/* The list scrolls independently; summary, progress and actions stay visible. */
.order-calculation-dialog.has-estimates[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}
.order-calculation-dialog.has-estimates>header,.order-calculation-dialog.has-estimates>footer{flex-shrink:0}
.order-calculation-dialog.has-estimates>footer{margin-top:0}
.has-estimates .order-calculation-body{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.has-estimates .order-estimates{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable;align-content:start;padding-right:4px}
.has-estimates .order-summary,.has-estimates [data-progress],.has-estimates [data-error]{flex-shrink:0}
.order-price-skeleton{display:block;width:min(100%,100px);height:20px}
.order-estimate-loading{display:flex;align-items:center;gap:8px}
.order-estimate-loading .spinner{width:16px;height:16px;color:var(--primary)}
@media(max-width:600px){.has-estimates .order-summary{padding:12px}.has-estimates .order-summary dl{gap:8px}.order-calculation-dialog.has-estimates>header{padding:16px}}
@media(prefers-reduced-motion:reduce){.has-estimates .skeleton{animation:none}}

.order-summary .skeleton{display:inline-block;width:min(74px,100%);height:1em;vertical-align:middle}

.purchase-panel .data-table{min-width:760px}
.purchase-panel .data-table th,.purchase-panel .data-table td{padding:16px 20px}
.purchase-panel .orders-batch{justify-content:space-between}
.purchase-note{margin:0;padding:12px 24px}
.order-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px}
.order-detail-grid .workspace-card{margin-top:0}
.order-detail-grid form .field{margin:0}
.order-product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:24px;padding:20px 0;border-top:1px solid var(--border)}
.order-product-source{display:flex;align-items:center;gap:14px}
.order-product-source img{width:80px;height:80px;object-fit:contain;border-radius:12px;background:var(--primary-soft)}
.order-product small,.order-product-source span{display:block;color:var(--muted)}
.order-equivalents{list-style:none;padding:0;margin:0}
.order-equivalents li,.order-mapping-total{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
.order-equivalents strong{display:block}
@media(max-width:650px){.order-product{grid-template-columns:1fr}}
