@import url('https://fonts.googleapis.com/css2?family=Amaranth:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.amaranth-regular {
    font-family: "Amaranth", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

.amaranth-bold {
font-family: "Amaranth", sans-serif;
font-weight: 700;
font-style: normal;
}

.amaranth-regular-italic {
font-family: "Amaranth", sans-serif;
font-weight: 400;
font-style: italic;
}

.amaranth-bold-italic {
font-family: "Amaranth", sans-serif;
font-weight: 700;
font-style: italic;
}

.poppins-thin {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: normal;
  }
  
  .poppins-extralight {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .poppins-light {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .poppins-medium {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .poppins-semibold {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .poppins-extrabold {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
  }
  
  .poppins-black {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: normal;
  }
  
  .poppins-thin-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 100;
    font-style: italic;
  }
  
  .poppins-extralight-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: italic;
  }
  
  .poppins-light-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: italic;
  }
  
  .poppins-regular-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .poppins-medium-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: italic;
  }
  
  .poppins-semibold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .poppins-bold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: italic;
  }
  
  .poppins-extrabold-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: italic;
  }
  
  .poppins-black-italic {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-style: italic;
  }
  
a {
    text-decoration: none;
    color:#2e6f87;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
}

#wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
}

#sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #2e6f87;
    /*background-color: #598392;*/

    display: flex;
    flex-direction: column;
    height: 100vh;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

#toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

#toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span,
#sidebar:not(.expand) button.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link,
button.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

/* El cierre de sesión es un <form method="post">, no un <a>: es lo que
   permite que el logout lleve token CSRF y no sea un GET. */
button.sidebar-link {
    width: 100%;
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover, a.sidebar-link.active,
button.sidebar-link:hover, button.sidebar-link.active {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #fb3070;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #598392;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

#sidebar a{
    text-decoration: none;
}
#wrapper{
    display:flex;
}

.main{
    min-height:100vh;
    width: 100%;
    overflow:hidden;
    transition: all 0.35s ease-in-out;
}

.breadcrumb a{
    color:#0e2238;
}

.info-card .icon-card{
    font-size: 3em;
}

.bg-dashboard-card-consultas {
    background: #0081a7;
}
.bg-dashboard-card-sesiones {
    background: #00afb9;
}
.bg-dashboard-card-pacientes {
    background: #ee964b;
}
.bg-dashboard-card-4 {
    background: #00afb9;
}
.bg-dashboard-card-consultas .card-body {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill-opacity='70%' width='70' height='70' fill='%23ffffff' class='bi bi-heart-pulse' viewBox='0 0 16 16'%3E%3Cpath d='m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053.918 3.995.78 5.323 1.508 7H.43c-2.128-5.697 4.165-8.83 7.394-5.857q.09.083.176.171a3 3 0 0 1 .176-.17c3.23-2.974 9.522.159 7.394 5.856h-1.078c.728-1.677.59-3.005.108-3.947C13.486.878 10.4.28 8.717 2.01zM2.212 10h1.315C4.593 11.183 6.05 12.458 8 13.795c1.949-1.337 3.407-2.612 4.473-3.795h1.315c-1.265 1.566-3.14 3.25-5.788 5-2.648-1.75-4.523-3.434-5.788-5'/%3E %3Cpath d='M10.464 3.314a.5.5 0 0 0-.945.049L7.921 8.956 6.464 5.314a.5.5 0 0 0-.88-.091L3.732 8H.5a.5.5 0 0 0 0 1H4a.5.5 0 0 0 .416-.223l1.473-2.209 1.647 4.118a.5.5 0 0 0 .945-.049l1.598-5.593 1.457 3.642A.5.5 0 0 0 12 9h3.5a.5.5 0 0 0 0-1h-3.162z'/%3E   %3C/svg%3E")
        bottom right;
}

.bg-dashboard-card-sesiones .card-body {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill-opacity='70%' width='70' height='70' fill='%23ffffff' class='bi bi-people-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6m-5.784 6A2.24 2.24 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.3 6.3 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1zM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5'/%3E%3C/svg%3E")
        bottom right no-repeat;
}

.bg-dashboard-card-pacientes .card-body {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill-opacity='70%' width='70' height='70' fill='%23ffffff' class='bi bi-person-vcard' viewBox='0 0 16 16'%3E%3Cpath d='M5 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4m4-2.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5M9 8a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4A.5.5 0 0 1 9 8m1 2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5'/%3E%3Cpath d='M2 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zM1 4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8.96q.04-.245.04-.5C9 10.567 7.21 9 5 9c-2.086 0-3.8 1.398-3.984 3.181A1 1 0 0 1 1 12z'/%3E%3C/svg%3E")
        bottom right no-repeat;
}

.bg-dashboard-card-4 .card-body {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill-opacity='70%' width='70' height='70' fill='%23ffffff' class='bi bi-calendar2-week' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M2 2a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1z'/%3E%3Cpath d='M2.5 4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5zM11 7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm-3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm-5 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E")
        bottom right no-repeat;
}
.dashboard-card .card-body {
    /* El anclaje va en padding-box y no en content-box a propósito: con
       content-box la marca de agua se mueve junto con el padding, y agrandarlo
       para dejarle espacio al texto la corrige de lugar. Con padding-box queda
       fija en la esquina y el padding-right le abre el hueco al texto. */
    background-origin: padding-box;
    background-repeat: no-repeat;
    background-clip: padding-box;
    /* El icono mide 70px (4.4rem). Sin este espacio el subtítulo, que va en la
       última línea, queda escrito encima de él en blanco sobre blanco. */
    padding-right: 5rem;
}
.dashboard-card {
    color: #fdfdfd;
    text-transform: uppercase;
}
.dashboard-card .card-title {
    font-family: Bebas Neue, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4em;
}
.dashboard-card .card-text {
    font-family: Bebas Neue, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.5em;
}
.bg-active-link {
    background: #0e2238;
}

.rounded{
border-radius: 10px !important;
position:relative;
}

.roundRow{
background-color:#f5f1ee;
border-radius: 15px !important;
}

#login{
    background: #2d0212 url(../img/bg-login.png);
    background-size: cover;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.bd-mode-toggle {
  z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}



  /*
   * Sidebar
   */

  @media (min-width: 768px) {
    .sidebar .offcanvas-lg {
      position: -webkit-sticky;
      position: sticky;
      top: 48px;
    }
    .navbar-search {
      display: block;
    }
  }

  .sidebar .nav-link {
    font-size: .875rem;
    font-weight: 500;
  }

  .sidebar .nav-link.active {
    color: #2470dc;
  }

  .sidebar-heading {
    font-size: .75rem;
  }

  /*
   * Navbar
   */
.bg-navbar{
background-color:#cfc8ba;
}

  .navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
  }

  .navbar .form-control {
    padding: .75rem 1rem;
  }

  /*
   * Chip del plan.
   *
   * Píldora blanca translúcida sobre el beige de la barra. La translucidez en
   * vez de un blanco entero para que se lean las dos capas: con un blanco
   * sólido parece un botón y no una etiqueta, y el usuario lo lee como algo que
   * hay que apretar.
   *
   * `--aviso` es el estado en ámbar: prueba, días de gracia o un plan que
   * termina esta semana. Es el mismo ámbar del aviso de `aviso_plan.php`, para
   * que los dos digan lo mismo en el mismo color.
   */
  .nav-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 2rem;
    background-color: rgba(255, 255, 255, .5);
    color: #3d372f;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
  }

  .nav-chip:hover {
    background-color: rgba(255, 255, 255, .8);
    color: #16130f;
  }

  .nav-chip--aviso {
    background-color: #fff3cd;
    border-color: #e0c069;
    color: #7a4f00;
  }

  .nav-chip--aviso:hover {
    background-color: #ffe9b0;
    color: #5c3c00;
  }

  .nav-chip i {
    font-size: .9rem;
  }

  /*
   * Bloque del usuario: nombre y correo en dos líneas.
   *
   * El salto va en el `line-height` de los dos <span> y no en un margen: los
   * dos van en línea de base, así que el alto del bloque lo fija la fuente, y
   * con un margen el correo queda más separado del nombre que de su propio
   * borde.
   */
  .navbar-usuario__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff;
  }

  .navbar-usuario__nombre {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.15;
    color: #211d18;
  }

  .navbar-usuario__correo {
    display: block;
    font-size: .72rem;
    line-height: 1.15;
    /*
     * Este color está medido, no elegido a ojo. El beige de la barra es
     * #cfc8ba y con un gris más claro el correo quedaba en 3.3:1, por debajo
     * del 4.5:1 que WCAG pide para texto chico. Con #585249 queda en 4.6:1 y
     * sigue viéndose apagado al lado del nombre, que sí usa casi negro.
     */
    color: #585249;
  }

  /*
 * Insignia del programa beta.
 *
 * Usa los dos colores de la marca: el fondo rosado translúcido y el texto en
 * azul petróleo, para que se lea como una condición de la cuenta y no como un
 * estado de alerta.
 */
.badge-beta {
  background-color: rgba(251, 48, 112, .12);
  color: #2e6f87;
  border: 1px solid rgba(251, 48, 112, .3);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .01em;
}

@media (max-width: 575.98px) {
    .nav-chip {
      font-size: .75rem;
      padding: .25rem .6rem;
    }
  }

  .spikes {
    position: relative;
    background: #fff;
    height: 0vh;
    margin: 0;
    padding: 0;
}
.spikes:after {
    content: "";
    position: absolute;
    right: 0;
    left: 0%;
    top: 100%;
    z-index: 10;
    display: block;
    height: 20px;
    background-size: 20px 100%;
    background-image: linear-gradient(135deg, #ffffff 25%, transparent 25%), linear-gradient(225deg, #ffffff 25%, transparent 25%);
    background-position: 0 0;
}
.main {
    background-color: #f4f1eb;
}
#toggle-btn i {
    color: #fff;
}

.sidebar-logo a,
a.sidebar-link,
button.sidebar-link {
    color: #fff;
}
a.sidebar-link:hover,
a.sidebar-link.active,
button.sidebar-link:hover,
button.sidebar-link.active {
    background-color: #ffffff13;
    border-left: 3px solid #e91d62;
}
#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    background-color: #0e2238;
}
.attentionInput {
    background: #ffe085;
    transition: 1s;
}
.dashedBtn {
    margin: 10px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
}
.addSesion {
    padding: 15px;
    font-size: 1.3em;
    background-color: #f3f3f3;
    border: 1px dashed #636363;
    color: #636363;
}
.addSesion:hover {
    background-color: #dbdbdb;
    transition: background 0.25s ease;
}
.addAnamnesis {
    padding: 10px;
    font-size: 1em;
    color: #fdfdfd;
    border: 1px dashed #fdfdfd;
    background: #264653;
}
.addAnamnesis:hover {
    background-color: #3c5964;
    transition: background 0.25s ease;
}


.btn-agregar{
    width:100%;
    padding: 20px;
    font-size: 1.3em;
    background-color: #f5f1ee;
    border: 1px dashed #928f8e;
    color: #636363;
}
.btn-agregar:hover{
    background-color: #e3ddd9;
    transition: background 0.5s ease;
    border: 1px dashed #928f8e;
}

.bg-pink,.bg-pink.disabled{
    background-color: #fb3070;
    color:#f8f9fa;
}

.btn-pink, .btn-pink:hover, .btn-pink:active, .btn-pink:visited {
    background-color: #fb3070 !important;
    color:#f8f9fa;
}
.btn-pink.disabled{
    background-color: #fb3070;
    color:#eaeaea;
}

/*
 * `text-pink` y `btn-outline-pink` se agregaron el 2026-10-16.
 *
 * Las dos clases ya estaban en el marcado de tres pantallas —`consulta/index`,
 * `sesion/show` y `sesion/newForm`, once usos en total— pero **nunca se
 * definieron acá**. No daba error: el navegador las ignoraba en silencio y los
 * íconos salían del color por defecto de Bootstrap y el botón "Sesiones" de
 * las consultas salía sin ningún estilo.
 *
 * Es el mismo patrón del que ya está anotado en `AGENTS.md`: un texto de
 * ejemplo o una clase inventada se ven exactamente igual que algo real.
 *
 * El `#fb3070` es el primario de la marca, el mismo de `.btn-pink` y
 * `.bg-pink`.
 *
 * Ojo con `btn-outline-pink` en `sesion/newForm.php`: ese botón lo usa
 * **dentro de una tarjeta gris oscura** y además lleva `text-white`. El
 * `!important` de `.text-white` de Bootstrap gana sobre el `color` de acá, así
 * que queda contorno rosa con texto blanco sobre la tarjeta oscura, que es lo
 * que ese botón necesita.
 */
.text-pink {
    color: #fb3070 !important;
}

.btn-outline-pink,
.btn-outline-pink:hover,
.btn-outline-pink:active,
.btn-outline-pink:visited {
    background-color: transparent;
    color: #fb3070;
    border: 1px solid #fb3070;
}

.btn-outline-pink:hover,
.btn-outline-pink:active {
    background-color: #fb3070;
    color: #f8f9fa;
}

.bg-oil{
    background-color: #2e6f87;
}

.info-column{
    position:relative;
}
.bg-apoderado{
    margin-top:50px;
    margin-bottom:30px;
}

.bg-paciente{
    margin-top:30px;
    margin-bottom:30px;
}

.bg-apoderado:before  {
    content: "APODERADO";
    font-weight: bold;
    font-size:30px;
    position: absolute;
    color: #f8f9fa;
    top: -32px;
    left: 30px;
    z-index: 0;
    text-shadow: -1px -1px #0081a7;
}

.bg-paciente:before  {
    content: "PACIENTE";
    font-weight: bold;
    font-size:30px;
    position: absolute;
    color: #fb3070;
    top: -32px;
    left: 30px;
    z-index: 0;
    text-shadow: -1px -1px #0081a7;
}
.paciente-info,.apoderado-info{
    position:relative;
    z-index: 1;
}

.btn-vermas-pink{
    border:2px dashed #fed4e1;
    color:#fed4e1;
}

.btn-vermas-pink:hover{
    border:2px dashed #ffffff;
    color:#fff;
}

#apoderado {
    display: none;
  }

  .panel-heading.note-toolbar{
    background:#cfc8ba;
  }
  .note-btn{
    background:#f4f1eb;
  }

  .bi-star-fill{
    color:rgb(255, 200, 0);
  }


.dropdown-item-text, .dropdown-item {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* máximo 3 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}


#pg-alert {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    min-width: 280px;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    animation: pgFadeIn 0.4s ease forwards,
               pgFadeOut 0.4s ease forwards 4.5s;
}

.pg-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.pg-error {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

@keyframes pgFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(60px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes pgFadeOut {
    to   { opacity: 0; transform: translateX(-50%) translateY(60px); }
}

.help-btn:hover {
    background: #ffb400;
    color: #fff;
    border-color: #ffb400;
}

/*
 * Alternar entre tarjetas y lista en los listados.
 *
 * Los dos paneles se pintan en el servidor y acá solo se esconde el que no
 * corresponde. La tabla se pinta en PHP y no se arma desde el navegador a
 * partir de las tarjetas: las fechas y las edades ya vienen formateadas y
 * volver a resolverlas en JavaScript sería tener el mismo formato en dos
 * idiomas, listo para que se separen.
 *
 * El modo se guarda en `localStorage` (ver `mimetic.js`), no en la base: es
 * cómo prefiere mirar esta pantalla quien está en este navegador, no un dato
 * del paciente ni algo que tenga que viajar a otro equipo.
 */
.vista-cards [data-vista-panel="tabla"],
.vista-tabla [data-vista-panel="cards"] {
    display: none !important;
}

/*
 * Menús de acciones en tablas: `.table-responsive` puede recortar/crear
 * contextos que tapan el dropdown. Los botones usan `data-bs-container="body"`
 * (Popper posiciona el menú en <body>). No se fuerza position/inset/transform
 * acá porque rompe el posicionamiento de Popper.
 */
[data-vista-contenedor].vista-tabla [data-vista-panel="tabla"].table-responsive {
    overflow-x: auto;
}
/* Menús en body (data-bs-container="body"): por encima de la tabla/celdas. */
.dropdown-menu,
.dropdown-menu.show,
body > .dropdown-menu,
.dropdown-menu[data-bs-popper] {
    z-index: 1085 !important;
}
