/* Shared DTF lab styles and utility classes (no Bootstrap dependency). */

:root {
  --labs-border-soft: rgba(15, 23, 42, 0.08);
  --labs-border-strong: rgba(131, 197, 163, 0.55);
  --labs-surface-soft: rgba(15, 46, 29, 0.04);
  --labs-surface-muted: rgba(31, 122, 69, 0.06);
}

/* Layout and spacing utilities */
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.align-items-start {
  align-items: flex-start;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-center {
  justify-content: center;
}
.flex-wrap {
  flex-wrap: wrap;
}
.w-100 {
  width: 100%;
}
.text-center {
  text-align: center;
}
.text-end {
  text-align: right;
}
.fw-semibold {
  font-weight: 600;
}
.fw-bold {
  font-weight: 700;
}
.small {
  font-size: 0.85rem;
}
.text-dark {
  color: var(--text);
}
.text-primary {
  color: var(--primary);
}
.text-success {
  color: #166534;
}
.text-info {
  color: #075985;
}
.text-warning {
  color: #92400e;
}
.text-danger {
  color: #8a1c1c;
}
.text-muted {
  color: var(--muted);
}
/* Spacing utilities aligned with shell tokens (--space-*). */
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: var(--space-1);
}
.mb-2 {
  margin-bottom: var(--space-2);
}
.mb-3 {
  margin-bottom: var(--space-4);
}
.mb-4 {
  margin-bottom: var(--space-6);
}
.me-0 {
  margin-inline-end: 0;
  margin-right: 0;
}
.me-1 {
  margin-inline-end: var(--space-1);
  margin-right: var(--space-1);
}
.me-2 {
  margin-inline-end: var(--space-2);
  margin-right: var(--space-2);
}
.me-3 {
  margin-inline-end: var(--space-4);
  margin-right: var(--space-4);
}
.me-4 {
  margin-inline-end: var(--space-6);
  margin-right: var(--space-6);
}
.ms-0 {
  margin-inline-start: 0;
  margin-left: 0;
}
.ms-1 {
  margin-inline-start: var(--space-1);
  margin-left: var(--space-1);
}
.ms-2 {
  margin-inline-start: var(--space-2);
  margin-left: var(--space-2);
}
.ms-3 {
  margin-inline-start: var(--space-4);
  margin-left: var(--space-4);
}
.ms-4 {
  margin-inline-start: var(--space-6);
  margin-left: var(--space-6);
}
.ml-2 {
  margin-left: var(--space-2);
}
.mr-2 {
  margin-right: var(--space-2);
}
.mt-1 {
  margin-top: var(--space-1);
}
.mt-2 {
  margin-top: var(--space-2);
}
.mt-3 {
  margin-top: var(--space-4);
}
.mt-4 {
  margin-top: var(--space-6);
}
.my-3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}
.p-0 {
  padding: 0;
}
.px-0 {
  padding-left: 0;
  padding-right: 0;
}
.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.gap-1 {
  gap: var(--space-1);
}
.gap-2,
.g-2 {
  gap: var(--space-2);
}
.gap-3,
.g-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}
.icon-3x {
  font-size: 3rem;
  line-height: 1;
}

/* Compatibility helpers for legacy templates */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}
.row > [class*="col-"] {
  padding: 0.5rem;
  flex: 0 0 100%;
  max-width: 100%;
}
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
@media (min-width: 768px) {
  .col-md-2 {
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
  }
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
  }
}
@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

/* Form controls */
.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: #ffffff;
}
.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--text);
}
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.12);
}

/* Card helpers */
.card-header {
  border-bottom: 1px solid rgba(131, 197, 163, 0.35);
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  font-weight: 700;
}
.card-body {
  padding: 0;
}
.card-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.bg-light {
  background: rgba(20, 83, 45, 0.07);
}

/* Buttons */
.btn.btn-sm,
.btn-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 0.45rem;
}
.btn-small {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0.45rem;
}
.btn.btn-lg,
.btn-lg {
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-outline,
.btn-outline-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover,
.btn-outline-secondary:hover {
  background: rgba(20, 83, 45, 0.08);
}
.btn-outline-primary {
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline-primary:hover {
  background: rgba(20, 83, 45, 0.08);
  color: var(--primary-dark);
}
.btn-outline-info {
  background: var(--bg-card);
  color: #075985;
  border: 1px solid #0ea5e9;
}
.btn-outline-info:hover {
  background: rgba(14, 165, 233, 0.12);
  color: #075985;
}
.btn-outline-success {
  background: var(--bg-card);
  color: #166534;
  border: 1px solid #16a34a;
}
.btn-outline-success:hover {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.btn-outline-warning {
  background: var(--bg-card);
  color: #92400e;
  border: 1px solid #f59e0b;
}
.btn-outline-warning:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}
.btn-outline-danger {
  background: var(--bg-card);
  color: #8a1c1c;
  border: 1px solid #dc2626;
}
.btn-outline-danger:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #8a1c1c;
}
.btn-success {
  background: #1f7a45;
  border-color: #1f7a45;
  color: #fff;
}
.btn-success:hover {
  background: #0f4d2a;
  border-color: #0f4d2a;
  color: #fff;
}
.btn-warning {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #1f2a24;
}
.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
  color: #1f2a24;
}
.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.btn-info {
  background: #2b6f56;
  border-color: #2b6f56;
  color: #fff;
}
.btn-info:hover {
  background: #1f5b45;
  border-color: #1f5b45;
  color: #fff;
}

/* Badges */
.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  color: #92400e;
}
.badge-info {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.35);
  color: #075985;
}
.badge-success {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.38);
  color: #166534;
}

.table-striped tbody tr:nth-child(even) {
  background: rgba(20, 83, 45, 0.04);
}
.table-hover tbody tr:hover {
  background: rgba(20, 83, 45, 0.08);
}

/* Reusable notice component */
.notice {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  background: rgba(20, 83, 45, 0.06);
}
.notice-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.32);
  color: #166534;
}
.notice-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #1e3a8a;
}
.notice-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.34);
  color: #92400e;
}

/* Shared lab hero */
.lab-hero {
  background: linear-gradient(120deg, #1e4a32 0%, #1a3f2a 50%, #0f2e1d 100%);
  border-radius: 1rem;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: 0 18px 28px rgba(15, 46, 29, 0.22);
  color: #ffffff;
}
.lab-hero-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.lab-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}
.lab-hero-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.lab-hero-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}
@media (max-width: 768px) {
  .lab-hero {
    padding: var(--space-3) var(--space-4);
  }
  .lab-hero-logo {
    width: 56px;
    height: 56px;
  }
  .lab-hero-logo img {
    width: 44px;
    height: 44px;
  }
  .lab-hero-title {
    font-size: 1.12rem;
  }
}

/* DTF user dashboard cards */
.dtf-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.72rem;
  margin-bottom: 1.1rem;
}
.dtf-summary-card {
  border: 1px solid rgba(20, 83, 45, 0.22);
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.72rem 0.82rem;
  box-shadow: 0 5px 11px rgba(11, 36, 20, 0.07);
}
.dtf-summary-value {
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 800;
  color: #113d28;
}
.dtf-summary-label {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5a7264;
}
.dtf-notice-board {
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
}
.dtf-notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.dtf-notice-title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: #123b27;
}
.dtf-notice-subtitle {
  margin: 0.16rem 0 0;
  color: #607669;
  font-size: 0.75rem;
}
.dtf-notice-list {
  display: grid;
  gap: 0.5rem;
}
.dtf-notice-item {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  border: 1px solid rgba(20, 83, 45, 0.16);
  border-radius: 0.72rem;
  background: #f8fcfa;
  padding: 0.45rem 0.5rem;
}
.dtf-notice-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  flex: 1;
  text-decoration: none;
  color: inherit;
  padding: 0.05rem 0.1rem;
}
.dtf-notice-main:hover {
  background: #f2f8f4;
  border-radius: 0.6rem;
}
.dtf-notice-lab {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e3f0e8;
  border: 1px solid #9bc9ae;
  color: #165734;
}
.dtf-notice-text {
  color: #1f2a24;
  font-size: 0.82rem;
  font-weight: 600;
}
.dtf-notice-time {
  color: #607669;
  font-size: 0.72rem;
  white-space: nowrap;
}
.dtf-notice-read-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.dtf-notice-read-btn {
  border: 1px solid rgba(20, 83, 45, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #14532d;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
  cursor: pointer;
}
.dtf-notice-read-btn:hover {
  background: rgba(20, 83, 45, 0.08);
}
@media (max-width: 768px) {
  .dtf-notice-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .dtf-notice-main {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .dtf-notice-read-form {
    width: 100%;
  }
  .dtf-notice-read-btn {
    width: 100%;
  }
  .dtf-notice-time {
    font-size: 0.7rem;
  }
}
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}
.lab-card {
  border: 1px solid rgba(20, 83, 45, 0.22);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 7px 16px rgba(11, 36, 20, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lab-head {
  padding: 0.8rem 0.92rem;
  background: linear-gradient(135deg, #1e4a32 0%, #123723 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.62rem;
}
.lab-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.3rem;
  object-fit: contain;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.lab-title {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}
.lab-subtitle {
  margin: 0.12rem 0 0;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
}
.lab-body {
  padding: 0.86rem 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  flex: 1;
}
.lab-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}
.lab-kpi {
  border: 1px solid rgba(20, 83, 45, 0.2);
  border-radius: 0.65rem;
  background: #f8fcfa;
  text-align: center;
  padding: 0.45rem 0.35rem;
}
.lab-kpi-value {
  font-size: 1.03rem;
  font-weight: 800;
  color: #14532d;
  line-height: 1.1;
}
.lab-kpi-label {
  margin-top: 0.16rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #607669;
  font-weight: 700;
}
.recent-list {
  border-top: 1px solid rgba(20, 83, 45, 0.12);
  padding-top: 0.58rem;
}
.recent-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f6658;
  font-weight: 800;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.32rem 0;
  border-bottom: 1px dashed rgba(20, 83, 45, 0.12);
}
.recent-item:last-child {
  border-bottom: 0;
}
.recent-id {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2a24;
}
.recent-date {
  font-size: 0.72rem;
  color: #63796c;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  padding: 0.15rem 0.48rem;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-pendiente {
  background: #fff8e8;
  color: #946018;
  border-color: #f1c76a;
}
.status-aceptada {
  background: #e8f6ed;
  color: #14532d;
  border-color: #8dd3a6;
}
.status-rechazada {
  background: #fdecec;
  color: #9f1d1d;
  border-color: #edb2b2;
}
.status-en_curso {
  background: #e8f1fd;
  color: #1d4e89;
  border-color: #a9c7ef;
}
.status-finalizada {
  background: #e7f7ef;
  color: #166534;
  border-color: #97d3ae;
}
.status-submitted {
  background: #fff8e8;
  color: #946018;
  border-color: #f1c76a;
}
.status-changes_requested {
  background: #fff1d6;
  color: #9a5d15;
  border-color: #f2c885;
}
.status-draft {
  background: #eef2f6;
  color: #4a5568;
  border-color: #c5ced7;
}
.status-accepted {
  background: #e8f6ed;
  color: #14532d;
  border-color: #8dd3a6;
}
.status-rejected {
  background: #fdecec;
  color: #9f1d1d;
  border-color: #edb2b2;
}
.lab-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.btn-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.62rem;
  padding: 0.52rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #1e5d39;
  background: #14532d;
  color: #ffffff;
}
.btn-access:hover {
  color: #ffffff;
  background: #0f3f22;
}
.btn-access.secondary {
  background: #ffffff;
  color: #14532d;
}
.btn-access.secondary:hover {
  background: #f2f8f4;
  color: #123f28;
}
.btn-access.disabled {
  background: #e7edf0;
  border-color: #ccd6db;
  color: #66757f;
  pointer-events: none;
}
.lab-note {
  margin: 0;
  font-size: 0.72rem;
  color: #607669;
}

/* DTF user center */
.user-center-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.user-center-list {
  display: grid;
  gap: 0.55rem;
}
.user-center-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(131, 197, 163, 0.35);
  border-radius: 0.7rem;
  background: #f8fcfa;
}
.user-center-item strong {
  color: var(--primary-dark);
}
.lab-access-row {
  border: 1px solid rgba(131, 197, 163, 0.35);
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.3rem;
}
.lab-access-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #eef2f7;
  color: #334155;
}
.status-chip.ok {
  border-color: rgba(22, 101, 52, 0.38);
  background: rgba(34, 197, 94, 0.13);
  color: #166534;
}
.status-chip.warn {
  border-color: rgba(146, 64, 14, 0.35);
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}
.status-chip.blocked {
  border-color: rgba(127, 29, 29, 0.35);
  background: rgba(239, 68, 68, 0.14);
  color: #7f1d1d;
}
.external-table-wrap {
  overflow-x: auto;
}
.request-history-list {
  display: grid;
  gap: 0.55rem;
}
.request-history-item {
  border: 1px solid rgba(131, 197, 163, 0.35);
  border-radius: 0.8rem;
  padding: 0.55rem 0.65rem;
  background: #ffffff;
}
.request-form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.request-form-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 680px) {
  .user-center-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Pattern used by user panels: actions + flow + status */
.panel-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.flow-step {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.58rem 0.68rem;
  border-radius: 0.75rem;
  background: rgba(30, 74, 50, 0.06);
  border: 1px solid rgba(169, 201, 181, 0.45);
}
.flow-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.status-card .card-header {
  margin-bottom: 0.6rem;
}
.status-list {
  display: grid;
  gap: 0.6rem;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.48rem 0.55rem;
  border-radius: 0.7rem;
  background: var(--labs-surface-soft);
  border: 1px solid rgba(169, 201, 181, 0.35);
}
.status-row-title {
  font-weight: 700;
  color: var(--primary-dark);
}
.status-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.slab-location-card {
  overflow: hidden;
}
.slab-location-toggle {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.slab-location-content.is-hidden {
  display: none;
}
.slab-location-shell {
  display: grid;
  gap: 0.9rem;
}
.slab-location-rooms {
  border: 1px solid rgba(169, 201, 181, 0.4);
  border-radius: 0.8rem;
  background: rgba(30, 74, 50, 0.04);
  padding: 0.65rem 0.75rem;
}
.slab-location-room-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.slab-location-map-embed {
  border: 1px solid rgba(169, 201, 181, 0.45);
  border-radius: 0.9rem;
  overflow: hidden;
  background: #ffffff;
}
.slab-location-map-embed iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}
.slab-location-map-btn {
  border: 1px solid rgba(169, 201, 181, 0.45);
  border-radius: 0.9rem;
  background: rgba(30, 74, 50, 0.03);
  padding: 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.slab-location-map-btn:hover {
  border-color: rgba(20, 83, 45, 0.55);
  box-shadow: 0 8px 18px rgba(15, 46, 29, 0.14);
  transform: translateY(-1px);
}
.slab-location-map-btn img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.7rem;
  border: 1px solid rgba(169, 201, 181, 0.4);
  background: #ffffff;
}
.slab-location-map-caption {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.slab-location-detail {
  border: 1px solid rgba(169, 201, 181, 0.45);
  border-radius: 0.9rem;
  padding: 0.75rem;
  background: #ffffff;
}
.slab-location-detail.is-hidden {
  display: none;
}
.slab-location-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.slab-location-toolbar .btn.is-active {
  background: rgba(20, 83, 45, 0.12);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.slab-location-stage {
  border: 1px solid rgba(169, 201, 181, 0.4);
  border-radius: 0.85rem;
  background: rgba(30, 74, 50, 0.02);
  padding: 0.4rem;
  margin-bottom: 0.6rem;
}
.slab-location-stage-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.7rem;
  background: #ffffff;
}
@media (max-width: 1024px) {
  .panel-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
  }
  .flow-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
  }
  .status-columns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .slab-location-map-embed iframe {
    min-height: 200px;
  }
}
@media (max-width: 768px) {
  .status-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .status-row .text-end {
    text-align: left;
    width: 100%;
  }
  .slab-location-toolbar .btn {
    width: 100%;
    justify-content: center;
  }
  .slab-location-map-embed iframe {
    min-height: 220px;
  }
}
@media (max-width: 640px) {
  .flow-step {
    padding: 0.52rem 0.6rem;
    gap: 0.5rem;
  }
  .flow-index {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }
  .status-row {
    padding: 0.42rem 0.5rem;
    gap: 0.55rem;
  }
  .slab-location-detail {
    padding: 0.6rem;
  }
  .slab-location-map-caption {
    font-size: 0.8rem;
  }
  .panel-actions-grid .btn {
    width: 100%;
    justify-content: center;
  }
}

/* DP style components reused by multiple S-LAB templates */
.dp-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.dp-shortcuts {
  background: var(--bg-card);
  border: 1px solid var(--labs-border-soft);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.dp-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.dp-shortcuts-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.dp-shortcuts-note {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.dp-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}
.dp-shortcut-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 2px solid var(--primary-dark);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.dp-shortcut-btn i {
  font-size: 1.1rem;
}
.dp-shortcut-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}
.dp-shortcut-active {
  background: rgba(31, 122, 69, 0.12);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.dp-experiment-card {
  background: var(--bg-card);
  border: 1px solid var(--labs-border-soft);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.dp-experiment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.dp-experiment-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}
.dp-experiment-subtitle {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-weight: 600;
}
.dp-experiment-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dp-tag {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: rgba(31, 122, 69, 0.08);
  color: var(--primary-dark);
}
.dp-tag-outline {
  background: transparent;
}

.dp-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.dp-stat-card {
  background: #fff;
  border: 1px solid var(--labs-border-soft);
  border-radius: 1rem;
  padding: 0.95rem 0.85rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}
.dp-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.dp-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.dp-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.dp-stat-meta {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.dp-search-panel {
  background: rgba(31, 122, 69, 0.05);
  border: 1px solid rgba(31, 122, 69, 0.15);
  border-radius: 0.9rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.dp-search-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.dp-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.dp-search-form .form-control {
  flex: 1;
  min-width: 220px;
}
.dp-search-hint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.dp-section {
  border: 1px solid var(--labs-border-soft);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 1rem;
}
.dp-section:last-child {
  margin-bottom: 0;
}
.dp-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  background: rgba(31, 122, 69, 0.04);
}
.dp-section-header:hover {
  background: rgba(31, 122, 69, 0.08);
}
.dp-section-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.dp-section-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.dp-section-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.dp-section-body {
  display: none;
  padding: 1rem 1.1rem;
}

.dp-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dp-badge-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}
.dp-badge-primary {
  background: rgba(31, 122, 69, 0.12);
  color: var(--primary-dark);
}
.dp-badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.dp-table-wrapper {
  width: 100%;
  overflow-x: auto;
}
.dp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.dp-table th,
.dp-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--labs-border-soft);
  vertical-align: middle;
}
.dp-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  background: rgba(31, 122, 69, 0.04);
}
.dp-code {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dp-col-actions {
  text-align: center;
  width: 90px;
}
.dp-col-status {
  min-width: 160px;
}
.dp-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}
.dp-action-btn:hover {
  background: #e2e8f0;
  color: var(--primary-dark);
}

.dp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid transparent;
  margin-right: 0.3rem;
}
.dp-pill-tech {
  background: rgba(31, 122, 69, 0.1);
  color: var(--primary-dark);
  border-color: rgba(31, 122, 69, 0.2);
}
.dp-pill-outline {
  background: transparent;
  color: var(--muted);
  border-color: rgba(15, 23, 42, 0.2);
}
.dp-pill-status {
  background: rgba(31, 122, 69, 0.1);
  color: var(--primary-dark);
  border-color: rgba(31, 122, 69, 0.2);
}
.dp-pill-pendiente {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.35);
}
.dp-pill-aceptada {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}
.dp-pill-en_curso {
  background: rgba(59, 130, 246, 0.16);
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.35);
}
.dp-pill-rechazada {
  background: rgba(220, 53, 69, 0.16);
  color: #8a1c1c;
  border-color: rgba(220, 53, 69, 0.35);
}
.dp-pill-finalizada {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}
.dp-pill-anulada {
  background: rgba(220, 53, 69, 0.16);
  color: #8a1c1c;
  border-color: rgba(220, 53, 69, 0.35);
}

.dp-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .dp-experiment-card {
    padding: 1.1rem;
  }
  .dp-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dp-badge {
    margin-left: 0;
    margin-top: 0.4rem;
  }
  .dp-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .dp-search-form .form-control {
    min-width: 0;
  }
}

/* Info importante pages */
.info-shell {
  background: #ffffff;
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.info-hero {
  border-radius: 1rem;
  padding: 1.25rem;
  color: #ffffff;
  display: grid;
  gap: 0.9rem;
}
.info-hero--security {
  background: linear-gradient(135deg, #1e3b57, #0f1f2f);
}
.info-hero--equipment {
  background: linear-gradient(135deg, #123b5d, #0e2638);
}
.info-hero--rules {
  background: linear-gradient(135deg, #1f3f2d, #11261d);
}
.info-kicker {
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.88;
  font-weight: 700;
}
.info-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
}
.info-subtitle {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.info-progress {
  min-width: 220px;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
}
.progress-track {
  margin-top: 0.45rem;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}
.progress-value {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #34d399, #10b981);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.info-card {
  border: 1px solid var(--labs-border-strong);
  border-radius: 0.95rem;
  padding: 1rem;
  background: #ffffff;
  display: grid;
  gap: 0.6rem;
}
.info-card h3,
.info-card h4 {
  margin: 0;
  color: var(--primary-dark);
}
.info-icon {
  font-size: 2rem;
}
.info-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}
.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* DP thermal legacy views aligned to DTF shell */
.dtf-stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
}
.dtf-stat-tile {
  border: 1px solid rgba(20, 83, 45, 0.24);
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(11, 36, 20, 0.08);
  padding: 0.62rem 0.68rem;
  display: grid;
  gap: 0.2rem;
}
.dtf-stat-tile-icon {
  color: var(--primary-dark);
  font-size: 0.92rem;
}
.dtf-stat-tile-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
}
.dtf-stat-tile-value {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.status-badge-neutral {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.2);
}
.status-badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.38);
}
.status-badge-success {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}
.status-badge-info {
  background: rgba(59, 130, 246, 0.16);
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.35);
}
.status-badge-danger {
  background: rgba(220, 53, 69, 0.16);
  color: #8a1c1c;
  border-color: rgba(220, 53, 69, 0.35);
}
.status-done {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}
.status-current {
  background: rgba(59, 130, 246, 0.16);
  color: #1e3a8a;
  border-color: rgba(59, 130, 246, 0.35);
}
.status-pending {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.2);
}
.status-blocked {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.38);
}

.dtf-comms-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.dtf-comms-search-input {
  flex: 1;
  min-width: 240px;
}

.dtf-comms-thread {
  display: grid;
  gap: 0.7rem;
}

.dtf-comms-message {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  padding: 0.75rem 0.85rem;
}

.dtf-comms-message.is-requester {
  background: rgba(191, 219, 254, 0.22);
  border-color: rgba(59, 130, 246, 0.3);
}

.dtf-comms-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.dtf-comms-role {
  margin-left: 0.35rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(148, 163, 184, 0.24);
  color: #334155;
}

.dtf-comms-message.is-requester .dtf-comms-role {
  background: rgba(59, 130, 246, 0.2);
  color: #1e3a8a;
}

.dtf-comms-subject {
  margin-bottom: 0.28rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.dtf-comms-body {
  white-space: pre-wrap;
  color: var(--text);
  font-size: 0.9rem;
}

.dtf-comms-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

@media (max-width: 768px) {
  .dtf-comms-search-input {
    min-width: 0;
    width: 100%;
  }
  .dtf-comms-message-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.dtf-request-timeline {
  margin-bottom: 1rem;
}
.dtf-request-timeline-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.dtf-request-timeline-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  align-items: start;
}
.dtf-request-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 0.34rem;
  border: 2px solid rgba(15, 23, 42, 0.28);
  background: #ffffff;
}
.dtf-request-timeline-step.is-done .dtf-request-timeline-dot {
  border-color: rgba(34, 197, 94, 0.9);
  background: rgba(34, 197, 94, 0.82);
}
.dtf-request-timeline-step.is-current .dtf-request-timeline-dot {
  border-color: rgba(59, 130, 246, 0.9);
  background: rgba(59, 130, 246, 0.82);
}
.dtf-request-timeline-step.is-blocked .dtf-request-timeline-dot {
  border-color: rgba(245, 158, 11, 0.95);
  background: rgba(245, 158, 11, 0.82);
}
.dtf-request-timeline-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.dtf-request-transitions {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(131, 197, 163, 0.45);
  padding-top: 0.75rem;
}
.dtf-request-transition-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.dp-thermal-form-shell .card-body {
  padding: 0;
}
.dp-thermal-sample-block {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(131, 197, 163, 0.6);
  background: rgba(31, 122, 69, 0.05);
}
.dp-thermal-sample-block.is-hidden {
  display: none;
}
.dp-thermal-inline-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.dp-thermal-inline-copy label {
  margin: 0;
}
.dp-thermal-help {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
