﻿:root {
    --tc-font-size: 14px;
    --tc-fs: 14px;
    --tc-control-padding-y: 7px;
    --tc-control-min-height: 38px;
}

body, td, th, p, span, a, label, input, button, select,
small, li, .form-control, .btn {
    font-size: var(--tc-font-size) !important;
}


.form-control,
.btn,
.select2-container,
.select2-selection,
.select2-results,
.select2-selection__choice {
    font-size: inherit;
}


.choices__inner {
    font-size: var(--tc-font-size);
    min-height: var(--tc-control-min-height);
    padding-top: var(--tc-control-padding-y);
    padding-bottom: var(--tc-control-padding-y);
}


/* ── Escala de fuente global ── */
body,
.nav-header .welcome-message,
.sidebar-collapse .nav > li > a,
.nav > li > a,
.metismenu > li > a,
.metismenu li > a,
#side-menu > li > a,
#side-menu li a,
.sidebar-collapse #side-menu li a,
td, th,
p, span, a, label,
input, button, select, textarea,
small, li,
.form-control,
.btn,
.control-label,
.text-muted,
.dataTables_info,
.dropdown-menu > li > a,
.breadcrumb > li,
.alert,
.modal-body p,
.modal-title,
.ibox-title h5,
.help-block,
.choices__item,
.choices__input,
.choices__list--dropdown .choices__item,
.tc-accion-nombre,
.tc-modulo-nombre,
.nav-second-level li a,
.nav-third-level li a {
    font-size: var(--tc-fs) !important;
}

    small,
    .small,
    .text-muted.small,
    .dataTables_info,
    #tableData_info_custom {
        font-size: var(--tc-fs-sm) !important;
    }

.ibox-title h5 {
    font-size: var(--tc-fs-lg) !important;
}



.form-control::placeholder {
    font-size: var(--tc-fs) !important;
    color: #adb5bd !important;
}

input::placeholder,
textarea::placeholder {
    font-size: var(--tc-fs) !important;
    color: #adb5bd !important;
}


.choices[data-type*=select-one] .choices__inner {
    padding-bottom: 7.5px;
}

.choices {
    margin-bottom: 24px;
}

.choices__list--single {
    display: inline-block;
    padding: 4px 16px 4px 4px;
}












#contenedorToolbar svg.svg-inline--fa {
    width: 1.7rem;
    height: 1.7rem;
}


/* Fix Choices.js dropdown dentro de ibox */
.ibox,
.ibox-content {
    overflow: visible !important;
}

.choices__list--dropdown {
    z-index: 9999 !important;
    position: absolute !important;
}



body, h1, h2, h3, h4, h5, h6,
.nav, .navbar, table, input, button, select, textarea {
    font-family: 'Inter', sans-serif !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.ibox-content .table > tbody > tr > td {
    padding: 5px 16px !important;
}


.table-responsive table {
    table-layout: fixed;
}

    .table-responsive table th {
        resize: horizontal;
        overflow: hidden;
        min-width: 60px;
    }


.navbar-page-title {
    display: inline-block;
    margin-left: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    vertical-align: middle;
    line-height: 60px;
}

.navbar-page-info {
    display: inline-block;
    vertical-align: middle;
    margin-left: 12px;
    line-height: 1.2;
    padding-top: 0;
}

.navbar-page-title {
    display: inline;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}


.navbar-page-breadcrumb {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    /* color: #999; */
    vertical-align: middle;
    display: inline;
    font-size: 12px;
    /* color: #999; */
}

    .navbar-page-breadcrumb a {
        color: #999;
        text-decoration: none;
    }

        .navbar-page-breadcrumb a:hover {
            color: #2C3E50;
        }

    .navbar-page-breadcrumb .sep {
        margin: 0 4px;
    }

    .navbar-page-breadcrumb span {
        margin: 0 4px;
    }



/* Un solo color en todo el sidebar */
.navbar-default,
.navbar-default .sidebar-collapse,
.sidebar-collapse,
.navbar-static-side,
.nav-header,
.nav-second-level {
    background-color: #23303c !important;
}

/* Forzar alto completo */
.navbar-static-side {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    min-height: 100vh !important;
    background-color: #23303c !important;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
}

    .navbar-static-side::-webkit-scrollbar {
        width: 6px;
    }

    .navbar-static-side::-webkit-scrollbar-thumb {
        background-color: rgba(255,255,255,.35);
        border-radius: 3px;
    }

/* En modo colapsado los submenús se abren flotando a la derecha: no recortarlos */
body.mini-navbar .navbar-static-side {
    overflow: visible;
}

.sidebar-collapse {
    min-height: 100vh !important;
}

/* Texto ítems */
.nav > li > a {
    color: #a7b1c2 !important;
}

    .nav > li > a:hover,
    .nav > li > a:focus {
        color: #ffffff !important;
        background-color: rgba(255,255,255,.08) !important;
    }

/* Activo */
.nav > li.active > a,
.nav > li.active > a:hover,
.nav > li.active > a:focus {
    color: #ffffff !important;
    background-color: rgba(255,255,255,.1) !important;
    border-left: 3px solid #ffffff !important;
}

/* Submenú texto */
.nav-second-level > li > a {
    color: #8898aa !important;
}

    .nav-second-level > li > a:hover {
        color: #ffffff !important;
        background-color: rgba(255,255,255,.06) !important;
    }

.nav-second-level > li.active > a {
    color: #ffffff !important;
    border-left: 3px solid rgba(255,255,255,.4) !important;
}

/* Flecha */
.nav > li > a .fa.arrow {
    color: #546e7a !important;
}

/* Nav header texto */
.nav-header .font-bold {
    color: #ffffff !important;
}

.nav-header .text-muted {
    color: #8892b0 !important;
}


#page-wrapper {
    background-color: #F1F2F7 !important;
}


.tc-select-con-boton {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.tc-select-flex {
    flex: 1 1 auto;
    min-width: 0;
}

.tc-select-con-boton .choices {
    margin-bottom: 0 !important;
    width: 100%;
}

.tc-select-con-boton > button.btn {
    height: calc(var(--tc-fs) * 2.6) !important;
    width: calc(var(--tc-fs) * 2.85);
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.choices__inner {
    box-sizing: border-box;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    background: #fff !important;
    padding: 4px 8px !important;
    line-height: 1.2 !important;
    font-size: var(--tc-fs) !important;
    box-shadow: none !important;
}





#txtBusqueda {
    height: 40px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    /*             font-size: 13px !important; */
    box-shadow: none !important;
    padding: 8px 12px !important;
}

#txtBusqueda:focus {
    border-color: #2C3E50 !important;
    box-shadow: 0 0 0 3px rgba(44,62,80,.1) !important;
}

.dataTables_wrapper {
    padding-top: 0 !important
}

#contenedorBuscador {
    padding-left: 0 !important;
}

#contenedorToolbar {
    border: none !important
}

#ibox-content {
    padding: 0 !important
}

.skeleton-cell {
    height: 13px;
    border-radius: 3px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    display: inline-block;
}

    .skeleton-cell.w-30 {
        width: 30%;
    }

    .skeleton-cell.w-50 {
        width: 50%;
    }

    .skeleton-cell.w-70 {
        width: 70%;
    }

    .skeleton-cell.w-100 {
        width: 80%;
    }

@@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

#tableData_processing {
    display: none !important;
}






/* ── SweetAlert2 — tema Tecnocuisine ── */
.swal2-popup.tc-swal {
    border-radius: 8px !important;
    padding: 24px !important;
    font-size: var(--tc-fs) !important;
}

    .swal2-popup.tc-swal .swal2-title {
        font-size: calc(var(--tc-fs) * 1.3) !important;
        font-weight: 600 !important;
        color: #333 !important;
        padding-top: 8px !important;
    }

    .swal2-popup.tc-swal .swal2-html-container {
        font-size: var(--tc-fs) !important;
        color: #777 !important;
    }

    .swal2-popup.tc-swal .swal2-icon {
        border-width: 2px !important;
    }

        .swal2-popup.tc-swal .swal2-icon.swal2-question {
            border-color: #2C3E50 !important;
            color: #2C3E50 !important;
        }

        .swal2-popup.tc-swal .swal2-icon.swal2-warning {
            border-color: #e74c3c !important;
            color: #e74c3c !important;
        }

        .swal2-popup.tc-swal .swal2-icon.swal2-success {
            border-color: #27ae60 !important;
            color: #27ae60 !important;
        }

    .swal2-popup.tc-swal .swal2-actions {
        gap: 8px !important;
    }

    .swal2-popup.tc-swal .swal2-confirm {
        background: #2C3E50 !important;
        border: none !important;
        border-radius: 6px !important;
        padding: 8px 20px !important;
        font-size: var(--tc-fs) !important;
        font-weight: 500 !important;
        color: #fff !important;
        box-shadow: none !important;
    }

        .swal2-popup.tc-swal .swal2-confirm:hover {
            background: #1f2c38 !important;
            color: #fff !important;
        }

        .swal2-popup.tc-swal .swal2-confirm:focus {
            box-shadow: 0 0 0 3px rgba(44,62,80,.2) !important;
        }

    .swal2-popup.tc-swal .swal2-cancel {
        background: #fff !important;
        border: 1px solid #dee2e6 !important;
        color: #555 !important;
        border-radius: 6px !important;
        padding: 8px 20px !important;
        font-size: var(--tc-fs) !important;
        font-weight: 500 !important;
        box-shadow: none !important;
    }

        .swal2-popup.tc-swal .swal2-cancel:hover {
            border-color: #2C3E50 !important;
            color: #2C3E50 !important;
            background: #f0f4f8 !important;
        }

        .swal2-popup.tc-swal .swal2-cancel:focus {
            box-shadow: 0 0 0 3px rgba(44,62,80,.1) !important;
        }

    /* Tercer botón (showDenyButton): acción secundaria, contorno azul */
    .swal2-popup.tc-swal .swal2-deny {
        background: #fff !important;
        border: 1px solid #2C3E50 !important;
        color: #2C3E50 !important;
        border-radius: 6px !important;
        padding: 8px 20px !important;
        font-size: var(--tc-fs) !important;
        font-weight: 500 !important;
        box-shadow: none !important;
    }

        .swal2-popup.tc-swal .swal2-deny:hover {
            background: #f0f4f8 !important;
            color: #1f2c38 !important;
        }

        .swal2-popup.tc-swal .swal2-deny:focus {
            box-shadow: 0 0 0 3px rgba(44,62,80,.15) !important;
        }

    .swal2-popup.tc-swal .swal2-actions .fa {
        margin-right: 4px;
    }




