/* CSS Document */



/* Estilos propios*/

.contenedor{
	align-content: left;
	padding-left: 20px;
	width: 100%;
}

.elemento_menu{
	font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, "sans-serif";
	font-size: 1.2rem;
	font-weight: 900;
	color:#4E4E4E;
	text-align: justify; 
}

/* ── Campos de formulario ── */

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  min-width: 90px;
}

input,
input[type="text"],
input[type="search"],
input[type="date"],
input[type="number"] {
  font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", monospace;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.82rem;
  padding: 4px 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

input:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: #E84D20;
  box-shadow: 0 0 0 2px rgba(232, 77, 32, 0.18);
}

select {
  font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", monospace;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.82rem;
  padding: 4px 8px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
  outline: none;
  border-color: #E84D20;
  box-shadow: 0 0 0 2px rgba(232, 77, 32, 0.18);
}

input[type="submit"],
button[type="submit"] {
  font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
  color: #ffffff;
  padding: 6px 14px;
  background: #E84D20;
  border: 1px solid #E84D20;
  border-radius: 8px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background: #fff;
  color: #E84D20;
  border-color: #E84D20;
}

/* Botones pequeños dentro de accordions */
input[type="submit"].btn-sm,
button[type="submit"].btn-sm {
  padding: 3px 8px;
  font-size: 0.8em;
  border-radius: 5px;
}

/* Compatibilidad con #submit e #submit2 (IDs legacy) */
#submit {
  font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
  color: #ffffff;
  padding: 7px 14px;
  background: #E84D20;
  border: 1px solid #E84D20;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#submit:hover {
  background: #fff;
  color: #E84D20;
  border-color: #E84D20;
}

#submit2 {
  font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
  color: #ffffff;
  padding: 3px 8px;
  background: #E84D20;
  border: 1px solid #E84D20;
  border-radius: 5px;
  font-size: 0.8em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#submit2:hover {
  background: #fff;
  color: #E84D20;
  border-color: #E84D20;
}

/* ── Layout de campo: etiqueta + control en fila ── */

.form-campo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.form-campo label {
  flex: 0 0 auto;
}

.form-campo input,
.form-campo select {
  flex: 1 1 auto;
  min-width: 140px;
}

/* ── Acordeón de registros ── */

.accordion .card {
  border: 1px solid rgba(232, 77, 32, 0.25);
  margin-bottom: 0.35rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion .card-header {
  background: #fff8f6;
  padding: 0.45rem 0.75rem;
  border-bottom: none;
}

.accordion .card-header button {
  font-size: 0.82rem;
  color: #333;
  text-decoration: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.accordion .card-header button:hover {
  color: #E84D20;
}

.accordion .card-body {
  font-size: 0.83rem;
  padding: 0.6rem 1rem;
  background: #fff;
}

/* Badges de motivo / llaves */
.badge-motivo {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  vertical-align: middle;
}

.badge-llaves-ok {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #28a745;
  color: #fff;
  vertical-align: middle;
}

.badge-llaves-pend {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #dc3545;
  color: #fff;
  vertical-align: middle;
}


/*Estilos necesarios*/

.mbr-text {
  font-style: normal;
  line-height: 1.7;
}

.mbr-white {
  color: #ffffff;
}

.align-center {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-4,
.display-5,
.display-7,
span,
p,
a {
  line-height: 1;
  word-break: break-word;
  word-wrap: break-word;
  font-weight: 400;
}


/*Tablas adaptativas*/
table {
  width: 100%;
  background: white;
  margin-bottom: 1.25em;
  border: solid 1px #dddddd;
  border-collapse: collapse;
  border-spacing: 0;
}

table tr,
table tr td {
  padding: 0.5625em 0.625em;
  font-size: 0.875em;
  color: #222222;
  border: 1px solid #dddddd;
}
table th {
  padding: 0.5625em 0.625em;
  font-size: 0.9rem;
  color: white;
  border: 1px solid #dddddd;
  background:#E84D20 ;
}
table tr.even,
table tr.alt,
table tr:nth-of-type(even) {
  background:#FBE0D8 ;
}





table.tabla2 tr,
table.tabla2 tr td {
  padding: 0.5625em 0.625em;
  font-size: 0.875em;
  color: #222222;
  border: 1px solid #dddddd;
}
table.tabla2 th {
  padding: 0.5625em 0.625em;
  font-size: 0.9em;
  color: white;
  border: 1px solid #dddddd;
  background:#E84D20 ;
}
table.tabla2 tr.even,
table.tabla2 tr.alt,
table.tabla2 tr:nth-of-type(even) {
  background:#FBE0D8 ;
}



@media only screen and (max-width: 768px) {
	table.resp,
	.resp thead,
	.resp tbody,
	.resp tr,
	.resp th,
	.resp td,
	.resp caption {
	  display: block;
	}
	
	table.resp {
	  border: none
	}
	
	.resp thead tr {
	  display: none;
	}
	
	.resp tbody tr {
	  margin: 1em 1em;
	  border: 1px solid #FBE0D8;
	}
	
	.resp td {
	  border: none;
	  border-bottom: 1px solid #FBE0D8;
	  position: relative;
	  padding-left: 5%;
	  text-align: left;
	}
	
	.resp td:first-child{
		/* Para poner la primera celda de cada fila más visible */
		padding: 0.5625em 0.625em;
		font-size: 2em;
		font-weight: bold;
		color: black;
		border: 1px solid;
		background:#E84D20 ;
	}

	.resp tr td:last-child {
	  border-bottom: 1px double #FBE0D8;
	}
	
	.resp tr:last-child td:last-child {
	  border: none;
	}
	
	.resp td:before {
	  position: absolute;
	  top: 6px;
	  left: 6px;
	  width: 45%;
	  padding-right: 10px;
	  white-space: nowrap;
	  text-align: left;
	  font-weight: bold;
	}
}