/* ================================================================
   ELGHIS · PANEL PRINCIPAL 2026
   Vista previa independiente.
   ================================================================ */

html.elghis-dashboard-preview {
  --ed-navy-1000: #062843;
  --ed-navy-950: #082f4d;
  --ed-navy-900: #0a3959;
  --ed-navy-850: #104c6d;
  --ed-teal-700: #087e86;
  --ed-teal-600: #118f97;
  --ed-teal-500: #27a6ad;
  --ed-teal-100: #dcf2f1;
  --ed-teal-050: #edf9f8;

  --ed-bg: #f3f8fa;
  --ed-panel: #ffffff;
  --ed-panel-soft: #f7fafb;
  --ed-border: #d7e4e8;

  --ed-text: #08243c;
  --ed-muted: #6c8295;

  --ed-success: #14734a;
  --ed-success-bg: #ddf4e6;

  --ed-shadow:
    0 24px 70px rgba(13, 54, 79, 0.10);

  --ed-shadow-soft:
    0 12px 32px rgba(13, 54, 79, 0.065);
}

html.elghis-dashboard-preview body {
  background:
    radial-gradient(
      circle at 92% 6%,
      rgba(43, 168, 176, 0.13),
      transparent 34rem
    ),
    var(--ed-bg);

  color: var(--ed-text);
}

/* ================================================================
   TOPBAR
   ================================================================ */

html.elghis-dashboard-preview
#dashboard-view > .topbar {
  min-height: 88px;
  padding:
    11px
    clamp(24px, 5vw, 88px);

  border-bottom: 1px solid var(--ed-border);

  background:
    rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(16px);
}

html.elghis-dashboard-preview
#dashboard-view
.topbar-brand {
  display: flex;
  align-items: center;
}

html.elghis-dashboard-preview
#dashboard-view
.topbar-brand.elghis-dashboard-official-brand {
  min-width: 100px;
}

html.elghis-dashboard-preview
.elghis-dashboard-header-logo {
  width: auto;
  height: 62px;
  max-width: 98px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

html.elghis-dashboard-preview
#logout-button {
  min-height: 48px;
  padding: 0 22px;

  border: 1px solid var(--ed-border);
  border-radius: 14px;

  background: #ffffff;
  color: var(--ed-text);

  font-weight: 800;
}

/* ================================================================
   APP SHELL
   ================================================================ */

html.elghis-dashboard-preview
.elghis-dashboard-shell {
  width: min(1640px, calc(100% - 38px));
  min-height: 820px;

  margin: 50px auto 72px;

  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);

  overflow: hidden;

  border: 1px solid var(--ed-border);
  border-radius: 32px;

  background: #ffffff;

  box-shadow: var(--ed-shadow);
}

html.elghis-dashboard-preview
.elghis-dashboard-main {
  min-width: 0;

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fbfdfe 62%,
      #f2f8f9 100%
    );
}

/* ================================================================
   SIDEBAR
   ================================================================ */

html.elghis-dashboard-preview
.elghis-dashboard-sidebar {
  position: relative;

  min-height: 100%;
  padding: 20px 13px;

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

  background:
    linear-gradient(
      180deg,
      #062b47 0%,
      #083655 54%,
      #062d4b 100%
    );
}

html.elghis-dashboard-preview
.elghis-dashboard-sidebar-brand {
  width: 56px;
  height: 56px;

  padding: 4px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius: 16px;

  background: #ffffff;
}

html.elghis-dashboard-preview
.elghis-dashboard-sidebar-brand img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

html.elghis-dashboard-preview
.elghis-dashboard-sidebar-nav {
  width: 100%;

  margin-top: 30px;

  display: grid;
  gap: 11px;
}

html.elghis-dashboard-preview
.elghis-dashboard-sidebar-button {
  width: 58px;
  min-height: 58px;

  margin: 0 auto;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.07);

  color: #dcecf2;

  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

html.elghis-dashboard-preview
.elghis-dashboard-sidebar-button:hover {
  transform: translateY(-2px);

  background:
    rgba(255, 255, 255, 0.13);
}

html.elghis-dashboard-preview
.elghis-dashboard-sidebar-button.active {
  background:
    linear-gradient(
      145deg,
      #11939a,
      #087c85
    );

  color: #ffffff;
}

html.elghis-dashboard-preview
.elghis-dashboard-sidebar-button svg {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

/* ================================================================
   CONTENIDO
   ================================================================ */

html.elghis-dashboard-preview
#dashboard-view
.dashboard-content {
  width: auto;
  max-width: none;

  margin: 0;

  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================================================================
   TOOLBAR
   ================================================================ */

html.elghis-dashboard-preview
.elghis-dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

html.elghis-dashboard-preview
.elghis-dashboard-search {
  height: 50px;
  min-width: 0;

  flex: 1;

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

  padding: 0 16px;

  border: 1px solid var(--ed-border);
  border-radius: 15px;

  background: #f4f8fa;

  color: #8095a6;
}

html.elghis-dashboard-preview
.elghis-dashboard-search svg {
  width: 21px;
  height: 21px;

  flex: 0 0 auto;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

html.elghis-dashboard-preview
.elghis-dashboard-search input {
  width: 100%;

  border: 0;
  outline: none;

  background: transparent;

  color: var(--ed-text);

  font-size: 15px;
}

html.elghis-dashboard-preview
.elghis-dashboard-search input::placeholder {
  color: #879bab;
}

html.elghis-dashboard-preview
.elghis-dashboard-toolbar-actions {
  display: flex;
  gap: 10px;
}

html.elghis-dashboard-preview
.elghis-dashboard-toolbar-button {
  width: 50px;
  height: 50px;

  display: grid;
  place-items: center;

  border: 1px solid var(--ed-border);
  border-radius: 15px;

  background: #ffffff;

  color: var(--ed-navy-850);
}

html.elghis-dashboard-preview
.elghis-dashboard-toolbar-button svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

/* ================================================================
   HERO
   ================================================================ */

html.elghis-dashboard-preview
#dashboard-view
.welcome-block {
  position: relative;

  min-height: 190px;

  margin: 0;
  padding: 30px 34px;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(500px, 0.85fr);

  align-items: center;
  gap: 32px;

  overflow: hidden;

  border: 0;
  border-radius: 25px;

  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(32, 162, 171, 0.24),
      transparent 22rem
    ),
    linear-gradient(
      120deg,
      #062d4c,
      #084162 58%,
      #105d78
    );

  color: #ffffff;

  box-shadow:
    0 18px 40px rgba(8, 48, 73, 0.18);
}

html.elghis-dashboard-preview
#dashboard-view
.welcome-block::after {
  content: "";

  position: absolute;
  right: -30px;
  bottom: -110px;

  width: 390px;
  height: 260px;

  border: 1px solid
    rgba(65, 190, 198, 0.18);

  border-radius: 50%;

  transform: rotate(-8deg);

  box-shadow:
    0 0 0 34px rgba(55, 181, 190, 0.025),
    0 0 0 68px rgba(55, 181, 190, 0.025),
    0 0 0 102px rgba(55, 181, 190, 0.02);

  pointer-events: none;
}

html.elghis-dashboard-preview
.elghis-dashboard-hero-copy {
  position: relative;
  z-index: 1;
}

html.elghis-dashboard-preview
#dashboard-view
.welcome-block .eyebrow {
  color: #65d3d4;

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

  letter-spacing: 0.14em;
}

html.elghis-dashboard-preview
#dashboard-title {
  margin: 10px 0 9px;

  color: #ffffff;

  font-size:
    clamp(34px, 3.6vw, 52px);

  line-height: 1;
  letter-spacing: -0.05em;
}

html.elghis-dashboard-preview
#dashboard-view
.welcome-block > .elghis-dashboard-hero-copy > p,
html.elghis-dashboard-preview
#dashboard-view
.welcome-block p {
  max-width: 620px;

  margin: 0;

  color:
    rgba(255, 255, 255, 0.78);

  font-size: 14px;
  line-height: 1.55;
}

/* Hero info */

html.elghis-dashboard-preview
.elghis-dashboard-hero-info {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    1.4fr 1fr 0.8fr;

  align-items: center;
}

html.elghis-dashboard-preview
.elghis-dashboard-hero-info-item {
  min-width: 0;

  padding: 6px 24px;

  border-left:
    1px solid
    rgba(255, 255, 255, 0.16);
}

html.elghis-dashboard-preview
.elghis-dashboard-hero-info-item span {
  display: block;

  color:
    rgba(255, 255, 255, 0.60);

  font-size: 10px;
}

html.elghis-dashboard-preview
.elghis-dashboard-hero-info-item strong {
  margin-top: 6px;

  display: block;

  overflow: hidden;

  color: #ffffff;

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

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

html.elghis-dashboard-preview
.elghis-dashboard-hero-info-item.status strong {
  display: inline-flex;

  padding: 5px 10px;

  border-radius: 999px;

  background:
    rgba(49, 194, 131, 0.20);

  color: #9ff4c8;
}

/* ================================================================
   CUENTA ACTIVA
   ================================================================ */

html.elghis-dashboard-preview
#dashboard-view
.account-card {
  min-height: 110px;

  margin: 0;
  padding: 22px 30px;

  display: grid;
  grid-template-columns:
    minmax(250px, 1.35fr)
    minmax(0, 2.3fr);

  align-items: center;
  gap: 30px;

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

  background: #ffffff;

  box-shadow: var(--ed-shadow-soft);
}

html.elghis-dashboard-preview
#dashboard-view
.account-card .card-label {
  color: var(--ed-teal-700);

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

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.elghis-dashboard-preview
#account-title {
  margin: 7px 0 0;

  color: var(--ed-text);

  font-size: 26px;
  letter-spacing: -0.035em;
}

html.elghis-dashboard-preview
#dashboard-view
.account-details {
  display: grid;
  grid-template-columns:
    1.5fr 1fr 0.8fr;
}

html.elghis-dashboard-preview
#dashboard-view
.account-details > div {
  min-width: 0;

  padding: 3px 24px;

  border-left:
    1px solid var(--ed-border);
}

html.elghis-dashboard-preview
#dashboard-view
.account-details span {
  color: var(--ed-muted);

  font-size: 10px;
}

html.elghis-dashboard-preview
#dashboard-view
.account-details strong {
  margin-top: 6px;

  display: block;

  overflow: hidden;

  color: var(--ed-text);

  font-size: 12px;

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

html.elghis-dashboard-preview
#dashboard-view
.account-details .status-active {
  width: fit-content;

  padding: 4px 10px;

  border-radius: 999px;

  background: var(--ed-success-bg);
  color: var(--ed-success);
}

/* ================================================================
   CITAS
   ================================================================ */

html.elghis-dashboard-preview
#dashboard-view
.bookings-section {
  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
  box-shadow: none;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-heading {
  margin-bottom: 15px;

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

html.elghis-dashboard-preview
#dashboard-view
.bookings-heading .eyebrow {
  display: none;
}

html.elghis-dashboard-preview
#bookings-title {
  margin: 0;

  color: var(--ed-text);

  font-size: 25px;
  letter-spacing: -0.035em;
}

html.elghis-dashboard-preview
#bookings-description {
  margin: 5px 0 0;

  color: var(--ed-muted);

  font-size: 12px;
}

html.elghis-dashboard-preview
#calendar-link {
  min-height: 45px;

  padding: 0 18px;

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

  border: 0;
  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      var(--ed-teal-600),
      var(--ed-teal-700)
    );

  color: #ffffff;

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

  text-decoration: none;

  box-shadow:
    0 10px 25px
    rgba(14, 139, 147, 0.17);
}

html.elghis-dashboard-preview
.elghis-bookings-grid {
  display: grid;
  grid-template-columns:
    minmax(360px, 0.78fr)
    minmax(0, 1.55fr);

  gap: 18px;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-summary {
  margin: 0;

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

  gap: 12px;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-summary > div {
  min-height: 118px;

  padding: 18px 20px;

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

  border: 1px solid var(--ed-border);
  border-radius: 18px;

  background: #ffffff;

  box-shadow: var(--ed-shadow-soft);
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-summary span {
  color: var(--ed-muted);

  font-size: 11px;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-summary strong {
  margin-top: 7px;

  color: var(--ed-text);

  font-size: 28px;
  line-height: 1;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-list {
  min-height: 118px;

  margin: 0;
  padding: 0;

  display: grid;

  border: 1px dashed #cbdce2;
  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.75);
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-empty,
html.elghis-dashboard-preview
#dashboard-view
.bookings-loading,
html.elghis-dashboard-preview
#dashboard-view
.bookings-error {
  min-height: 116px;

  display: grid;
  place-items: center;

  padding: 22px;

  border: 0;

  background: transparent;

  color: var(--ed-muted);

  text-align: center;
}

/* Tarjetas reales cuando existan citas */

html.elghis-dashboard-preview
#dashboard-view
.booking-card {
  margin: 10px;

  padding: 16px;

  border: 1px solid var(--ed-border);
  border-radius: 15px;

  background: #ffffff;
}

/* ================================================================
   MÓDULOS
   ================================================================ */

html.elghis-dashboard-preview
.elghis-dashboard-modules-section {
  margin: 4px 0 0;
}

html.elghis-dashboard-preview
.elghis-dashboard-modules-section
.section-heading {
  margin-bottom: 14px;
}

html.elghis-dashboard-preview
.elghis-dashboard-modules-section
.section-heading .eyebrow {
  display: none;
}

html.elghis-dashboard-preview
#modules-title {
  margin: 0;

  color: var(--ed-text);

  font-size: 25px;
  letter-spacing: -0.035em;
}

html.elghis-dashboard-preview
#modules-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}

html.elghis-dashboard-preview
#modules-grid
.module-card {
  position: relative;

  min-height: 255px;

  padding: 22px;

  display: grid;
  grid-template-columns:
    72px minmax(0, 1fr);

  align-content: start;
  gap: 16px;

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

  background: #ffffff;

  box-shadow: var(--ed-shadow-soft);

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

html.elghis-dashboard-preview
#modules-grid
.module-card:hover {
  transform: translateY(-3px);

  border-color: #bdd8dd;

  box-shadow:
    0 18px 40px
    rgba(13, 54, 79, 0.10);
}

html.elghis-dashboard-preview
#modules-grid
.module-icon {
  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      #e7f8f6,
      #cceeed
    );

  color: var(--ed-teal-700);
}

html.elghis-dashboard-preview
#modules-grid
.module-icon svg {
  width: 34px;
  height: 34px;

  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html.elghis-dashboard-preview
#modules-grid
.module-card > div:not(.module-icon) {
  min-width: 0;
}

html.elghis-dashboard-preview
#modules-grid
.module-card h3 {
  margin: 4px 0 7px;

  color: var(--ed-text);

  font-size: 17px;
  letter-spacing: -0.02em;
}

html.elghis-dashboard-preview
#modules-grid
.module-card p {
  margin: 0;

  color: var(--ed-muted);

  font-size: 12px;
  line-height: 1.5;
}

html.elghis-dashboard-preview
#modules-grid
.module-status {
  width: fit-content;

  margin-top: 10px;
  padding: 5px 9px;

  border-radius: 999px;

  background: var(--ed-success-bg);
  color: var(--ed-success);

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

  text-transform: uppercase;
}

html.elghis-dashboard-preview
#modules-grid
.module-link {
  grid-column: 1 / -1;

  width: 100%;
  min-height: 42px;

  margin-top: 4px;
  padding: 0 16px;

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

  border: 0;
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--ed-teal-600),
      var(--ed-teal-700)
    );

  color: #ffffff;

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

  text-decoration: none;
}

/* ================================================================
   SECCIONES ADMINISTRATIVAS REALES
   ================================================================ */

html.elghis-dashboard-preview
#members-section:not(.hidden),
html.elghis-dashboard-preview
#organization-settings-section:not(.hidden) {
  margin: 0;

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

  background: #ffffff;

  box-shadow: var(--ed-shadow-soft);
}

/* ================================================================
   FOOTER
   ================================================================ */

html.elghis-dashboard-preview
#dashboard-view > .dashboard-footer {
  display: none;
}

/* ================================================================
   BUSCADOR
   ================================================================ */

html.elghis-dashboard-preview
.elghis-dashboard-search-hidden {
  display: none !important;
}

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

@media (max-width: 1200px) {
  html.elghis-dashboard-preview
  #dashboard-view
  .welcome-block {
    grid-template-columns: 1fr;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-hero-info {
    max-width: 800px;
  }

  html.elghis-dashboard-preview
  #modules-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html.elghis-dashboard-preview
  .elghis-dashboard-shell {
    grid-template-columns:
      74px minmax(0, 1fr);
  }

  html.elghis-dashboard-preview
  #dashboard-view
  .account-card {
    grid-template-columns: 1fr;
  }

  html.elghis-dashboard-preview
  #dashboard-view
  .account-details > div:first-child {
    border-left: 0;
  }

  html.elghis-dashboard-preview
  .elghis-bookings-grid {
    grid-template-columns: 1fr;
  }

  html.elghis-dashboard-preview
  #modules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  html.elghis-dashboard-preview
  #dashboard-view > .topbar {
    min-height: 74px;
    padding: 9px 14px;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-header-logo {
    height: 54px;
    max-width: 86px;
  }

  html.elghis-dashboard-preview
  #logout-button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 12px;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-shell {
    width: calc(100% - 18px);

    margin: 20px auto 45px;

    display: block;

    border-radius: 25px;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-sidebar {
    min-height: auto;

    padding: 10px 12px;

    flex-direction: row;
    justify-content: space-between;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-sidebar-brand {
    width: 45px;
    height: 45px;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-sidebar-nav {
    width: auto;

    margin: 0;

    display: flex;
    gap: 6px;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-sidebar-button {
    width: 43px;
    min-height: 43px;

    border-radius: 13px;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-sidebar-button:nth-child(n + 5) {
    display: none;
  }

  html.elghis-dashboard-preview
  #dashboard-view
  .dashboard-content {
    padding: 15px;
  }

  html.elghis-dashboard-preview
  #dashboard-view
  .welcome-block {
    min-height: 0;

    padding: 23px;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-hero-info {
    grid-template-columns: 1fr;
  }

  html.elghis-dashboard-preview
  .elghis-dashboard-hero-info-item {
    padding: 8px 0;

    border-left: 0;
  }

  html.elghis-dashboard-preview
  #dashboard-view
  .account-details {
    grid-template-columns: 1fr;
  }

  html.elghis-dashboard-preview
  #dashboard-view
  .account-details > div {
    padding: 8px 0;

    border-left: 0;
  }

  html.elghis-dashboard-preview
  #dashboard-view
  .bookings-heading {
    align-items: stretch;
    flex-direction: column;
  }

  html.elghis-dashboard-preview
  #calendar-link {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html.elghis-dashboard-preview
  .elghis-dashboard-toolbar-actions
  .elghis-dashboard-toolbar-button:last-child {
    display: none;
  }

  html.elghis-dashboard-preview
  #dashboard-view
  .bookings-summary {
    grid-template-columns: 1fr 1fr;
  }

  html.elghis-dashboard-preview
  #modules-grid
  .module-card {
    grid-template-columns:
      62px minmax(0, 1fr);
  }

  html.elghis-dashboard-preview
  #modules-grid
  .module-icon {
    width: 62px;
    height: 62px;
  }
}

/* ELGHIS_DASHBOARD_FINETUNE_BEGIN */

/* ================================================================
   AJUSTE DE DENSIDAD · APROBACIÓN VISUAL FINAL
   ================================================================ */

html.elghis-dashboard-preview
#dashboard-view
.dashboard-content {
  gap: 14px;
}

/* Hero ligeramente más compacto */

html.elghis-dashboard-preview
#dashboard-view
.welcome-block {
  min-height: 168px;
  padding: 25px 32px;
}

html.elghis-dashboard-preview
#dashboard-title {
  margin-top: 8px;
  font-size: clamp(34px, 3.3vw, 48px);
}

/* Cuenta activa */

html.elghis-dashboard-preview
#dashboard-view
.account-card {
  min-height: 96px;
  padding: 17px 28px;
}

html.elghis-dashboard-preview
#account-title {
  font-size: 24px;
}

/* Citas */

html.elghis-dashboard-preview
#dashboard-view
.bookings-heading {
  margin-bottom: 11px;
}

html.elghis-dashboard-preview
#bookings-title {
  font-size: 23px;
}

html.elghis-dashboard-preview
.elghis-bookings-grid {
  gap: 14px;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-summary {
  gap: 10px;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-summary > div {
  min-height: 96px;
  padding: 15px 18px;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-summary strong {
  font-size: 26px;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-list {
  min-height: 96px;
}

html.elghis-dashboard-preview
#dashboard-view
.bookings-empty,
html.elghis-dashboard-preview
#dashboard-view
.bookings-loading,
html.elghis-dashboard-preview
#dashboard-view
.bookings-error {
  min-height: 94px;
  padding: 17px;
}

/* Módulos */

html.elghis-dashboard-preview
.elghis-dashboard-modules-section {
  margin-top: 0;
}

html.elghis-dashboard-preview
.elghis-dashboard-modules-section
.section-heading {
  margin-bottom: 11px;
}

html.elghis-dashboard-preview
#modules-title {
  font-size: 23px;
}

html.elghis-dashboard-preview
#modules-grid {
  gap: 14px;
}

html.elghis-dashboard-preview
#modules-grid
.module-card {
  min-height: 218px;
  padding: 18px;

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

  gap: 14px;
}

html.elghis-dashboard-preview
#modules-grid
.module-icon {
  width: 64px;
  height: 64px;
  border-radius: 17px;
}

html.elghis-dashboard-preview
#modules-grid
.module-icon svg {
  width: 31px;
  height: 31px;
}

html.elghis-dashboard-preview
#modules-grid
.module-card h3 {
  margin-top: 2px;
  font-size: 16px;
}

html.elghis-dashboard-preview
#modules-grid
.module-card p {
  font-size: 11.5px;
}

html.elghis-dashboard-preview
#modules-grid
.module-status {
  margin-top: 8px;
}

html.elghis-dashboard-preview
#modules-grid
.module-link {
  min-height: 39px;
  margin-top: 1px;
}

/* Mantener espacio respirable al final */

html.elghis-dashboard-preview
.elghis-dashboard-shell {
  margin-bottom: 52px;
}

/* ELGHIS_DASHBOARD_FINETUNE_END */

/* ELGHIS_DASHBOARD_MODULE_CARDS_FIX_BEGIN */

/* ================================================================
   CORRECCIÓN ESPECÍFICA · TARJETAS DE MÓDULOS
   ================================================================ */

html.elghis-dashboard-preview
#modules-grid {
  align-items: stretch;
}

html.elghis-dashboard-preview
#modules-grid .module-card {
  min-height: 252px;
  padding: 20px 20px 18px;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

html.elghis-dashboard-preview
#modules-grid .elghis-module-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

html.elghis-dashboard-preview
#modules-grid .elghis-module-copy {
  min-width: 0;
}

html.elghis-dashboard-preview
#modules-grid .elghis-module-copy h3 {
  margin: 4px 0 10px;
  color: var(--ed-text);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

html.elghis-dashboard-preview
#modules-grid .elghis-module-copy p {
  margin: 0;
  color: var(--ed-muted);
  font-size: 12px;
  line-height: 1.55;
}

html.elghis-dashboard-preview
#modules-grid .elghis-module-meta {
  margin-top: 14px;
  min-height: 22px;
  display: flex;
  align-items: center;
}

html.elghis-dashboard-preview
#modules-grid .elghis-module-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;

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

  border-radius: 999px;

  background: #e2f3e9;
  color: #127145;

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html.elghis-dashboard-preview
#modules-grid .elghis-module-extra {
  margin-top: 12px;
}

html.elghis-dashboard-preview
#modules-grid .module-link {
  width: 100%;
  min-height: 43px;
  margin-top: auto;
  align-self: stretch;
}

html.elghis-dashboard-preview
#modules-grid .module-status,
html.elghis-dashboard-preview
#modules-grid .module-connection-note {
  display: none !important;
}

@media (max-width: 480px) {
  html.elghis-dashboard-preview
  #modules-grid .elghis-module-head {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
  }
}

/* ELGHIS_DASHBOARD_MODULE_CARDS_FIX_END */

/* ELGHIS_DASHBOARD_LINKS_FIX_BEGIN */

html.elghis-dashboard-preview
#modules-grid
.module-link {
  position: relative;
  z-index: 5;

  pointer-events: auto !important;
  cursor: pointer;
}

html.elghis-dashboard-preview
#modules-grid
.module-card {
  isolation: isolate;
}

html.elghis-dashboard-preview
.elghis-dashboard-sidebar-button {
  pointer-events: auto;
  cursor: pointer;
}

/* ELGHIS_DASHBOARD_LINKS_FIX_END */

/* ELGHIS_SHARE_LINK_CARD_BEGIN */

html.elghis-dashboard-preview
.elghis-share-link-card {
  margin: 20px 0;
  padding: 24px;

  border: 1px solid rgba(15, 45, 78, 0.08);
  border-radius: 22px;

  background: #ffffff;
  box-shadow:
    0 12px 32px rgba(20, 45, 75, 0.06);
}

html.elghis-dashboard-preview
.elghis-share-link-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

html.elghis-dashboard-preview
.elghis-share-link-kicker {
  margin-bottom: 5px;

  color: #17989a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.elghis-dashboard-preview
.elghis-share-link-heading h2 {
  margin: 0;

  color: #132b48;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

html.elghis-dashboard-preview
.elghis-share-link-heading p {
  margin: 6px 0 0;

  color: #758399;
  font-size: 13px;
}

html.elghis-dashboard-preview
.elghis-share-link-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border-radius: 13px;
  background: #e9f7f6;
}

html.elghis-dashboard-preview
.elghis-share-link-icon svg {
  width: 21px;
  height: 21px;

  stroke: #14898b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.elghis-dashboard-preview
.elghis-share-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

html.elghis-dashboard-preview
.elghis-share-link-option {
  min-width: 0;
  padding: 17px;

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

  background: #f9fbfc;
}

html.elghis-dashboard-preview
.elghis-share-link-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  color: #1a3555;
  font-size: 14px;
  font-weight: 800;
}

html.elghis-dashboard-preview
.elghis-share-link-pill {
  display: inline-flex;
  align-items: center;

  min-height: 22px;
  padding: 0 8px;

  border-radius: 999px;

  background: #e5f5ee;
  color: #16714b;

  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html.elghis-dashboard-preview
.elghis-share-link-pill.neutral {
  background: #edf1f5;
  color: #6e7d90;
}

html.elghis-dashboard-preview
.elghis-share-link-pill.active {
  background: #e3f5ed;
  color: #08734a;
}

html.elghis-dashboard-preview
.elghis-share-link-description {
  min-height: 38px;
  margin: 9px 0 13px;

  color: #7a8799;
  font-size: 12px;
  line-height: 1.5;
}

html.elghis-dashboard-preview
.elghis-share-link-value {
  min-height: 42px;
  display: flex;
  align-items: center;

  overflow: hidden;

  padding: 0 12px;

  border: 1px solid #e0e7ee;
  border-radius: 11px;

  background: #ffffff;

  color: #274766;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

html.elghis-dashboard-preview
.elghis-share-link-value.muted {
  color: #8895a6;
  font-weight: 600;
}

html.elghis-dashboard-preview
.elghis-share-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-top: 11px;
}

html.elghis-dashboard-preview
.elghis-share-btn {
  min-height: 35px;
  padding: 0 12px;

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

  background: #ffffff;
  color: #294663;

  cursor: pointer;

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

html.elghis-dashboard-preview
.elghis-share-btn:hover:not(:disabled) {
  background: #f3f7f9;
}

html.elghis-dashboard-preview
.elghis-share-btn.primary {
  border-color: #153b62;
  background: #153b62;
  color: #ffffff;
}

html.elghis-dashboard-preview
.elghis-share-btn.primary:hover:not(:disabled) {
  background: #102f50;
}

html.elghis-dashboard-preview
.elghis-share-btn.danger {
  border-color: #f0d7d7;
  color: #a64646;
}

html.elghis-dashboard-preview
.elghis-share-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html.elghis-dashboard-preview
.elghis-share-link-message {
  min-height: 18px;
  margin-top: 10px;

  color: #728196;
  font-size: 11px;
}

html.elghis-dashboard-preview
.elghis-share-link-message.success {
  color: #16714b;
}

html.elghis-dashboard-preview
.elghis-share-link-message.error {
  color: #a64646;
}

@media (max-width: 760px) {
  html.elghis-dashboard-preview
  .elghis-share-link-grid {
    grid-template-columns: 1fr;
  }

  html.elghis-dashboard-preview
  .elghis-share-link-card {
    padding: 18px;
  }
}

/* ELGHIS_SHARE_LINK_CARD_END */
