:root {
    --torres-red: #DF0112;
    --torres-red-dark: #B00010;
    --torres-red-soft: #FFF0F2;
    --torres-ink: #151515;
    --torres-ink-soft: #2B3036;
    --torres-silver: #BFC4CB;
    --torres-paper: #FFFFFF;
    --torres-canvas: #F5F7FA;
    --torres-line: #E2E6EA;
    --torres-muted: #6F7B86;
    --torres-sidebar-width: 292px;
    --torres-sidebar-collapsed: 84px;
    --torres-topbar-height: 82px;
    --torres-shadow-sm: 0 4px 16px rgba(18, 27, 38, .07);
    --torres-shadow-md: 0 16px 38px rgba(18, 27, 38, .13);
    --torres-radius-sm: 12px;
    --torres-radius-md: 16px;
    --torres-transition: 180ms ease;
}

html,
body {
    min-height: 100%;
}

body.torres-app-body {
    margin: 0;
    overflow-x: hidden;
    background: var(--torres-canvas);
    color: var(--torres-ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.torres-app-body *,
.torres-app-body *::before,
.torres-app-body *::after {
    box-sizing: border-box;
}

.torres-app-body a {
    text-decoration: none;
}

.torres-app-body svg {
    display: block;
}

.torres-app-body [hidden] {
    display: none !important;
}

.torres-app-form,
.torres-shell {
    min-height: 100vh;
}

.torres-shell {
    position: relative;
    background: var(--torres-canvas);
}

/* PRELOADER */
.torres-preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    background: #fff;
    transition: opacity .2s ease, visibility .2s ease;
}

.torres-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.torres-preloader__mark {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(21, 21, 21, .13);
}

.torres-preloader__mark::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--torres-red);
    border-radius: 20px;
    animation: torresSpin 1s linear infinite;
}

.torres-preloader__mark img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

@keyframes torresSpin {
    to { transform: rotate(360deg); }
}

/* TOPBAR - intentionally isolated from legacy .topbar/.top-navbar */
.torres-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1060;
    height: var(--torres-topbar-height);
    display: grid;
    grid-template-columns: var(--torres-sidebar-width) minmax(0, 1fr) auto;
    align-items: center;
    background: linear-gradient(105deg, #101010 0%, #19191A 52%, #5C0910 78%, var(--torres-red-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 5px 20px rgba(16, 16, 16, .14);
    color: #fff;
    transition: grid-template-columns var(--torres-transition);
}

.torres-topbar__brand-zone {
    min-width: 0;
    height: 100%;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.torres-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.torres-brand__full {
    width: 205px;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
}

.torres-brand__icon {
    display: none;
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.torres-mobile-menu {
    display: none;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.torres-mobile-menu svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.torres-topbar__workspace {
    justify-self: center;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.torres-topbar__workspace-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 800;
}

.torres-topbar__workspace-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F3D7DA;
    font-size: 11px;
    font-weight: 700;
}

.torres-topbar__workspace-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A6D96A;
    box-shadow: 0 0 0 4px rgba(166, 217, 106, .14);
}

.torres-topbar__actions {
    min-width: 0;
    padding: 0 20px 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.torres-topbar__icon-btn,
.torres-topbar__help {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    transition: background var(--torres-transition), transform var(--torres-transition), border-color var(--torres-transition);
}

.torres-topbar__icon-btn {
    flex: 0 0 46px;
    width: 46px;
}

.torres-topbar__help {
    gap: 8px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 800;
}

.torres-topbar__icon-btn:hover,
.torres-topbar__icon-btn:focus,
.torres-topbar__help:hover,
.torres-topbar__help:focus {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .15);
    transform: translateY(-1px);
    outline: none;
}

.torres-topbar__icon-btn svg,
.torres-topbar__help svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* PROFILE */
.torres-profile {
    margin-left: 3px;
}

.torres-profile__toggle {
    min-height: 54px;
    max-width: 270px;
    padding: 4px 6px 4px 4px !important;
    display: flex !important;
    align-items: center;
    gap: 9px;
    border-radius: 14px;
    color: #fff !important;
    transition: background var(--torres-transition);
}

.torres-profile__toggle::after {
    display: none !important;
}

.torres-profile__toggle:hover,
.torres-profile__toggle:focus {
    background: rgba(255, 255, 255, .09);
    color: #fff !important;
    outline: none;
}

.torres-profile__avatar {
    flex: 0 0 42px;
    width: 42px !important;
    height: 42px !important;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 50% !important;
    object-fit: cover;
    background: #fff;
}

.torres-profile__identity {
    min-width: 0;
    max-width: 165px;
    line-height: 1.08;
}

.torres-profile__identity strong,
.torres-profile__identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.torres-profile__identity strong {
    color: #fff;
    font-size: 12.5px;
    font-weight: 850;
}

.torres-profile__identity small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .70);
    font-size: 10.5px;
}

.torres-profile__chevron {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: rgba(255, 255, 255, .72);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torres-profile-menu {
    width: 286px !important;
    padding: 8px !important;
    margin-top: 10px !important;
    border: 1px solid var(--torres-line) !important;
    border-radius: 15px !important;
    box-shadow: var(--torres-shadow-md) !important;
}

.torres-profile-menu__head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    margin-bottom: 5px;
    border-radius: 11px;
    background: #F7F8FA;
}

.torres-profile-menu__avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 13px;
    object-fit: cover;
    background: #fff;
}

.torres-profile-menu__head strong {
    display: block;
    color: var(--torres-ink);
    font-size: 13px;
}

.torres-profile-menu__head span {
    display: block;
    margin-top: 2px;
    color: var(--torres-muted);
    font-size: 11px;
}

.torres-profile-menu .dropdown-item {
    padding: 10px 11px !important;
    border-radius: 9px;
    color: #30343A !important;
    font-size: 12.5px;
    font-weight: 650;
}

.torres-profile-menu .dropdown-item i {
    width: 22px;
    color: #747A80;
}

.torres-profile-menu .dropdown-item:hover {
    background: var(--torres-red-soft) !important;
    color: var(--torres-red) !important;
}

.torres-profile-menu__logout {
    padding: 2px 6px 4px;
}

.torres-logout {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--torres-red) !important;
    font-size: 12.5px;
    font-weight: 800;
}

.torres-logout:hover {
    background: var(--torres-red-soft);
}

/* SIDEBAR - isolated from legacy .left-sidebar/.sidebar-nav */
.torres-sidebar {
    position: fixed;
    top: var(--torres-topbar-height);
    bottom: 0;
    left: 0;
    z-index: 1040;
    width: var(--torres-sidebar-width);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid var(--torres-line);
    box-shadow: 5px 0 22px rgba(22, 36, 54, .04);
    transition: width var(--torres-transition), transform var(--torres-transition);
}

.torres-sidebar__header {
    flex: 0 0 70px;
    min-height: 70px;
    padding: 0 18px 0 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--torres-line);
}

.torres-sidebar__header > span {
    color: #74808C;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.torres-sidebar__collapse,
.torres-sidebar__close {
    flex: 0 0 41px;
    width: 41px;
    height: 41px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #F1F4F7;
    color: #758391;
    cursor: pointer;
    transition: background var(--torres-transition), color var(--torres-transition), transform var(--torres-transition);
}

.torres-sidebar__collapse {
    display: inline-flex;
}

.torres-sidebar__close {
    display: none;
}

.torres-sidebar__collapse:hover,
.torres-sidebar__close:hover {
    background: var(--torres-red-soft);
    color: var(--torres-red);
}

.torres-sidebar__collapse svg,
.torres-sidebar__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torres-sidebar__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px 18px;
    scrollbar-width: thin;
    scrollbar-color: #CBD3DB transparent;
}

.torres-navigation {
    width: 100%;
}

.torres-menu,
.torres-submenu {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    list-style: none;
}

.torres-menu__item {
    position: relative;
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 2px 0;
    padding: 0;
}

.torres-menu__link {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #3E5367 !important;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background var(--torres-transition), color var(--torres-transition), transform var(--torres-transition);
}

.torres-menu__link:hover,
.torres-menu__link:focus-visible {
    background: #F7F9FB;
    color: var(--torres-red) !important;
    outline: none;
}

.torres-menu__link.is-active {
    background: linear-gradient(105deg, #FFF0F2 0%, #FFF8F9 100%);
    color: var(--torres-red) !important;
    box-shadow: inset 4px 0 0 var(--torres-red);
}

.torres-menu__link.is-active .torres-nav-icon,
.torres-menu__link:hover .torres-nav-icon,
.torres-menu__toggle[aria-expanded="true"] .torres-nav-icon {
    background: var(--torres-red);
    color: #fff;
}

.torres-nav-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #F0F3F6;
    color: #6E7D8A;
    transition: background var(--torres-transition), color var(--torres-transition);
}

.torres-nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torres-menu__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.torres-menu__chevron {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--torres-transition);
}

.torres-menu__toggle[aria-expanded="true"] {
    color: var(--torres-red) !important;
}

.torres-menu__toggle[aria-expanded="true"] .torres-menu__chevron {
    transform: rotate(90deg);
}

.torres-submenu {
    margin: 3px 0 6px 18px;
    padding: 2px 0 2px 19px;
    border-left: 1px solid #E8EBEF;
}

.torres-submenu .torres-menu__item {
    margin: 1px 0;
}

.torres-submenu .torres-menu__link {
    min-height: 38px;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 650;
}

.torres-submenu .torres-submenu {
    margin-left: 10px;
    padding-left: 14px;
}

.torres-submenu__dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #AEB8C2;
}

.torres-menu__link:hover .torres-submenu__dot,
.torres-menu__link.is-active .torres-submenu__dot {
    background: var(--torres-red);
}

.torres-menu__separator {
    display: block !important;
    width: calc(100% - 16px) !important;
    height: 1px;
    margin: 10px 8px !important;
    background: var(--torres-line);
}

.torres-sidebar__footer {
    flex: 0 0 auto;
    padding: 15px 18px;
    border-top: 1px solid var(--torres-line);
}

.torres-system-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.torres-system-indicator > span {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2FC98B;
    box-shadow: 0 0 0 4px rgba(47, 201, 139, .14);
}

.torres-system-indicator strong,
.torres-system-indicator small {
    display: block;
}

.torres-system-indicator strong {
    color: #56697C;
    font-size: 11.5px;
    font-weight: 800;
}

.torres-system-indicator small {
    margin-top: 2px;
    color: #9AA5AF;
    font-size: 10px;
}

.torres-sidebar-backdrop {
    display: none;
}

/* COLLAPSED DESKTOP */
body.torres-sidebar-collapsed {
    --torres-sidebar-width: var(--torres-sidebar-collapsed);
}

body.torres-sidebar-collapsed .torres-brand__full {
    display: none;
}

body.torres-sidebar-collapsed .torres-brand__icon {
    display: block;
}

body.torres-sidebar-collapsed .torres-topbar__brand-zone {
    justify-content: center;
    padding-inline: 10px;
}

body.torres-sidebar-collapsed .torres-sidebar__header {
    justify-content: center;
    padding-inline: 10px;
}

body.torres-sidebar-collapsed .torres-sidebar__header > span,
body.torres-sidebar-collapsed .torres-menu__text,
body.torres-sidebar-collapsed .torres-menu__chevron,
body.torres-sidebar-collapsed .torres-sidebar__footer,
body.torres-sidebar-collapsed .torres-submenu {
    display: none !important;
}

body.torres-sidebar-collapsed .torres-sidebar__collapse svg {
    transform: rotate(180deg);
}

body.torres-sidebar-collapsed .torres-sidebar__scroll {
    padding-inline: 10px;
}

body.torres-sidebar-collapsed .torres-menu__link {
    justify-content: center;
    padding-inline: 0;
}

body.torres-sidebar-collapsed .torres-menu__link.is-active {
    box-shadow: none;
}

/* MAIN CONTENT - isolated from legacy .page-wrapper */
.torres-main {
    min-height: calc(100vh - var(--torres-topbar-height));
    margin-left: var(--torres-sidebar-width);
    padding-top: var(--torres-topbar-height);
    background: var(--torres-canvas);
    transition: margin-left var(--torres-transition);
}

.torres-content.slx-layout-content {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 28px 30px 34px !important;
}

.torres-app-body .container-fluid {
    max-width: 100%;
}

.torres-app-body .btn-primary,
.torres-app-body .badge-primary {
    background-color: var(--torres-red) !important;
    border-color: var(--torres-red) !important;
}

.torres-app-body .btn-primary:hover,
.torres-app-body .btn-primary:focus {
    background-color: var(--torres-red-dark) !important;
    border-color: var(--torres-red-dark) !important;
}

.torres-app-body a.text-primary,
.torres-app-body .text-primary {
    color: var(--torres-red) !important;
}

.torres-app-body input:focus,
.torres-app-body select:focus,
.torres-app-body textarea:focus,
.torres-app-body .form-control:focus {
    border-color: rgba(223, 1, 18, .55) !important;
    box-shadow: 0 0 0 .18rem rgba(223, 1, 18, .10) !important;
}

/* FLOATING CHAT / TASKS - same interaction pattern as SmartLUB current shell */
.torres-floating-rail {
    position: fixed;
    top: auto;
    right: 22px;
    bottom: 86px;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: none;
}

.torres-floating-action {
    position: relative;
}

.torres-floating-action__button {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(25, 37, 52, .18);
    transition: transform var(--torres-transition), box-shadow var(--torres-transition), filter var(--torres-transition);
}

.torres-floating-action__button--chat {
    background: linear-gradient(145deg, #E21625 0%, var(--torres-red-dark) 100%);
}

.torres-floating-action__button--tasks {
    background: linear-gradient(145deg, #2E3338 0%, #111315 100%);
}

.torres-floating-action__button:hover,
.torres-floating-action__button:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(25, 37, 52, .23);
    filter: brightness(1.04);
    outline: none;
}

.torres-floating-action__button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.torres-notify.notify {
    top: 3px !important;
    right: 3px !important;
}

.torres-notify .point {
    background-color: #FF4052 !important;
}

.torres-notify .heartbit {
    border-color: #FF4052 !important;
}

.torres-floating-dropdown {
    position: absolute !important;
    top: 0 !important;
    right: 70px !important;
    left: auto !important;
    width: 370px !important;
    max-width: min(370px, calc(100vw - 110px)) !important;
    margin: 0 !important;
    transform: none !important;
}

.torres-dropdown.slx-dropdown-panel {
    border: 1px solid var(--torres-line) !important;
    border-radius: 15px !important;
    box-shadow: var(--torres-shadow-md) !important;
    overflow: hidden;
}

.torres-dropdown__header {
    background: #FAFAFB !important;
    border-bottom: 1px solid var(--torres-line);
    color: var(--torres-ink) !important;
}

.torres-dropdown .slx-dropdown-footer a,
.torres-dropdown a:hover .slx-dd-title {
    color: var(--torres-red) !important;
}

.torres-dropdown .slx-dd-badge {
    background: var(--torres-red) !important;
    color: #fff !important;
}

/* FOOTER */
.torres-footer {
    margin-left: var(--torres-sidebar-width);
    background: #fff;
    border-top: 1px solid var(--torres-line);
    transition: margin-left var(--torres-transition);
}

.torres-footer__inner {
    min-height: 64px;
    max-width: 1680px;
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.torres-footer__inner > div:first-child strong,
.torres-footer__inner > div:first-child span {
    display: block;
}

.torres-footer__inner > div:first-child strong {
    color: var(--torres-ink);
    font-size: 12px;
}

.torres-footer__inner > div:first-child span {
    margin-top: 2px;
    color: var(--torres-muted);
    font-size: 10.5px;
}

.torres-footer__links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #777D83;
    font-size: 10.5px;
}

.torres-footer__links a:hover {
    color: var(--torres-red);
}

.torres-footer__powered {
    padding-left: 13px;
    border-left: 1px solid var(--torres-line);
    color: #9A9FA4;
}

/* Explicit protection from Monster/Material horizontal theme rules */
@media (min-width: 768px) {
    .torres-navigation .torres-menu > .torres-menu__item,
    .torres-navigation .torres-menu .torres-menu__item {
        display: block !important;
        width: 100% !important;
    }

    .torres-navigation .torres-submenu {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* RESPONSIVE */
@media (max-width: 1180px) {
    .torres-topbar__workspace {
        display: none;
    }

    .torres-topbar {
        grid-template-columns: var(--torres-sidebar-width) minmax(0, 1fr) auto;
    }
}

@media (max-width: 991.98px) {
    :root {
        --torres-topbar-height: 72px;
        --torres-sidebar-width: 282px;
    }

    body.torres-app-body,
    body.torres-sidebar-collapsed {
        --torres-sidebar-width: 282px;
    }

    body.torres-sidebar-open {
        overflow: hidden;
    }

    .torres-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .torres-topbar__brand-zone {
        min-width: 0;
        padding: 0 14px;
        border-right: 0;
    }

    .torres-mobile-menu {
        display: inline-flex;
    }

    .torres-brand__full,
    body.torres-sidebar-collapsed .torres-brand__full {
        display: block;
        width: 168px;
    }

    .torres-brand__icon,
    body.torres-sidebar-collapsed .torres-brand__icon {
        display: none;
    }

    .torres-topbar__actions {
        padding-right: 13px;
    }

    .torres-sidebar {
        transform: translateX(-102%);
        width: 282px;
        box-shadow: 14px 0 42px rgba(0, 0, 0, .20);
    }

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

    .torres-sidebar__collapse {
        display: none;
    }

    .torres-sidebar__close {
        display: inline-flex;
    }

    body.torres-sidebar-collapsed .torres-sidebar__header > span,
    body.torres-sidebar-collapsed .torres-menu__text,
    body.torres-sidebar-collapsed .torres-menu__chevron,
    body.torres-sidebar-collapsed .torres-sidebar__footer {
        display: initial !important;
    }

    body.torres-sidebar-collapsed .torres-sidebar__footer {
        display: block !important;
    }

    body.torres-sidebar-collapsed .torres-submenu {
        display: block;
    }

    body.torres-sidebar-collapsed .torres-sidebar__header {
        justify-content: space-between;
        padding: 0 18px 0 23px;
    }

    body.torres-sidebar-collapsed .torres-menu__link {
        justify-content: flex-start;
        padding: 7px 10px;
    }

    .torres-sidebar-backdrop {
        position: fixed;
        inset: var(--torres-topbar-height) 0 0 0;
        z-index: 1030;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(10, 13, 17, .46);
        backdrop-filter: blur(2px);
        transition: opacity var(--torres-transition), visibility var(--torres-transition);
    }

    body.torres-sidebar-open .torres-sidebar-backdrop {
        visibility: visible;
        opacity: 1;
    }

    .torres-main,
    .torres-footer {
        margin-left: 0;
    }

    .torres-content.slx-layout-content {
        padding: 20px 18px 28px !important;
    }

    .torres-floating-rail {
        right: 15px;
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .torres-floating-dropdown {
        top: auto !important;
        right: 68px !important;
        bottom: 0 !important;
    }
}

@media (max-width: 720px) {
    .torres-topbar__help span,
    .torres-profile__identity {
        display: none;
    }

    .torres-topbar__help {
        width: 46px;
        padding: 0;
    }

    .torres-profile__toggle {
        padding: 4px !important;
    }

    .torres-profile__chevron {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .torres-brand__full,
    body.torres-sidebar-collapsed .torres-brand__full {
        width: 135px;
    }

    .torres-topbar__actions {
        gap: 5px;
        padding-right: 8px;
    }

    .torres-topbar__icon-btn,
    .torres-topbar__help {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 11px;
    }

    .torres-profile__avatar {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px;
    }

    .torres-content.slx-layout-content {
        padding: 16px 12px 24px !important;
    }

    .torres-floating-action__button {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .torres-floating-dropdown {
        position: fixed !important;
        top: var(--torres-topbar-height) !important;
        right: 8px !important;
        bottom: auto !important;
        left: 8px !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100vh - var(--torres-topbar-height) - 16px);
        overflow-y: auto;
        margin-top: 8px !important;
        transform: none !important;
    }

    .torres-profile-menu {
        position: fixed !important;
        top: var(--torres-topbar-height) !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        margin-top: 8px !important;
        transform: none !important;
    }

    .torres-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 14px;
    }

    .torres-footer__links {
        gap: 10px;
    }

    .torres-footer__powered {
        padding-left: 0;
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .torres-preloader__mark::after {
        animation: none;
    }

    .torres-sidebar,
    .torres-topbar,
    .torres-main,
    .torres-footer,
    .torres-floating-action__button,
    .torres-menu__link {
        transition: none !important;
    }
}
