﻿
/*HEADER*/
/* Estilos para el header */

/*BOTONES*/
.btn {
    border: 2px solid #27436e;
    background: transparent;
    color: #27436e;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

    .btn:hover,
    .btn.active,
    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus {
        background-color: #27436e !important;
        color: white;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #27436e !important;
    }

.btn-header-white {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #fff;
    padding: 5px 10px;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-right: 5px;
}
    .btn-header-white:hover, .btn-header-white:focus, .btn-header-white:active:focus, .btn-header-white.nav-link:focus {
        background-color: white !important;
        color: black;
        box-shadow: 0 0 0 0.1rem black, 0 0 0 0.25rem white !important;
    }
    .btn-header-white option {
        color: #000;
    }

/*FORMULARIO*/
input.form-control,
select.form-control,
textarea.form-control {
    border: 2px solid #27436e;
    background: transparent;
    color: #27436e;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

    input.form-control:focus,
    select.form-control:focus,
    textarea.form-control:focus {
        background-color: #27436e !important;
        color: white;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #27436e !important;
    }

label {
    font-size: 14px;
    color: #27436e;
}

.error {
    color: red;
    padding-top: 1px;
    font-size: 12px;
}

/*ARCHIVOS*/
/* Estilos comunes para iframe e imagen */
.archivo-visor {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px; /* puedes ajustar el alto */
    overflow: hidden;
    padding: 0;
    text-align: center;
}

#visorArchivo[type="img"] {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    border: none;
}

/*CARD OBRAS*/
.card-header-obras {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0px;
}


.btn-obras-header {
    display: flex;
}

.card-header-encargo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0px;
}
.header-avisos-encargo {
    display: flex;
}

/*MODAL*/
.modal-regal {
    border-radius: 16px;
    background-color: #f8f9fa;
    border: 2px solid #27436e;
    box-shadow: 0 0 25px rgba(39, 67, 110, 0.25);
    overflow: hidden;
}

    .modal-regal .modal-header {
        background-color: #27436e;
        color: white;
        border-bottom: 1px solid #ddd;
        padding: 0.8rem 1.2rem;
    }

    .modal-regal .modal-title {
        font-weight: 600;
        font-size: 1rem;
        text-align: center;
    }

    .modal-regal .modal-body {
        padding: 1.25rem;
        min-height: 100px;
    }

    .modal-regal .modal-footer {
        padding-bottom: 0px;
        padding-top: 1rem;
    }

.modal-header-custom {
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centra el título */
    padding: 0.75rem 1.25rem;
    position: relative;
    background-color: #27436e;
    color: white;
}

    .modal-header-custom .cerrar-modal {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s ease;
        color: white;
    }

        .modal-header-custom .cerrar-modal:hover {
            transform: translateY(-50%) scale(1.2) rotate(90deg);
            color: #ffdddd;
        }

/*GENERAL FORMS*/
button.btn-primary {
    background-color: #27436e;
    border-color: #27436e;
}

    button.btn-primary:hover {
        background-color: #1d3554;
        border-color: #1d3554;
    }

.text-end {
    text-align: right;
}

/*ICONOS*/
.icon {
    color: #27436e;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    margin: 0px !important;
    padding-inline: 2px;
}

    .icon:hover,
    .icon.active,
    .icon:focus,
    .icon:active:focus,
    .icon.nav-link:focus {
        color: #3b5b90;
    }

/*HTML Y BODY*/
html {
    height: 100%;
}

body {
    min-height: 100vh; /* Altura mínima de la ventana */
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

header, footer {
    flex: 0 0 auto;
}

main {
    flex: 1 0 auto;
}

.logo-layout {
    height: 70px;
}

/*LOGIN*/
.login-container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.no-click {
    cursor: default;
    user-select: none;
}

/*LISTADO ENCARGOS*/
.action-btn {
    border: none;
    background-color: transparent;
}

    .action-btn:focus,
    .action-btn:active {
        outline: none;
        border: none;
        box-shadow: none;
    }

.search-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-header {
    border-bottom: 2px solid #27436e;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #27436e;
    font-size: 1.1rem;
    background-color: #f5f6f7;
}

.card-enunciados {
    font-weight: 600;
    color: #1a1a1a;
}

.card-custom {
    background-color: #f5f6f7;
    box-shadow: 2px 2px 6px rgba(27, 64, 106, 0.3);
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.card-encargos {
    color: #333;
    font-weight: 400;
    font-size: 13px;
}

.card-content {
    flex-grow: 1;
}

.btn-group-custom {
    position: absolute;
    right: 15px;
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.btn-container {
    display: flex;
    flex-wrap: wrap; /* Permite ajustar los botones en varias líneas si es necesario */
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    max-width: 88%; /* ajusta según tus necesidades */
}

/* Botón de subir */
#btnScrollTop {
    position: fixed;
    bottom: 1%; /* Valor por defecto */
    right: 7%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    color: #27436e;
}

/*DETALLES ENCARGO*/
.btnBack {
    position: fixed;
    bottom: 5%;
    left: 2%;
    z-index: 1000;
}

.encargo-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 20px;
}

.encargo-header {
    background-color: #dc3545; /* Banda roja */
    border-start-end-radius: 5px;
    border-start-start-radius: 5px;
    color: #fff;
    padding-right: 15px;
    padding-left: 15px;
    padding-bottom: 5px;
    padding-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    cursor: auto;
}

    .header-right label {
        margin-top: 5px;
        margin-right: 10px;
        font-weight: bold;
    }

.select-gremio {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #fff;
    padding: 5px 10px;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

    .select-gremio:hover, .select-gremio:focus, .select-gremio:active:focus, .select-gremio.nav-link:focus {
        background-color: white !important;
        color: black;
        box-shadow: 0 0 0 0.1rem black, 0 0 0 0.25rem white !important;
    }

    .select-gremio option {
        color: #000;
    }

.btn-crearnota {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 3px;
    color: #fff;
    padding: 5px 10px;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

    .btn-crearnota:hover, .btn-crearnota:focus, .btn-crearnota:active:focus, .btn-crearnota.nav-link:focus {
        background-color: white !important;
        color: black;
        box-shadow: 0 0 0 0.1rem black, 0 0 0 0.25rem white !important;
    }

.nro-siniestro-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copiar {
    background-color: transparent;
    border: none;
    color: #27436e;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

    .btn-copiar:hover {
        color: #3b5b90;
    }

.encargo-body {
    padding: 15px;
}

.info-line {
    display: flex;
    flex-wrap: wrap; /* Para que se adapte en pantallas pequeñas */
}

.info-col {
    flex: 0 0 33%;
    box-sizing: border-box;
    padding: 5px;
}

.section-title {
    margin-top: 3%;
    font-weight: bolder;
    font-family: 'Sans Serif Collection';
    font-style: normal;
    margin-bottom: 2px;
    font-size: 20px;
}

.info-label {
    font-weight: bold;
    margin-right: 5px;
}

.line-separator {
    border-top: 2px solid #dc3545;
    margin-bottom: 15px;
}

.line-separator-s {
    border-top: 1px solid #dc3545;
    margin-bottom: 35px;
}

/*NOTAS*/
.card-notas {
    border: 1px solid #ccc;
}

.header-notas {
    border-start-end-radius: 5px;
    border-start-start-radius: 5px;
    background-color: #dc3545;
    color: #fff;
}

.body-notas {
    padding: 15px;
}

.thead-notas {
    background-color: #27436e;
    color: white;
    font-weight: bold;
}

.table-separada td,
.table-separada th {
    border-right: 2px solid black;
}

    .table-separada td:last-child,
    .table-separada th:last-child {
        border-right: none;
    }

.col-fecha,
.col-acciones,
.col-usuario {
    white-space: nowrap;
}

.col-fecha {
    width: 13%;
}

.col-usuario {
    width: 5%;
}

.col-acciones {
    width: 5% !important;
}

.tabla-notas {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.modal-notas {
    border-radius: 10px;
}

.header-modal-notas {
    background-color: #dc3545;
    color: #fff;
}

.body-modal-notas {
    padding: 20px;
}

.footer-modal-notas {
    display: flex;
    justify-content: flex-end;
}

/*CALENDARIO*/
.calendario-header {
    border-start-end-radius: 5px;
    border-start-start-radius: 5px;
    padding-bottom: 10px;
    padding-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.month-tile-selected {
    border: 2px solid #27436e;
    background: #27436e;
    color: transparent;
    padding: 10px 15px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    text-align: center;
    margin: 0px;
}
.month-tile {
    border: 2px solid #27436e;
    background: transparent;
    color: #27436e;
    padding: 10px 15px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    text-align: center;
    margin: 0px;
}

    .month-tile:hover,
    .month-tile.active,
    .month-tile:focus,
    .month-tile:active:focus {
        background-color: #27436e !important;
        color: white;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #27436e !important;
    }

.calendar-day-title {
    border: 2px solid #27436e;
    background: transparent;
    color: #27436e;
    padding: 5px 5px !important;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    margin: 0px;
    max-width: 10px !important;
}

.calendar-day {
    border: 2px solid #27436e;
    background: transparent;
    padding: 5px 5px !important;
    color: #27436e;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    height: 4rem !important;
    max-width: 10px !important;
}

.other-month {
    padding: 0px !important;
    height: 0px !important;
    background-color: dimgray !important;
}

.sabado {
    background-color: aliceblue;
}

.festivo {
    background-color: indianred;
}

.actualMonth {
    background-color: lightgreen !important;
}

.actualDay {
    background-color: lightgreen !important;
}

#canvasFirma {
    border: 2px solid #333;
    width: 100%;
    height: 300px;
    touch-action: none;
}