.tabs {
    font-size: 0.82em;
    padding: 10px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: calc(100% - 35px);
    /* box-shadow: 0 5px 15px rgb(0 0 0 / 30%); */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

/* Contenedor del header */
.tabs-header-container {
    background: #f5f5f5;
    position: relative;

    & .tabs-header {
        display: flex;
        align-items: center;
    }
}

/* Primer tab fijo */
.first-tab {
    /* position: sticky;
    left: 0; */
    z-index: 10;
    background: #eee;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    & i{
        color: var(--blue);
    }
    & .close-btn {
        display: none !important;
    }
}

/* Tabs con scroll */
.scrollable-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
    flex-grow: 1;
}

/* Estilo para navegadores WebKit */
.scrollable-tabs::-webkit-scrollbar {
    height: 6px;
}

.scrollable-tabs::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.scrollable-tabs::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 6px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Selector fijo al final */
.tab-selector-container {
    position: sticky;
    right: 0;
    background: #f5f5f5;
    padding: 0 10px;
    z-index: 10;
    flex-shrink: 0;
}

.tab-selector {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
    background: white;
}

/* Estilos de tabs */
.tab {
    position: relative;
    padding: 12px 35px 12px 15px;
    cursor: pointer;
    color: var(--dark);
    background: #eee;
    display: inline-flex;
    align-items: center;
    /* min-width: 120px;
    max-width: 200px; */
    border-right: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.tab.active {
    background: white;
    color: var(--blue);
    border-bottom: 2px solid transparent;
}

.tab-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.tabs-content {
    padding: 0px 20px;
    background: white;
    height: calc(100% - 35px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 #f0f0f0;

    @media only screen and (max-width: 740px) {
        padding: 0px;
    }
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;

    @media only screen and (max-width: 740px) {
        overflow-x: auto;
        min-height: 530px;
    }
}

/* Botón de cerrar */
.close-btn {
    position: absolute;
    right: 8px;
    top: 30%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tab.active .close-btn {
    display: flex;
}

.tab.active .close-btn:hover {
    background: #ffebee;
    color: #d32f2f;
}

.tab-panel {

    form {
        position: relative;

        & .datalist{
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-top: none;
            border-radius: 0 0 4px 4px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            list-style: none;
            padding: 0;
            margin: 4px 0 0 0;
            max-height: 280px;
            overflow-y: auto;
            z-index: 1000;
            scrollbar-width: thin;
            scrollbar-color: #4a90e2 #f0f0f0;
            
            & li{
                padding: 10px 12px;
                cursor: pointer;
                border-bottom: 1px solid #eee;
                display: flex;
                justify-content: space-between;
                align-items: center;
                transition: background-color 0.2s;
                &:hover {
                    background-color: #f0f8ff; /* Un azul claro para destacar */
                }
            }
        }
    }
    & .header{
        position: relative;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 40px;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 0px 0px;
        display: flex;
        align-items: center;
        font-size: 1.2em;
        margin-bottom: 10px;

        & a, button {
            color: var(--dark);
            text-decoration: none;
            white-space: nowrap;
            font-size: 12px;
            cursor: pointer;
            width: 100%;
            max-width: 12%;
            min-width: 10%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: row;
            flex-wrap: nowrap;
            font-size: 0.8em;
            border: 1px;
            
            & i {
                position: relative;
                right: 0rem;
                bottom: 6px;
                width: 1rem;
                height: 0px;
                padding: 0px;
                color: var(--dark);
                cursor: pointer;
                font-size: 0.85em;
                /* &:hover{
                    color: var(--blue);
                } */
            }
            &:hover {
                color: var(--white);
                background: var(--primary);
                box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .2);
                /* white-space: nowrap;
                border: none;
                display: flex;
                justify-content: center;
                align-items: center;
                outline: none;
                font-size: 0.8rem;
                text-decoration: none;
                cursor: pointer;
                width: 100%;
                border-radius: 36px;
                transition: all .3s ease;
                -webkit-transition: all .3s ease;
                padding: 10px 0;
                font-weight: 500;
                letter-spacing: 0rem; */
            }
        }
    }

    @media only screen and (max-width: 740px) {
        & .header {
            & a, button {
                max-width: 35%;
            }
        }
        form {
            & .body {
                position: relative;
                display: block;
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
        }
    }
}

.w-form {
    font-family: var(--poppins);
    display: flex;
    flex-direction: column;
    justify-content: start;
    position: absolute;
    /* max-width: 300px; */
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 101;
    background: var(--light);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-out;

    & section {
        padding: 10px 20px 15px 20px;
    }
    & .title {
        text-align: center;
        border-bottom: solid 1px #eaeaef;
        border-radius: 5px 5px 0px 0px;
        background: var(--grey);
        height: 45px;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
    
        & i {
            position: absolute;
            top: 15px;
            left: 10px;
            font-size: 1em;
            color: var(--blue);
        }
        & h2{
            font-size: 0.9em;
            font-weight: 500;
            color: var(--dark);
            &:hover{
                color: var(--blue);
            }
        }
        & .btn-close {
            position: absolute;
            top: 10px;
            right: 20px;
            height: 25px;
            font-size: 1.1em;
            opacity: 0.7;
            cursor: pointer;
            border: none;
            order: none;
            outline: none;
            border-radius:46px;
            text-decoration: none;
            padding-inline: 0.7rem;
            border: 1px solid #dcdce4;
            background: var(--light);
            color: #8e8ea9;
            &:hover{
                color: #32324d;
                background: var(--gray);
            }
        }
    }
  
    & i {
        position: absolute;
        right: -1.4rem;
        bottom: -0.875rem;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0.125rem;
        color:var(--secondary);
        transform-origin: center;
        cursor: pointer;
        &:hover{
            border-radius: 50%;
        }
    }
    
    .btn-form {
        /* margin-top: -1rem; */
        min-width: 170px;
    }
  
    & a {
        color:var(--primary);
        text-decoration: none;
        white-space: nowrap;
        font-size: 12px;
        cursor: pointer;
    }
    
    & a:hover {
        text-decoration: underline;
    }

    & .body {
        position: relative;
    }

    & .header, .footer{
        /* position: fixed; */
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 50px;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 4px 1px;
        display: flex;
        align-items: center;
        justify-content: center;

        & a,button {
            color: var(--dark);
            text-decoration: none;
            white-space: nowrap;
            font-size: 12px;
            cursor: pointer;
            width: 20%;
            height: 100%;
            display: flex;
            align-content: space-around;
            justify-content: center;
            align-items: center;
            flex-direction: row;
            flex-wrap: nowrap;
            font-size: 0.8em;
            border: 1px;
            & i {
                position: relative;
                right: 0rem;
                bottom: 6px;
                width: 1rem;
                height: 0px;
                padding: 0px;
                color: var(--dark);
                cursor: pointer;
                font-size: 0.85em;
                &:hover{
                    color: var(--blue);
                }
            }
            &:hover{
                background: var(--grey);
                color: var(--blue);
                box-shadow: 0 0 4px 2px rgba(0, 0, 0, .2);
            }
        }
    }

    @media only screen and (max-width: 740px) {
        max-width: 350px;
        padding: 0px;
        & .row{
            flex-wrap: wrap;    
        }
        & section {
            padding: 5px;
            position: relative;
            overflow-x: auto;
        }
        & .title {
            margin-top: 0rem; 
            & h2 {
                font-size: 1rem;
            }
        }
        & .label {
            font-size: 0.8rem;
        }
        & .textfield:placeholder-shown~.label {
            top: 0.8rem;
            left: 0.1rem;
        }
        &.label, .textfield:focus~.label,
        .textfield:not(:placeholder-shown) + .label {
            font-size: 0.8rem;
            padding: 0 4px;
            left: 10px;
        }
        & .btn {
            font-size: 0.8rem;
            letter-spacing: .025rem;
            font-weight: 600;
            min-height: 2.5rem;
        }
        .footer {
            position: block;
            & a {
                font-weight: 400;
            }
        }   
        & .title {
            & h2 {
                font-size: 0.8em;
            }
        }
    }
}

.w-grid {
    position: relative;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, .2);
    font-size: 0.95rem;
    width: 100%;
    min-width: 650px;
    table-layout: fixed;
    font-size: 0.8em;
    font-weight: 500;
    & thead {
        width: 100%;
        font-size: 1.1em;
        font-weight: 500;
        color: var(--dark);
        background: var(--grey);
        box-shadow: 0 0 4px 2px rgba(0, 0, 0, .1);
    }
    & tr, .th {
        height: 30px;
    }
    & tbody {
        /* height: 455px; */
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #4a90e2 #f0f0f0;
    }
}
.w-table {
    position: relative;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, .2);
    font-size: 1.1em;
    width: 100%;
    min-width: 650px;
    table-layout: fixed;

    & caption {
        & .pagination{
            display: flex;
            width: 100%;
            font-size: 0.8em;
            padding: 0px 5px 5px 1px;

            justify-content: space-between;
            align-items: center;
            /* margin-bottom: 20px; */
            /* flex-wrap: wrap; */
            gap: 15px;

            & .items-per-page{
                display: flex;
                width: 35%;
                align-items: center;

                & label {
                    margin-right: 5px;
                    font-weight: 500;
                    color: #555;
                }
                .rows-total{
                    margin-left: 5px;
                    font-weight: 500;
                    color: #555;
                }
                & .per-page-select{
                    padding: 3px;
                    border: 1px solid #ccc;
                    border-radius: 4px;
                    background-color: #fff;
                    cursor: pointer;
                    width: 80px;
                }
            }

            & .buttons{
                display: flex;
                justify-content: flex-end;

                justify-content: center;
                align-items: center;
                flex-wrap: wrap;
                gap: 6px;
                margin-top: 0;

                & button.active {
                    background-color: #007bff;
                    color: white;
                    border-color: #007bff;
                    font-weight: 600;
                    cursor: default;
                }
                
                & button, & span {
                    padding: 8px 14px;
                    margin: 0;
                    border: 1px solid #ced4da;
                    background-color: #fff;
                    cursor: pointer;
                    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
                    border-radius: 4px;
                    color: #007bff;
                    font-size: 0.9em;
                }
                & span.ellipsis {
                    cursor: default;
                    background-color: transparent;
                    border: none;
                    padding: 8px 5px;
                    color: #6c757d;
                }

                & button:hover:not(:disabled) {
                    background-color: #e9ecef; /* Gris claro al pasar */
                    border-color: #adb5bd;
                }
                & button:disabled {
                    cursor: not-allowed;
                    opacity: 0.65;
                    color: #6c757d; /* Gris */
                    background-color: #f8f9fa;
                }
            }


        }
    }
    & thead {
        width: 100%;
        font-size: 0.8em;
        font-weight: 500;
        color: var(--dark);
        background: var(--grey);
        box-shadow: 0 0 4px 2px rgba(0, 0, 0, .1);
        & tr {
            text-align: center;
            vertical-align:middle;
            border-collapse: collapse;
            font-variant-numeric: tabular-nums;
            & .th {
                position: sticky;
                top: 0;
                background-color: #f2f2f2;
                z-index: 2;
                border: 1px solid #ddd;
                padding: 10px;
                /* text-align: left; */
                border-bottom: 2px solid #ccc;

                font-weight: 500;
                padding: 0 0.5px;
                vertical-align:middle;
                /* border-spacing: 0; */
                /* background-color: #f2f2f2; */
                cursor: pointer;
                position: relative;
                user-select: none;
                & input, select{
                    text-align: center;
                    border: 1px solid #ced4da;
                    border-radius: .25rem;
                    font-size: 0.98em;
                    width: 85%;
                    height: calc(1.5em + .75rem + 2px);
                    line-height: 1.5;
                    background-clip: padding-box;
                    border: 1px solid #ced4da;
                    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
                }
                & .check-all{
                    width: 14px;
                }
                &:hover {
                    background-color: #e6e6e6;
                }
                &::after {
                    content: "↕";
                    font-size: 12px;
                    opacity: 0.5;
                    /* position: absolute; */
                    right: 1px;
                    
                    @media only screen and (max-width: 740px) {
                        font-size: 9px;
                    }
                }
                &.asc::after {
                    content: "▲";
                    opacity: 1;
                }
                &.desc::after {
                    content: "▼";
                    opacity: 1;
                }
                /* tr:nth-child(even) {
                    background-color: #f9f9f9;
                } */
            }
        }
    }
    & tbody {
        font-weight: 100;
        font-size: 0.75em;
        display: inline-block;
        height: 455px;
        overflow-y: auto;
        overflow-x: hidden;
        border-top: 1px solid #e0e0e0;
        scrollbar-width: thin;
        scrollbar-color: #4a90e2 #f0f0f0;

        & tr{
            vertical-align:middle;
            & td {
                height: 29px;
                padding: 0px 1px 0 0;
                vertical-align:middle;
                display: table-cell;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                color: unset;
                box-shadow: 0 0 4px 2px rgba(0, 0, 0, .1);
                & input {
                    margin: 0px;
                    padding: 0px;
                }
            }
        }
    }
    & tfoot{
        & tr{
            vertical-align:middle;
            background-color: var(--grey);
            & th{
                vertical-align:middle;
                height: 25px;
                padding: 5px;
                text-align: left;
                font-weight: 600;

                position: sticky;
                bottom: 0;
                background-color: #e8e8e8; /* Fondo ligeramente diferente */
                z-index: 1; /* Por debajo de thead si se solapan */
                border: 1px solid #ddd;
                /* padding: 10px; */
                /* Añadir borde superior para separar visualmente del contenido */
                border-top: 2px solid #ccc;
                font-weight: bold; /* Hacer el texto del pie en negrita */
            }
        }
    }

    @media only screen and (max-width: 740px) {
        font-size: 0.9rem;
    }
}

table>tbody>tr.odd>* {
    box-shadow: inset 0 0 0 9999px rgba(0,0,0,.05);
}

tbody tr:hover td{
	background-color: #b2d1dd;
	color: var(--main-bg-color);
    cursor: pointer;
}

tbody td {
	background: var(--main-bg-color);
	color: var(--main-color);
    padding: .08rem;
	/* border-top: 1px solid #dee2e6; */
	border-bottom: 1px solid #dee2e6;
	font-size: 1.1em;
}

summary::marker {
    content: none;
}
summary::before,
summary::after {
    content: '';
}

.summary::before {
    width: .75em;
    height: 0;
    border-bottom: 2px solid;
    position: absolute;
    right: 20px;
    transform: translateY(-50%);
}
.summary::after {
    transform: rotate(90deg);
    transform-origin: 50% 50%;
}
.summary[open] {
    color: var(--blue);
    font-weight: 500;
    transform: rotate(0deg);
}

.w-sum-li::before, .w-sum-li-child::before,
.w-sum-li::after, .w-sum-li-child::after {
    width: .75em;
    height: 0;
    border-bottom: 2px solid;
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    transform: translateY(-50%);
}
.w-sum-li::after, .w-sum-li-child::after {
    transform: rotate(90deg);
    transform-origin: 50% 50%;
}
.w-det-2[open] .w-sum-li::after, .w-det-4[open] .w-sum-li-child::after, 
.w-det-6[open] .w-sum-li-child::after, .w-det-8[open] .w-sum-li-child::after {
    transform: rotate(0deg);
}
.w-det-2[open] .w-sum-li, .w-det-4[open] .w-sum-li-child, 
.w-det-6[open] .w-sum-li-child, .w-det-8[open] .w-sum-li-child {
    color: var(--blue);
    font-weight: 500;
}

.w-det-2[open] .w-sum-li i, .w-det-4[open] .w-sum-li-child i, 
.w-det-6[open] .w-sum-li-child i, .w-det-8[open] .w-sum-li-child i {
    font-weight: bold;
    color: #4945ff;
}

dialog {
    overflow: hidden;
    width: 100%;
	font-family: var(--poppins);
    font-weight: 400;
	box-shadow: 0 3px 30px 10px rgba(0,0,0,0.2);
	border-radius: 8px;
	border: 0.125px solid var(--gray);
    padding: 0px;
    animation: fadeInAnimation ease-in-out 0.25s forwards;
    display: flex;
    flex-direction: column;
    justify-content: start;
    position: absolute;
    resize: both;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%); 
    /* transition: translate 0.7s ease-out, overlay 0.7s ease-out, display 0.7s ease-out allow-discrete; */
    /* transform: scale(0.8); */
    /* animation: popIn 0.4s 0.1s forwards; */
    z-index: 100;


    & .title, .caption {
        text-align: center;
        border-bottom: solid 1px #eaeaef;
        border-radius: 5px 5px 0px 0px;
        background: var(--grey);
        /* height: 40px; */
        padding-top: 1px;
        display: flex;
        align-content: center;
        flex-wrap: wrap;
        /* justify-content: center; */
        & .nav {
            position: relative;
            width: 50%;
            box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 0px 0px;
            font-size: 1.2em;
            display: flex;
            align-items: center;
            flex-direction: row;
            min-width: 40%;
            & a {
                color: var(--dark);
                text-decoration: none;
                white-space: nowrap;
                font-size: 12px;
                cursor: pointer;
                width: 100%;
                max-width: 25%;
                min-width: 10%;
                height: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: row;
                flex-wrap: nowrap;
                font-size: 0.8em;
                border: 1px;
                &:hover{
                    color: var(--white);
                    background: var(--blue);
                }
                & i{
                    position: relative;
                    top: -7px;
                    left: -5px;
                    width: 1rem;
                    height: 0px;
                    padding: 0px;
                    color: var(--dark);
                    cursor: pointer;
                    /* font-size: 0.85em; */
                    &:hover{
                        color: var(--blue);
                    }
                }
            }
        }
        & i {
            position: absolute;
            top: 12px;
            left: 10px;
            font-size: 1.1em;
            color: var(--blue);
        }
        & h2 {
            font-size: 1em;
            font-weight: 500;
            color: var(--dark);
            &:hover{
                color: var(--blue);
            }
        }
        & .btn-title {
            position: absolute;
            top: 8px;
            height: 25px;
            font-size: 1.1em;
            opacity: 0.7;
            cursor: pointer;
            border: none;
            order: none;
            outline: none;
            /* border-radius:46px; */
            text-decoration: none;
            padding-inline: 0.7rem;
            /* border: 1px solid #dcdce4; */
            /* background: var(--light); */
            color: #8e8ea9;
            &:hover {
                color: #32324d;
                background: var(--gray);
            }
        }
        & .btn-close {
            right: 10px;
            &:hover {
                transition: all 0.2s ease;
            }
        }
        & .btn-minimizar {
            right: 40px;
        }
    }

    & .caption {
        justify-content: center;
        & .nav {
            width:0px;
            min-width: 1%;
        }
        & h2 {   
            font-size: 1em;
            font-weight: 500;
            color: var(--dark);
            /* padding-left: 32px; */
            &:hover{
                color: var(--blue);
            }
        }
    }
    & .title.left {
        text-align: left;

        & .nav {
            display: flex;
            position: relative;
            flex-direction: row;
            width: 10%;
            min-width: 30%;
            & a {
                width: 100%;
                max-width: 40%;
            }
        }
        & h2 {   
            font-size: 1em;
            font-weight: 500;
            color: var(--dark);
            width: 60%;
        }
    }
    & img {
        height: 390px;
        width: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        /* -webkit-transition:  0.2s ease;;
        -o-transition:  0.2s ease;; */
        transition:  0.2s ease;;
        /* margin-bottom: 50px; */

        -webkit-transition: all .2s ease-in-out;
        -moz-transition: all .2s ease-in-out;
        -o-transition: all .2s ease-in-out;
        -ms-transition: all .2s ease-in-out;
    }
    & section {
        padding: 10px;
        /* overflow-y: auto; */
        scrollbar-width: thin;
        scrollbar-color: rgb(74, 144, 226) rgb(240, 240, 240);
        height: 100%;
        & .zoom-img{
            cursor: pointer;
            overflow: hidden;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            height: 390px;
            width: 100%;
            & img {
                position: relative;
                pointer-events: none;
                width: 100%;
                max-width: inherit;
                height: auto;
                -o-object-fit: cover;
                object-fit: cover;
                -o-object-position: center center; 
                object-position: center center;
                -webkit-transition: .3s cubic-bezier(.1,.3,.1,1) 0s;
                -o-transition: .3s cubic-bezier(.1,.3,.1,1) 0s;
                transition: .3s cubic-bezier(.1,.3,.1,1) 0s;
            }
        }
    }
    & .footer {
        position: relative;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 50px;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 4px 1px;
        display: flex;
        align-items: center;
        justify-content: center;
        & a,button {
            color: var(--dark);
            text-decoration: none;
            white-space: nowrap;
            font-size: 12px;
            cursor: pointer;
            width: 15%;
            height: 100%;
            display: flex;
            align-content: space-around;
            justify-content: center;
            align-items: center;
            flex-direction: row;
            flex-wrap: nowrap;
            font-size: 0.8em;
            border: 1px;
            
            & i {
                position: relative;
                right: 0rem;
                bottom: 6px;
                width: 1rem;
                height: 0px;
                padding: 0px;
                color: var(--dark);
                cursor: pointer;
                font-size: 0.85em;
                &:hover{
                    color: var(--blue);
                }
            }
            &:hover{
                background: var(--grey);
                color: var(--blue);
                box-shadow: 0 0 4px 2px rgba(0, 0, 0, .2);
            }
        }
    }
    & .details {
        font-size: 0.9em;
        font-weight: 500;
        color: var(--dark);
        display: flex;
        gap: 5px;
        flex-direction: column;
        cursor: pointer;
        /* max-height: 380px; */
        /* padding: 0 !important; */

        &[open] {
            border-color: var(--blue);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
            padding-bottom: 10px;
            
            .summary {
                background: linear-gradient(to right, var(--blue), var(--blue));
                color: white;
                
                i {
                    color: white;
                }
                
                &::after {
                    content: '−';
                    color: white;
                    background: rgba(255, 255, 255, 0.2);
                    transform: rotate(0deg);
                }
            }
        }

        & .w-table{
            table-layout: fixed;
            width: 100%;
            height: 280px;
            width: 98%;
            left: 10px;
            border-collapse: collapse;
            & thead {
                height: 30px !important;
            }
            & tbody {
                font-weight: 100;
                font-size: 0.75em;
                display: inline-block;
                height: 268px !important;
            }
            & tfoot {
                display: flex;
                font-weight: 600;
                font-size: 0.95em;
                height: 30px;
                align-items: center;
                background-color: var(--grey);
                width: 100px;
            }
        }
        & .w-grid{
            position: relative;
            table-layout: fixed;
            width: 100%;
            height: 300px;
            max-height: 320px;
            border-collapse: collapse;
        }
        img {
            position: relative;
            height: 230px;
            /* width: 100%; */
            -o-object-fit: cover;
            object-fit: cover;
            -webkit-transition: 0.2sease;
            -o-transition: 0.2s ease;
            transition: 0.2sease;
            margin-bottom: 50px;
        }
    }

    & .summary{
        box-shadow: 0 0 4px 2px rgba(0, 0, 0, .1);
        padding: 5px;
        height: 22px;
        font-size: 1.1em;
        margin-top: 4px;
        margin-bottom: 4px;
        display: flex;
        align-content: center;
        align-items: center;

        &:hover {
            background: var(--grey);
            cursor: pointer;
        }

        &::-webkit-details-marker {
                display: none;
        }
        &::before {
            content: ' ';
        }
            
        &::after {
            content: '+';
            position: absolute;
            right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            background: var(--grey);
            color: var(--primary);
            border-radius: 50%;
            font-weight: bold;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }
    }

    summary::marker {
        content: none;
    }
    summary::before,
    summary::after {
        content: '';
    }

    .summary::before {
        width: .75em;
        height: 0;
        border-bottom: 2px solid;
        position: absolute;
        right: 20px;
        transform: translateY(-50%);
    }
    .summary::after {
        transform: rotate(90deg);
        transform-origin: 50% 50%;
    }
    .summary[open] {
        color: var(--blue);
        font-weight: 500;
        transform: rotate(0deg);
    }

    .textfield {
        font-size: 1.1em;
        cursor: pointer;
    }
    .textfield:disabled {
        background: var(--grey);
        opacity: 1;
    }
    .textarea {
        display: block;
        width: 100%;
        padding: 5px 5px 5px 10px;
        height: auto;
        font-weight: 400;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: .25rem;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;     
    }
    & i {
        position: sticky;
        right: -0.9rem;
        bottom: -0.875rem;
        width: 1rem;
        height: 0.7rem;
        padding: 0.125rem;
        /* color:var(--secondary); */
        transform-origin: center;
        cursor: pointer;
        font-size: 1.1em;
        &:hover{
            border-radius: 50%;
        }
    }
    .checkbox {
        position: relative;
        top: 4px;
        left: 25px;
        padding: 0px 5px;
        vertical-align: middle
    }
    [class*="col-"] {
        & i{
            position: absolute;
            right: -0.9rem;
            bottom: -0.875rem;
            width: 2.25rem;
            height: 2.25rem;
            padding: 0.125rem;
            color:var(--secondary);
            transform-origin: center;
            cursor: pointer;
            &:hover{
                border-radius: 50%;
            }
        }
        & button {
            padding: 0px;
            height: 2rem;
            & i {
                position: relative;
                top: 12px;
                left: -5px;
                width: 10px;
                padding: 0.125rem;
                &:hover{
                    color: var(--blue);
                }
            }
        }
    }
    & .show-modal {
        position:fixed;
    }
    & .show-modal::before {
        opacity: 1;
        pointer-events: auto;
    }
    & .tabs{
        padding: 0px;
        height: auto;
        & .tabs-content{
            padding:12px 0px 0px 0px;
            background: white;
            height: auto;
        }
        & .tab{
            font-size: 1.15em;
        }
    }
    @media only screen and (max-width: 740px) {
        max-width: 330px;
        & .title {
            height: 40px;
            & .nav{
                display: flex;
                max-width: 165px !important;
                overflow-x: auto;
                & a{
                    max-width: 10%;
                }
            }
            & h2{
                font-size: 1em;
            }
        }
        & .caption {
            & .nav{
                min-width: 0%;
                padding-left: 0px !important;
                width: calc(0% - 0px) !important;
            }
            & h2 {
                position: relative;
                padding: 0px 30px 0px 0px;
                /* right: 10px; */
            }
            & .btn-minimizar {
                display:none;
            }
            & i {
                display:none;
            }
            & .btn-close {
                right: 5px;
            }
        }
        & section {
            padding: 2px;
        }

        & .details{
            font-size: 0.9em;
    
            & .summary{
                margin-right: 5px;
            }
        }
        .textfield {
            font-size: 12px;
            height: 2rem;
        }
        .row {
            gap: 0rem;
            flex-wrap: wrap;
            width: 98%;
        }
        .checkbox {
            margin-bottom: 15px ;
        }
    }
}

.w-image {
    max-width: 300px; /* Tamaño de la miniatura */
    height: fit-content;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
    display: block;
}
.w-image:hover {
    transform: scale(1.05);
}
.w-image:-webkit-full-screen { /* Safari, Chrome */
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene la relación de aspecto */
    background-color: black; /* Fondo si la imagen no ocupa todo */
}
.w-image:-moz-full-screen { /* Firefox */
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}
.w-image:-ms-fullscreen { /* IE/Edge */
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}
.w-image:fullscreen { /* Estándar */
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}

.image-viewer-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  touch-action: none;
}

.image-viewer-container img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.2s ease;
  touch-action: none;
  cursor: pointer;
}

/* Estilo para el botón de cerrar */
.image-viewer-container > div {
  position: fixed;
  top: 20px; right: 20px;
  color: white; font-size: 30px;
  cursor: pointer; z-index: 10000;
  text-shadow: 0 0 3px black;
}

.updateRow {
    transition: background-color 0.5s ease;
    background-color: #e3f2fd !important;
    animation: highlight 1s;
}

@keyframes highlight {
    0% { background-color: #ffeb3b; }
    100% { background-color: transparent; }
}

.buttons-actions {
    display:flex;
    gap: 2px;
    position: relative;
    justify-content: center;
}