/*
 * ClimaValid UI System · v1.7.352c
 * Capa visual conservadora: no altera permisos, datos, firmas ni lógica GxP.
 */

:root {
  --cv-color-navy-950: #0b2236;
  --cv-color-navy-800: #173a55;
  --cv-color-blue-700: #0757a8;
  --cv-color-teal-700: #087f79;
  --cv-color-teal-600: #0b9b93;
  --cv-color-teal-100: #dcf5f2;
  --cv-color-slate-700: #536b7c;
  --cv-color-slate-500: #7890a0;
  --cv-color-slate-300: #c9d8df;
  --cv-color-slate-200: #dfe9ed;
  --cv-color-slate-100: #eef4f6;
  --cv-color-canvas: #f5f8fa;
  --cv-color-surface: #ffffff;
  --cv-color-danger: #b83c35;
  --cv-color-danger-soft: #fff0ef;
  --cv-color-warning: #a15b0b;
  --cv-color-warning-soft: #fff6df;
  --cv-color-success: #16745f;
  --cv-color-success-soft: #e7f7f1;
  --cv-radius-xs: 7px;
  --cv-radius-sm: 10px;
  --cv-radius-md: 14px;
  --cv-radius-lg: 18px;
  --cv-shadow-xs: 0 1px 2px rgba(11, 34, 54, 0.05);
  --cv-shadow-sm: 0 8px 24px rgba(11, 34, 54, 0.07);
  --cv-shadow-md: 0 20px 55px rgba(11, 34, 54, 0.12);
  --cv-focus: 0 0 0 3px rgba(11, 155, 147, 0.20);
  --cv-control-height: 42px;
  --cv-control-height-compact: 36px;
  --cv-content-width: 1440px;
}

.cv-skip-link {
  position: fixed;
  z-index: 100000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: var(--cv-radius-sm);
  background: var(--cv-color-navy-950);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.16s ease;
}

.cv-skip-link:focus {
  transform: translateY(0);
}

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--cv-color-teal-600);
  outline-offset: 2px;
  box-shadow: var(--cv-focus);
}

body.is-authenticated {
  background:
    radial-gradient(circle at 6% 0%, rgba(11, 155, 147, 0.08), transparent 26rem),
    linear-gradient(180deg, #f7fafb 0%, var(--cv-color-canvas) 45%, #eef4f6 100%);
}

body.is-authenticated .app-shell {
  width: min(var(--cv-content-width), calc(100% - 36px));
  padding-top: 18px;
}

body.is-authenticated .topbar {
  position: sticky;
  z-index: 40;
  top: 10px;
  min-height: 70px;
  margin-bottom: 20px;
  padding: 14px 18px;
  overflow: visible;
  border: 1px solid rgba(201, 216, 223, 0.92);
  border-top: 1px solid rgba(201, 216, 223, 0.92);
  border-radius: var(--cv-radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--cv-shadow-sm);
  backdrop-filter: blur(18px);
}

body.is-authenticated .topbar::before {
  height: 3px;
  border-radius: 0 0 var(--cv-radius-md) var(--cv-radius-md);
  background: linear-gradient(90deg, var(--cv-color-blue-700), var(--cv-color-teal-600));
}

body.is-authenticated .brand-name {
  color: var(--cv-color-blue-700);
  letter-spacing: 0.12em;
}

body.is-authenticated .product-title {
  color: var(--cv-color-navy-800);
}

body.is-authenticated :where(
  .primary-action,
  .secondary-action,
  .danger-action,
  .button,
  .home-action-pill,
  .archive-sort-button,
  .calibration-trends-refresh-action,
  .calibration-trends-pending-action
) {
  min-height: var(--cv-control-height);
  border-radius: var(--cv-radius-sm);
  font-weight: 800;
  letter-spacing: 0.005em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body.is-authenticated :where(.primary-action, .button-primary) {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cv-color-blue-700), #086d9e 54%, var(--cv-color-teal-700));
  color: #fff;
  box-shadow: 0 9px 22px rgba(7, 87, 168, 0.18);
}

body.is-authenticated :where(.primary-action, .button-primary):hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(7, 87, 168, 0.24);
}

body.is-authenticated :where(.secondary-action, .button-secondary, .button-ghost, .home-action-pill) {
  border: 1px solid var(--cv-color-slate-300);
  background: #fff;
  color: var(--cv-color-navy-800);
  box-shadow: var(--cv-shadow-xs);
}

body.is-authenticated :where(.secondary-action, .button-secondary, .button-ghost, .home-action-pill):hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(11, 155, 147, 0.55);
  background: #f8fdfc;
}

body.is-authenticated :where(.compact, .button-small) {
  min-height: var(--cv-control-height-compact);
  padding-top: 7px;
  padding-bottom: 7px;
}

body.is-authenticated button:disabled,
body.is-authenticated [aria-disabled="true"] {
  cursor: not-allowed;
  filter: saturate(0.5);
  opacity: 0.56;
  transform: none !important;
  box-shadow: none !important;
}

body.is-authenticated button[aria-busy="true"] {
  position: relative;
  cursor: progress;
}

body.is-authenticated :where(input, select, textarea) {
  border: 1px solid var(--cv-color-slate-300);
  border-radius: var(--cv-radius-sm);
  background-color: #fff;
  color: var(--cv-color-navy-950);
  box-shadow: inset 0 1px 2px rgba(11, 34, 54, 0.03);
}

body.is-authenticated :where(input, select) {
  min-height: var(--cv-control-height);
}

body.is-authenticated :where(input, select, textarea):hover:not(:disabled) {
  border-color: #aebfc8;
}

body.is-authenticated :where(input, select, textarea):focus {
  border-color: var(--cv-color-teal-600);
  outline: 0;
  box-shadow: var(--cv-focus);
}

body.is-authenticated :where(.equipment-card, .panel, .home-summary-panel, .audit-trail, .certificate-panel) {
  border-color: var(--cv-color-slate-200);
  border-radius: var(--cv-radius-lg);
  box-shadow: var(--cv-shadow-sm);
}

body.is-authenticated :where(.eyebrow, .home-eyebrow) {
  color: var(--cv-color-teal-700);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.115em;
}

/* Estados uniformes y comprensibles. */
.cv-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--cv-color-slate-200);
  border-radius: var(--cv-radius-sm);
  background: var(--cv-color-slate-100);
  color: var(--cv-color-slate-700);
  font-size: 0.78rem;
  line-height: 1.35;
}

.cv-status::before {
  content: "i";
  display: inline-grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--cv-color-blue-700);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}

.cv-status[data-cv-state="success"] {
  border-color: #bde5d7;
  background: var(--cv-color-success-soft);
  color: var(--cv-color-success);
}

.cv-status[data-cv-state="success"]::before { content: "✓"; background: var(--cv-color-success); }

.cv-status[data-cv-state="warning"] {
  border-color: #efd49d;
  background: var(--cv-color-warning-soft);
  color: var(--cv-color-warning);
}

.cv-status[data-cv-state="warning"]::before { content: "!"; background: var(--cv-color-warning); }

.cv-status[data-cv-state="error"] {
  border-color: #edc3bf;
  background: var(--cv-color-danger-soft);
  color: var(--cv-color-danger);
}

.cv-status[data-cv-state="error"]::before { content: "×"; background: var(--cv-color-danger); }

.cv-status[data-cv-state="loading"]::before {
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: cv-spin 0.8s linear infinite;
}

@keyframes cv-spin { to { transform: rotate(360deg); } }

/* Plan Maestro: jerarquía, filtros y lectura de tabla. */
body.is-authenticated #planMasterPanel .hero-panel {
  align-items: flex-end;
  margin-bottom: 14px;
  padding: 24px 26px;
  border: 1px solid #cfe2e6;
  border-radius: var(--cv-radius-lg);
  background:
    radial-gradient(circle at 95% 20%, rgba(11, 155, 147, 0.15), transparent 16rem),
    linear-gradient(135deg, #fff, #f2f9fa);
  box-shadow: var(--cv-shadow-sm);
}

body.is-authenticated #planMasterPanel .hero-panel h1 {
  margin-top: 5px;
  color: var(--cv-color-navy-950);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
}

body.is-authenticated #planMasterPanel .kpi-grid {
  gap: 12px;
  margin-bottom: 18px;
}

body.is-authenticated #planMasterPanel .kpi-card {
  border: 1px solid var(--cv-color-slate-200);
  border-radius: var(--cv-radius-md);
  box-shadow: var(--cv-shadow-xs);
}

body.is-authenticated #planMasterPanel .panel {
  overflow: hidden;
}

body.is-authenticated #planMasterPanel .panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--cv-color-slate-200);
  background: #fbfdfd;
}

body.is-authenticated #planMasterPanel .compact-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(160px, 1fr)) auto;
  align-items: end;
  gap: 9px;
  width: min(100%, 900px);
}

body.is-authenticated #planMasterPanel .search-field {
  min-width: 0;
}

body.is-authenticated #planMasterPanel .table-wrap {
  max-height: min(66vh, 760px);
  overflow: auto;
}

body.is-authenticated #planMasterPanel .data-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f1f6f8;
  color: var(--cv-color-slate-700);
  box-shadow: inset 0 -1px var(--cv-color-slate-200);
}

body.is-authenticated #planMasterPanel .data-table tbody tr {
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

body.is-authenticated #planMasterPanel .data-table tbody tr:hover {
  background: #f5fbfa;
  box-shadow: inset 3px 0 var(--cv-color-teal-600);
}

/* Archivo y certificados: pestañas estables, filtros compactos y acciones claras. */
body.is-authenticated #documentArchivePanel {
  display: grid;
  gap: 14px;
}

body.is-authenticated #documentArchivePanel .document-archive-tabs {
  position: sticky;
  z-index: 30;
  top: 94px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--cv-color-slate-200);
  border-radius: var(--cv-radius-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--cv-shadow-sm);
  backdrop-filter: blur(16px);
}

body.is-authenticated #documentArchivePanel .document-archive-tab {
  min-height: 38px;
  border-radius: 9px;
  white-space: nowrap;
}

body.is-authenticated #documentArchivePanel .document-archive-tab.is-active,
body.is-authenticated #documentArchivePanel .document-archive-tab[aria-selected="true"] {
  background: var(--cv-color-navy-800);
  color: #fff;
  box-shadow: 0 7px 18px rgba(23, 58, 85, 0.18);
}

body.is-authenticated #documentArchivePanel .archive-browser-toolbar {
  gap: 18px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--cv-color-slate-200);
  background: linear-gradient(135deg, #fff, #f7fbfb);
}

body.is-authenticated #documentArchivePanel .archive-browser-toolbar-actions {
  align-items: center;
  gap: 8px;
}

body.is-authenticated #documentArchivePanel .archive-toolbar-search input {
  width: clamp(210px, 26vw, 360px);
}

body.is-authenticated #documentArchivePanel .archive-filter-drawer {
  margin: 0;
  padding: 14px 20px 18px;
  border: 0;
  border-bottom: 1px solid var(--cv-color-slate-200);
  border-radius: 0;
  background: #f8fbfc;
}

body.is-authenticated #documentArchivePanel .company-certificate-filter-grid,
body.is-authenticated #documentArchivePanel .document-archive-filters {
  gap: 10px;
}

body.is-authenticated #documentArchivePanel .archive-table-header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #edf4f6;
  color: var(--cv-color-slate-700);
  box-shadow: inset 0 -1px var(--cv-color-slate-200);
}

body.is-authenticated #documentArchivePanel .archive-table-list {
  min-height: 180px;
}

body.is-authenticated #documentArchivePanel .archive-row:hover,
body.is-authenticated #documentArchivePanel [data-company-certificate-id]:hover {
  background: #f5fbfa;
}

/* Tendencia: recomendación primero y datos como evidencia. */
body.is-authenticated #calibrationTrendsPanel .calibration-trends-shell {
  border: 1px solid var(--cv-color-slate-200);
  border-radius: var(--cv-radius-lg);
  box-shadow: var(--cv-shadow-sm);
}

body.is-authenticated #calibrationTrendsPanel .calibration-trends-toolbar {
  padding: 22px 24px;
  border-radius: var(--cv-radius-lg) var(--cv-radius-lg) 0 0;
  background:
    radial-gradient(circle at 92% 12%, rgba(11, 155, 147, 0.13), transparent 17rem),
    linear-gradient(135deg, #fff, #f3f9fa);
}

body.is-authenticated #calibrationTrendsPanel .calibration-trend-filters {
  gap: 10px;
  padding: 14px 18px;
  border-block: 1px solid var(--cv-color-slate-200);
  background: #f9fbfc;
}

body.is-authenticated #calibrationTrendsPanel .calibration-trends-layout {
  min-height: 520px;
}

body.is-authenticated #calibrationTrendsPanel .calibration-trends-list-panel {
  background: #f8fbfc;
}

body.is-authenticated #calibrationTrendsPanel .calibration-trend-detail-panel {
  background: #fff;
}

/* Expediente: acciones visibles, revisión guiada y contenido auditable. */
body.is-authenticated .equipment-dossier-backdrop {
  padding: 20px;
  background: rgba(11, 34, 54, 0.66);
  backdrop-filter: blur(9px);
}

body.is-authenticated .equipment-dossier-modal {
  width: min(1280px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--cv-radius-lg);
  box-shadow: 0 28px 90px rgba(11, 34, 54, 0.28);
}

body.is-authenticated .equipment-dossier-header {
  position: sticky;
  z-index: 5;
  top: 0;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--cv-color-slate-200);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.cv-dossier-review {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 20px 2px;
}

.cv-dossier-review__item {
  padding: 10px 12px;
  border: 1px solid var(--cv-color-slate-200);
  border-radius: var(--cv-radius-sm);
  background: #f8fbfc;
  color: var(--cv-color-slate-700);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.3;
}

.cv-dossier-review__item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--cv-color-navy-800);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Estados vacíos más útiles. */
body.is-authenticated :where(.empty-state, .calibration-trend-detail-empty) {
  margin: 14px;
  padding: 34px 24px;
  border: 1px dashed #bfd0d8;
  border-radius: var(--cv-radius-md);
  background: linear-gradient(135deg, #fbfdfd, #f2f7f8);
  color: var(--cv-color-slate-700);
  text-align: center;
}

/* Móvil y pantallas estrechas. */
@media (max-width: 1080px) {
  body.is-authenticated #planMasterPanel .compact-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.is-authenticated #planMasterPanel .compact-filters .search-field {
    grid-column: 1 / -1;
  }

  body.is-authenticated #documentArchivePanel .archive-browser-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  body.is-authenticated #documentArchivePanel .archive-browser-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  body.is-authenticated .app-shell {
    width: min(100% - 20px, var(--cv-content-width));
    padding-top: 10px;
  }

  body.is-authenticated .topbar {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 12px;
  }

  body.is-authenticated #planMasterPanel .hero-panel,
  body.is-authenticated #calibrationTrendsPanel .calibration-trends-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  body.is-authenticated #planMasterPanel .hero-actions,
  body.is-authenticated #calibrationTrendsPanel .calibration-trends-toolbar-actions {
    width: 100%;
  }

  body.is-authenticated #planMasterPanel .compact-filters {
    grid-template-columns: 1fr;
  }

  body.is-authenticated #planMasterPanel .compact-filters .search-field {
    grid-column: auto;
  }

  body.is-authenticated #planMasterPanel .data-table,
  body.is-authenticated #planMasterPanel .data-table tbody,
  body.is-authenticated #planMasterPanel .data-table tr,
  body.is-authenticated #planMasterPanel .data-table td {
    display: block;
    width: 100%;
  }

  body.is-authenticated #planMasterPanel .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  body.is-authenticated #planMasterPanel .data-table tbody tr {
    margin: 10px;
    width: calc(100% - 20px);
    overflow: hidden;
    border: 1px solid var(--cv-color-slate-200);
    border-radius: var(--cv-radius-md);
    background: #fff;
    box-shadow: var(--cv-shadow-xs);
  }

  body.is-authenticated #planMasterPanel .data-table td {
    display: grid;
    grid-template-columns: minmax(104px, 0.7fr) minmax(0, 1.3fr);
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
  }

  body.is-authenticated #planMasterPanel .data-table td::before {
    content: attr(data-cv-label);
    color: var(--cv-color-slate-700);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  body.is-authenticated #documentArchivePanel .document-archive-tabs {
    position: relative;
    top: auto;
  }

  body.is-authenticated #documentArchivePanel .archive-toolbar-search,
  body.is-authenticated #documentArchivePanel .archive-toolbar-search input {
    width: 100%;
  }

  .cv-dossier-review {
    grid-template-columns: 1fr 1fr;
  }

  body.is-authenticated .equipment-dossier-header {
    position: relative;
    align-items: stretch;
    flex-direction: column;
  }

  body.is-authenticated .equipment-dossier-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cv-dossier-review { grid-template-columns: 1fr; }
}

/* Equipos de laboratorio se ejecuta también como módulo embebido del mismo origen. */
body[data-build] {
  background:
    radial-gradient(circle at 94% 0%, rgba(11, 155, 147, 0.08), transparent 26rem),
    var(--cv-color-canvas);
}

body[data-build] :where(.button, .icon-button, .view-toggle-button, .nav-item, .utility-item) {
  border-radius: var(--cv-radius-sm);
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body[data-build] :where(.button-primary) {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cv-color-blue-700), var(--cv-color-teal-700));
  color: #fff;
  box-shadow: 0 9px 22px rgba(7, 87, 168, 0.18);
}

body[data-build] :where(.button-ghost, .icon-button) {
  border-color: var(--cv-color-slate-300);
  background: #fff;
  color: var(--cv-color-navy-800);
}

body[data-build] :where(.button, .icon-button):hover:not(:disabled) {
  transform: translateY(-1px);
}

body[data-build] :where(input, select, textarea) {
  border-color: var(--cv-color-slate-300);
  border-radius: var(--cv-radius-sm);
}

body[data-build] :where(input, select, textarea):focus {
  border-color: var(--cv-color-teal-600);
  outline: 0;
  box-shadow: var(--cv-focus);
}

body[data-build] :where(.hero-panel, .panel, .modal) {
  border-color: var(--cv-color-slate-200);
  border-radius: var(--cv-radius-lg);
  box-shadow: var(--cv-shadow-sm);
}

body[data-build] .hero-panel {
  background:
    radial-gradient(circle at 94% 12%, rgba(11, 155, 147, 0.13), transparent 16rem),
    linear-gradient(135deg, #fff, #f4fafa);
}

body[data-build] .panel-header {
  border-color: var(--cv-color-slate-200);
  background: #fbfdfd;
}

body[data-build] .equipment-list-table th {
  background: #edf4f6;
  color: var(--cv-color-slate-700);
}

body[data-build] .equipment-list-table tbody tr:hover {
  background: #f5fbfa;
  box-shadow: inset 3px 0 var(--cv-color-teal-600);
}

body[data-build] .modal-backdrop:not(.hidden) {
  background: rgba(11, 34, 54, 0.66);
  backdrop-filter: blur(8px);
}

body[data-build] .modal-header,
body[data-build] .modal-footer {
  border-color: var(--cv-color-slate-200);
  background: rgba(255, 255, 255, 0.96);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .cv-skip-link,
  .cv-dossier-review {
    display: none !important;
  }
}

/* v1.7.352h · Encabezados ClimaValid con contraste corregido. */
body.is-authenticated #planMasterPanel .hero-panel,
body[data-build] #equipment-view .hero-panel.equipment-hero,
body[data-build] #equipment-types-view .hero-panel.equipment-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    radial-gradient(circle at 88% 18%, rgba(45, 212, 191, 0.24), transparent 19rem),
    linear-gradient(135deg, #06192d 0%, #083c70 58%, #0b70c9 100%);
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(6, 25, 45, 0.2);
}

body.is-authenticated #planMasterPanel .hero-panel::after,
body[data-build] #equipment-view .hero-panel.equipment-hero::after,
body[data-build] #equipment-types-view .hero-panel.equipment-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -72px;
  right: -48px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.025),
    0 0 0 68px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

body.is-authenticated #planMasterPanel .hero-panel h1,
body[data-build] #equipment-view .hero-panel.equipment-hero h1,
body[data-build] #equipment-types-view .hero-panel.equipment-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.16);
}

body.is-authenticated #planMasterPanel .hero-panel .eyebrow,
body[data-build] #equipment-view .hero-panel.equipment-hero .eyebrow,
body[data-build] #equipment-types-view .hero-panel.equipment-hero .eyebrow {
  color: #7dd3fc;
}

body[data-build] #equipment-view .hero-panel.equipment-hero p,
body[data-build] #equipment-types-view .hero-panel.equipment-hero p {
  color: rgba(255, 255, 255, 0.82);
}

body.is-authenticated #planMasterPanel .hero-actions .button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(4, 20, 38, 0.16);
  backdrop-filter: blur(8px);
}

body.is-authenticated #planMasterPanel .hero-actions .button-secondary:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

body.is-authenticated #planMasterPanel .hero-actions .button-secondary:disabled,
body.is-authenticated #planMasterPanel .hero-actions .button-secondary[aria-disabled="true"] {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  filter: none;
  opacity: 0.9;
}

body[data-build] #equipment-view .hero-actions .button-primary,
body[data-build] #equipment-types-view .hero-actions .button-primary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #0873d1, #07998f);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(2, 21, 39, 0.22);
}

body[data-build] #equipment-view .hero-actions .button-primary:hover:not(:disabled),
body[data-build] #equipment-types-view .hero-actions .button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0b82e8, #08aa9f);
}

body[data-build] #equipment-view .hero-actions .button-primary:disabled,
body[data-build] #equipment-types-view .hero-actions .button-primary:disabled,
body[data-build] #equipment-view .hero-actions .button-primary[aria-disabled="true"],
body[data-build] #equipment-types-view .hero-actions .button-primary[aria-disabled="true"] {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  filter: none;
  opacity: 0.9;
}

body.is-authenticated #planMasterPanel .hero-actions .button:focus-visible,
body[data-build] #equipment-view .hero-actions .button:focus-visible,
body[data-build] #equipment-types-view .hero-actions .button:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.72);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body.is-authenticated #planMasterPanel .hero-panel,
  body[data-build] #equipment-view .hero-panel.equipment-hero,
  body[data-build] #equipment-types-view .hero-panel.equipment-hero {
    align-items: flex-start;
  }

  body.is-authenticated #planMasterPanel .hero-actions,
  body[data-build] #equipment-view .hero-actions,
  body[data-build] #equipment-types-view .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
