.logistics-calculator {
  min-width: 0;
  width: 100%;
  margin-top: 18px;
  color: var(--text, #243342);
  letter-spacing: 0;
}
.logistics-head,
.logistics-actions,
.logistics-batch-actions,
.logistics-totals {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.logistics-head { justify-content: space-between; padding: 14px 0; }
.logistics-head h2 { margin: 4px 0 0; font-size: 19px; font-weight: 650; }
.logistics-actions button { min-height: 38px; padding: 8px 13px; font-weight: 500; border-radius: 6px; }
.logistics-formulas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  padding: 0 0 14px;
  color: var(--muted, #627083);
  font-size: 13px;
  line-height: 1.7;
}
.logistics-formulas b { font-weight: 500; color: var(--green-dark, #0f766e); }
.logistics-batch { padding: 14px 0; border-top: 1px solid var(--line, #dae3e8); }
.logistics-batch[hidden] { display: none; }
.logistics-batch label { margin-bottom: 8px; }
.logistics-batch textarea { width: 100%; min-height: 100px; resize: vertical; line-height: 1.6; }
.logistics-batch-actions { justify-content: flex-end; margin-top: 8px; }
.logistics-batch-actions p { flex: 1 1 240px; margin: 0; color: #ad3e3e; font-size: 13px; }
.logistics-table-wrap { min-width: 0; overflow-x: auto; }
.logistics-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.logistics-table th { padding: 10px 7px; color: var(--muted, #627083); font-weight: 500; text-align: left; border-bottom: 1px solid var(--line, #dae3e8); }
.logistics-table th:first-child { width: 50px; }
.logistics-table th:last-child { width: 90px; }
.logistics-table th:nth-child(6) { width: 14%; }
.logistics-table th:nth-child(7) { width: 18%; }
.logistics-table th:nth-child(8) { width: 13%; }
.logistics-table th small { font-size: 11px; font-weight: 400; }
.logistics-table th { letter-spacing: 0; }
.logistics-table :is(th, td):last-child { position: static; background: transparent; }
.logistics-table td { padding: 9px 7px; border-bottom: 1px solid var(--line, #dae3e8); vertical-align: middle; }
.logistics-table input { width: 100%; min-width: 0; min-height: 40px; padding: 8px; font-size: 14px; border-radius: 6px; }
.logistics-table input[aria-invalid="true"] { border-color: #c66464; }
.logistics-girth output,
.logistics-row-volume output { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.4; font-size: 15px; }
.logistics-girth small { display: block; margin-top: 3px; line-height: 1.4; color: var(--green-dark, #0f766e); font-size: 12px; }
.is-oversized .logistics-girth output,
.is-oversized .logistics-girth small,
.is-invalid .logistics-girth small { color: #ad3e3e; }
.logistics-table .logistics-row-actions { white-space: nowrap; }
.logistics-row-actions button { width: 32px; min-width: 32px; height: 36px; min-height: 36px; padding: 0; border-radius: 6px; font-size: 21px; font-weight: 400; }
.logistics-row-actions button + button { margin-left: 4px; }
.logistics-totals { justify-content: flex-end; gap: 12px 26px; padding: 16px 0 6px; font-size: 13px; color: var(--muted, #627083); }
.logistics-totals strong { padding: 0 4px; color: var(--text, #243342); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.logistics-volume-total strong { color: var(--green-dark, #0f766e); font-size: 25px; }
.logistics-message { min-height: 20px; margin: 4px 0 0; color: var(--muted, #627083); font-size: 13px; line-height: 1.5; }
.logistics-calculator button:focus-visible { outline: 2px solid var(--green-dark, #0f766e); outline-offset: 2px; }

@media (max-width: 1100px) {
  .logistics-head { align-items: flex-start; }
  .logistics-table th:nth-child(7) { width: 17%; }
}
@media (max-width: 760px) {
  .logistics-head { display: block; }
  .logistics-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; gap: 8px; }
  .logistics-actions button { width: 100%; min-height: 42px; min-width: 0; }
  .logistics-formulas { gap: 6px; font-size: 12px; }
  .logistics-formulas > span { width: 100%; overflow-wrap: anywhere; }
  .logistics-table, .logistics-table tbody { display: block; }
  .logistics-table thead { display: none; }
  .logistics-table tbody { display: grid; gap: 12px; }
  .logistics-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line, #dae3e8); }
  .logistics-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .logistics-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted, #627083); font-size: 12px; }
  .logistics-table .logistics-index { grid-column: 1 / -1; font-weight: 600; }
  .logistics-index::before { display: inline !important; margin-right: 6px; }
  .logistics-table input { min-height: 42px; padding: 7px 5px; font-size: 16px; }
  .logistics-table .logistics-unit-weight { grid-column: 1 / span 2; }
  .logistics-table .logistics-girth { grid-column: 3 / span 2; }
  .logistics-table .logistics-row-volume { grid-column: 1 / span 2; }
  .logistics-table .logistics-row-actions { grid-column: 3 / span 2; align-self: end; text-align: right; }
  .logistics-row-actions::before { display: none !important; }
  .logistics-row-actions button { width: 40px; height: 40px; }
  .logistics-totals { justify-content: flex-start; gap: 12px 18px; }
  .logistics-volume-total { flex: 1 1 100%; }
}
