/* Estilos generales */

:root {
  --btn-bg-color: #286090;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.container {
  padding: 0.5em 0.5em 2.5em 0.5em;
  width: 1350px;
  max-width: 100%;
  display: flex;
}

.btn-basic {
  padding: 8px 16px;
  margin: 0 auto;
  border-radius: 5px;
  height: min-content !important;
  min-width: 100px;
}

.contenedor-busqueda {
  padding: 1em 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  max-width: 100%;
}

.contenedor-busqueda button {
  width: 100px;
  min-width: fit-content;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 900px) {
  .contenedor-busqueda {
    flex-direction: column;
    gap: 0.5em;
  }

  .contenedor-busqueda > * {
    width: 100%;
  }

  .contenedor-busqueda input {
    max-width: 100%;
  }

  .contenedor-busqueda button {
    width: 100% !important;
  }
}

.contenedor-busqueda input,
.contenedor-busqueda button {
  height: 40px;
}

.contenedor-busqueda input {
  min-width: 300px;
  padding: 0 0.5em;
  border-radius: 5px;
}

.mensaje-busqueda {
  font-size: 2rem;
  text-align: center;
}

.contenedor-tabla-roles {
  margin-top: 1.5em;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  min-height: 60vh;
  width: 100%;
  max-width: 1140px;
}

.contenedor-tabla-roles tr {
  width: 100%;
}

@media (max-width: 900px) {
  
  .tabla-roles tr:not(tr:first-child) {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .tabla-roles tr >:not(tr:first-child) * {
    display: flex !important;
    flex-direction: column;
    flex-wrap: wrap;

  }

  .tabla-roles td span {
    width: 100%;
    display: block;
  }

  .tabla-roles td {
    width: 100%;
  }
}


@media (max-width: 900px) {

  .tabla-roles {
    display: flex !important;
  }

  .tabla-roles tr td span {
    display: block !important;
  }


  .tabla-roles tr {
    display: flex !important;
    flex-wrap: wrap;
  }

  .tabla-roles td {
    display: flex !important;
  }

  .tabla-roles td:nth-child(1) {order: 5;}
  .tabla-roles td:nth-child(2) {order: 2;}
  .tabla-roles td:nth-child(3) {order: 3;}
  .tabla-roles td:nth-child(4) {order: 4;}
  .tabla-roles td:nth-child(5) {order: 1;}
}

h1 {
  text-align: center;
  letter-spacing: 1px;
  font-size: 2.8rem;
  font-weight: bold;
}

form {
  min-width: 90%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

td {
  padding: 1em;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.btn-nostyle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.cuadro-info {
  background-color: #e6f7ff;
  border-radius: 5px;
  text-align: center;
}

.margenes-y {
  margin-top: 1em;
  margin-bottom: 1em;
}

.contenedor-flexible {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.ancho-100 {
  max-width: 100%;
}

.encabezado-acceso {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Botones */

.btn-basic,
.btn-primary,
.btn-success {
  padding: 8px 16px;
  margin: 0 auto;
  border-radius: 5px;
  height: min-content !important;
  min-width: fit-content;
  width: 200px;
}

.btn-inline {
  display: inline;
}

.img-logo {
  width: 150px;
}

.panel-credenciales {
  padding: 1em;
}

@media (max-width: 900px) {
  .panel-credenciales {
    padding: 0;
  }
}

.form-input {
  max-width: 600px;
}

.panel-acceso {
  padding: 5em 0;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em 0;
}

/* Modo móvil (pantallas pequeñas) */
@media (max-width: 768px) {
  .table-cemmi {
    max-width: 100%;
  }

  .table-cemmi,
  .table-cemmi thead,
  .table-cemmi tbody,
  .table-cemmi th,
  .table-cemmi tr,
  .table-cemmi td {
    display: block;
    width: 90vw;
    text-align: center;
  }

  .table-cemmi tbody {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  /* Ocultamos los encabezados de la tabla */
  .table-cemmi thead {
    display: none;
  }

  /* Descripción */
  .table-cemmi tbody tr:first-child {
    /* display: none; */
  }

  /* Cada fila se convierte en una "card" */
  .table-cemmi tr {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
  }

  /* Las celdas se convierten en filas individuales */
  .table-cemmi td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    text-align: left;
  }

  /* Antes de cada celda, ponemos su "título" */
  .table-cemmi td::before {
    content: attr(data-label);
    font-weight: bold;
    text-transform: uppercase;
    color: #555;
  }

  .table-cemmi a,
  .table-cemmi span {
    display: block;
    text-align: center;
  }
}

/* Operador Venta Talón */

.titulo-rol {
  text-align: center;
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 1em auto;
  text-transform: uppercase;
}

.subtitulo-rol {
  display: block;
  text-align: center;
  font-size: 2.5rem;
  /* font-weight: bold; */
  /* letter-spacing: 1px; */
  margin: 1em auto;
}

.panel-talon-seleccion {
  text-align: center;
  max-width: 100%;
  background-color: #f9f9f9;
  padding: 2.3em;
  border-radius: 10px;
  font-size: 1.6rem;
}

.panel-talon-seleccion div {
  background-color: #f9f9f95e;
  border-radius: 10px;
  padding: 0.5em;
  border: 2px solid white;
}

.btn-margin {
  margin: 0.8em auto;
}

/* rpt Sorteo Producción */

.info-sorteo-produccion span {
  display: block;
  padding: 0.5em;
  text-align: center;
}

/* Fechas */

.seleccion-fechas-sp {
  display: flex;
  justify-content: space-around;
  padding: 0.5em;
  margin: 0.5em;
  font-size: 1.7rem;
}

.seleccion-fechas-sp > * {
  padding: 0.3em;
}

.espaciado-interno {
  padding: 1em;
}

.nav-proof {
  display: flex;
}

/* Navbar */

.navbar-toggler {
  margin-left: auto;
  width: 4em;
  height: 3em;
}

.navbar-toggler-icon {
  width: 2.5em;
  height: 2.5em;
}

.navbar-user-settings {
  margin-left: auto;
  float: right !important;
}

@media (min-width: 900px) {
  .navbar-user-settings {
    display: flex;
    gap: 2em;
  }
}

.user {
  font-size: 1.3rem;
}

@media (max-width: 900px) {
  a.nav-link {
    display: block !important;
    width: 100vw !important;
    text-align: center;
    font-size: 1.5rem;
    padding: 0.5em 2.5em !important;
    line-height: 2.5 !important;
  }
}

/* Reporte producción por vendedor */

.operaciones-en-proceso th {
  font-size: 1.3rem;
  padding: 0.5em;
}

.operaciones-en-proceso tr {
  font-size: 1rem;
}

/* BarrioManzanaLote */

.tabla-barrio-manzana tr {
  display: table-row;
  height: 45px;
}

/* Tablas */

@media (max-width: 900px) {
  .table-cemmi td {
    align-items: center;
  }
}

/* Lotes en barrios */

/* .form-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
} */

/* Sweet alert */

.swal2-popup {
  width: fit-content;
  font-size: 1.2rem;
  padding: 1.5em 1em;
}

.swal2-confirm {
  background-color: #286090;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.flecha-arriba {
  position: fixed;
  right: 30px;
  bottom: 30px;
  font-size: 5rem;
  color: blue;
}

.solo-imprimir {
  display: none;
}

.seleccion-fechas-sp {
  display: inline-block;
}

#odsUltimosPeriodos {
  width: 100%;
}

.ancho-absoluto {
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 900px) {
  .flecha-arriba {
    color: #373a3e;
    color: white;
    background-color: blue;
    border-radius: 7px;
  }
}

@media print {
  .flecha-arriba {
    display: none;
  }

  #btnImpContrato {
    display: none;
  }

  .no-imprimir {
    display: none;
  }

  .titulo-rol {
    font-size: 16px;
  }


  .solo-imprimir {
    display: unset;
  }

  .mod-impr {
    text-align: center;
  }

  .no-padding-imp {
    padding: 0;
    margin: -20px;
  }

  .tabla-operaciones-señadas {
    font-size: 16px;
  }
   
}


.btn-imprimir {
  display: block;
}

/* @page {
  margin: 0;
} */

/* /* RploteVendedorVentaPeriodo */
/* @media (max-width: 768px) {
  .table-cemmi tr th {
    display: none !important;
  }

  .table-cemmi td {
    text-align: right;
    display: block;
  }

  table td::before {
    content: attr(data-title) ": ";
    float: left;
  }
} */

/* ASIGNACIÓN DE RANGO DE TALONARIO A SUPERVISOR */

.talonarios-grid a {
  min-width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
}

.talonario-supervisor {
  flex-direction: column;
  font-size: 16px;
}

/* Todos los select */
select {
  padding-top: .4em;
  padding-bottom: .4em;
  border-radius: 5px;
}

/* Revisión Contratos */

.panel-revision-contratos select, .panel-revision-contratos option {
  padding-top: .4em;
  padding-bottom: .4em;
  border-radius: 5px;
}

.revision-contratos-select span {
  font-weight: bold;
  display: block;
  margin-top: 1em;
}

.lote-venta-liberacion-select select {
  padding-top: .4em;
  padding-bottom: .4em;
  border-radius: 5px;
  max-width: 100%;
}

.lote-venta-liberacion-select span {
  font-weight: bold;
}

/* Venta Vendedor Período */

.venta-vendedor-periodo table {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border-radius: 5px;
}

.venta-vendedor-periodo, .operaciones-señadas {
  font-size: 12px;
}

.operaciones-señadas {
  width: 100%;
}

/* Control de adhesions concretadas por vendedor */

.tabla-adhesiones th:nth-child(1) {
  display: none;
}

.tabla-adhesiones td:nth-child(1) {
  display: none;
}

.tabla-adhesiones tr, td, th {
  padding: 0;
}

.tabla-adhesiones tr:hover, .venta-vendedor-periodo tr:hover {
	background-color: var(--btn-bg-color);
  color: white;

}

.tabla-adhesiones th, .venta-vendedor-periodo th {
	background-color: var(--btn-bg-color);
  color: white;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.tabla-adhesiones td, .venta-vendedor-periodo td {
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.tabla-operaciones-canceladas table tr {
  font-size: 12px !important;
}

.subtitulo-rol {
  font-size: 16px;
  margin: 0;
}

@media print {
  .tabla-adhesiones tr:hover, .venta-vendedor-periodo tr:hover {
    background-color: unset;
    color: unset; 
  }

  .venta-vendedor-periodo th:nth-child(1), .venta-vendedor-periodo td:nth-child(1) {
    display: none;
  }

  .operaciones-señadas th:nth-child(1), .operaciones-señadas td:nth-child(1) {
    display: unset;
    width: 100%;

  }

  .operaciones-señadas tr {
    width: 100%;
  }

  .tabla-adhesiones select, .seleccion-fechas-sp select {
    border: none;
    appearance: none;
  }

  .correo-vendedor {
    display: none;
  }

  .contenedor-flexible select {
    appearance: none;
    border: none;
  }
}

.contenedor-tabla-roles tr td a {
  background-color: #337AB7;
  color: white;
}

