
/*
  AVANZA CONTROL V5.4.9
  Tablero operativo de Inicio.
*/

.dashboard-v549 {
  width: 100%;
  min-width: 0;
}

/* ==================================================
   BIENVENIDA
   ================================================== */

.dashboard-welcome-v549 {
  position: relative;
  min-height: 184px;
  margin-bottom: 20px;
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 84% 20%,
      rgba(255, 198, 73, .20),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      #071f3d 0%,
      #0b4278 58%,
      #0b69c7 100%
    );
  color: #ffffff;
  box-shadow:
    0 18px 38px rgba(7, 31, 61, .14);
}

.dashboard-welcome-v549::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -100px;
  bottom: -210px;
  border: 45px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.dashboard-welcome-copy-v549,
.dashboard-welcome-actions-v549 {
  position: relative;
  z-index: 1;
}

.dashboard-kicker-v549 {
  margin-bottom: 12px;
  color: #aed5f4;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .17em;
}

.dashboard-welcome-v549 h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.dashboard-welcome-v549 p {
  max-width: 690px;
  margin: 0;
  color: #d6e8f8;
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-welcome-actions-v549 {
  min-width: 290px;
  display: grid;
  gap: 12px;
}

.dashboard-date-v549 {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.dashboard-date-v549 span {
  display: block;
  margin-bottom: 5px;
  color: #b8d8f1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.dashboard-date-v549 strong {
  color: #ffffff;
  font-size: 13px;
}

.dashboard-main-action-v549 {
  min-height: 48px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  background: #ffffff;
  color: #0756a3;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .13);
  transition: .18s ease;
}

.dashboard-main-action-v549:hover {
  transform: translateY(-1px);
}

/* ==================================================
   ENCABEZADOS
   ================================================== */

.dashboard-section-heading-v549 {
  margin: 0 2px 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-section-heading-v549 span,
.dashboard-card-heading-v549 span {
  display: block;
  margin-bottom: 4px;
  color: #0b5eb8;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .15em;
}

.dashboard-section-heading-v549 h3,
.dashboard-card-heading-v549 h3 {
  margin: 0;
  color: #071f3d;
  font-size: 18px;
}

.dashboard-section-heading-v549 small {
  color: #7b8b9b;
  font-size: 9px;
}

/* ==================================================
   INDICADORES
   ================================================== */

.dashboard-metrics-v549 {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-metric-v549 {
  position: relative;
  min-width: 0;
  min-height: 128px;
  padding: 17px;
  display: grid;
  grid-template-columns:
    39px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 12px;
  overflow: hidden;
  border: 1px solid #dbe5ee;
  border-radius: 17px;
  background: #ffffff;
  color: #071f3d;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(7, 31, 61, .055);
  transition: .18s ease;
}

.dashboard-metric-v549::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--dashboard-accent);
}

.dashboard-metric-v549:hover {
  border-color: #bdd3e5;
  transform: translateY(-2px);
  box-shadow:
    0 13px 28px rgba(7, 31, 61, .09);
}

.dashboard-metric-today-v549 {
  --dashboard-accent: #1283d5;
}

.dashboard-metric-overdue-v549 {
  --dashboard-accent: #e0444f;
}

.dashboard-metric-blocked-v549 {
  --dashboard-accent: #f0a126;
}

.dashboard-metric-unlock-v549 {
  --dashboard-accent: #16a35d;
}

.dashboard-metric-icon-v549 {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    color-mix(
      in srgb,
      var(--dashboard-accent) 12%,
      white
    );
  color: var(--dashboard-accent);
  font-size: 17px;
  font-weight: 950;
}

.dashboard-metric-content-v549 {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-metric-content-v549 small {
  color: #728397;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .12em;
}

.dashboard-metric-content-v549 b {
  margin: 5px 0 4px;
  color: #071f3d;
  font-size: 31px;
  line-height: 1;
}

.dashboard-metric-content-v549 em {
  color: #7b8b9b;
  font-size: 9px;
  font-style: normal;
  line-height: 1.45;
}

.dashboard-metric-arrow-v549 {
  color: #9aabba;
  font-size: 20px;
  font-weight: 700;
}

/* ==================================================
   ALERTA FDL
   ================================================== */

.dashboard-fdl-v549 {
  margin-bottom: 18px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-fdl-v549.hidden {
  display: none !important;
}

.dashboard-alert-label-v549 {
  display: block;
  margin-bottom: 5px;
  color: #b42318;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .14em;
}

.dashboard-fdl-v549 p {
  margin: 4px 0 0;
}

/* ==================================================
   PRIORIDADES Y ACCESOS
   ================================================== */

.dashboard-workspace-v549 {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(360px, .75fr);
  align-items: start;
  gap: 16px;
}

.dashboard-workspace-v549 > .card {
  margin: 0 !important;
  border-radius: 19px;
}

.dashboard-card-heading-v549 {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-card-heading-v549 p {
  margin: 5px 0 0;
  color: #78899a;
  font-size: 10px;
  line-height: 1.5;
}

.dashboard-text-action-v549 {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #d5e3ef;
  border-radius: 10px;
  background: #f8fbfd;
  color: #0756a3;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.dashboard-priority-list-v549 {
  display: grid;
  gap: 9px;
}

.dashboard-priority-item-v549 {
  width: 100%;
  min-height: 66px;
  padding: 12px;
  display: grid;
  grid-template-columns:
    34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #e0e8ef;
  border-radius: 13px;
  background: #fbfdff;
  color: #263c52;
  text-align: left;
  cursor: pointer;
}

.dashboard-priority-item-v549:hover {
  border-color: #bfd4e7;
  background: #f5faff;
}

.dashboard-priority-symbol-v549 {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--priority-soft);
  color: var(--priority-color);
  font-size: 13px;
  font-weight: 950;
}

.dashboard-priority-copy-v549 {
  min-width: 0;
}

.dashboard-priority-copy-v549 strong {
  display: block;
  margin-bottom: 3px;
  color: #19334d;
  font-size: 11px;
}

.dashboard-priority-copy-v549 small {
  display: block;
  color: #78899a;
  font-size: 9px;
  line-height: 1.45;
}

.dashboard-priority-count-v549 {
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--priority-soft);
  color: var(--priority-color);
  font-size: 10px;
  font-weight: 950;
}

.dashboard-priority-critical-v549 {
  --priority-color: #c4323e;
  --priority-soft: #fdecee;
}

.dashboard-priority-warning-v549 {
  --priority-color: #b66a00;
  --priority-soft: #fff4df;
}

.dashboard-priority-info-v549 {
  --priority-color: #075fb3;
  --priority-soft: #eaf4fd;
}

.dashboard-priority-success-v549 {
  --priority-color: #08743b;
  --priority-soft: #e9f8ef;
}

.dashboard-loading-v549 {
  padding: 24px;
  border: 1px dashed #cedbe7;
  border-radius: 13px;
  color: #78899a;
  text-align: center;
  font-size: 10px;
}

/* Accesos rápidos */

.dashboard-shortcut-grid-v549 {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.dashboard-shortcut-grid-v549 button {
  min-width: 0;
  min-height: 79px;
  padding: 11px;
  display: grid;
  grid-template-columns:
    32px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid #dde6ee;
  border-radius: 13px;
  background: #fbfdff;
  color: #31485e;
  text-align: left;
  cursor: pointer;
  transition: .16s ease;
}

.dashboard-shortcut-grid-v549 button:hover {
  border-color: #b9d3e8;
  background: #f2f8fd;
  transform: translateY(-1px);
}

.dashboard-shortcut-icon-v549 {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf3fa;
  color: #075fb3;
  font-size: 13px;
  font-weight: 950;
}

.dashboard-shortcut-grid-v549 strong {
  display: block;
  color: #18334d;
  font-size: 10px;
}

.dashboard-shortcut-grid-v549 small {
  display: block;
  margin-top: 3px;
  color: #8493a2;
  font-size: 8px;
}

.dashboard-shortcut-grid-v549 b {
  color: #8fa1b2;
}

/* ==================================================
   ESTADO DEL SISTEMA
   ================================================== */

.dashboard-system-strip-v549 {
  margin-top: 16px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    auto
    auto;
  align-items: center;
  gap: 28px;
  border: 1px solid #dbe5ee;
  border-radius: 15px;
  background: rgba(255, 255, 255, .82);
}

.dashboard-system-strip-v549 > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-system-dot-v549 {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #16a35d;
  box-shadow:
    0 0 0 5px rgba(22, 163, 93, .11);
}

.dashboard-system-strip-v549 span {
  display: block;
  color: #8392a2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.dashboard-system-strip-v549 strong {
  display: block;
  color: #30485f;
  font-size: 9px;
}

.dashboard-system-strip-v549 small {
  display: block;
  margin-top: 2px;
  color: #8291a0;
  font-size: 8px;
}

/* ==================================================
   ADAPTACIÓN
   ================================================== */

@media (max-width: 1350px) {
  .dashboard-metrics-v549 {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .dashboard-workspace-v549 {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(330px, .72fr);
  }
}

@media (max-width: 950px) {
  .dashboard-welcome-v549 {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-welcome-actions-v549 {
    min-width: 0;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(180px, auto);
  }

  .dashboard-workspace-v549 {
    grid-template-columns: 1fr;
  }

  .dashboard-system-strip-v549 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .dashboard-welcome-v549 {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .dashboard-welcome-actions-v549 {
    grid-template-columns: 1fr;
  }

  .dashboard-section-heading-v549 {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .dashboard-metrics-v549,
  .dashboard-shortcut-grid-v549 {
    grid-template-columns: 1fr;
  }

  .dashboard-metric-v549 {
    min-height: 112px;
  }

  .dashboard-card-heading-v549 {
    flex-direction: column;
  }

  .dashboard-fdl-v549 {
    align-items: stretch;
    flex-direction: column;
  }
}
