.lg-workspace {
  --specimen-ink: #173a42;
  --bench-surface: #fff;
  --bench-line: #dce7e8;
  --trace-accent: #0b87a2;
  display: grid;
  gap: 18px;
  color: var(--specimen-ink);
}
.lg-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--bench-line);
}
.lg-tabs button {
  padding: 12px 16px;
  white-space: nowrap;
  color: #53656a;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.lg-tabs button.active {
  border-color: var(--trace-accent);
  color: var(--trace-accent);
}
.lg-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.lg-toolbar label,
.lg-form label,
.lg-receive-actions label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #53656a;
}
.lg-search {
  flex: 1;
  min-width: 230px;
}
.lg-toolbar input,
.lg-toolbar select,
.lg-form input:not([type="checkbox"]),
.lg-form select,
.lg-form textarea,
.lg-receive-actions input {
  min-height: 42px;
  width: 100%;
  border: 1px solid #cad8dd;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: #173a42;
  max-width: 100%;
}
.lg-form textarea {
  resize: vertical;
}
.lg-form input[type="checkbox"],
.lg-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0b87a2;
}
.lg-form input[type="file"] {
  padding: 12px;
}
.lg-workspace button:focus-visible,
.lg-modal :is(button, input, textarea, select, a, summary):focus-visible,
.lg-workspace a:focus-visible {
  outline: 3px solid #0b87a2;
  outline-offset: 3px;
}
.lg-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
}
.lg-summary b {
  font-size: 18px;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.lg-panel {
  border: 1px solid var(--bench-line);
  border-radius: 12px;
  background: var(--bench-surface);
  overflow: hidden;
}
.lg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 22px;
  flex-wrap: wrap;
}
.lg-section-head h2 {
  font-size: 17px;
  font-weight: 650;
}
.lg-section-head p,
.lg-empty p {
  font-size: 13px;
  color: #617980;
  line-height: 1.6;
  margin-top: 5px;
}
.lg-table-wrap {
  max-width: 100%;
  overflow: auto;
}
.lg-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.lg-table th {
  background: #f3f7f8;
  color: #617980;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  white-space: nowrap;
}
.lg-table td {
  padding: 15px 16px;
  border-top: 1px solid #e8eef0;
  vertical-align: middle;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.lg-table td small {
  display: block;
  color: #617980;
  margin-top: 5px;
  line-height: 1.5;
}
.lg-filter-details {
  width: 100%;
  font-size: 12px;
}
.lg-filter-details summary {
  cursor: pointer;
  color: #087e99;
  font-weight: 600;
  padding: 5px 0;
}
.lg-filter-details[open] > .lg-toolbar {
  margin-top: 12px;
}
.lg-filter-details input[type="number"] {
  width: 110px;
}
.lg-table .lg-region {
  white-space: nowrap;
}
.lg-location-sevilla {
  background: #edf7f0;
  padding: 3px 5px;
  border-radius: 3px;
  color: #267b48 !important;
}
.lg-table .btn-secondary {
  font-size: 11px;
  padding: 7px 10px;
  white-space: nowrap;
}
.lg-code {
  font-family: Consolas, "Courier New", monospace;
  color: #087e99;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.lg-row-outside {
  background: #fffceb;
}
.lg-row-closed {
  background: #fff2f2;
}
.lg-row-unavailable {
  background: #fff5e9;
}
.lg-status {
  display: inline-flex;
  line-height: 1.4;
  padding: 5px 8px;
  border: 1px solid #dce7e8;
  border-radius: 5px;
  background: #f4f8f8;
  color: #52676d;
  font-size: 11px;
  font-weight: 600;
}
.lg-status.lg-unavailable {
  background: #ffebd2;
  color: #885109;
  border-color: #ffd7a8;
}
.lg-status.lg-outside {
  background: #fff3b8;
  color: #725807;
  border-color: #e9d992;
}
.lg-status.lg-closed {
  background: #ffe4e4;
  color: #a32b35;
  border-color: #edc0c5;
}
.lg-status.lg-available {
  background: #edf7f0;
  color: #267b48;
}
.lg-regions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.lg-region {
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #f1f5f7;
  color: #25464e;
}
.lg-region-cranio {
  background: #d8e9f9;
}
.lg-region-boca {
  background: #ffe4c4;
}
.lg-region-ouvido {
  background: #e9def7;
}
.lg-region-face {
  background: #f8ddea;
}
.lg-region.unavailable {
  text-decoration: line-through;
}
.lg-confidential,
.lg-note {
  font-size: 12px;
  line-height: 1.6;
  color: #617980;
}
.lg-empty {
  text-align: center;
  padding: 45px 25px;
}
.lg-empty h3 {
  font-size: 17px;
}
.lg-empty .btn-primary {
  margin-top: 16px;
}
.lg-error {
  background: #fff0f0;
  border: 1px solid #efc9cd;
  color: #9a2633;
  padding: 12px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.5;
}
.lg-error[hidden] {
  display: none;
}
.lg-attention {
  color: #a3620a;
  font-size: 12px;
  line-height: 1.5;
}
.lg-receipt-progress {
  width: 130px;
  background: #e8f1f3;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.lg-receipt-progress span {
  display: block;
  height: 100%;
  background: #0b87a2;
}
.lg-modal {
  width: min(1050px, calc(100vw - 32px));
  max-width: 1050px;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #173a42;
}
.lg-modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid #dce7e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.lg-modal-head small {
  font-size: 10px;
  color: #617980;
  letter-spacing: 0.08em;
}
.lg-modal-head h3 {
  font-size: 19px;
  font-weight: 650;
  margin-top: 5px;
}
.lg-modal-body {
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 18px;
  min-height: 0;
}
.lg-form {
  display: grid;
  gap: 18px;
}
.lg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lg-wide {
  grid-column: 1/-1;
  min-width: 0;
}
.lg-form small {
  font-size: 11px;
  font-weight: 400;
  color: #617980;
  line-height: 1.5;
}
.lg-form summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 0;
}
.lg-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: -24px;
  padding: 16px 0;
  background: #fff;
  border-top: 1px solid #dce7e8;
}
.lg-form fieldset {
  border: 1px solid #dce7e8;
  padding: 16px;
  border-radius: 8px;
  min-width: 0;
}
.lg-form legend {
  font-size: 12px;
  font-weight: 700;
  padding: 0 5px;
}
.lg-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.lg-actions .btn-secondary,
.lg-actions .btn-primary {
  font-size: 12px;
}
.lg-check {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  line-height: 1.6;
}
.lg-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  background: #eff6f7;
  border-radius: 8px;
  padding: 16px;
  gap: 12px;
}
.lg-steps li {
  font-size: 12px;
  color: #617980;
  line-height: 1.8;
}
.lg-steps strong {
  color: #173a42;
  font-size: 15px;
}
.lg-receive-actions {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.lg-piece-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.lg-identifier {
  font-family: Consolas, "Courier New", monospace;
  font-size: 27px;
  letter-spacing: 0.04em;
}
.lg-piece-heading p {
  font-size: 13px;
  color: #617980;
  margin-top: 5px;
}
.lg-facts {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
  gap: 15px;
  border-block: 1px solid #dce7e8;
  padding: 16px 0;
}
.lg-facts div {
  font-size: 11px;
  color: #617980;
}
.lg-facts strong {
  display: block;
  font-size: 14px;
  margin-top: 7px;
  color: #173a42;
}
.lg-detail-section h4 {
  font-size: 14px;
  margin-bottom: 14px;
}
.lg-reservation {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #e5ecee;
  font-size: 12px;
  line-height: 1.7;
  flex-wrap: wrap;
}
.lg-reservation small {
  color: #617980;
}
.lg-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.lg-files a {
  border: 1px solid #dce7e8;
  border-radius: 7px;
  overflow: hidden;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.lg-files img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f4f7f8;
}
.lg-files span {
  display: block;
  padding: 12px;
}
.lg-files small {
  display: block;
  color: #617980;
  margin-top: 5px;
}
.lg-import-rows {
  display: grid;
  gap: 18px;
}
.lg-source {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 350px;
  overflow: auto;
  background: #f4f7f8;
  padding: 14px;
  border-radius: 7px;
}
.lg-source-image {
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
}
.lg-source-frame {
  width: 100%;
  height: 450px;
  border: 1px solid #dce7e8;
}
.lg-history {
  border-left: 3px solid #dce7e8;
  padding: 8px 16px;
  display: grid;
  gap: 10px;
  font-size: 12px;
}
.lg-history small {
  display: block;
  color: #617980;
  margin-top: 5px;
}
.lg-history a {
  justify-self: start;
}
@media (max-width: 700px) {
  .lg-form-grid {
    grid-template-columns: 1fr;
  }
  .lg-facts {
    grid-template-columns: 1fr 1fr;
  }
  .lg-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .lg-modal-head,
  .lg-modal-body {
    padding: 16px;
  }
  .lg-form-actions {
    bottom: -16px;
  }
  .lg-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lg-steps li br {
    display: none;
  }
  .lg-steps strong {
    margin-left: 8px;
  }
  .lg-toolbar label {
    width: 100%;
  }
  .lg-summary {
    gap: 12px;
  }
  .lg-section-head {
    padding: 16px;
  }
  .lg-table {
    min-width: 690px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg-modal {
    animation: none !important;
  }
}
