/*-----------------------------------------------------------------
	DEFINICIONES VARIAS
  ---------------------------------------------------------------*/
:root {
  --accent-color: #242C4F;
  --accent-color-f-w: #0077cc;
  --background-clear: #f5f7fa;
  --background-dark: ##000000;
  --text-color: #111;
  --input-bg: #fff;
  --button-bg: linear-gradient(to bottom, #cceeff, #99ccff);
  --button-hover: linear-gradient(to bottom, #99ccff, #66b2ff);
  --button-text: #003366;
  --border-color: #ccc;
  --table-bg: #fff;
  --row-alt-bg: #f0f4f8;
}

.Col01 { color: #ffffff; }    /* Blanco */
.Col02 { color: #000000; }    /* Negro*/
.Col03 { color: #FF0000; }    /* Rojo*/
.Col04 { color: #ff7f00; }    /* Naranja*/
.Col05 { color: #242C4F; }    /* Azul Oscuro*/
.Col06 { color: #0000FF; }    /* Azul Francia*/
.Col07 { color: #008c00; }    /* Verde Oscuro*/
.Col08 { color: #00ff00; }    /* Verde Fluo*/
.Col09 { color: #00ffff; }    /* Turquesa Celeste*/
.Col10 { color: #00ffbf; }    /* Turquesa Verdoso*/
.Col11 { color: #5900B2; }    /* Violeta Oscuro*/
.Col12 { color: #7f00ff; }    /* Violeta*/
.Col13 { color: #D900D9; }    /* Fucsia Oscuro*/
.Col14 { color: #FF26FF; }    /* Fucsia*/
.Col15 { color: #ffffff; }    /* Xxxxxxx*/



.bloque-comandos {
  white-space: pre-wrap; /* respeta espacios y saltos */
  font-family: Arial; /* o la que uses en tu sitio */
  font-size: 14px;
  color: #003366;
  background-color: #F8FBFC;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(102, 178, 255, 0.3);
  line-height: 1.6;
}

/*-----------------------------------------------------------------
	FORMATO BODY
  ---------------------------------------------------------------*/
body.clear {
  font-family: Arial;
  background: var(--background-clear);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
}
body.clear1 {
  font-family: Arial;
  background: var(--background-clear);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}
body.clear2 {
  font-family: Arial;
  background: var(--background-clear);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.4;
}
body.clear3 {
  font-family: Arial;
  background: var(--background-clear);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
}
body.clearb {
  font-family: Arial;
  font-weight: bold;
  background: var(--background-clear);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
}
body.clear1b {
  font-family: Arial;
  font-weight: bold;
  background: var(--background-clear);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}
body.clear2b {
  font-family: Arial;
  font-weight: bold;
  background: var(--background-clear);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.4;
}
body.clear3b {
  font-family: Arial;
  font-weight: bold;
  background: var(--background-clear);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.4;
}
body.dark {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--background-dark);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
}
/*-----------------------------------------------------------------
	MENU
  ---------------------------------------------------------------*/
#sddm {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  background: transparent;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

#sddm li {
  list-style: none;
}

#sddm li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding: 4px 0;
  line-height: 1.4;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(135deg, #242C4F, #2875DE);
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

#sddm li a:hover {
  background: linear-gradient(135deg, #2875DE, #242C4F);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(40, 117, 222, 0.6);
}

#sddm div {
  position: absolute;
  visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 10px 0;
  min-width: 220px;
  z-index: 100;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;

}

#sddm div a {
  display: block;
  padding: 10px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 4px 0;
  text-align: center;
  transition: all 0.3s ease;
  width: auto;
  min-width: 160px;

}

#sddm div a:hover {
  background: #E6F0FF;
  color: #004C66;
  box-shadow: 0 4px 12px rgba(40, 117, 222, 0.3);
  transform: translateY(-1px);
}
/*-----------------------------------------------------------------
	BOTONES
  ---------------------------------------------------------------*/
.botones button,
input[type="submit"] {
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(102, 178, 255, 0.6);
  transition: background 0.3s ease, transform 0.2s ease;
}

.botones button:hover,
input[type="submit"]:hover {
  background: var(--button-hover);
  color: #000;
  box-shadow: 0 0 8px rgba(102, 178, 255, 0.9);
  transform: translateY(-2px);
}

/*-----------------------------------------------------------------
	FORMULARIOS
  ---------------------------------------------------------------*/
.formulario {
  width: 95%;
  margin: 0 auto 30px auto;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 15px;
  padding: 20px;
  background: var(--table-bg);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.formulario .campo {
  flex: 0 0 auto;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}

.formulario label {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--accent-color);
}

.formulario input,
.formulario select {
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.formulario input[type="submit"] {
  margin-top: 22px;
  padding: 8px 16px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: bold;
  cursor: pointer;
  flex: 0 0 auto;
}

.formulario .campo:last-child {
  align-self: flex-end;
}

.formulario::-webkit-scrollbar {
  height: 6px;
}
.formulario::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/*-----------------------------------------------------------------
	CONSULTAS
  ---------------------------------------------------------------*/
.tabla-consulta,
.tabla-perfil,
table {
  width: 95%;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--table-bg);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.tabla-consulta th,
.tabla-perfil th,
th {
  background: var(--accent-color);
  color: #fff;
  text-transform: uppercase;
  padding: 12px 16px;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
}

.tabla-consulta td,
.tabla-perfil td,
td {
  background: var(--row-alt-bg);
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

tr:nth-child(even) {
  background: var(--row-alt-bg);
}

.tabla-consulta tr:first-child th:first-child,
.tabla-perfil tr:first-child th,
table tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.tabla-consulta tr:first-child th:last-child,
.tabla-perfil tr:first-child td,
table tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

/*-----------------------------------------------------------------
	BOTONES TABLAS
  ---------------------------------------------------------------*/
td form input[type="submit"] {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

td form input[type="submit"]:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

/*-----------------------------------------------------------------
	USUARIO
  ---------------------------------------------------------------*/
.usuario-info,
.usuario-rol {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  color: #fff;
  background: #242C4F; /* Azul oscuro */
  padding: 6px 16px;
  border-radius: 8px;
  margin-left: 10px;
  font-size: 13px;
  white-space: nowrap;
}

/*-----------------------------------------------------------------
	ENCABEZADOS CONSULTAS
  ---------------------------------------------------------------*/
.bloque-turno {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  background: var(--form-bg);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.encabezado-turno {
  font-weight: bold;
  cursor: pointer;
  padding: 12px;
  background: var(--accent-color);
  color: #FFF;
  border-radius: 10px;
  margin-bottom: 5px;
  transition: background 0.3s ease;
}

.encabezado-turno:hover {
  background: #E3B85F;
}

.contenido-turno {
  display: none;
  padding-top: 10px;
}

.contenido-turno {
  display: none;
  padding-top: 10px;
}
.encabezado-turno {
  cursor: pointer;
}

/*-----------------------------------------------------------------
	BUSCADOR
  ---------------------------------------------------------------*/
.buscador-palabra {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
  align-items: center;
}

.input-busqueda {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #66b2ff;
  border-radius: 6px;
  background-color: #fff;
  color: #003366;
  box-shadow: 0 0 4px rgba(102, 178, 255, 0.5);
  transition: all 0.3s ease;
}

.input-busqueda:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(102, 178, 255, 0.8);
}

.boton-busqueda {
  padding: 6px 16px;
  font-size: 14px;
  border: 1px solid #66b2ff;
  border-radius: 6px;
  background: linear-gradient(to bottom, #cceeff, #99ccff);
  color: #003366;
  box-shadow: 0 0 6px rgba(102, 178, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.boton-busqueda:hover {
  background: linear-gradient(to bottom, #99ccff, #66b2ff);
  box-shadow: 0 0 8px rgba(102, 178, 255, 0.9);
  color: #000;
}



.resaltado {
  background-color: #a0f0e0; /* o el que elijas */
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 4px;
}

/*-----------------------------------------------------------------
	XXXXXXXXXXX
  ---------------------------------------------------------------*/
