.label-management-page .shell-main {
  padding: 12px 18px 20px;
}

.label-workspace {
  min-height: calc(100vh - 92px);
}

.label-management-page .workspace-card__body {
  padding: 0 20px 20px;
}

.label-tabs {
  padding-left: 20px;
}

.label-tab-panel {
  display: none;
}

.label-tab-panel.is-active {
  display: block;
}

.label-toolbar {
  padding: 18px 0 6px;
}

.label-search {
  min-width: 250px;
}

.label-table-shell,
.label-record-shell {
  min-height: calc(100vh - 210px);
  border-radius: 0;
}

.label-table,
.label-record-table {
  min-width: 100%;
}

.label-table thead th,
.label-record-table thead th {
  height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: #d7dde9;
  color: #1f2b3d;
  font-size: 14px;
}

.label-table tbody td,
.label-record-table tbody td {
  height: 42px;
  padding-top: 9px;
  padding-bottom: 9px;
  color: #172033;
  font-size: 14px;
}

.label-table tbody tr:nth-child(even) td,
.label-record-table tbody tr:nth-child(even) td {
  background: #fbfbfc;
}

.label-table tbody tr.is-active td,
.label-record-table tbody tr.is-active td {
  background: #e5f7ff;
}

.label-select-cell,
.label-table th:first-child,
.label-table td:first-child,
.label-record-table th:first-child,
.label-record-table td:first-child {
  width: 58px;
  text-align: center;
}

.label-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #5078ff;
}

.selection-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #d5dbea;
  border-radius: 4px;
  background: #fff;
  color: #9aa3b5;
  font-size: 12px;
}

.selection-mark--header {
  background: #eef2fb;
}

.selection-mark--selected {
  border-color: #5078ff;
  background: #5078ff;
  color: #fff;
}

.label-empty-cell {
  height: 420px !important;
  color: #7e8795 !important;
  text-align: center;
  vertical-align: middle !important;
}

.label-config-table .label-empty-cell {
  height: 38px !important;
}

.label-record-filters {
  justify-content: flex-end;
}

.label-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4c5568;
  font-size: 13px;
}

.label-date-range {
  min-height: 34px;
}

.label-date-range input {
  width: 126px;
  min-height: 34px;
  border-radius: 3px;
  text-align: center;
}

.label-date-field {
  color: #9aa3b3;
}

.drawer__panel--label {
  width: min(900px, 100%);
  background: linear-gradient(180deg, #e9edff 0%, #ffffff 160px);
}

.label-drawer-header {
  padding-bottom: 12px;
}

.label-form {
  display: grid;
  gap: 20px;
  padding: 10px 0 4px;
}

.label-form-grid {
  display: grid;
  gap: 14px;
}

.label-form-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.label-form-label {
  padding-top: 9px;
  color: #4f596b;
  font-size: 14px;
  line-height: 1.4;
}

.label-required::before {
  content: "*";
  margin-right: 4px;
  color: #ff4d5f;
}

.label-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.label-input-action input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.label-link-button {
  min-width: 52px;
  min-height: 34px;
  border: 1px solid #d6ddeb;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  background: #f8fbff;
  color: #4d76ff;
  font-size: 13px;
}

.label-error-text {
  display: none;
  margin-top: 5px;
  color: #ff4d5f;
  font-size: 12px;
}

.is-invalid input {
  border-color: #ff5b73;
}

.is-invalid .label-error-text {
  display: block;
}

.label-config-table-shell {
  border-radius: 0;
  overflow: auto;
}

.label-config-table {
  min-width: 100%;
}

.label-config-table thead th {
  height: 36px;
  padding: 8px 10px;
  background: #d4dae6;
  color: #303a4f;
  font-size: 13px;
}

.label-config-table tbody td {
  height: 38px;
  padding: 4px 10px;
  border-bottom: 1px solid #edf0f6;
  background: #fff;
  font-size: 13px;
}

.label-config-table tbody tr.is-active td {
  background: #e5f7ff;
}

.label-config-table input,
.label-config-table select,
.label-config-table textarea {
  width: 100%;
  min-height: 32px;
  border-radius: 3px;
}

.label-print-count {
  text-align: center;
}

.label-table-plus {
  width: 100%;
  min-height: 38px;
  border: 1px solid #e0e5ee;
  border-top: 0;
  background: #fff;
  color: #4d76ff;
  font-size: 22px;
  line-height: 1;
  text-align: left;
  padding-left: 18px;
}

.label-note textarea {
  min-height: 72px;
}

.label-inline-action-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.label-inline-action-cell input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.label-drawer-footer {
  position: sticky;
  bottom: -20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 24%);
}

.label-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.label-modal.is-open {
  display: block;
}

.label-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 28, 38, 0.64);
}

.label-modal__panel {
  position: absolute;
  top: 12vh;
  left: 50%;
  width: min(640px, calc(100vw - 48px));
  min-height: 260px;
  max-height: 78vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(25, 34, 58, 0.24);
}

.label-modal__panel[data-picker-mode="station"] {
  width: min(620px, calc(100vw - 48px));
}

.label-modal__panel[data-picker-mode="barcode-rule"] {
  width: min(860px, calc(100vw - 48px));
}

.label-modal__panel[data-picker-mode="barcode-link"] {
  width: min(430px, calc(100vw - 48px));
  min-height: 190px;
}

.label-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
}

.label-modal__header h3 {
  margin: 0;
  font-size: 16px;
  color: #263246;
}

.label-modal__body {
  flex: 1;
  overflow: auto;
  padding: 0 24px 16px;
}

.label-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 24px 18px;
}

.label-picker-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.label-picker-toolbar span {
  color: #4f596b;
  font-size: 13px;
}

.label-picker-search {
  width: 210px;
  min-height: 32px;
}

.label-picker-table-shell {
  min-height: 260px;
  max-height: 370px;
  border-radius: 0;
}

.label-picker-table {
  min-width: 100%;
}

.label-picker-table thead th {
  height: 34px;
  background: #d7dde9;
  color: #3e485c;
  font-size: 13px;
}

.label-picker-table tbody td {
  height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 13px;
}

.label-picker-table tbody tr.is-active td {
  background: #e5f7ff;
}

.label-small-form {
  display: grid;
  gap: 14px;
  padding: 4px 0 8px;
}

.label-small-form .label-form-row {
  grid-template-columns: 86px minmax(0, 1fr);
}

@media (max-width: 900px) {
  .label-record-filters {
    justify-content: flex-start;
  }

  .label-form-row {
    grid-template-columns: 1fr;
  }

  .label-form-label {
    padding-top: 0;
  }
}
