@charset "UTF-8";
/**
 * Hoja de Estilos Principal - Consultorio
 * Sistema de Gestión de Historias Clínicas y Turnos
 *
 * Archivo maestro que orquesta e importa todos los submódulos (partials) del sistema.
 * Compila hacia: web/css/base.css
 *
 * Para compilar:
 *   npm run build:css
 * Para desarrollo continuo:
 *   npm run watch:css
 */
/**
 * Variables Globales de Diseño - Consultorio
 * Sistema de Gestión de Historias Clínicas y Turnos
 *
 * Centraliza la paleta de colores, tipografías, radios de borde y espaciados
 * utilizados en toda la aplicación.
 */
/**
 * Mixins Utilitarios - Consultorio
 * Atajos de estilo y reutilización de patrones comunes.
 */
/**
 * Estilos Base y Layout Global
 * Reset general, tipografía base, encabezados y contenedores principales.
 */
* {
  font-family: "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  text-align: center;
}

h1 {
  font-weight: bold;
  text-decoration: underline;
  color: #000000;
  letter-spacing: 0pt;
  word-spacing: 2pt;
  font-size: 25px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

h2 {
  font-family: "Sarabun", serif;
  font-weight: 600;
  color: #020331;
}

a {
  color: #000000;
  text-decoration: none;
}
a:visited {
  color: #000000;
  text-decoration: none;
}

#base.row {
  margin: 20px;
}

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

.rojo {
  color: red;
}

.amarillo {
  color: yellow;
}

.glyphicon-spin {
  -webkit-animation: girar 1000ms infinite linear;
  animation: girar 1000ms infinite linear;
}

@-webkit-keyframes girar {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
  }
}
@keyframes girar {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}
@media print {
  .no-print,
  .no-print * {
    display: none !important;
  }
}
/**
 * Navegación y Menú Superior
 * Estilos para las barras de navegación, botones de menú y listas desplegables.
 */
.menu {
  width: 100%;
  text-align: center;
  background: #006AC0;
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9dd53a', endColorstr='#7cbc0a',GradientType=0 );
}
.menu a {
  color: #ffffff;
  font-weight: bold;
}
.menu a:hover {
  color: #137FD9;
  font-weight: bold;
}
.menu a:visited {
  color: #ffffff;
}

li.menu {
  list-style: none;
  -moz-box-shadow: inset 0px 1px 0px 0px #ffffff;
  -webkit-box-shadow: inset 0px 1px 0px 0px #ffffff;
  box-shadow: inset 0px 1px 0px 0px #ffffff;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ebf3fe), color-stop(1, #137FD9));
  background: -moz-linear-gradient(center top, #ebf3fe 5%, #137FD9 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#EBF3FE', endColorstr='#137FD9');
  background-color: #ebf3fe;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  border: 1px solid #006AC0;
  display: inline-block;
  color: #1f1d1f;
  font-weight: bold;
  padding: 6px 24px;
  text-decoration: none;
  text-shadow: 1px 1px 0px #ffffff;
}
li.menu:hover, li.menu :hover {
  list-style: none;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #137FD9), color-stop(1, #ebf3fe));
  background: -moz-linear-gradient(center top, #137FD9 5%, #ebf3fe 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#137FD9', endColorstr='#EBF3FE');
  background-color: #137FD9;
}
li.menu:active, li.menu :active {
  list-style: none;
  position: relative;
  top: 1px;
}

.menu-arriba {
  background-color: #020331;
  color: #e6e3ea;
  font-family: "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.menu-arriba a {
  color: #ffffff;
}
.menu-arriba a:visited, .menu-arriba a :visited {
  color: #ffffff;
}

/**
 * Botones del Sistema
 * Botones estándar píldora, botones contextuales y de barra de herramientas.
 */
.btn-primary,
button.btn-primary,
input[type=submit].btn-primary,
a.btn-primary,
a.btn-primary:visited,
a.btn-primary:focus,
a.btn-primary:active {
  background: #57565e;
  border: none;
  border-radius: 18px;
  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover,
button.btn-primary:hover,
input[type=submit].btn-primary:hover,
a.btn-primary:hover {
  background: #424147;
  border: none;
  color: #ffffff !important;
  text-decoration: none;
}

.btn-grafito {
  background: #57565e;
  border: none;
  border-radius: 18px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}
.btn-grafito:hover, .btn-grafito:focus, .btn-grafito:active {
  background: #424147 !important;
  border: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
  outline: none;
}

.botones {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 15px 0;
}
.botones li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.botones .btn,
.botones li a.btn,
.botones li button.btn {
  border-radius: 18px !important;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 18px;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}
.botones .btn:hover,
.botones li a.btn:hover,
.botones li button.btn:hover {
  text-decoration: none;
  opacity: 0.95;
  filter: brightness(0.95);
}
.botones .dropdown-toggle {
  border-radius: 18px !important;
}
.botones .dropdown-menu {
  border-radius: 10px;
}

#historias .btn,
#paciente .btn,
.records_list .btn {
  border-radius: 18px !important;
}

.btn-warning,
a.btn-warning,
button.btn-warning {
  background-color: #f0ad4e;
  border-color: #eea236;
  color: #ffffff !important;
}
.btn-warning:hover,
a.btn-warning:hover,
button.btn-warning:hover {
  background-color: #ec971f;
  border-color: #d58512;
  color: #ffffff !important;
}

.btn-success,
a.btn-success,
button.btn-success {
  background-color: #5cb85c;
  border-color: #4cae4c;
  color: #ffffff !important;
}
.btn-success:hover,
a.btn-success:hover,
button.btn-success:hover {
  background-color: #449d44;
  border-color: #398439;
  color: #ffffff !important;
}

.btn-info,
a.btn-info,
button.btn-info {
  background-color: #5bc0de;
  border-color: #46b8da;
  color: #ffffff !important;
}
.btn-info:hover,
a.btn-info:hover,
button.btn-info:hover {
  background-color: #31b0d5;
  border-color: #269abc;
  color: #ffffff !important;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background-color: #6c757d;
  border-color: #545b62;
  color: #ffffff !important;
}
.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
  color: #ffffff !important;
}

.btn-accion-abm {
  color: #ffffff !important;
  padding: 6px 20px;
}

.btn-filtrar-abm {
  color: #ffffff !important;
  padding: 6px 16px;
}

.btn-limpiar-abm {
  padding: 6px 14px;
  color: #475569;
}

.btn-auditoria-filtrar {
  min-width: 130px;
  border-radius: 18px;
  padding: 7px 22px;
  font-weight: 500;
  color: #ffffff !important;
}

.btn-auditoria-limpiar {
  min-width: 120px;
  border-radius: 18px;
  padding: 7px 18px;
  font-weight: 500;
  color: #57565e;
  border-color: #cbd5e1;
  text-decoration: none;
}

.btn-custom {
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.2s ease;
}
.btn-custom:hover {
  transform: translateY(-1px);
}

/**
 * Formularios y Campos
 * Contenedor .Form, inputs estilizados, selectores, Select2 y formularios específicos.
 */
#findPaciente {
  text-align: center;
  width: 100%;
  margin-top: 30px;
}
#findPaciente input {
  height: 30px;
}
#findPaciente select {
  height: 30px;
}

.Form {
  background-color: #ffffff;
  text-align: left;
  margin: 0 auto;
  box-shadow: 10px 10px 5px #888888;
  border: 1px solid #006AC0;
  border-radius: 14px;
}
.Form td {
  padding: 6px 10px;
}
.Form table.Form {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

table.Form table.Form {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.form_label {
  text-align: right;
}

.form_label0 {
  color: #000000;
}

.Form input[type=text],
.Form input[type=email],
.Form input[type=number],
.Form input[type=password],
.Form input[type=date] {
  border: 1px solid #c5cbd5;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: #333333;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 280px;
}
.Form input[type=text]:focus,
.Form input[type=email]:focus,
.Form input[type=number]:focus,
.Form input[type=password]:focus,
.Form input[type=date]:focus {
  border-color: #006AC0;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 106, 192, 0.3);
}
.Form select {
  border: 1px solid #c5cbd5;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 14px;
  color: #333333;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.Form select:focus {
  border-color: #006AC0;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 106, 192, 0.3);
}
.Form textarea {
  border: 1px solid #c5cbd5;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: #333333;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 320px;
  height: 65px;
  resize: vertical;
}
.Form textarea:focus {
  border-color: #006AC0;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 106, 192, 0.3);
}

ul#jme_pacientebundle_pacientetype_afiliaciones {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
ul#jme_pacientebundle_pacientetype_afiliaciones li {
  margin-bottom: 8px;
}

#HistoriaForm {
  color: #000000;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ccc;
  border-radius: 6px;
  min-height: 38px;
  padding: 2px 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #006AC0;
  border: 1px solid #00569e;
  color: #ffffff !important;
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 4px;
  margin-right: 5px;
  font-size: 13px;
  font-weight: 500;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #ffffff !important;
  margin-right: 6px;
  font-weight: bold;
  opacity: 0.8;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  opacity: 1;
  color: #ffdddd !important;
}
.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: #006AC0;
  box-shadow: 0 0 6px rgba(0, 106, 192, 0.35);
}
.select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 4px 8px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px;
  color: #333;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #006AC0;
  color: #ffffff;
}

.select2-dropdown {
  border: 1px solid #006AC0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/**
 * Tablas de Datos y Listados
 * Grillas .records_list, tablas de turnos, estados visuales de fila y cuadros ABM.
 */
.records_list {
  margin: 0px;
  padding: 0px;
  width: 100%;
  box-shadow: 5px 5px 5px #c7c7c9;
  border: 1px solid #006AC0;
  border-radius: 14px;
}
.records_list table {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
}
.records_list table th:first-child {
  color: #ffffff;
  border-top-left-radius: 14px;
  -moz-border-radius-topleft: 14px;
  -webkit-border-top-left-radius: 14px;
}
.records_list table th:last-child {
  color: #ffffff;
  border-top-right-radius: 14px;
  -moz-border-radius-topright: 14px;
  -webkit-border-top-right-radius: 14px;
}
.records_list tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
  -moz-border-radius-bottomleft: 14px;
  -webkit-border-bottom-left-radius: 14px;
}
.records_list tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
  -moz-border-radius-bottomright: 14px;
  -webkit-border-bottom-right-radius: 14px;
}
.records_list tr:hover td {
  background-color: #dceafc;
  box-shadow: inset 0 1px 0 rgba(0, 106, 192, 0.2), inset 0 -1px 0 rgba(0, 106, 192, 0.2);
}
.records_list tr:hover td a {
  /* Mantener el peso de fuente normal para evitar saltos y cambios en el ancho de columnas */
  font-weight: inherit;
  color: #0b5ed7;
}
.records_list tr:nth-child(odd) {
  background-color: #ebf3fe;
}
.records_list tr:nth-child(even) {
  background-color: #ffffff;
}
.records_list td {
  transition: background-color 0.15s ease-in-out;
  vertical-align: middle;
  border: 0px solid #ffffff;
  border-width: 0px 1px 1px 0px;
  text-align: center;
  padding: calc;
  font-size: 12px;
  font-family: Arial;
  font-weight: normal;
  color: #000000;
  padding-left: 10px;
  height: 15px;
}
.records_list tr:last-child td {
  border-width: 0px 1px 0px 0px;
}
.records_list tr td:last-child {
  border-width: 0px 0px 1px 0px;
}
.records_list tr:last-child td:last-child {
  border-width: 0px 0px 0px 0px;
}
.records_list th {
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#006AC0", endColorstr="#137FD9");
  background-color: #020331;
  border: 0px solid #137FD9;
  text-align: center;
  border-width: 0px 0px 1px 1px;
  font-size: 14px;
  font-family: "Sarabun", serif;
  font-weight: bold;
  color: #e6e3ea;
  height: 40px;
  border-left: 7px;
  border-right: 7px;
}
.records_list theard:hover th {
  background: -o-linear-gradient(bottom, #006AC0 5%, #137FD9 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #006AC0), color-stop(1, #137FD9));
  background: -moz-linear-gradient(center top, #006AC0 5%, #137FD9 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#006AC0", endColorstr="#137FD9");
  background: -o-linear-gradient(top, #006AC0, 137FD9);
  background-color: #006AC0;
}

.record_properties {
  margin: 0px;
  padding: 0px;
  width: 100%;
  box-shadow: 10px 10px 5px #888888;
  border: 1px solid #006AC0;
  border-radius: 14px;
}
.record_properties table {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
}
.record_properties table theard th:first-child {
  border-top-left-radius: 14px;
}
.record_properties table theard th:last-child {
  border-top-right-radius: 14px;
}
.record_properties tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}
.record_properties tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}
.record_properties tr:hover td {
  background-color: #ebf3fe;
}
.record_properties tr:nth-child(odd) {
  background-color: #d4ffaa;
}
.record_properties tr:nth-child(even) {
  background-color: #ffffff;
}
.record_properties td {
  vertical-align: middle;
  border: 1px solid #006AC0;
  border-width: 0px 1px 1px 0px;
  text-align: center;
  padding: 7px;
  font-size: 14px;
  font-family: Arial;
  font-weight: normal;
  color: #000000;
}
.record_properties tr:last-child td {
  border-width: 0px 1px 0px 0px;
}
.record_properties tr td:last-child {
  border-width: 0px 0px 1px 0px;
}
.record_properties tr:last-child td:last-child {
  border-width: 0px 0px 0px 0px;
}
.record_properties theard th {
  background: -o-linear-gradient(bottom, #006AC0 5%, #137FD9 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #006AC0), color-stop(1, #137FD9));
  background: -moz-linear-gradient(center top, #006AC0 5%, #137FD9 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#006AC0", endColorstr="#137FD9");
  background: -o-linear-gradient(top, #006AC0, #137fd9);
  background-color: #006AC0;
  border: 0px solid #137FD9;
  text-align: center;
  border-width: 0px 0px 1px 1px;
  font-size: 16px;
  font-family: Arial;
  font-weight: bold;
  color: #ffffff;
}
.record_properties theard th:first-child {
  border-width: 0px 0px 1px 0px;
}
.record_properties theard th:last-child {
  border-width: 0px 0px 1px 1px;
}
.record_properties theard:hover th {
  background: -o-linear-gradient(bottom, #006AC0 5%, #137FD9 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #006AC0), color-stop(1, #137FD9));
  background: -moz-linear-gradient(center top, #006AC0 5%, #3f7f00 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#006AC0", endColorstr="#137FD9");
  background: -o-linear-gradient(top, #006AC0, 137fd9);
  background-color: #006AC0;
}

.reservado td {
  color: #666;
}

.cancelado td {
  color: red;
}

.Reservado {
  background-color: rgba(128, 128, 128, 0.35);
  color: #222222;
}

.En_Espera {
  background-color: rgba(0, 255, 0, 0.45);
  color: #155724;
  font-weight: bold;
}

.Cancelado {
  background-color: rgba(255, 0, 0, 0.45);
  color: #721c24;
}

.Finalizado {
  background-color: rgba(255, 0, 0, 0.45);
  color: #721c24;
}

.Atendiendo {
  background-color: rgba(0, 123, 255, 0.45);
  color: #004085;
}

.celda_roja {
  background-color: rgba(66, 184, 78, 0.45);
}

.celda_amarilla {
  background-color: rgba(255, 255, 0, 0.45);
}

.cuadro-redondeado,
.cuadro-lista-estetico {
  border: 1px solid #006AC0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 5px 5px 5px #c7c7c9;
  background: #ffffff;
}
.cuadro-redondeado table.records_list,
.cuadro-redondeado table.tabla-informe-turnos,
.cuadro-lista-estetico table.records_list,
.cuadro-lista-estetico table.tabla-informe-turnos {
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
}
.cuadro-redondeado .table-responsive,
.cuadro-lista-estetico .table-responsive {
  border: none;
  margin: 0;
  padding: 0;
}

.tabla-informe-turnos {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
}
.tabla-informe-turnos thead th {
  background-color: #f1f5f9;
  color: #020331;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid #cbd5e1;
  text-align: left;
}
.tabla-informe-turnos thead th.th-derecha {
  text-align: right;
}
.tabla-informe-turnos tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.tabla-informe-turnos tbody tr:nth-child(even) {
  background-color: #f8fafc;
}
.tabla-informe-turnos tbody tr:hover {
  background-color: #e0f2fe;
  transition: background-color 0.15s ease-in-out;
}
.tabla-informe-turnos tfoot td {
  background-color: #edf2f7;
  font-weight: 600;
  color: #020331;
  padding: 12px 14px;
  border-top: 2px solid #cbd5e1;
}

.tabla-turnos-lista {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.tabla-turnos-lista thead th {
  background-color: #020331;
  color: #ffffff;
  font-weight: 600;
  padding: 8px 6px;
  border-bottom: 2px solid #006AC0;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
.tabla-turnos-lista tbody td {
  padding: 5px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.3;
}
.tabla-turnos-lista tbody tr:nth-child(even) {
  background-color: #f8fafc;
}
.tabla-turnos-lista tbody tr:hover {
  background-color: #e0f2fe;
  transition: background-color 0.15s ease-in-out;
}

.enlace-tabla {
  color: #006AC0;
  font-weight: 600;
  text-decoration: none;
}
.enlace-tabla:hover {
  color: #004b87;
  text-decoration: underline;
}

.fila-sin-registros td {
  text-align: center;
  padding: 20px;
  color: #777777;
}

/**
 * Modales y Diálogos Emergentes
 * Diálogos jQuery UI (.ui-dialog, overlay) y modales auxiliares (#aux1, #aux2).
 */
.ui-dialog {
  border: 1px solid #ced4da !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #2d3748 !important;
  z-index: 1050 !important;
}
.ui-dialog .ui-dialog-titlebar {
  background: #57565e !important;
  border: none !important;
  border-radius: 11px 11px 0 0 !important;
  padding: 12px 20px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}
.ui-dialog .ui-dialog-title {
  color: #ffffff !important;
  font-weight: 600 !important;
  margin: 0 !important;
  float: left !important;
  width: auto !important;
}
.ui-dialog .ui-dialog-titlebar-close {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  right: 12px !important;
  top: 50% !important;
  margin-top: -13px !important;
  cursor: pointer !important;
  padding: 0 !important;
  position: absolute !important;
}
.ui-dialog .ui-dialog-titlebar-close:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}
.ui-dialog .ui-dialog-titlebar-close .ui-icon {
  background-image: url("https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/base/images/ui-icons_ffffff_256x240.png") !important;
  background-position: -96px -128px !important;
}
.ui-dialog .ui-dialog-content {
  background: #ffffff !important;
  color: #2d3748 !important;
  padding: 18px 24px !important;
  max-height: 82vh !important;
  overflow-y: auto !important;
}

.ui-widget-overlay {
  background: #000000 !important;
  opacity: 0.55 !important;
  filter: Alpha(Opacity=55) !important;
  z-index: 1040 !important;
}

#aux2 .Form td {
  padding: 4px 8px;
}
#aux2 textarea {
  height: 50px;
  max-height: 70px;
  font-size: 13px;
  width: 100%;
  max-width: 280px;
}
#aux2 input[type=text],
#aux2 input[type=email],
#aux2 select {
  height: 28px;
  font-size: 13px;
}
#aux2 .btn-warning:hover {
  background-color: #ec971f !important;
  border-color: #d58512 !important;
  opacity: 0.95;
}

#submitPacienteForm:hover {
  background-color: #424147 !important;
  border-color: #424147 !important;
  opacity: 0.95;
}

/**
 * Calendarios y Grillas Temporales
 * Ajustes para FullCalendar, distribución homogénea de columnas y horarios.
 */
.fc-view-month table.fc-border-separate,
.fc-grid table.fc-border-separate {
  table-layout: fixed !important;
  width: 100% !important;
}
.fc-view-month table.fc-border-separate th,
.fc-view-month table.fc-border-separate td,
.fc-grid table.fc-border-separate th,
.fc-grid table.fc-border-separate td {
  width: auto !important;
}

.fc th.fc-widget-header,
.fc-grid th,
.fc-view-month thead th,
table.fc-border-separate thead th {
  background-color: #020331 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 6px 0 !important;
  border-color: #1e293b !important;
  text-shadow: none !important;
}

.fc-agendaWeek-view tr,
.fc-agendaDay-view tr {
  height: 40px;
}

td.fc-day {
  height: 30px;
}

.fc-event {
  height: 1.5em;
}

#calendar {
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

#horarios {
  max-width: 350px;
  width: 100%;
  margin: 15px auto 0 auto;
}

.horarios {
  padding: 5px;
}

.tabla {
  padding: 5px;
  color: #000000;
  text-align: left;
}
.tabla td {
  padding: 5px;
}
.tabla a {
  color: #006AC0;
  text-decoration: none;
}
.tabla a:hover {
  color: #000000;
}

/**
 * Médicos y Profesionales
 * Panel lateral de médicos en turnero y ficha de presentación de profesional.
 */
.tabla-medicos {
  width: 100%;
  text-align: left;
  border-collapse: separate;
  border-spacing: 0 2px;
}

.fila-medico-turno {
  transition: background-color 0.15s ease-in-out;
  border-radius: 4px;
}
.fila-medico-turno:hover {
  background-color: #eaf3ff;
}

.celda-medico-turno {
  padding: 3px 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.etiqueta-medico-turno {
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.horario-medico-hover {
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: #0b5ed7;
  background-color: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.3;
}

.fila-medico-turno:hover .horario-medico-hover,
.etiqueta-medico-turno:hover .horario-medico-hover {
  display: inline-block;
}

.medico-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #e3e8ee;
  text-align: left;
}
.medico-card a {
  color: inherit;
  text-decoration: none;
}
.medico-card a.btn {
  color: #ffffff;
}
.medico-card a.btn-default {
  color: #333333;
}

.medico-header {
  border-bottom: 2px solid #f0f4f8;
  padding-bottom: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.medico-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  text-decoration: none;
}

.medico-subtitle {
  color: #64748b;
  font-size: 14px;
  margin-top: 5px;
}

.prop-table th {
  color: #475569;
  font-weight: 600;
  width: 35%;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}
.prop-table td {
  color: #0f172a;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.horarios-table {
  width: 100%;
  margin-top: 10px;
}
.horarios-table th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
}
.horarios-table td {
  text-align: center;
  padding: 8px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  color: #333333 !important;
}

.color-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
  margin-right: 8px;
}

.badge-info-custom {
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/**
 * Cirugías y Procedimientos
 * Estados visuales de cirugías (condicionales, ficticias, etc.).
 */
.Condicional,
.Condicional td {
  background: #ffff00 !important;
}

tr.condicional td {
  background-color: rgba(255, 255, 0, 0.45);
}

.Ficticia,
.Ficticia td {
  background: #808080 !important;
}

/**
 * Pantalla de Sala de Espera / Turnero TV
 * Animaciones de texto y efectos de llamado de pacientes en pantalla grande.
 * (Consolidado desde el módulo de turnero TV / cpu.css).
 */
@-webkit-keyframes color-change {
  0% {
    font-size: 35px;
  }
  100% {
    font-size: 45px;
  }
}
@-moz-keyframes color-change {
  0% {
    font-size: 35px;
  }
  100% {
    font-size: 45px;
  }
}
@-ms-keyframes color-change {
  0% {
    font-size: 35px;
  }
  100% {
    font-size: 45px;
  }
}
@-o-keyframes color-change {
  0% {
    font-size: 35px;
  }
  100% {
    font-size: 45px;
  }
}
@keyframes color-change {
  0% {
    font-size: 35px;
  }
  100% {
    font-size: 45px;
  }
}
.animacion {
  -webkit-animation: color-change 2s 5;
  -moz-animation: color-change 2s 5;
  -o-animation: color-change 2s 5;
  -ms-animation: color-change 2s 5;
  animation: color-change 2s 5;
}

.text {
  font-size: 28px;
  font-family: helvetica, Arial, sans-serif;
  font-weight: bold;
  color: #000000;
  text-transform: uppercase;
}

@-moz-keyframes parpadeo {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes parpadeo {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes parpadeo {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.parpadea {
  animation-name: parpadeo;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  -webkit-animation-name: parpadeo;
  -webkit-animation-duration: 1s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
}

.gigante {
  font-size: 4.5vw;
}

table.tabla_advertencia {
  width: 100%;
  text-align: center;
}

/**
 * Módulos ABM y Auditoría (Testigo)
 * Estándar de barras de herramientas, buscadores con botón reset,
 * filtros modulares y tablas de trazabilidad / auditoría.
 */
.barra-herramientas-abm {
  margin: 15px 0 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.barra-herramientas-abm-centro {
  margin: 15px 0 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.buscador-filtro-contenedor {
  max-width: 320px;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}
.buscador-filtro-contenedor input.form-control-estetico {
  padding-right: 28px;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
}

.btn-reset-filtro {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888888;
  font-weight: bold;
  font-size: 16px;
  display: none;
  user-select: none;
}

.grupo-botones-abm {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.alerta-flash-abm {
  border-radius: 12px;
  margin-bottom: 18px;
  text-align: center;
}

.filtro-modulo-caja {
  padding: 12px 18px;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #cbd5e1;
  margin: 0;
}

.filtro-modulo-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.filtro-modulo-grupo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filtro-modulo-etiqueta {
  margin: 0;
  font-weight: 600;
  color: #020331;
}

.filtro-modulo-select {
  max-width: 260px;
  border-radius: 8px;
}

.filtro-modulo-total {
  color: #64748b;
  font-size: 13px;
  margin-left: 6px;
}
.filtro-modulo-total strong {
  color: #020331;
}

.separador-enlace-abm {
  margin-left: 8px;
}

.filtro-auditoria-caja {
  max-width: 1000px;
  margin: 0 auto 30px auto;
}
.filtro-auditoria-caja .Form {
  padding: 22px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #006AC0;
  background-color: #ffffff;
}

.fecha-hora-filtro {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.fecha-hora-filtro select {
  display: inline-block;
  width: auto;
  min-width: 50px;
  height: 34px;
  padding: 4px 6px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #334155;
}
.fecha-hora-filtro select:focus {
  border-color: #006AC0;
  outline: 0;
}

.tabla-auditoria-container {
  max-width: 1100px;
  margin: 0 auto 40px auto;
}

.tabla-auditoria {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
}
.tabla-auditoria thead tr {
  background-color: #f1f5f9;
}
.tabla-auditoria thead th {
  padding: 12px 14px;
  color: #020331;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid #e2e8f0;
}
.tabla-auditoria tbody tr {
  border-bottom: 1px solid #eef2f6;
  transition: background-color 0.15s ease-in-out;
}
.tabla-auditoria tbody tr:hover {
  background-color: #f8fafc;
}
.tabla-auditoria tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  font-size: 13px;
  border-bottom: 1px solid #eef2f6;
}

.filtro-auditoria-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.filtro-auditoria-titulo {
  margin: 0;
  color: #020331;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icono-primario {
  color: #006AC0;
}

.campo-filtro-grupo {
  margin-bottom: 14px;
}

.etiqueta-filtro-auditoria {
  color: #020331;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 5px;
  display: block;
}

.input-filtro-auditoria {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.acciones-filtro-auditoria {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid #eef2f6;
  padding-top: 16px;
}

.icono-espaciado-der {
  margin-right: 5px;
}

/**
 * Dashboard, Informes y Obras Sociales
 * Paneles de administración, tarjetas KPI, gráficos interactivos,
 * formularios de reportes y gestión de obras sociales.
 */
.admin-contenedor {
  max-width: 1100px;
  margin: 15px auto 40px auto;
  padding: 0 15px;
}

.admin-titulo-principal {
  color: #020331;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.seccion-admin-bloque {
  background-color: #ffffff;
  border: 1px solid #006AC0;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.seccion-admin-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #006AC0;
  color: #020331;
  font-size: 20px;
  font-weight: 600;
}
.seccion-admin-header .icono-seccion {
  color: #006AC0;
  font-size: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.admin-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #020331;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
}
.admin-item-card:hover {
  background-color: #ffffff;
  border-color: #006AC0;
  box-shadow: 0 4px 12px rgba(0, 106, 192, 0.15);
  transform: translateY(-2px);
  color: #006AC0;
}
.admin-item-card:hover .admin-item-icono {
  background-color: #006AC0;
  color: #ffffff;
}

.admin-item-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #e0f2fe;
  color: #006AC0;
  font-size: 16px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-item-texto {
  line-height: 1.3;
}

.informe-titulo-principal {
  color: #020331;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.filtro-contenedor {
  max-width: 980px;
  margin: 0 auto 30px auto;
}

.filtro-card {
  padding: 24px 28px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #006AC0;
  background-color: #ffffff;
}

.filtro-card-titulo {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  color: #020331;
  font-weight: 600;
  font-size: 20px;
}

.seccion-subtitulo {
  color: #006AC0;
  font-size: 15px;
  font-weight: 600;
  margin-top: 5px;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.campo-grupo {
  margin-bottom: 15px;
}

.campo-label {
  display: block;
  font-weight: 600;
  color: #020331;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-control-estetico {
  display: block;
  width: 100%;
  height: 35px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control-estetico:focus {
  border-color: #006AC0;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 106, 192, 0.15);
}

.date-select-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.date-select-group select {
  flex: 1;
  height: 35px;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.date-select-group select:focus {
  border-color: #006AC0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 106, 192, 0.15);
}

.checkbox-container-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  max-height: 140px;
  overflow-y: auto;
}
.checkbox-container-box > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.checkbox-container-box label {
  font-weight: 500;
  font-size: 12.5px;
  color: #344155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  cursor: pointer;
}
.checkbox-container-box input[type=checkbox] {
  margin: 0;
  cursor: pointer;
  accent-color: #006AC0;
}

.panel-resultados {
  max-width: 1080px;
  margin: 0 auto 40px auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #006AC0;
  box-shadow: 5px 5px 5px #c7c7c9;
  padding: 22px 26px;
}

.panel-resultados-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 18px;
  border-bottom: 2px solid #006AC0;
  padding-bottom: 12px;
}

.kpi-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  background-color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.kpi-title {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #020331;
  line-height: 1.2;
}

.grafico-card {
  position: relative;
  height: 370px;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  background-color: #ffffff;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.grafico-card-titulo {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #020331;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.grafico-canvas-container {
  position: relative;
  height: 290px;
  width: 100%;
}

.solo-impresion {
  display: none;
}

@media print {
  .solo-impresion {
    display: block !important;
    margin-bottom: 20px;
  }
  .panel-resultados {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .tabla-informe-turnos th,
  .tabla-informe-turnos td {
    padding: 6px 8px !important;
    font-size: 11px !important;
    border: 1px solid #cbd5e1 !important;
  }
  .tabla-turnos-lista {
    width: 100% !important;
    font-size: 11px !important;
  }
  .tabla-turnos-lista th,
  .tabla-turnos-lista td {
    padding: 4px 6px !important;
    border: 1px solid #e2e8f0 !important;
  }
  .grafico-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    page-break-inside: avoid;
  }
}
.obrasoc-contenedor {
  max-width: 950px;
  margin: 30px auto;
  padding: 0 15px;
}

.obrasoc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.obrasoc-card {
  max-width: 620px;
  margin: 35px auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  border: 1px solid #006AC0;
}

.obrasoc-form-contenedor {
  max-width: 540px;
  margin: 35px auto;
  padding: 0 15px;
}
.obrasoc-form-contenedor .Form {
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border: 1px solid #006AC0;
  background-color: #ffffff;
}

.obrasoc-badge-directa {
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.obrasoc-badge-colmedico {
  background-color: #fef3c7;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.obrasoc-acciones {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.obrasoc-botones-pie {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}
