.od-tools .od-batch{max-width:none}
.od-tools .od-batch__form{display:grid;gap:14px}

.od-tools .od-batch__step{min-width:0;padding-top:12px;border-top:1px solid #e7ece9}
.od-tools .od-batch__step:first-child{padding-top:0;border-top:0}
.od-tools .od-batch__step-head{display:flex;align-items:flex-start;gap:9px;margin:0 0 9px}
.od-tools .od-batch__step-head--rows{align-items:center}
.od-tools .od-batch__step-number{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:50%;background:var(--od-color-brand-soft,#dcebe2);color:var(--od-color-brand,#0f4a35);font-size:.76rem;font-weight:800;line-height:1}
.od-tools .od-batch__step-head>div{display:grid;gap:1px;min-width:0}
.od-tools .od-batch__step-head strong{color:var(--od-color-text,#17211c);font-size:.94rem;line-height:1.25;font-weight:750}
.od-tools .od-batch__step-head small{color:var(--od-color-text-muted,#66716b);font-size:.78rem;line-height:1.35;font-weight:500}

.od-tools .od-batch__constants{display:flex;flex-wrap:wrap;gap:7px;margin-left:32px}
.od-tools .od-batch__constants label{display:flex;align-items:center;gap:7px;min-height:34px;padding:5px 10px;border:1px solid var(--od-color-border,#dce4df);border-radius:999px;background:#fff;color:#39423c;font-size:.8rem;font-weight:650;cursor:pointer}
.od-tools .od-batch__constants label:has(input:checked){border-color:#9fc1aa;background:#f1f7f3;color:var(--od-color-brand,#0f4a35)}
.od-tools .od-batch__constants input{accent-color:var(--od-color-brand,#0f4a35);margin:0}

.od-tools .od-batch__add,.od-tools .od-batch__clear,.od-tools .od-batch__share-actions button{min-height:34px;padding:5px 11px;border:1px solid #bad1c2;border-radius:var(--od-radius-control,6px);background:#fff;color:var(--od-color-brand,#0f4a35);font-size:.8rem;font-weight:750;cursor:pointer}
.od-tools .od-batch__add{margin-left:auto;white-space:nowrap}
.od-tools .od-batch__add:hover,.od-tools .od-batch__add:focus-visible,.od-tools .od-batch__clear:hover,.od-tools .od-batch__clear:focus-visible,.od-tools .od-batch__share-actions button:hover,.od-tools .od-batch__share-actions button:focus-visible{background:#f3f8f4;border-color:#8fb39d}
.od-tools .od-batch__add:disabled{opacity:.45;cursor:not-allowed}

.od-tools .od-batch__live{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 12px;margin:0 0 9px 32px;padding:8px 11px;border:1px solid #d7e7dc;border-left:3px solid var(--od-color-brand,#0f4a35);border-radius:0 7px 7px 0;background:#f6faf7;color:#425048}
.od-tools .od-batch__live>span:first-child{color:var(--od-color-text-muted,#66716b);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.025em}
.od-tools .od-batch__live strong{color:var(--od-color-brand,#0f4a35);font-size:1.05rem;line-height:1.1;font-weight:800}
.od-tools .od-batch__live>span:not(:first-child){font-size:.84rem;font-weight:700}
.od-tools .od-batch__live small{margin-left:auto;color:var(--od-color-text-muted,#66716b);font-size:.74rem}

.od-tools .od-batch__table{width:100%;overflow:visible}
.od-tools .od-batch__head,.od-tools .od-batch__row{display:grid;grid-template-columns:30px minmax(98px,1fr) minmax(98px,1fr) minmax(98px,1fr) minmax(76px,.72fr) minmax(150px,1.18fr) 26px;gap:7px;align-items:end}
.od-tools .od-batch__head{padding:0 6px 5px;color:var(--od-color-text-muted,#66716b);font-size:.7rem;font-weight:700;text-align:left}
.od-tools .od-batch__head>span{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
.od-tools .od-batch__head small{color:#8b9891;font-size:.62rem;font-weight:650}
.od-tools .od-batch__rows{display:grid;gap:6px}
.od-tools .od-batch__row{position:relative;padding:7px 6px;border:1px solid var(--od-color-border,#dce4df);border-radius:7px;background:#fff;transition:border-color .15s ease,background .15s ease}
.od-tools .od-batch__row.is-success{border-color:#c9ded0;background:#fcfefc}
.od-tools .od-batch__row.is-invalid{border-color:#e6bcbc;background:#fffafa}
.od-tools .od-batch__row.is-pending{border-color:#e5dfc9;background:#fffdf8}
.od-tools .od-batch__lp{align-self:center;color:#718079;font-size:.78rem;font-weight:750;text-align:center}
.od-tools .od-batch__field{display:grid;gap:4px;min-width:0}
.od-tools .od-batch__field>span:first-child{display:none;color:var(--od-color-text-muted,#66716b);font-size:.7rem;font-weight:700}
.od-tools .od-batch__field>span:first-child small{font-size:.66rem;font-weight:650}
.od-tools .od-batch__control{display:block;height:36px;overflow:hidden;border:1px solid var(--od-color-border,#dce4df);border-radius:6px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.od-tools .od-batch__control:focus-within{outline:2px solid var(--od-color-brand-soft,#dcebe2);outline-offset:1px;border-color:var(--od-color-brand,#0f4a35)}
.od-tools .od-batch__control input{width:100%;height:34px;min-width:0;padding:4px 10px;border:0;background:transparent;color:var(--od-color-brand,#0f4a35);font-size:1rem;font-weight:800;line-height:1.1;outline:0!important}
.od-tools .od-batch__control input::placeholder{color:#a2ada6;font-weight:600}
.od-tools .od-batch__control--quantity{border-color:#bfd4c7;background:#fbfefc;box-shadow:inset 2px 0 0 var(--od-color-brand,#0f4a35)}
.od-tools .od-batch__field.is-constant .od-batch__control{background:#f2f6f3;border-color:#d8e2db}
.od-tools .od-batch__field.is-constant input{color:#66716b}
.od-tools .od-batch__row-result{display:grid;align-content:center;min-height:36px;padding:2px 7px;border-left:2px solid #d6e4da}
.od-tools .od-batch__row-result>span{display:none;color:var(--od-color-text-muted,#66716b);font-size:.68rem;font-weight:700}
.od-tools .od-batch__row-result strong{color:var(--od-color-brand,#0f4a35);font-size:.96rem;line-height:1.15;white-space:nowrap}
.od-tools .od-batch__row-result small{margin-top:1px;color:var(--od-color-text-muted,#66716b);font-size:.68rem;line-height:1.15}
.od-tools .od-batch__row-result em{margin-top:1px;color:#9a3333;font-size:.68rem;font-style:normal;line-height:1.15}
.od-tools .od-batch__row.is-pending .od-batch__row-result em{color:#806d37}
.od-tools .od-batch__remove{align-self:center;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:#809087;font-size:1.16rem;line-height:1;cursor:pointer}
.od-tools .od-batch__remove:hover,.od-tools .od-batch__remove:focus-visible{background:#f1f4f2;color:#7b2626}
.od-tools .od-batch__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 0 32px}
.od-tools .od-batch__foot>span{color:var(--od-color-text-muted,#66716b);font-size:.75rem;line-height:1.35}

.od-tools .od-batch__message{margin:12px 0 0 32px;padding:9px 11px;border:1px solid #e7d4b5;border-radius:7px;background:#fff9ed;color:#6c5427;font-size:.84rem;line-height:1.4}
.od-tools .od-batch__summary{display:grid;gap:10px;margin-top:17px}
.od-tools .od-batch__summary[hidden],.od-tools .od-batch__message[hidden]{display:none}
.od-tools .od-batch__summary-main{padding:15px 18px;border:1px solid var(--od-color-brand-soft,#dcebe2);border-left:4px solid var(--od-color-brand,#0f4a35);border-radius:0 9px 9px 0;background:var(--od-color-result,#eef6f0)}
.od-tools .od-batch__summary.is-partial .od-batch__summary-main{border-color:#e6d6b5;border-left-color:#a67827;background:#fff9ed}
.od-tools .od-batch__summary-main small,.od-tools .od-batch__summary-main strong{display:block}
.od-tools .od-batch__summary-main small{color:var(--od-color-text-muted,#66716b);font-size:.78rem;font-weight:700}
.od-tools .od-batch__summary-main strong{margin-top:3px;color:var(--od-color-brand,#0f4a35);font-size:clamp(1.7rem,3.6vw,2.2rem);line-height:1.06;font-weight:800;letter-spacing:-.02em}
.od-tools .od-batch__summary-main p{max-width:760px;margin:5px 0 0;color:#3f4b44;font-size:.88rem;line-height:1.4}
.od-tools .od-batch__summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--od-color-border,#dce4df);border-radius:9px;background:#fff;overflow:hidden}
.od-tools .od-batch__summary-item{min-width:0;padding:10px 9px;text-align:center}
.od-tools .od-batch__summary-item+.od-batch__summary-item{border-left:1px solid var(--od-color-border,#dce4df)}
.od-tools .od-batch__summary-item small,.od-tools .od-batch__summary-item strong{display:block}
.od-tools .od-batch__summary-item small{min-height:2.2em;color:var(--od-color-text-muted,#66716b);font-size:.72rem;line-height:1.2}
.od-tools .od-batch__summary-item strong{margin-top:3px;font-size:1rem;line-height:1.2;font-weight:800}

.od-tools .od-batch__share{border:1px solid var(--od-color-border,#dce4df);border-radius:8px;background:#fff}
.od-tools .od-batch__share summary{padding:10px 12px;color:var(--od-color-brand,#0f4a35);font-size:.82rem;font-weight:750;cursor:pointer;list-style-position:inside}
.od-tools .od-batch__share[open] summary{border-bottom:1px solid var(--od-color-border,#dce4df)}
.od-tools .od-batch__share-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px 7px}
.od-tools .od-batch__share>small{display:block;padding:0 12px 10px;color:var(--od-color-text-muted,#66716b);font-size:.72rem;line-height:1.35}

@media(max-width:820px){
  .od-tools .od-batch__head{display:none}
  .od-tools .od-batch__rows{gap:8px}
  .od-tools .od-batch__row{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 9px;padding:10px}
  .od-tools .od-batch__lp{grid-column:1/-1;justify-self:start;width:auto;padding-right:32px;color:var(--od-color-brand,#0f4a35);font-size:.8rem;text-align:left}
  .od-tools .od-batch__lp:before{content:'Pozycja '}
  .od-tools .od-batch__field>span:first-child,.od-tools .od-batch__row-result>span{display:block}
  .od-tools .od-batch__row-result{grid-column:1/-1;min-height:auto;margin-top:1px;padding:7px 9px;border:0;border-radius:6px;background:#f5f8f6}
  .od-tools .od-batch__row-result strong{margin-top:1px;font-size:1.02rem}
  .od-tools .od-batch__remove{position:absolute;top:6px;right:6px}
  .od-tools .od-batch__live small{width:100%;margin-left:0}
}
@media(max-width:640px){
  .od-tools .od-batch__step{padding-top:10px}
  .od-tools .od-batch__step-head{margin-bottom:7px}
  .od-tools .od-batch__step-head--rows{align-items:flex-start;flex-wrap:wrap}
  .od-tools .od-batch__step-head--rows>div{flex:1 1 calc(100% - 32px)}
  .od-tools .od-batch__add{margin:2px 0 0 32px}
  .od-tools .od-batch__constants,.od-tools .od-batch__live,.od-tools .od-batch__foot,.od-tools .od-batch__message{margin-left:0}
  .od-tools .od-batch__constants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .od-tools .od-batch__constants label{border-radius:7px;justify-content:flex-start}
  .od-tools .od-batch__live{gap:6px 10px}
  .od-tools .od-batch__live>span:first-child{width:100%}
  .od-tools .od-batch__row{grid-template-columns:1fr}
  .od-tools .od-batch__lp,.od-tools .od-batch__row-result{grid-column:1}
  .od-tools .od-batch__foot{align-items:stretch;flex-direction:column}
  .od-tools .od-batch__clear{align-self:flex-start}
  .od-tools .od-batch__summary-grid{grid-template-columns:1fr}
  .od-tools .od-batch__summary-item+.od-batch__summary-item{border-left:0;border-top:1px solid var(--od-color-border,#dce4df)}
  .od-tools .od-batch__summary-item small{min-height:0}
  .od-tools .od-batch__share-actions{display:grid;grid-template-columns:1fr}
  .od-tools .od-batch__share-actions button{width:100%}
}

/* 0.4.12 — inactive row placeholders must not compete with entered values */
.od-tools .od-batch__control input::placeholder{color:#c5cdc8;font-weight:500;opacity:1}

/* 09G15 — przejrzysty nagłówek tabeli i kompaktowe pola wprowadzania. */
.od-tools .od-batch__head,.od-tools .od-batch__row{grid-template-columns:24px repeat(3,minmax(0,1fr)) minmax(65px,.78fr) minmax(123px,1.35fr) 22px;gap:6px}
.od-tools .od-batch__head>span{white-space:normal;line-height:1.25;align-items:center}
.od-tools .od-batch__control input{padding-left:8px;padding-right:4px}
@media(max-width:820px){
  .od-tools .od-batch__row{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 9px}
}
@media(max-width:640px){.od-tools .od-batch__row{grid-template-columns:1fr}}
