﻿.select-compact > div > .mud-input {
    /*line-height: 0.1em !important;*/
}

.select-compact .mud-select-input, .fecha-small .mud-input-control .mud-input-slot, .fecha-small .mud-input-control .mud-input-label {
    font-size: 0.85rem !important;
}

.fecha-picker .mud-dialog {
    max-width: none !important;
    width: 310px !important;
}

.fecha-picker .mud-input-control .mud-input-control-input-container .mud-input .mud-input-adornment .mud-icon-button{
    padding : 5px;
}

.texto-heredado .mud-input-control-input-container .mud-input-label {
    font-size: 0.85rem !important;
}

.select-compact.mud-list-item .mud-typography-body1 {
    font-size: 0.875rem !important;
}

.select-compact.mud-list-item .mud-list-item-text {
    margin: 0;
}

div:has(a[href="http://paramquery.com/pro"]) {
    display: none;
}

.boton-morado-mid {
    text-transform: none !important; /* Evita que el texto sea todo mayúsculas */
    background-color: #272789 !important;
    color: white;
}
    .boton-morado-mid:hover {
        color: #FFFFFFCC !important; /* Cambia el color del texto al pasar el mouse */
        background-color: #27278999 !important; /* Cambia el fondo al pasar el mouse */
    }

/*paramquery*/

div.pq-theme{
    background : #fff;
}

#pqGridContainer, #pqGridContainer2 {
    width: calc(100% - 18px) !important;
}

.pqGridCnt {
    font-family: Inter;
}

.pq-grid-number-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.pq-drag-handle {
    margin-top: -4px !important;
}

.btw {
    padding: 12px 6px;
    text-transform: none;
    font-size: 0.875em !important;
    font-weight: 100;
}

    .btw > span > span > .mud-icon-root{
        font-size: 16px;
    }

    .btw > span > .mud-button-icon-start {
        margin-right: 4px;
    }

.cng {
    line-height: 1.2 !important;
    min-width: 80px;
}

.cnf {
    margin-right: 3px;
}

.btn.disabled, .btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
}

.pq-group-icon {
    top: 14px !important;
}

.pq-grid .pq-editor-focus{
    padding-top: 10px !important;
    color: black !important;
}

.pq-grid-number-cell {
    justify-content: center;
}

.pq-grid-row > .pq-grid-cell.pq-focus, .pq-grid-row > .pq-grid-col.pq-focus {
    border-color: transparent !important;
}

.pq-grid .fa {
    font-family: FontAwesome !important;
}

.pq-cbover {
    width: 100%;
    height: 30px;
    float: left;
    position: absolute;
    top: 10px;
}

.pq-state-select.pq-grid-row {
    background: steelblue;
    color: #fff;
}

.fsize {
    font-size: 0.875em !important;
}

.pq-tb-grp button {
    padding: 6px;
    font-size: 0.8em !important;
}

/*clase de cabecera simple*/
.column-simple {
    font-size: 14px !important;
    font-weight: normal !important;
}

.body-simple {
    font-size: 12px !important;
}

/*popup y mosaico de fotos*/

/* Estilos para el popup */
.pq-fotos-popup {
    display: none;
    position: fixed;
    z-index: 1300;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.pq-fotos-popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 8px;
}

/* Animación para el popup */
@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

.pq-fotos-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.pq-fotos-close-button:hover,
.pq-fotos-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos para el mosaico de fotos */
.pq-fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
}

.pq-fotos-item {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    border-radius: 5px;
}

.pq-fotos-item:hover {
    transform: scale(1.02);
}

.pq-fotos-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Estilos para la imagen expandida */
.pq-fotos-expanded-img-container {
    display: none;
    position: fixed;
    z-index: 1301;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0);
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease-in-out;
}

    .pq-fotos-expanded-img-container.show-overlay {
        background-color: rgba(0,0,0,0.9);
    }

.pq-fotos-expanded-img-content img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    .pq-fotos-expanded-img-content img.fade-in {
        opacity: 1;
    }

.pq-fotos-expanded-img-content img {
    width: 100%;
    height: auto;
    display: block;
}

.pq-fotos-expanded-close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.pq-fotos-expanded-close-button:hover,
.pq-fotos-expanded-close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/*Boton de ingreso y salida*/

.boton {
    padding: 6px 10px;
    border: none;
    border-radius: 20px;
    /*cursor: pointer;*/
    font-size: 0.6em !important;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 60px;
}

.boton-salida {
    background-color: #b80707;
    color: #FFFFFF;
}

    .boton-salida:hover {
        background-color: #a00606;
    }

    .boton-salida:active {
        background-color: #6A0000;
        transform: translateY(1px);
    }

    .boton-salida:disabled {
        background-color: #d96a6a;
        color: #FFFFFF;
        cursor: not-allowed;
    }


.boton-ingreso {
    background-color: #42a746;
    color: #FFFFFF;
}

    .boton-ingreso:hover {
        background-color: #337e36;
    }

    .boton-ingreso:active {
        transform: translateY(1px);
    }

    .boton-ingreso:disabled {
        background-color: #78c67a;
        color: #FFFFFF;
        cursor: not-allowed;
        opacity: 0.8;
    }


.boton-reporte {
    background-color: #CCCADD;
    color: #707070;
}

    .boton-reporte:hover {
        background-color: #E5E5EE;
    }

    .boton-reporte:active {
        transform: translateY(1px);
    }

    .boton-reporte:disabled {
        background-color: #E0E0E0;
        color: #9C9C9C;
        cursor: not-allowed;
        opacity: 0.8;
    }


.boton-salidap {
    background-color: #b80707;
    color: #FFFFFF;
}

    .boton-salidap:hover {
        background-color: #a00606;
    }

    .boton-salidap:active {
        background-color: #6A0000;
        transform: translateY(1px);
    }

    .boton-salidap:disabled {
        background-color: #d96a6a;
        color: #FFFFFF;
        cursor: not-allowed;
    }


.boton-ingresop {
    background-color: #42a746;
    color: #FFFFFF;
}

    .boton-ingresop:hover {
        background-color: #337e36;
    }

    .boton-ingresop:active {
        transform: translateY(1px);
    }

    .boton-ingresop:disabled {
        background-color: #78c67a;
        color: #FFFFFF;
        cursor: not-allowed;
        opacity: 0.8;
    }


.boton-llegadap {
    background-color: #B0E0FD;
    color: #23232A;
}

    .boton-llegadap:hover {
        background-color: #95BED6;
    }

    .boton-llegadap:active {
        transform: translateY(1px);
    }

    .boton-llegadap:disabled {
        background-color: #B1E2FF;
        color: #7C9EB3;
        cursor: not-allowed;
        opacity: 0.8;
    }

.boton-llegada {
    background-color: #B0E0FD;
    color: #23232A;
}

    .boton-llegada:hover {
        background-color: #95BED6;
    }

    .boton-llegada:active {
        transform: translateY(1px);
    }

    .boton-llegada:disabled {
        background-color: #B1E2FF;
        color: #7C9EB3;
        cursor: not-allowed;
        opacity: 0.8;
    }
/*Button*/

.btn {
    display: inline-block;
    font-weight: 400;
    user-select: none;
    border: 1px solid transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

button .fa {
    padding: 4px;
}

.btn-default {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #444;
}

    .btn-default:not(.disabled):hover, .btn-default:not(.disabled):active, .btn-default.hover:not(.disabled) {
        background-color: #848494;
        color: #fff;
    }

.btn-sm {
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
}

.btsm {
    padding-top: 3px;
    font-size: 1.1em !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #28a745 !important;
}


/* Loader */

.overlay-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

/* Contenedor del spinner */
.loader-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2100;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Texto debajo del spinner */
.loader-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.mud-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Bootstrap*/

.modal-backdrop {
    z-index: 1300 !important;
    position: fixed;
}

.modal {
    z-index: 1310 !important;
}

/* Mudblazor */
.mud-popover-provider > .mud-overlay {
    background-color : transparent;
}

.form-control > div > div > input, .MudSelectMultiple > div > div > input {
    padding: 6px 14px !important;
    font-size: 0.875rem !important;
}

.form-control > div > div > div.mud-input-slot {
    /*padding: 6px 14px !important;*/
    font-size: 0.875rem !important;
}

.mud-typography{
    font-size:0.875rem;
}

.mud-dialog-title > h6{
    font-weight:700;
    font-size:large;
}


.elipsis-item .mud-list-item-text {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.uppercase-input input {
    text-transform: uppercase;
}

.lowercase-input input {
    text-transform: lowercase;
}

.select-height .mud-select-input{
    height: 36px;
}

/* Ajusta solo el botón interno del grid */
.btn-compact {
    height: 32px; /* <- cambia aquí la altura deseada */
    min-height: 32px;
    padding: 0 4px; /* compensa el alto reduciendo padding vertical */
    line-height: 32px; /* alinea el texto/icono dentro del botón */
    font-size: 12px; /* opcional: más compacto */
}
