:root {
    --tf-sidebar-width: 260px;
    --tf-sidebar-collapsed: 72px;
    --tf-sidebar-bg: #314d62;
    --tf-sidebar-bg-2: #3a5a70;
    --tf-sidebar-text: rgba(246, 250, 252, .76);
    --tf-sidebar-muted: rgba(246, 250, 252, .48);
    --tf-sidebar-hover: rgba(255, 255, 255, .075);
    --tf-sidebar-active: rgba(255, 255, 255, .11);
    --tf-sidebar-line: rgba(255, 255, 255, .10);
    --tf-sidebar-accent: #e55368;
}

body.tf-sidebar-enabled>div[ng-view] {
    min-height: 100vh;
    transition: padding-left .22s ease;
}

body.tf-sidebar-enabled.tf-sidebar-collapsed>div[ng-view] {
    padding-left: var(--tf-sidebar-collapsed);
}

body.tf-sidebar-hidden>div[ng-view],
body.tf-sidebar-login>div[ng-view] {
    padding-left: 0 !important;
}

.tf-sidebar {
    position: fixed;
    z-index: 1030;
    inset: 0 auto 0 0;
    width: var(--tf-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--tf-sidebar-text);
    background: radial-gradient(circle at 15% 0%, rgba(112, 165, 188, .14), transparent 27%), linear-gradient(180deg, var(--tf-sidebar-bg-2), var(--tf-sidebar-bg));
    border-right: 1px solid rgba(26, 47, 62, .16);
    box-shadow: 8px 0 28px rgba(38, 58, 73, .09);
    overflow: hidden;
    transition: width .22s ease, transform .22s ease;
}

.tf-sidebar__header {
    min-height: 84px;
    display: flex;
    align-items: center;
    padding: 14px 12px 13px 17px;
    border-bottom: 1px solid var(--tf-sidebar-line);
}

.tf-sidebar__brand {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    outline: 0;
}

.tf-sidebar__brand-text {
    display: flex;
    align-items: baseline;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1.5px;
    line-height: 1;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.tf-sidebar__brand-truck {
    color: #f6fafc;
}

.tf-sidebar__brand-flow {
    margin-left: 1px;
    color: var(--tf-sidebar-accent);
}

.tf-sidebar__brand-subtitle {
    margin-top: 5px;
    color: var(--tf-sidebar-muted);
    font-size: 11px;
    font-weight: 500;
}

.tf-sidebar__toggle {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    outline: 0;
}

.tf-sidebar__toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.tf-sidebar__scroll {
    min-height: 0;
    flex: 1 1 auto;
    padding: 14px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .16) transparent;
}

.tf-sidebar__section-label {
    margin: 2px 10px 8px;
    color: rgba(255, 255, 255, .38);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tf-sidebar__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tf-sidebar__menu>li {
    margin: 2px 0;
}

.tf-sidebar__menu>li>a {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    color: var(--tf-sidebar-text) !important;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

.tf-sidebar__menu>li>a:hover,
.tf-sidebar__menu>li>a:focus {
    color: #fff !important;
    background: var(--tf-sidebar-hover) !important;
}

.tf-sidebar__menu>li.active>a {
    color: #fff !important;
    font-weight: 600;
    background: var(--tf-sidebar-active) !important;
}

.tf-sidebar__menu>li.active>a::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    background: var(--tf-sidebar-accent);
    border-radius: 0 3px 3px 0;
}

.tf-sidebar__icon {
    width: 20px;
    min-width: 20px;
    margin-right: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    text-align: center;
}

.tf-sidebar__footer {
    padding: 11px 10px 13px;
    border-top: 1px solid var(--tf-sidebar-line);
}

.tf-sidebar__user {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 5px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px;
}

.tf-sidebar__user:hover {
    background: var(--tf-sidebar-hover);
}

.tf-sidebar__avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #6793a9, #497088);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
}

.tf-sidebar__user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.tf-sidebar__user-copy strong,
.tf-sidebar__user-copy small {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tf-sidebar__user-copy strong {
    color: rgba(255, 255, 255, .91);
    font-size: 10px;
    font-weight: 650;
}

.tf-sidebar__user-copy small {
    margin-top: 2px;
    color: var(--tf-sidebar-muted);
    font-size: 8.5px;
}

.tf-sidebar__footer-action {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    color: var(--tf-sidebar-text);
    font-size: 10.5px;
    font-weight: 500;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    outline: 0;
}

.tf-sidebar__footer-action i {
    width: 20px;
    min-width: 20px;
    margin-right: 10px;
    color: rgba(255, 255, 255, .60);
    text-align: center;
}

.tf-sidebar__footer-action:hover {
    color: #fff;
    background: var(--tf-sidebar-hover);
}

.tf-sidebar__logout:hover,
.tf-sidebar__logout:hover i {
    color: #ff9aa8;
}

body.tf-sidebar-collapsed .tf-sidebar {
    width: var(--tf-sidebar-collapsed);
}

body.tf-sidebar-collapsed .tf-sidebar__header {
    justify-content: center;
    padding: 13px 8px;
}

body.tf-sidebar-collapsed .tf-sidebar__brand {
    display: none;
}

body.tf-sidebar-collapsed .tf-sidebar__toggle {
    margin: 0;
    transform: rotate(180deg);
}

body.tf-sidebar-collapsed .tf-sidebar__section-label,
body.tf-sidebar-collapsed .tf-sidebar__label,
body.tf-sidebar-collapsed .tf-sidebar__user-copy {
    display: none !important;
}

body.tf-sidebar-collapsed .tf-sidebar__scroll {
    padding-left: 8px;
    padding-right: 8px;
}

body.tf-sidebar-collapsed .tf-sidebar__menu>li>a,
body.tf-sidebar-collapsed .tf-sidebar__footer-action {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

body.tf-sidebar-collapsed .tf-sidebar__icon,
body.tf-sidebar-collapsed .tf-sidebar__footer-action i {
    margin-right: 0;
}

body.tf-sidebar-collapsed .tf-sidebar__user {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.tf-sidebar__reopen {
    position: fixed;
    z-index: 1031;
    top: 16px;
    left: 14px;
    width: 38px;
    height: 38px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #36566c;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(35, 55, 70, .16);
    outline: 0;
}

body.tf-sidebar-hidden .tf-sidebar {
    transform: translateX(-100%);
}

body.tf-sidebar-hidden .tf-sidebar__reopen {
    display: inline-flex;
}

@media (max-width:900px) {

    body.tf-sidebar-enabled>div[ng-view],
    body.tf-sidebar-enabled.tf-sidebar-collapsed>div[ng-view] {
        padding-left: 0;
    }

    .tf-sidebar {
        width: min(280px, 86vw);
        transform: translateX(-100%);
    }

    body.tf-sidebar-mobile-open .tf-sidebar {
        transform: translateX(0);
    }

    .tf-sidebar__reopen {
        display: inline-flex;
    }
}

/* =========================================================
   LEGACY NAVBAR SOURCE
   ========================================================= */

.tf-legacy-context-source {
    display: none !important;
}


/* =========================================================
   CONTEXT AREA
   ========================================================= */

.tf-sidebar__context {
    display: none;

    margin-top: 12px;
    padding-top: 12px;

    border-top:
        1px solid rgba(255, 255, 255, .09);
}

.tf-sidebar__context--visible {
    display: block;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.tf-sidebar-context-menu__header {
    padding: 3px 10px 10px;
}

.tf-sidebar-context-menu__eyebrow {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, .35);

    font-size: 7.5px;
    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.tf-sidebar-context-menu__header strong {
    display: block;

    color: rgba(255, 255, 255, .86);

    font-size: 10px;
    font-weight: 650;

    line-height: 1.35;
}


/* =========================================================
   LIST
   ========================================================= */

.tf-sidebar-context-menu__list,
.tf-sidebar-context-menu__nested {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* =========================================================
   SIMPLE ITEM
   ========================================================= */

.tf-sidebar-context-menu__item {
    margin: 1px 0;
}


.tf-sidebar-context-menu__link {
    min-height: 34px;

    display: flex;
    align-items: center;

    padding: 7px 10px;

    color:
        rgba(255, 255, 255, .62) !important;

    font-size: 9.5px;
    font-weight: 500;

    text-decoration: none !important;

    background:
        transparent !important;

    border-radius: 7px;

    transition:
        color .15s ease,
        background-color .15s ease;
}


.tf-sidebar-context-menu__link:hover {
    color: #ffffff !important;

    background:
        rgba(255, 255, 255, .065) !important;
}


/* =========================================================
   GROUP
   ========================================================= */

.tf-sidebar-context-menu__group {
    margin: 2px 0;
}


.tf-sidebar-context-menu__group-toggle {
    width: 100%;
    min-height: 36px;

    display: flex;
    align-items: center;

    padding: 7px 10px;

    color:
        rgba(255, 255, 255, .68);

    font-size: 9.5px;
    font-weight: 600;

    text-align: left;

    background: transparent;

    border: 0;
    border-radius: 7px;

    outline: 0;
}


.tf-sidebar-context-menu__group-toggle:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, .06);
}


.tf-sidebar-context-menu__group-toggle i {
    margin-left: auto;

    color:
        rgba(255, 255, 255, .32);

    font-size: 7px;

    transition:
        transform .18s ease;
}


.tf-sidebar-context-menu__group--open>.tf-sidebar-context-menu__group-toggle i {
    transform:
        rotate(180deg);
}


/* =========================================================
   NESTED
   ========================================================= */

.tf-sidebar-context-menu__nested {
    display: none;

    margin: 2px 0 6px 8px;

    padding-left: 7px;

    border-left:
        1px solid rgba(255, 255, 255, .08);
}


.tf-sidebar-context-menu__group--open>.tf-sidebar-context-menu__nested {
    display: block;
}


.tf-sidebar-context-menu__nested .tf-sidebar-context-menu__link {
    min-height: 30px;

    padding:
        6px 8px;

    color:
        rgba(255, 255, 255, .50) !important;

    font-size: 9px;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.tf-sidebar-context-menu__actions {
    margin-top: 10px;

    padding-top: 8px;

    border-top:
        1px solid rgba(255, 255, 255, .08);
}


.tf-sidebar-context-menu__action {
    width: 100%;
    min-height: 34px;

    display: flex;
    align-items: center;

    padding: 7px 10px;

    color:
        rgba(255, 255, 255, .55);

    font-size: 9px;

    text-align: left;

    background:
        transparent;

    border: 0;
    border-radius: 7px;

    outline: 0;
}


.tf-sidebar-context-menu__action:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, .06);
}


.tf-sidebar-context-menu__action i {
    width: 18px;

    margin-right: 7px;

    color:
        rgba(121, 180, 189, .78);

    font-size: 9px;

    text-align: center;
}


/* =========================================================
   COLLAPSED
   ========================================================= */

body.tf-sidebar-collapsed .tf-sidebar__context {
    display: none !important;
}

/* =========================================================
   SIDEBAR LEGACY - ADAPTADOR
   ========================================================= */

.tf-sidebar--legacy {
    display: flex !important;
    flex-direction: column !important;
}


/* =========================================================
   MÓDULO ACTUAL
   ========================================================= */

.tf-sidebar__legacy-module {
    margin:
        4px 8px 12px;

    padding:
        10px 10px;

    background:
        rgba(255, 255, 255, .035);

    border:
        1px solid rgba(255, 255, 255, .06);

    border-radius:
        8px;
}


.tf-sidebar__legacy-module-label {
    display: block;

    margin-bottom:
        4px;

    color:
        rgba(255, 255, 255, .32);

    font-size:
        7px;

    font-weight:
        700;

    letter-spacing:
        .12em;

    text-transform:
        uppercase;
}


.tf-sidebar__legacy-module strong {
    display: block;

    color:
        rgba(255, 255, 255, .78);

    font-size:
        9.5px;

    font-weight:
        600;

    line-height:
        1.3;
}


/* =========================================================
   ELIMINAR COMPLETAMENTE ESTILO BOOTSTRAP UL
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-menu,
.tf-sidebar--legacy .tf-sidebar__legacy-footer-list {
    margin: 0 !important;
    padding: 0 !important;

    list-style:
        none !important;
}


.tf-sidebar--legacy .tf-sidebar__legacy-menu>li,
.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li {
    float: none !important;

    width: 100% !important;

    margin: 1px 0 !important;

    list-style:
        none !important;
}


/* mata los puntitos */
.tf-sidebar--legacy li::marker {
    content: '' !important;
}


/* =========================================================
   LINKS TOP LEVEL
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-menu>li>a {
    width: 100% !important;

    min-height: 38px !important;

    display: flex !important;
    align-items: center !important;

    padding:
        9px 10px !important;

    color:
        rgba(255, 255, 255, .68) !important;

    background:
        transparent !important;

    background-image:
        none !important;

    border-radius:
        8px !important;

    font-size:
        10px !important;

    font-weight:
        500 !important;

    line-height:
        1.35 !important;

    text-shadow:
        none !important;

    text-decoration:
        none !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-menu>li>a:hover,
.tf-sidebar--legacy .tf-sidebar__legacy-menu>li>a:focus {
    color:
        #ffffff !important;

    background:
        rgba(255, 255, 255, .065) !important;
}


/* =========================================================
   ACTIVO / ABIERTO
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-menu>li.active>a,

.tf-sidebar--legacy .tf-sidebar__legacy-menu>li.open>a {
    color:
        #ffffff !important;

    background:
        rgba(255, 255, 255, .09) !important;

    box-shadow:
        inset 3px 0 0 #22b8c7 !important;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.tf-sidebar--legacy .dropdown-menu {
    position:
        static !important;

    float:
        none !important;

    width:
        100% !important;

    min-width:
        0 !important;

    margin:
        2px 0 6px 8px !important;

    padding:
        2px 0 2px 8px !important;

    background:
        transparent !important;

    border:
        0 !important;

    border-left:
        1px solid rgba(255, 255, 255, .09) !important;

    box-shadow:
        none !important;
}


/* Cerrado */
.tf-sidebar--legacy .dropdown:not(.open)>.dropdown-menu {
    display:
        none !important;
}


/* Abierto */
.tf-sidebar--legacy .dropdown.open>.dropdown-menu {
    display:
        block !important;
}


/* =========================================================
   SUBMENU
   ========================================================= */

.tf-sidebar--legacy .dropdown-menu>li {
    width:
        100% !important;

    float:
        none !important;

    list-style:
        none !important;
}


.tf-sidebar--legacy .dropdown-menu>li>a {
    display:
        block !important;

    width:
        100% !important;

    padding:
        7px 9px !important;

    color:
        rgba(255, 255, 255, .52) !important;

    background:
        transparent !important;

    border-radius:
        6px !important;

    font-size:
        9px !important;

    text-decoration:
        none !important;
}


.tf-sidebar--legacy .dropdown-menu>li>a:hover {
    color:
        #ffffff !important;

    background:
        rgba(255, 255, 255, .05) !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-footer {
    margin-top:
        auto !important;
}


.tf-sidebar--legacy .tf-sidebar__legacy-footer-list {
    width:
        100%;
}


.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a {
    width:
        100% !important;

    display:
        flex !important;

    align-items:
        center !important;

    min-height:
        34px !important;

    padding:
        7px 10px !important;

    color:
        rgba(255, 255, 255, .60) !important;

    background:
        transparent !important;

    font-size:
        9px !important;

    text-decoration:
        none !important;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

body.tf-sidebar-legacy-view:not(.tf-sidebar-collapsed):not(.tf-sidebar-hidden) {
    padding-left: var(--tf-sidebar-width) !important;
}

body.tf-sidebar-legacy-view.tf-sidebar-hidden {
    padding-left: 0 !important;
}

div[ng-include*="adm"][ng-include*=".html"] {
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   AJUSTE TIPOGRAFÍA MENU LEGACY
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-menu>li>a {
    font-size: 11px !important;
    font-weight: 500 !important;
}

.tf-sidebar--legacy .dropdown-menu>li>a {
    font-size: 10px !important;
    line-height: 1.4 !important;
}

.tf-sidebar--legacy .tf-sidebar__section-label {
    font-size: 8px !important;
}

.tf-sidebar--legacy .tf-sidebar__legacy-module strong {
    font-size: 10px !important;
}

/* =========================================================
   SUBMENUS MULTINIVEL
   ========================================================= */

.tf-sidebar--legacy .dropdown-submenu {
    position: relative !important;
}


/* cerrado */
.tf-sidebar--legacy .dropdown-submenu:not(.open)>.dropdown-menu {
    display: none !important;
}


/* abierto */
.tf-sidebar--legacy .dropdown-submenu.open>.dropdown-menu {
    display: block !important;
}


/* segundo nivel */
.tf-sidebar--legacy .dropdown-submenu>.dropdown-menu {
    position: static !important;

    width: calc(100% - 8px) !important;
    min-width: 0 !important;

    margin: 2px 0 4px 8px !important;
    padding: 2px 0 2px 7px !important;

    background: transparent !important;

    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, .08) !important;

    box-shadow: none !important;
}


/* pequeño indicador a la derecha */
.tf-sidebar--legacy .dropdown-submenu>a::after {
    content: "›";

    margin-left: auto;

    font-size: 13px;

    color: rgba(255, 255, 255, .35);
}


/* giramos indicador cuando está abierto */
.tf-sidebar--legacy .dropdown-submenu.open>a::after {
    transform: rotate(90deg);
}

/* =========================================================
   FOOTER LEGACY - MISMO LOOK QUE SIDEBAR NUEVO
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-footer {
    margin-top: auto !important;

    padding: 10px 8px 12px !important;

    border-top:
        1px solid rgba(255, 255, 255, .08) !important;
}


.tf-sidebar--legacy .tf-sidebar__legacy-footer-list {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li {
    width: 100% !important;

    margin: 2px 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


/* =========================================================
   HOME / LOGOUT / LINKS FOOTER
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a {
    width: 100% !important;
    min-height: 36px !important;

    display: flex !important;
    align-items: center !important;

    gap: 8px !important;

    padding: 8px 10px !important;

    color:
        rgba(255, 255, 255, .66) !important;

    background:
        transparent !important;

    border-radius:
        8px !important;

    font-size:
        10px !important;

    font-weight:
        500 !important;

    text-decoration:
        none !important;

    line-height:
        1 !important;
}


.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a:hover,
.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a:focus {
    color:
        #ffffff !important;

    background:
        rgba(255, 255, 255, .07) !important;
}


/* =========================================================
   ICONOS FOOTER
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a i,

.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a .glyphicon {
    width: 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    color:
        rgba(180, 215, 225, .82) !important;

    font-size:
        11px !important;
}


/* =========================================================
   BANDERA / SELECTOR IDIOMA
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-footer-list img {
    display: block !important;

    width: 24px !important;
    height: 16px !important;

    margin: 0 !important;

    object-fit: cover !important;

    border-radius: 2px !important;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .12) !important;
}


/*
 * Si la bandera está dentro de un <a>
 */
.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a:has(img) {
    min-height: 36px !important;

    justify-content: flex-start !important;
}


/*
 * Si la bandera está directamente dentro del <li>
 * y NO tiene <a>, la alineamos igual.
 */
.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li:has(img):not(:has(a)) {
    min-height: 36px !important;

    display: flex !important;
    align-items: center !important;

    padding: 8px 10px !important;

    border-radius: 8px !important;
}


/* =========================================================
   QUITAR FLOATS / ESTILOS BOOTSTRAP VIEJOS
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-footer-list .navbar-text,

.tf-sidebar--legacy .tf-sidebar__legacy-footer-list .pull-right,

.tf-sidebar--legacy .tf-sidebar__legacy-footer-list .pull-left {
    float: none !important;

    margin: 0 !important;
}

/* Texto principal del sidebar */
.tf-sidebar__menu>li>a,
.tf-sidebar--legacy .tf-sidebar__legacy-menu>li>a {
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

/* Submenús */
.tf-sidebar--legacy .dropdown-menu>li>a {
    font-size: 12.5px !important;
    font-weight: 400 !important;
}

/* Título del módulo */
.tf-sidebar__legacy-module strong {
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

/* Label "SECCIÓN" */
.tf-sidebar__legacy-module-label {
    font-size: 9px !important;
}

/* Footer */
.tf-sidebar__footer,
.tf-sidebar__legacy-footer-list>li>a {
    font-size: 13.5px !important;
}

/* LABELS GENERALES DEL SIDEBAR */
.tf-sidebar__section-label,
.tf-sidebar--legacy .tf-sidebar__section-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
}

/* HOME / FOOTER LEGACY */
.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a,
.tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li,
.tf-sidebar--legacy .tf-sidebar__legacy-footer-list a {
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

/* TEXTO DEL SIDEBAR NUEVO */
.tf-sidebar__footer-action,
.tf-sidebar__user,
.tf-sidebar__user-copy,
.tf-sidebar__user-copy strong,
.tf-sidebar__user-copy small {
    font-size: 13.5px !important;
}

/* HOME / LINKS SUELTOS QUE VENGAN DEL NAVBAR LEGACY */
.tf-sidebar--legacy a.navbar-text,
.tf-sidebar--legacy .navbar-text,
.tf-sidebar--legacy .cerrarSesion {
    font-size: 13.5px !important;
}

/* =========================================================
   ICONOS LEGACY
   ========================================================= */

.tf-sidebar--legacy .tf-sidebar__legacy-menu>li>a {
    gap: 10px !important;
}


.tf-sidebar--legacy .tf-sidebar__legacy-icon {
    width: 22px;
    min-width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;

    color: rgba(196, 222, 230, .82);

    font-size: 12px;

    text-align: center;
}


.tf-sidebar--legacy .tf-sidebar__legacy-icon--letter {
    border-radius: 6px;

    background: rgba(255, 255, 255, .08);

    color: rgba(255, 255, 255, .82);

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   LEGACY COLAPSADO
   ========================================================= */

body.tf-sidebar-collapsed .tf-sidebar--legacy {
    width: var(--tf-sidebar-collapsed) !important;
}


/*
 * Ocultamos textos del menú.
 */
body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__legacy-menu>li>a {
    justify-content: center !important;

    padding-left: 0 !important;
    padding-right: 0 !important;

    font-size: 0 !important;
}


/*
 * El icono mantiene su tamaño.
 */
body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__legacy-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;

    margin: 0 !important;

    font-size: 14px;
}


/*
 * Ocultar módulo/sección al colapsar.
 */
body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__legacy-module,

body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__section-label {
    display: none !important;
}


/*
 * Dropdowns no tienen sentido abiertos
 * con el sidebar colapsado.
 */
body.tf-sidebar-collapsed .tf-sidebar--legacy .dropdown-menu {
    display: none !important;
}


/* Footer centrado */
body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__legacy-footer-list>li>a {
    justify-content: center !important;

    font-size: 0 !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}


body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__legacy-footer-list i,

body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__legacy-footer-list .glyphicon {
    font-size: 14px !important;

    margin: 0 !important;
}

/* =========================================================
   DASHBOARD + SIDEBAR
   ========================================================= */

.tf-dashboard-view {
    width: 99vw;
    min-height: 99vh;

    margin-left: 0 !important;
    padding-left: 0 !important;

    transition:
        width .22s ease,
        margin-left .22s ease,
        padding-left .22s ease;
}


/* =========================================================
   SIDEBAR ABIERTO
   ========================================================= */

body.tf-sidebar-enabled:not(.tf-sidebar-collapsed):not(.tf-sidebar-hidden)
.tf-dashboard-view {
    width: 100% !important;
    max-width: 100% !important;

    margin-left: 0 !important;
    padding-left: 260px !important;

    box-sizing: border-box !important;
}

/* =========================================================
   SIDEBAR COLAPSADO / CERRADO
   ========================================================= */

body.tf-sidebar-enabled.tf-sidebar-collapsed .tf-dashboard-view {
    width: 95.5vw !important;

    margin-left: 0px !important;
    padding-left: 0 !important;
}


/* =========================================================
   SIDEBAR OCULTO
   ========================================================= */

body.tf-sidebar-enabled.tf-sidebar-hidden .tf-dashboard-view {
    width: 99vw !important;

    margin-left: 0px !important;
    padding-left: 0 !important;
}


/* =========================================================
   QUITAR ESPACIO DEL BODY AL CERRAR
   ========================================================= */

body.tf-sidebar-collapsed,
body.tf-sidebar-hidden {
    padding-left: 0 !important;
}


/* =========================================================
   DASHBOARD IFRAME
   ========================================================= */

.tf-dashboard-view iframe {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


/* =========================================================
   TABSET DEL DASHBOARD
   ========================================================= */

.tf-dashboard-view uib-tabset,
.tf-dashboard-view .tab-content,
.tf-dashboard-view .tab-pane {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   EVITAR CONTAINERS DE BOOTSTRAP QUE METAN ESPACIO
   ========================================================= */

.tf-dashboard-view .container,
.tf-dashboard-view .container-fluid,
.tf-dashboard-view .row {
    width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================================
   LOGOUT MODAL
   ========================================================= */

.tf-logout-modal .modal-dialog {
    margin-top: 14vh !important;
}

.tf-logout-modal__content {
    padding: 28px 26px 24px !important;

    background: #ffffff !important;

    border: 0 !important;
    border-radius: 14px !important;

    box-shadow:
        0 18px 50px rgba(35, 55, 70, .18) !important;

    text-align: center;
}


/* Icono */
.tf-logout-modal__icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    color: #d94b57;

    background: #fbeaec;

    border-radius: 14px;

    font-size: 20px;
}


/* Título */
.tf-logout-modal__title {
    margin: 0 0 8px !important;

    color: #263b4f !important;

    font-size: 19px !important;
    font-weight: 650 !important;
}


/* Texto */
.tf-logout-modal__text {
    margin: 0 auto 22px;

    color: #718096;

    font-size: 13px;

    line-height: 1.5;
}


/* Botones */
.tf-logout-modal__actions {
    display: flex;
    justify-content: center;

    gap: 10px;
}


.tf-logout-modal__actions .btn {
    min-width: 120px;

    margin: 0 !important;

    padding: 9px 16px !important;

    border-radius: 8px !important;

    font-size: 12px !important;
    font-weight: 600 !important;

    box-shadow: none !important;
}


/* Cancelar */
.tf-logout-modal__cancel {
    color: #51606d !important;

    background: #f4f7f9 !important;

    border: 1px solid #dce5eb !important;
}


.tf-logout-modal__cancel:hover {
    background: #eaf0f4 !important;
}


/* Confirmar */
.tf-logout-modal__confirm {
    color: #ffffff !important;

    background: #d94b57 !important;

    border: 1px solid #d94b57 !important;
}


.tf-logout-modal__confirm:hover {
    background: #c93e49 !important;
}


/* =========================================================
   CONFIGURACIÓN - VISTA PRINCIPAL
   ========================================================= */

.tf-settings-view {
    width: 100%;

    padding: 18px 20px 30px;

    box-sizing: border-box;

    background: #f5f8fa;
}


/* =========================================================
   HEADER
   ========================================================= */

.tf-settings-header__eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #8b9aa6;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .12em;
}


.tf-settings-header h2 {
    margin: 0 !important;
    padding: 0 !important;

    color: #263b4f !important;

    background: transparent !important;
    border: 0 !important;

    font-size: 18px !important;
    font-weight: 700 !important;

    line-height: 1.25 !important;
}


.tf-settings-header p {
    margin: 10px 0 0;

    color: #84939f;

    font-size: 10.5px;
}


/* =========================================================
   MENÚ DE CONFIGURACIÓN
   ========================================================= */

.tf-settings-menu-wrapper {
    width: 245px;

    margin-left: 10px;

    padding: 0;

    background: transparent;

    border: 0;

    box-shadow: none;
}


.tf-settings-menu-title {
    margin: 0 0 3px 0;

    color: #294358;

    font-size: 16px;
    font-weight: 700;
}


.tf-settings-menu-subtitle {
    margin-bottom: 10px;

    color: #95a2ad;

    font-size: 11.5px;
}


/* =========================================================
   MENÚ INTERNO
   ========================================================= */

.tf-settings-menu-wrapper .nav-side-menu {
    position: static !important;

    top: auto !important;
    left: auto !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    background: transparent !important;

    color: #526777 !important;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;

    box-shadow: none !important;
}


.tf-settings-menu-wrapper .brand {
    display: none !important;
}


.tf-settings-menu-wrapper .toggle-btn {
    display: none !important;
}


/* Menú siempre visible */
.tf-settings-menu-wrapper #menu-content {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   ITEMS
   ========================================================= */

.tf-settings-menu-wrapper .menu-content>li {
    width: 100%;

    margin: 3px 0 !important;

    list-style: none;
}


.tf-settings-menu-wrapper .menu-content>li>a {
    width: 100%;

    min-height: 38px;

    display: flex !important;
    align-items: center !important;

    gap: 9px;

    padding: 9px 8px !important;

    color: #526777 !important;

    background: transparent !important;

    border-radius: 7px;

    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 500 !important;

    line-height: 18px !important;

    transition:
        background-color .15s ease,
        color .15s ease;
}


.tf-settings-menu-wrapper .menu-content>li>a:hover {
    color: #294b60 !important;

    background: #edf4f7 !important;
}


/* =========================================================
   ICONOS
   ========================================================= */

.tf-settings-menu-wrapper .menu-content>li>a>i {
    width: 18px !important;
    min-width: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #7298aa !important;

    font-size: 14px !important;

    text-align: center;
}


/* =========================================================
   DASHBOARD / FLECHA
   ========================================================= */

.tf-settings-menu-wrapper .arrow {
    margin-left: auto !important;
}


.tf-settings-menu-wrapper .arrow::before {
    font-size: 8px !important;

    color: #9aacb7 !important;
}


/* =========================================================
   SUBMENÚ
   ========================================================= */

.tf-settings-menu-wrapper .sub-menu {
    margin: 2px 0 5px 25px !important;

    padding: 2px 0 2px 8px !important;

    border-left: 1px solid #dce6ec !important;

    background: transparent !important;
}


.tf-settings-menu-wrapper .sub-menu li {
    margin: 1px 0 !important;

    background: transparent !important;

    border: 0 !important;

    list-style: none !important;
}


.tf-settings-menu-wrapper .sub-menu li::before {
    display: none !important;
}


.tf-settings-menu-wrapper .sub-menu li a {
    display: block;

    padding: 7px 8px !important;

    color: #718391 !important;

    background: transparent !important;

    border-radius: 6px;

    font-size: 12px !important;

    text-decoration: none !important;
}


.tf-settings-menu-wrapper .sub-menu li a:hover {
    color: #345469 !important;

    background: #edf4f7 !important;
}


/* =========================================================
   SEPARADOR ANTES DE SALIR
   ========================================================= */

.tf-settings-menu-wrapper .menu-content>li:last-child {
    margin-top: 8px !important;

    padding-top: 8px !important;

    border-top: 1px solid #e7edf1 !important;
}


.tf-settings-menu-wrapper .menu-content>li:last-child>a {
    color: #7b8994 !important;
}


.tf-settings-menu-wrapper .menu-content>li:last-child>a>i {
    color: #c4797f !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .tf-settings-view {
        padding: 14px;
    }

    .tf-settings-menu-wrapper {
        width: 100%;
        margin-left: 0;
    }

}

.titleConfigMenu {
    font-size: 19px;
    font-weight: 600;
}

.menuConfiguracion {
    margin-top: -99px !important;
    padding-right: 25px !important;
}

font {
    color: #3D2044 !important;
}

/* =========================================================
   SIDEBAR - VOLVER
   ========================================================= */

.tf-sidebar__back {
    width: calc(100% - 16px);
    min-height: 36px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin: 5px 8px 8px;
    padding: 7px 10px;

    color: rgba(255, 255, 255, .62);

    background: rgba(255, 255, 255, .035);

    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 7px;

    outline: none;

    font-size: 12px;
    font-weight: 500;

    text-align: left;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}


.tf-sidebar__back:hover,
.tf-sidebar__back:focus {
    color: #ffffff;

    background: rgba(255, 255, 255, .075);

    border-color: rgba(255, 255, 255, .10);
}


.tf-sidebar__back i {
    width: 18px;

    color: rgba(180, 215, 225, .85);

    font-size: 11px;

    text-align: center;
}


/* COLAPSADO */

body.tf-sidebar-collapsed .tf-sidebar__back {
    width: 42px;
    height: 38px;

    justify-content: center;

    margin: 5px auto 8px;
    padding: 0;
}


body.tf-sidebar-collapsed .tf-sidebar__back-label {
    display: none;
}


body.tf-sidebar-collapsed .tf-sidebar__back i {
    width: auto;

    margin: 0;

    font-size: 13px;
}

.tf-sidebar--legacy .tf-sidebar__legacy-icon {

    width: 22px;
    min-width: 22px;
    height: 22px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;

    color: rgba(196, 222, 230, .85);

    font-size: 12px !important;

    text-align: center;
}


.tf-sidebar--legacy .tf-sidebar__legacy-icon--letter {

    background: rgba(255, 255, 255, .09);

    border: 1px solid rgba(255, 255, 255, .06);

    border-radius: 6px;

    color: rgba(255, 255, 255, .88);

    font-size: 10px !important;
    font-weight: 700 !important;
}


/* sidebar colapsado */

body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__legacy-icon {

    width: 34px;
    min-width: 34px;
    height: 34px;

    flex: 0 0 34px;

    margin: 0 !important;

    font-size: 14px !important;
}


body.tf-sidebar-collapsed .tf-sidebar--legacy .tf-sidebar__legacy-icon--letter {

    font-size: 11px !important;
}

/* =========================================================
   UI NOTIFICATIONS - BASE COMÚN
   ========================================================= */

.ui-notification {
    width: 300px !important;
    min-width: 260px !important;
    max-width: 380px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: 60vh !important;

    margin: 12px !important;
    padding: 12px 14px !important;

    box-sizing: border-box !important;

    border-radius: 8px !important;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;

    font-size: 11.5px !important;
    line-height: 1.4 !important;

    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    box-shadow: 0 8px 18px rgba(35, 55, 70, .12) !important;
}


/* =========================================================
   RESET DE TITULOS INTERNOS
   Evita que hereden los estilos globales de las vistas
   ========================================================= */

.ui-notification h1,
.ui-notification h2,
.ui-notification h3,
.ui-notification h4,
.ui-notification h5,
.ui-notification h6,
.ui-notification .title,
.ui-notification .alert-title {

    display: block !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 0 4px 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    line-height: 1.25 !important;

    white-space: normal !important;
}


/* quitar pseudo-elementos heredados */

.ui-notification h1::before,
.ui-notification h1::after,
.ui-notification h2::before,
.ui-notification h2::after,
.ui-notification h3::before,
.ui-notification h3::after,
.ui-notification h4::before,
.ui-notification h4::after,
.ui-notification h5::before,
.ui-notification h5::after,
.ui-notification h6::before,
.ui-notification h6::after,
.ui-notification .title::before,
.ui-notification .title::after,
.ui-notification .alert-title::before,
.ui-notification .alert-title::after {

    content: none !important;
    display: none !important;
}


/* =========================================================
   MENSAJE
   ========================================================= */

.ui-notification .message {

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    font-size: 11.5px !important;
    font-weight: 400 !important;

    line-height: 1.4 !important;

    white-space: normal !important;

    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.ui-notification.success {

    background: #f3faf5 !important;

    color: #557362 !important;

    border: 1px solid #d3ead9 !important;
    border-left: 4px solid #4aa66d !important;

    box-shadow:
        0 8px 18px rgba(52, 108, 73, .11) !important;
}


.ui-notification.success h1,
.ui-notification.success h2,
.ui-notification.success h3,
.ui-notification.success h4,
.ui-notification.success h5,
.ui-notification.success h6,
.ui-notification.success .title,
.ui-notification.success .alert-title {

    color: #315c42 !important;
}


.ui-notification.success .message {

    color: #557362 !important;
}


/* =========================================================
   ERROR
   MISMO DISEÑO - PALETA ROJA
   ========================================================= */

.ui-notification.error {

    background: #fdf4f4 !important;

    color: #80555a !important;

    border: 1px solid #efcecf !important;
    border-left: 4px solid #d85b63 !important;

    box-shadow:
        0 8px 18px rgba(135, 55, 62, .11) !important;
}


.ui-notification.error h1,
.ui-notification.error h2,
.ui-notification.error h3,
.ui-notification.error h4,
.ui-notification.error h5,
.ui-notification.error h6,
.ui-notification.error .title,
.ui-notification.error .alert-title {

    color: #8b4047 !important;
}


.ui-notification.error .message {

    color: #80555a !important;

    white-space: normal !important;

    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}


/* =========================================================
   PRIMARY / INFO
   MISMO DISEÑO - PALETA AZUL
   ========================================================= */

.ui-notification.primary {

    background: #f3f8fb !important;

    color: #526f80 !important;

    border: 1px solid #d3e2ea !important;
    border-left: 4px solid #5f91a8 !important;

    box-shadow:
        0 8px 18px rgba(55, 88, 108, .11) !important;
}


.ui-notification.primary h1,
.ui-notification.primary h2,
.ui-notification.primary h3,
.ui-notification.primary h4,
.ui-notification.primary h5,
.ui-notification.primary h6,
.ui-notification.primary .title,
.ui-notification.primary .alert-title {

    color: #365d72 !important;
}


.ui-notification.primary .message {

    color: #526f80 !important;
}


/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.ui-notification .close,
.ui-notification .ui-notification-close {

    position: absolute !important;

    top: 6px !important;
    right: 8px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;

    color: inherit !important;

    opacity: .5 !important;

    font-size: 15px !important;

    line-height: 1 !important;

    text-shadow: none !important;
}


.ui-notification .close:hover,
.ui-notification .ui-notification-close:hover {

    opacity: .9 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ui-notification {

        width: calc(100vw - 24px) !important;

        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;

        margin: 8px 12px !important;
    }

}

.container-fluid{
    background: #fff !important;
    border-radius: 15px !important;
    width: 98% !important;
    margin-top: 15px;
}

/* =========================================================
   SWEETALERT - NO HEREDAR ESTILOS DE TITULOS DE VISTA
   ========================================================= */

.sweet-alert h1,
.sweet-alert h2,
.sweet-alert h3,
.sweet-alert h4,
.sweet-alert h5,
.sweet-alert h6,
.swal-modal h1,
.swal-modal h2,
.swal-modal h3,
.swal-modal h4,
.swal-modal h5,
.swal-modal h6 {

    display: block !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    min-height: 0 !important;

    margin: 18px 0 10px !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-left: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: #263b4f !important;

    font-size: 20px !important;
    font-weight: 700 !important;

    line-height: 1.3 !important;

    text-align: center !important;
}


/* Quitar pseudo-elementos de títulos globales */
.sweet-alert h1::before,
.sweet-alert h2::before,
.sweet-alert h3::before,
.sweet-alert h4::before,
.sweet-alert h5::before,
.sweet-alert h6::before,
.swal-modal h1::before,
.swal-modal h2::before,
.swal-modal h3::before,
.swal-modal h4::before,
.swal-modal h5::before,
.swal-modal h6::before {

    display: none !important;
    content: none !important;
}


/* =========================================================
   CONTENEDOR SWEETALERT
   ========================================================= */

.sweet-alert,
.swal-modal {

    background: #ffffff !important;

    border: 0 !important;
    border-radius: 10px !important;

    box-shadow: 0 18px 45px rgba(35, 55, 70, .22) !important;
}


/* =========================================================
   TEXTO
   ========================================================= */

.sweet-alert p,
.swal-text {

    color: #687985 !important;

    font-size: 14px !important;
    line-height: 1.45 !important;

    text-align: center !important;
}


/* =========================================================
   BOTONES
   ========================================================= */

.sweet-alert button,
.swal-button {

    min-width: 90px;

    padding: 9px 18px !important;

    border-radius: 7px !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    box-shadow: none !important;
}


/* cancelar */
.sweet-alert button.cancel,
.swal-button--cancel {

    color: #ffffff !important;

    background: #aeb7bd !important;

    border: 0 !important;
}


/* confirmar */
.sweet-alert button.confirm,
.swal-button--confirm {

    color: #ffffff !important;

    background: #169447 !important;

    border: 0 !important;
}


/* =========================================================
   ICONO WARNING
   ========================================================= */

.sweet-alert .sa-icon.sa-warning {

    border-color: #efbd73 !important;

    color: #efbd73 !important;
}

/* =========================================================
   FIX DEFINITIVO TITULO TOAST
   ========================================================= */

.ui-notification.success .title,
.ui-notification.success .message-title,
.ui-notification.success h3,
.ui-notification.success h4,
.ui-notification.success strong:first-child {

    display: block !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    min-height: 0 !important;

    margin: 0 0 4px 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: none !important;
    border-left: none !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    color: #315c42 !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 1.2 !important;
}


/* matar cualquier pseudo-elemento */
.ui-notification.success .title::before,
.ui-notification.success .title::after,
.ui-notification.success .message-title::before,
.ui-notification.success .message-title::after,
.ui-notification.success h3::before,
.ui-notification.success h3::after,
.ui-notification.success h4::before,
.ui-notification.success h4::after {

    content: none !important;
    display: none !important;
}


/* =========================================================
   TOAST SUCCESS COMPLETO
   ========================================================= */

.ui-notification.success {
    min-width: 260px !important;
    max-width: 320px !important;

    padding: 10px 12px !important;

    background: #f3faf5 !important;

    border: 1px solid #d3ead9 !important;
    border-left: 4px solid #4aa66d !important;

    border-radius: 8px !important;

    color: #557362 !important;

    box-shadow: 0 8px 18px rgba(52, 108, 73, .11) !important;
}


/* mensaje */
.ui-notification.success .message {
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    color: #557362 !important;

    font-size: 14px !important;
    line-height: 1.35 !important;
}

/* =========================================================
   ERROR TOAST - FIX DEFINITIVO
   ========================================================= */

.ui-notification.error {
    width: 300px !important;
    min-width: 260px !important;
    max-width: 380px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: 60vh !important;

    padding: 12px 14px !important;

    background: #fdf4f4 !important;

    border: 1px solid #efcecf !important;
    border-left: 4px solid #d85b63 !important;

    border-radius: 8px !important;

    color: #80555a !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    box-shadow: 0 8px 18px rgba(135, 55, 62, .11) !important;

    box-sizing: border-box !important;
}


/* =========================================================
   RESET TOTAL DE HIJOS
   ========================================================= */

.ui-notification.error > *,
.ui-notification.error .message,
.ui-notification.error .title,
.ui-notification.error .alert-title {

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   TITULO
   ========================================================= */

.ui-notification.error h1,
.ui-notification.error h2,
.ui-notification.error h3,
.ui-notification.error h4,
.ui-notification.error h5,
.ui-notification.error h6,
.ui-notification.error .title,
.ui-notification.error .alert-title {

    display: block !important;

    margin: 0 0 4px 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: #8b4047 !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    line-height: 1.25 !important;

    text-align: left !important;
}


/* =========================================================
   MENSAJE
   ========================================================= */

.ui-notification.error .message,
.ui-notification.error p {

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: #80555a !important;

    font-size: 11.5px !important;
    font-weight: 400 !important;

    line-height: 1.4 !important;

    white-space: normal !important;

    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}


/* =========================================================
   PSEUDOELEMENTOS
   ========================================================= */

.ui-notification.error h1::before,
.ui-notification.error h1::after,
.ui-notification.error h2::before,
.ui-notification.error h2::after,
.ui-notification.error h3::before,
.ui-notification.error h3::after,
.ui-notification.error h4::before,
.ui-notification.error h4::after,
.ui-notification.error h5::before,
.ui-notification.error h5::after,
.ui-notification.error h6::before,
.ui-notification.error h6::after,
.ui-notification.error .title::before,
.ui-notification.error .title::after,
.ui-notification.error .alert-title::before,
.ui-notification.error .alert-title::after {

    content: none !important;
    display: none !important;
}

/* =========================================================
   ERROR TOAST - COMPACTO COMO SUCCESS
   ========================================================= */

.ui-notification.error {
    width: 300px !important;
    min-width: 260px !important;
    max-width: 380px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 10px 12px !important;

    background: #fdf4f4 !important;

    border: 1px solid #efcecf !important;
    border-left: 4px solid #d85b63 !important;

    border-radius: 8px !important;

    color: #80555a !important;

    overflow: visible !important;

    box-shadow: 0 8px 18px rgba(135, 55, 62, .11) !important;
}


/* título */
.ui-notification.error h1,
.ui-notification.error h2,
.ui-notification.error h3,
.ui-notification.error h4,
.ui-notification.error h5,
.ui-notification.error h6,
.ui-notification.error .title,
.ui-notification.error .alert-title {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    color: #8b4047 !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 1.2 !important;
}


/* mensaje */
.ui-notification.error .message,
.ui-notification.error p {
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    color: #80555a !important;

    font-size: 14px !important;
    line-height: 1.35 !important;

    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}


/* si el error es muy largo, recién ahí scrollea */
.ui-notification.error .message {
    max-height: 220px !important;
    overflow-y: auto !important;
}

/* =========================================================
   SIDEBAR COLAPSADO
   NUNCA MOSTRAR SUBMENUS
   ========================================================= */

body.tf-sidebar-collapsed
.tf-sidebar--legacy
.dropdown-menu,

body.tf-sidebar-collapsed
.tf-sidebar--legacy
.dropdown.open > .dropdown-menu,

body.tf-sidebar-collapsed
.tf-sidebar--legacy
.dropdown-submenu.open > .dropdown-menu,

body.tf-sidebar-collapsed
.tf-sidebar--legacy
.sub-menu,

body.tf-sidebar-collapsed
.tf-sidebar--legacy
li > ul {

    display: none !important;

    visibility: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}

body.tf-sidebar-collapsed
.tf-sidebar--legacy
li.open {

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;
}

body.tf-sidebar-collapsed
.tf-sidebar--legacy
.dropdown-menu,

body.tf-sidebar-collapsed
.tf-sidebar--legacy
.dropdown.open > .dropdown-menu,

body.tf-sidebar-collapsed
.tf-sidebar--legacy
.dropdown-submenu.open > .dropdown-menu,

body.tf-sidebar-collapsed
.tf-sidebar--legacy
.sub-menu,

body.tf-sidebar-collapsed
.tf-sidebar--legacy
li > ul {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body:not(.tf-sidebar-collapsed)
.tf-sidebar--legacy
.dropdown.open > .dropdown-menu,

body:not(.tf-sidebar-collapsed)
.tf-sidebar--legacy
.dropdown-submenu.open > .dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* =========================================================
   SIDEBAR NATIVO - LAYOUT DE LA VISTA
   ========================================================= */

/* Sidebar abierto */
body:has(.tf-sidebar--module):not(.tf-sidebar-collapsed):not(.tf-sidebar-hidden)
> div[ng-view] {
    padding-left: var(--tf-sidebar-width) !important;

    width: 100% !important;
    box-sizing: border-box !important;

    transition: padding-left .22s ease !important;
}


/* Sidebar colapsado */
body.tf-sidebar-collapsed:has(.tf-sidebar--module)
> div[ng-view] {
    padding-left: var(--tf-sidebar-collapsed) !important;

    width: 100% !important;
    box-sizing: border-box !important;

    transition: padding-left .22s ease !important;
}


/* Sidebar completamente oculto */
body.tf-sidebar-hidden:has(.tf-sidebar--module)
> div[ng-view] {
    padding-left: 0 !important;

    width: 100% !important;
    box-sizing: border-box !important;

    transition: padding-left .22s ease !important;
}