﻿:root {
    --main-radius: 15px;
    --main-padding: 5px;
    --sub-color: #B6CEFC;
    --white-color: #fff;
    /* --white-color: #d6cabe;
    --white-color: #ecf3fb;*/
    /*--white-color: #f2f2f2;*/
    /*--first-color: #4d82cc;*/
    --first-color: #237ca8;
    --bg-colorMain: #f1f1f1;
    /*--bg-colorMain: #fff;*/
    --bg-colorMain-active: #fc6044;
    --body-color: #0078c8;
    --icon-color: #17a2b8;
    --z-fixed: 100;
}

@font-face {
    font-family: 'fa-regular-400';
    src: url('../FontAwesome/webfonts/fa-regular-400.ttf') format('truetype');
}

@font-face {
    font-family: 'gob-cl';
    src: url('../../node_modules/gobdigital-cl/gob.cl/src/fonts/gob-cl.woff') format('woff');
}

/* CSS LAYOUT */
body {
    color: #212529;
}

.text-custom {
    color: var(--body-color);
}

.account-card {
    border-radius: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
    max-width: 420px;
    z-index: 9999;
}

    .account-card::before {
        content: "";
        position: absolute;
        top: -10px;
        right: 20px;
        border-width: 10px;
        border-style: solid;
        border-color: transparent transparent #ffffff transparent;
    }

.dropdown-menu a i {
    color: var(--body-color);
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle {
    text-decoration: none !important;
}

.option-box {
    border-radius: 0.75rem;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
}

    .option-box:hover {
        background-color: #fc6044 !important;
    }

    .option-box i {
        font-size: 1.2rem;
        color: #0d6efd;
    }

    .option-box span {
        font-size: 0.95rem;
        font-weight: 500;
        color: #212529;
    }

    .option-box:hover i,
    .option-box:hover span {
        color: #fff !important;
    }

.nav-custom {
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 250px;
}

    .nav-custom i {
        font-size: 1.1rem;
        color: var(--body-color);
        width: 20px; 
        min-width: 20px;
        text-align: center; 
        display: inline-block; 
    }

    .nav-custom span {
        color: #212529;
        flex: 1; 
    }

    .nav-custom:hover {
        background-color: #fc6044 !important;
        color: #fff !important;
        transform: scale(1.02);
    }

        .nav-custom:hover i,
        .nav-custom:hover span {
            color: #fff !important;
        }


.card.shadow-elevated {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35) !important;
}

.card-divider-gradient {
    height: 3px;
    /*background: linear-gradient(to right, #ff4b2b, #fa6e55, #e19785, transparent);*/
    background: linear-gradient(to right, #0d6efd 0%, #66b3ff 60%, rgba(0, 0, 0, 0) 100%);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.quick-access-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ececec;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    color: #0078c8;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

    .quick-access-tile.active i {
        color: #fc6044;
    }

    .quick-access-tile:hover {
        background-color: #fff3f0;
        box-shadow: 0 6px 20px rgba(252, 96, 68, 0.3);
        color: #fc6044;
    }

        .quick-access-tile:hover i {
            color: #fc6044;
            transform: scale(1.1);
        }

    .quick-access-tile span {
        line-height: 1.3;
    }

/* CSS TABLES */
/* === ESTILO DESKTOP (Normal) === */
table.dataTable {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9em;
    color: #333;
}

    table.dataTable thead {
        background-color: var(--body-color);
        color: #fff;
        text-transform: uppercase;
        font-size: 0.85em;
        letter-spacing: 0.05em;
    }

    table.dataTable th,
    table.dataTable td {
        padding: 12px 16px;
        text-align: center;
        vertical-align: middle;
    }

    table.dataTable tbody tr:nth-child(even) {
        background-color: #f8f9fa;
    }
/*
    table.dataTable tbody tr:last-child {
        border-bottom: 2px solid var(--body-color);
    }*/


/* === ESTILO MOBILE (colapsado tipo card) === */
@media screen and (max-width: 768px) {
    table.dataTable thead {
        display: none;
    }

    table.dataTable tbody,
    table.dataTable tr,
    table.dataTable td {
        display: block;
        width: 100%;
    }

    table.dataTable tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 10px;
        padding: 0.5rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
        transition: all 0.2s ease-in-out;
    }

    table.dataTable td {
        text-align: left;
        padding: 10px 16px;
        border-bottom: 1px solid #eee;
        position: relative;
    }

        table.dataTable td::before {
            content: attr(data-label);
            font-weight: bold;
            text-transform: uppercase;
            color: var(--body-color);
            display: block;
            margin-bottom: 5px;
            font-size: 0.8rem;
        }

        table.dataTable td:last-child {
            border-bottom: none;
        }

    /* Colapsado */
    table.dataTable tr:not(.expanded) td:not(:first-child) {
        display: none;
    }

    table.dataTable tr.expanded td {
        display: block;
    }

    /* Toggle visual (ícono expand/collapse) */
    .collapse-toggle {
        cursor: pointer;
        font-weight: bold;
        color: var(--body-color);
        position: relative;
        padding-right: 25px;
    }

        .collapse-toggle::after {
            font-family: "Font Awesome 5 Pro";
            content: "\f0fe";
            font-weight: 900;
            position: absolute;
            right: 0;
            top: 0;
        }

    tr.expanded .collapse-toggle::after {
        font-family: "Font Awesome 5 Pro";
        content: "\f146";
    }
}

@media (max-width: 991.98px) {
    .offcanvas-start {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.drop-area {
    padding: .75rem !important;
    font-size: 0.85rem;
}

/* Boton estilo de base */
.btn-cu {
    display: inline-block;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-radius: 5px;
}
    /*Icono ClaveÚnica*/
    .btn-cu .cl-claveunica {
        display: inline;
        float: left;
        /*text-indent: -9999px;*/
    }

        .btn-cu .cl-claveunica::before {
            font-family: 'gob-cl';
            content: '\EA0E'
        }

    /*Texto ClaveÚnica*/
    .btn-cu .texto {
        padding-left: 3px;
        text-decoration: underline;
    }

    /* Tamaño M */
    .btn-cu.btn-m {
        width: 160px;
        min-width: 160px;
        max-height: 42px;
        padding: 8px 18px 8px 15px !important;
        font-size: 16px;
        line-height: 1.6em;
    }

        .btn-cu.btn-m .cl-claveunica {
            display: inline-block;
            width: 24px;
            height: 24px;
            background-size: 24px 24px;
        }

    .btn-cu.btn-color-estandar {
        background-color: #0F69C4;
        color: #FFF;
    }

        .btn-cu.btn-color-estandar:hover {
            background-color: #0C549C;
            color: #FFF;
        }

        .btn-cu.btn-color-estandar:active {
            background-color: #093F75;
            color: #FFF;
        }

        .btn-cu.btn-color-estandar:focus {
            background-color: #0C549C;
            color: #FFF;
            outline: 1px dashed #000;
        }
