/* Scoped: the existing cabinet/admin shell owns navigation and typography. */
.batch-orders { min-width:0; }
.batch-orders h1 { margin:20px 0 8px; }
.batch-orders h2 { margin:0 0 20px; font-size:18px; }
.batch-orders .batch-panel { background:var(--surface,#fff);border:1px solid var(--line,#e2ddd6);border-radius:12px;padding:24px;margin:20px 0;min-width:0; }
.batch-orders .batch-layout { display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start; }
.batch-orders .batch-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.batch-orders .field { display:flex;flex-direction:column;gap:8px;min-width:0;margin:0; }
.batch-orders input:not([type=checkbox]),.batch-orders select { box-sizing:border-box;width:100%;min-width:0;min-height:42px;border:1px solid var(--line,#d8d3ce);border-radius:8px;background-color:#fff;padding:10px 12px;font:inherit; }
.batch-orders select:not(.z-select-native) { appearance:none;-webkit-appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23656b75' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 14px center;background-size:16px;background-repeat:no-repeat; }
.batch-orders fieldset { grid-column:1/-1;border:1px solid var(--line,#e2ddd6);border-radius:8px;padding:20px;min-width:0;margin:0; }
.batch-orders legend { padding:0 8px;font-weight:600; }
.batch-orders .batch-form-actions { margin-top:24px;display:flex;gap:12px;flex-wrap:wrap; }
.batch-orders .batch-tabs { display:flex;gap:20px;overflow:auto;border-bottom:1px solid var(--line,#e2ddd6);padding:12px 0; }
.batch-orders .batch-tabs button { display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none;background:none;border:0;padding:8px 0;cursor:pointer;color:inherit; }
.batch-orders .batch-tabs button[aria-pressed=true] { color:#c51708;box-shadow:0 2px #c51708; }
.batch-count { display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:18px;height:18px;font-size:11px;line-height:1;vertical-align:middle; }
.batch-orders .batch-filter-row { display:flex;align-items:end;gap:20px;margin-top:20px; }
.batch-orders .batch-filter-row .field { flex:1; }
.batch-orders .batch-check { display:flex;align-items:center;gap:8px;min-height:42px;white-space:nowrap; }
.batch-orders .batch-product,.batch-orders .batch-product-head { display:grid;grid-template-columns:minmax(0,1fr) 95px 138px;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line,#e2ddd6); }
.batch-orders .batch-product-head { color:var(--muted,#656b75);font-size:12px; }
.batch-orders .batch-product-head button { justify-self:start;background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer; }
.batch-orders .batch-product-title { display:flex;gap:16px;align-items:center;min-width:0; }
.batch-orders .batch-product-title img { flex:none;object-fit:contain; }
.batch-orders td img { display:block;object-fit:contain; }
.batch-orders small { display:block;color:var(--muted,#656b75);margin-top:6px; }
.batch-orders .batch-placeholder { font-size:30px;width:44px;text-align:center;flex:none;color:#8c939d; }
.batch-orders .batch-stepper { display:grid;grid-template-columns:32px minmax(0,1fr) 32px;border:1px solid var(--line,#d8d3ce);border-radius:8px;overflow:hidden; }
.batch-orders .batch-stepper button { border:0;background:#f6f7f9;font-size:18px;cursor:pointer; }
.batch-orders .batch-stepper input { appearance:textfield;border:0;border-radius:0;text-align:center;padding:8px 0; }
.batch-orders .batch-stepper input::-webkit-inner-spin-button { appearance:none; }
.batch-orders .batch-category { font-size:14px;margin:28px 0 0; }
.batch-orders .batch-table-wrap { overflow:auto; }
.batch-orders table { width:100%;border-collapse:collapse;font-size:13px; }
.batch-orders th,.batch-orders td { text-align:left;padding:16px 12px;border-bottom:1px solid var(--line,#e2ddd6); }
.batch-orders th { background:#f8f9fa;white-space:nowrap;font-size:12px; }
.batch-orders .batch-summary { position:sticky;top:24px; }
.batch-orders [data-batch-message]:not(:empty) { padding:16px;background:#fff2df;color:#854600;border-radius:8px;margin:16px 0; }
.batch-orders button:disabled { opacity:.5;cursor:default; }
.batch-orders :focus-visible { outline:2px solid #c51708;outline-offset:3px; }
.batch-orders .batch-documents { padding-left:20px;line-height:2;overflow-wrap:anywhere; }
@media(max-width:960px) { .batch-orders .batch-layout { grid-template-columns:1fr; }.batch-orders .batch-summary { position:static; }.batch-orders .batch-fields { grid-template-columns:1fr; } }
@media(max-width:600px) { .batch-orders .batch-panel { padding:16px; }.batch-orders .batch-filter-row { align-items:stretch;flex-direction:column;gap:10px; }.batch-orders .batch-product,.batch-orders .batch-product-head { grid-template-columns:minmax(0,1fr) 105px;gap:12px; }.batch-orders .batch-product-title { grid-column:1/-1; }.batch-orders .batch-product-head span:last-child { display:none; }.batch-orders .batch-stepper { grid-template-columns:28px minmax(0,1fr) 28px; }.batch-orders fieldset { padding:12px; } }
/* Keep the accepted cart hierarchy: rows, separated total, balance notice, CTA. */
.batch-orders .batch-summary h2 { margin-bottom:20px; }
.batch-orders .batch-sumrow { display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:14px 0;font-size:13px; }
.batch-orders .batch-sumrow strong { white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right; }
.batch-orders .batch-total { flex-wrap:wrap;border-top:1px solid var(--line,#e2ddd6);padding-top:18px;margin-top:20px;margin-bottom:20px;font-size:16px; }
.batch-orders .batch-total strong { margin-inline-start:auto;font-size:24px;line-height:1.2;letter-spacing:-.3px; }
.batch-orders .batch-balance-state { margin:18px 0 0;padding:14px;border-radius:8px;font-size:12px;line-height:1.5; }
.batch-orders .batch-balance-state--warn { background:var(--warn-soft,#fff4e2);color:#885018; }
.batch-orders .batch-balance-state--good { background:var(--ok-soft,#edf7f1);color:#24694a; }
.batch-orders .batch-summary .button { display:flex;width:100%;margin-top:16px;box-sizing:border-box; }
.batch-orders .batch-summary-hint { margin:16px 0 0;color:var(--muted,#656b75);font-size:12px;line-height:1.5; }

.batch-orders fieldset.batch-selection { border:0;padding:0;margin:0; }
.batch-orders .batch-draft-status { margin-top:20px;font-size:12px;line-height:1.5;color:var(--muted,#656b75);overflow-wrap:anywhere; }
.batch-orders .batch-drafts { display:grid;gap:16px; }
.batch-orders .batch-draft-card,.batch-orders .batch-unavailable { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--line,#e2ddd6);border-radius:8px; }
.batch-orders .batch-draft-card>div:first-child { min-width:0;overflow-wrap:anywhere; }
.batch-orders .batch-draft-actions { display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0; }
.batch-orders .batch-unavailable { margin-top:16px;background:#fff4e2; }
@media(max-width:600px) { .batch-orders .batch-draft-card,.batch-orders .batch-unavailable { align-items:stretch;flex-direction:column; } }

.batch-orders .batch-payment-methods { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0; }
.batch-orders .batch-payment-methods .button { padding:10px 8px;margin:0;font-size:12px; }
.batch-orders .batch-payment-methods [aria-pressed=true] { border-color:#c51708;background:#fff0ed;color:#b8190c; }
.batch-orders [data-batch-form^=invoice] { margin-top:24px;padding-top:20px;border-top:1px solid var(--line,#e2ddd6); }
.batch-orders fieldset > p { margin:0 0 12px; }
.batch-orders .batch-fields > p { grid-column:1/-1;margin:0; }
