/* LET THE STYLING BEGIN *//* LET THE STYLING BEGIN */

#dataTable {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
  }
  
  #dataTable td, #dataTable th {
    border: 1px solid #ddd;
    padding: 8px;
  }
  
  #dataTable tr:nth-child(even){background-color: #f2f2f2;}
  
  #dataTable tr:hover {background-color: #ddd;}
  
  #dataTable th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #007bff;
    color: white;
  }
 
  .vertical-alignment-helper {
    display: table;
    height: 100%;
    width: 100%;
    pointer-events: none;
}
 
.vertical-align-center {
    display: table-cell;
    vertical-align: middle;
    pointer-events: none;
}
 
.modal-content {
    width: inherit;
    max-width: inherit;
    height: inherit;
    margin: 0 auto;
    pointer-events: all;
}

span.ZIcon {
  display: none!important;
}

dd .btn.big-btn.primary{
display: grid;
  margin: auto auto;
  grid-auto-columns: auto;
  display: grid;
  font-size: 18px;
  font-family: sans-serif;
  font-weight: 200;
  padding: 12px 20px;
}

.form-title{
text-align: center!important;
}

dd input{
display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

label{
margin-bottom: 0.3rem;
}

.mb-4, .my-4 {
margin-bottom: 0.7rem !important;
}

.form-label{
  max-height: 20px!important;
  margin-bottom: 0.24rem;
  position: relative;
}

legend, .legend{
font-weight: 700;
background-color: #00895e !important;
padding: 0.5rem;
margin-bottom: 1.7rem;
margin-top: 2rem;
border-radius: 2px;
width: 100%;
color: #ffffffd3;
border-radius: 10px;
}
fieldset{
  background-color: #d1d1d12c;
  border: 5px solid #00895e;
  padding: 1.5rem;
  border-radius: 15px;
  transition: ease-in-out 0.2s;
}

fieldset:hover{
  box-shadow: 1px 1px 7px 1px #2c2c2cce;
  transform:scale(1.02, 1.01);
  transition: ease-in-out 0.2s; 
}

.submit-btn {
  background-color: #00895e;
  width: 60%;
  color: #ffffffbb;
  font-weight: bold;
  font-size: 20px;
  border: none;
  padding: 5px 10px;
  border-radius: 10px;
  transition: ease-in-out 0.2s;
  
  margin: 10px 0 10px 0;
}

.submit-btn:hover {
  box-shadow: 1px 1px 7px 1px #2c2c2cce;
  color: #fff;
  transition: 0.2s ease-in-out;
  text-decoration: none;
}

.sub-nav-index{
  padding: 10px 10px 10px 10px; 
  background-color: #0000006e; 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  position: fixed!important; 
  bottom: 0px; 
  right: 0px; 
  width: 100%;
  z-index: 1000;
}
.sub-nav-index button{
  background-color: #00895e;
  width: 20%;
  color: #ffffffbb;
  font-weight: bold;
  font-size: 20px;
  border: none;
  padding: 5px 10px;
  border-radius: 10px;
  transition: ease-in-out 0.2s; 
  margin: 10px;
}
.sub-nav-index .control-disabled {
  background-color: #20202025;
  width: 20%;
  color: #ffffffbb;
  font-weight: bold;
  font-size: 20px;
  border: none;
  padding: 5px 10px;
  border-radius: 10px;
  transition: ease-in-out 0.2s; 
  margin: 10px;
}

.sub-nav-index button:hover {
  box-shadow: 1px 1px 7px 1px #2c2c2cce;
  transform: scale(1.05, 1.05);
  color: #fff;
  transition: 0.2s ease-in-out;
}

/* Responsive ajustes para botones móviles */
.sub-nav-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.sub-nav-index button,
.sub-nav-index .control-disabled {
  min-width: 120px;
  width: auto;
  flex: 1 1 140px;
  margin: 6px;
}

@media (max-width: 768px) {
  .sub-nav-index {
    padding: 10px 8px;
  }

  .sub-nav-index button,
  .sub-nav-index .control-disabled {
    width: 100%;
    max-width: 100%;
    margin: 6px 0;
  }
}

@media (max-width: 480px) {
  .sub-nav-index button,
  .sub-nav-index .control-disabled {
    font-size: 18px;
    padding: 10px 12px;
  }
}

@media (max-width: 992px) {
  .container {
    min-width: auto !important;
    padding: 0 16px;
  }

  .row.mb-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .row.mb-2 > .col,
  .row.mb-2 > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }

  .form-outline {
    width: 100%;
    box-sizing: border-box;
  }

  .form-control {
    width: 100%;
    min-width: 0;
  }

  .form-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .form-check-label {
    margin: 0;
  }

  #medicalPracticeData {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  }

  #subespecially {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 768px) {
  .row.mb-2 {
    flex-direction: column;
    gap: 16px;
  }

  .col-md-2,
  .col-md-4,
  .col-md-12,
  .col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  #medicalPracticeData,
  #subespecially {
    grid-template-columns: 1fr !important;
  }

  .fellow-card {
    padding: 20px;
  }

  .fellow-card .fellow-checkbox-container {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 576px) {
  .form-label span.text-danger {
    display: inline-block;
    margin-bottom: 6px;
  }

  .form-outline {
    padding: 0;
  }

  .form-control {
    font-size: 0.95rem;
  }

  .submit-btn {
    width: 100% !important;
  }
}

body{
font-family: "Roboto Flex", sans-serif;
}

.line{
margin-top: 1rem;
margin-bottom: 1.3rem;
}

.form-control:disabled, .form-control[readonly=readonly] {
background-color: #f8f8f8;
opacity: 1;
}

input[type=checkbox], input[type=radio]{
width: 20px;
}

input[type=file][disabled] {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.75;
}

.disabled-file-upload .form-label {
  opacity: 0.85;
}

.disabled-file-upload .form-control {
  background-color: #e9ecef;
}

.form-control {
width: 100%;
padding: .375rem .75rem;
font-size: 0.9rem;
}

.table-records{
  max-width: 100%;
  /*overflow-x: scroll;*/
}

table th, table th{
  font-size: 1rem;
}

.control-disabled{
  color: #d6d6d6!important;
  background-color: #2c2c2c1f;
  font-weight: bold;
}

.cursor-normal{
  cursor:auto;
}

h2{
  color:#555;
}

*{
  font-family: "Roboto Flex", serif!important;
  letter-spacing: 0.7px;
}

.size-11{
  font-size:11px;
}

#tableAppointmens .btn.btn-primary.control-disabled, #tableEducation .btn.btn-primary.control-disabled{
  line-height: 0.5
}

/* Tab activo: “pastilla” con borde y sombra suave */
.nav-tabs .nav-link {
  border-radius: 0px;
  border-bottom: none;
  background-color: #4a4a4a;  
  padding: 12px 22px;
  color: #ffffff88;
  margin: 0;
  margin-bottom: 30px;
  transition: 0.2s ease-in-out;
}

.nav-tabs .nav-link.active {
  border-radius: 10px;
  background-color: #3d3d3d;     
  box-shadow: 1px 2px 10px 1px #494949f0; 
  transform: scale(1.1, 1.1);
  color: #fff;
}

.fellow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 24px;
  gap: 18px;
  background-color: #00895e;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
}

.fellow-card-title {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  color: #ffffffd2;
  text-align: center;
}

.fellow-card-highlight {
  font-weight: 700;
  font-size: clamp(16px, 3vw, 20px);
  color: #ffffff;
}

.fellow-card .fellow-info {
  width: 100%;
  color: #ffffffd2;
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  padding: 0;
  background: none;
  border: none;
}

.fellow-card .fellow-checkbox-container {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
}

.fellow-card .fellow-checkbox-container label {
  margin: 0;
  font-weight: 700;
  color: #ffffffd2;
  min-width: 160px;
  text-align: center;
}

.fellow-card .fellow-checkbox-container input[type="checkbox"] {
  width: auto;
  min-width: auto;
  margin: 0;
  transform: scale(1.25);
}

@media (max-width: 992px) {
  .fellow-card {
    padding: 20px;
  }

  .fellow-card .fellow-checkbox-container {
    flex-direction: column;
    align-items: stretch;
  }

  .fellow-card .fellow-checkbox-container label {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .fellow-card {
    padding: 18px;
    gap: 14px;
  }

  .fellow-card-title {
    font-size: clamp(18px, 5vw, 22px);
  }

  .fellow-card .fellow-info {
    font-size: 0.92rem;
  }

  .fellow-card .fellow-checkbox-container {
    padding: 12px 14px;
  }
}

/* gg */
/* El contenedor de la tabla permite scroll horizontal */
#appointments {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Evita que la tabla se comprima raro */
#appointments table {
  width: max-content;    /* la tabla toma el ancho necesario */
  min-width: 100%;       /* pero nunca menos que el contenedor */
  border-collapse: separate;
  border-spacing: 12px;  /* separación entre columnas (opcional) */
}

/* Inputs y selects: que llenen su celda sin exagerar */
#appointments input,
#appointments select {
  width: 100%;
  min-width: 140px;      /* suave, no enorme */
  box-sizing: border-box;
}

