:root {
  --aleph-blue: #0b4f93;
  --aleph-blue-dark: #073b73;
  --aleph-blue-soft: #eaf4ff;
  --aleph-cyan: #32a7df;
  --aleph-border: #d8e5f0;
  --aleph-text: #15324a;
  --aleph-muted: #6d8294;
  --aleph-bg: #f4f8fb;
}

/* =========================
   BASE DASHBOARD ALEPH
   ========================= */

#view-dashboard {
  background:
    radial-gradient(circle at top left, rgba(50,167,223,.10), transparent 30%),
    linear-gradient(180deg, #f8fbfd 0%, #f3f8fb 100%);
  color: var(--aleph-text);
}

.aleph-dash-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11,79,147,.10);
  box-shadow: 0 8px 30px rgba(15,35,52,.05);
}

.aleph-dash-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aleph-dash-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.aleph-dash-brand-logo {
  width: 155px;
  height: auto;
  object-fit: contain;
  display: block;
}

.aleph-dash-brand-copy {
  min-width: 0;
}

.aleph-dash-brand-copy h1 {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--aleph-blue-dark);
  letter-spacing: -.01em;
}

.aleph-dash-brand-copy p {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--aleph-muted);
}

.aleph-dash-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aleph-user-box {
  text-align: right;
}

.aleph-user-box #user-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--aleph-blue);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.aleph-user-box #user-display-name {
  font-size: 12px;
  color: #556d80;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aleph-logout-btn {
  border: 1px solid rgba(11,79,147,.14);
  background: #fff;
  color: var(--aleph-blue-dark);
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .18s ease;
  box-shadow: 0 8px 20px rgba(19,44,67,.05);
}

.aleph-logout-btn:hover {
  background: #fff5f5;
  color: #b91c1c;
  border-color: rgba(185,28,28,.22);
}

.aleph-panel {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--aleph-border);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(16,40,62,.06);
}

.aleph-hero-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.97) 0%, rgba(244,249,253,.98) 58%, rgba(233,244,252,.98) 100%);
}

.aleph-hero-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -20px;
  width: 260px;
  height: 260px;
  background:
    radial-gradient(circle, rgba(50,167,223,.13), rgba(11,79,147,.04) 55%, transparent 70%);
  pointer-events: none;
}

.aleph-hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .aleph-hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.aleph-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf6ff;
  border: 1px solid #cbe1f7;
  color: var(--aleph-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.aleph-hero-title {
  margin: 0;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--aleph-blue-dark);
}

.aleph-hero-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #647b8e;
}

.aleph-hero-subcopy {
  margin-top: 8px;
  font-size: 12px;
  color: #708596;
}

.aleph-hero-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aleph-btn-primary {
  background: linear-gradient(90deg, var(--aleph-blue), #1569b3);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(11,79,147,.16);
  transition: .18s ease;
}

.aleph-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11,79,147,.22);
}

.aleph-hidden-admin {
  display: none !important;
}

.aleph-panel-line {
  margin-top: 18px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--aleph-blue), rgba(50,167,223,.65), transparent 70%);
  border-radius: 999px;
}

.aleph-panel-footer {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aleph-footer-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  color: #6f8393;
}

.aleph-footer-tags b {
  color: #b1bfca;
  font-weight: 400;
}

.aleph-footer-note {
  font-size: 10px;
  color: #6f8393;
}

.aleph-back-btn {
  background: #fff;
  border: 1px solid var(--aleph-border);
  color: var(--aleph-blue-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(15,35,52,.05);
  transition: .18s ease;
}

.aleph-back-btn:hover {
  background: #f5faff;
  border-color: #bfd8ee;
}

/* Notificaciones */
#notification-center .ux-icon-btn {
  border: 1px solid rgba(11,79,147,.12);
  background: #fff;
  color: var(--aleph-blue-dark);
  box-shadow: 0 8px 18px rgba(15,35,52,.04);
}

#notification-center .ux-icon-btn:hover {
  background: #f5faff;
}

/* Responsive */
@media (max-width: 900px) {
  .aleph-dash-header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .aleph-dash-actions {
    justify-content: space-between;
  }

  .aleph-dash-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .aleph-dash-brand-logo {
    width: 145px;
  }

  .aleph-user-box {
    text-align: left;
  }
}

@media (max-width: 1000px) {
  .aleph-worker-identity-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .aleph-worker-identity-item {
    border-bottom: 1px solid #e3ebf1;
  }

  .aleph-worker-identity-item:nth-child(2) {
    border-right: 0;
  }

  .aleph-worker-identity-item:nth-child(3),
  .aleph-worker-identity-item:nth-child(4) {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .aleph-worker-identity-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .aleph-worker-identity-grid {
    grid-template-columns: 1fr;
  }

  .aleph-worker-identity-item {
    border-right: 0;
    border-bottom: 1px solid #e3ebf1;
  }

  .aleph-worker-identity-item:nth-child(3) {
    border-bottom: 1px solid #e3ebf1;
  }

  .aleph-worker-identity-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  .aleph-annual-grid {
    grid-template-columns: 1fr;
  }

  .aleph-margin-card {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .aleph-section-heading {
    align-items: flex-start;
  }

  .aleph-annual-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .aleph-margin-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .aleph-margin-donut {
    width: 95px;
    height: 95px;
    flex-basis: 95px;
  }

  .aleph-annual-scale {
    font-size: 7px;
  }
}

/* =========================================================
   ALEPH — DATOS IDENTIFICATORIOS DEL POE
   ========================================================= */

.aleph-worker-identity {
  margin-bottom: 22px;
}

.aleph-worker-identity-header {
  margin-bottom: 12px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.aleph-worker-identity-kicker {
  display: block;

  margin-bottom: 3px;

  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;

  color: var(--aleph-blue);
}

.aleph-worker-identity-header h3 {
  margin: 0;

  font-size: 12px;
  font-weight: 800;

  color: var(--aleph-blue-dark);
}

.aleph-worker-identity-status {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 9px;

  border: 1px solid #d8e5ee;
  border-radius: 999px;

  background: #f6fafe;

  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;

  color: #6d8394;
}

.aleph-worker-identity-grid {
  display: grid;
  grid-template-columns:
    minmax(130px,.65fr)
    minmax(220px,1.5fr)
    minmax(160px,.85fr)
    minmax(210px,1fr);

  overflow: hidden;

  border: 1px solid #dce7ef;
  border-radius: 14px;

  background: #fbfdff;
}

.aleph-worker-identity-item {
  min-width: 0;
  min-height: 82px;

  padding: 15px;

  display: flex;
  align-items: center;
  gap: 11px;

  border-right: 1px solid #e3ebf1;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(248,251,253,.98)
    );
}

.aleph-worker-identity-item:last-child {
  border-right: 0;
}

.aleph-worker-identity-item--worker {
  background:
    linear-gradient(
      180deg,
      #f8fbfe,
      #f2f8fc
    );
}

.aleph-worker-identity-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--aleph-blue-soft);
  color: var(--aleph-blue);

  font-size: 12px;
}

.aleph-worker-identity-label {
  margin: 0;

  font-size: 8px;
  line-height: 1.3;

  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;

  color: #8395a3;
}

.aleph-worker-identity-value {
  margin-top: 5px;

  font-size: 11px;
  line-height: 1.35;

  font-weight: 800;

  color: #294960;

  overflow-wrap: anywhere;
}

.aleph-worker-identity-separator {
  margin: 0 5px;

  color: #afbec8;
  font-weight: 400;
}

/* =========================================================
   ALEPH — CONSUMO ANUAL / SEMÁFORO
   ========================================================= */

.aleph-annual-section {
  margin-bottom: 24px;
}

.aleph-section-heading {
  margin-bottom: 13px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.aleph-section-kicker {
  display: block;
  margin-bottom: 3px;

  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;

  color: var(--aleph-blue);
}

.aleph-section-heading h3 {
  margin: 0;

  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;

  color: var(--aleph-blue-dark);
}

.aleph-section-heading p {
  margin-top: 4px;

  font-size: 9px;
  line-height: 1.45;

  color: #8294a2;
}

.aleph-section-heading-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: var(--aleph-blue-soft);
  color: var(--aleph-blue);

  font-size: 14px;
}


/* Layout */

.aleph-annual-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr);
  gap: 14px;
}


/* Cards */

.aleph-annual-card {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(248,251,253,.98)
    );

  border: 1px solid #dce7ef;
  border-radius: 16px;

  box-shadow: 0 10px 28px rgba(16,40,62,.04);
}

.aleph-annual-card--main {
  padding: 19px;
}


/* Header dosis */

.aleph-annual-card-header {
  margin-bottom: 17px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.aleph-annual-label {
  display: block;

  font-size: 9px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .07em;

  color: #7c91a0;
}

.aleph-annual-dose-line {
  margin-top: 6px;

  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}

.aleph-annual-dose {
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;

  color: var(--aleph-blue-dark);
}

.aleph-annual-reference {
  font-size: 11px;
  font-weight: 600;

  color: #92a2ad;
}


/* Porcentaje */

.aleph-annual-percent-box {
  min-width: 82px;
  padding: 9px 11px;

  text-align: center;

  border-radius: 11px;

  background: #edf7ff;
  border: 1px solid #cee2f2;
}

.aleph-annual-percent-box span {
  display: block;

  margin-bottom: 3px;

  font-size: 7px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;

  color: #7d93a4;
}

.aleph-annual-percent-box strong {
  font-size: 15px;
  color: var(--aleph-blue);
}


/* Barra semáforo */

.aleph-semaphore-wrap {
  min-height: 34px;
  padding: 8px 9px;

  border-radius: 12px;

  background: #f5f9fc;
  border: 1px solid #e0e9f0;
}

#semaphore-bar-container {
  width: 100%;
}


/* Etiquetas extremos */

.aleph-annual-scale {
  margin-top: 8px;

  display: flex;
  justify-content: space-between;
  gap: 12px;

  font-size: 8px;
  font-weight: 700;

  color: #8a9ba7;
}

.aleph-annual-scale span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.aleph-annual-scale span:first-child i {
  color: #57a87c;
  font-size: 6px;
}

.aleph-annual-scale span:last-child i {
  color: #d9534f;
  font-size: 6px;
}


/* Nota */

.aleph-annual-note {
  margin-top: 14px;
  padding: 10px 11px;

  display: flex;
  align-items: flex-start;
  gap: 8px;

  border-radius: 10px;

  background: #f4f9fd;
  border-left: 3px solid var(--aleph-blue);
}

.aleph-annual-note i {
  margin-top: 2px;

  color: var(--aleph-blue);
  font-size: 10px;
}

.aleph-annual-note p {
  margin: 0;

  font-size: 9px;
  line-height: 1.5;

  color: #718696;
}


/* Margen */

.aleph-margin-card {
  padding: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}

.aleph-margin-donut {
  width: 105px;
  height: 105px;
  flex: 0 0 105px;

  display: grid;
  place-items: center;
}

#donut-container {
  width: 100%;
  height: 100%;
}

.aleph-margin-content {
  min-width: 0;
}

.aleph-margin-kicker {
  display: block;

  margin-bottom: 5px;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;

  color: #8295a3;
}

.aleph-margin-title {
  margin: 0;

  font-size: 9px;
  line-height: 1.35;
  font-weight: 800;

  color: var(--aleph-blue);
}

.aleph-margin-value {
  margin-top: 5px;

  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.025em;

  color: var(--aleph-blue-dark);
}

.aleph-margin-subtitle {
  margin-top: 7px;

  font-size: 9px;
  line-height: 1.45;

  color: #8395a3;
}

/* =========================================================
   ALEPH DASHBOARD — RECUPERACIÓN DEL PANEL RESPONSABLE
   Solo afecta #panel-responsable
   ========================================================= */


/* =========================
   KPI
   ========================= */

#panel-responsable .aleph-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100%;
}

#panel-responsable .aleph-kpi {
  position: relative;
  min-width: 0;
  min-height: 148px;

  padding: 16px 16px 14px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  text-align: left;

  background: #fff;
  border: 1px solid #dce7ef;
  border-radius: 16px;

  box-shadow: 0 10px 28px rgba(16,40,62,.045);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

#panel-responsable .aleph-kpi:hover {
  transform: translateY(-2px);
  border-color: #b9d5e8;
  box-shadow: 0 14px 34px rgba(16,40,62,.075);
}

#panel-responsable .aleph-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#panel-responsable .aleph-kpi-label {
  margin: 0;

  font-size: 8px;
  font-weight: 800;
  line-height: 1.3;

  text-transform: uppercase;
  letter-spacing: .07em;

  color: #7c8f9e;
}

#panel-responsable .aleph-kpi-value {
  margin-top: 7px;

  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.025em;

  color: #123e67;
}

#panel-responsable .aleph-kpi-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: #edf7ff;
  color: #0b4f93;

  font-size: 13px;
}

#panel-responsable .aleph-kpi-description {
  margin-top: 10px;

  font-size: 9px;
  line-height: 1.45;

  color: #8698a5;
}

#panel-responsable .aleph-kpi-action {
  margin-top: 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 9px;
  font-weight: 800;

  color: #0b4f93;
}

#panel-responsable .aleph-kpi--priority .aleph-kpi-icon,
#panel-responsable .aleph-kpi--preventive .aleph-kpi-icon {
  background: #fff7e7;
  color: #c68312;
}

#panel-responsable .aleph-kpi--historical .aleph-kpi-icon {
  background: #eef6ff;
  color: #2165a5;
}

#panel-responsable .aleph-kpi--annual .aleph-kpi-icon {
  background: #edf7ff;
  color: #0b4f93;
}

#panel-responsable .resp-kpi-active {
  border-color: #0b4f93 !important;
  box-shadow:
    0 0 0 2px rgba(11,79,147,.08),
    0 12px 30px rgba(16,40,62,.08) !important;
}


/* =========================
   DISTRIBUCIÓN + PRIORIDAD
   ========================= */

#panel-responsable .aleph-status-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr) !important;
  gap: 14px !important;
  align-items: stretch;
}

#panel-responsable .aleph-status-card,
#panel-responsable .aleph-priority-card {
  min-width: 0;
  padding: 18px;

  background: #fff;
  border: 1px solid #dce7ef;
  border-radius: 16px;

  box-shadow: 0 10px 28px rgba(16,40,62,.04);
}

#panel-responsable .aleph-status-card-header,
#panel-responsable .aleph-priority-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 15px;
}

#panel-responsable .aleph-status-badge {
  display: inline-flex;
  align-items: center;

  padding: 6px 9px;

  border-radius: 999px;
  border: 1px solid #cee2f1;

  background: #edf7ff;

  color: #0b4f93;

  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

#panel-responsable .aleph-distribution-track {
  width: 100%;
  min-height: 14px;

  margin: 12px 0 15px;

  overflow: hidden;

  background: #edf2f6;
  border-radius: 999px;
}

#panel-responsable .aleph-distribution-bar,
#panel-responsable #resp-distribution-bar {
  width: 100%;
  min-height: 14px;

  display: flex;

  overflow: hidden;
  border-radius: 999px;
}

#panel-responsable .aleph-status-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

#panel-responsable .aleph-status-item {
  min-width: 0;

  padding: 8px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  border-bottom: 1px solid #edf1f4;

  font-size: 9px;
  color: #657d8e;
}

#panel-responsable .aleph-status-item-copy {
  display: flex;
  align-items: center;
  gap: 7px;

  min-width: 0;
}

#panel-responsable .aleph-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;

  border-radius: 50%;

  background: #0b4f93;
}

#panel-responsable .aleph-status-item--regulatory .aleph-status-dot {
  background: #d9534f;
}

#panel-responsable .aleph-status-item--analytical .aleph-status-dot {
  background: #dda135;
}

#panel-responsable .aleph-status-item--followup .aleph-status-dot {
  background: #3487c7;
}

#panel-responsable .aleph-status-item--normal .aleph-status-dot {
  background: #4c9a72;
}


/* =========================
   FILTROS
   ========================= */

#panel-responsable .aleph-filter-panel {
  width: 100%;

  padding: 17px 18px;

  background: #fff;

  border: 1px solid #dce7ef;
  border-radius: 16px;

  box-shadow: 0 10px 28px rgba(16,40,62,.04);
}

#panel-responsable .aleph-filter-header {
  margin-bottom: 13px;
}

#panel-responsable .aleph-filter-grid {
  display: grid !important;

  grid-template-columns:
    minmax(220px, 1.5fr)
    minmax(135px, .7fr)
    minmax(125px, .65fr)
    minmax(150px, .8fr)
    auto !important;

  gap: 10px !important;

  align-items: end;
}

#panel-responsable .aleph-filter-field {
  min-width: 0;
}

#panel-responsable .aleph-filter-field label {
  display: block;

  margin-bottom: 6px;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .07em;

  color: #758a9a;
}

#panel-responsable .aleph-filter-control {
  position: relative;

  min-width: 0;
}

#panel-responsable .aleph-filter-control--icon > i {
  position: absolute;

  left: 12px;
  top: 50%;

  transform: translateY(-50%);

  z-index: 2;

  color: #8095a5;
  font-size: 11px;

  pointer-events: none;
}

#panel-responsable .aleph-filter-control input,
#panel-responsable .aleph-filter-control select,
#panel-responsable #resp-filter-search,
#panel-responsable #resp-filter-state,
#panel-responsable #resp-filter-rad,
#panel-responsable #resp-filter-sort {
  width: 100%;
  height: 40px;

  border: 1px solid #d2e0e9;
  border-radius: 10px;

  background: #fff;

  color: #354f62;

  font-size: 10px;

  outline: none;
}

#panel-responsable .aleph-filter-control input,
#panel-responsable #resp-filter-search {
  padding: 0 12px 0 34px;
}

#panel-responsable .aleph-filter-control select,
#panel-responsable #resp-filter-state,
#panel-responsable #resp-filter-rad,
#panel-responsable #resp-filter-sort {
  padding: 0 30px 0 11px;
}

#panel-responsable .aleph-filter-control input:focus,
#panel-responsable .aleph-filter-control select:focus {
  border-color: #70acd4;
  box-shadow: 0 0 0 3px rgba(11,79,147,.07);
}

#panel-responsable #resp-filter-reset {
  height: 40px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  white-space: nowrap;

  border: 1px solid #d2e0e9;
  border-radius: 10px;

  background: #f8fbfd;

  color: #617b8e;

  font-size: 9px;
  font-weight: 800;
}


/* =========================
   TABLA POE
   ========================= */

#panel-responsable #resp-surveillance-panel,
#panel-responsable .aleph-poe-panel {
  width: 100%;

  overflow: hidden;

  background: #fff;
  border: 1px solid #dce7ef;
  border-radius: 16px;

  box-shadow: 0 10px 28px rgba(16,40,62,.04);
}

#panel-responsable .aleph-poe-header {
  padding: 15px 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  background: #f8fbfd;
  border-bottom: 1px solid #e2ebf1;
}

#panel-responsable .aleph-poe-table-scroll,
#panel-responsable #resp-surveillance-panel > .overflow-x-auto {
  width: 100%;
  overflow-x: auto;
}

#panel-responsable .aleph-poe-table,
#panel-responsable #resp-surveillance-panel table {
  width: 100% !important;
  min-width: 0 !important;

  border-collapse: collapse !important;

  table-layout: auto;

  font-size: 9px;
}

@media (min-width: 651px) {
  #panel-responsable .aleph-poe-table,
  #panel-responsable #resp-surveillance-panel table {
    min-width: 1040px !important;
  }
}

#panel-responsable .aleph-poe-table thead tr,
#panel-responsable #resp-surveillance-panel thead tr {
  background:
    linear-gradient(
      90deg,
      #073f78,
      #0b4f93
    ) !important;

  color: #fff !important;
}

#panel-responsable .aleph-poe-table th,
#panel-responsable #resp-surveillance-panel th {
  padding: 10px 9px !important;

  border: 0 !important;

  white-space: nowrap;

  font-size: 8px !important;
  font-weight: 800 !important;

  text-transform: uppercase;
  letter-spacing: .04em;

  color: #fff !important;
}

#panel-responsable .aleph-poe-table td,
#panel-responsable #resp-surveillance-panel td {
  padding: 10px 9px !important;

  vertical-align: middle;

  border-bottom: 1px solid #edf1f4;

  font-size: 9px;
  line-height: 1.35;

  color: #4b6476;
}

#panel-responsable .aleph-poe-table tbody tr,
#panel-responsable #resp-surveillance-panel tbody tr {
  background: #fff;
}

#panel-responsable .aleph-poe-table tbody tr:hover,
#panel-responsable #resp-surveillance-panel tbody tr:hover {
  background: #f8fbfd;
}

#panel-responsable .aleph-poe-empty,
#panel-responsable #resp-empty-state {
  padding: 38px 20px;

  text-align: center;
}


/* =========================
   TABLA TÉCNICA
   ========================= */

#panel-responsable #resp-technical-panel {
  overflow: hidden;

  background: #fff;

  border: 1px solid #dce7ef;
  border-radius: 16px;

  box-shadow: 0 10px 28px rgba(16,40,62,.04);
}

#panel-responsable #resp-technical-panel table {
  min-width: 1400px;

  border-collapse: collapse;
}

#panel-responsable #resp-technical-panel thead tr {
  background:
    linear-gradient(
      90deg,
      #073f78,
      #0b4f93
    ) !important;

  color: #fff;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1180px) {

  #panel-responsable .aleph-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #panel-responsable .aleph-status-grid {
    grid-template-columns: 1fr !important;
  }

  #panel-responsable .aleph-filter-grid {
    grid-template-columns:
      minmax(220px, 1.4fr)
      repeat(3, minmax(130px, 1fr)) !important;
  }

  #panel-responsable #resp-filter-reset {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


@media (max-width: 760px) {

  #panel-responsable .aleph-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #panel-responsable .aleph-filter-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  #panel-responsable .aleph-filter-field--search {
    grid-column: 1 / -1;
  }

  #panel-responsable .aleph-status-legend {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 520px) {

  #panel-responsable .aleph-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  #panel-responsable .aleph-filter-grid {
    grid-template-columns: 1fr !important;
  }

  #panel-responsable .aleph-filter-field--search,
  #panel-responsable #resp-filter-reset {
    grid-column: auto;
  }

  #panel-responsable #resp-filter-reset {
    width: 100%;
  }
}

/* =========================================================
   ALEPH — CORRECCIÓN EXCLUSIVA PARA IMPRESIÓN / PDF
   Mantiene responsive móvil intacto.
   ========================================================= */

@media print {

  /* Evitar comportamientos sticky/fixed durante impresión */
  .aleph-dash-header {
    position: static !important;
    top: auto !important;
  }

  #alex-chat-shell,
  #chat-toggle,
  #chat-window {
    display: none !important;
  }


  /* =========================================
     DASHBOARD RESPONSABLE
     ========================================= */

  #panel-responsable .aleph-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #panel-responsable .aleph-kpi {
    min-height: 120px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #panel-responsable .aleph-status-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .8fr) !important;
    gap: 10px !important;
  }

  #panel-responsable .aleph-filter-grid {
    display: grid !important;
    grid-template-columns:
      minmax(190px, 1.5fr)
      minmax(110px, .7fr)
      minmax(110px, .7fr)
      minmax(125px, .8fr)
      auto !important;
    gap: 7px !important;
  }

  #panel-responsable #resp-filter-reset {
    grid-column: auto !important;
    width: auto !important;
  }


  /* =========================================
     TABLA POE — CANCELAR MODO TARJETAS MÓVIL
     ========================================= */

  .bio-portal #resp-surveillance-panel .overflow-x-auto {
    overflow: visible !important;
  }

  .bio-portal .resp-surveillance-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
  }

  .bio-portal .resp-surveillance-table thead {
    display: table-header-group !important;
  }

  .bio-portal .resp-surveillance-table tbody {
    display: table-row-group !important;
    padding: 0 !important;
  }

  .bio-portal .resp-surveillance-table tr {
    display: table-row !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .bio-portal .resp-surveillance-table td {
    display: table-cell !important;

    padding: 7px 5px !important;

    border: 0 !important;
    border-bottom: 1px solid #e5edf3 !important;

    text-align: inherit !important;

    min-height: 0 !important;
  }

  .bio-portal .resp-surveillance-table td::before {
    content: none !important;
    display: none !important;
  }

  .bio-portal .resp-surveillance-table td:nth-child(2) button,
  .bio-portal .resp-surveillance-table td:nth-child(2) p {
    text-align: left !important;
  }

  .bio-portal .resp-surveillance-table td .w-20 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .bio-portal .resp-surveillance-table .resp-open-worker {
    width: auto !important;
    min-height: 0 !important;
  }


  /* =========================================
     FICHA INDIVIDUAL
     ========================================= */

  #panel-trabajador .aleph-worker-hero-grid {
    grid-template-columns:
      minmax(0, 1.65fr)
      repeat(3, minmax(130px, .65fr)) !important;
  }

  #panel-trabajador .aleph-worker-intro {
    grid-column: auto !important;
  }

  #panel-trabajador .aleph-worker-identity-grid {
    grid-template-columns:
      minmax(110px,.65fr)
      minmax(190px,1.5fr)
      minmax(140px,.85fr)
      minmax(180px,1fr) !important;
  }

  #panel-trabajador .aleph-annual-grid {
    grid-template-columns: minmax(0,2fr) minmax(235px,.8fr) !important;
  }


  /* =========================================
     HISTORIAL MENSUAL — CANCELAR TARJETAS
     ========================================= */

  .bio-portal .monthly-history-wrap {
    overflow: visible !important;
    border: initial !important;
  }

  .bio-portal .monthly-history-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
  }

  .bio-portal .monthly-history-table thead {
    display: table-header-group !important;
  }

  .bio-portal .monthly-history-table tbody {
    display: table-row-group !important;
  }

  .bio-portal .monthly-history-table tr {
    display: table-row !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .bio-portal .monthly-history-table td {
    display: table-cell !important;
    padding: 7px 6px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5edf3 !important;
    text-align: inherit !important;
    min-height: 0 !important;
  }

  .bio-portal .monthly-history-table td::before {
    content: none !important;
    display: none !important;
  }

  .bio-portal .monthly-history-table td:last-child {
    display: table-cell !important;
    text-align: inherit !important;
  }


  /* Gráfico temporal */
  .bio-portal #timeline-chart-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }

  .bio-portal #timeline-chart-container svg {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* =========================================================
   ALEPH — CABECERA FICHA INDIVIDUAL DEL TRABAJADOR
   ========================================================= */

.aleph-worker-hero {
  margin-bottom: 18px;
  padding: 23px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.98),
      rgba(239,247,253,.98)
    );

  border: 1px solid var(--aleph-border);
  border-radius: 20px;

  box-shadow: 0 16px 42px rgba(16,40,62,.06);
}

.aleph-worker-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr)
    repeat(3, minmax(150px, .65fr));

  gap: 14px;
}

.aleph-worker-intro {
  min-width: 0;
  padding: 4px 20px 4px 2px;
}

.aleph-worker-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 10px;

  border-radius: 999px;
  border: 1px solid #cee3f3;

  background: #edf7ff;

  color: var(--aleph-blue);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
}

.aleph-worker-title {
  margin: 15px 0 0;

  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.05;

  font-weight: 800;
  letter-spacing: -.03em;

  color: var(--aleph-blue-dark);
}

.aleph-worker-explanation {
  margin-top: 10px;
  max-width: 580px;

  font-size: 11px;
  line-height: 1.6;

  color: #6e8394;
}

.aleph-worker-actions {
  margin-top: 18px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aleph-worker-action {
  min-height: 38px;
  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 1px solid #d3e1eb;
  border-radius: 10px;

  background: #fff;

  color: #527087;

  font-size: 10px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.aleph-worker-action:hover {
  background: #f2f8fc;
  color: var(--aleph-blue);
  border-color: #b7d2e6;

  transform: translateY(-1px);
}

.aleph-worker-action--primary {
  border-color: transparent;

  background:
    linear-gradient(
      90deg,
      var(--aleph-blue),
      #1569b3
    );

  color: #fff;

  box-shadow: 0 10px 22px rgba(11,79,147,.16);
}

.aleph-worker-action--primary:hover {
  background:
    linear-gradient(
      90deg,
      #073f7c,
      #0f5fa8
    );

  color: #fff;
}


/* Métricas superiores */

.aleph-worker-metric {
  min-width: 0;
  min-height: 154px;

  padding: 17px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 1px solid #dbe7ef;
  border-radius: 16px;

  background: rgba(255,255,255,.88);

  box-shadow: 0 9px 25px rgba(16,40,62,.035);
}

.aleph-worker-metric-icon {
  width: 34px;
  height: 34px;

  margin-bottom: 11px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--aleph-blue-soft);
  color: var(--aleph-blue);

  font-size: 13px;
}

.aleph-worker-metric-label {
  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;

  color: #8295a3;
}

.aleph-worker-metric-value {
  margin-top: 7px;

  font-size: 21px;
  line-height: 1.1;

  font-weight: 800;

  color: var(--aleph-blue-dark);
}

.aleph-worker-metric-sub {
  margin-top: 6px;

  font-size: 9px;
  line-height: 1.4;

  color: #91a1ac;
}


/* Responsive ficha individual */

@media (max-width: 1100px) {

  .aleph-worker-hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aleph-worker-intro {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 700px) {

  .aleph-worker-hero {
    padding: 16px;
  }

  .aleph-worker-hero-grid {
    grid-template-columns: 1fr;
  }

  .aleph-worker-intro {
    grid-column: auto;
  }

  .aleph-worker-actions {
    flex-direction: column;
  }

  .aleph-worker-action {
    width: 100%;
  }

  .aleph-worker-metric {
    min-height: 120px;
  }
}

/* =========================================================
   ALEPH — EVOLUCIÓN TEMPORAL DEL TRABAJADOR
   ========================================================= */

.aleph-timeline-section {
  margin-bottom: 24px;
}


/* Gráfico */

.aleph-timeline-card {
  margin-top: 12px;
  padding: 18px;

  border: 1px solid #dce7ef;
  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.99),
      rgba(248,251,253,.98)
    );

  box-shadow: 0 10px 28px rgba(16,40,62,.04);
}

.aleph-timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.aleph-timeline-card-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.aleph-timeline-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: var(--aleph-blue-soft);
  color: var(--aleph-blue);

  font-size: 13px;
}

.aleph-timeline-kicker {
  display: block;

  margin-bottom: 3px;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;

  color: #8295a3;
}

.aleph-timeline-card-title h4 {
  margin: 0;

  font-size: 12px;
  font-weight: 800;

  color: var(--aleph-blue-dark);
}

.aleph-timeline-unit {
  min-width: 48px;
  padding: 6px 10px;

  text-align: center;

  border: 1px solid #cee2f1;
  border-radius: 999px;

  background: #edf7ff;

  color: var(--aleph-blue);

  font-size: 9px;
  font-weight: 800;
}


/* Nota de referencias */

.aleph-timeline-reference-note {
  margin-top: 14px;
  padding: 9px 11px;

  display: flex;
  align-items: flex-start;
  gap: 8px;

  border-radius: 10px;

  background: #f4f9fd;
  border-left: 3px solid var(--aleph-blue);
}

.aleph-timeline-reference-note i {
  margin-top: 2px;

  font-size: 10px;

  color: var(--aleph-blue);
}

.aleph-timeline-reference-note p {
  margin: 0;

  font-size: 9px;
  line-height: 1.5;

  color: #718696;
}


/* Área del gráfico */

.aleph-timeline-chart-wrap {
  margin-top: 16px;
  padding: 12px 8px 4px;

  overflow: hidden;

  border: 1px solid #edf2f6;
  border-radius: 12px;

  background: #fff;
}

.aleph-timeline-chart {
  width: 100%;
}


/* =========================
   TABLA MENSUAL
   ========================= */

.aleph-monthly-block {
  margin-top: 14px;
}

.aleph-monthly-header {
  padding: 13px 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  border: 1px solid #dce7ef;
  border-bottom: 0;

  border-radius: 14px 14px 0 0;

  background: #f7fbfe;
}

.aleph-monthly-kicker {
  display: block;

  margin-bottom: 2px;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;

  color: var(--aleph-blue);
}

.aleph-monthly-header h4 {
  margin: 0;

  font-size: 11px;
  font-weight: 800;

  color: var(--aleph-blue-dark);
}

.aleph-monthly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 9px;

  white-space: nowrap;

  border: 1px solid #d5e4ee;
  border-radius: 999px;

  background: #fff;

  color: #6d8394;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .05em;
}


.aleph-monthly-wrap {
  margin-bottom: 22px;

  border: 1px solid #dce7ef;
  border-radius: 0 0 14px 14px;

  background: #fff;
}


/* Tabla */

.aleph-monthly-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 9px;
}

.aleph-monthly-table thead tr {
  background:
    linear-gradient(
      90deg,
      #073f78,
      #0b4f93
    );

  color: #fff;
}

.aleph-monthly-table th {
  padding: 10px 9px;

  border: 0;

  white-space: nowrap;

  font-size: 8px;
  line-height: 1.25;
  font-weight: 800;

  text-align: center;

  text-transform: uppercase;
  letter-spacing: .035em;

  color: #fff;
}

.aleph-monthly-table th.aleph-monthly-analysis {
  min-width: 270px;

  text-align: left;
}

.aleph-monthly-table td {
  padding: 9px;

  vertical-align: middle;

  border-bottom: 1px solid #edf1f4;

  font-size: 9px;
  line-height: 1.4;

  color: #506879;
}

.aleph-monthly-table tbody tr {
  background: #fff;
}

.aleph-monthly-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.aleph-monthly-table tbody tr:hover {
  background: #f5faff;
}

.aleph-monthly-table tbody tr:last-child td {
  border-bottom: 0;
}


/* Responsive */

@media (max-width: 700px) {

  .aleph-timeline-card {
    padding: 14px;
  }

  .aleph-timeline-card-header {
    align-items: flex-start;
  }

  .aleph-monthly-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .aleph-timeline-chart-wrap {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* =========================================================
   ALEPH — ANÁLISIS HISTÓRICO PERSONAL
   ========================================================= */

.aleph-history-section {
  margin-bottom: 10px;
}

.aleph-history-grid {
  margin-top: 12px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 12px;
}


/* Tarjetas */

.aleph-history-card {
  min-width: 0;
  min-height: 165px;

  padding: 17px;

  display: flex;
  flex-direction: column;

  border: 1px solid #dce7ef;
  border-radius: 15px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8fbfd
    );

  box-shadow: 0 9px 25px rgba(16,40,62,.035);
}

.aleph-history-card--current {
  border-top: 3px solid var(--aleph-blue);
}

.aleph-history-card-top {
  display: flex;
  align-items: center;

  gap: 8px;
}

.aleph-history-card-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: var(--aleph-blue-soft);
  color: var(--aleph-blue);

  font-size: 11px;
}

.aleph-history-card-label {
  font-size: 8px;
  line-height: 1.35;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .065em;

  color: #788d9d;
}


/* Valores */

.aleph-history-value {
  margin-top: 16px;

  font-size: 25px;
  line-height: 1;

  font-weight: 800;
  letter-spacing: -.025em;
}

.aleph-history-value--blue {
  color: var(--aleph-blue-dark);
}

.aleph-history-detail {
  margin-top: 7px;

  font-size: 9px;
  line-height: 1.45;

  color: #8294a2;
}

.aleph-history-detail strong {
  color: #425e72;
}


/* Estado dinámico */

.aleph-history-status {
  align-self: flex-start;

  margin-top: auto;
}


/* Base histórica */

.aleph-history-support {
  margin-top: auto;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 8px;
  font-weight: 700;

  color: #8295a3;
}

.aleph-history-support i {
  color: var(--aleph-blue);
}


/* =========================
   INTERPRETACIÓN INTEGRADA
   ========================= */

.aleph-history-evaluation {
  margin-top: 14px;
  padding: 18px;

  border: 1px solid #d8e5ef;
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #f7fbfe,
      #eef6fc
    );

  box-shadow: 0 10px 28px rgba(16,40,62,.035);
}

.aleph-history-evaluation-header {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 13px;
}

.aleph-history-evaluation-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      var(--aleph-blue),
      #1769ad
    );

  color: #fff;

  font-size: 13px;
}

.aleph-history-evaluation-kicker {
  display: block;

  margin-bottom: 2px;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;

  color: var(--aleph-blue);
}

.aleph-history-evaluation-header h4 {
  margin: 0;

  font-size: 12px;
  font-weight: 800;

  color: var(--aleph-blue-dark);
}


/* Texto generado por motor */

.aleph-history-evaluation-text {
  padding: 14px 15px;

  border-radius: 11px;

  background: #fff;
  border: 1px solid #dce7ef;

  font-size: 10px;
  line-height: 1.7;

  color: #536d7f;
}


/* Nota metodológica */

.aleph-history-disclaimer {
  margin-top: 11px;

  display: flex;
  align-items: flex-start;

  gap: 7px;

  font-size: 8px;
  line-height: 1.5;

  color: #8294a1;
}

.aleph-history-disclaimer i {
  margin-top: 2px;

  color: var(--aleph-blue);
}


/* Responsive */

@media (max-width: 800px) {

  .aleph-history-grid {
    grid-template-columns: 1fr;
  }

  .aleph-history-card {
    min-height: 145px;
  }
}

/* =========================================================
   ALEPH — ALEX / ASISTENTE IA
   ========================================================= */

.aleph-alex-window {
  width: 410px;

  max-height: min(78vh, 720px);

  background: #fff;

  border: 1px solid #d4e3ee;
  border-radius: 20px;

  box-shadow:
    0 25px 70px rgba(15, 42, 65, .18),
    0 8px 24px rgba(15, 42, 65, .08);
}


/* =========================
   CABECERA
   ========================= */

.aleph-alex-header {
  position: relative;

  min-height: 82px;
  padding: 14px 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(50,167,223,.28),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #06396f,
      #0b4f93 60%,
      #1568aa
    );

  color: #fff;
}

.aleph-alex-header::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      #32a7df,
      rgba(255,255,255,.3),
      transparent
    );
}


.aleph-alex-brand {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 11px;
}

.aleph-alex-avatar {
  width: 41px;
  height: 41px;
  flex: 0 0 41px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;

  background: rgba(255,255,255,.13);

  color: #fff;

  font-size: 16px;

  box-shadow: inset 0 1px rgba(255,255,255,.12);
}

.aleph-alex-brand-copy {
  min-width: 0;
}

.aleph-alex-eyebrow {
  display: block;

  margin-bottom: 2px;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: .1em;

  color: #acd8f2;
}

.aleph-alex-brand-copy h4 {
  margin: 0;

  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;

  color: #fff;
}

.aleph-alex-brand-copy h4 span {
  font-weight: 600;

  color: #d5eaf7;
}

.aleph-alex-status {
  margin-top: 3px;

  display: flex;
  align-items: center;
  gap: 5px;

  font-size: 8px;
  font-weight: 600;

  color: #c6e2f4;
}

.aleph-alex-online-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #7dd3fc;

  box-shadow: 0 0 0 3px rgba(125,211,252,.12);
}

.aleph-alex-close {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;

  background: rgba(255,255,255,.08);

  color: #fff;

  transition: .18s ease;
}

.aleph-alex-close:hover {
  background: rgba(255,255,255,.16);
}


/* =========================
   MODO LOCAL / API
   ========================= */

.aleph-alex-mode {
  padding: 10px 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  border-bottom: 1px solid #dde8ef;

  background: #f7fafc;
}

.aleph-alex-mode-copy {
  min-width: 0;
}

.aleph-alex-mode-label {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 9px;
  font-weight: 800;

  color: #39596f;
}

.aleph-alex-mode-help {
  margin-top: 2px;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;

  font-size: 8px;

  color: #8294a2;
}

.aleph-alex-mode-btn {
  flex: 0 0 auto;

  min-height: 30px;
  padding: 0 10px;

  border: 1px solid #c9dce9;
  border-radius: 8px;

  background: #fff;

  color: var(--aleph-blue);

  font-size: 8px;
  font-weight: 800;

  transition: .18s ease;
}

.aleph-alex-mode-btn:hover {
  border-color: #a8cae2;

  background: #edf7ff;
}


/* Mantiene el indicador local existente */

.aleph-alex-window .alex-local-dot {
  background: #32a7df !important;
}


/* =========================
   SUGERENCIAS
   ========================= */

.aleph-alex-suggestions {
  padding: 8px 10px;

  display: flex;
  gap: 6px;

  overflow-x: auto;

  border-bottom: 1px solid #e1e9ef;

  background: #fbfdfe;

  scrollbar-width: none;
}

.aleph-alex-suggestions::-webkit-scrollbar {
  display: none;
}

.aleph-alex-window .alex-suggestion {
  flex: 0 0 auto;

  min-height: 30px;
  padding: 0 9px;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  border: 1px solid #d7e4ed;
  border-radius: 999px;

  background: #fff;

  color: #5c7384;

  font-size: 8px;
  font-weight: 700;

  transition: .18s ease;
}

.aleph-alex-window .alex-suggestion i {
  color: var(--aleph-blue);
}

.aleph-alex-window .alex-suggestion:hover {
  border-color: #b5d3e7;

  background: #f0f8fd;

  color: var(--aleph-blue);
}


/* =========================
   ESTADO DE VOZ
   Conserva lógica UX existente
   ========================= */

.aleph-alex-window .ux-voice-state {
  border-bottom: 1px solid #dce7ef;
}

.aleph-alex-window
.ux-voice-state[data-state="listening"] {
  background:
    linear-gradient(
      90deg,
      #edf8ff,
      #f5fbff
    );
}

.aleph-alex-window
.ux-voice-state[data-state="speaking"] {
  background:
    linear-gradient(
      90deg,
      #edf5ff,
      #f3f7ff
    );
}

.aleph-alex-window
.ux-voice-state[data-state="listening"]
.ux-voice-wave i {
  background: #32a7df;
}

.aleph-alex-window
.ux-voice-state[data-state="speaking"]
.ux-voice-wave i {
  background: #0b4f93;
}


/* Voz continua */

.aleph-alex-continuous {
  padding: 7px 11px;

  border-bottom: 1px solid #dce7ef;

  background: #f7fafc;

  font-size: 9px;
}

.aleph-alex-continuous-label {
  display: flex;
  align-items: center;
  gap: 6px;

  font-weight: 700;

  color: #5c7384;
}

.aleph-alex-continuous-label i {
  color: var(--aleph-blue);
}


/* =========================
   MENSAJES
   ========================= */

.aleph-alex-messages {
  padding: 13px;

  background:
    radial-gradient(
      circle at top right,
      rgba(50,167,223,.055),
      transparent 32%
    ),
    #f7fafc;

  font-size: 10px;
}

.aleph-alex-message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      #0b4f93,
      #176aad
    );

  color: #fff;

  font-size: 10px;
}

.aleph-alex-message {
  max-width: calc(100% - 36px);

  padding: 10px 11px;

  font-size: 9px;
  line-height: 1.6;
}

.aleph-alex-message--assistant {
  border: 1px solid #dce7ef;

  border-radius: 4px 12px 12px 12px;

  background: #fff;

  color: #496477;

  box-shadow: 0 5px 14px rgba(16,40,62,.035);
}


/* Compatibilidad con mensajes dinámicos antiguos */

#chat-messages .bg-emerald-600 {
  background: var(--aleph-blue) !important;
}

#chat-messages .text-emerald-600,
#chat-messages .text-emerald-700,
#chat-messages .text-emerald-800 {
  color: var(--aleph-blue) !important;
}

#chat-messages .bg-emerald-50,
#chat-messages .bg-emerald-100 {
  background: #edf7ff !important;
}


/* =========================
   FORMULARIO
   ========================= */

.aleph-alex-form {
  padding: 10px;

  display: flex;
  align-items: center;
  gap: 7px;

  border-top: 1px solid #dce7ef;

  background: #fff;
}

.aleph-alex-input-wrap {
  position: relative;

  flex: 1;
  min-width: 0;
}

.aleph-alex-input-wrap > i {
  position: absolute;

  left: 11px;
  top: 50%;

  transform: translateY(-50%);

  pointer-events: none;

  color: #8ba0af;

  font-size: 9px;
}

#chat-input {
  width: 100%;
  height: 38px;

  padding: 0 10px 0 30px;

  border: 1px solid #d1e0e9;
  border-radius: 10px;

  background: #f9fbfc;

  color: #395469;

  font-size: 9px;

  outline: none;

  transition: .18s ease;
}

#chat-input::placeholder {
  color: #9aaab5;
}

#chat-input:focus {
  border-color: #78afd3;

  background: #fff;

  box-shadow: 0 0 0 3px rgba(11,79,147,.07);
}


/* Botones input */

.aleph-alex-control-btn,
.aleph-alex-send {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  font-size: 11px;

  transition: .18s ease;
}

.aleph-alex-control-btn {
  border: 1px solid #d4e1ea;

  background: #f6f9fb;

  color: #657d8e;
}

.aleph-alex-control-btn:hover {
  background: #edf6fc;

  color: var(--aleph-blue);
}

.aleph-alex-send {
  border: 0;

  background:
    linear-gradient(
      135deg,
      #0b4f93,
      #176aad
    );

  color: #fff;

  box-shadow: 0 7px 15px rgba(11,79,147,.17);
}

.aleph-alex-send:hover {
  transform: translateY(-1px);
}


/* =========================
   BURBUJA FLOTANTE
   ========================= */

.aleph-alex-toggle {
  position: relative;

  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;

  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(50,167,223,.8),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #073f78,
      #0b4f93
    );

  color: #fff;

  font-size: 19px;

  box-shadow:
    0 16px 35px rgba(7,59,115,.27),
    inset 0 1px rgba(255,255,255,.18);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.aleph-alex-toggle:hover {
  transform: translateY(-2px);

  box-shadow:
    0 20px 42px rgba(7,59,115,.32),
    inset 0 1px rgba(255,255,255,.18);
}

.aleph-alex-toggle-status {
  position: absolute;

  right: 3px;
  bottom: 4px;

  width: 10px;
  height: 10px;

  border: 2px solid #fff;
  border-radius: 50%;

  background: #32a7df;
}


/* =========================
   MÓVIL
   No reemplaza las reglas de responsive.css
   ========================= */

@media (max-width: 700px) {

  .aleph-alex-header {
    min-height: 72px;
  }

  .aleph-alex-eyebrow {
    display: none;
  }

  .aleph-alex-message {
    max-width: calc(100% - 34px);
  }
}

/* =========================================================
   ALEPH — HEADER INSTITUCIONAL V2
   PC / TABLET / MÓVIL
   ========================================================= */

.aleph-dash-header {
  position: sticky;
  top: 0;
  z-index: 40;

  width: 100%;

  background:
    radial-gradient(
      circle at 75% -100%,
      rgba(50,167,223,.28),
      transparent 48%
    ),
    linear-gradient(
      100deg,
      #08294d 0%,
      #093c68 52%,
      #075269 100%
    );

  border-bottom: 1px solid rgba(255,255,255,.10);

  box-shadow: 0 7px 24px rgba(6,35,64,.13);

  backdrop-filter: none;
}


.aleph-dash-header-inner {
  width: 100%;
  max-width: 1440px;

  margin: 0 auto;

  min-height: 76px;
  padding: 10px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


/* =========================
   MARCA
   ========================= */

.aleph-dash-brand {
  min-width: 0;

  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 14px;
}


/* Placa blanca para conservar los colores reales del logo */

.aleph-dash-logo-panel {
  min-width: 142px;
  height: 54px;

  padding: 5px 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.30);
  border-radius: 12px;

  background: rgba(255,255,255,.98);

  box-shadow:
    0 4px 14px rgba(2,26,51,.11),
    inset 0 1px rgba(255,255,255,.7);
}


.aleph-dash-brand-logo {
  display: block;

  width: 126px;
  max-height: 43px;

  object-fit: contain;
}


/* Separador */

.aleph-dash-brand-divider {
  width: 1px;
  height: 39px;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(255,255,255,.38),
      transparent
    );
}


/* Título */

.aleph-dash-brand-copy {
  min-width: 0;
}


.aleph-dash-brand-copy h1 {
  margin: 0;

  color: #ffffff;

  font-size: 15px;
  line-height: 1.15;

  font-weight: 800;
  letter-spacing: -.012em;
}


.aleph-dash-brand-copy p {
  margin-top: 4px;

  color: #a9c9df;

  font-size: 8px;
  line-height: 1.35;

  font-weight: 500;
}


/* =========================
   ACCIONES
   ========================= */

.aleph-dash-actions {
  flex-shrink: 0;

  display: flex;
  align-items: center;

  gap: 12px;
}


/* Campana */

#notification-center .aleph-header-notification,
#notification-center .ux-icon-btn {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.20);
  border-radius: 11px;

  background: rgba(255,255,255,.10);

  color: #fff;

  box-shadow: none;
}


#notification-center .aleph-header-notification:hover,
#notification-center .ux-icon-btn:hover {
  background: rgba(255,255,255,.18);

  color: #fff;
}


/* El menú debe seguir blanco */

#notifications-menu {
  color: #334155;
}


/* =========================
   USUARIO
   ========================= */

.aleph-user-box {
  min-width: 0;

  padding-left: 12px;

  display: flex;
  align-items: center;

  gap: 9px;

  border-left: 1px solid rgba(255,255,255,.18);

  text-align: left;
}


.aleph-user-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      rgba(50,167,223,.82),
      rgba(255,255,255,.15)
    );

  color: #fff;

  font-size: 11px;
}


.aleph-user-copy {
  min-width: 0;
}


.aleph-user-box #user-badge {
  margin: 0;

  color: #51b8eb;

  font-size: 7px;
  line-height: 1;

  font-weight: 900;

  letter-spacing: .10em;
  text-transform: uppercase;
}


.aleph-user-box #user-display-name {
  margin-top: 4px;

  max-width: 230px;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;

  color: #c5dbe9;

  font-size: 9px;
  line-height: 1.2;

  font-weight: 600;
}


/* =========================
   SALIR
   ========================= */

.aleph-logout-btn {
  min-height: 38px;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid rgba(255,255,255,.65);
  border-radius: 11px;

  background: #fff;

  color: #07447b;

  font-size: 9px;
  font-weight: 800;

  box-shadow: 0 5px 15px rgba(2,27,51,.10);

  transition:
    transform .18s ease,
    background .18s ease;
}


.aleph-logout-btn:hover {
  transform: translateY(-1px);

  background: #f0f8fd;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .aleph-dash-header-inner {
    flex-direction: row !important;
    align-items: center !important;

    min-height: 70px;

    gap: 12px;
  }


  .aleph-dash-brand {
    flex-direction: row !important;
    align-items: center !important;

    gap: 10px;
  }


  .aleph-dash-logo-panel {
    min-width: 118px;
    height: 48px;

    padding: 5px 8px;
  }


  .aleph-dash-brand-logo {
    width: 104px;
  }


  .aleph-dash-brand-copy h1 {
    font-size: 13px;
  }


  .aleph-dash-brand-copy p {
    font-size: 7px;
  }


  .aleph-user-box #user-display-name {
    max-width: 140px;
  }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 650px) {

  .aleph-dash-header {
    position: sticky;
  }


  .aleph-dash-header-inner {
    padding:
      8px
      max(10px, env(safe-area-inset-right))
      8px
      max(10px, env(safe-area-inset-left));

    display: grid !important;

    grid-template-columns: minmax(0, 1fr) auto;

    gap: 7px 8px;
  }


  /* Primera fila */

  .aleph-dash-brand {
    min-width: 0;

    gap: 8px;
  }


  .aleph-dash-logo-panel {
    min-width: 98px;
    width: 98px;
    height: 43px;

    padding: 4px 6px;

    border-radius: 9px;
  }


  .aleph-dash-brand-logo {
    width: 87px;
    max-height: 35px;
  }


  .aleph-dash-brand-divider {
    height: 31px;
  }


  .aleph-dash-brand-copy h1 {
    font-size: 11px;
    line-height: 1.15;
  }


  .aleph-dash-brand-copy p {
    display: none;
  }


  /* Acciones */

  .aleph-dash-actions {
    gap: 5px;
  }


  #notification-center .aleph-header-notification,
  #notification-center .ux-icon-btn {
    width: 35px;
    height: 35px;

    border-radius: 10px;
  }


  .aleph-user-box {
    padding-left: 5px;

    gap: 5px;

    border-left: 0;
  }


  .aleph-user-icon {
    display: none;
  }


  .aleph-user-box #user-badge {
    font-size: 6px;
  }


  .aleph-user-box #user-display-name {
    max-width: 82px;

    margin-top: 3px;

    font-size: 7px;
  }


  .aleph-logout-btn {
    width: 35px;
    height: 35px;
    min-height: 35px;

    padding: 0;

    border-radius: 10px;
  }


  .aleph-logout-btn .bio-logout-label {
    display: none;
  }

}


/* Móviles muy pequeños */

@media (max-width: 430px) {

  .aleph-dash-logo-panel {
    width: 91px;
    min-width: 91px;
  }


  .aleph-dash-brand-logo {
    width: 80px;
  }


  .aleph-dash-brand-divider {
    display: none;
  }


  .aleph-dash-brand-copy h1 {
    max-width: 120px;

    font-size: 10px;
  }


  .aleph-user-box #user-display-name {
    display: none;
  }

}

/* =========================================================
   ALEPH — CABECERA DE FICHA INDIVIDUAL
   PC / TABLET / MÓVIL
   ========================================================= */

#panel-trabajador .aleph-worker-sheet {
  width: 100%;
  padding: 20px;

  background: #ffffff;

  border: 1px solid #d8e5ef;
  border-radius: 18px;

  box-shadow: 0 12px 34px rgba(16,40,62,.045);
}


/* =========================
   CABECERA
   ========================= */

#panel-trabajador .aleph-worker-sheet-header {
  width: 100%;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;
}


#panel-trabajador .aleph-worker-sheet-header > div:first-child {
  min-width: 0;
  flex: 1;
}


#panel-trabajador .aleph-worker-sheet-kicker {
  display: inline-flex;
  align-items: center;

  margin-bottom: 6px;

  font-size: 8px;
  line-height: 1;

  font-weight: 900;

  text-transform: uppercase;
  letter-spacing: .11em;

  color: var(--aleph-blue);
}


#panel-trabajador .aleph-worker-sheet-header h2 {
  margin: 0;

  max-width: 760px;

  font-size: 16px;
  line-height: 1.25;

  font-weight: 800;
  letter-spacing: -.015em;

  color: var(--aleph-blue-dark);
}


#panel-trabajador .aleph-worker-sheet-header p {
  margin: 6px 0 0;

  font-size: 10px;
  line-height: 1.45;

  color: #778d9d;
}


#panel-trabajador .aleph-worker-sheet-header p
#user-institution {
  font-weight: 700;

  color: #566f82;
}


#panel-trabajador .aleph-worker-separator {
  margin: 0 6px;

  color: #aebcc6;
}


/* =========================
   ESTADO + PDF
   ========================= */

#panel-trabajador .aleph-worker-sheet-actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 9px;
}


#panel-trabajador .aleph-worker-overall-badge {
  min-height: 32px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;

  border: 1px solid #cee2f1;
  border-radius: 999px;

  font-size: 8px;
  line-height: 1;

  font-weight: 900;

  text-transform: uppercase;
  letter-spacing: .05em;
}


/* Color por defecto.
   Si app.js cambia el estado, sus clases pueden seguir
   modificando el color semántico. */
#panel-trabajador
.aleph-worker-overall-badge:not(.bg-red-100):not(.bg-amber-100):not(.bg-emerald-100) {
  background: #edf7ff;

  color: var(--aleph-blue);
}


#panel-trabajador .aleph-worker-export {
  min-height: 38px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 0;
  border-radius: 10px;

  background:
    linear-gradient(
      90deg,
      var(--aleph-blue),
      #1569b3
    );

  color: #fff;

  font-size: 9px;
  font-weight: 800;

  white-space: nowrap;

  box-shadow: 0 9px 20px rgba(11,79,147,.15);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}


#panel-trabajador .aleph-worker-export:hover {
  transform: translateY(-1px);

  box-shadow: 0 12px 24px rgba(11,79,147,.20);
}


#panel-trabajador .aleph-worker-export i {
  font-size: 11px;

  color: #fff;
}


/* =========================
   LÍNEA INSTITUCIONAL
   ========================= */

#panel-trabajador .aleph-worker-sheet-line {
  width: 100%;
  height: 2px;

  margin: 15px 0 17px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--aleph-blue),
      rgba(50,167,223,.65),
      transparent 75%
    );
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

  #panel-trabajador .aleph-worker-sheet {
    padding: 17px;
  }


  #panel-trabajador .aleph-worker-sheet-header {
    gap: 13px;
  }


  #panel-trabajador .aleph-worker-sheet-header h2 {
    font-size: 14px;
  }


  #panel-trabajador .aleph-worker-sheet-actions {
    flex-direction: column;
    align-items: flex-end;
  }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 650px) {

  #panel-trabajador .aleph-worker-sheet {
    padding: 14px;

    border-radius: 14px;
  }


  #panel-trabajador .aleph-worker-sheet-header {
    flex-direction: column;

    gap: 13px;
  }


  #panel-trabajador .aleph-worker-sheet-kicker {
    font-size: 7px;
  }


  #panel-trabajador .aleph-worker-sheet-header h2 {
    font-size: 13px;
    line-height: 1.3;
  }


  #panel-trabajador .aleph-worker-sheet-header p {
    font-size: 9px;
  }


  #panel-trabajador .aleph-worker-sheet-actions {
    width: 100%;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
  }


  #panel-trabajador .aleph-worker-overall-badge {
    min-height: 34px;

    padding: 0 10px;

    font-size: 7px;
  }


  #panel-trabajador .aleph-worker-export {
    min-height: 36px;

    padding: 0 11px;

    font-size: 8px;
  }

}


/* Móviles pequeños */

@media (max-width: 430px) {

  #panel-trabajador .aleph-worker-sheet-actions {
    flex-direction: column;
    align-items: stretch;
  }


  #panel-trabajador .aleph-worker-overall-badge,
  #panel-trabajador .aleph-worker-export {
    width: 100%;
  }

}

/* ===== PATCH FINO DASHBOARD ALEPH - 2026-09-10 ===== */

/* 1) Filtros: dejar un solo caret y quitar iconos extra */
#panel-responsable .aleph-filter-control--select {
  position: relative;
}

#panel-responsable .aleph-filter-control--select select {
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
  padding-right: 42px;
}

#panel-responsable .aleph-filter-control--select i,
#panel-responsable .aleph-filter-control--select svg {
  display: none !important;
}

#panel-responsable .aleph-filter-control--select::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #0f4c81;
  pointer-events: none;
}

/* 2) Ajuste visual de cabeceras secundarias */
#panel-responsable .aleph-poe-header i,
#panel-responsable .aleph-technical-summary i {
  flex-shrink: 0;
}

/* 3) Evitar que tablas antiguas revienten el ancho */
#panel-responsable .aleph-poe-table-scroll,
#panel-responsable .aleph-technical-scroll,
#panel-trabajador .aleph-history-table-scroll {
  width: 100%;
  overflow-x: auto;
}

#panel-responsable .aleph-poe-table,
#panel-responsable .aleph-technical-table,
#panel-trabajador .aleph-history-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

/* =========================================================
   ALEPH — HISTORIAL MENSUAL RESPONSIVO
   ========================================================= */

#panel-trabajador .aleph-monthly-block {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  margin: 18px 0 0 !important;

  overflow: hidden;

  background: #fff;

  border: 1px solid #dce7ef;
  border-radius: 16px;

  box-shadow: 0 10px 28px rgba(16,40,62,.04);
}


/* Cabecera */

#panel-trabajador .aleph-monthly-header {
  width: 100%;
  min-width: 0;

  padding: 15px 17px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;

  background:
    linear-gradient(
      180deg,
      #fbfdff,
      #f7fafc
    );

  border-bottom: 1px solid #dfe9f0;
}

#panel-trabajador .aleph-monthly-kicker {
  display: block;

  margin-bottom: 3px;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .09em;

  color: #0b4f93;
}

#panel-trabajador .aleph-monthly-header h4 {
  margin: 0;

  font-size: 13px;
  line-height: 1.3;

  font-weight: 800;

  color: #123e67;
}

#panel-trabajador .aleph-monthly-header p {
  margin-top: 4px;

  font-size: 9px;
  line-height: 1.45;

  color: #8294a2;
}

#panel-trabajador .aleph-monthly-badge {
  flex-shrink: 0;

  padding: 6px 10px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  border: 1px solid #cee2f1;
  border-radius: 999px;

  background: #edf7ff;

  color: #0b4f93;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .05em;
}


/* Contenedor tabla */

#panel-trabajador .aleph-monthly-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;
}


/* Tabla */

#panel-trabajador .aleph-monthly-table {
  width: 100% !important;
  max-width: 100% !important;

  min-width: 0 !important;

  margin: 0 !important;

  border-collapse: collapse;
  table-layout: fixed;
}


/* Cabecera tabla */

#panel-trabajador .aleph-monthly-table thead {
  background:
    linear-gradient(
      90deg,
      #073f78,
      #0b4f93
    );
}

#panel-trabajador .aleph-monthly-table th {
  padding: 10px 9px;

  border: 0;

  text-align: left;

  color: #fff;

  font-size: 8px;
  line-height: 1.3;

  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .035em;

  white-space: normal;
}


/* Filas */

#panel-trabajador .aleph-monthly-table td {
  padding: 10px 9px;

  vertical-align: middle;

  border-bottom: 1px solid #e8eef3;

  font-size: 9px;
  line-height: 1.4;

  color: #486274;

  white-space: normal;
  overflow-wrap: anywhere;
}

#panel-trabajador .aleph-monthly-table tbody tr {
  background: #fff;
}

#panel-trabajador .aleph-monthly-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

#panel-trabajador .aleph-monthly-table tbody tr:hover {
  background: #f4f9fd;
}

#panel-trabajador .aleph-monthly-table tbody tr:last-child td {
  border-bottom: 0;
}


/* Proporciones de columnas */

#panel-trabajador .aleph-monthly-table th:nth-child(1),
#panel-trabajador .aleph-monthly-table td:nth-child(1) {
  width: 8%;
}

#panel-trabajador .aleph-monthly-table th:nth-child(2),
#panel-trabajador .aleph-monthly-table td:nth-child(2) {
  width: 12%;
}

#panel-trabajador .aleph-monthly-table th:nth-child(3),
#panel-trabajador .aleph-monthly-table td:nth-child(3) {
  width: 13%;
}

#panel-trabajador .aleph-monthly-table th:nth-child(4),
#panel-trabajador .aleph-monthly-table td:nth-child(4) {
  width: 17%;
}

#panel-trabajador .aleph-monthly-table th:nth-child(5),
#panel-trabajador .aleph-monthly-table td:nth-child(5) {
  width: 16%;
}

#panel-trabajador .aleph-monthly-table th:nth-child(6),
#panel-trabajador .aleph-monthly-table td:nth-child(6) {
  width: 34%;
}


/* Tablet / móvil */

@media (max-width: 760px) {

  #panel-trabajador .aleph-monthly-header {
    flex-direction: column;
  }

  #panel-trabajador .aleph-monthly-table {
    min-width: 760px !important;
  }

}


/* =========================================================
   ALEPH — ALEX / PULIDO VISUAL FINAL
   ========================================================= */

.aleph-alex-window {
  width: 410px;
  max-width: calc(100vw - 24px);
  border-radius: 18px;
}

.aleph-alex-header {
  min-height: 76px;
  padding: 12px 14px;
}

.aleph-alex-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
  font-size: 15px;
}

.aleph-alex-eyebrow {
  font-size: 7.5px;
}

.aleph-alex-brand-copy h4 {
  font-size: 12.5px;
}

.aleph-alex-status {
  margin-top: 2px;
  font-size: 8.5px;
}

.aleph-alex-mode {
  padding: 8px 11px;
  background: #f8fbfd;
}

.aleph-alex-mode-label {
  font-size: 9.5px;
}

.aleph-alex-mode-help {
  font-size: 8.5px;
}

.aleph-alex-mode-btn {
  min-height: 29px;
  font-size: 8.5px;
}

.aleph-alex-suggestions {
  padding: 7px 10px;
}

.aleph-alex-window .alex-suggestion {
  min-height: 29px;
  padding: 0 9px;
  font-size: 8.5px;
}

.aleph-alex-window .ux-voice-state {
  padding: 9px 11px;
}

.aleph-alex-window .ux-voice-state-copy strong {
  font-size: 10px;
}

.aleph-alex-window .ux-voice-state-copy span {
  font-size: 8.5px;
}

.aleph-alex-messages {
  padding: 13px;
  font-size: 10.5px;
}

.aleph-alex-message {
  padding: 10px 11px;
  font-size: 10px;
  line-height: 1.55;
}

#chat-input {
  height: 40px;
  font-size: 10px;
}

.aleph-alex-control-btn,
.aleph-alex-send {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

@media (max-width: 700px) {
  .aleph-alex-shell {
    right: 12px !important;
    bottom: 12px !important;
  }

  .aleph-alex-window {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 94px);
    border-radius: 16px;
  }

  .aleph-alex-messages {
    max-height: 42vh;
  }

  .aleph-alex-mode-help {
    display: none;
  }
}

/* Alex — compatibilidad con avatares dinámicos antiguos */
#chat-messages .bg-emerald-700 {
  background: var(--aleph-blue) !important;
}

/* =========================================================
   ALEPH — POE / RESPONSIVE MÓVIL DEFINITIVO
   ========================================================= */

@media (max-width: 650px) {

  /* =======================================================
     CABECERA POE
     ======================================================= */

  #panel-responsable .aleph-poe-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;

    padding: 15px !important;

    background:
      linear-gradient(
        180deg,
        #fbfdff 0%,
        #f5f9fc 100%
      ) !important;

    border-bottom: 1px solid #e0eaf1 !important;
  }

  #panel-responsable .aleph-poe-header > div:first-child {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;

    min-width: 0 !important;
  }

  #panel-responsable .aleph-poe-header i {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;

    display: grid !important;
    place-items: center !important;

    border: 1px solid #d6e6f2 !important;
    border-radius: 10px !important;

    background: #edf7ff !important;
    color: #0b4f93 !important;

    font-size: 13px !important;
  }

  #panel-responsable .aleph-poe-header h3 {
    margin: 0 !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;

    color: #073f78 !important;

    text-align: left !important;
  }

  #panel-responsable .aleph-poe-header p {
    margin: 3px 0 0 !important;

    font-size: 9px !important;
    line-height: 1.45 !important;

    color: #687f90 !important;

    text-align: left !important;
  }

  #panel-responsable #resp-results-count {
    flex: 0 0 auto !important;

    font-size: 9px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;

    color: #4d687c !important;

    text-align: right !important;
  }


  /* =======================================================
     CONTENEDOR
     ======================================================= */

  #panel-responsable .aleph-poe-table-scroll,
  #panel-responsable #resp-surveillance-panel > .overflow-x-auto {
    width: 100% !important;
    max-width: 100% !important;

    overflow: visible !important;
  }

  #panel-responsable .resp-surveillance-table,
  #panel-responsable .aleph-poe-table {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    table-layout: auto !important;

    box-sizing: border-box !important;
  }

  #panel-responsable .resp-surveillance-table thead,
  #panel-responsable .aleph-poe-table thead {
    display: none !important;
  }

  #panel-responsable .resp-surveillance-table tbody,
  #panel-responsable .aleph-poe-table tbody {
    display: grid !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    padding: 12px !important;

    gap: 12px !important;

    box-sizing: border-box !important;
  }


  /* =======================================================
     TARJETA POE
     ======================================================= */

  #panel-responsable .resp-surveillance-table tbody tr {
    display: grid !important;

    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr) !important;

    column-gap: 16px !important;
    row-gap: 0 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 14px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    border: 1px solid #d9e5ee !important;
    border-radius: 14px !important;

    background: #fff !important;

    box-shadow:
      0 4px 14px rgba(15, 42, 65, .04) !important;
  }


  /* =======================================================
     CELDAS
     ======================================================= */

  #panel-responsable .resp-surveillance-table td {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;

    padding: 9px 0 !important;

    box-sizing: border-box !important;

    border: 0 !important;

    text-align: left !important;

    overflow: visible !important;

    visibility: visible !important;
    opacity: 1 !important;
  }

  #panel-responsable .resp-surveillance-table td::before {
    content: attr(data-label) !important;

    display: block !important;

    margin-bottom: 5px !important;

    font-size: 7.5px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;

    letter-spacing: .06em !important;
    text-transform: uppercase !important;

    color: #758a9a !important;

    text-align: left !important;
  }


  /* 1 — POE */
  #panel-responsable
  .resp-surveillance-table
  td:nth-child(1) {
    display: none !important;
  }


  /* 2 — Trabajador */
  #panel-responsable
  .resp-surveillance-table
  td:nth-child(2) {
    grid-column: 1 / -1 !important;

    padding: 0 0 11px !important;

    border-bottom:
      1px solid #e6edf2 !important;
  }

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(2)::before {
    display: none !important;
  }

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(2) button {
    width: auto !important;
    max-width: 100% !important;

    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    color: #064b8e !important;

    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;

    text-align: left !important;
    white-space: normal !important;
  }

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(2) p {
    margin: 4px 0 0 !important;

    font-size: 8px !important;

    color: #8296a5 !important;

    text-align: left !important;
  }


  /* 3 — Radiación / 4 — Mes */

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(3),

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(4) {
    display: flex !important;
    grid-column: auto !important;

    visibility: visible !important;
    opacity: 1 !important;
  }


  /* 5 — Acumulado */

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(5) {
    grid-column: 1 / -1 !important;

    border-top:
      1px solid #edf2f6 !important;
  }

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(5) .w-20 {
    width: 100% !important;
    max-width: 180px !important;

    margin: 6px 0 0 !important;
  }


  /* 6 — Preventivo / 7 — Histórico */

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(6),

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(7) {
    display: flex !important;
    grid-column: auto !important;

    visibility: visible !important;
    opacity: 1 !important;
  }

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(6) span,

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(7) span {
    width: auto !important;
    max-width: 100% !important;

    white-space: normal !important;

    text-align: left !important;
  }


  /* 8 — Estado */

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(8) {
    grid-column: 1 / -1 !important;

    border-top:
      1px solid #edf2f6 !important;
  }

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(8) span {
    width: auto !important;
    max-width: 100% !important;

    white-space: normal !important;

    text-align: left !important;
  }


  /* 9 — Ver ficha */

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(9) {
    display: flex !important;

    grid-column: 1 / -1 !important;

    width: 100% !important;
    max-width: 100% !important;

    padding: 11px 0 0 !important;

    overflow: visible !important;

    border-top:
      1px solid #edf2f6 !important;
  }

  #panel-responsable
  .resp-surveillance-table
  td:nth-child(9)::before {
    display: none !important;
  }

  #panel-responsable
  .resp-surveillance-table
  .resp-open-worker {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    min-height: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    padding: 0 14px !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 10px !important;

    background: #0b4f93 !important;

    color: #fff !important;

    font-size: 9.5px !important;
    line-height: 1 !important;
    font-weight: 800 !important;

    text-align: center !important;
    white-space: nowrap !important;

    overflow: visible !important;

    visibility: visible !important;
    opacity: 1 !important;
  }

  #panel-responsable
  .resp-surveillance-table
  .resp-open-worker i {
    display: inline-block !important;

    color: #fff !important;

    font-size: 10px !important;

    visibility: visible !important;
    opacity: 1 !important;
  }


  /* =======================================================
     TABLA TÉCNICA
     ======================================================= */

  #panel-responsable .aleph-technical-summary {
    display: flex !important;
    align-items: flex-start !important;

    padding: 14px 15px !important;

    list-style: none !important;

    background:
      linear-gradient(
        180deg,
        #fbfdff 0%,
        #f6f9fc 100%
      ) !important;
  }

  #panel-responsable
  .aleph-technical-summary::-webkit-details-marker {
    display: none !important;
  }

  #panel-responsable
  .aleph-technical-summary::marker {
    content: "" !important;
  }

  #panel-responsable .aleph-technical-heading {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;

    min-width: 0 !important;
  }

  #panel-responsable .aleph-technical-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 10px !important;

    background: #edf7ff !important;

    color: #0b4f93 !important;
  }

  #panel-responsable .aleph-technical-title {
    margin: 0 !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;

    color: #073f78 !important;
  }

  #panel-responsable .aleph-technical-copy {
    margin-top: 3px !important;

    font-size: 9px !important;
    line-height: 1.45 !important;

    color: #687f90 !important;
  }

  #panel-responsable .aleph-technical-scroll {
    width: 100% !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    -webkit-overflow-scrolling: touch;
  }

  #panel-responsable
  #resp-technical-panel table {
    width: auto !important;

    min-width: 900px !important;
  }

}

/* =========================================================
   ALEPH — FIX DEFINITIVO ANCHO POE MÓVIL
   Neutraliza min-width de escritorio
   ========================================================= */

@media (max-width: 650px) {

  #panel-responsable
  #resp-surveillance-panel
  table.resp-surveillance-table {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    table-layout: auto !important;

    box-sizing: border-box !important;
  }

  #panel-responsable
  #resp-surveillance-panel
  table.resp-surveillance-table tbody {
    display: grid !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
  }

  #panel-responsable
  #resp-surveillance-panel
  table.resp-surveillance-table tbody tr {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
  }
}

/* =========================================================
   ALEPH — FICHA INDIVIDUAL / MÓVIL FINAL
   Indicador anual + historial mensual
   ========================================================= */

@media (max-width: 650px) {

  /* =======================================================
     INDICADOR ANUAL
     ======================================================= */

  #panel-trabajador .aleph-annual-section {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #panel-trabajador .aleph-annual-grid {
    display: grid !important;

    grid-template-columns:
      minmax(0, 1fr) !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    gap: 14px !important;
  }

  #panel-trabajador .aleph-annual-card,
  #panel-trabajador .aleph-annual-card--main,
  #panel-trabajador .aleph-margin-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
  }

  #panel-trabajador .aleph-annual-card--main {
    padding: 15px !important;
  }

  #panel-trabajador .aleph-annual-card-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    gap: 10px !important;

    margin-bottom: 14px !important;
  }

  #panel-trabajador .aleph-annual-percent-box {
    width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    text-align: left !important;
  }

  #panel-trabajador .aleph-semaphore-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
  }

  #panel-trabajador #semaphore-bar-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #panel-trabajador .aleph-annual-scale {
    width: 100% !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;

    gap: 10px !important;

    font-size: 7px !important;
  }

  #panel-trabajador .aleph-annual-scale span {
    min-width: 0 !important;
    max-width: 48% !important;

    white-space: normal !important;
  }

  #panel-trabajador .aleph-annual-note {
    width: 100% !important;

    box-sizing: border-box !important;
  }


  /* Margen disponible / donut */

  #panel-trabajador .aleph-margin-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    padding: 17px !important;

    text-align: center !important;
  }

  #panel-trabajador .aleph-margin-donut {
    width: 110px !important;
    height: 110px !important;

    flex: 0 0 110px !important;

    margin: 0 auto 14px !important;
  }


  /* =======================================================
     HISTORIAL MENSUAL
     Tabla -> fichas por mes
     ======================================================= */

  #panel-trabajador .aleph-monthly-block {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    overflow: hidden !important;
  }

  #panel-trabajador .aleph-monthly-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    gap: 10px !important;

    padding: 14px !important;
  }

  #panel-trabajador .aleph-monthly-badge {
    align-self: flex-start !important;
  }

  #panel-trabajador .aleph-monthly-table-wrap,
  #panel-trabajador .monthly-history-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    overflow: visible !important;
  }

  #panel-trabajador .aleph-monthly-table,
  #panel-trabajador .monthly-history-table {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    table-layout: auto !important;

    box-sizing: border-box !important;
  }

  #panel-trabajador .aleph-monthly-table thead,
  #panel-trabajador .monthly-history-table thead {
    display: none !important;
  }

  #panel-trabajador .aleph-monthly-table tbody,
  #panel-trabajador .monthly-history-table tbody {
    display: grid !important;

    width: 100% !important;

    padding: 12px !important;

    gap: 12px !important;

    box-sizing: border-box !important;
  }

  #panel-trabajador .aleph-monthly-table tbody tr,
  #panel-trabajador .monthly-history-table tbody tr {
    display: grid !important;

    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr) !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 13px !important;

    gap: 0 14px !important;

    box-sizing: border-box !important;

    border: 1px solid #dbe6ee !important;
    border-radius: 13px !important;

    background: #fff !important;

    overflow: hidden !important;

    box-shadow:
      0 4px 14px rgba(15,42,65,.035) !important;
  }

  #panel-trabajador .aleph-monthly-table td,
  #panel-trabajador .monthly-history-table td {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;

    padding: 8px 0 !important;

    border: 0 !important;
    border-bottom: 1px solid #edf2f6 !important;

    font-size: 9px !important;
    line-height: 1.4 !important;

    text-align: left !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  #panel-trabajador .aleph-monthly-table td::before,
  #panel-trabajador .monthly-history-table td::before {
    content: attr(data-label) !important;

    display: block !important;

    margin-bottom: 5px !important;

    font-size: 7.5px !important;
    line-height: 1.2 !important;

    font-weight: 800 !important;

    letter-spacing: .06em !important;
    text-transform: uppercase !important;

    color: #758a9a !important;
  }


  /* Mes */

  #panel-trabajador .aleph-monthly-table td:nth-child(1),
  #panel-trabajador .monthly-history-table td:nth-child(1) {
    grid-column: 1 / -1 !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    color: #073f78 !important;
  }


  /* Dosis mes / Acumulado */

  #panel-trabajador .aleph-monthly-table td:nth-child(2),
  #panel-trabajador .aleph-monthly-table td:nth-child(3),
  #panel-trabajador .monthly-history-table td:nth-child(2),
  #panel-trabajador .monthly-history-table td:nth-child(3) {
    grid-column: auto !important;
  }


  /* Preventivo / Histórico */

  #panel-trabajador .aleph-monthly-table td:nth-child(4),
  #panel-trabajador .aleph-monthly-table td:nth-child(5),
  #panel-trabajador .monthly-history-table td:nth-child(4),
  #panel-trabajador .monthly-history-table td:nth-child(5) {
    grid-column: auto !important;
  }


  /* Diagnóstico */

  #panel-trabajador .aleph-monthly-table td:nth-child(6),
  #panel-trabajador .monthly-history-table td:nth-child(6) {
    grid-column: 1 / -1 !important;

    padding-bottom: 0 !important;

    border-bottom: 0 !important;
  }

  #panel-trabajador .aleph-monthly-table td span,
  #panel-trabajador .monthly-history-table td span {
    max-width: 100% !important;

    white-space: normal !important;

    text-align: left !important;
  }
}

/* =========================================================
   ALEPH — NOMBRE LARGO EN IDENTIFICACIÓN DEL POE
   No altera la cuadrícula
   ========================================================= */

#panel-trabajador .aleph-worker-identity-item--worker {
  min-width: 0 !important;
}

#panel-trabajador .aleph-worker-identity-item--worker > div {
  min-width: 0 !important;
  max-width: 100% !important;
}

#panel-trabajador #user-name {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  white-space: normal !important;

  overflow-wrap: anywhere !important;
  word-break: normal !important;

  line-height: 1.35 !important;

  overflow: visible !important;
}

/* =========================================================
   ALEPH — IDENTIFICACIÓN POE / GRID MÓVIL DEFINITIVO
   ========================================================= */

@media (max-width: 650px) {

  #panel-trabajador .aleph-worker-identity-grid {
    display: grid !important;

    grid-template-columns:
      minmax(112px, .8fr)
      minmax(0, 1.2fr) !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
  }

  #panel-trabajador .aleph-worker-identity-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
  }

  #panel-trabajador .aleph-worker-identity-item--worker {
    min-width: 0 !important;
  }

  #panel-trabajador #user-name {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;

    line-height: 1.35 !important;

    overflow: visible !important;
  }
}

/* =========================================================
   ALEPH — ENCABEZADOS DASHBOARD / CIERRE VISUAL
   Distribución + Prioridad + Filtros
   ========================================================= */

#panel-responsable .aleph-status-heading {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 11px !important;
  width: 100% !important;
  min-width: 0 !important;
}


/* ---------------------------------------------------------
   ICONOS
   --------------------------------------------------------- */

#panel-responsable .aleph-status-heading-icon,
#panel-responsable .aleph-filter-header h3 i {
  width: 38px !important;
  height: 38px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 38px !important;

  border-radius: 11px !important;

  background:
    linear-gradient(
      145deg,
      #eef7ff 0%,
      #e3f1ff 100%
    ) !important;

  border: 1px solid #d7e9f8 !important;

  color: #07599f !important;

  font-size: 15px !important;

  box-shadow:
    0 4px 12px rgba(11, 76, 126, .06) !important;
}


/* Prioridad: misma estética, ligera diferenciación */
#panel-responsable
.aleph-status-heading-icon--priority {
  background:
    linear-gradient(
      145deg,
      #fff7e9 0%,
      #fff1d5 100%
    ) !important;

  border-color: #f8dfad !important;

  color: #b96900 !important;
}


/* ---------------------------------------------------------
   KICKERS TÉCNICOS
   --------------------------------------------------------- */

#panel-responsable
.aleph-status-heading > div::before,
#panel-responsable
.aleph-filter-header > div::before {
  display: block !important;

  margin-bottom: 4px !important;

  font-size: 7.5px !important;
  line-height: 1.2 !important;

  font-weight: 900 !important;

  letter-spacing: .09em !important;
  text-transform: uppercase !important;

  color: #4285b5 !important;
}


#panel-responsable
.aleph-status-distribution
.aleph-status-heading > div::before {
  content: "MONITOREO INSTITUCIONAL";
}


#panel-responsable
.aleph-priority-card
.aleph-status-heading > div::before {
  content: "PRIORIZACIÓN DOSIMÉTRICA";
}


#panel-responsable
.aleph-filter-header > div::before {
  content: "CONTROL DE VISTA";
}


/* ---------------------------------------------------------
   TÍTULOS
   --------------------------------------------------------- */

#panel-responsable .aleph-status-heading h3,
#panel-responsable .aleph-filter-header h3 {
  margin: 0 !important;

  color: #073f78 !important;

  font-size: 14px !important;
  line-height: 1.28 !important;

  font-weight: 850 !important;

  letter-spacing: -.015em !important;
}


/* ---------------------------------------------------------
   DESCRIPCIONES
   --------------------------------------------------------- */

#panel-responsable .aleph-status-heading p,
#panel-responsable .aleph-filter-header p {
  margin: 5px 0 0 !important;

  color: #6f8495 !important;

  font-size: 9.5px !important;
  line-height: 1.5 !important;

  font-weight: 500 !important;

  max-width: 520px !important;
}


/* ---------------------------------------------------------
   FILTROS
   Su icono estaba dentro del H3
   --------------------------------------------------------- */

#panel-responsable .aleph-filter-header h3 {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
}

#panel-responsable .aleph-filter-header h3 i {
  margin: 0 !important;
}


/* ---------------------------------------------------------
   MÓVIL
   --------------------------------------------------------- */

@media (max-width: 650px) {

  #panel-responsable .aleph-status-heading {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  #panel-responsable .aleph-status-heading-icon,
  #panel-responsable .aleph-filter-header h3 i {
    width: 34px !important;
    height: 34px !important;

    flex-basis: 34px !important;

    border-radius: 10px !important;

    font-size: 13px !important;
  }

  #panel-responsable .aleph-status-heading h3,
  #panel-responsable .aleph-filter-header h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  #panel-responsable .aleph-status-heading p,
  #panel-responsable .aleph-filter-header p {
    font-size: 9px !important;
    line-height: 1.45 !important;
  }

  #panel-responsable
  .aleph-status-heading > div::before,
  #panel-responsable
  .aleph-filter-header > div::before {
    font-size: 7px !important;
    margin-bottom: 3px !important;
  }
}/* PRESENTACION HEADER */ .aleph-dash-header{background:radial-gradient(circle at 78% -60%,rgba(73,190,235,.34),transparent 42%),linear-gradient(110deg,#082f59 0%,#0a4a82 52%,#08719a 100%)!important;border-bottom:1px solid rgba(255,255,255,.14)!important;box-shadow:0 9px 30px rgba(6,35,64,.18)!important}.aleph-dash-logo-panel{min-width:auto!important;width:auto!important;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.aleph-dash-brand-logo{width:150px!important;max-height:48px!important;filter:brightness(0) invert(1)!important}.aleph-dash-brand-divider{background:linear-gradient(180deg,transparent,rgba(255,255,255,.52),transparent)!important}.aleph-dash-brand-copy h1{color:#fff!important}.aleph-dash-brand-copy p{color:#c7e0ef!important}
#view-dashboard{background:radial-gradient(circle at 8% 8%,rgba(82,183,232,.16),transparent 24%),radial-gradient(circle at 94% 86%,rgba(11,79,147,.10),transparent 28%),linear-gradient(180deg,#f7fbfe 0%,#eef7fd 55%,#e9f4fb 100%)!important}#panel-responsable .aleph-kpi,#panel-responsable .aleph-status-card,#panel-responsable .aleph-priority-card,#panel-responsable .aleph-filter-panel,#panel-responsable #resp-surveillance-panel,#panel-responsable #resp-technical-panel{background:rgba(255,255,255,.95)!important;border-color:rgba(130,172,203,.28)!important;box-shadow:0 16px 40px rgba(18,63,99,.065),inset 0 1px 0 rgba(255,255,255,.8)!important}
@media(min-width:651px){#panel-responsable .aleph-poe-table{font-size:8.1px!important}#panel-responsable .aleph-poe-table th{font-size:7.2px!important;padding:8px 7px!important;line-height:1.2!important}#panel-responsable .aleph-poe-table td{font-size:8.1px!important;padding:8px 7px!important;line-height:1.28!important}#panel-responsable #resp-technical-panel table{min-width:1180px!important;font-size:7.8px!important}#panel-responsable #resp-technical-panel th{font-size:7px!important;padding:7px 6px!important;line-height:1.15!important;text-transform:none!important;white-space:nowrap!important;text-align:center!important}#panel-responsable #resp-technical-panel td{font-size:7.8px!important;padding:6px!important;line-height:1.22!important;white-space:nowrap!important;text-align:center!important}#panel-responsable #resp-technical-panel th:nth-child(3),#panel-responsable #resp-technical-panel td:nth-child(3){text-align:left!important;min-width:205px!important}}
#panel-responsable .aleph-technical-summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:14px 17px!important;list-style:none!important;cursor:pointer!important}#panel-responsable .aleph-technical-summary::-webkit-details-marker{display:none!important}#panel-responsable .aleph-technical-summary::marker{content:""!important}#panel-responsable .aleph-technical-heading{display:flex!important;align-items:center!important;gap:11px!important}#panel-responsable .aleph-technical-open{margin-left:auto!important;padding:7px 11px!important;border:1px solid #caddea!important;border-radius:9px!important;background:#f8fbfd!important;color:#0b4f93!important;font-size:8px!important;font-weight:800!important}
#panel-responsable .aleph-technical-open span{display:inline-flex!important;align-items:center!important;padding:7px 12px!important;border:1px solid #caddea!important;border-radius:9px!important;background:#f8fbfd!important;color:#0b4f93!important;font-size:8px!important;font-weight:800!important}
#btn-alex-mode,#alex-voice-controls,#btn-voice{display:none!important}

/* =========================================================
   ALEPH · CONCEPTO 3 CLEAN
   FASE 1 — BASE VISUAL / SUPERFICIES / HEADER / BOTONES
   Rama: feature/visual-concept3-clean
   ========================================================= */

:root {
  --aleph-blue: #0a4a84;
  --aleph-blue-dark: #12344d;
  --aleph-blue-soft: #eef5fa;
  --aleph-cyan: #4f9fc8;
  --aleph-border: #dfe7ed;
  --aleph-border-strong: #ccd9e2;
  --aleph-text: #1e3445;
  --aleph-muted: #708391;
  --aleph-bg: #f7f9fb;
  --aleph-surface: #ffffff;
  --aleph-surface-soft: #f9fbfc;
  --aleph-radius: 14px;
  --aleph-shadow: 0 8px 24px rgba(25, 50, 69, .045);
  --aleph-shadow-hover: 0 12px 28px rgba(25, 50, 69, .075);
}

#view-dashboard {
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    linear-gradient(90deg, rgba(18,52,77,.018) 1px, transparent 1px),
    linear-gradient(rgba(18,52,77,.018) 1px, transparent 1px),
    var(--aleph-bg);
  background-size: auto, 32px 32px, 32px 32px, auto;
  color: var(--aleph-text);
}

.aleph-dash-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--aleph-border);
  box-shadow: 0 3px 14px rgba(25,50,69,.035);
}
.aleph-dash-header-inner { max-width: 1360px; padding: 12px 20px; }
.aleph-dash-brand { gap: 12px; }
.aleph-dash-brand-logo { width: 142px; }
.aleph-dash-brand-copy h1 { font-size: 14px; font-weight: 750; color: var(--aleph-blue-dark); letter-spacing: -.015em; }
.aleph-dash-brand-copy p { color: var(--aleph-muted); font-size: 9.5px; }
.aleph-user-box #user-badge { color: var(--aleph-blue); font-size: 9px; letter-spacing: .07em; }
.aleph-user-box #user-display-name { color: #617685; font-size: 11px; }

.aleph-panel {
  background: var(--aleph-surface);
  border: 1px solid var(--aleph-border);
  border-radius: var(--aleph-radius);
  box-shadow: var(--aleph-shadow);
}
.aleph-panel:hover { box-shadow: var(--aleph-shadow-hover); }

.aleph-hero-panel {
  background: linear-gradient(135deg, #ffffff 0%, #fbfcfd 70%, #f3f7fa 100%);
  border-color: var(--aleph-border);
}
.aleph-hero-panel::after {
  width: 220px; height: 220px; right: -55px; top: -55px;
  background:
    linear-gradient(135deg, transparent 0 49%, rgba(10,74,132,.045) 49% 51%, transparent 51% 100%),
    radial-gradient(circle, rgba(79,159,200,.055), transparent 66%);
  background-size: 18px 18px, auto;
  opacity: .85;
}

.aleph-chip {
  padding: 5px 10px; border-radius: 999px; background: #f5f8fa;
  border: 1px solid var(--aleph-border); color: #45657c;
  font-size: 9px; font-weight: 750; letter-spacing: .035em;
}
.aleph-hero-title {
  color: var(--aleph-blue-dark); font-size: clamp(24px, 2vw, 31px);
  font-weight: 760; letter-spacing: -.028em;
}
.aleph-hero-meta, .aleph-hero-subcopy { color: var(--aleph-muted); }

.aleph-btn-primary {
  background: var(--aleph-blue); border: 1px solid var(--aleph-blue);
  border-radius: 10px; box-shadow: 0 5px 12px rgba(10,74,132,.12);
  font-weight: 750; padding: 10px 15px;
}
.aleph-btn-primary:hover {
  background: #083f71; border-color: #083f71;
  box-shadow: 0 7px 16px rgba(10,74,132,.16); transform: translateY(-1px);
}
.aleph-logout-btn {
  border-color: var(--aleph-border-strong); border-radius: 10px;
  padding: 8px 12px; box-shadow: none; color: #536b7c;
}
.aleph-logout-btn:hover { background: #fff8f8; box-shadow: none; }

@media (max-width: 767px) {
  #view-dashboard { background: linear-gradient(180deg, #fbfcfd 0%, #f6f8fa 100%); }
  .aleph-dash-header-inner { padding: 10px 12px; gap: 10px; }
  .aleph-dash-brand { gap: 8px; }
  .aleph-dash-brand-logo { width: 112px; }
  .aleph-dash-brand-copy { display: none; }
  .aleph-user-box #user-display-name { max-width: 110px; font-size: 10px; }
  .aleph-logout-btn { min-width: 38px; min-height: 38px; padding: 8px 10px; }
  .aleph-panel { border-radius: 12px; box-shadow: 0 5px 16px rgba(25,50,69,.04); }
  .aleph-hero-panel::after { width: 150px; height: 150px; opacity: .5; }
  .aleph-hero-title { font-size: 22px; line-height: 1.14; }
  .aleph-hero-meta, .aleph-hero-subcopy { font-size: 11px; line-height: 1.45; }
  .aleph-hero-tools { gap: 8px; }
  .aleph-btn-primary { min-height: 42px; border-radius: 9px; }
}

/* =========================================================
   ALEPH · CONCEPTO 3 CLEAN
   FASE 2 — KPI SOBRIOS / RESPONSIVE
   ========================================================= */
#panel-responsable .aleph-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;}
#panel-responsable .aleph-kpi{min-height:122px!important;padding:14px!important;background:#fff!important;border:1px solid var(--aleph-border)!important;border-radius:12px!important;box-shadow:none!important;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;}
#panel-responsable .aleph-kpi:hover{transform:translateY(-1px)!important;border-color:#c9d7e0!important;box-shadow:0 7px 18px rgba(25,50,69,.055)!important;}
#panel-responsable .aleph-kpi:first-child{border-left:3px solid var(--aleph-blue)!important;background:linear-gradient(90deg,#f7fafc 0%,#fff 44%)!important;}
#panel-responsable .aleph-kpi-label{font-size:7.5px!important;line-height:1.35!important;font-weight:750!important;letter-spacing:.055em!important;color:#7b8c98!important;}
#panel-responsable .aleph-kpi-value{margin-top:6px!important;font-size:23px!important;font-weight:760!important;letter-spacing:-.035em!important;color:#1b3d56!important;}
#panel-responsable .aleph-kpi-icon{width:31px!important;height:31px!important;flex:0 0 31px!important;border-radius:9px!important;background:#f4f7f9!important;color:#51758f!important;font-size:12px!important;}
#panel-responsable .aleph-kpi--priority .aleph-kpi-icon,#panel-responsable .aleph-kpi--preventive .aleph-kpi-icon{background:#fff8eb!important;color:#aa741e!important;}
#panel-responsable .aleph-kpi--historical .aleph-kpi-icon,#panel-responsable .aleph-kpi--annual .aleph-kpi-icon{background:#f1f6fa!important;color:#4d7593!important;}
#panel-responsable .aleph-kpi-description{margin-top:8px!important;font-size:8.5px!important;line-height:1.4!important;color:#8796a1!important;}
#panel-responsable .aleph-kpi-action{margin-top:9px!important;font-size:8px!important;font-weight:700!important;color:#54758d!important;}
#panel-responsable .resp-kpi-active{border-color:#9db9cc!important;box-shadow:0 0 0 2px rgba(10,74,132,.055)!important;}
@media(max-width:980px){#panel-responsable .aleph-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}#panel-responsable .aleph-kpi:first-child{grid-column:span 2;}}
@media(max-width:520px){#panel-responsable .aleph-kpi-grid{gap:8px!important;}#panel-responsable .aleph-kpi{min-height:108px!important;padding:12px!important;}#panel-responsable .aleph-kpi:first-child{grid-column:span 2;}#panel-responsable .aleph-kpi-value{font-size:21px!important;}#panel-responsable .aleph-kpi-description{display:none!important;}}
@media(max-width:380px){#panel-responsable .aleph-kpi-grid{grid-template-columns:1fr!important;}#panel-responsable .aleph-kpi:first-child{grid-column:auto;}}

/* ALEPH CONCEPTO 3 - FASE 3A TABLA DESKTOP */
#panel-responsable #resp-surveillance-panel{border:1px solid var(--aleph-border)!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important;}
#panel-responsable .aleph-poe-header{padding:14px 16px!important;background:#fff!important;border-bottom:1px solid var(--aleph-border)!important;}
#panel-responsable .aleph-poe-table thead tr,#panel-responsable #resp-surveillance-panel thead tr{background:#f4f7f9!important;color:#526a7b!important;}
#panel-responsable .aleph-poe-table th,#panel-responsable #resp-surveillance-panel th{padding:9px 8px!important;color:#607586!important;font-size:7.4px!important;font-weight:750!important;letter-spacing:.035em!important;border-bottom:1px solid var(--aleph-border)!important;}
#panel-responsable .aleph-poe-table td,#panel-responsable #resp-surveillance-panel td{padding:10px 8px!important;color:#526979!important;border-bottom:1px solid #edf1f4!important;}
#panel-responsable .aleph-poe-table tbody tr:hover,#panel-responsable #resp-surveillance-panel tbody tr:hover{background:#fafcfd!important;}

/* ALEPH CONCEPTO 3 - FASE 4A DISTRIBUCION Y PRIORIDAD */
#panel-responsable .aleph-status-grid{gap:10px!important;}
#panel-responsable .aleph-status-card,#panel-responsable .aleph-priority-card{padding:16px!important;background:#fff!important;border:1px solid var(--aleph-border)!important;border-radius:12px!important;box-shadow:none!important;}
#panel-responsable .aleph-status-card-header,#panel-responsable .aleph-priority-header{margin-bottom:12px!important;gap:10px!important;}
#panel-responsable .aleph-status-heading h3,#panel-responsable .aleph-filter-header h3{color:var(--aleph-blue-dark)!important;font-weight:760!important;}
#panel-responsable .aleph-status-badge{padding:5px 8px!important;border-radius:7px!important;border:1px solid var(--aleph-border)!important;background:#f6f8fa!important;color:#60798b!important;font-size:7.5px!important;font-weight:750!important;letter-spacing:.045em!important;}
#panel-responsable .aleph-distribution-track,#panel-responsable .aleph-distribution-bar,#panel-responsable #resp-distribution-bar{min-height:9px!important;border-radius:4px!important;}
#panel-responsable .aleph-distribution-track{margin:10px 0 13px!important;background:#edf1f4!important;}
#panel-responsable .aleph-status-legend{gap:4px 16px!important;}
#panel-responsable .aleph-status-item{padding:7px 0!important;font-size:8.5px!important;color:#667b8a!important;border-bottom:1px solid #f0f3f5!important;}
#panel-responsable .aleph-status-dot{width:7px!important;height:7px!important;flex-basis:7px!important;}
@media(max-width:1180px){#panel-responsable .aleph-status-grid{grid-template-columns:1fr!important;}}
@media(max-width:650px){#panel-responsable .aleph-status-card,#panel-responsable .aleph-priority-card{padding:14px!important;border-radius:11px!important;}#panel-responsable .aleph-status-legend{grid-template-columns:1fr!important;gap:0!important;}}

/* ALEPH CONCEPTO 3 - FASE 4B FILTROS */
#panel-responsable .aleph-filter-panel{padding:15px 16px!important;background:#fff!important;border:1px solid var(--aleph-border)!important;border-radius:12px!important;box-shadow:none!important;}
#panel-responsable .aleph-filter-header{margin-bottom:11px!important;}
#panel-responsable .aleph-filter-grid{gap:8px!important;align-items:end!important;}
#panel-responsable .aleph-filter-field label{margin-bottom:5px!important;font-size:7.5px!important;font-weight:750!important;letter-spacing:.055em!important;color:#7d8d98!important;}
#panel-responsable .aleph-filter-control input,#panel-responsable .aleph-filter-control select,#panel-responsable #resp-filter-search,#panel-responsable #resp-filter-state,#panel-responsable #resp-filter-rad,#panel-responsable #resp-filter-sort{height:36px!important;border:1px solid var(--aleph-border)!important;border-radius:9px!important;background:#fbfcfd!important;color:#3f596b!important;font-size:9.5px!important;box-shadow:none!important;}
#panel-responsable .aleph-filter-control input:hover,#panel-responsable .aleph-filter-control select:hover{border-color:#c8d5de!important;background:#fff!important;}
#panel-responsable .aleph-filter-control input:focus,#panel-responsable .aleph-filter-control select:focus{border-color:#8fb2c8!important;background:#fff!important;box-shadow:0 0 0 2px rgba(10,74,132,.045)!important;}
#panel-responsable .aleph-filter-control--icon>i{left:11px!important;color:#8a9aa5!important;font-size:10px!important;}
#panel-responsable .aleph-filter-control input,#panel-responsable #resp-filter-search{padding-left:31px!important;}
#panel-responsable #resp-filter-reset{height:36px!important;padding:0 12px!important;border:1px solid var(--aleph-border)!important;border-radius:9px!important;background:#f7f9fa!important;color:#647b8b!important;font-size:8px!important;font-weight:750!important;box-shadow:none!important;}
#panel-responsable #resp-filter-reset:hover{background:#f1f5f7!important;border-color:#c9d6df!important;color:#455f72!important;}
@media(max-width:900px){#panel-responsable .aleph-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}#panel-responsable #resp-filter-reset{grid-column:1/-1!important;justify-self:start!important;}}
@media(max-width:520px){#panel-responsable .aleph-filter-panel{padding:13px!important;}#panel-responsable .aleph-filter-grid{grid-template-columns:1fr!important;}#panel-responsable #resp-filter-reset{width:100%!important;justify-self:stretch!important;}}

/* =========================================================
   ALEPH CONCEPTO 3 - FASE 5 SANEAMIENTO VISUAL FINAL
   ========================================================= */
#view-dashboard{background:#f5f7f9!important;color:var(--aleph-text)!important;}
.aleph-dash-header{background:rgba(255,255,255,.97)!important;border-bottom:1px solid #e1e7eb!important;box-shadow:0 2px 10px rgba(25,50,69,.035)!important;}
.aleph-dash-brand-logo{width:142px!important;max-height:46px!important;filter:none!important;}
.aleph-dash-brand-divider{background:#dce4e9!important;}
.aleph-dash-brand-copy h1{color:#173a55!important;}
.aleph-dash-brand-copy p{color:#738692!important;}
#panel-responsable .aleph-kpi,#panel-responsable .aleph-status-card,#panel-responsable .aleph-priority-card,#panel-responsable .aleph-filter-panel,#panel-responsable #resp-surveillance-panel,#panel-responsable #resp-technical-panel{background:#fff!important;border-color:#dfe7ed!important;box-shadow:none!important;}
#panel-responsable .aleph-poe-table thead,#panel-responsable .resp-surveillance-table thead,#panel-responsable .aleph-poe-table thead tr,#panel-responsable .resp-surveillance-table thead tr{background:#f2f5f7!important;color:#5f7382!important;}
#panel-responsable .aleph-poe-table th,#panel-responsable .resp-surveillance-table th{background:#f2f5f7!important;color:#5f7382!important;border-bottom:1px solid #dfe7ed!important;}
@media(max-width:767px){#view-dashboard{background:#f7f9fa!important;}.aleph-dash-brand-logo{width:110px!important;}}

/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 1
   APP SHELL + SIDEBAR DESKTOP
   ========================================================= */
.aleph-app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);width:100%;min-height:calc(100vh - 70px);background:#eef3f6;}
.aleph-app-content{min-width:0;width:100%;background:linear-gradient(180deg,#f1f5f7 0%,#edf2f5 100%);}
.aleph-app-main{max-width:1400px!important;padding:22px 24px 36px!important;}
.aleph-sidebar{position:sticky;top:70px;align-self:start;height:calc(100vh - 70px);display:flex;flex-direction:column;padding:18px 14px 16px;background:linear-gradient(180deg,#082f59 0%,#073a67 55%,#062b50 100%);border-right:1px solid rgba(255,255,255,.08);overflow-y:auto;z-index:20;}
.aleph-sidebar-brand{padding:4px 8px 18px;border-bottom:1px solid rgba(255,255,255,.10);margin-bottom:14px;}
.aleph-sidebar-logo{display:block;width:118px;max-height:42px;object-fit:contain;filter:brightness(0) invert(1);margin-bottom:8px;}
.aleph-sidebar-brand span{display:block;font-size:7px;font-weight:800;line-height:1.4;letter-spacing:.12em;color:#8fb3cf;}
.aleph-sidebar-nav{display:flex;flex-direction:column;gap:4px;}
.aleph-sidebar-item{position:relative;width:100%;min-height:38px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:6px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#b9ccdb;font-size:10px;font-weight:650;text-align:left;transition:.16s ease;}
.aleph-sidebar-item i{width:18px;text-align:center;color:#8aa9c0;font-size:11px;}
.aleph-sidebar-item:hover{background:rgba(255,255,255,.07);color:#fff;}
.aleph-sidebar-item:hover i{color:#b9ddf4;}
.aleph-sidebar-item.is-active{background:linear-gradient(90deg,#0d67a4 0%,#0b5b94 100%);color:#fff;box-shadow:inset 3px 0 0 #63c2eb;}
.aleph-sidebar-item.is-active i{color:#fff;}
.aleph-sidebar-item:disabled{opacity:.48;cursor:not-allowed;background:transparent;color:#89a0b2;}
.aleph-sidebar-item:disabled:hover{background:transparent;color:#89a0b2;}
.aleph-sidebar-item:disabled i{color:#70899c;}
.aleph-sidebar-item:disabled small{font-size:7px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#6f8799;white-space:nowrap;}
.aleph-sidebar-badge{min-width:17px;height:17px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#d95656;color:#fff;font-size:7px;font-weight:800;}
.aleph-sidebar-help{margin-top:auto;padding:14px;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:rgba(255,255,255,.055);color:#dceaf3;}
.aleph-sidebar-help>i{display:grid;place-items:center;width:30px;height:30px;margin-bottom:9px;border-radius:9px;background:rgba(91,184,226,.13);color:#75c6ea;font-size:12px;}
.aleph-sidebar-help strong{display:block;margin-bottom:4px;font-size:10px;color:#fff;}
.aleph-sidebar-help span{display:block;font-size:8px;line-height:1.45;color:#9fb8ca;}
#aleph-sidebar-alex{width:100%;height:32px;margin-top:11px;border:1px solid rgba(110,196,235,.30);border-radius:8px;background:#0b5d95;color:#fff;font-size:8px;font-weight:750;}
#aleph-sidebar-alex:hover{background:#0e6ca9;}
@media(max-width:900px){.aleph-app-shell{grid-template-columns:1fr;}.aleph-sidebar{display:none;}.aleph-app-main{padding:16px 14px 28px!important;}}

/* ALEPH CONCEPTO 3 - BLOQUE 1B: INTEGRACION SIDEBAR + HEADER */
@media(min-width:901px){
.aleph-sidebar{position:fixed!important;left:0;top:0!important;width:230px;height:100vh!important;z-index:60!important;}
.aleph-app-shell{grid-template-columns:230px minmax(0,1fr)!important;}
.aleph-app-content{grid-column:2!important;width:100%!important;min-width:0!important;}
.aleph-dash-header{margin-left:230px!important;width:calc(100% - 230px)!important;}
.aleph-dash-header-inner{max-width:none!important;width:100%!important;padding-left:24px!important;padding-right:24px!important;}
.aleph-app-main{max-width:none!important;width:100%!important;margin:0!important;padding:20px 24px 36px!important;}
}
/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 2A
   HEADER EJECUTIVO + HERO
   ========================================================= */
@media(min-width:901px){
.aleph-dash-header{height:70px!important;background:rgba(246,249,251,.96)!important;border-bottom:1px solid #dbe5eb!important;box-shadow:0 2px 12px rgba(20,48,70,.035)!important;}
.aleph-dash-header-inner{height:70px!important;min-height:70px!important;padding:0 26px!important;}
.aleph-dash-logo-panel,.aleph-dash-brand-divider{display:none!important;}
.aleph-dash-brand{gap:0!important;}
.aleph-dash-brand-copy h1{font-size:17px!important;line-height:1.15!important;font-weight:780!important;color:#123957!important;letter-spacing:-.02em!important;}
.aleph-dash-brand-copy p{margin-top:4px!important;font-size:9px!important;color:#708695!important;}
.aleph-dash-actions{gap:14px!important;}
.aleph-user-box #user-badge{font-size:8px!important;letter-spacing:.08em!important;}
.aleph-user-box #user-display-name{font-size:10px!important;max-width:240px!important;}
.aleph-logout-btn{height:34px!important;padding:0 12px!important;border-radius:8px!important;background:#fff!important;}
#panel-responsable .aleph-hero-panel{min-height:150px!important;padding:22px 24px!important;background:linear-gradient(110deg,rgba(250,252,253,.98) 0%,rgba(242,247,250,.96) 66%,rgba(230,241,247,.90) 100%)!important;border:1px solid #d9e5ec!important;border-radius:14px!important;box-shadow:none!important;}
#panel-responsable .aleph-hero-panel::after{content:""!important;position:absolute!important;right:0!important;top:0!important;width:42%!important;height:100%!important;background:linear-gradient(135deg,transparent 0 48%,rgba(25,105,157,.045) 48% 49%,transparent 49% 100%),radial-gradient(circle at 65% 35%,rgba(65,154,204,.08),transparent 48%)!important;background-size:24px 24px,auto!important;opacity:1!important;}
#panel-responsable .aleph-hero-grid{min-height:104px!important;justify-content:space-between!important;}
#panel-responsable .aleph-hero-title{font-size:28px!important;line-height:1.05!important;font-weight:800!important;color:#103b5c!important;}
#panel-responsable .aleph-hero-meta{font-size:10px!important;color:#597184!important;}
#panel-responsable .aleph-hero-subcopy{font-size:10px!important;color:#6e8291!important;}
#panel-responsable .aleph-hero-tools{align-self:flex-start!important;padding-top:28px!important;}
#panel-responsable .aleph-btn-primary{height:38px!important;padding:0 16px!important;border-radius:9px!important;background:#0c5f98!important;box-shadow:0 7px 16px rgba(12,95,152,.14)!important;}
}
/* CONCEPTO 3 - eliminar etiqueta KPI duplicada heredada */
#panel-responsable .resp-kpi::after{content:none!important;display:none!important;}

/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 2B
   KPI EJECUTIVOS
   ========================================================= */
#panel-responsable .aleph-kpi-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;}
#panel-responsable .aleph-kpi{min-height:132px!important;padding:15px 16px 13px!important;border:1px solid #dbe5eb!important;border-radius:13px!important;background:#f9fbfc!important;box-shadow:0 4px 14px rgba(19,48,70,.035)!important;overflow:hidden!important;}
#panel-responsable .aleph-kpi:hover{transform:translateY(-1px)!important;border-color:#c5d6e1!important;box-shadow:0 7px 18px rgba(19,48,70,.055)!important;}
#panel-responsable .aleph-kpi-top{align-items:flex-start!important;gap:12px!important;}
#panel-responsable .aleph-kpi-label{font-size:8px!important;font-weight:800!important;letter-spacing:.055em!important;color:#718594!important;}
#panel-responsable .aleph-kpi-value{margin-top:7px!important;font-size:27px!important;line-height:1!important;font-weight:800!important;letter-spacing:-.035em!important;color:#173f5d!important;}
#panel-responsable .aleph-kpi-value--dose{font-size:23px!important;white-space:nowrap!important;}
#panel-responsable .aleph-kpi-icon{width:36px!important;height:36px!important;flex:0 0 36px!important;border-radius:10px!important;background:#eaf3f8!important;color:#287aa9!important;font-size:13px!important;}
#panel-responsable .aleph-kpi-description{margin-top:9px!important;font-size:8.5px!important;line-height:1.4!important;color:#82929d!important;}
#panel-responsable .aleph-kpi-action{margin-top:auto!important;padding-top:10px!important;font-size:8px!important;font-weight:750!important;color:#55768d!important;}
#panel-responsable .aleph-kpi--total{background:linear-gradient(135deg,#f7fbfd 0%,#f1f7fa 100%)!important;border-left:3px solid #2d89b7!important;}
#panel-responsable .aleph-kpi--priority .aleph-kpi-icon{background:#fff0ed!important;color:#c96758!important;}
#panel-responsable .aleph-kpi--preventive .aleph-kpi-icon{background:#fff6df!important;color:#b98722!important;}
#panel-responsable .aleph-kpi--historical .aleph-kpi-icon{background:#edf4fb!important;color:#4d78a4!important;}
#panel-responsable .aleph-kpi--annual .aleph-kpi-icon{background:#edf1fa!important;color:#536f9d!important;}
#panel-responsable .resp-kpi-active{border-color:#8eb5cb!important;box-shadow:0 0 0 2px rgba(37,120,169,.06)!important;}
@media(max-width:1180px){#panel-responsable .aleph-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:760px){#panel-responsable .aleph-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}#panel-responsable .aleph-kpi{min-height:118px!important;padding:13px!important;}}
@media(max-width:420px){#panel-responsable .aleph-kpi-grid{grid-template-columns:1fr!important;}#panel-responsable .aleph-kpi{min-height:110px!important;}#panel-responsable .aleph-kpi-value{font-size:24px!important;}}

/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 3
   DISTRIBUCION + PRIORIDAD
   ========================================================= */
#panel-responsable .aleph-status-grid{grid-template-columns:minmax(0,1.65fr) minmax(320px,.75fr)!important;gap:12px!important;align-items:stretch!important;}
#panel-responsable .aleph-status-card,#panel-responsable .aleph-priority-card{min-height:210px!important;padding:16px 18px!important;border:1px solid #dbe5eb!important;border-radius:13px!important;background:#f9fbfc!important;box-shadow:0 4px 14px rgba(19,48,70,.03)!important;}
#panel-responsable .aleph-status-card-header,#panel-responsable .aleph-priority-header{margin-bottom:10px!important;align-items:center!important;}
#panel-responsable .aleph-status-heading h3{font-size:14px!important;line-height:1.2!important;font-weight:780!important;color:#173f5d!important;}
#panel-responsable .aleph-status-heading p{font-size:8.5px!important;color:#81929e!important;}
#panel-responsable .aleph-status-badge{padding:5px 8px!important;border-radius:7px!important;background:#eef4f7!important;border:1px solid #dbe5eb!important;color:#60788a!important;}
#panel-responsable .aleph-distribution-track,#panel-responsable .aleph-distribution-bar,#panel-responsable #resp-distribution-bar{min-height:11px!important;height:11px!important;border-radius:5px!important;}
#panel-responsable .aleph-distribution-track{margin:12px 0 10px!important;}
#panel-responsable .aleph-status-legend{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;border-top:1px solid #edf1f4!important;}
#panel-responsable .aleph-status-item{padding:10px 9px!important;border-right:1px solid #edf1f4!important;border-bottom:0!important;display:block!important;}
#panel-responsable .aleph-status-item:last-child{border-right:0!important;}
#panel-responsable .aleph-status-item-copy{margin-bottom:4px!important;}
#panel-responsable .aleph-status-item strong{display:block!important;font-size:12px!important;color:#173f5d!important;}
#panel-responsable .aleph-priority-card{background:linear-gradient(145deg,#fbfcfd 0%,#f7fafb 100%)!important;}
#panel-responsable .aleph-priority-card .aleph-priority-header{padding-bottom:8px!important;border-bottom:1px solid #eef2f4!important;}
#panel-responsable #resp-priority-list{margin-top:10px!important;}
@media(max-width:1180px){#panel-responsable .aleph-status-grid{grid-template-columns:1fr!important;}#panel-responsable .aleph-status-legend{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:650px){#panel-responsable .aleph-status-card,#panel-responsable .aleph-priority-card{min-height:auto!important;padding:14px!important;}#panel-responsable .aleph-status-legend{grid-template-columns:1fr 1fr!important;}#panel-responsable .aleph-status-item{border-right:0!important;border-bottom:1px solid #edf1f4!important;}}

/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 4A
   FILTROS DE VIGILANCIA
   ========================================================= */
#panel-responsable .aleph-filter-panel{padding:15px 16px!important;border:1px solid #dbe5eb!important;border-radius:13px!important;background:#f7fafb!important;box-shadow:0 4px 14px rgba(19,48,70,.025)!important;}
#panel-responsable .aleph-filter-header{margin-bottom:11px!important;}
#panel-responsable .aleph-filter-header h3{font-size:13px!important;font-weight:780!important;color:#173f5d!important;}
#panel-responsable .aleph-filter-header p{font-size:8.5px!important;color:#81929e!important;}
#panel-responsable .aleph-filter-grid{grid-template-columns:minmax(250px,1.55fr) repeat(3,minmax(150px,.8fr)) auto!important;gap:9px!important;}
#panel-responsable .aleph-filter-field label{margin-bottom:5px!important;font-size:7px!important;font-weight:800!important;letter-spacing:.065em!important;color:#738896!important;}
#panel-responsable .aleph-filter-control input,#panel-responsable .aleph-filter-control select,#panel-responsable #resp-filter-search,#panel-responsable #resp-filter-state,#panel-responsable #resp-filter-rad,#panel-responsable #resp-filter-sort{height:38px!important;border:1px solid #d4e0e7!important;border-radius:8px!important;background:#fbfcfd!important;color:#38566b!important;font-size:9px!important;box-shadow:none!important;}
#panel-responsable .aleph-filter-control input:focus,#panel-responsable .aleph-filter-control select:focus{background:#fff!important;border-color:#83abc2!important;box-shadow:0 0 0 2px rgba(38,119,164,.05)!important;}
#panel-responsable #resp-filter-reset{height:38px!important;padding:0 13px!important;border:1px solid #d4e0e7!important;border-radius:8px!important;background:#f1f5f7!important;color:#587184!important;font-size:8px!important;font-weight:750!important;}
#panel-responsable #resp-filter-reset:hover{background:#eaf0f3!important;color:#34566d!important;}
@media(max-width:1050px){#panel-responsable .aleph-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}#panel-responsable #resp-filter-reset{grid-column:1/-1!important;justify-self:start!important;}}
@media(max-width:650px){#panel-responsable .aleph-filter-grid{grid-template-columns:1fr!important;}#panel-responsable #resp-filter-reset{width:100%!important;justify-self:stretch!important;}}

/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 4B
   TABLA TOE EJECUTIVA
   ========================================================= */
#panel-responsable .aleph-poe-panel{border:1px solid #dbe5eb!important;border-radius:13px!important;background:#f9fbfc!important;box-shadow:0 4px 14px rgba(19,48,70,.025)!important;overflow:hidden!important;}
#panel-responsable .aleph-poe-header{padding:15px 17px!important;background:#f9fbfc!important;border-bottom:1px solid #e1e9ee!important;}
#panel-responsable .aleph-poe-heading h3{font-size:14px!important;font-weight:780!important;color:#173f5d!important;}
#panel-responsable .aleph-poe-heading p{margin-top:3px!important;font-size:8.5px!important;color:#81929e!important;}
#panel-responsable .aleph-results-count{font-size:9px!important;font-weight:700!important;color:#60788a!important;}
@media(min-width:651px){
#panel-responsable .aleph-poe-table{width:100%!important;min-width:1040px!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important;}
#panel-responsable .aleph-poe-table thead tr{background:#edf3f6!important;}
#panel-responsable .aleph-poe-table th{height:34px!important;padding:8px 9px!important;background:#edf3f6!important;border-bottom:1px solid #d7e3ea!important;color:#5e7687!important;font-size:7px!important;font-weight:800!important;letter-spacing:.055em!important;text-transform:uppercase!important;}
#panel-responsable .aleph-poe-table td{padding:9px!important;border-bottom:1px solid #edf1f4!important;color:#506a7c!important;font-size:8.5px!important;line-height:1.35!important;}
#panel-responsable .aleph-poe-table tbody tr{background:#fff!important;transition:background .14s ease!important;}
#panel-responsable .aleph-poe-table tbody tr:nth-child(even){background:#fbfcfd!important;}
#panel-responsable .aleph-poe-table tbody tr:hover{background:#f2f7fa!important;}
#panel-responsable .resp-surveillance-worker{color:#135a88!important;font-size:9px!important;font-weight:800!important;line-height:1.25!important;}
#panel-responsable .resp-surveillance-worker:hover{color:#0b73ad!important;}
#panel-responsable .aleph-poe-table td:nth-child(2) p{margin-top:2px!important;color:#94a3ad!important;font-size:7px!important;}
#panel-responsable .aleph-poe-table .w-20{height:4px!important;border-radius:999px!important;background:#e4ebef!important;}
#panel-responsable .aleph-poe-table td span.rounded-full{padding:4px 8px!important;font-size:7px!important;font-weight:750!important;box-shadow:none!important;}
#panel-responsable .resp-open-worker{min-height:28px!important;padding:0 10px!important;border:1px solid #c5d8e4!important;border-radius:7px!important;background:#f7fafc!important;color:#185d89!important;font-size:7.5px!important;font-weight:800!important;box-shadow:none!important;}
#panel-responsable .resp-open-worker:hover{background:#eaf3f8!important;border-color:#9fc2d6!important;color:#0c6ca3!important;}
}
@media(max-width:650px){#panel-responsable .aleph-poe-panel{border-radius:11px!important;}#panel-responsable .aleph-poe-header{padding:13px!important;}}

/* CONCEPTO 3 - TABLA TECNICA ANCHO COMPLETO */
@media(min-width:901px){
#panel-responsable .aleph-technical-scroll{width:100%!important;max-width:100%!important;overflow-x:auto!important;}
#panel-responsable #resp-technical-panel table,#panel-responsable .aleph-technical-table{width:100%!important;min-width:1180px!important;max-width:none!important;table-layout:auto!important;}
}
/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 4C
   CHIPS + ESTADOS VACIOS + TEXTOS AUXILIARES
   ========================================================= */
#panel-responsable .aleph-poe-header-status{display:flex!important;align-items:center!important;gap:10px!important;}
#panel-responsable .aleph-active-filter{display:inline-flex!important;align-items:center!important;min-height:26px!important;padding:0 9px!important;border:1px solid #c7dbe6!important;border-radius:999px!important;background:#edf5f9!important;color:#285f7f!important;font-size:8px!important;font-weight:800!important;letter-spacing:.02em!important;}
#panel-responsable .aleph-active-filter.hidden{display:none!important;}
#panel-responsable .aleph-results-count{margin:0!important;font-size:8.5px!important;font-weight:700!important;color:#708695!important;white-space:nowrap!important;}
#panel-responsable .aleph-poe-empty,#panel-responsable #resp-empty-state{min-height:180px!important;padding:34px 20px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;background:linear-gradient(180deg,#fbfcfd 0%,#f7fafb 100%)!important;}
#panel-responsable .aleph-poe-empty.hidden,#panel-responsable #resp-empty-state.hidden{display:none!important;}
#panel-responsable .aleph-poe-empty-icon{width:42px!important;height:42px!important;display:grid!important;place-items:center!important;margin-bottom:12px!important;border-radius:12px!important;background:#edf4f8!important;color:#3e789b!important;font-size:14px!important;}
#panel-responsable .aleph-poe-empty-title{margin:0!important;font-size:13px!important;font-weight:800!important;color:#23475f!important;}
#panel-responsable .aleph-poe-empty-copy{max-width:380px!important;margin:5px 0 0!important;font-size:9px!important;line-height:1.45!important;color:#7b8f9d!important;}
@media(max-width:650px){#panel-responsable .aleph-poe-header-status{align-items:flex-end!important;flex-direction:column!important;gap:5px!important;}#panel-responsable .aleph-poe-empty,#panel-responsable #resp-empty-state{min-height:150px!important;padding:28px 16px!important;}}

/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 5A
   RESPONSIVE MOVIL - SHELL HEADER HERO KPI
   ========================================================= */
@media(max-width:650px){
#view-dashboard{background:#eef3f6!important;}
.aleph-app-shell{display:block!important;background:#eef3f6!important;}
.aleph-app-content{width:100%!important;min-width:0!important;background:#eef3f6!important;}
.aleph-app-main{width:100%!important;max-width:none!important;margin:0!important;padding:12px 10px 82px!important;}
.aleph-sidebar{display:none!important;}
.aleph-dash-header{position:sticky!important;top:0!important;width:100%!important;height:auto!important;margin:0!important;background:rgba(248,250,251,.97)!important;border-bottom:1px solid #dbe5eb!important;box-shadow:0 3px 12px rgba(18,47,69,.04)!important;}
.aleph-dash-header-inner{min-height:60px!important;padding:8px 10px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;}
.aleph-dash-brand{gap:8px!important;min-width:0!important;}
.aleph-dash-logo-panel{display:block!important;width:auto!important;min-width:0!important;height:auto!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;}
.aleph-dash-brand-logo{width:92px!important;max-height:36px!important;filter:none!important;}
.aleph-dash-brand-divider{display:none!important;}
.aleph-dash-brand-copy h1{font-size:10px!important;line-height:1.15!important;color:#173f5d!important;}
.aleph-dash-brand-copy p{display:none!important;}
.aleph-dash-actions{gap:5px!important;}
.aleph-user-box{display:none!important;}
.aleph-logout-btn{width:35px!important;height:35px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:9px!important;}
.aleph-logout-btn .bio-logout-label{display:none!important;}
#panel-responsable{gap:10px!important;}
#panel-responsable .aleph-hero-panel{min-height:0!important;padding:15px!important;border-radius:12px!important;background:linear-gradient(145deg,#f9fbfc 0%,#eef5f8 100%)!important;}
#panel-responsable .aleph-hero-grid{min-height:0!important;gap:12px!important;}
#panel-responsable .aleph-chip{padding:5px 8px!important;font-size:7px!important;}
#panel-responsable .aleph-hero-title{font-size:21px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
#panel-responsable .aleph-hero-meta{font-size:8px!important;}
#panel-responsable .aleph-hero-subcopy{font-size:8px!important;line-height:1.45!important;}
#panel-responsable .aleph-hero-tools{width:100%!important;padding:0!important;}
#panel-responsable .aleph-btn-primary{width:100%!important;height:38px!important;justify-content:center!important;}
#panel-responsable .aleph-footer-note{display:none!important;}
#panel-responsable .aleph-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
#panel-responsable .aleph-kpi{min-height:105px!important;padding:11px!important;border-radius:11px!important;}
#panel-responsable .aleph-kpi:first-child{grid-column:auto!important;}
#panel-responsable .aleph-kpi-icon{width:31px!important;height:31px!important;flex-basis:31px!important;font-size:11px!important;}
#panel-responsable .aleph-kpi-label{font-size:6.8px!important;}
#panel-responsable .aleph-kpi-value,#panel-responsable .aleph-kpi-value--dose{font-size:20px!important;}
#panel-responsable .aleph-kpi-description{display:block!important;margin-top:6px!important;font-size:7px!important;}
#panel-responsable .aleph-kpi-action{padding-top:7px!important;font-size:7px!important;}
#panel-responsable .aleph-kpi--annual{grid-column:1/-1!important;}
}
@media(max-width:380px){#panel-responsable .aleph-kpi-grid{grid-template-columns:1fr!important;}#panel-responsable .aleph-kpi--annual{grid-column:auto!important;}}

/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 5B
   RESPONSIVE MOVIL - PANELES Y FILTROS
   ========================================================= */
@media(max-width:650px){
#panel-responsable .aleph-status-grid{grid-template-columns:1fr!important;gap:8px!important;}
#panel-responsable .aleph-status-card,#panel-responsable .aleph-priority-card{min-height:0!important;padding:13px!important;border-radius:11px!important;}
#panel-responsable .aleph-status-legend{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
#panel-responsable .aleph-status-item{padding:8px 5px!important;border-right:0!important;}
#panel-responsable .aleph-priority-card #resp-priority-list{margin-top:8px!important;}
#panel-responsable .aleph-filter-panel{padding:13px!important;border-radius:11px!important;}
#panel-responsable .aleph-filter-grid{grid-template-columns:1fr!important;gap:8px!important;}
#panel-responsable .aleph-filter-control input,#panel-responsable .aleph-filter-control select,#panel-responsable #resp-filter-search,#panel-responsable #resp-filter-state,#panel-responsable #resp-filter-rad,#panel-responsable #resp-filter-sort{height:41px!important;font-size:9px!important;}
#panel-responsable #resp-filter-reset{width:100%!important;height:40px!important;}
#panel-responsable .aleph-poe-header{padding:13px!important;align-items:flex-start!important;}
#panel-responsable .aleph-poe-heading h3{font-size:13px!important;}
#panel-responsable .aleph-poe-heading p{font-size:8px!important;line-height:1.4!important;}
#panel-responsable .aleph-poe-header-status{align-items:flex-end!important;gap:5px!important;}
#panel-responsable .aleph-active-filter{min-height:24px!important;padding:0 8px!important;font-size:7px!important;}
}
@media(max-width:380px){#panel-responsable .aleph-status-legend{grid-template-columns:1fr!important;}}
/* =========================================================
   ALEPH CONCEPTO 3 - BLOQUE 5C
   PULIDO MOVIL + ALEX
   ========================================================= */
@media(max-width:650px){
#panel-responsable .aleph-status-reading{display:flex!important;align-items:flex-start!important;gap:7px!important;margin-top:9px!important;padding:9px 10px!important;border:1px solid #e2e9ed!important;border-radius:9px!important;background:#f5f8fa!important;}
#panel-responsable .aleph-status-reading>i{margin-top:1px!important;color:#5884a0!important;font-size:9px!important;}
#panel-responsable .aleph-status-reading p{margin:0!important;font-size:7.5px!important;line-height:1.5!important;color:#718693!important;}
#panel-responsable .aleph-status-reading strong{font-size:7.5px!important;font-weight:800!important;color:#48677b!important;}
#panel-responsable .aleph-see-all-btn{display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:28px!important;padding:0 9px!important;border:1px solid #cbdde7!important;border-radius:8px!important;background:#f2f7fa!important;color:#326986!important;font-size:7.5px!important;font-weight:800!important;white-space:nowrap!important;}
#panel-responsable .aleph-see-all-btn:hover{background:#e9f2f6!important;color:#175f88!important;}
#alex-chat-shell{right:12px!important;bottom:12px!important;z-index:70!important;}
.aleph-alex-toggle{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:14px!important;box-shadow:0 8px 22px rgba(8,57,92,.20)!important;}
.aleph-alex-toggle i{font-size:16px!important;}
.aleph-alex-toggle-status{width:9px!important;height:9px!important;}
#chat-window{width:calc(100vw - 24px)!important;max-width:360px!important;max-height:calc(100vh - 90px)!important;}
}
