html,
body {
  color: rgba(33, 37, 41, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 12px;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: #fff;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

ul {
	padding-left: 1.5rem;
}

.error,
.obligatorio {
  color: #fe3131;
}

.tt {
  font-size: 13px;
  font-weight: 500;
}

.tnr {
  font-weight: 500;
}

.tr,
.tnr {
  color: #00894b;
}

p {
  margin-bottom: 10px;
}

.radios {
  display: flex;
  justify-content: center;
  align-items: start;
  font-size: 12px;
}

.radio {
  display: flex;
  align-items: center;
}

.radio input {
  margin-right: 4px;
}

.radio label {
  margin-bottom: 0;
  margin-right: 6px;
}

a.sodio {
  width: 34px;
  height: 12px;
  position: absolute;
  bottom: 10px;
  right: 20px;
}

a.sodio:hover,
a.sodio:active {
  background-position: left top;
}

a.sodio .logo_sodio_img {
  fill-rule: evenodd;
  clip-rule: evenodd;
  fill: #247faf;
  vertical-align: top;
}

a.sodio svg {
  vertical-align: top;
}

a.sodio:hover .logo_sodio_img,
a.sodio:active .logo_sodio_img {
  fill: #5b92d4;
}

a,
a:visited {
  color: #dd1d21;
  text-decoration: none;
  transition: color 0.1s ease-out;
}

a:hover,
a:focus {
  color: #b0191b;
  text-decoration: none;
}

main {
  margin: 0 0 112px 280px;
}

.form-inline .form-control {
  display: inline-block;
}

header {
  position: sticky;
  padding: 10px 0 0 0;
  top: 0;
  margin-left: 280px;
  background-color: #f3f4f6;
  transition: box-shadow 0.15s linear;
  z-index: 5;
}

header.active {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

header .container-fluid {
  background-color: #fff;
  padding-bottom: 20px;
  border-top-left-radius: 16px;
  padding-top: 10px;
}

header .titulo {
  font-size: 1.8rem;
}

header .usuario {
  float: right;
  text-align: right;
  line-height: 28px;
}

header .usuario a {
  line-height: 28px;
  vertical-align: top;
  margin-left: 10px;
}

header .salir {
  display: inline-block;
  height: 28px;
  width: 28px;
  background-image: url(../img/logout.svg);
  background-position: center center;
  background-size: 20px 19px;
  background-repeat: no-repeat;
  border-radius: 4px;
  transition: background-color 0.1s ease-out;
}

header .salir:hover {
  background-color: #c0d6f2;
}

header .boton_menu {
  display: none;
  height: 38px;
  width: 38px;
  background-image: url(../img/menu.svg);
  background-position: center center;
  background-size: 44px 42px;
  background-repeat: no-repeat;
  border-radius: 4px;
  transition: background-color 0.1s ease-out;
  margin-right: 20px;
  cursor: pointer;
  position: relative;
  left: -8px;
}

header .boton_menu:hover {
  background-color: #c0d6f2;
}

.sub_header {
  min-height: 28px;
  margin-bottom: 5px;
}

.sub_header:first-child {
  /*margin-bottom: 40px;*/
}

.sub_header input[type="text"].form-control {
  width: 250px;
}

.sub_header select.form-control {
  min-width: 100px;
  max-width: 250px;
}

.handle {
  background: url(../img/move.png) no-repeat;
  height: 25px;
}

nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 280px;
  inset: 0;
  background: #f3f4f6;
  z-index: 15;
}

nav .cabezal {
  height: 80px;
  padding: 20px;
}

nav .controles {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

nav .controles .form-control {
  margin-bottom: 10px;
}

nav .controles .form-control:last-child {
  margin-bottom: 0;
}

nav .contenido {
  flex: 1;
  padding: 10px;
}

nav .pie {
  padding: 10px;
}

nav .pie .usuario {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

nav .pie .usuario a {
  display: flex;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}

nav .boton_menu {
  display: none;
  height: 38px;
  width: 38px;
  background-image: url(../img/cerrar_menu.svg);
  background-position: center center;
  background-size: 38px 36px;
  background-repeat: no-repeat;
  border-radius: 4px;
  transition: background-color 0.1s ease-out;
  cursor: pointer;
  float: right;
}

nav .boton_menu:hover {
  background-color: #c0d6f2;
}

nav .boton {
  color: #fff;
}

nav a.link,
nav a.link:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #545964;
  text-decoration: none;
  transition: color 0.1s ease-out;
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
  line-height: normal;
}

nav a.link:hover,
nav a.link:focus,
nav .pie .usuario a:hover {
  border: 1px solid #ccc;
  background: #f8f8f8;
}

nav a.link.active,
nav a.link.active:visited {
  border: 1px solid #ddd;
  background: #fff;
}

nav a.link.desplegar {
  justify-content: space-between;
  margin-bottom: 0;
}

nav a.link.desplegar.active svg {
  transform: rotate(180deg);
}

nav .desplegable {
  display: none;
  padding-top: 1rem;
  padding-left: 1rem;
}

nav a.link.desplegar.active + .desplegable {
  display: block;
}

nav .nav_icono,
nav svg {
  font-size: 20px;
  color: #252525;
}

nav .titulo {
  color: #ccc;
  font-size: 19px;
  margin-bottom: 10px;
  margin-top: 30px;
  border-bottom: 1px solid #578ed0;
  padding-bottom: 15px;
}

.nav_cerrar {
  height: 0;
  width: 0;
  display: none;
}

nav form .btn {
  width: 100%;
}

footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 280px;
  padding: 10px 20px;
  height: 60px;
  background-color: #fff;
  border-top: 1px solid #eee;
  z-index: 5;
}

footer.alto {
  height: 112px;
}

footer .paginado div {
  line-height: 38px;
}

.foto {
  margin-bottom: 20px;
}

.foto img {
  width: 200px;
}

.foto .btn {
  margin: 10px 0;
}

.btn-primary {
  color: #fff;
  background-color: #dd1d21 !important;
  border-color: #dd1d21 !important;
  transition: 0.3s;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited {
  color: #fff;
  background-color: #b0191b !important;
  border-color: #b0191b !important;
}

.btn-primary.focus,
.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(221, 29, 33, 0.5) !important;
}

.badge {
  opacity: 0.8;
  font-size: 11px !important;
  padding: 5px !important;
}


.tooltip_container .listado_opciones .opcion.btn-orange:hover,
.badge-orange {
  color: #fff;
  background-color: #ff8c00;
}

.tooltip_container .listado_opciones .opcion.btn-green:hover,
.badge-green {
  color: #fff;
  background: #50c878;
}

.tooltip_container .listado_opciones .opcion.btn-green-2:hover,
.badge-green-2 {
  color: #fff;
  background: #01796f;
}

.badge-pendiente {
  background: #e5882e;
  color: #fff;
}

.tooltip_container .listado_opciones .opcion.btn-aceptado:hover,
.badge-aceptado {
  background: #5cb85c;
  color: #fff;
}

.tooltip_container .listado_opciones .opcion.btn-facturado:hover,
.badge-facturado {
  background: #5787c6;
  color: #fff;
}

.tooltip_container .listado_opciones .opcion.btn-entregado:hover,
.badge-entregado {
  background: #a9b5c5;
  color: #fff;
}

.tooltip_container .listado_opciones .opcion.btn-rechazado:hover,
.badge-rechazado {
  background: #e74c3c;
  color: #fff;
}

.row.linea-titulo {
  padding: 10px 0;
  border-bottom: 1px solid #bbb;
  line-height: 18px;
  font-weight: 500;
}

.row.linea {
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.row.seleccionado {
  background-color: #e6f2ff;
}

.elementos_seleccionados {
  line-height: 30px;
  font-size: 12px;
}

.row.campo-titulo {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
}

.row.campo-titulo-listado {
  margin-bottom: 10px;
}

.row.campo-titulo-margen {
  margin-bottom: 16px;
}

.campo-titulo {
  font-size: 14px;
  font-weight: 500;
}

.row.campo {
  margin-bottom: 30px;
  font-size: 1.1rem;
  padding-bottom: 15px;
  line-height: 21px;
}

.row.campo_listado {
  margin-bottom: 10px;
  font-size: 16px;
}

.row.listado {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  margin: 0;
  margin-bottom: 10px;
}

.row.listado:last-child {
  margin-bottom: 30px;
}

.fw-6 {
  font-weight: 600;
}

.contenedor_ficha {
  max-width: 960px;
  margin: initial;
}

.span_union_campos {
  margin: 0 5px;
}

.listado select {
  padding: 0.375rem 0.375rem !important;
  width: 100% !important;
}

select.compacto {
  padding: 0.375rem 0.375rem !important;
  width: 100% !important;
}

.logo {
  height: 50px;
  width: auto;
  vertical-align: top;
}

.custom_scroll::-webkit-scrollbar {
  width: 8px;
}

.custom_scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 1rem;
}

.custom_scroll::-webkit-scrollbar-thumb {
  background: #b9b9b9;
  border-radius: 1rem;
}

.custom_scroll::-webkit-scrollbar-thumb:hover {
  background: #9e9e9e;
}

.aviso_ficha {
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 15px 20px;
  font-size: 1.2rem;
  margin-bottom: 30px;
  background-color: #fefefe;
  box-shadow: 0 0 2px rgb(0 0 0 / 30%);
}

.campo-tipo_serviciorecurrente,
.campo-cat_23456,
.campo-cat_1,
.campo-cat_2,
.campo-cat_3,
.campo-cat_4,
.campo-cat_5,
.campo-cat_6 {
  display: none;
}

.widget {
  border: 1px solid #ddd;
  border-radius: 6px;
  height: 400px;
  background-color: #fff;
}

.widget_titulo {
  font-size: 1.2rem;
  line-height: 60px;
  padding: 0 10px;
  font-weight: 500;
}

.widget_listado {
  height: 330px;
  padding: 20px;
  overflow: auto;
  font-size: 0.9rem;
}

html.home,
html.home body {
  background-color: #f3f4f6;
}

html.home body header .container-fluid,
html.home body footer {
  background-color: #f3f4f6;
}

.ficha_separador {
  border-top: 1px solid #cacad0;
}

.campo_busqueda {
  background-image: url(/img/buscar.svg);
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  background-size: 14px;
}

.campo_fecha {
  background-image: url(/img/calendario.svg);
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  background-size: 14px;
}

.entrada_orden {
  display: inline-block;
  margin: 0 20px 20px 0;
  padding: 10px 20px;
  border: 1px solid #eee;
  font-size: 1rem;
  line-height: 22px;
  border-radius: 6px;
  vertical-align: top;
}

.entrada_orden_chica {
  font-size: 0.9rem;
  line-height: 20px;
}

.entrada_orden .form-check {
  margin-bottom: 6px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-5 {
  gap: 3rem;
}

.list-group-item.item-producto {
  animation: fadeIn2 0.225s ease-in;
}

.list-group-item {
	border: none;
	border-bottom: 1px solid #dee2e6;
	padding: 0;
	padding-bottom: 1rem;
	margin-bottom: 2rem;
}

@keyframes fadeIn2 {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.btn .badge {
  top: 0;
	padding: 10px !important;
}

.alert-danger {
  color: #fff;
  background-color: #a90a23 !important;
  border: none;
  font-size: 11px;
	align-self: flex-start;
}

.item-producto .item-producto-editar,
.item-producto.item-producto-edicion .item-producto-boton-guardar {
	display: none;
}

.item-producto.item-producto-edicion .item-producto-ver,
.item-producto.item-producto-edicion .item-producto-boton-editar,
.item-producto:not(.item-producto-edicion) .item-producto-boton-guardar {
	display: none !important;
}

.item-producto.item-producto-edicion .item-producto-editar {
	display: block;
}

.choices.is-invalid .choices__inner {
	border-color: #dc3545;
}

/********************************** Modal **********************************/

body:has(.modal-container) {
  overflow: hidden;
}

.modal-background {
  display: grid;
  place-content: center;
  position: fixed;
  inset: 0;
  background: #0003;
  z-index: 1100;
  opacity: 0;
  animation: fade 0.1s ease-in-out forwards;
}

.modal-container {
  background: #fff;
  border-radius: 6px;
  margin: 1rem;
  padding: 1rem;
  transform: scale(0);
  opacity: 0;
  animation: fadeIn 0.1s ease-in-out forwards;
  box-shadow: 0 1px 1px #0000000b, 0 2px 2px #0000000b, 0 4px 4px #0000000b, 0 8px 8px #0000000b, 0 16px 16px #0000000b,
    0 -2px 4px #0000000b;
  max-width: 400px;
  min-width: 200px;
}

.modal-container input,
.modal-container select {
  box-sizing: border-box;
  height: auto;
  width: 100%;
}

.modal-container:has(.contenedor-listado) {
  max-width: 1000px;
}

.modal-container .modal-titulo {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.modal-container .modal-mensaje {
  font-size: 14px;
  margin: 0;
  margin-bottom: 0.5em;
}

.modal-container .modal-botones {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-container .boton_cancelar,
.modal-container .boton_confirmar {
  flex: 1;
  font-size: clamp(12px, 1vw, 14px);
}

.modal-container p,
.modal-container label {
  font-size: 13px;
  margin: 0;
}

.tooltip_container {
  position: absolute;
  z-index: 1010;
  animation: fadeIn 0.1s ease-in-out forwards;
  opacity: 0;
  transform: scale(0);
  font-size: 14px;
  padding: 0.25rem;
  background: #fff;
  border-radius: 0.25rem;
  min-width: 100px;
}

.tooltip_container.tag_aviso {
  box-shadow: 0 1px 1px #0000000b, 0 2px 2px #0000000b, 0 4px 4px #0000000b, 0 8px 8px #0000000b, 0 16px 16px #0000000b,
    0 -2px 4px #0000000b;
}

.tooltip_container .listado_opciones {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tooltip_container .listado_opciones .opcion {
  background: #fff;
  color: #17a2b8;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}

.tooltip_container .listado_opciones .opcion:hover {
  background: #17a2b8;
  color: #fff;
}

.contenedor-listado {
  overflow-x: auto;
  padding-bottom: 1rem;
  --columns: repeat(auto-fit, minmax(20px, 1fr));
}

.listado-separado > .content-listado {
  gap: 1rem;
  margin: 1rem 0.5rem;
}

.listado-alumnos {
  flex: 1;
}

.contenedor-alumnos {
  min-height: 400px;
}

.contenedor-listado .header-listado,
.contenedor-listado .listado-item,
.contenedor-listado .footer-listado {
  grid-template-columns: var(--columns);
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: center;
  background: #fff;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #dee2e6;
}

.contenedor-listado .footer-listado {
  border: none;
}

.contenedor-listado .footer-listado:not(:first-child) {
	padding-top: 0;
}

.listado-separado > .content-listado > .listado-item,
.listado-separado > .content-listado > .desplegable > .listado-item {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  min-height: 75px;
}

.content-listado .listado-item:nth-child(2n),
.content-listado .listado-item-contenedor:nth-child(2n) > .listado-item {
  background: #f5f5f5;
}

.listado-separado > .content-listado > .listado-item:nth-child(2n),
.listado-separado > .content-listado > .desplegable > .listado-item:nth-child(2n) {
  background: inherit;
}

.content-listado .listado-item:hover {
  background: #ededed;
}

.listado-separado > .content-listado > .listado-item:hover,
.listado-separado > .content-listado > .desplegable > .listado-item:hover {
  background: inherit;
}

.header-listado p,
.listado-item p,
.footer-listado p {
  margin: 0;
  word-break: break-word;
}

.header-listado p,
.footer-listado p {
  font-weight: 600;
}

span.precio {
  text-wrap: nowrap;
}

.listado-mensaje {
  padding: 1rem;
  text-align: center;
  font-weight: 400;
  color: #6b6b6b;
  margin: 0;
}

.header-listado,
.content-listado,
.footer-listado {
  min-width: 600px;
}

.content-listado,
.listado-item-contenedor {
  display: flex;
  flex-direction: column;
}

.listado-item .contenedor_acciones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.desplegable .desplegable-contenido {
  display: none;
  transform: scale(0.9);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 1px 1px #0000000b, 0 2px 4px #0000000b, 0 4px 8px #0000000b;
  margin: 0 1rem;
  padding: 1rem;
  overflow: hidden;
}

.desplegable.active .desplegable-contenido {
  display: block;
  opacity: 0;
  animation: fadeIn 0.1s ease-in-out forwards;
}

.desplegable .desplegable-contenido .contenido {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  gap: 1rem;
}

.desplegable.active .desplegable-visible {
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 1px #0000000b, 0 2px 2px #0000000b, 0 4px 4px #0000000b, 0 8px 8px #0000000b;
  z-index: 1;
}

.desplegable .contenedor_acciones button:has(.desplegable-icono) {
  display: grid;
}

.desplegable .desplegable-icono {
  display: block;
}

.desplegable .desplegable-icono.cerrar {
  display: none;
}

.desplegable.active .desplegable-icono.abrir {
  display: none;
}

.desplegable.active .desplegable-icono.cerrar {
  display: block;
  animation: rotate 0.25s ease-in-out forwards;
}

.desplegable .boton-desplegable {
  display: grid;
  place-items: center;
  margin-left: auto;
}

.contenedor-dashboards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 600px), 1fr));
  gap: 2rem;
}

.contenedor-dashboard .header-listado,
.contenedor-dashboard .content-listado {
  min-width: auto;
}

.contenedor-dashboard .listado-item:last-child,
.contenedor-listado .listado-item:last-child {
  border-bottom: none;
}

.contenedor-dashboard {
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 1px 1px #0000000F, 0 2px 2px #0000000F, 0 4px 4px #0000000F, 0 8px 8px #0000000F, 0 16px 16px #0000000F;
  border-radius: 6px;
  overflow: auto;
}

.contenedor-dashboard .titulo {
  padding: 1rem;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #dee2e6;
}

.contenedor-paginado {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-top: 1px solid #dee2e6;
}

.contenedor-paginado .paginado {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contenedor-paginado .paginado a {
  text-wrap: nowrap;
}

@keyframes rotate {
  100% {
    transform: rotate(180deg);
  }
}

@keyframes fadeIn {
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fade {
  100% {
    opacity: 1;
  }
}

/************************************ Choices ***************************************/

.choices__list--dropdown,
.choices__list[aria-expanded] {
  word-break: break-word;
  width: max-content;
}

.choices .choices__inner {
  padding: 2px 8px;
  min-height: auto;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.choices .choices__input {
  background: #fff;
}

.choices[data-type*="select-one"] .choices__inner {
  padding-bottom: inherit;
}

.choices[data-type*="select-multiple"] .choices__inner,
.choices[data-type*="text"] .choices__inner {
  padding: 4px 8px;
}

.choices__list--multiple {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.choices__list--multiple .choices__item {
  margin: 0;
}

.choices__input {
  margin: 0;
  padding-bottom: 0;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  z-index: 10;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  padding-right: inherit;
}

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

@media (min-width: 920px) {
  body {
    font-size: 14px;
  }

  .logo_out {
    display: none;
  }
}

@media (max-width: 920px) {
  header {
    margin-left: 0;
    left: 0;
    background-color: #fff;
  }

  header .container-fluid {
    border-top-left-radius: 0;
  }

  header .boton_menu {
    display: inline-block;
  }

  header .nombre_usuario {
    display: none;
  }

  .sub_header {
    margin-bottom: 20px;
  }

  nav {
    left: -280px;
    transition: left 0.2s ease-out;
  }

  nav.activo {
    left: 0;
  }

  nav .boton_menu {
    display: block;
  }

  .nav_cerrar {
    position: fixed;
    height: initial;
    width: initial;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
  }

  .nav_cerrar.activo {
    display: block;
  }

  main {
    margin-left: 0;
  }

  footer {
    left: 0;
  }
}

@media (max-width: 480px) {
  .sub_header:first-child {
    margin-bottom: 20px;
  }

  .sub_header:last-child {
    margin-bottom: 0;
  }

  .elementos_seleccionados {
    font-size: 12px;
  }

  .badge {
    font-size: 10px !important;
  }

  .alert-danger {
    font-size: 10px;
  }
}
