/* =========================================================
   14. PRELOADER
   ========================================================= */
.preloader-spinner {
    border: 3px solid rgba(237, 28, 36, 0.18);
    border-top-color: var(--srx-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: transparent !important;
    box-shadow: none !important;
}

/* =========================================================
   15. UTILIDADES Y LEGACY (mantener compat con BS3)
   ========================================================= */
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.clearfix::after { content: ""; display: table; clear: both; }

/* Charts wrapper */
canvas[id^="chart-"] {
    max-width: 100%;
    height: auto !important;
}

.widget-content[style*="themed-background-muted"],
.widget-content.themed-background-muted {
    background: var(--srx-bg) !important;
    border-radius: 0;
}

/* =========================================================
   16. PAGE-CONTENT-SIDEBAR (mensajes.php) - estilo legacy preservado
   ========================================================= */
#page-content-sidebar {
    background: #fff !important;
    border: 1px solid var(--srx-border) !important;
    border-bottom: 1px solid var(--srx-border) !important;
    border-radius: var(--srx-radius) !important;
    box-shadow: var(--srx-shadow-xs);
    padding: 14px !important;
}

#page-content-sidebar .btn-block {
    margin-bottom: 10px;
    width: 100%;
}

#page-content-sidebar .nav > li > a {
    border-radius: var(--srx-radius-sm);
    color: var(--srx-text) !important;
    padding: 8px 12px !important;
    font-size: 13.5px;
    transition: background 150ms ease, color 150ms ease;
}

#page-content-sidebar .nav > li > a:hover {
    background: var(--srx-bg) !important;
}

#page-content-sidebar .nav > li.active > a,
#page-content-sidebar .nav > li > a.active {
    background: var(--ds-ink-100) !important;
    color: var(--ds-ink-900) !important;
    font-weight: 600;
}

/* =========================================================
   17. FONT AWESOME 4/5 -> 6 COMPAT
   ========================================================= */
i.fa,
.fa,
.fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-style: normal;
}

i.far { font-family: 'Font Awesome 6 Free' !important; font-weight: 400 !important; }
i.fab { font-family: 'Font Awesome 6 Brands' !important; font-weight: 400 !important; }

i.gi, .gi, i.hi, .hi, i.si, .si {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-style: normal;
    display: inline-block;
}

.fa-warning::before, .fa-exclamation-triangle::before { content: "\f071"; }
.fa-envelope-o::before, .fa-envelope::before { content: "\f0e0"; }
.fa-bar-chart-o::before, .fa-bar-chart::before { content: "\e473"; }
.fa-line-chart::before { content: "\f201"; }
.fa-pie-chart::before { content: "\f200"; }
.fa-pencil-square::before, .fa-pencil::before { content: "\f303"; }
.fa-power-off::before { content: "\f011"; }
.fa-circle-o::before { content: "\f111"; }
.fa-check-circle::before { content: "\f058"; }
.fa-info-sign::before { content: "\f129"; }
.fa-cog::before { content: "\f013"; }
.fa-user::before { content: "\f007"; }
.fa-users::before { content: "\f0c0"; }
.fa-vcard::before, .fa-id-card::before { content: "\f2bb"; }
.fa-compass::before { content: "\f14e"; }
.fa-inbox::before { content: "\f01c"; }
.fa-bars::before { content: "\f0c9"; }
.fa-ellipsis-v::before { content: "\f142"; }
.fa-ellipsis-h::before { content: "\f141"; }
.fa-chevron-left::before { content: "\f053"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-chevron-down::before { content: "\f078"; }
.fa-chevron-up::before { content: "\f077"; }
.fa-plus::before { content: "\f067"; }
.fa-minus::before { content: "\f068"; }
.fa-search::before { content: "\f002"; }
.fa-edit::before { content: "\f044"; }
.fa-trash::before { content: "\f1f8"; }
.fa-eye::before { content: "\f06e"; }
.fa-eye-slash::before { content: "\f070"; }
.fa-download::before { content: "\f019"; }
.fa-upload::before { content: "\f093"; }
.fa-print::before { content: "\f02f"; }
.fa-times::before, .fa-close::before { content: "\f00d"; }
.fa-check::before { content: "\f00c"; }
.fa-home::before { content: "\f015"; }
.fa-calendar::before { content: "\f133"; }
.fa-clock-o::before, .fa-clock::before { content: "\f017"; }
.fa-bell::before { content: "\f0f3"; }
.fa-circle-user::before { content: "\f2bd"; }

.gi-cardio::before { content: '\f06d'; }
.gi-user::before { content: '\f007'; }
.gi-briefcase::before { content: '\f0b1'; }
.gi-wallet::before { content: '\f53d'; }
.gi-vcard::before { content: '\f2bb'; }
.gi-settings::before, .gi-cog::before { content: '\f013'; }
.gi-compass::before { content: '\f14e'; }
.gi-envelope::before { content: '\f0e0'; }
.gi-stats-up::before { content: '\f201'; }

.hi-info-sign::before { content: '\f129'; }
.hi-warning-sign::before { content: '\f071'; }

.fa-facebook::before, .fa-facebook-f::before { content: "\f39e"; font-family: 'Font Awesome 6 Brands' !important; }
.fa-google::before { content: "\f1a0"; font-family: 'Font Awesome 6 Brands' !important; }
