.order-export-form,
.order-label-tools {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: .9rem;
}
.order-export-form h3,
.order-export-form p,
.order-label-tools h3,
.order-label-tools p { margin: 0; }
.order-label-tools > * + * { margin-top: .65rem; }
.order-label-tools summary {
  display: list-item;
  cursor: pointer;
  min-height: 44px;
  padding-block: .65rem;
  width: fit-content;
  color: var(--accent-hover);
  font-weight: 700;
}
.order-label-tools summary:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.order-label-tools .admin-form { margin-top: .45rem; }
.order-compact-fields {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 146px), 1fr));
  gap: .65rem;
}
.order-compact-fields input { min-width: 0; }
.order-export-form .admin-secondary:disabled,
.order-label-tools .admin-secondary:disabled { cursor: default; opacity: .55; }
.thermal-sheet { display: none; }

@page thermal-label {
  size: 100mm 150mm;
  margin: 0;
}

@media print {
  body.admin-printing-label > :not(.thermal-sheet) { display: none !important; }
  body.admin-printing-label {
    margin: 0;
    padding: 0;
    background: white;
    color: black;
  }
  .admin-printing-label .thermal-sheet {
    display: grid;
    page: thermal-label;
    box-sizing: border-box;
    width: 100mm;
    min-height: 148mm;
    align-content: start;
    margin: 0;
    padding: 4mm;
    gap: 2.5mm;
    background: white;
    color: black;
    font: 9pt/1.2 Arial, sans-serif;
    overflow-wrap: anywhere;
  }
  .thermal-title,
  .thermal-address,
  .thermal-carrier {
    border: .3mm solid black;
    padding: 2.5mm;
    break-inside: avoid;
  }
  .thermal-title { display: grid; gap: 1mm; }
  .thermal-title > strong { font-size: 13pt; }
  .thermal-address > h2 {
    margin: 0 0 1mm;
    color: black;
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: .02em;
  }
  .thermal-address > strong { font-size: 10.5pt; }
  .thermal-address > p,
  .thermal-carrier > p { margin: .7mm 0 0; }
  .thermal-note { margin: 0; font-size: 8pt; text-align: center; }
}
