/*GEN�RICO*/

.backgroundFondo{
  background-color: gainsboro;
  border: 3px inset rgb(110, 111, 132);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
	justify-content: space-between; /* Distribuye los elementos a lo largo del eje principal (vertical) */
  height: 500px;
  max-height: 500px;   /* Altura máxima del área de comentarios */
  overflow-y: auto;    /* Barra de desplazamiento horizontal si es necesario */
  box-shadow: 2px inset rgb(110, 111, 132);
  box-shadow: 7px 7px 7px rgb(206, 206, 206);    
}

.backgroundFondo::-webkit-scrollbar {
  width: 10px; /* Ancho de la barra de desplazamiento */
}
/* Estilo de la barra "pulgón" (o "thumb") */
.backgroundFondo::-webkit-scrollbar-thumb {
  background-color: #888; /* Color de la barra "pulgón" */
  border-radius: 5px; /* Borde redondeado de la barra "pulgón" */
}
/* Estilo del fondo de la barra de desplazamiento */
.backgroundFondo::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Color del fondo de la barra de desplazamiento */
}

.comentario-izquierda{
	position: relative;
	float:left;  
	width:48%; 	
	border-radius: 5px;
}

.comentario-derecha{
	position: relative;
	float:right; 
	width:48%; 
	border-radius: 5px;
}
.burbuja {
  position: relative;
  background-color: white;
  color: #222;
  border-radius: 3px;
  margin: 10px;
}
.burbuja:after {
  content: "";
  display: block;
  position: absolute;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 25px solid white;
  border-top-left-radius: 15px;
}
.burbuja-der {
  position: relative;
  background-color: white;
  color: #222;
  border-radius: 3px;
  margin: 10px;
}

.burbuja-der:after {
  content: "";
  display: block;
  position: absolute;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 25px solid #95EF76;
  border-top-right-radius: 15px;
}
/* Flecha a la izquierda para el sistema */
.burbuja-sistema:after {
  left: -15px;
  border-left: 15px solid transparent;
}
.burbuja-usuario{
	background-color: #95EF76;
}
/* Flecha a la derecha para el usuario */
.burbuja-usuario:after {
  right: -15px;
  border-right: 15px solid transparent;
}
#dt_Proveedores tr.fila-seleccionada td {
  background-color: #a2d8e6ff !important;
}

.file-input::file-selector-button{
    background-color: #A31505;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 4px;
    color: #fff;
}

.file-input::-webkit-file-upload-button{
    background-color: #A31505;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 4px;
    color:#fff;
}

.btnMostrar{
  border: none;
  background: transparent;
}

.btnMostrar:focus{
  outline: none;
}

.divPass{
  display: flex; 
  flex-direction: row; 
  gap: 1px;
  border-bottom: 1px solid black;
  margin-top: 10px;
}

#divDoc {
  display: flex;
  flex-direction: column;
  justify-content: unset;
}

#divDoc > * {
  flex-grow: 1; /* Hace que los elementos ocupen el espacio disponible */
}

#divDoc > *::after {
  content: "";
  display: block;
  border-top: 1px solid #000; /* Línea separadora */
  margin-top: 15px;
  margin-bottom: 15px;
}

.flex-responsive {
  display: flex;
  flex-direction: column;
}

#complemento{
  width: 100%;
}

#alertMod{
  display: flex; 
  justify-content: center; 
  align-items: center; 
  font-size: 1rem; 
  width:100%; 
  flex-direction: row; 
  gap: 20px;
  margin-top:10px;
}  

#alertCrtf{
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1rem; 
    width:100%; 
    flex-direction: row; 
    gap: 20px
  }

.modelo145{
  display: flex;
  justify-content: space-between;
}

@media (min-width: 950px) {
  .flex-responsive {
    flex-direction: row;
  }
  #complemento{
    width: 42%;
  }
  #divDoc {
    display: flex;
    flex-direction: row; /* Cambia a disposición horizontal */
    justify-content: center;
    align-items: center; /* Asegura alineación vertical */
  }
  
  /* Eliminamos la línea separadora en pantallas grandes */
  #divDoc > *::after {
    content: none;
    border-top: none;
    margin: 0;
    display: none;
  }

  #alertCrtf{
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1rem; 
    width:70%; 
    flex-direction: row; 
    gap: 20px
  }
  
  .email{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

body {
    font-family: 'Roboto', sans-serif;
    background: #f5f5f5;
    padding: 40px 0;
}

a,
a:hover {
    color: #A31505;
}

a:hover {
    text-decoration: underline;
}

.btn-primary,
.btn-primary:hover {
    background: #A31505;
    border: #A31505;
    transition: all ease 0.2s;
}

.btn-primary:hover {
    opacity: 0.8;
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn-primary.dropdown-toggle {
    background: #A31505;
    border: #A31505;
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show>.btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgb(177, 63, 61);
}


/*TABLAS*/

.table-bordered td,
.table-bordered th {
    border: 1px solid #dee2e6;
}


.table td,
.table th {
    vertical-align: inherit;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.modal .table td {
    padding: 5px 15px;
}

table.total {
    width: 30%;
}

table.total span {
    font-size: 24px;
    font-weight: bold;
}

.fixed-top {
    z-index: 1000!important;
}


/*INICIO SESI�N*/

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}


/*FORMULARIOS*/

.quantity {
    position: relative;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.quantity input {
    width: 150px;
    height: 42px;
    line-height: 1.65;
    float: left;
    display: block;
    padding: 0;
    margin: 0;
    padding-left: 20px;
    border: 1px solid #eee;
}

.quantity input:focus {
    outline: 0;
}

.quantity-nav {
    float: left;
    position: relative;
    height: 42px;
}

.quantity-button {
    position: relative;
    cursor: pointer;
    border-left: 1px solid #eee;
    width: 20px;
    text-align: center;
    color: #333;
    font-size: 13px;
    font-family: "Trebuchet MS", Helvetica, sans-serif !important;
    line-height: 1.7;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.quantity-button.quantity-up {
    position: absolute;
    height: 50%;
    top: 0;
    border-bottom: 1px solid #eee;
}

.quantity-button.quantity-down {
    position: absolute;
    bottom: -1px;
    height: 50%;
}

.cont-firma {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}


/*CANVAS*/

canvas {
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.24), 0 1px 5px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.24), 0 1px 5px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.24), 0 1px 5px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin-top: 30px;
    margin-bottom: 10px;
    cursor: default;
    position: relative;
}


/*HEADER*/

.navbar {
    background: #A31505;
}

.navbar .navbar-brand {
    padding: 10px;
    background: #fff;
    margin: -8px 0 -8px 0;
}

.navbar-expand .navbar-nav .nav-link {
    color: #fff;
}


/*CONTENIDO*/

.wrapper {
    padding-top: 65px;
}

.cont-white {
    padding: 30px 25px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.cont-white.datos {
    width: 100%;
    max-width: 600px;
    margin: auto;
}


/*FOOTER*/

footer {
    background: #A31505;
    padding: 25px 0;
    color: white;
    margin: 45px 0 0 0;
}

#ModalDatos .modal-content,
.modal_detalle_parte .modal-content {
    width: 850px;
}

#ModalOT .modal-content {
    width: 850px;
}

#form_parte_new ul {
    padding: 0;
    margin: 0;
}

#form_parte_new ul li {
    list-style: none;
    margin: 0 0 10px 0;
}

#form_parte_new ul li label {
    font-weight: bold;
}


/*MEDIA QUERIES*/

@media only screen and (max-width: 736px) {
    a.btn.pull-right {
        float: left!important;
    }
    .cont_tit h3 {
        font-size: 1.2rem;
    }
    .cont_tit h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    table.total {
        width: 100%;
    }
    textarea {
        width: 100%;
    }
    .btn.dropdown-toggle {
        white-space: inherit!important;
    }
    .dropdown-menu.show {
        transform: initial!important;
    }
}

@media only screen and (max-width: 1024px) and (min-width: 320px) {
    .navbar-expand .navbar-nav .nav-link {
        padding: 0;
        font-size: 12px;
    }
    #ModalDatos .modal-content,
    .modal_detalle_parte .modal-content {
        width: auto;
    }
     /* Estilos para hacer el modal ModalOT responsive en móvil */
    #ModalOT .modal-dialog {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
    
    #ModalOT .modal-content {
        border-radius: 4px;
    }
    
    #ModalOT .modal-body {
        padding: 15px 10px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    #ModalOT .cont-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #ModalOT .table {
        min-width: 100%;
        margin-bottom: 0;
    }
    
    #ModalOT .table td {
        padding: 8px 4px;
        vertical-align: middle;
        word-wrap: break-word;
    }
    
    #ModalOT .table td:first-child {
        min-width: 120px;
        max-width: 150px;
    }
    
    #ModalOT .form-control,
    #ModalOT .selectpicker {
        font-size: 14px;
    }
    
    #ModalOT textarea {
        min-height: 80px;
    }
    
    /* Mejorar los selectores en móvil */
    #ModalOT .bootstrap-select .dropdown-menu {
        max-height: 200px;
        overflow-y: auto;
    }
    
    /* Botones responsivos */
    #ModalOT .btn {
        margin: 5px 0;
    }
    
    #ModalOT .modal-footer {
        padding: 10px 15px;
    }
    
    /* Elementos de fecha y hora más manejables en móvil */
    #ModalOT .input-group {
        width: 100%;
    }
    
    #ModalOT input[type="time"],
    #ModalOT input[type="text"],
    #ModalOT select {
        min-height: 40px;
    }
    .cont-table {
        overflow-x: auto;
    }
    table strong,
    .table .thead-dark th {
        font-weight: 500;
        font-size: 13px;
    }
    .table td,
    .table th {
        padding: 10px;
    }
    .cont-table {
        overflow-x: auto;
    }
    .cont-white h3 {
        font-size: 1.2rem;
    }
    .btn-vacaciones {
        margin-left: 0!important;
    }
    .cont-white {
        margin-top: 1rem!important;
        margin-bottom: 1rem!important;
    }
    div.dataTables_wrapper div.dataTables_length,
    div.dataTables_wrapper div.dataTables_filter,
    div.dataTables_wrapper div.dataTables_info,
    div.dataTables_wrapper div.dataTables_paginate {
        text-align: left;
    }
}

