﻿/* ==========================================================
   SOLIX INTEGRA — Identidade Visual 2026
   Paleta extraída do logotipo:
     Azul-marinho  #043C7A  (wordmark "SOLIX")
     Azul-vibrante #2199EA  (selo, circuito e faixa "INTEGRA")
   ========================================================== */
:root {
    /* Marca */
    --sx-navy: #043c7a;
    --sx-navy-2: #0a4f9e;
    --sx-navy-3: #1a66b8;
    --sx-navy-deep: #022a57;
    --sx-blue: #2199ea;
    --sx-blue-dark: #1179c9;
    --sx-blue-tint: #e6f3fd;

    /* Neutros (levemente azulados, combinando com a marca) */
    --sx-bg: #f2f6fb;
    --sx-card: #ffffff;
    --sx-border: #e1e8f1;
    --sx-text: #0f2238;
    --sx-muted: #5f6f86;
    --sx-radius: 14px;
    --sidebar-w: 84px;

    /* Tokens usados pelo restante do sistema */
    --accent: #2199EA !important;
    --accent-dark: #1179C9 !important;
    --accent-soft: #F2F8FE !important;

    /* Aliases legados: mantêm compatível qualquer página que ainda use os nomes antigos */
    --rc-navy: var(--sx-navy);
    --rc-navy-2: var(--sx-navy-2);
    --rc-navy-3: var(--sx-navy-3);
    --rc-orange: var(--sx-blue);
    --rc-orange-dark: var(--sx-blue-dark);
    --rc-orange-tint: var(--sx-blue-tint);
    --rc-bg: var(--sx-bg);
    --rc-card: var(--sx-card);
    --rc-border: var(--sx-border);
    --rc-text: var(--sx-text);
    --rc-muted: var(--sx-muted);
    --rc-radius: var(--sx-radius);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--sx-bg) !important;
    color: var(--sx-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .brand, .display {
    font-family: 'Sora', sans-serif;
}

a {
    text-decoration: none;
}

/* ---------- Layout shell ---------- */
.app {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--sx-navy) 0%, var(--sx-navy-deep) 100%) !important;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 16px;
    z-index: 1040;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transition: transform .25s ease, width .2s ease;
    height:100% !important

}

    .sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.15);
        border-radius: 10px;
    }

    .sidebar .logo-mark {
        width: 38px;
        height: 38px;
        min-width: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--sx-blue);
        font-size: 1.6rem;
        margin-bottom: 28px;
    }

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: center;

}

    .sidebar-nav .nav-item {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

.sidebar-nav .nav-link {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #a9c6e6;
    font-size: 1.15rem;
    transition: .15s ease;
}

    .sidebar-nav .nav-link .nav-label,
    .sidebar-nav .nav-link .nav-caret {
        display: none;
    }

    .sidebar-nav .nav-link:hover {
        background: rgba(33,153,234,.12);
        color: #fff;
    }

    .sidebar-nav .nav-link.active {
        background: var(--sx-blue);
        color: #fff;
        box-shadow: 0 6px 16px -4px rgba(33,153,234,.55);
    }

        .sidebar-nav .nav-link.active::before {
            content: "";
            position: absolute;
            left: -16px;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--sx-blue);
        }

/* Submenu: collapsed by default everywhere. Expanded inline (accordion)
     wherever the sidebar itself is expanded — on hover (desktop) or
     as the open drawer (mobile). See the two contexts further below. */
.submenu {
    max-height: 0;
    overflow: hidden;
    padding: 2px 0 4px 30px;
    transition: max-height .2s ease;
}

.nav-item.open .submenu {
    max-height: 560px;
}

.submenu-title {
    display: none;
}

.submenu-link {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: #d2e3f5;
    white-space: nowrap;
}

    .submenu-link:hover {
        background: rgba(33,153,234,.16);
        color: #fff;
    }

.sidebar-bottom {
    margin-top: 12px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,26,56,.55);
    z-index: 1030;
}

/* ---------- Desktop: hover to expand the rail, click to open submenu ---------- */
@media (min-width: 992px) {
    .sidebar:hover,
    .sidebar:focus-within {
        width: 290px;
        box-shadow: 16px 0 44px -20px rgba(2,26,56,.45);
        align-items: stretch;
        padding-left: 14px;
        padding-right: 14px;
    }

        .sidebar:hover .logo-mark,
        .sidebar:focus-within .logo-mark {
            align-self: flex-start;
            margin-left: 2px;
        }

        .sidebar:hover .nav-item,
        .sidebar:focus-within .nav-item {
            align-items: stretch;
        }

        .sidebar:hover .nav-link,
        .sidebar:focus-within .nav-link {
            width: 100%;
            justify-content: flex-start;
            gap: 12px;
            padding: 0 12px;
        }

            .sidebar:hover .nav-link .nav-label,
            .sidebar:focus-within .nav-link .nav-label {
                display: block;
                font-family: 'Inter',sans-serif;
                font-weight: 600;
                font-size: .86rem;
                flex: 1;
                text-align: left;
                white-space: nowrap;
            }

            .sidebar:hover .nav-link .nav-caret,
            .sidebar:focus-within .nav-link .nav-caret {
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: .72rem;
                color: #8fb0d6;
                transition: transform .15s ease, color .15s ease;
            }

            .sidebar:hover .nav-link.active::before,
            .sidebar:focus-within .nav-link.active::before {
                display: none;
            }

        .sidebar:hover .nav-item.open .nav-caret,
        .sidebar:focus-within .nav-item.open .nav-caret {
            transform: rotate(90deg);
            color: #fff;
        }

    .sidebar-bottom {
        align-items: center;
    }

    .sidebar:hover .sidebar-bottom,
    .sidebar:focus-within .sidebar-bottom {
        align-items: stretch;
    }

        .sidebar:hover .sidebar-bottom .nav-link,
        .sidebar:focus-within .sidebar-bottom .nav-link {
            width: 100%;
            justify-content: flex-start;
            gap: 12px;
            padding: 0 12px;
        }

            .sidebar:hover .sidebar-bottom .nav-link .nav-label,
            .sidebar:focus-within .sidebar-bottom .nav-link .nav-label {
                display: block;
                font-family: 'Inter',sans-serif;
                font-weight: 600;
                font-size: .86rem;
            }
}

/* ---------- Main column ---------- */
.main {
    flex: 1;
    min-width: 0; /* permite que o item encolha abaixo do conteúdo */
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: var(--sx-card) !important;
    border-bottom: 1px solid var(--sx-border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1020;
    color: var(--sx-text);
}

.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--sx-navy) 0%, var(--sx-blue) 55%, rgba(33,153,234,0) 100%);
    pointer-events: none;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 0 0 auto;
}

.brand-logo-img {
    height: 60px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}

.brand-divider {
    width: 1px;
    height: 26px;
    background: var(--sx-border);
    flex: 0 0 auto;
}

.brand-tagline {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .62rem;
    line-height: 1.3;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #7f93ad;
    white-space: nowrap;
}

.greeting-block {
    min-width: 0;
    overflow: hidden;
    margin-left: 16px;
}

.greeting-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-burger {
    display: none;
    border: none;
    background: none;
    font-size: 1.3rem;
    color: var(--sx-navy);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

    .btn-burger:hover {
        background: var(--sx-bg);
    }

.greeting-eyebrow {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sx-muted);
    font-weight: 600;
}

.greeting-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--sx-navy);
}

.date-plate {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--sx-navy-2);
    background: var(--sx-bg);
    border: 1px solid var(--sx-border);
    border-radius: 8px;
    padding: 6px 12px;
}

.user-chip {
    display: flex !important;
    align-items: center !important;
    gap: .6rem !important;
    background: #f3f8fd !important;
    border: 1px solid var(--sx-border) !important;
    border-radius: 999px !important;
    padding: .3rem .85rem .3rem .3rem !important;
    cursor: pointer !important;
    font: inherit !important;
    color: inherit !important;
}

    .user-chip:hover {
        background: #e4effa !important;
    }

    .user-chip .avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: var(--sx-navy) !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.05rem !important;
        flex: none !important;
    }

    .user-chip .user-meta {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    .user-chip .user-name {
        font-weight: 700 !important;
        font-size: 13.5px !important;
        color: var(--sx-text) !important;
    }

    .user-chip .user-role {
        font-size: 11.5px !important;
        color: var(--sx-navy-2) !important;
        font-weight: 600 !important;
    }

    .user-chip .chevron-icon {
        margin-left: .15rem !important;
        font-size: .7rem !important;
        color: var(--sx-muted) !important;
        transition: transform .15s ease !important;
    }

    .user-chip[aria-expanded="true"] .chevron-icon {
        transform: rotate(180deg) !important;
    }

@media (max-width:575.98px) {
    .user-chip .user-meta {
        display: none !important;
    }
}

.user-dropdown {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(4,60,122,.18) !important;
    padding: .55rem !important;
    min-width: 200px !important;
    margin-top: .6rem !important;
}

    .user-dropdown .dropdown-item {
        display: flex !important;
        align-items: center !important;
        gap: .65rem !important;
        padding: .65rem .75rem !important;
        border-radius: 10px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: var(--sx-text) !important;
    }

        .user-dropdown .dropdown-item i {
            font-size: 1rem !important;
            width: 18px !important;
            text-align: center !important;
        }

        .user-dropdown .dropdown-item:hover {
            background: var(--sx-bg) !important;
        }

        .user-dropdown .dropdown-item.item-danger {
            color: var(--accent-dark) !important;
        }

            .user-dropdown .dropdown-item.item-danger:hover {
                background: var(--accent-soft) !important;
            }

    .user-dropdown .dropdown-divider {
        margin: .4rem 0 !important;
        border-color: var(--sx-border) !important;
    }


/* Safety net: guarantees the open/closed state renders correctly for
     #userChipMenu even if the host page's own Bootstrap CSS (a different
     version, or none at all) doesn't define .dropdown-menu / .show. */
#userChipMenu {
    display: none !important;
}

    #userChipMenu.show {
        display: block !important;
    }

.content {
    flex: 1;
    min-width: 0; /* mesma correção aqui */
    padding: 28px;
}

.page-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--sx-navy);
    margin-bottom: 2px;
}

.page-subtitle {
    color: var(--sx-muted);
    font-size: .92rem;
    margin-bottom: 22px;
}

/* ---------- Quick access cards ---------- */
.quick-card {
    background: var(--sx-card);
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    transition: .15s ease;
    color: var(--sx-text);
}

    .quick-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px -18px rgba(4,60,122,.35);
        border-color: #c9dbee;
    }

    .quick-card .qc-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
    }

    .quick-card .qc-title {
        font-weight: 700;
        font-size: .95rem;
        color: var(--sx-navy);
        margin-bottom: 1px;
    }

    .quick-card .qc-sub {
        font-size: .8rem;
        color: var(--sx-muted);
    }

    .quick-card .qc-arrow {
        margin-left: auto;
        color: #b7cbe2;
        font-size: 1.1rem;
    }

    .quick-card:hover .qc-arrow {
        color: var(--sx-blue);
    }

.qc-icon.bg-primary-tone {
    background: var(--sx-navy);
    color: #fff;
}

.qc-icon.bg-orange-tone {
    background: var(--sx-blue);
    color: #fff;
}

.qc-icon.bg-orange-soft {
    background: var(--sx-blue-tint);
    color: var(--sx-blue-dark);
}

.qc-icon.bg-navy-soft {
    background: #e3eefa;
    color: var(--sx-navy-2);
}

/* ---------- Modules block (tabs + tile grid) ---------- */
.modules-card {
    background: var(--sx-card);
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    padding: 22px;
}

.modules-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.tab-track {
    display: inline-flex;
    background: var(--sx-bg);
    border: 1px solid var(--sx-border);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

    .tab-track::-webkit-scrollbar {
        display: none;
    }

.tab-btn {
    border: none;
    background: transparent;
    color: var(--sx-muted);
    font-weight: 600;
    font-size: .83rem;
    padding: 8px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: .15s ease;
    white-space: nowrap;
}

    .tab-btn i {
        font-size: .95rem;
    }

    .tab-btn .tab-count {
        background: rgba(0,0,0,.06);
        color: var(--sx-muted);
        font-size: .7rem;
        font-weight: 700;
        padding: 1px 7px;
        border-radius: 999px;
    }

    .tab-btn:hover {
        color: var(--sx-navy);
    }

    .tab-btn.active {
        background: var(--sx-navy);
        color: #fff;
        box-shadow: 0 6px 14px -6px rgba(4,60,122,.5);
    }

        .tab-btn.active .tab-count {
            background: var(--sx-blue);
            color: #fff;
        }

.search-mini {
    position: relative;
    min-width: 220px;
}

    .search-mini i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--sx-muted);
        font-size: .9rem;
    }

    .search-mini input {
        width: 100%;
        border: 1px solid var(--sx-border);
        background: var(--sx-bg);
        border-radius: 10px;
        padding: 9px 12px 9px 34px;
        font-size: .85rem;
        color: var(--sx-text);
    }

        .search-mini input:focus {
            outline: none;
            border-color: var(--sx-blue);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(33,153,234,.12);
        }

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 14px;
}

.tile {
    border: 1px solid var(--sx-border);
    border-radius: 12px;
    background: var(--sx-card);
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: var(--sx-text);
    transition: .15s ease;
}

    .tile:hover {
        transform: translateY(-3px);
        border-color: var(--sx-blue);
        box-shadow: 0 14px 26px -16px rgba(33,153,234,.35);
    }

.tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--sx-blue-tint);
    color: var(--sx-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: .15s ease;
}

.tile:hover .tile-icon {
    background: var(--sx-blue);
    color: #fff;
}

.tile-label {
    font-size: .79rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--sx-navy);
}

.tile-empty {
    grid-column: 1/-1;
    text-align: center;
    color: var(--sx-muted);
    font-size: .85rem;
    padding: 30px 0;
}

footer.app-footer {
    padding: 16px 28px 24px;
    color: var(--sx-muted);
    font-size: .8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
        align-items: flex-start;
        padding: 20px 14px;
    }

        .sidebar.show {
            transform: translateX(0);
        }

            .sidebar.show ~ .sidebar-backdrop {
                display: block;
            }

        .sidebar .logo-mark {
            margin-bottom: 18px;
        }

    .sidebar-nav {
        align-items: stretch;
    }

    .nav-item {
        align-items: stretch;
    }

    .sidebar-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        padding: 0 12px;
    }

        .sidebar-nav .nav-link .nav-label {
            display: block;
            font-family: 'Inter',sans-serif;
            font-weight: 600;
            font-size: .86rem;
            flex: 1;
            text-align: left;
        }

        .sidebar-nav .nav-link .nav-caret {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            font-size: .72rem;
            color: #8fb0d6;
            border-radius: 8px;
            transition: transform .15s ease, background .15s ease;
        }

            .sidebar-nav .nav-link .nav-caret:hover {
                background: rgba(255,255,255,.08);
                color: #fff;
            }

    .nav-item.open .nav-caret {
        transform: rotate(90deg);
        color: #fff;
    }

    .sidebar-nav .nav-link.active::before {
        display: none;
    }

    /* Submenu inherits the animated max-height accordion from the base rules above */
    .submenu-link {
        color: #d2e3f5;
        padding: 7px 10px;
        font-size: .82rem;
    }

        .submenu-link:hover {
            background: rgba(33,153,234,.16);
            color: #fff;
        }

    .sidebar-bottom {
        align-items: stretch;
    }

        .sidebar-bottom .nav-link {
            width: 100%;
            justify-content: flex-start;
            gap: 12px;
            padding: 0 12px;
        }

            .sidebar-bottom .nav-link .nav-label {
                display: block;
                font-family: 'Inter',sans-serif;
                font-weight: 600;
                font-size: .86rem;
            }

    .main {
        margin-left: 0;
    }

    .btn-burger {
        display: flex;
    }

    .greeting-name {
        font-size: .95rem;
    }

    .search-mini {
        width: 100%;
        min-width: 0;
    }

    .modules-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-track {
        width: 100%;
    }

    .tab-btn {
        flex: 0 0 auto;
    }

    .brand-divider, .brand-tagline {
        display: none;
    }

    .brand-logo-img {
        height: 26px;
    }

    .greeting-block {
        margin-left: 12px;
    }
}

@media (max-width: 575.98px) {
    .content {
        padding: 18px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .date-plate {
        display: none;
    }

    .tiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
        gap: 10px;
    }

    .tile {
        padding: 14px 8px;
    }

    .modules-card {
        padding: 16px;
    }
}

:focus-visible {
    outline: 2px solid var(--sx-blue);
    outline-offset: 2px;
}
.nav-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 4px;
}

.nav-pills .nav-link {
    flex: 0 0 auto !important;
    width: auto !important;
}
/* ---------- Botões alinhados ao tema ---------- */
.btn-primary {
    background-color: var(--sx-blue) !important;
    border-color: var(--sx-blue) !important;
    color: #fff !important;
}

    .btn-primary:hover {
        background-color: var(--sx-blue-dark) !important;
        border-color: var(--sx-blue-dark) !important;
        color: #fff !important;
    }

    .btn-primary:focus,
    .btn-primary.focus {
        background-color: var(--sx-blue-dark) !important;
        border-color: var(--sx-blue-dark) !important;
        box-shadow: 0 0 0 3px rgba(33,153,234,.35) !important;
    }

    .btn-primary:active,
    .btn-primary.active {
        background-color: var(--sx-blue-dark) !important;
        border-color: var(--sx-blue-dark) !important;
        color: #fff !important;
    }

    .btn-primary:disabled,
    .btn-primary.disabled {
        background-color: var(--sx-blue) !important;
        border-color: var(--sx-blue) !important;
        opacity: .55 !important;
    }

/* ---------- Secondary ---------- */
.btn-secondary {
    background-color: var(--sx-navy-2) !important;
    border-color: var(--sx-navy-2) !important;
    color: #fff !important;
}

    .btn-secondary:hover {
        background-color: var(--sx-navy) !important;
        border-color: var(--sx-navy) !important;
        color: #fff !important;
    }

    .btn-secondary:focus,
    .btn-secondary.focus {
        background-color: var(--sx-navy) !important;
        border-color: var(--sx-navy) !important;
        box-shadow: 0 0 0 3px rgba(4,60,122,.35) !important;
    }

    .btn-secondary:active,
    .btn-secondary.active {
        background-color: var(--sx-navy) !important;
        border-color: var(--sx-navy) !important;
        color: #fff !important;
    }

    .btn-secondary:disabled,
    .btn-secondary.disabled {
        background-color: var(--sx-navy-2) !important;
        border-color: var(--sx-navy-2) !important;
        opacity: .55 !important;
    }

/* ---------- Outline variants (opcional, se usar em algum lugar) ---------- */
.btn-outline-primary {
    color: var(--sx-blue) !important;
    border-color: var(--sx-blue) !important;
}

    .btn-outline-primary:hover {
        background-color: var(--sx-blue) !important;
        border-color: var(--sx-blue) !important;
        color: #fff !important;
    }

.btn-outline-secondary {
    color: var(--sx-navy-2) !important;
    border-color: var(--sx-border) !important;
}

    .btn-outline-secondary:hover {
        background-color: var(--sx-navy-2) !important;
        border-color: var(--sx-navy-2) !important;
        color: #fff !important;
    }

#rc-alert-root {
    --navy: #043C7A !important;
    --navy-soft: #0A4F9E !important;
    --blue: #2199EA !important;
    --blue-soft: #E4F2FD !important;
    --blue-line: #A9D5F7 !important;
    --ink: #0F2238 !important;
    --ink-muted: #5F6F86 !important;
    --bg-card: #FFFFFF !important;
    --ring: rgba(33, 153, 234, 0.35) !important;
    box-sizing: border-box !important;
    max-width: 780px !important;
    width: 100% !important;
}

    #rc-alert-root *,
    #rc-alert-root *::before,
    #rc-alert-root *::after {
        box-sizing: inherit !important;
    }

.rc-alert {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 18px 20px !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%) !important;
    border: 1px solid var(--blue-line) !important;
    border-left: 4px solid var(--blue) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(33, 153, 234, 0.08) !important;
    cursor: pointer !important;
    text-align: left !important;
    appearance: none !important;
    font-family: inherit !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
    animation: rc-settle 420ms ease-out !important;
}

    .rc-alert:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06), 0 10px 24px rgba(33, 153, 234, 0.16) !important;
        border-color: var(--blue) !important;
    }

    .rc-alert:active {
        transform: translateY(0) !important;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
    }

    .rc-alert:focus-visible {
        outline: none !important;
        box-shadow: 0 0 0 3px var(--ring), 0 4px 14px rgba(33, 153, 234, 0.12) !important;
    }

.rc-alert__icon {
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
    background: var(--blue-soft) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

    .rc-alert__icon svg {
        width: 22px !important;
        height: 22px !important;
        color: var(--blue) !important;
    }

.rc-alert__pulse {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: var(--blue) !important;
    box-shadow: 0 0 0 2px #fff !important;
}

    .rc-alert__pulse::after {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        border-radius: 50% !important;
        background: var(--blue) !important;
        animation: rc-pulse 2000ms ease-out infinite !important;
    }

.rc-alert__body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.rc-alert__top {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 3px !important;
}

.rc-alert__title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    letter-spacing: -0.01em !important;
}

.rc-alert__tag {
    flex: 0 0 auto !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #0B5AA8 !important;
    background: var(--blue-soft) !important;
    border: 1px solid var(--blue-line) !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
}

.rc-alert__desc {
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: var(--ink-muted) !important;
}

    .rc-alert__desc b {
        color: var(--ink) !important;
        font-weight: 600 !important;
    }

.rc-alert__cta {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    align-self: center !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--navy) !important;
    white-space: nowrap !important;
    padding: 9px 14px !important;
    border-radius: 9px !important;
    background: #fff !important;
    border: 1px solid #DCE6F1 !important;
    transition: background 160ms ease, border-color 160ms ease, gap 160ms ease !important;
}

.rc-alert:hover .rc-alert__cta {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: #fff !important;
    gap: 9px !important;
}

.rc-alert__cta svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 auto !important;
}

@keyframes rc-pulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

@keyframes rc-settle {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rc-alert,
    .rc-alert__pulse::after {
        animation: none !important;
    }

        .rc-alert:hover {
            transform: none !important;
        }
}

/* Responsive: stack CTA below on narrow widths */
@media (max-width: 480px) {
    .rc-alert {
        flex-wrap: wrap !important;
        padding: 16px !important;
    }

    .rc-alert__cta {
        margin-left: 58px !important;
        align-self: flex-start !important;
    }
}

/* Toast (demo feedback only) */
.rc-toast {
    position: fixed !important;
    left: 50% !important;
    bottom: 28px !important;
    transform: translate(-50%, 12px) !important;
    background: var(--navy) !important;
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 200ms ease, transform 200ms ease !important;
    z-index: 50 !important;
    white-space: nowrap !important;
}

    .rc-toast.rc-toast--show {
        opacity: 1 !important;
        transform: translate(-50%, 0) !important;
    }


/* ==========================================================
     BOTÃO FLUTUANTE DO WHATSAPP
     Copie este bloco de CSS para o seu arquivo .css
     (ou dentro de uma tag <style> na sua página).
     Usa as mesmas variáveis --sx-* do seu tema.
  ========================================================== */
.rc-wa-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Inter',sans-serif;
}

.rc-wa-fab__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 24px -6px rgba(37,211,102,.55), 0 2px 6px rgba(4,60,122,.15);
    transition: transform .18s ease, box-shadow .18s ease;
    text-decoration: none;
}

    .rc-wa-fab__link:hover {
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 14px 30px -6px rgba(37,211,102,.65), 0 4px 10px rgba(4,60,122,.18);
    }

    .rc-wa-fab__link:active {
        transform: translateY(-1px) scale(1.0);
    }

    .rc-wa-fab__link svg {
        width: 30px;
        height: 30px;
    }

/* pulso sutil de "disponível agora" — usa o laranja da marca */
.rc-wa-fab__ping {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sx-blue, #2199ea);
    box-shadow: 0 0 0 2px #fff;
}

    .rc-wa-fab__ping::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--sx-blue, #2199ea);
        animation: rc-wa-pulse 2000ms ease-out infinite;
    }

@keyframes rc-wa-pulse {
    0% {
        transform: scale(1);
        opacity: .65;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* balão/tooltip com texto — some no mobile para não ocupar espaço */
.rc-wa-fab__label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    background: #fff;
    color: #043c7a;
    font-weight: 600;
    font-size: .82rem;
    border: 1px solid #e1e8f1;
    border-radius: 10px;
    padding: 0;
    margin-right: 0;
    box-shadow: 0 6px 16px -6px rgba(4,60,122,.2);
    transition: max-width .25s ease, padding .25s ease, margin .25s ease;
}

.rc-wa-fab:hover .rc-wa-fab__label {
    max-width: 220px;
    padding: 10px 14px;
    margin-right: 10px;
}

@media (max-width: 575.98px) {
    .rc-wa-fab {
        right: 16px;
        bottom: 16px;
    }

    .rc-wa-fab__link {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

        .rc-wa-fab__link svg {
            width: 26px;
            height: 26px;
        }

    .rc-wa-fab__label {
        display: none;
    }
    /* evita ocupar tela em telas pequenas */
}

@media (prefers-reduced-motion: reduce) {
    .rc-wa-fab__ping::after {
        animation: none;
    }
}
/* ---------- Compras row: CTA + status counters ---------- */
.purchases-card {
    background: var(--sx-card);
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    padding: 20px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.purchases-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.purchases-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background: #fff;
    color: var(--sx-blue);
    border: 1.5px solid var(--sx-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.purchases-title {
    font-weight: 700;
    font-size: .98rem;
    color: var(--sx-navy);
}

.purchases-sub {
    font-size: .8rem;
    color: var(--sx-muted);
}

.purchases-cta {
    white-space: nowrap;
}

.purchases-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.purchase-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sx-text);
}

    .purchase-stat:hover .purchase-stat-value {
        color: var(--sx-blue-dark);
    }

.purchase-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
}

.purchase-icon--sent {
    background: rgba(4,60,122,.1);
    color: var(--sx-navy-2);
}

.purchase-icon--pending {
    background: var(--sx-blue-tint);
    color: var(--sx-blue-dark);
}

.purchase-icon--approved {
    background: rgba(29,154,108,.12);
    color: #1d9a6c;
}

.purchase-icon--rejected {
    background: rgba(214,69,69,.12);
    color: #d64545;
}

.purchase-stat-value {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: var(--sx-navy);
    font-size: 1rem;
    transition: color .15s ease;
}

.purchase-stat-label {
    font-size: .78rem;
    color: var(--sx-muted);
}

@media (max-width: 575.98px) {
    .purchases-card {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .purchases-main {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .purchases-cta {
        width: 100%;
        justify-content: center;
    }

    .purchases-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
        width: 100%;
    }
}

.purchases-heading {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 14px;
}

    .purchases-heading .purchases-icon {
        flex-shrink: 0;
    }

/* ---------- Compras: fila do time de Compras (dentro do mesmo card) ---------- */
.purchases-divider {
    width: 100%;
    height: 1px;
    background: var(--sx-border);
}

.purchases-queue {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
}

.purchases-queue-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--sx-blue-tint);
    border: 1px solid #b9dcf7;
    border-radius: 12px;
    color: var(--sx-text);
    transition: .15s ease;
    flex: 1;
    min-width: 0;
}

    .purchases-queue-alert:hover {
        background: #d6ebfc;
        border-color: var(--sx-blue);
    }

.purchases-queue-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: var(--sx-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.purchases-queue-title {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    color: var(--sx-navy);
}

    .purchases-queue-title strong {
        font-family: 'Sora', sans-serif;
        font-weight: 800;
        color: var(--sx-blue-dark);
    }

.purchases-queue-sub {
    display: block;
    font-size: .76rem;
    color: var(--sx-muted);
}

.purchases-queue-arrow {
    margin-left: auto;
    color: var(--sx-blue-dark);
    flex: 0 0 auto;
}

/* Quadradinhos de status (Finalizadas / Canceladas) */
.purchases-queue-tiles {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.purchases-queue-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 88px;
    min-width: 88px;
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    border: 1px solid transparent;
    transition: .15s ease;
}

    .purchases-queue-tile:hover {
        transform: translateY(-2px);
    }

.purchases-queue-tile--approved {
    background: rgba(29,154,108,.10);
}

    .purchases-queue-tile--approved:hover {
        border-color: #1d9a6c;
    }

.purchases-queue-tile--cancelled {
    background: rgba(214,69,69,.10);
}

    .purchases-queue-tile--cancelled:hover {
        border-color: #d64545;
    }

.pqt-icon {
    font-size: 1.1rem;
}

.purchases-queue-tile--approved .pqt-icon {
    color: #1d9a6c;
}

.purchases-queue-tile--cancelled .pqt-icon {
    color: #d64545;
}

.pqt-value {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--sx-navy);
}

.pqt-label {
    font-size: .68rem;
    color: var(--sx-muted);
    line-height: 1.15;
}


@media (max-width: 575.98px) {
    .purchases-card {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .purchases-main {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .purchases-cta {
        width: 100%;
        justify-content: center;
    }

    .purchases-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
        width: 100%;
    }

    .purchases-queue {
        flex-direction: column;
    }

    .purchases-queue-tiles {
        width: 100%;
    }

    .purchases-queue-tile {
        flex: 1;
        width: auto;
    }
}


/* ---------- Filtro ---------- */
/* ---------- filter panel ---------- */
.filter-panel {
    background: var(--sx-card);
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16,24,40,.03);
    max-height: 0;
    opacity: 0;
    transition: max-height .28s ease, opacity .22s ease;
}

    .filter-panel.open {
        max-height: 420px;
        opacity: 1;
    }

.filter-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--sx-border);
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.filter-panel__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: var(--sx-blue-tint);
    color: var(--sx-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.filter-panel__title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--sx-navy);
}

.filter-panel__sub {
    font-size: .78rem;
    color: var(--sx-muted);
}

.filter-panel__close {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--sx-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .filter-panel__close:hover {
        background: var(--sx-bg);
        color: var(--sx-navy);
    }

.filter-panel__body {
    padding: 20px 22px 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.f-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.f-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--sx-muted);
}

.f-input-wrap {
    position: relative;
}

    .f-input-wrap i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--sx-muted);
        font-size: .85rem;
        pointer-events: none;
        transition: color .15s ease;
    }

.f-input, .f-select {
    width: 100%;
    border: 1px solid var(--sx-border);
    background: var(--sx-bg);
    border-radius: 10px;
    padding: 10px 12px 10px 34px;
    font-size: .85rem;
    font-family: 'Inter', sans-serif;
    color: var(--sx-text);
    appearance: none;
}

.f-select {
    padding-left: 34px;
    background-image: none;
}

.f-input::placeholder {
    color: #94a7bf;
}

.f-input:focus, .f-select:focus {
    outline: none;
    border-color: var(--sx-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33,153,234,.12);
}

    .f-input:focus + i, .f-input-wrap:focus-within i {
        color: var(--sx-blue);
    }

.f-select-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sx-muted);
    font-size: .72rem;
    pointer-events: none;
}

.filter-panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--sx-border);
    flex-wrap: wrap;
}

.active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sx-blue-tint);
    color: var(--sx-blue-dark);
    border: 1px solid #b9dcf7;
    font-size: .76rem;
    font-weight: 600;
    padding: 5px 8px 5px 10px;
    border-radius: 999px;
}

    .chip button {
        border: none;
        background: rgba(17,121,201,.14);
        color: var(--sx-blue-dark);
        width: 16px;
        height: 16px;
        border-radius: 50%;
        font-size: .62rem;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .chip button:hover {
            background: var(--sx-blue-dark);
            color: #fff;
        }

.chips-empty {
    font-size: .78rem;
    color: var(--sx-muted);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* ---------- table (existing style, kept for context) ---------- */
.modules-card {
    background: var(--sx-card);
    border: 1px solid var(--sx-border);
    border-radius: var(--sx-radius);
    padding: 22px;
}

.table-title {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--sx-navy);
    margin-bottom: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

thead th {
    background: var(--sx-navy);
    color: #fff;
    text-align: left;
    padding: 11px 14px;
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

    thead th:first-child {
        border-top-left-radius: 8px;
    }

    thead th:last-child {
        border-top-right-radius: 8px;
    }

tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--sx-border);
    color: var(--sx-text);
    white-space: nowrap;
}

tbody tr:hover {
    background: var(--sx-bg);
}

@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    body {
        padding: 16px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions {
        justify-content: stretch;
    }

        .filter-actions .btn {
            flex: 1;
            justify-content: center;
        }
}


/* ---------- CARD HEADER (identidade do sistema) ---------- */
.card {
    border: 1px solid var(--sx-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(4,60,122,.06) !important;
}

.card-header {
    background: var(--accent-soft) !important;
    border-bottom: 1px solid var(--sx-border) !important;
    padding: .7rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
    position: relative !important;
}

    /* zera qualquer heading (h1-h6) ou .card-title usado dentro do header */
    .card-header h1,
    .card-header h2,
    .card-header h3,
    .card-header h4,
    .card-header h5,
    .card-header h6,
    .card-header .card-title {
        font-family: 'Sora',system-ui,sans-serif !important;
        font-weight: 700 !important;
        font-size: 15px !important;
        color: var(--sx-navy) !important;
        letter-spacing: .01em !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }

    /* variante neutra/secundária (ex.: sub-blocos dentro de um card) */
    .card-header.card-header-muted {
        background: var(--sx-bg) !important;
    }

        .card-header.card-header-muted h1,
        .card-header.card-header-muted h2,
        .card-header.card-header-muted h3,
        .card-header.card-header-muted h4,
        .card-header.card-header-muted h5,
        .card-header.card-header-muted h6,
        .card-header.card-header-muted .card-title {
            color: var(--sx-muted) !important;
            font-size: 12.5px !important;
            text-transform: uppercase !important;
            letter-spacing: .04em !important;
        }

    /* variante teal, para seções informativas/neutras */
    .card-header.card-header-info {
        background: rgba(4,60,122,.06) !important;
    }

        .card-header.card-header-info h1,
        .card-header.card-header-info h2,
        .card-header.card-header-info h3,
        .card-header.card-header-info h4,
        .card-header.card-header-info h5,
        .card-header.card-header-info h6,
        .card-header.card-header-info .card-title {
            color: var(--sx-navy-2) !important;
        }

    /* ícones dentro do header, alinhados ao texto */
    .card-header i.bi-icon,
    .card-header .card-header-icon {
        color: var(--accent) !important;
        font-size: 1rem !important;
        flex: none !important;
    }

    .card-header .card-header-actions {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: .5rem !important;
    }

.card-body {
    background: var(--sx-card) !important;
    padding: 1.1rem 1.25rem !important;
}

.card-footer {
    background: var(--sx-bg) !important;
    border-top: 1px solid var(--sx-border) !important;
    padding: .75rem 1.25rem !important;
}

/* ============================================================
   TABELAS BOOTSTRAP (table / table-striped) + NAV-PILLS
   Adaptado à Identidade Visual 2026
   Usa os tokens definidos em VisualIdentity2026.css (:root)
   ============================================================ */

/* ---------- TABELA PADRÃO ---------- */
.table {
    min-width: 100% !important;
    font-family: 'Inter',system-ui,sans-serif !important;
    color: var(--sx-text) !important;
    margin-bottom: 0 !important;
}

    .table thead th {
        background-color: var(--sx-card) !important;
        color: var(--sx-text) !important;
        font-family: 'Inter',system-ui,sans-serif !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        text-transform: none !important;
        border: none !important;
        border-bottom: 2px solid var(--sx-border) !important;
        padding: .75rem 1rem !important;
        vertical-align: middle !important;
    }

    .table td {
        padding: .7rem 1rem !important;
        font-size: 13.5px !important;
        color: var(--sx-text) !important;
        border-top: 1px solid var(--sx-border) !important;
        vertical-align: middle !important;
    }

    .table.table-valign-middle td,
    .table.table-valign-middle th {
        vertical-align: middle !important;
    }

/* linhas zebradas */
.table-striped tbody tr:nth-of-type(odd) td {
    background-color: var(--sx-bg) !important;
}

.table-striped tbody tr:nth-of-type(even) td {
    background-color: var(--sx-card) !important;
}

/* hover */
.table-hover tbody tr:hover td,
.table tbody tr:hover td {
    background-color: var(--accent-soft) !important;
}

/* links dentro da tabela (ex.: nomes de grupo) */
.table a {
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

    .table a:hover {
        text-decoration: underline !important;
    }

/* ícones de ação (ex.: bi-list + chevron) */
.table .action-toggle,
.table td i.bi-icon {
    color: var(--accent) !important;
}

/* ---------- ABAS (nav-pills) ---------- */
.nav-pills {
    gap: .4rem !important;
}

    .nav-pills .nav-link {
        color: var(--sx-muted) !important;
        font-family: 'Inter',system-ui,sans-serif !important;
        font-weight: 600 !important;
        font-size: 13.5px !important;
        border-radius: 8px !important;
        padding: .5rem 1rem !important;
        background-color: transparent !important;
        transition: background-color .15s ease, color .15s ease !important;
    }

        .nav-pills .nav-link:hover {
            background-color: var(--accent-soft) !important;
            color: var(--accent-dark) !important;
        }

        .nav-pills .nav-link.active,
        .nav-pills .show > .nav-link {
            background-color: var(--accent) !important;
            color: #fff !important;
        }

/*Instalação apk*/
.apk-hero {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    border-radius: var(--sx-radius,14px);
    background-color: #043c7a;
    background-image: linear-gradient(135deg,var(--sx-navy,#043c7a) 0%,var(--sx-navy-deep,#022a57) 100%);
    box-shadow: 0 14px 34px -18px rgba(4,60,122,.6);
    color: #fff;
    font-family: 'Inter',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 34px 40px
}

    .apk-hero::before {
        content: "";
        position: absolute;
        right: -90px;
        top: -110px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(33,153,234,.55),rgba(33,153,234,0) 68%)
    }

    .apk-hero::after {
        content: "";
        position: absolute;
        left: -60px;
        bottom: -120px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(33,153,234,.25),rgba(33,153,234,0) 70%)
    }

    .apk-hero > * {
        position: relative;
        z-index: 1
    }

.apk-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em
}

    .apk-badge i {
        color: #3ddc84
    }

.apk-hero h2 {
    font-family: 'Sora','Inter',system-ui,'Segoe UI',Arial,sans-serif;
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.2;
    margin: 14px 0 8px;
    color: #fff
}

    .apk-hero h2 span {
        color: #7cc4f6
    }

.apk-hero p.apk-sub {
    color: #cfe3f7;
    font-size: .92rem;
    margin: 0 0 20px;
    max-width: 460px
}

.apk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px
}

.apk-btn, .apk-btn:hover {
    text-decoration: none
}

.apk-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sx-blue,#2199ea);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 22px -8px rgba(33,153,234,.8);
    transition: .15s ease
}

    .apk-btn:hover {
        background: var(--sx-blue-dark,#1179c9);
        color: #fff;
        transform: translateY(-2px)
    }

    .apk-btn i {
        font-size: 1.15rem
    }

.apk-meta {
    font-size: .78rem;
    color: #a9c6e6;
    line-height: 1.5
}

.apk-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px
}

.apk-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .78rem;
    color: #e3eefa
}

    .apk-step b {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--sx-blue,#2199ea);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .7rem
    }

/* celular em CSS */
.apk-phone-wrap {
    display: flex;
    justify-content: center
}

.apk-phone {
    width: 190px;
    height: 340px;
    border-radius: 30px;
    background: #0b1626;
    padding: 9px;
    border: 2px solid rgba(255,255,255,.18);
    box-shadow: 0 30px 50px -20px rgba(0,0,0,.6);
    transform: rotate(6deg)
}

.apk-screen {
    height: 100%;
    border-radius: 22px;
    background: var(--sx-bg,#f2f6fb);
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.apk-top {
    background: var(--sx-navy,#043c7a);
    color: #fff;
    padding: 14px 12px 10px;
    font-size: .62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px
}

    .apk-top i {
        color: var(--sx-blue,#2199ea);
        font-size: .9rem
    }

.apk-hello {
    padding: 10px 12px 4px;
    font-size: .62rem;
    font-weight: 700;
    color: var(--sx-navy,#043c7a)
}

.apk-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 6px 10px
}

    .apk-mini div {
        background: #fff;
        border: 1px solid var(--sx-border,#e1e8f1);
        border-radius: 9px;
        padding: 9px 4px;
        text-align: center;
        font-size: .5rem;
        font-weight: 600;
        color: var(--sx-navy,#043c7a)
    }

    .apk-mini i {
        display: block;
        font-size: .95rem;
        margin-bottom: 3px;
        color: var(--sx-blue,#2199ea)
    }

.apk-bar {
    margin-top: auto;
    height: 36px;
    background: #fff;
    border-top: 1px solid var(--sx-border,#e1e8f1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: var(--sx-muted,#5f6f86);
    font-size: .85rem
}

    .apk-bar .on {
        color: var(--sx-blue,#2199ea)
    }

@media (max-width:767.98px) {
    .apk-hero {
        grid-template-columns: 1fr;
        padding: 26px 22px
    }

    .apk-phone-wrap {
        display: none
    }

    .apk-hero h2 {
        font-size: 1.35rem
    }
}