/* ============================================================
   BANCO AUDIOVISUAL - Estilos de Aplicación
   Sistema de Diseño Institucional v2.0
   ============================================================ */

[v-cloak] {
    display: none;
}

.hide-soft {
    overflow: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
}

/* ===========================================
   BOTONES
   =========================================== */
.btn {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #3D464C;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Botón primario */
.btn-custom-color {
    color: #FFFFFF;
    background-color: #1C795E;
    border-color: #1C795E;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(26, 31, 36, 0.08);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

.btn-custom-color .circular-button-text {
    display: none;
}

.btn-custom-color:hover {
    color: #FFFFFF;
    background-color: #1A6B53;
    border-color: #1A6B53;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(26, 31, 36, 0.08);
}

.btn-custom-color:hover .circular-button-text {
    display: inline-block;
}

.btn-custom-color.focus,
.btn-custom-color:focus {
    color: #FFFFFF;
    background-color: #1C795E;
    border-color: #1C795E;
    box-shadow: 0 0 0 3px rgba(28, 121, 94, 0.2);
}

.btn-custom-color.disabled,
.btn-custom-color:disabled {
    color: #FFFFFF;
    background-color: #6DCAA8;
    border-color: #6DCAA8;
    cursor: not-allowed;
}

.btn-custom-color:not(:disabled):not(.disabled).active,
.btn-custom-color:not(:disabled):not(.disabled):active,
.show > .btn-custom-color.dropdown-toggle {
    color: #FFFFFF;
    background-color: #145C47;
    border-color: #145C47;
}

.btn-custom-color:not(:disabled):not(.disabled).active:focus,
.btn-custom-color:not(:disabled):not(.disabled):active:focus,
.show > .btn-custom-color.dropdown-toggle:focus {
    box-shadow: 0 0 0 3px rgba(28, 121, 94, 0.25);
}

/* Botón secundario/outline */
.btn-custom-color-out {
    min-width: 36px;
    height: auto;
    padding: 0.5rem 1rem;
    line-height: 1.4;
    vertical-align: middle;
    color: #3D464C;
    background-color: #FFFFFF;
    border: 1px solid #D4DAE0;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(26, 31, 36, 0.04);
    overflow: hidden;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-custom-color-out:hover {
    color: #2D3439 !important;
    background-color: #F4F6F8 !important;
    border-color: #B0B8C1;
}

.btn-custom-color-out i,
.btn-custom-color-out .fa {
    color: #26A27D;
}

.btn-custom-color-out .circular-button-text {
    display: block;
    opacity: 1;
    max-width: none;
    padding-left: 0;
    overflow: visible;
    white-space: nowrap;
}

/* Botón de búsqueda */
.btn-custom-search {
    color: #FFFFFF;
    background-color: #1C795E;
    border-color: #1C795E;
    border-radius: 0 6px 6px 0;
    padding: 0.5rem 0.875rem;
}

.btn-custom-search:hover {
    background-color: #1A6B53;
    border-color: #1A6B53;
}

.btn-custom-search:focus {
    box-shadow: 0 0 0 3px rgba(28, 121, 94, 0.2);
}

/* Botón blanco */
.btn-custom-white {
    color: #1C795E;
    background-color: #EEFAF5;
    border: 1px solid #A3DECA;
}

.btn-custom-white:hover {
    background-color: #D4F1E6;
    border-color: #6DCAA8;
}

/* ===========================================
   CONTENEDOR DE PÁGINA
   =========================================== */
.page-container {
    padding: 1.25rem 1.5rem 1rem;
    background-color: #F4F6F8;
}

/* ===========================================
   TEXTOS Y COLORES
   =========================================== */
.text-custom {
    color: #1C795E;
}

.text-custom-coderhub {
    color: #1A6B53;
}

.text-custom-light {
    color: #8A939D !important;
}

.text-white {
    color: #FFFFFF;
}

.bg-custom {
    background: linear-gradient(135deg, #1C795E 0%, #145C47 100%) !important;
}

/* ===========================================
   DROPDOWN
   =========================================== */
.dropdown-toggle::after {
    color: inherit;
}

.dropdown-toggle.no-carret::after {
    content: unset;
}

.dropdown-menu {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    border: 1px solid #E8ECF0;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(26, 31, 36, 0.08), 0 4px 6px -2px rgba(26, 31, 36, 0.04);
    padding: 0.5rem;
}

/* Dropdown personalizado */
.dropdown-custom .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F4F6F8;
    border-radius: 6px;
    color: #2D3439;
    border: 1px solid #D4DAE0;
}

.dropdown-custom .dropdown-toggle::after {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900;
    color: #6B7580;
    content: "\f078" !important;
    border: none;
    position: absolute;
    right: 10px;
}

.dropdown-custom .dropdown-menu {
    background: #FFFFFF;
    box-shadow: 0 10px 15px rgba(26, 31, 36, 0.1);
    border-radius: 0 0 6px 6px;
}

.dropdown-custom .dropdown-item {
    background-color: transparent;
}

.dropdown-custom .dropdown-item:hover {
    background-color: #EEFAF5;
}

/* ===========================================
   SELECT2 PERSONALIZADO
   =========================================== */
.select2-custom .select2-selection {
    background-color: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #D4DAE0;
    color: #2D3439;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select2-custom .select2-selection:hover {
    border-color: #B0B8C1;
}

.select2-custom .select2-selection__arrow {
    top: auto !important;
}

.select2-custom .select2-selection__arrow::after {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900;
    color: #6B7580;
    content: "\f078" !important;
    border: none;
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
}

.select2-custom .select2-selection__arrow > b {
    display: none;
}

.select2-custom .select2-selection__rendered {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* ===========================================
   ENCABEZADO DE PÁGINA
   =========================================== */
.page-header {
    height: auto;
    min-width: auto;
    margin: 0;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(26, 31, 36, 0.08);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.page-header-btns {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
}

.gradient-bg {
    background: linear-gradient(135deg, #1C795E 0%, #145C47 100%);
    display: flex;
    justify-content: left;
    align-items: center;
    color: #FFFFFF;
    padding: 0.875rem 1.25rem;
}

.gradient-bg img,
.page-title-bg img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.page-title-bg {
    display: flex;
    justify-content: left;
    align-items: center;
    background: linear-gradient(135deg, #1C795E 0%, #145C47 100%);
    padding: 0.875rem 1.25rem;
    color: #FFFFFF;
}

.page-title {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    text-transform: none;
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: 600;
    margin-left: 0.75rem;
    letter-spacing: -0.01em;
}

.fa-s-letter::before {
    content: 'S';
    font-family: 'Source Sans 3', sans-serif;
}

/* ===========================================
   LOADING Y SPINNERS
   =========================================== */
.loader-container {
    background: rgba(255, 255, 255, 0.95);
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loader-container-transparent {
    background: rgba(255, 255, 255, 0.92);
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(2px);
}

.lds-dual-ring {
    display: inline-block;
    width: 120px;
    height: 120px;
}

.lds-dual-ring:before {
    content: " ";
    display: block;
    width: 96px;
    height: 96px;
    margin: 12px;
    border-radius: 50%;
    border: 4px solid #1C795E;
    border-color: #1C795E transparent #1C795E transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lds-dual-ring-sm {
    display: inline-block;
    width: 60px;
    height: 60px;
}

.lds-dual-ring-sm:after {
    content: " ";
    display: block;
    width: 48px;
    height: 48px;
    margin: 6px;
    border-radius: 50%;
    border: 3px solid #1C795E;
    border-color: #1C795E transparent #1C795E transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

/* ===========================================
   MODALES
   =========================================== */
.modal-dialog {
    max-width: 800px !important;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(26, 31, 36, 0.1), 0 10px 10px -5px rgba(26, 31, 36, 0.04);
}

.modal-header {
    background: linear-gradient(135deg, #1C795E 0%, #145C47 100%);
    color: #FFFFFF;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    background-color: #F4F6F8;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background-color: #FFFFFF;
    border-top: 1px solid #E8ECF0;
}

/* ===========================================
   TREEVIEW
   =========================================== */
[data-ui-css-component="treeview"] {
    margin: 0;
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 0.875rem;
    color: #2D3439;
}

[data-ui-css-component="treeview"] [type=checkbox] {
    display: none;
}

[data-ui-css-component="treeview"] [type=checkbox].no-iteraction {
    display: block;
}

[data-ui-css-component="treeview"] ul {
    padding: 0 0 0 2.5rem;
    display: none;
    list-style: none;
}

[data-ui-css-component="treeview"] ul:first-child {
    padding-left: 0;
}

[data-ui-css-component="treeview"] li {
    padding: 0;
}

[data-ui-css-component="treeview"] li span {
    margin: 2px 0;
    display: list-item;
    list-style: square;
}

[data-ui-css-component="treeview"] label {
    display: inline-block;
    transition: 0.2s ease;
    padding-right: 10px;
    margin: 5px 0;
    height: 20px;
    line-height: 20px;
    cursor: pointer;
}

[data-ui-css-component="treeview"] label::before {
    display: inline-block;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    text-align: center;
    color: #1C795E;
    font-weight: 600;
}

[data-ui-css-component="treeview"] ul:first-child,
[data-ui-css-component="treeview"] [type=checkbox]:checked ~ ul {
    display: block;
}

[data-ui-css-component="treeview"] [type=checkbox]:checked ~ label::before {
    content: "−";
}

[data-ui-css-component="treeview"] [type=checkbox]:not(:checked) ~ label::before {
    content: "+";
}

[data-ui-css-component="treeview"] [type=checkbox]:checked ~ label.no-iteraction::before,
[data-ui-css-component="treeview"] [type=checkbox]:not(:checked) ~ label.no-iteraction::before {
    content: none;
}

div.inner.show {
    max-height: 200px !important;
}

/* ===========================================
   FILTROS
   =========================================== */
.order-btn-div {
    background-color: #D4DAE0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.order-btn {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.order-btn-div:hover {
    background-color: #26A27D;
}

.filter-options {
    padding: 0.75rem;
    background-color: #FFFFFF;
    width: 260px;
    height: 350px;
    position: relative;
    left: -240px;
    display: none;
    border: 1px solid #E8ECF0;
    overflow: auto;
    box-shadow: 0 10px 15px rgba(26, 31, 36, 0.1);
    border-radius: 8px;
}

.text-filter,
.text-filter-no-interaction {
    font-size: 0.75rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 0.375rem;
}

.text-filter:hover {
    background-color: #1C795E;
    color: #FFFFFF;
    cursor: pointer;
    border-radius: 4px;
}

.filter-list-container {
    font-size: 0.875rem;
    line-height: 1.5rem;
    margin-top: 0.75rem;
    display: grid;
    text-align: left;
    margin-left: 1rem;
}

.filter-list-item {
    margin-bottom: 0.375rem;
}

/* ===========================================
   TOASTR
   =========================================== */
#toast-container > div {
    opacity: 1;
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(26, 31, 36, 0.1);
    font-family: 'Source Sans 3', -apple-system, sans-serif;
}

#toast-container > .toast-success {
    background-color: #1C795E;
}

#toast-container > .toast-error {
    background-color: #D93D3A;
}

#toast-container > .toast-warning {
    background-color: #E8A317;
}

#toast-container > .toast-info {
    background-color: #2563EB;
}

/* ===========================================
   SOMBRAS Y CARDS
   =========================================== */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(26, 31, 36, 0.08), 0 2px 4px -1px rgba(26, 31, 36, 0.04);
}

.btn-shadow {
    box-shadow: 0 1px 3px rgba(26, 31, 36, 0.08);
}

.container-shadow {
    box-shadow: 0 4px 6px -1px rgba(26, 31, 36, 0.08);
}

.material-shadow {
    box-shadow: 0 20px 25px -5px rgba(26, 31, 36, 0.1), 0 10px 10px -5px rgba(26, 31, 36, 0.04);
}

button:focus {
    outline: none;
}

/* ===========================================
   PAGINACIÓN
   =========================================== */
.page-item:first-child .page-link {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.page-item:last-child .page-link {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.page-link {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.2;
    padding: 0.5rem 0.75rem;
    color: #3D464C;
    border: 1px solid #D4DAE0;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #EEFAF5;
    border-color: #A3DECA;
    color: #1A6B53;
}

.page-item.active .page-link {
    background-color: #1C795E !important;
    border-color: #1C795E !important;
    color: #FFFFFF !important;
}

.page-item.disabled .page-link {
    color: #8A939D;
    background-color: #F4F6F8;
}

.text-black-25 {
    color: rgba(0, 0, 0, 0.25) !important;
}

/* ===========================================
   FORM BUILDER
   =========================================== */
#sheets_form_builder .htErrorWaiting {
    background-color: rgba(217, 61, 58, 0.04);
    border-color: rgba(217, 61, 58, 0.35);
}

#sheets_form_builder .sheets-action-btn:not(.sheets-nested-form):not(.btn-sm) {
    padding: 0.5rem 2rem 0.5rem 0.75rem !important;
}

#sheets_form_builder .spinner-border {
    vertical-align: middle !important;
    border-width: 0.15em;
    color: #1C795E;
}

.transparentcolor {
    color: #D93D3A;
}

#sheets_form_builder .sidebar-header {
    display: flex;
    justify-content: space-between;
}

/* ===========================================
   PANEL LATERAL
   =========================================== */
.left-panel-section {
    color: #FFFFFF;
    background: linear-gradient(160deg, #3D464C 0%, #1A1F24 100%) !important;
    border-radius: 8px 0 0 8px;
}

.left-panel-section i {
    color: #FFFFFF;
}

.left-panel-section i,
.table-wrapper .left-panel-section.open .left-panel-header .title {
    color: #FFFFFF;
}

/* ===========================================
   VER COMO INVITADO
   =========================================== */
.see_as_guest {
    position: fixed;
    bottom: 20px;
    right: 95px;
    z-index: 99;
    font-size: 0.875rem;
    border: none;
    outline: none;
    background-color: rgba(233, 236, 239, 0.6);
    color: #2D3439;
    cursor: pointer;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Source Sans 3', -apple-system, sans-serif;
}

.see_as_guest:hover {
    background-color: #E8ECF0;
}

.see_as_guest.active {
    background: linear-gradient(135deg, #1C795E 0%, #145C47 100%);
    color: #FFFFFF;
}

.sag {
    opacity: 0.5;
}

.text-shadow {
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.4);
}

/* ===========================================
   OCULTAR ELEMENTOS
   =========================================== */
#see_as_guest {
    display: none;
}
