#section_1 {
	background-color: #bbb;
}

.secret strong {
  color: darkred;
}

#header .margen {
	width: 95%
}

#footer {
	display: none;
}

a {
	color: #000;
}

#para_spin {
	width: 100%;
	justify-content: center;
	align-items: center;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.fa-spin {
	color: #5476a2;
	font-size: 3.5em;
	text-align: center;
	position: absolute;
	top: calc(50% - 10px);
  left: 50%;
  transform: translate(-50%, -50%);		
	opacity: .5	
}

.for_loader {
	position: absolute;
	right: 0;
	top: 0px;
	left: 0px;
	width: 100% ;
	height: 100%;	
	z-index: 100000;
	display: flex;
	justify-content: center;
	align-items: center;
}

.loader {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #327699;
  width: 50px;
  height: 50px;
  -webkit-animation: spin 0.9s linear infinite; /* Safari */
  animation: spin 0.9s linear infinite; /*era 1.1s*/
  transform: translate(-50%, -50%);	
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.flex2:not(:nth-last-of-type(1)) {
	margin-bottom: 25px;
}

.loaderchatgpt {
  position: ;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #327699, #072146, transparent);
  background-size: 200% 100%;
  animation: loading 2.5s infinite linear;
}

@keyframes loading {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

#boton_menu {
	display: none;
}

/***********************/
#nav_bar {              
	position: sticky;
	z-index: 100;
	top: 60px;
	height: 70px; 
	background-color: #327699;
	color: #fff;
	font-weight: bold;	
	justify-content: flex-start;
	align-content: space-between;
}

#nav_bar h2 {
	padding-left: 10px;
	font-size: 1.5em;
	font-weight: bold;
	text-align: center;
}

#nav_bar .flexbox {
  width: 100%;
}

#nav_bar button {
	flex-grow: 1;
	border: none;
	transition: all .2s ease;
	padding: 7px 5px;
	background-color: transparent;
	color: #fff;
}

#nav_bar button:nth-of-type(1) {
	background-color: #f5f5f6;
	color: #454e59;
}

#nav_bar button i {
	font-size: 1.5em;
}

#ajax_l1 { /*flex1 .margen*/
   background-color:
}

#ajax_l2 { /*flex1*/
	/*min-height: 400px;*/
	align-content: flex-start; /*old value: Center; start needed because of the min-height*/
	padding: 20px 10px 20px 10px;
	border: 4px solid #CC81F0;
	min-height: calc(100% - 80px) ;
	background-color: #f4f5f9;
	background-color: #f5f5f6;
}

#ajax_l2 .flex2 {
	background-color: #fff;
	border-radius: 8px;
	border: 2px solid #e8e9ed;
	padding: 10px 20px;
}

.chartDiv { /*son .flex2*/
	overflow: hidden;
}

#ajax_l3 {
	border: 3px solid greenyellow;
	min-height: 200px;
}

/***********************/

.h3_title, .h3_rows {
	margin-bottom: 10px;
	text-align: left;
	font-size: 1.35em;
	color: #444;
	font-weight: bold;
}

.input {
	height: 40px;
	padding: 5px;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 3px;
	transition: all .3s ease;
	width: 100%;
	background-color: #fafafa;
	font-size: 1em;
	border-radius: 8px;
}
    
.input:focus {
	border: 2px solid lightskyblue;
}

.input:hover {
	/*background-color: #eee;*/
}

.input:disabled {
	background-color: #e5e5e5;
	border: 1px solid #999;
}

select {
	background: #fafafa;
	height: 40px;
	padding: 5px;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 8px;
	width: 100%;
	transition: .1s ease all;
}

select:focus {
	border: 2px solid lightskyblue;
}

select:disabled {
	background: #e5e5e5;
}

.sticky_bar {
	position: sticky;
	top: 130px; /*60 + 70*/
  background-color: #f5f5f6;
	z-index: 2;
	min-height: 80px;
	align-content: center;
	border-radius: 8px;
	border: 2px solid #e8e9ed;
  margin-bottom: 50px;
}

.sticky_bar_filtros {
	margin-bottom: initial; /*70px*/
}

.selects_bar {
	overflow-x: auto;
	background-color: #fff;
	padding: 20px 20px;
	border-radius: 10px;
	width: 100%;
	border: 2px solid #e5e6ed;
}

.selects_bar > div {
	display: flex;
	justify-content: flex-start;
	height: 35px;
}

.selects_bar select, .selects_bar input {
	height: 100%;
	min-width: 120px;
}

.selects_bar select  {
	background: transparent;
	color: #000
}

.selects_bar :not(:last-child) {
	margin-right: 10px;
}

#div_para_input {
  width: 85%;
	height: 45px;
	position: relative;
	display: flex;
	z-index: 10;
	margin: auto;
	
}

#input_para_busqueda {
	box-shadow: 0px 1px 5px #ccc;
	background-color: #fff;
	border: 1px solid #ddd;
	color: #555;
	font-size: 1.1em;  
	/*the following rules modify the original values*/
	border-radius: initial;
	box-shadow: initial;
	height: 100%;
	width: calc(100% - 2px);
	padding: 15px 40px;
	transition: all .2s ease;
	
	border-radius: 8px;
}

#input_para_busqueda:focus {
	box-shadow: 0px 3px 4px #eee;
	border: 2px solid lightblue;
}

#para_divs {
	position: absolute;
	z-index: 2;
	background-color: #fff;
	box-shadow: 1px 2px 5px #bbb;
	/*Customized values*/
	top: 45px;
	width: 99.5%;

}

.filas {
	color: #444;
  padding: 11px 8px;
	font-size: 1em;
	font-weight: bold;
}

.filas:hover {
  cursor: pointer;
  background-color: #eee;
}

#div_para_input #lupa {
	width: 45px;
	height: 100%;
  display: flex;
	flex-wrap: wrap;
	align-content: center;
	background-color:  ;
	position: absolute;
	left: 0px;
}

#div_para_input i {
	color: #003b6f;
	width: 100%;
	text-align: center;
}
/*TERMINA BUSCADOR TIPO GOOGLE*/

.sub:not(:nth-last-of-type(1)) {
	margin-bottom: 20px;
}

.sub .main_label {
	width: 100%; 
	margin-bottom: 10px;
}

.sub label {
	font-size: .85em;
}

.line_divider {
	height: 1px;
	width: 100%;
	background-color: #ddd;
	margin-bottom: 25px;
}

.in1 div { width: 100%; }

.in2 div { width: 49.5%; }

.in3 div { width: 32.666%; }

.in4 div { width: 24.25%; }

.in5 div { width: 19%; }

.in6 div { width: 15.5%; }

.in7 div { width: 13.5%; }

.in8 div { width: 11%; }

.in1_2 div:nth-of-type(1) { width: 24.5%; }
.in1_2 div { width: 74.5%; }

.row {
	width: 100%;
	padding: 3px;
	font-size: 1em;
	font-weight: bold;
	min-height: 35px;
	align-content: center;
}

.row:not(:nth-last-of-type(1)) {
	border-bottom: 1px solid #e5e5e5;
}

.row:nth-child(even) {

}

.row:nth-child(odd) {
	
}

.row span:nth-of-type(1) {
  font-weight: initial;
	color: #111;
	padding-right: 6px;
}

.row span:nth-of-type(2) {
	color: #444;
}

.link {
	text-decoration: underline;
	text-decoration-color: #327699;
}

[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    
    background: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
}




/*-----------------------------*/
.sub_button {
	position: sticky;
	bottom: 0px;
	background-color: #f5f5f5;
	padding: 7px 0px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	z-index: 1
}

.flex2 .sub_button {
	background-color: #fff;
}

.bt3 {
	justify-content: space-between; /*flex-end*/
}

/*-----------------------------*/
.sub_button button {
	border: none;
	padding: 5px;
	background-color: #327699;
	color: #fff;
	min-width: 120px;
	width: 40%;
	height: 38px;
	border-radius: 5px;
	font-size: 1.2em;
	position: relative;
  transition: all .1s ease;
	margin-left: 8px;
}

.sub_button button:hover {
	background-color: #2a6481;
}

.sub_button button:active {
	top: 2px;
	box-shadow: none;
}

/*-----------------------------*/
.bt1 button {
	width: 150px;
}

.bt2 button {
	width: 120px;
	min-width: initial;
}

.bt3 button {
	width: 31%;
	min-width: initial;
}

.bt4 button {
	width: 23%;
	min-width: initial;
}

.bt3 button:nth-of-type(1) {
	margin-left: initial; /*8px*/
}

.bt4 button:nth-of-type(1) {
	margin-left: initial; /*8px*/
}




/*-----------------------------*/
.table_div {
	background-color: #eee;
	width: 100%;
  border: 2px solid #e8e9ed;
	margin-bottom: 50px;
	overflow: auto;
	border-radius: 10px;
	max-height: 450px;
}

.table_div table {
	width: 100%;
}

.table_div th {
		background-color: #f4f5f9;
		color: #000;
}

#forDynamicTable {
	min-height: 120px;
	max-height: 250px;
	background-color: #fff;
}
  
.table_row_pointer {
	cursor: pointer;
	transition: all .2s ease;
}

.table_row_pointer td {
	transition: all .3s ease;
}

.table_row_pointer:hover td {
  color: #327699;
	background-color: #f7f7f7;
}

/*-----------------------------*/

table {
	color: #555;
}

table thead {
	position: sticky;
	top: 0px; 
	z-index: 1
}

table th {
	font-size: .9em;
}

table th, table td {
	min-width: 125px;	
	padding: 0px 20px;
}

.table_style_1 {
	 border-collapse: collapse;
}

.table_style_1 tr {
	height: 35px;
}

.table_style_1 th {
	text-align: left;
}

.table_style_1 tr:nth-of-type(odd) {
	background-color: #fff;
}

.table_style_1 tr:nth-of-type(even) {
	background-color: #f9f9f9;
}

.table_style_2 {
	border-collapse: separate;
	border-spacing: 0 0px; /* horizontal | vertical */
}

.table_style_2 tr {
	height: 45px;
}

.table_style_2 tr:not(:nth-last-of-type(1)) td {
	border-bottom: 1px solid #e5e5e5;
}

.table_style_2 td {
	border-right: 1px solid transparent;
  background-color: #fff;
	text-align: center;
	font-size: .9em;
}

.table_style_2 tr td:first-child  {
	border-top-left-radius: 0px; /*12px*/
  border-bottom-left-radius: 0px; /*12px*/
}

.table_style_2 tr td:last-child  {
	border-top-right-radius: 0px; /*12px*/
  border-bottom-right-radius: 0px; /*12px*/
}


/*-------------------------------------------*/

.label_checkbox {
	border: 1px solid #ddd;
	cursor: pointer;
	padding: 5px;
	justify-content: center;
}

.label_checkbox .span_checkmark {
	width: 20px;
	border: 1px solid #c2c2c2;
	margin-left: 5px;
	margin-top: 2px;
	font-size: .9em;
	color: #fff;
	font-weight: bold;
	text-align: center;
	transition: all .1s ease-in-out;
	user-select: none;
}

.label_checkbox input:checked + .span_checkmark {
	background-color: #0087be; 
	font-size: .9em;
}

.input_checkbox {
  display: none;
}

#alert {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0px;
  z-index: 1000;
  background: rgba(0,0,0,.4);
  display: none;
}

#alert #inner-box {
  width: 325px;
  height: 170px;
  padding: 5px;
  margin: auto;
  top: 40%;
  position: relative;
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: space-between;
  border-radius: 5px
}

#alert #inner-box h4 {
  width: 100%;
  text-align: center;
  color: #327699;
  text-transform: uppercase;
	font-weight: bold;
}

#alert #inner-box p {
  color: #444;
  height: 60%;
  padding: 5px 2px;
  border: 1px solid #eee;
  text-align: left;
  background-color: #f6f6f6;
}

#alert #inner-box button {
  width: 80px;
  margin-left: 7px;
	border: 1px solid #ccc;
	padding: 5px;
	background-color: #fff;
	transition: all .1s ease;
}

#alert #inner-box button:hover {
	background-color: #327699;
	color: #fff;
}
/**********************************/
.fa-star {
	transition: all .2s ease-in;
	cursor: pointer;
	user-select: none;
}

.fa-star:hover {
	color: orange;
}

.star_row {
	width: 100%;
	padding: 4px;
	font-size: 1.1em;
}

.star_row label {
	margin-right: 10px;
	display: block;
	margin-bottom: 5px;
}

.star_row span {
	user-select: none;
}

.star_row:nth-child(even) {
	background-color: #f8f8f8;
}

.star_row:nth-child(odd) {
	border-left: 1px solid #eee;
}

.star {
  color: orange;
}

.star:hover {
	color: orange;
}
/**********************************/


.checkbox_div > div {
    width: 100%;
    color: #444;
}

.checkbox_div input {
    margin-right: 10px;
}
/**********************************/

#pdf_viewer_container {
	position: fixed;
	right: 0;
	top: 0px;
	left: 0px;
	width: 100% ;
	height: 100%;	
	background-color: rgba(0, 0, 0, 0.5); 
	transition: all .1s ease-in-out;
	visibility: hidden;
	opacity: 0;
	z-index: 100000;
	display: flex;
	justify-content: center;
	align-items: center;
}

#pdf_viewer_container i, #close_icon {
	color: #eee;
	font-size: 2em;
	text-align: right;
	cursor: pointer;
  position: absolute;
	right: 20px;
	top: 80px;
	transition: all .2s ease;
	padding: 2px;
	border-radius: 5px;
}

#pdf_viewer_container i:hover, #close_icon:hover {
	text-shadow: 1px 2px 2px #000;
	background-color: #CD524B;
}

#pdf_viewer {
	 width: 80%;
	 height: 80%;	
	 border: none;
}


/*------------------------------------------*/
#div_galeria {
    display: none;
    position: fixed;
    z-index: 1000;   
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

#focusedImg {
   margin: auto;  
   max-width: 75%;
   max-height: 75%;
}

#para_flechas {
  position: absolute;
  justify-content: space-between;
  align-self: center;
}

.galery_arrow {
  color: #ddd;
  font-size: 1.2em;   
  text-decoration: none;
  background: rgba(0,0,0,.2);
	border: none;
	transition: .5s ease all;
	padding: 5px;
}

.galery_arrow:hover {
  color: #fff;
}
/*------------------------------------------*/

/*En dashboard*/
#month_year {
	justify-content: flex-start;
	border: 1px solid #eee;
	border: 2px solid #e8e9ed;
	background-color: #fff;
	border-radius: 8px;
	padding: 7px;
}

/*-------------------------------------------------------*/
 /* The switch - the box around the slider  09/12/24*/ 
.switch {
  position: relative;
  display: flex;
	margin: auto;
  width: 50px;
  height: 23px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  -webkit-transition: .4s;
  transition: .4s;
}
/*-------------------------------------------------------*/

input:checked + .slider {
  background-color: #3A89B0;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
} /*-------------------------------------------------------*/

/*12/20/2025*/
pre {
  white-space: pre-wrap;  /* Mantiene espacios, pero ajusta al final */
  word-wrap: break-word;  /* Rompe palabras largas si es necesario */
}

h4 {
	color: #5476a2;
	font-weight: bold;
	margin-bottom: 5px;
	text-transform: uppercase;
	font-size: 1.2em;
}

/*UPLOAD BUTTONS---------------------------------------*/

input[type="file"] {
    display: none; /*https://stackoverflow.com/questions/572768/styling-an-input-type-file-button*/
}

.custom-file-upload {
   border: 1px solid #ccc;
   display: inline-block;
   padding: 7px 12px;
   cursor: pointer;
	 background-color: #bbb;
	 background: linear-gradient(#fff, #ccc);
	 color: #000;
	 transition: all .1s ease;
	 position: relative;
}

.custom-file-upload:active {
	top: 2px;
	box-shadow: none;
}

.document_row i {
	color: #ad0b00;
	margin-right:3px;
}

	
/*------------------------------------------------------*/

/*TABLET AND PC ONLY*/
@media only screen and (min-width: 600px) { 
	
 #section_1 {
	  padding: 10px;
 }	
	
	#nav_bar .flexbox {
    width: 50%;
  }
	
	.bt3 {
		justify-content: flex-end; /*flex-end -> space-between */
	}	
	
	.bt3 button {
		max-width: 120px;
	}
		
	.bt4 button {
		max-width: 120px;
	}	
	
	#general_info_ft {
		width: 49%;
		position: sticky;
		top: 280px;		
	}
	
	#para_fichas_unidad {
		width: 49%;
	}
	
	.ficha_unidad {
		padding-bottom: 50px;
    border-bottom: 2px solid #eee;
	}		

}

/*PC ONLY*/
@media only screen and (min-width: 970px) { 
	
	#section_1 {
		padding: 10px 10px 10px 210px;
	}		
	
	#ajax_l2 { /*flex1*/
		padding: 40px 80px 50px 80px;
	}	
	
	#ajax_l2 .flex2 {
		padding: 20px;
	}
			
	#nav_bar .flexbox {
		min-width: 400px;
		width: 40%;
  }
	
  .flex2 {
	  width: 49%;
  }
	
	#nav_bar h2 {
	   text-align: left;
  }
	
	.table_div {
		margin: initial; /*auto*/
		margin-bottom: 50px;
		overflow: hidden; /*auto*/

	}	
		
	.table_div:hover {
		overflow: auto;
	}
	
	#para_flechas {
		padding: 0 20px;
	}

	.galery_arrow {
		font-size: 2.5em;   
	}	
				
}

/*BIGGER SCREEN*/
@media only screen and (min-width: 1300px) { 
	
	#div_para_input {
		width: 49%;
	}
	
	#ajax_l2 { /*flex1*/
		padding: 30px 80px 20px 80px;
	}
	
}