.labels-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.labels-shell h3,
.labels-shell h4,
.labels-shell p {
  margin: 0;
}

.labels-page-header,
.labels-toolbar,
.labels-action-row,
.labels-header-actions,
.labels-card-actions,
.labels-designer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.labels-page-header p,
.labels-help,
.labels-muted,
.labels-list-meta,
.labels-selected-summary span,
.labels-selected-summary small {
  color: var(--muted);
}

.labels-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.labels-card,
.labels-panel,
.labels-setup-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.labels-card {
  min-height: 138px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.labels-card-actions {
  margin-top: auto;
  justify-content: flex-start;
}

.labels-panel {
  padding: 14px;
}

.labels-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.labels-download-link:hover {
  filter: brightness(.94);
}

.labels-management {
  display: grid;
  gap: 14px;
}

.labels-management-table,
.labels-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.labels-management-table th,
.labels-management-table td,
.labels-data-table th,
.labels-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.labels-management-table th,
.labels-data-table th {
  background: #edf2f4;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.labels-management-table tbody tr:hover,
.labels-data-table tbody tr:hover,
.labels-data-table tbody tr.selected {
  background: #e5f5f2;
}

.labels-management-table td:last-child,
.labels-management-table th:last-child {
  width: 132px;
  text-align: right;
}

.labels-management-table button {
  min-width: 106px;
}

.labels-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dff3ec;
  color: #126b5c;
  font-size: 12px;
  font-weight: 700;
}

.labels-status.inactive {
  background: #edf0f2;
  color: #64727b;
}

.labels-production-workspace {
  display: grid;
  grid-template-columns: minmax(0, var(--labels-left, 57%)) 9px minmax(350px, 1fr);
  min-height: 650px;
  align-items: stretch;
}

.labels-production-list,
.labels-production-details {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.labels-production-list {
  padding: 14px;
  border-radius: 6px 0 0 6px;
}

.labels-production-details {
  padding: 14px;
  border-radius: 0 6px 6px 0;
  overflow: auto;
}

.labels-splitter {
  position: relative;
  cursor: col-resize;
  background: #dce7ea;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.labels-splitter::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 3px;
  height: 54px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: #7e999f;
}

.labels-load-row {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.labels-load-row label,
.labels-search-label,
.labels-fields label,
.labels-profile-fields label,
.labels-property-grid label,
.labels-template-settings label,
.labels-guide-upload label,
.labels-print-bar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.labels-load-row input,
.labels-load-row select,
.labels-fields input,
.labels-fields select,
.labels-fields textarea,
.labels-profile-fields input,
.labels-profile-fields select,
.labels-profile-fields textarea,
.labels-property-grid input,
.labels-property-grid select,
.labels-template-settings input,
.labels-template-settings select,
.labels-guide-upload input,
.labels-print-bar input {
  width: 100%;
}

.labels-table-scroll {
  max-height: 425px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.labels-data-table th:nth-child(1) { width: 112px; }
.labels-data-table th:nth-child(3) { width: 92px; }
.labels-data-table th:nth-child(4) { width: 82px; }
.labels-data-table th:nth-child(5) { width: 82px; text-align: right; }
.labels-data-table td:nth-child(5) { text-align: right; }

.labels-data-table tbody tr {
  cursor: pointer;
}

.labels-table-message,
.labels-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.labels-list-meta {
  margin: 8px 0;
  font-size: 12px;
}

.labels-selected-summary {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #a8d4cb;
  border-radius: 5px;
  background: #edf8f5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.labels-selected-summary > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.labels-selected-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labels-selected-price {
  display: grid;
  gap: 2px;
  text-align: right;
}

.labels-selected-price strong {
  color: #006f63;
  font-size: 22px;
}

.labels-print-bar {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(180px, 260px);
  gap: 10px;
  align-items: end;
}

.labels-print-bar input {
  min-height: 64px;
  padding: 8px 14px;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
}

.labels-print-button {
  min-height: 64px;
  font-size: 20px;
}

.labels-section-heading {
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 2px solid #0b7c70;
}

.labels-profile-fields,
.labels-fields,
.labels-fields-2,
.labels-template-grid,
.labels-property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.labels-profile-fields .span-2,
.labels-fields .span-2,
.labels-fields-2 .span-2,
.labels-template-grid .span-2,
.labels-property-grid .span-2 {
  grid-column: 1 / -1;
}

.labels-fields textarea,
.labels-profile-fields textarea {
  min-height: 72px;
  resize: vertical;
}

.labels-weight-box {
  padding: 12px;
  border: 2px solid #bb8622;
  border-radius: 5px;
  background: #fff7dd;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.labels-weight-box.captured {
  border-color: #14806d;
  background: #e6f7f2;
}

.labels-preview-card {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.labels-preview-paper {
  min-height: 230px;
  padding: 18px;
  border: 1px dashed #78949b;
  border-radius: 5px;
  background: #f8fafb;
  display: grid;
  place-items: center;
  text-align: center;
}

.labels-fake-barcode {
  width: min(330px, 88%);
  height: 68px;
  margin: 12px auto 4px;
  border: 7px solid #fff;
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px);
}

.labels-general-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  gap: 12px;
}

.labels-general-results,
.labels-search-results,
.labels-sample-results {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.labels-sample-choice {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.labels-sample-choice:hover,
.labels-sample-choice.selected {
  background: #e5f5f2;
}

.labels-template-settings {
  display: grid;
  gap: 12px;
}

.labels-sample-picker {
  display: grid;
  grid-template-columns: minmax(180px, 310px) minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.labels-guide-upload {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(220px, .8fr);
  gap: 12px;
  align-items: end;
}

.labels-guide-summary {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f9fa;
  display: flex;
  align-items: center;
  gap: 10px;
}

.labels-guide-summary img {
  width: 66px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

.labels-designer-workspace {
  display: grid;
  grid-template-columns: 190px minmax(420px, 1fr) 310px;
  gap: 12px;
  align-items: start;
}

.labels-field-palette,
.labels-properties {
  display: grid;
  align-content: start;
  gap: 8px;
}

.labels-field-palette button {
  width: 100%;
  justify-content: center;
}

.labels-canvas-panel {
  min-height: 620px;
  padding: 14px;
  background: #e9eef0;
}

.labels-canvas-frame {
  min-height: 588px;
  display: grid;
  place-items: center;
  overflow: auto;
}

.labels-design-canvas {
  position: relative;
  width: min(100%, 470px);
  min-width: 230px;
  background: #fff;
  box-shadow: 0 4px 20px #14242c40;
  overflow: hidden;
}

.labels-guide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.labels-design-element {
  position: absolute;
  z-index: 2;
  min-width: 12px;
  min-height: 10px;
  border: 1px dashed transparent;
  cursor: move;
  user-select: none;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.labels-design-element:hover,
.labels-design-element.selected {
  border-color: #008477;
  background: #00a49312;
}

.labels-design-element.barcode {
  background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px);
}

.labels-design-element.line {
  min-height: 2px;
  background: #111;
}

.labels-design-element.rectangle {
  border: 2px solid #111;
}

.labels-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13px;
  height: 13px;
  cursor: nwse-resize;
  border-left: 2px solid #008477;
  border-top: 2px solid #008477;
  background: #fff;
}

.labels-properties {
  position: sticky;
  top: 10px;
}

.labels-notice {
  padding: 10px 12px;
  border-left: 4px solid #167c6c;
  background: #edf8f5;
}

.labels-notice.error {
  border-color: #b4232c;
  background: #fff0f1;
  color: #871b22;
}

.labels-setup-section {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.labels-setup-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.labels-setup-layout-item {
  grid-column: span var(--labels-setup-span, 12);
  min-width: 0;
  min-height: var(--labels-setup-height, 100px);
}

.labels-setup-layout-item > .labels-setup-section {
  box-sizing: border-box;
  min-height: inherit;
}

.labels-class-transfer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.labels-class-pane {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.labels-class-pane.production {
  border-color: #9ccfc7;
  background: #f1faf7;
}

.labels-class-pane.is-drag-over {
  border-color: #087f73;
  box-shadow: 0 0 0 2px #087f7333;
}

.labels-class-pane-header {
  min-height: 44px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.labels-class-pane-header h4 {
  margin: 0;
  font-size: 15px;
}

.labels-class-pane-header span {
  min-width: 30px;
  padding: 3px 7px;
  border-radius: 12px;
  background: #e9eff1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.labels-class-search {
  padding: 8px 10px;
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.labels-class-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.labels-class-search input {
  width: 100%;
}

.labels-class-list {
  height: 210px;
  padding: 5px;
  overflow-y: auto;
}

.labels-class-option {
  min-height: 44px;
  padding: 6px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.labels-class-option:hover,
.labels-class-option:focus-visible {
  background: #f2f6f7;
  outline: none;
}

.labels-class-option.selected {
  border-color: #087f73;
  background: #dff3ef;
}

.labels-class-option.dragging {
  opacity: 0.45;
}

.labels-class-option > span {
  min-width: 0;
  display: grid;
}

.labels-class-option strong,
.labels-class-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labels-class-option small {
  color: var(--muted);
}

.labels-class-row-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 9px;
}

.labels-class-transfer-actions {
  display: grid;
  align-content: center;
  gap: 8px;
}

.labels-class-transfer-actions button {
  width: 100%;
}

.labels-class-transfer-help {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.labels-class-empty {
  padding: 22px 12px;
  color: var(--muted);
  text-align: center;
}

.labels-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.labels-printer-row,
.labels-scale-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.labels-agent-release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.labels-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6000;
  padding: 24px;
  background: #07151dcc;
  display: grid;
  place-items: center;
}

.labels-dialog {
  width: min(720px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 60px #0008;
}

.labels-dialog header,
.labels-dialog footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.labels-dialog footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.labels-dialog-body {
  padding: 16px;
}

.labels-setup-designer-dialog {
  width: min(1280px, 97vw);
  max-height: 94vh;
}

.labels-setup-designer-dialog > header {
  align-items: flex-start;
}

.labels-setup-designer-dialog > header h3 {
  margin: 0;
}

.labels-setup-designer-dialog > header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.labels-setup-designer-toolbar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.labels-setup-designer-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.labels-setup-designer-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.labels-setup-designer-toolbar.item-layout-designer-toolbar {
  margin: 0;
}

.labels-setup-designer-toolbar.item-layout-designer-toolbar > div:first-child {
  display: grid;
  align-items: initial;
  gap: 2px;
}

.labels-setup-designer-toolbar.item-layout-designer-toolbar > .inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.labels-setup-designer-stage {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  overflow: auto;
  background: #f4f7f8;
}

.labels-setup-designer-card {
  position: relative;
  grid-column: span var(--labels-setup-span, 12);
  min-width: 0;
  min-height: var(--labels-setup-height, 100px);
  box-sizing: border-box;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px dashed #65bdb6;
  border-radius: 6px;
  background: #fff;
  cursor: grab;
}

.labels-setup-designer-card.dragging {
  opacity: .45;
}

.labels-setup-designer-card.resizing {
  user-select: none;
  cursor: nwse-resize;
}

.labels-setup-designer-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.labels-setup-designer-card h4 {
  margin: 0;
  font-size: 16px;
}

.labels-setup-designer-card header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.labels-setup-designer-card header strong {
  color: var(--accent);
  font-size: 11px;
}

.labels-setup-designer-preview {
  flex: 1;
  padding: 12px;
  border: 1px dashed #c4d2d8;
  border-radius: 5px;
  background: #fbfcfc;
  pointer-events: none;
}

.labels-setup-designer-card footer {
  color: var(--muted);
  font-size: 12px;
}

.labels-setup-resize-handle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  cursor: nwse-resize;
}

.labels-setup-resize-handle::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.labels-setup-preview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.labels-setup-preview-columns > div {
  display: grid;
  gap: 5px;
}

.labels-setup-preview-columns span,
.labels-setup-preview-row span {
  padding: 6px 8px;
  border: 1px solid #d7e0e4;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
}

.labels-setup-preview-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
}

.labels-setup-preview-agent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.labels-production-shell {
  --labels-production-blue: #1767c5;
  --labels-production-blue-dark: #1256a7;
  --labels-production-blue-soft: #eaf2fc;
  --labels-production-border: #d5dee9;
  --labels-production-ink: #14263d;
  --labels-production-muted: #5c6e82;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.labels-production-page-header {
  min-height: 58px;
  flex-wrap: nowrap;
}

.labels-production-header-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.labels-eyebrow {
  color: var(--labels-production-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.labels-production-title-row,
.labels-production-selected-title,
.labels-production-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.labels-production-title-row h3 {
  color: var(--labels-production-ink);
  font-size: 22px;
  line-height: 1.15;
}

.labels-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid #c8d7e8;
  border-radius: 999px;
  background: #f1f6fc;
  color: #315a88;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.labels-production-header-copy p {
  overflow: hidden;
  color: var(--labels-production-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labels-production-workspace {
  grid-template-columns: minmax(0, var(--labels-left, 58%)) 7px minmax(360px, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--labels-production-border);
  border-radius: 6px;
  background: #fff;
}

.labels-production-list,
.labels-production-details {
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.labels-production-list {
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.labels-production-details {
  padding: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.labels-production-detail-content {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 14px 16px 18px;
}

.labels-production-detail-heading {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--labels-production-border);
}

.labels-production-detail-heading h3 {
  overflow: hidden;
  color: var(--labels-production-ink);
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labels-production-selected-title {
  justify-content: space-between;
}

.labels-production-selected-title .labels-status {
  flex: 0 0 auto;
}

.labels-production-empty {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 260px;
  color: var(--labels-production-muted);
  text-align: center;
}

.labels-production-empty strong {
  color: #344a64;
  font-size: 14px;
}

.labels-production-empty span {
  font-size: 12px;
}

.labels-production-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--labels-production-border);
  border-left: 1px solid var(--labels-production-border);
}

.labels-production-facts > div {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px 12px;
  border-right: 1px solid var(--labels-production-border);
  border-bottom: 1px solid var(--labels-production-border);
}

.labels-production-facts span {
  color: var(--labels-production-muted);
  font-size: 10.5px;
  font-weight: 750;
}

.labels-production-facts strong {
  overflow: hidden;
  color: var(--labels-production-ink);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labels-production-print-setup,
.labels-production-data-section {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.labels-production-data-section {
  padding-top: 12px;
  border-top: 1px solid var(--labels-production-border);
}

.labels-production-section-title {
  justify-content: space-between;
}

.labels-production-section-title h4 {
  color: var(--labels-production-ink);
  font-size: 14px;
}

.labels-production-section-title span {
  color: var(--labels-production-muted);
  font-size: 10.5px;
  text-align: right;
}

.labels-production-print-controls {
  display: grid;
  grid-template-columns: minmax(145px, 185px) minmax(130px, 170px) auto;
  align-items: end;
  gap: 10px;
}

.labels-production-print-controls > label {
  display: grid;
  gap: 4px;
  color: var(--labels-production-muted);
  font-size: 11px;
  font-weight: 750;
}

.labels-production-quantity {
  display: grid;
  grid-template-columns: 38px minmax(62px, 1fr) 38px;
  overflow: hidden;
  border: 1px solid #bbc8d6;
  border-radius: 5px;
  background: #fff;
}

.labels-production-quantity button,
.labels-production-quantity input {
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.labels-production-quantity button {
  padding: 0;
  color: #28435f;
  font-size: 18px;
}

.labels-production-quantity button:first-child {
  border-right: 1px solid var(--labels-production-border);
}

.labels-production-quantity button:last-child {
  border-left: 1px solid var(--labels-production-border);
}

.labels-production-quantity input {
  width: 100%;
  padding: 6px;
  color: var(--labels-production-ink);
  font-size: 15px;
  font-weight: 750;
  text-align: center;
  appearance: textfield;
}

.labels-production-quantity input::-webkit-inner-spin-button,
.labels-production-quantity input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.labels-production-print-controls .labels-print-button,
.labels-production-print-controls .labels-clear-selection {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 12px;
}

.labels-production-print-controls .labels-print-button {
  border-color: var(--labels-production-blue);
  background: var(--labels-production-blue);
}

.labels-production-print-controls .labels-print-button:hover {
  background: var(--labels-production-blue-dark);
}

.labels-production-print-controls .labels-clear-selection {
  border-color: var(--labels-production-border);
  color: #314a65;
}

.labels-production-list .labels-load-row {
  grid-template-columns: minmax(200px, 1fr) minmax(135px, 190px);
  margin-bottom: 10px;
}

.labels-production-list .labels-load-row button {
  min-height: 38px;
  background: var(--labels-production-blue);
  border-color: var(--labels-production-blue);
}

.labels-production-list .labels-load-row button:hover:not(:disabled) {
  background: var(--labels-production-blue-dark);
}

.labels-production-list .labels-search-label {
  gap: 4px;
}

.labels-production-list input,
.labels-production-list select,
.labels-production-details input,
.labels-production-details select,
.labels-production-details textarea {
  border-color: #bbc8d6;
  border-radius: 5px;
}

.labels-production-list input:focus,
.labels-production-list select:focus,
.labels-production-details input:focus,
.labels-production-details select:focus,
.labels-production-details textarea:focus {
  border-color: var(--labels-production-blue);
  box-shadow: 0 0 0 3px rgba(23, 103, 197, .13);
}

.labels-production-list .labels-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 25px;
  margin: 4px 0 6px;
  color: var(--labels-production-muted);
  font-size: 10.5px;
}

.labels-production-list .labels-list-meta strong {
  color: #344a64;
  font-size: 11px;
}

.labels-production-results {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  border-color: var(--labels-production-border);
  border-radius: 5px;
  scrollbar-gutter: stable;
}

.labels-production-list .labels-data-table {
  color: #1e3148;
  font-size: 11.5px;
}

.labels-production-list .labels-data-table th,
.labels-production-list .labels-data-table td {
  height: 39px;
  padding: 7px 10px;
  border-bottom-color: #dde4ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labels-production-list .labels-data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 36px;
  background: #f3f6f9;
  color: #3c5068;
  font-size: 10.5px;
}

.labels-production-list .labels-data-table tbody tr:hover {
  background: #f5f8fc;
}

.labels-production-list .labels-data-table tbody tr.selected {
  background: var(--labels-production-blue-soft);
}

.labels-production-list .labels-data-table tbody tr.selected td:first-child {
  box-shadow: inset 3px 0 var(--labels-production-blue);
}

.labels-production-list .labels-data-table td > strong {
  overflow: hidden;
  color: #1a2e47;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labels-production-list .labels-data-table th:nth-child(1) {
  width: 120px;
}

.labels-production-list .labels-data-table th:nth-child(3) {
  width: 86px;
  text-align: right;
}

.labels-production-list .labels-data-table td:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.labels-production-list .labels-data-table th:nth-child(4) {
  width: 78px;
}

.labels-production-workspace .labels-splitter {
  border: 0;
  border-right: 1px solid var(--labels-production-border);
  border-left: 1px solid var(--labels-production-border);
  background: #eef2f6;
}

.labels-production-workspace .labels-splitter::after {
  left: 2px;
  width: 2px;
  height: 42px;
  background: #8fa2b7;
}

.labels-production-details .labels-fields,
.labels-production-details .labels-profile-fields {
  gap: 8px;
}

.labels-production-details .labels-fields label,
.labels-production-details .labels-profile-fields label {
  gap: 4px;
  font-size: 10.5px;
}

.labels-production-details .labels-fields input,
.labels-production-details .labels-fields select,
.labels-production-details .labels-profile-fields input,
.labels-production-details .labels-profile-fields textarea {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11.5px;
}

.labels-production-details .labels-profile-fields textarea {
  min-height: 62px;
}

.labels-production-details .labels-weight-box {
  padding: 9px 10px;
  border-width: 1px;
  font-size: 11px;
}

.labels-production-details .labels-action-row {
  justify-content: flex-start;
  margin-top: 2px;
}

.labels-production-details .labels-action-row button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .labels-production-workspace,
  .labels-general-grid,
  .labels-designer-workspace {
    grid-template-columns: 1fr;
  }

  .labels-production-list,
  .labels-production-details {
    border-radius: 6px;
  }

  .labels-splitter {
    display: none;
  }

  .labels-production-shell {
    height: auto;
  }

  .labels-production-workspace {
    height: auto;
    overflow: visible;
  }

  .labels-production-results {
    min-height: 360px;
    max-height: 480px;
  }

  .labels-properties {
    position: static;
  }

  .labels-field-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .labels-field-palette h3 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .labels-dashboard,
  .labels-load-row,
  .labels-sample-picker,
  .labels-guide-upload,
  .labels-profile-fields,
  .labels-fields,
  .labels-fields-2,
  .labels-template-grid,
  .labels-property-grid,
  .labels-printer-row,
  .labels-scale-row {
    grid-template-columns: 1fr;
  }

  .labels-class-transfer {
    grid-template-columns: 1fr;
  }

  .labels-setup-layout,
  .labels-setup-designer-stage {
    grid-template-columns: 1fr;
  }

  .labels-setup-layout-item,
  .labels-setup-designer-card {
    grid-column: 1 / -1 !important;
  }

  .labels-setup-designer-toolbar,
  .labels-setup-designer-toolbar > div {
    align-items: stretch;
    flex-direction: column;
  }

  .labels-class-transfer-actions {
    grid-template-columns: 1fr 1fr;
  }

  .labels-class-transfer-help {
    grid-column: 1;
  }

  .labels-print-bar {
    grid-template-columns: 1fr 1fr;
  }

  .labels-field-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .labels-data-table th:nth-child(3),
  .labels-data-table td:nth-child(3) {
    display: none;
  }
}
