@charset "UTF-8";
[show=false] {
  display: none !important;
}

/* New Login Styles */
body {
  font-family: "Poppins", sans-serif;
}

/* Updated Login Styles */
.login-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  backdrop-filter: blur(8px);
}

/* Updated Login Styles - Button positioning fix */
.login-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 2.5rem 2rem !important;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0 !important;
}

.logo-container {
  margin-bottom: 1.5rem;
}
.logo-container .logo-wrapper {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 15px;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.logo-container .logo-wrapper img {
  max-height: 110px;
  max-width: 110px;
  transition: transform 0.3s ease;
}
.logo-container .logo-wrapper img:hover {
  transform: scale(1.05);
}

.login-title {
  color: #0ea761;
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.input-field {
  margin-bottom: 1.5rem;
}
.input-field .prefix {
  color: #0ea761;
}
.input-field input {
  border-bottom: 2px solid #e0e0e0;
  box-shadow: none !important;
}
.input-field input:focus {
  border-bottom: 2px solid #0ea761;
}
.input-field label {
  color: #9e9e9e;
}

.login-action {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.login-button-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Updated login button style */
.btn-login {
  background-color: #0ea761 !important;
  border-radius: 30px !important;
  padding: 0 2rem !important;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(14, 167, 97, 0.3) !important;
  transition: all 0.3s ease;
  height: 48px !important;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.btn-login i {
  margin-right: 8px;
}
.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 167, 97, 0.4) !important;
  background-color: rgb(12.0276243094, 143.4723756906, 83.3342541436) !important;
}
.btn-login:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(14, 167, 97, 0.3) !important;
}

.login-loader {
  margin: 10px auto;
}

.dropdown-content.select-dropdown {
  max-height: 25rem;
  overflow-y: auto;
}

.dropdown-content.select-dropdown {
  position: fixed !important;
}

.swal2-actions {
  z-index: 0 !important;
}

.loaderWrapper.b1 {
  position: fixed;
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform 1s cubic-bezier(0.61, 0.01, 0, 1);
  transition: -webkit-transform 1s cubic-bezier(0.61, 0.01, 0, 1);
  -o-transition: transform 1s cubic-bezier(0.61, 0.01, 0, 1);
  transition: transform 1s cubic-bezier(0.61, 0.01, 0, 1);
  transition: transform 1s cubic-bezier(0.61, 0.01, 0, 1), -webkit-transform 1s cubic-bezier(0.61, 0.01, 0, 1);
  /*    transition: transform 1s cubic-bezier(0.165, 0.85, 0.45, 1); */
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.loaderWrapper.b2 {
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 9998;
  background: #567280;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform 1s 0.2s cubic-bezier(0.61, 0.01, 0, 1);
  transition: -webkit-transform 1s 0.2s cubic-bezier(0.61, 0.01, 0, 1);
  -o-transition: transform 1s 0.2s cubic-bezier(0.61, 0.01, 0, 1);
  transition: transform 1s 0.2s cubic-bezier(0.61, 0.01, 0, 1);
  transition: transform 1s 0.2s cubic-bezier(0.61, 0.01, 0, 1), -webkit-transform 1s 0.2s cubic-bezier(0.61, 0.01, 0, 1);
}

.loaderWrapper.b1.up {
  -webkit-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  transform: translateY(-100%);
}

.loaderWrapper.b2.up {
  -webkit-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  transform: translateY(-100%);
}

.up .loader {
  opacity: 0;
}

.rowloader {
  height: 35rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.loader,
.loader:before,
.loader:after {
  background: #ffffff;
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}

.loader-black:before,
.loader-black:after {
  background: #000000;
}

.loader {
  color: #ffffff;
  text-indent: -9999em;
  margin: 88px auto;
  position: relative;
  font-size: 11px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
  opacity: 1;
  -webkit-transition: opacity 0.2s ease;
  -o-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}

.loader:before,
.loader:after {
  position: absolute;
  top: 0;
  content: "";
}

.loader:before {
  left: -1.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.loader:after {
  left: 1.5em;
}

@-webkit-keyframes load1 {
  0%, 80%, 100% {
    -webkit-box-shadow: 0 0;
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    -webkit-box-shadow: 0 -2em;
    box-shadow: 0 -2em;
    height: 5em;
  }
}
@keyframes load1 {
  0%, 80%, 100% {
    -webkit-box-shadow: 0 0;
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    -webkit-box-shadow: 0 -2em;
    box-shadow: 0 -2em;
    height: 5em;
  }
}
.noScroll {
  overflow: hidden;
}

.loadingIndicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 9995;
  /* Estilos de animación si lo deseas */
  /* ... */
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.loader2 {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #3498db;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.autocomplete-content {
  max-height: 30vh;
}

#login button {
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1;
}

.inscripcion .row:first-child {
  margin: 0;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}
.inscripcion .row:first-child .card-panel h4 {
  margin-bottom: 20px;
  margin-top: 0;
}
.inscripcion .row:first-child .card-panel {
  text-align: center;
  position: relative;
}
.inscripcion .row:first-child .card-panel > *:nth-child(2) {
  margin-top: 90px;
}

.container .helper-text {
  text-align: left;
}
.container .row:first-child {
  margin: 0;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}
.container .row:first-child .card-panel {
  text-align: center;
  position: relative;
}
.container .row:first-child .card-panel .logoInscripcion {
  position: absolute;
  height: 160px;
  transform: translateY(-50%);
  width: calc(100% - 22.5px); /*40px referente al padding de .card-panel */
  display: flex;
  justify-content: center;
}
.container .row:first-child .card-panel .logoInscripcion > div {
  height: 160px;
  width: 160px;
  border-radius: 150px;
  background: #0ea761;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container .row:first-child .card-panel .logoInscripcion > div img {
  height: 130px;
  margin-top: 10px;
}

#navIns {
  background-color: rgba(14, 167, 97, 0.8196078431) !important;
  position: fixed;
  z-index: 10;
}
#navIns p {
  margin: 0;
  font-size: 40px !important;
}
#navIns ~ #app {
  padding-top: 65px;
}

.persiana-enter-active {
  animation: persiana-in 0.5s;
}

.persiana-leave-active {
  animation: persiana-in 0.5s reverse;
}

@keyframes persiana-in {
  0% {
    clip-path: polygon(0 0, 100% 0, 0 0, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}
.planilla {
  padding: 0 15px !important;
  position: absolute !important;
  top: 100px;
}
.planilla .input-field, .planilla p {
  padding: 0;
}
.planilla .contenedor2 > div:nth-child(1) {
  padding-right: 20px;
}

.texto-ayuda {
  text-align: left;
  color: #999 !important;
  line-height: 1 !important;
}
.texto-ayuda.subtitulo {
  color: #232323 !important;
  text-align: center;
  font-weight: bold;
}

#convivencia {
  height: 90%;
}
#convivencia > .row {
  height: 100%;
}
#convivencia .h90 {
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#convivencia .card-panel {
  padding: 0;
}
#convivencia .card-panel #pdfconvivencia_wrap {
  overflow-y: auto;
  overflow-x: hidden;
  height: 80%;
  display: block;
  box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.2);
}
#convivencia .card-panel #pdfconvivencia_wrap canvas:not(:last-child) {
  border-bottom: 10px solid #999;
}
#convivencia .card-panel .row:last-child {
  padding: 0 30px;
  margin-top: 0;
}
#convivencia .card-panel .pdf_cargando {
  margin: 150px 0 !important;
}
#convivencia .card-panel .pdf_cargando span {
  text-align: center;
}

.nvoRecibo p .material-icons {
  font-size: 45px;
}
.nvoRecibo table {
  border-bottom: 1px solid #999;
}
.nvoRecibo .helper-text {
  font-size: 15px;
  line-height: 1;
  margin-bottom: 10px;
}
.nvoRecibo .card-panel {
  padding: 8px;
}
.nvoRecibo .card-panel table {
  margin: 0.5rem 0;
}
.nvoRecibo i {
  user-select: none;
}

*::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #F5F5F5;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: #F5F5F5;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
}

body {
  background: #f8f8f8;
}

.swal2-content {
  z-index: 9 !important;
}

.bold {
  font-weight: bold;
}

a, .material-icons {
  cursor: pointer;
}

.pointer {
  cursor: pointer;
}

header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 500;
}

nav {
  background: rgba(51, 51, 51, 0.7803921569) !important;
  padding: 0 2%;
}
nav .brand-logo {
  height: 100%;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
nav img {
  height: 60%;
}

li.active {
  background-color: #0071bc !important;
}

.sidenav {
  background: #2f2e2e !important;
  overflow-y: auto;
  height: 100%;
}
.sidenav li {
  cursor: pointer;
  border-bottom: 2px solid #ffffff !important;
}
.sidenav li a:not(.logo) {
  line-height: 1;
}
.sidenav li a:not(.logo):hover {
  background-color: rgba(0, 0, 0, 0.25) !important;
}
.sidenav li a.current {
  font-weight: bold;
  text-transform: uppercase;
}
.sidenav li .logo:hover {
  background-color: rgba(0, 0, 0, 0) !important;
}
.sidenav .collapsible .material-icons {
  color: white;
}
.sidenav .collapsible li {
  border-bottom: none !important;
  background: #2f2e2e !important;
}
.sidenav .collapsible li:not(:first-child) {
  border-top: 2px solid white;
}
.sidenav .collapsible .collapsible-header {
  padding: 0 32px;
}
.sidenav .collapsible .collapsible-header:focus {
  background: #2f2e2e !important;
}
.sidenav .collapsible .collapsible-header.current {
  font-family: nexablack;
  color: #12b061;
  line-height: 1.2 !important;
  padding: 10px 32px !important;
}
.sidenav .collapsible .collapsible-body {
  margin-left: 32px;
}
.sidenav .collapsible .collapsible-body li.current {
  word-break: keep-all;
}
.sidenav .collapsible .collapsible-body li.current a {
  color: #12b061;
  font-weight: bold;
}
.sidenav .collapsible .collapsible-body li a {
  line-height: 1.2;
  padding-left: 10px;
}
.sidenav .collapsible .collapsible-body li span {
  margin-top: 0;
}
.sidenav .collapsible .collapsible-body li span:after {
  content: "" !important;
}
.sidenav a:not(.logo) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 1.1rem !important;
  color: white;
}
.sidenav a:not(.logo) img {
  width: 10%;
  margin-right: 4%;
}

.dataTables_length label {
  display: inline-flex;
  align-items: center;
}
.dataTables_length label .select-wrapper {
  width: 60px;
  margin: 0 1rem;
}

@font-face {
  font-family: "nexablack";
  src: url("nexa rust black.OTF");
}
@font-face {
  font-family: "caviar";
  src: url("caviardreams.TTF");
}
.nexablack {
  font-family: nexablack;
}

button {
  font-family: nexablack !important;
}

.logo {
  height: -webkit-fit-content !important;
  height: -moz-fit-content !important;
  height: fit-content !important;
  background-image: url("../img/fondoLogoAdmin.jpg");
  background-position: contain;
  text-align: center;
}
.logo img {
  width: 100%;
  margin: 14% 0;
  filter: drop-shadow(2px 4px 9px black);
}

#slide-out {
  padding: 1rem;
}

.fondoBody {
  background-image: url(../img/fondoBody.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -999;
  /*height: 100%;*/
}

#fondo {
  position: fixed;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.15;
  background-image: url(../img/0);
  background-size: 5%;
}

div[id^=body] > h1 {
  margin-top: 0;
  padding-top: 2.2rem;
}

.swal2-popup h3 {
  margin: 0;
  margin-bottom: 10;
}

.btn-green {
  background-color: #0ea761 !important;
}

[id*=body] .tabs a {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
[id*=body] .tabs span:after {
  content: "" !important;
}
[id*=body] button {
  background-color: #0ea761 !important;
}

.cobranzas {
  position: relative;
}
.cobranzas tr {
  background-color: transparent;
}
.cobranzas tr:first-child .nodata:last-child::after {
  color: transparent !important;
}
.cobranzas td {
  color: white;
  padding: 5px !important;
  text-align: center;
}
.cobranzas td.nodata {
  color: transparent;
}
.cobranzas td.nodata:last-child::after {
  content: "No hay datos";
  color: #2f2e2e;
  position: absolute;
  width: 100%;
  left: 0;
  font-size: 16px;
  top: calc(25% + 3px);
  text-align: center;
}

.btnListasUtiles a {
  margin-bottom: 15px;
  background-color: #0ea761;
}

#resultadoInventario td:first-child {
  font-weight: bold;
}

.swal2-html-container {
  overflow-x: hidden !important;
}

.nuevaFactura .periodo {
  transform: scale(1.5);
}
.nuevaFactura .sugerencias {
  transition: ease-in-out 0.3s all;
}
.nuevaFactura .sugerencias:hover {
  transform: scale(1.35);
  color: green;
}
.nuevaFactura .mensualidades span {
  font-size: 13px !important;
}

.material-icons {
  user-select: none;
}

.clear-icon {
  position: absolute;
  right: 5px;
  top: 15px;
  cursor: pointer;
  color: #9e9e9e;
}
.clear-icon:hover {
  color: #607d8b;
}

.input-field.auto {
  position: relative;
  padding-right: 30px;
}

.section-helper {
  margin: -0.25rem 0 1.5rem;
  color: #607d8b;
  font-size: 0.98rem;
}

.consultation-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.consultation-actions-header h5 {
  margin: 0;
}

.patient-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.patient-search-row {
  display: flex;
  align-items: flex-end;
}

.patient-search-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.patient-clear-action {
  color: #607d8b;
}

.patient-workspace-empty,
.workspace-empty-state {
  border: 1px dashed #c7d3dc;
  background: linear-gradient(135deg, #f8fbfd, #eef5f8);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.patient-workspace-empty i,
.workspace-empty-state i {
  font-size: 3rem;
  color: #78909c;
  margin-bottom: 0.75rem;
}
.patient-workspace-empty h5,
.workspace-empty-state h5 {
  margin: 0 0 0.5rem;
  color: #29434e;
}
.patient-workspace-empty p,
.workspace-empty-state p {
  margin: 0 auto;
  max-width: 720px;
  color: #607d8b;
  line-height: 1.6;
}
.patient-workspace-empty.compact,
.workspace-empty-state.compact {
  padding: 1.5rem;
  text-align: left;
}
.patient-workspace-empty.compact p,
.workspace-empty-state.compact p {
  max-width: none;
  margin-bottom: 1rem;
}

.patient-workspace-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.patient-workspace-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.patient-workspace-avatar-wrap {
  flex-shrink: 0;
}

.patient-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.patient-avatar-fallback {
  background: linear-gradient(135deg, #d7e8ef, #b7d5df);
  color: #12384a;
  border: 1px solid rgba(18, 56, 74, 0.1);
}

.patient-avatar-hero {
  width: 84px;
  height: 84px;
  font-size: 1.6rem;
  box-shadow: 0 12px 28px rgba(7, 25, 34, 0.18);
}

.patient-avatar-table {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
  margin: 0 auto;
}

.patient-photo-uploader {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #d9e5ea;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbfd, #eef5f8);
}

.patient-photo-preview-slot {
  flex-shrink: 0;
}

.patient-avatar-preview {
  width: 88px;
  height: 88px;
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(18, 56, 74, 0.12);
}

.patient-photo-uploader-body {
  flex: 1;
  min-width: 0;
}

.patient-photo-uploader-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #173042;
}

.patient-photo-uploader-copy {
  margin: 0 0 0.75rem;
  color: #607d8b;
  line-height: 1.45;
}

.patient-photo-input {
  margin-bottom: 0.35rem;
}

.patient-photo-remove {
  padding-left: 0;
  color: #c62828;
}

.patient-workspace-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #133c55, #1f6f8b);
  color: #fff;
}
.patient-workspace-hero h4 {
  margin: 0 0 0.35rem;
}

.patient-workspace-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.patient-workspace-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.patient-workspace-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
}

.patient-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.patient-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem;
  border: 1px solid #e3ebef;
  box-shadow: 0 10px 25px rgba(18, 56, 74, 0.06);
}
.patient-stat-card strong {
  display: block;
  margin: 0.25rem 0 0.35rem;
  font-size: 1.35rem;
  color: #173042;
}
.patient-stat-card small {
  color: #607d8b;
  line-height: 1.4;
}

.patient-stat-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78909c;
}

.patient-workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.patient-workspace-main,
.patient-workspace-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.workspace-panel {
  background: #fff;
  border: 1px solid #e3ebef;
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(18, 56, 74, 0.05);
}

.workspace-panel-highlight {
  background: linear-gradient(180deg, #f6fbf7, #ffffff);
  border-color: rgba(14, 167, 97, 0.18);
}

.workspace-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.workspace-panel-header h5 {
  margin: 0 0 0.25rem;
  color: #173042;
}
.workspace-panel-header p {
  margin: 0;
  color: #607d8b;
  line-height: 1.5;
}

.patient-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.patient-data-item {
  background: #f7fbfc;
  border: 1px solid #e5eef2;
  border-radius: 14px;
  padding: 0.95rem 1rem;
}
.patient-data-item span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78909c;
}
.patient-data-item strong {
  color: #173042;
  line-height: 1.5;
}
.patient-data-item.patient-data-item-wide {
  grid-column: 1/-1;
}

.patient-history-list,
.patient-session-list,
.patient-diagnosis-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.patient-history-item,
.patient-session-item,
.patient-diagnosis-item {
  border: 1px solid #e3ebef;
  border-radius: 14px;
  padding: 1rem;
  background: #fbfdfe;
}

.patient-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.patient-history-item strong {
  color: #173042;
}
.patient-history-item p {
  margin: 0.25rem 0 0;
  color: #607d8b;
}

.patient-session-item p {
  margin: 0.6rem 0 0;
  color: #526b78;
  line-height: 1.55;
}

.patient-session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.patient-session-meta strong {
  color: #173042;
}
.patient-session-meta span {
  color: #607d8b;
}

.patient-session-status {
  margin-top: 0.5rem;
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #e7f3f8;
  color: #1f6f8b;
  font-size: 0.85rem;
  font-weight: 600;
}

.patient-diagnosis-item strong {
  display: block;
  color: #173042;
  margin-bottom: 0.2rem;
}
.patient-diagnosis-item span {
  color: #607d8b;
  font-size: 0.92rem;
}

.session-observations {
  max-width: 320px;
  white-space: normal;
  line-height: 1.4;
}

.swal2-container ul.tabs {
  overflow-x: hidden !important;
  display: flex !important;
  flex-wrap: wrap !important;
  height: 150px !important;
}
.swal2-container ul.tabs .indicator {
  background-color: #fff !important;
}

@media only screen and (min-width: 993px) {
  header, main, footer {
    padding-left: 300px;
  }
  main {
    padding: 0 2% 0 calc(2% + 300px);
  }
  .planilla .contenedor {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .planilla .contenedor > div:nth-child(1) {
    padding-right: 20px;
  }
  .planilla .contenedor > div:nth-child(2) {
    padding-right: 20px;
  }
  .planilla .contenedor > div:nth-child(3) {
    padding-right: 20px;
  }
}
@media only screen and (max-width: 993px) {
  [id*=body] button {
    margin: 1rem;
  }
  #navIns p {
    font-size: 20px !important;
  }
  #convivencia .card-panel #pdfconvivencia_wrap {
    height: 60%;
  }
  #convivencia .card-panel span {
    height: auto;
  }
}
@media print {
  #impresion {
    display: block !important;
    top: 0;
    left: 0;
  }
  #app {
    display: none !important;
  }
}
/* Responsive adjustments for login */
@media only screen and (max-width: 600px) {
  .login-card {
    padding: 2rem 1.5rem !important;
    margin: 0 1rem !important;
  }
  .logo-container .logo-wrapper {
    width: 120px;
    height: 120px;
    padding: 10px;
  }
  .logo-container .logo-wrapper img {
    max-height: 90px;
    max-width: 90px;
  }
  .login-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .btn-login {
    padding: 0 1.5rem !important;
    font-size: 15px;
  }
}
/* ========================================
   ESTILOS PARA LA NAVEGACIÓN DROPDOWN DE HISTORIA CLÍNICA
   ======================================== */
/* Contenedor de la navegación dropdown */
.section-navigation {
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.section-navigation:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.section-navigation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50, #81C784);
  border-radius: 8px 8px 0 0;
}

/* Selector de sección */
#section-selector {
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}
#section-selector:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
  outline: none;
}
#section-selector option {
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 8px;
}

/* Contenedor de contenido de secciones */
.tab-content-container {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Secciones individuales */
.tab-section {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Estilo para el modal de historia clínica con la nueva navegación */
.swal2-popup .section-navigation {
  position: relative;
  z-index: 1;
}

/* Estilos responsive para pantallas pequeñas */
@media only screen and (max-width: 768px) {
  .patient-search-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .patient-workspace-hero,
  .workspace-panel-header,
  .patient-history-item,
  .patient-session-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .patient-workspace-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .patient-photo-uploader {
    flex-direction: column;
    align-items: flex-start;
  }
  .patient-workspace-layout,
  .patient-data-grid {
    grid-template-columns: 1fr;
  }
  .section-navigation {
    margin-bottom: 15px;
    padding: 8px;
  }
  .consultation-actions-header {
    flex-direction: column;
    align-items: stretch;
  }
  .section-helper {
    padding: 0 1rem;
  }
  #section-selector {
    font-size: 14px;
    padding: 10px 12px;
  }
  .tab-content-container {
    padding: 15px !important;
    height: calc(100% - 100px) !important;
  }
}
@media only screen and (max-width: 480px) {
  .section-navigation {
    margin-bottom: 10px;
    padding: 6px;
  }
  #section-selector {
    font-size: 13px;
    padding: 8px 10px;
  }
  .tab-content-container {
    padding: 10px !important;
    height: calc(100% - 90px) !important;
  }
}
/* ========================================
     ESTILOS UX PARA EL EDITOR DE GENOGRAMA
     ======================================== */
body .swal2-popup .genograma-shell,
body .genograma-shell {
  --genograma-border: rgba(15, 23, 42, 0.08);
  --genograma-surface: #ffffff;
  --genograma-surface-soft: #f6faf8;
  --genograma-ink: #18352a;
  --genograma-muted: #5f766d;
  --genograma-accent: #0ea761;
  --genograma-accent-soft: rgba(14, 167, 97, 0.14);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  color: var(--genograma-ink);
}

body .swal2-popup .genograma-workbench,
body .genograma-workbench {
  min-width: 0;
}

body .swal2-popup .genograma-card-surface,
body .swal2-popup .genograma-intro-card,
body .swal2-popup .genograma-statusbar,
body .swal2-popup .genograma-canvas-card,
body .genograma-card-surface,
body .genograma-intro-card,
body .genograma-statusbar,
body .genograma-canvas-card {
  background: var(--genograma-surface);
  border: 1px solid var(--genograma-border);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

body .swal2-popup .genograma-intro-card,
body .genograma-intro-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f6fcf8 0%, #ffffff 62%, #eef8f2 100%);
}
body .swal2-popup .genograma-intro-card h6,
body .genograma-intro-card h6 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
}
body .swal2-popup .genograma-intro-card p,
body .genograma-intro-card p {
  margin: 0;
  color: var(--genograma-muted);
  line-height: 1.55;
}

body .swal2-popup .genograma-eyebrow,
body .genograma-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--genograma-accent-soft);
  color: var(--genograma-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body .swal2-popup .genograma-metrics,
body .genograma-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 0.75rem;
  min-width: min(100%, 340px);
}

body .swal2-popup .genograma-metric,
body .genograma-metric {
  padding: 0.9rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(14, 167, 97, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body .swal2-popup .genograma-metric-value,
body .genograma-metric-value {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

body .swal2-popup .genograma-metric-label,
body .genograma-metric-label {
  font-size: 0.78rem;
  color: var(--genograma-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body .swal2-popup .genograma-sync-badge,
body .genograma-sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}
body .swal2-popup .genograma-sync-badge.tone-neutral,
body .genograma-sync-badge.tone-neutral {
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
}
body .swal2-popup .genograma-sync-badge.tone-warning,
body .genograma-sync-badge.tone-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}
body .swal2-popup .genograma-sync-badge.tone-saving,
body .genograma-sync-badge.tone-saving {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}
body .swal2-popup .genograma-sync-badge.tone-success,
body .genograma-sync-badge.tone-success {
  background: rgba(14, 167, 97, 0.16);
  color: #0f8b52;
}
body .swal2-popup .genograma-sync-badge.tone-danger,
body .genograma-sync-badge.tone-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}

body .swal2-popup .genograma-toolbar.genograma-toolbar-enhanced,
body .genograma-toolbar.genograma-toolbar-enhanced {
  padding: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdfc 0%, #f2f8f4 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body .swal2-popup .genograma-toolbar-grid,
body .genograma-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body .swal2-popup .genograma-tool-group,
body .genograma-tool-group {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(14, 167, 97, 0.1);
  border-radius: 16px;
  padding: 0.95rem;
}

body .swal2-popup .genograma-tool-group__header,
body .genograma-tool-group__header {
  margin-bottom: 0.85rem;
}
body .swal2-popup .genograma-tool-group__header h6,
body .genograma-tool-group__header h6 {
  margin: 0;
  color: var(--genograma-ink);
  font-size: 0.88rem;
}
body .swal2-popup .genograma-tool-group__header p,
body .genograma-tool-group__header p {
  margin: 0.35rem 0 0;
  color: var(--genograma-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

body .swal2-popup .genograma-tool-group__buttons,
body .genograma-tool-group__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body .swal2-popup .genograma-tool-group__note,
body .genograma-tool-group__note {
  margin: 0 0 0.8rem;
  color: var(--genograma-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

body .swal2-popup .genograma-statusbar,
body .genograma-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

body .swal2-popup .genograma-statusbar__primary,
body .genograma-statusbar__primary {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
body .swal2-popup .genograma-statusbar__primary p,
body .genograma-statusbar__primary p {
  margin: 0;
  color: var(--genograma-muted);
  line-height: 1.55;
}

body .swal2-popup .genograma-state-pill,
body .genograma-state-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 167, 97, 0.14);
  color: var(--genograma-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

body .swal2-popup .genograma-statusbar__meta,
body .genograma-statusbar__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.3rem;
  color: var(--genograma-muted);
  font-size: 0.83rem;
  text-align: right;
}

body .swal2-popup .genograma-canvas-card,
body .genograma-canvas-card {
  padding: 1rem;
}

body .swal2-popup .genograma-canvas-frame,
body .genograma-canvas-frame {
  position: relative;
  padding: 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(14, 167, 97, 0.12);
  background: linear-gradient(180deg, rgba(14, 167, 97, 0.03) 0%, rgba(255, 255, 255, 0.96) 100%), repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.04) 1px, transparent 1px, transparent 28px), repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.04) 1px, transparent 1px, transparent 28px);
}

body .swal2-popup #genograma-container,
body #genograma-container {
  min-height: 620px;
}

body .swal2-popup #genograma-canvas,
body #genograma-canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  display: block;
  background: transparent;
}

body .swal2-popup .genograma-empty-state,
body .genograma-empty-state {
  position: absolute;
  inset: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px dashed rgba(14, 167, 97, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
body .swal2-popup .genograma-empty-state h6,
body .genograma-empty-state h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
body .swal2-popup .genograma-empty-state p,
body .genograma-empty-state p {
  margin: 0;
  max-width: 36rem;
  color: var(--genograma-muted);
  line-height: 1.55;
}
body .swal2-popup .genograma-empty-state.is-hidden,
body .genograma-empty-state.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body .swal2-popup .genograma-empty-state__icon,
body .genograma-empty-state__icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1.2rem;
  display: grid;
  place-items: center;
  background: rgba(14, 167, 97, 0.14);
  color: var(--genograma-accent);
}
body .swal2-popup .genograma-empty-state__icon i,
body .genograma-empty-state__icon i {
  font-size: 2rem;
}

body .swal2-popup .genograma-lower-grid,
body .genograma-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

body .swal2-popup .genograma-summary-board,
body .genograma-summary-board {
  grid-column: 1/-1;
  padding: 1rem 1.05rem;
}

body .swal2-popup .genograma-summary-board__stats,
body .genograma-summary-board__stats {
  margin-bottom: 1rem;
  max-width: 320px;
}

body .swal2-popup .genograma-summary-board__grid,
body .genograma-summary-board__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(240px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

body .swal2-popup .genograma-summary-board .genograma-sidebar-section,
body .genograma-summary-board .genograma-sidebar-section {
  margin-top: 0;
}

body .swal2-popup .genograma-card-title-row,
body .genograma-card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
body .swal2-popup .genograma-card-title-row h6,
body .genograma-card-title-row h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
body .swal2-popup .genograma-card-title-row span,
body .genograma-card-title-row span {
  color: var(--genograma-muted);
  font-size: 0.78rem;
}

body .swal2-popup .genograma-notas,
body .swal2-popup .genograma-trazabilidad,
body .swal2-popup .genograma-leyenda,
body .swal2-popup .genograma-sidebar,
body .genograma-notas,
body .genograma-trazabilidad,
body .genograma-leyenda,
body .genograma-sidebar {
  padding: 1rem 1.05rem;
}

body .swal2-popup .genograma-trazabilidad-grid,
body .genograma-trazabilidad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

body .swal2-popup .genograma-trazabilidad .input-field,
body .genograma-trazabilidad .input-field {
  margin-bottom: 0.8rem;
}

body .swal2-popup .genograma-trazabilidad-field-full,
body .genograma-trazabilidad-field-full {
  grid-column: 1/-1;
}

body .swal2-popup .genograma-select-clinico,
body .genograma-select-clinico {
  margin-top: 0.35rem;
  min-height: 2.75rem;
  border: 1px solid rgba(14, 167, 97, 0.16);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: #fff;
}

body .swal2-popup .genograma-sidebar,
body .genograma-sidebar {
  position: static;
  align-self: start;
  padding: 0.95rem;
}

body .swal2-popup .genograma-toolbar-sidebar,
body .genograma-toolbar-sidebar {
  margin-bottom: 1rem;
  padding: 0.95rem;
}

body .swal2-popup .genograma-toolbar-title-row,
body .genograma-toolbar-title-row {
  margin-bottom: 0.9rem;
}

body .swal2-popup .genograma-sidebar .genograma-toolbar-grid,
body .genograma-sidebar .genograma-toolbar-grid {
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

body .swal2-popup .genograma-sidebar .genograma-tool-group,
body .genograma-sidebar .genograma-tool-group {
  padding: 0.85rem;
}

body .swal2-popup .genograma-sidebar .genograma-tool-group__buttons,
body .genograma-sidebar .genograma-tool-group__buttons {
  gap: 0.4rem;
}

body .swal2-popup .genograma-sidebar .genograma-btn,
body .genograma-sidebar .genograma-btn {
  margin: 0;
}

body .swal2-popup .genograma-sidebar-stats,
body .genograma-sidebar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
body .swal2-popup .genograma-sidebar-stats div,
body .genograma-sidebar-stats div {
  padding: 0.9rem 0.85rem;
  border-radius: 14px;
  background: var(--genograma-surface-soft);
  border: 1px solid rgba(14, 167, 97, 0.1);
}
body .swal2-popup .genograma-sidebar-stats strong,
body .genograma-sidebar-stats strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}
body .swal2-popup .genograma-sidebar-stats span,
body .genograma-sidebar-stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--genograma-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body .swal2-popup .genograma-sidebar-section,
body .genograma-sidebar-section {
  margin-top: 1rem;
}

body .swal2-popup .genograma-section-heading,
body .genograma-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
}
body .swal2-popup .genograma-section-heading h6,
body .genograma-section-heading h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}
body .swal2-popup .genograma-section-heading span,
body .genograma-section-heading span {
  color: var(--genograma-muted);
  font-size: 0.76rem;
  text-align: right;
}

body .swal2-popup .genograma-summary-list,
body .genograma-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body .swal2-popup .genograma-summary-item,
body .genograma-summary-item {
  width: 100%;
  border: 1px solid rgba(14, 167, 97, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem 0.9rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
body .swal2-popup .genograma-summary-item:hover,
body .genograma-summary-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(14, 167, 97, 0.22);
}

body .swal2-popup .genograma-summary-item--member,
body .genograma-summary-item--member {
  cursor: pointer;
}

body .swal2-popup .genograma-summary-item--relation,
body .genograma-summary-item--relation {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body .swal2-popup .genograma-summary-item__title,
body .genograma-summary-item__title {
  font-weight: 700;
  color: var(--genograma-ink);
}

body .swal2-popup .genograma-summary-item__meta,
body .genograma-summary-item__meta {
  color: var(--genograma-muted);
  font-size: 0.82rem;
}

body .swal2-popup .genograma-summary-item small,
body .genograma-summary-item small {
  color: var(--genograma-muted);
  line-height: 1.45;
}

body .swal2-popup .genograma-summary-action,
body .genograma-summary-action {
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
body .swal2-popup .genograma-summary-action:hover,
body .genograma-summary-action:hover {
  background: rgba(239, 68, 68, 0.18);
  transform: translateY(-1px);
}
body .swal2-popup .genograma-summary-action i,
body .genograma-summary-action i {
  font-size: 1.05rem;
}

body .swal2-popup .genograma-summary-empty,
body .genograma-summary-empty {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--genograma-surface-soft);
  color: var(--genograma-muted);
  line-height: 1.55;
}

body .swal2-popup .genograma-help-list,
body .genograma-help-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--genograma-muted);
}
body .swal2-popup .genograma-help-list li,
body .genograma-help-list li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  body .swal2-popup .genograma-shell,
  body .genograma-shell {
    grid-template-columns: 1fr;
  }
  body .swal2-popup .genograma-sidebar,
  body .genograma-sidebar {
    position: static;
  }
  body .swal2-popup .genograma-sidebar .genograma-toolbar-grid,
  body .genograma-sidebar .genograma-toolbar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body .swal2-popup .genograma-summary-board__grid,
  body .genograma-summary-board__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  body .swal2-popup .genograma-intro-card,
  body .genograma-intro-card,
  body .swal2-popup .genograma-statusbar,
  body .genograma-statusbar {
    flex-direction: column;
  }
  body .swal2-popup .genograma-metrics,
  body .genograma-metrics,
  body .swal2-popup .genograma-lower-grid,
  body .genograma-lower-grid {
    grid-template-columns: 1fr;
  }
  body .swal2-popup .genograma-toolbar-grid,
  body .genograma-toolbar-grid,
  body .swal2-popup .genograma-sidebar .genograma-toolbar-grid,
  body .genograma-sidebar .genograma-toolbar-grid,
  body .swal2-popup .genograma-trazabilidad-grid,
  body .genograma-trazabilidad-grid,
  body .swal2-popup .genograma-summary-board__grid,
  body .genograma-summary-board__grid {
    grid-template-columns: 1fr;
  }
  body .swal2-popup .genograma-statusbar__meta,
  body .genograma-statusbar__meta {
    align-items: flex-start;
    text-align: left;
  }
  body .swal2-popup #genograma-container,
  body #genograma-container {
    min-height: 460px;
  }
}
.diagnostico-workspace {
  display: grid;
  gap: 1.5rem;
}

.diagnostico-workspace__intro {
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 167, 97, 0.1), rgba(33, 150, 243, 0.08));
  border: 1px solid rgba(14, 167, 97, 0.18);
}
.diagnostico-workspace__intro h5 {
  margin: 0.35rem 0 0.6rem;
  color: #17324d;
  font-weight: 600;
}
.diagnostico-workspace__intro p {
  margin: 0;
  color: #496174;
  line-height: 1.6;
}

.diagnostico-workspace__eyebrow,
.diagnostico-card__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0b7f57;
}

.diagnostico-workspace__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.diagnostico-workspace__stat {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #dbe6ee;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.06);
}
.diagnostico-workspace__stat strong {
  color: #17324d;
  font-size: 1.2rem;
  font-weight: 700;
}
.diagnostico-workspace__stat span {
  color: #5f7687;
  line-height: 1.4;
}

.diagnostico-workspace__stat--hint {
  background: linear-gradient(135deg, rgba(255, 248, 230, 0.95), rgba(255, 255, 255, 0.95));
  border-color: rgba(235, 163, 36, 0.22);
}

.diagnostico-workspace__grid {
  display: grid;
  gap: 1.25rem;
}

.diagnostico-card {
  background: #fff;
  border: 1px solid #dbe6ee;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 14px 32px rgba(23, 50, 77, 0.07);
}

.diagnostico-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.diagnostico-card__header h6 {
  margin: 0.35rem 0 0.45rem;
  color: #17324d;
  font-weight: 600;
}
.diagnostico-card__header p {
  margin: 0;
  color: #5f7687;
  line-height: 1.55;
}

.diagnostico-card__header--stacked {
  display: block;
}

.diagnostico-card__action {
  background: #0ea761 !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 24px rgba(14, 167, 97, 0.18) !important;
}

.diagnostico-form-helper {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.diagnostico-form-helper__item {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid #dbe6ee;
  color: #496174;
  line-height: 1.5;
}

.diagnostico-select-clinico {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #cfdce6;
  background: #fff;
  color: #17324d;
  margin-bottom: 0.35rem;
}

.diagnostico-manual-help {
  display: block;
  margin-top: 0.35rem;
  color: #6a7f8f;
  line-height: 1.4;
}

.diagnostico-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.diagnostico-status-badge.is-active {
  background: rgba(14, 167, 97, 0.14);
  color: #0b7f57;
}

.diagnostico-status-badge.is-inactive {
  background: rgba(96, 125, 139, 0.16);
  color: #48606f;
}

@media (max-width: 768px) {
  .diagnostico-card__header {
    flex-direction: column;
  }
  .diagnostico-card__action {
    width: 100%;
  }
}
/* ===== DASHBOARD STYLES ===== */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.dash-kpi {
  padding: 16px 12px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.dash-kpi.green {
  background: linear-gradient(135deg, #43A047, #66BB6A);
}
.dash-kpi.blue {
  background: linear-gradient(135deg, #1E88E5, #42A5F5);
}
.dash-kpi.orange {
  background: linear-gradient(135deg, #EF6C00, #FF9800);
}
.dash-kpi.teal {
  background: linear-gradient(135deg, #00897B, #26A69A);
}
.dash-kpi.indigo {
  background: linear-gradient(135deg, #3949AB, #5C6BC0);
}
.dash-kpi.pink {
  background: linear-gradient(135deg, #D81B60, #EC407A);
}
.dash-kpi.amber {
  background: linear-gradient(135deg, #F9A825, #FFCA28);
}
.dash-kpi.cyan {
  background: linear-gradient(135deg, #00ACC1, #26C6DA);
}

.dash-kpi-icon {
  font-size: 20px;
  margin-bottom: 4px;
  opacity: 0.85;
}
.dash-kpi-icon .material-icons {
  font-size: 22px;
}

.dash-kpi-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.dash-kpi-num small {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.75;
}

.dash-kpi-label {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 4px;
}

/* Bar Chart */
.dash-chart-card .card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  color: #37474F;
}

.dash-bar-chart {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 140px;
  padding: 8px 4px;
  background: #fafafa;
  border-radius: 8px;
  overflow-x: auto;
}

.dash-bar-col {
  flex: 1;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.dash-bar-stack {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  width: 100%;
  max-width: 36px;
  gap: 1px;
}

.dash-bar-realizadas {
  width: 100%;
  background: linear-gradient(to top, #388E3C, #66BB6A);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}

.dash-bar-programadas {
  width: 100%;
  background: linear-gradient(to top, #1976D2, #42A5F5);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}

.dash-bar-canceladas {
  width: 100%;
  background: linear-gradient(to top, #C62828, #EF5350);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}

.dash-bar-val {
  font-size: 10px;
  font-weight: 700;
  color: #333;
  margin-top: 3px;
}

.dash-bar-lbl {
  font-size: 9px;
  color: #777;
  margin-top: 2px;
}

.dash-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 11px;
  color: #666;
  align-items: center;
}

.dash-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.dash-dot.green {
  background: #66BB6A;
}
.dash-dot.blue {
  background: #42A5F5;
}
.dash-dot.red {
  background: #EF5350;
}

/* Horizontal bars (therapy types) */
.dash-hbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.dash-hbar-label {
  width: 80px;
  font-size: 11px;
  color: #555;
  text-align: right;
  flex-shrink: 0;
}

.dash-hbar-track {
  flex: 1;
  background: #eee;
  border-radius: 3px;
  height: 18px;
  overflow: hidden;
}

.dash-hbar-fill {
  height: 100%;
  background: linear-gradient(to right, #43A047, #66BB6A);
  border-radius: 3px;
  font-size: 10px;
  color: #fff;
  text-align: center;
  line-height: 18px;
  min-width: 24px;
  transition: width 0.4s ease;
}

/* Modalidad badges */
.dash-modalidad {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-modalidad-item {
  font-size: 13px;
}

.dash-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.dash-badge.green {
  background: #43A047;
}
.dash-badge.blue {
  background: #1E88E5;
}
.dash-badge.grey {
  background: #9E9E9E;
}

/* Mini tables */
.dash-list-card .card-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  color: #37474F;
}

.dash-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.dash-mini-table th {
  background: #f5f5f5;
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e0e0e0;
  font-size: 10px;
  text-transform: uppercase;
}
.dash-mini-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}
.dash-mini-table tr:hover td {
  background: #fafafa;
}

.dash-row-pendiente td {
  background: #fff8e1;
}

@media (max-width: 768px) {
  .dash-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-bar-col {
    min-width: 34px;
  }
  .dash-hbar-label {
    width: 60px;
    font-size: 10px;
  }
}
