/* ==========================================================================
   GUAXINIM Minuano 2.0 — identidade visual
   Paleta da marca Guaxinim: vermelho #CF010F, preto e branco, com Figtree
   na interface. Âmbar e amarelo ficam apenas para avisos e favoritos.
   Carregado depois de backend.css (Bootstrap 4 + template) e dos plugins.
   ========================================================================== */

:root {
    /* vermelho da marca, medido no logotipo enviado (#CF010F) */
    --gx-red: #CF010F;
    --gx-red-bright: #E4121F;
    --gx-red-700: #A50010;
    --gx-red-800: #7E000C;
    --gx-red-fg: #CF010F;      /* vermelho para textos e icones */
    --gx-red-strong: #A50010;  /* vermelho escuro para fundos (hover de botoes) */
    --gx-red-deep: #7E000C;    /* vermelho mais escuro para fundos (clique) */
    --gx-red-50: #FDECED;
    --gx-red-100: #FAD8DA;
    /* ambar/amarelo: curva dos heros e do login (como no Flow), avisos e favoritos */
    --gx-amber: #EFA61D;
    --gx-amber-700: #B9780A;
    --gx-amber-50: #FEF4E2;
    --gx-yellow: #F7DC2B;
    /* cinzas neutros: a marca e preto, vermelho e branco */
    --ink: #17191C;            /* preto do logotipo (#040708) clareado para leitura */
    --ink-2: #5C6570;
    --ink-3: #959DA7;
    --ink-50: #EDEFF2;
    --line: #E3E6E9;
    --canvas: #F3F4F6;
    --surface: #FFFFFF;
    --surface-2: #F9FAFB;
    --success: #1F8A4C;
    --success-700: #176B3B;
    --success-50: #E6F4EC;
    --info: #1C6FB8;
    --info-700: #155A96;
    --info-50: #E7F0FA;

    --radius-xs: 10px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-1: 0 1px 2px rgba(15, 18, 22, .06), 0 2px 8px rgba(15, 18, 22, .05);
    --shadow-2: 0 10px 30px rgba(15, 18, 22, .14);
    --shadow-red: 0 10px 24px rgba(207, 1, 15, .30);
    --ring: 0 0 0 4px rgba(207, 1, 15, .14);

    --appbar-h: 64px;
    --nav-h: 66px;
    --sidebar-w: 272px;
    --rail-w: 88px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-brand: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* variaveis do template antigo apontando para a nova paleta */
    --iq-primary: #CF010F;
    --iq-secondary: #5C6570;
    --iq-success: #1F8A4C;
    --iq-info: #1C6FB8;
    --iq-warning: #EFA61D;
    --iq-danger: #A50010;
    --iq-light-gray: #F3F4F6;
    --primary: #CF010F;
    --secondary: #5C6570;
}

/* ==========================================================================
   Base
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    accent-color: var(--gx-red);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-body);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.01em;
}

p { color: inherit; }
a { color: var(--gx-red-fg); }
a:hover { color: var(--gx-red-700); }
hr { border-top-color: var(--line); }
small, .small { color: inherit; }
::selection { background: var(--gx-red-100); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(207, 1, 15, .45); outline-offset: 2px; }

.font-brand { font-family: var(--font-brand); font-weight: 800; letter-spacing: -.02em; }

/* Utilitários de cor do Bootstrap 4 com a paleta Guaxinim */
.text-primary { color: var(--gx-red-fg) !important; }
a.text-primary:hover, a.text-primary:focus { color: var(--gx-red-700) !important; }
.text-secondary { color: var(--ink-2) !important; }
.text-success { color: var(--success) !important; }
.text-info { color: var(--info) !important; }
.text-warning { color: var(--gx-amber-700) !important; }
.text-danger { color: var(--gx-red-fg) !important; }
.text-dark { color: var(--ink) !important; }
.text-muted { color: var(--ink-2) !important; }
.bg-primary { background-color: var(--gx-red) !important; }
.bg-secondary { background-color: var(--ink-2) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-warning { background-color: var(--gx-amber) !important; }
.bg-danger { background-color: var(--gx-red-strong) !important; }
.bg-light { background-color: var(--ink-50) !important; }
.bg-body { background-color: var(--canvas) !important; }
.border-primary { border-color: var(--gx-red) !important; }
.border { border-color: var(--line) !important; }
.border-bottom { border-bottom-color: var(--line) !important; }
.border-top { border-top-color: var(--line) !important; }

.formdivtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 4px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--gx-red-50);
    color: var(--gx-red-700);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}
.formdivtitle::before {
    content: "";
    width: 4px;
    align-self: stretch;
    border-radius: 999px;
    background: var(--gx-red);
}

.labelradiocheck { margin: 0 14px 0 4px; font-weight: 600; }

/* ==========================================================================
   Carregamento
   ========================================================================== */
#loading {
    background: var(--canvas) !important;
    z-index: 999999;
}
#loading-center {
    background: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
}
#loading-center::before {
    content: "";
    width: 96px;
    height: 70px;
    background: url('../images/guaxinim-ico.png') center / contain no-repeat;
    animation: gx-dash 1.1s ease-in-out infinite;
}
#loading-center::after {
    content: "";
    width: 132px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gx-red) 0 35%, var(--ink-50) 35% 100%);
    background-size: 260% 100%;
    animation: gx-bar 1.1s linear infinite;
}
@keyframes gx-dash {
    0%, 100% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
}
@keyframes gx-bar {
    from { background-position: 100% 0; }
    to { background-position: -60% 0; }
}

.gx-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3.5px solid var(--gx-red-100);
    border-top-color: var(--gx-red);
    border-radius: 50%;
    animation: gx-spin .75s linear infinite;
    vertical-align: middle;
}
.gx-spinner--sm { width: 22px; height: 22px; border-width: 3px; }
@keyframes gx-spin { to { transform: rotate(360deg); } }

.loading-state { padding: 36px 0; text-align: center; color: var(--ink-2); }
.loading-state p { margin: 12px 0 0; font-size: 14px; }
.loading-state--sm { padding: 18px 0; }

/* ==========================================================================
   Estrutura: barra lateral, barra superior, hero, conteúdo
   ========================================================================== */
body.gx-shell {
    padding-left: var(--sidebar-w);
    transition: padding-left .25s ease;
    /* coluna com altura mínima da janela: o rodapé fica no fim mesmo com pouco conteúdo */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
body.gx-shell > .wrapper { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }
body.gx-shell > .wrapper > .content-page { flex: 1 0 auto; }
body.gx-shell .gx-footer { flex: 0 0 auto; margin-top: auto; }

/* ---------- Barra lateral ---------- */
.gx-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--line);
    transition: width .25s ease, transform .28s ease;
}

.gx-sidebar__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--appbar-h);
    padding: 0 18px 0 22px;
    flex: 0 0 auto;
}
.gx-sidebar__logo { display: flex; align-items: center; height: 100%; min-width: 0; }
.gx-logo-full { display: block; width: 150px; height: auto; max-width: 100%; }
.gx-logo-mark { display: none; height: 34px; width: auto; }

.gx-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 14px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.gx-nav__group + .gx-nav__group { margin-top: 4px; }

.gx-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 6px 10px 6px 6px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    font-size: 14.5px;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.gx-nav__link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.gx-nav__link:focus { outline: none; }
.gx-nav__link:focus-visible { outline: 3px solid rgba(207, 1, 15, .35); outline-offset: 0; }

.gx-nav__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--ink-50);
    color: var(--ink-2);
    font-size: 15px;
    transition: background-color .15s ease, color .15s ease;
}
.gx-nav__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-nav__chev { font-size: 11px; color: var(--ink-3); transition: transform .2s ease; }
.gx-nav__toggle:not(.collapsed) .gx-nav__chev { transform: rotate(180deg); }
.gx-nav__toggle:not(.collapsed) { color: var(--ink); }

.gx-nav__link.is-active,
.gx-nav__group.is-current > .gx-nav__link {
    background: var(--gx-red-50);
    color: var(--gx-red-700);
}
.gx-nav__link.is-active .gx-nav__icon,
.gx-nav__group.is-current > .gx-nav__link .gx-nav__icon {
    background: var(--gx-red);
    color: #fff;
    box-shadow: 0 6px 14px rgba(207, 1, 15, .28);
}
.gx-nav__group.is-current > .gx-nav__link .gx-nav__chev { color: var(--gx-red-700); }

.gx-nav__subinner {
    position: relative;
    margin: 4px 0 8px 23px;
    padding-left: 14px;
    border-left: 2px solid var(--line);
}
.gx-nav__subtitle { display: none; }

.gx-nav__sublink {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 6px 10px;
    border-radius: 12px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.gx-nav__sublink i { width: 16px; text-align: center; font-size: 13px; color: var(--ink-3); }
.gx-nav__sublink:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.gx-nav__sublink.is-active { color: var(--gx-red-700); font-weight: 750; background: var(--gx-red-50); }
.gx-nav__sublink.is-active i { color: var(--gx-red-fg); }
.gx-nav__sublink.is-active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 999px;
    background: var(--gx-red);
}

.gx-sidebar__foot { flex: 0 0 auto; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.gx-sidebar__collapse {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 6px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background-color .15s ease;
}
.gx-sidebar__collapse:hover { background: var(--surface-2); color: var(--ink); }
.gx-sidebar__collapse i { width: 24px; font-size: 16px; transition: transform .25s ease; }
.gx-sidebar__collapse.wrapper-menu { font-size: 14px; color: var(--ink-2); }

.gx-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1039;
    background: rgba(15, 18, 22, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.gx-sidebar__close.icon-btn { display: none; }

/* ---------- Trilho recolhido (desktop) ---------- */
@media (min-width: 992px) {
    body.gx-shell.sidebar-main { padding-left: var(--rail-w); }
    body.sidebar-main .gx-sidebar { width: var(--rail-w); }
    body.sidebar-main .gx-sidebar__head { justify-content: center; padding: 0; }
    body.sidebar-main .gx-logo-full { display: none; }
    body.sidebar-main .gx-logo-mark { display: block; }
    body.sidebar-main .gx-nav { overflow: visible; padding: 10px 12px; }
    body.sidebar-main .gx-nav__link { justify-content: center; padding: 6px; }
    body.sidebar-main .gx-nav__label,
    body.sidebar-main .gx-nav__chev { display: none; }
    body.sidebar-main .gx-nav__link.is-active,
    body.sidebar-main .gx-nav__group.is-current > .gx-nav__link { background: transparent; }

    body.sidebar-main .gx-nav__group { position: relative; }
    body.sidebar-main .gx-nav__sub { display: none !important; }
    body.sidebar-main .gx-nav__group:hover > .gx-nav__sub,
    body.sidebar-main .gx-nav__group:focus-within > .gx-nav__sub,
    body.sidebar-main .gx-nav__group.is-flyout > .gx-nav__sub {
        display: block !important;
        position: absolute;
        top: 0;
        left: 100%;
        z-index: 1050;
        height: auto !important;
        padding-left: 22px;
    }
    body.sidebar-main .gx-nav__subinner {
        min-width: 250px;
        margin: 0;
        padding: 8px;
        border: 0;
        border-radius: var(--radius-md);
        background: var(--surface);
        box-shadow: var(--shadow-2);
    }
    body.sidebar-main .gx-nav__subtitle {
        display: block;
        margin: 4px 10px 6px;
        font-size: 13px;
        font-weight: 800;
        color: var(--ink);
    }
    body.sidebar-main .gx-nav__sublink.is-active::before { display: none; }

    /* rótulo flutuante do Dashboard */
    body.sidebar-main .gx-nav__group--single:hover .gx-nav__label {
        display: block;
        position: absolute;
        left: calc(100% + 14px);
        top: 50%;
        transform: translateY(-50%);
        padding: 6px 12px;
        border-radius: 10px;
        background: var(--ink);
        color: #fff;
        font-size: 13px;
        box-shadow: var(--shadow-2);
        z-index: 1050;
    }

    body.sidebar-main .gx-sidebar__foot { padding: 10px 12px 14px; }
    body.sidebar-main .gx-sidebar__collapse { justify-content: center; padding: 6px; }
    body.sidebar-main .gx-sidebar__collapse span { display: none; }
    body.sidebar-main .gx-sidebar__collapse i { transform: rotate(180deg); }
}

/* ---------- Gaveta (celular e tablet) ---------- */
@media (max-width: 991.98px) {
    body.gx-shell { padding-left: 0; padding-bottom: calc(var(--nav-h) + var(--safe-bottom)); }
    .gx-sidebar {
        width: min(300px, 86vw);
        transform: translateX(-104%);
        box-shadow: none;
        padding-top: var(--safe-top);
    }
    .gx-sidebar__close.icon-btn { display: inline-flex; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
    .gx-sidebar__foot { display: none; }
    body.gx-drawer-open { overflow: hidden; }
    body.gx-drawer-open .gx-sidebar { transform: none; box-shadow: var(--shadow-2); }
    body.gx-drawer-open .gx-backdrop { opacity: 1; visibility: visible; }
}

/* ---------- Botões de ícone (barra superior) ---------- */
.icon-btn {
    --size: 42px;
    position: relative;
    width: var(--size);
    height: var(--size);
    flex: 0 0 var(--size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink-50);
    color: var(--ink);
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.icon-btn:hover { background: #E2E5E9; color: var(--ink); text-decoration: none; }
.icon-btn:active { transform: scale(.92); }
.icon-btn:focus { outline: none; }
.icon-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.icon-btn--glass { background: rgba(255, 255, 255, .16); color: #fff; }
.icon-btn--glass:hover, .icon-btn--glass:focus { background: rgba(255, 255, 255, .28); color: #fff; }
.show > .icon-btn--glass { background: rgba(255, 255, 255, .3); }

.gx-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px var(--gx-red);
}

/* ---------- Barra superior ---------- */
.gx-appbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--gx-red);
    color: #fff;
    padding-top: var(--safe-top);
    transition: box-shadow .25s ease;
}
body.is-scrolled .gx-appbar { box-shadow: 0 6px 18px rgba(90, 0, 8, .28); }

.gx-appbar__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--appbar-h);
    padding: 0 20px 0 24px;
}

.gx-drawer-toggle { display: none; }
.gx-appbar__brand { display: none; align-items: center; margin-right: 2px; }
.gx-appbar__brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }

.gx-appbar__title {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}
body.is-scrolled .gx-appbar__title { opacity: 1; transform: none; }

.gx-appbar__actions { display: flex; align-items: center; gap: 6px; }
.gx-appbar__actions .dropdown { position: relative; }

.gx-avatar-btn {
    display: inline-flex;
    padding: 0;
    margin-left: 4px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
}
.gx-avatar-btn:focus { outline: none; }
.gx-avatar-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.gx-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, .7);
    background: var(--ink-50);
}

/* Pesquisa integrada à barra */
.gx-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    width: min(660px, 50vw);
    height: 46px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    transition: background-color .15s ease, box-shadow .15s ease;
}
.gx-search:focus-within { background: rgba(255, 255, 255, .24); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.gx-search .select2-container { width: 260px !important; flex: 0 0 260px; }
.gx-search .select2-container--bootstrap .select2-selection--single {
    height: 40px;
    padding: 0 30px 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    box-shadow: none;
    line-height: 40px;
}
.gx-search .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 40px;
    padding: 0;
}
.gx-search .select2-container--bootstrap .select2-selection--single .select2-selection__placeholder { color: rgba(255, 255, 255, .8); }
.gx-search .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b { border-top-color: #fff; }
.gx-search .select2-container--bootstrap.select2-container--open .select2-selection--single .select2-selection__arrow b { border-bottom-color: #fff; border-top-color: transparent; }
.gx-search > select.form-control { width: 260px; flex: 0 0 260px; }
.gx-search .form-control {
    flex: 1;
    min-width: 0;
    height: 40px;
    min-height: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    box-shadow: none;
}
.gx-search .form-control::placeholder { color: rgba(255, 255, 255, .78); }
.gx-search .form-control:focus { background: transparent; box-shadow: none; color: #fff; }
.gx-search__btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--gx-red-fg);
    font-size: 15px;
    cursor: pointer;
    transition: transform .1s ease;
}
.gx-search__btn:active { transform: scale(.94); }
.gx-search .typeahead.dropdown-menu { top: calc(100% + 8px) !important; left: 0 !important; min-width: 100%; }

.gx-search-toggle { display: none; }

/* Painel de pesquisa em telas menores */
.gx-searchpanel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 14px 16px 16px;
    background: var(--surface);
    color: var(--ink);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.gx-searchpanel.is-open { opacity: 1; visibility: visible; transform: none; }
.gx-searchpanel form { display: grid; gap: 10px; max-width: 640px; margin: 0 auto; }
.gx-searchpanel__label { margin: 0; font-size: 14px; font-weight: 800; color: var(--ink); }
.gx-searchpanel .input-group { flex-wrap: nowrap; }
.gx-searchpanel .typeahead.dropdown-menu { max-width: calc(100vw - 32px); }

@media (max-width: 1199.98px) {
    .gx-search { display: none; }
    .gx-search-toggle { display: inline-flex; }
}
@media (max-width: 991.98px) {
    .gx-drawer-toggle { display: inline-flex; }
    .gx-appbar__brand { display: inline-flex; }
    .gx-appbar__inner { padding: 0 12px; gap: 6px; }
}
@media (max-width: 420px) {
    .gx-appbar__brand { display: none; }
    .gx-appbar__actions { gap: 4px; }
    .gx-appbar .icon-btn { --size: 38px; font-size: 16px; }
    .gx-avatar { width: 38px; height: 38px; border-radius: 12px; }
}

/* Menus suspensos da barra */
.gx-pop.dropdown-menu {
    min-width: 290px;
    margin-top: 10px;
    padding: 8px;
    border: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-2);
    color: var(--ink);
}
.gx-pop--wide.dropdown-menu { width: 360px; max-width: calc(100vw - 24px); }
.gx-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 8px; }
.gx-pop__title { margin: 6px 10px 8px; font-size: 14px; font-weight: 800; color: var(--ink); }
.gx-pop__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
}
.gx-pop__item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.gx-pop__item strong { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.gx-pop__item small { display: block; font-size: 12.5px; color: var(--ink-2); }
.gx-pop__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--gx-red-50);
    color: var(--gx-red-fg);
    font-size: 17px;
}
.gx-pop__icon--success { background: var(--success-50); color: var(--success); }
.gx-pop__icon--muted { background: var(--ink-50); color: var(--ink-2); }

/* Favoritos (HTML vindo de sys_functions.php) */
.gx-favoritos { max-height: min(60vh, 440px); overflow-y: auto; }
.gx-favoritos .iq-sub-card { display: block; padding: 0; border-radius: 14px; color: var(--ink); text-decoration: none; }
.gx-favoritos .iq-sub-card:hover { background: var(--surface-2); text-decoration: none; }
.gx-favoritos .cust-card { padding: 10px !important; border-bottom: 0 !important; }
.gx-favoritos .cust-card > div:first-child {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--gx-red-50);
    color: var(--gx-red-fg);
}
.gx-favoritos .cust-card .fa-2x { font-size: 16px; }
.gx-favoritos h6 { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.gx-favoritos small { color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
.gx-favoritos .btn { padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 1.2; }
.gx-favoritos .btn br { display: none; }
.gx-favoritos .btn i { margin-right: 4px; }

/* Cartão de perfil */
.gx-pop--profile.dropdown-menu { width: 300px; padding: 0; overflow: hidden; }
.gx-profile { text-align: center; padding-bottom: 16px; }
.gx-profile__band {
    height: 64px;
    background: var(--gx-red) url('../images/guaxinim-ico.png') right -12px center / 110px auto no-repeat;
    background-blend-mode: soft-light;
    box-shadow: inset 0 -5px 0 var(--gx-yellow), inset 0 -10px 0 var(--gx-amber);
}
.gx-profile__photo {
    width: 78px;
    height: 78px;
    margin: -38px auto 10px;
    display: block;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid #fff;
    background: var(--ink-50);
    box-shadow: var(--shadow-1);
    position: relative;
}
.gx-profile__name { margin: 0 16px; font-size: 17px; font-weight: 800; line-height: 1.25; }
.gx-profile__meta { margin: 2px 16px 0; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.gx-profile .gx-chip { margin-top: 10px; }
.gx-profile__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 16px 0; }
.gx-profile__actions .btn { width: 100%; }

/* Chips */
.gx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12.5px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gx-chip--soft { background: var(--gx-red-50); color: var(--gx-red-700); }

/* ---------- Hero com a curva Guaxinim ---------- */
.gx-hero {
    position: relative;
    overflow: hidden;
    padding: 6px 28px 64px;
    background: linear-gradient(180deg, var(--gx-red) 0%, #9E000C 100%);
    color: #fff;
}
.gx-hero__content { position: relative; z-index: 1; /*max-width: 1400px;*/ }
.gx-hero__mark {
    position: absolute;
    right: 3%;
    bottom: 26px;
    height: 150%;
    max-height: 190px;
    width: auto;
    opacity: .09;
    filter: brightness(0) invert(1);
    pointer-events: none;
}
.gx-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 2px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}
.gx-crumbs a { color: #fff; text-decoration: none; }
.gx-crumbs a:hover { color: #fff; text-decoration: underline; }
.gx-crumbs i.fa-chevron-right { font-size: 9px; opacity: .7; }
.gx-hero__title {
    margin: 0;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.02em;
    color: #fff;
}
.gx-hero__sub { margin: 4px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .86); }

.gx-hero__swoosh {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 46px;
    display: block;
}
.swoosh-amber { fill: var(--gx-amber); }
.swoosh-yellow { fill: var(--gx-yellow); }
.swoosh-canvas { fill: var(--canvas); }

/* Hero do dashboard */
.gx-hero--home { padding-bottom: 72px; }
.gx-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    padding-top: 10px;
}
.gx-home-hero__hello {
    margin: 0;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.02;
    letter-spacing: -.02em;
    color: #fff;
}
.gx-home-hero__text { margin: 10px 0 14px; max-width: 46ch; color: rgba(255, 255, 255, .9); font-size: 15.5px; }
.gx-home-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-home-hero__mark {
    width: clamp(96px, 14vw, 190px);
    height: auto;
    margin-bottom: -18px;
}

@media (min-width: 992px) {
    .gx-appbar__inner { padding: 0 44px; }
    .gx-hero { padding-left: 45px; padding-right: 45px; }
    .gx-footer { padding-left: 30px; padding-right: 30px; }
}
@media (max-width: 991.98px) {
    .gx-hero { padding: 4px 24px 58px; }
    .gx-hero__mark { display: none; }
}
@media (max-width: 575.98px) {
    .gx-home-hero { grid-template-columns: 1fr; }
    .gx-home-hero__mark { display: none; }
}

/* ---------- Conteúdo ---------- */
body.gx-shell .content-page {
    margin-left: 0;
    min-height: 0;
    padding: 8px 20px 36px;
    overflow: visible;
    overflow-x: clip;
    transition: none;
}
body.gx-shell .content-page > .container-fluid { max-width: 1680px; margin: 0 auto; }

@media (max-width: 991.98px) {
    body.gx-shell .content-page { padding: 6px 0 28px; }
}

.gx-dashboard { padding-left: 25px; padding-right: 25px; }
@media (max-width: 991.98px) { .gx-dashboard { padding-left: 15px; padding-right: 15px; } }
.gx-section { margin-top: 26px; }
.gx-section:first-child { margin-top: 6px; }
.gx-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 4px 12px; }
.gx-section__title { margin: 0; font-size: 18px; font-weight: 800; }
.gx-section__hint { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Grade de atalhos ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 420px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1200px) { .tile-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .tile-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.tile {
    --tone: var(--gx-red);
    --tone-bg: var(--gx-red-50);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 116px;
    padding: 18px 8px 14px;
    border: 0;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease;
}
.tile:hover { color: var(--ink); box-shadow: var(--shadow-2); text-decoration: none; }
.tile:active { transform: scale(.96); }
.tile--amber { --tone: var(--gx-amber-700); --tone-bg: var(--gx-amber-50); }
.tile--ink { --tone: var(--ink); --tone-bg: var(--ink-50); }
.tile__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--tone-bg);
    color: var(--tone);
    font-size: 21px;
}
.tile__label { font-size: 13.5px; font-weight: 650; line-height: 1.22; }

/* ---------- Indicadores ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 16px 18px 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    text-decoration: none;
    transition: transform .12s ease, box-shadow .2s ease;
}
a.stat:hover { color: var(--ink); box-shadow: var(--shadow-2); text-decoration: none; }
a.stat:active { transform: scale(.98); }
.stat__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--gx-red-50);
    color: var(--gx-red-fg);
    font-size: 17px;
}
.stat__icon--success { background: var(--success-50); color: var(--success); }
.stat__icon--amber { background: var(--gx-amber-50); color: var(--gx-amber-700); }
.stat__icon--muted { background: var(--ink-50); color: var(--ink-2); }
.stat__label { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink-2); line-height: 1.3; }
.stat__value { margin: 2px 0 0; font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.stat__hint { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }

.stat--accent { background: var(--gx-red); color: #fff; box-shadow: var(--shadow-red); }
a.stat--accent:hover { color: #fff; box-shadow: 0 14px 30px rgba(207, 1, 15, .4); }
.stat--accent .stat__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.stat--accent .stat__label { color: rgba(255, 255, 255, .88); }
.stat--wide { grid-column: 1 / -1; }

.stat--depart { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.stat--depart__text { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stat--depart__text .stat__icon { margin: 0; flex: 0 0 40px; }
.stat--depart__form { display: flex; gap: 8px; flex: 1 1 420px; max-width: 640px; }
.stat--depart__form .form-control { flex: 1; min-width: 0; }
.stat--depart__form .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
    .stat--depart__form { flex-direction: column; }
}

/* ---------- Estado vazio ---------- */
.empty-state { text-align: center; padding: 34px 20px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.empty-state__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--gx-red-50);
    color: var(--gx-red-fg);
    font-size: 30px;
}
.empty-state__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.empty-state__text { margin: 0 auto; max-width: 46ch; color: var(--ink-2); }
.empty-state .btn { margin-top: 18px; }

/* ---------- Rodapé ---------- */
.gx-footer { padding: 0 20px calc(20px + var(--safe-bottom)); }
.gx-footer__inner {
    max-width: 1680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 24px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    font-size: 13px;
    color: var(--ink-2);
}
.gx-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gx-footer__brand img { height: 20px; width: auto; }
.gx-footer__brand strong { color: var(--ink); font-size: 14px; font-weight: 800; }
.gx-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--ink-50);
    color: var(--ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.gx-footer__btn:hover { background: var(--gx-red-50); color: var(--gx-red-700); }
.gx-footer__btn i { font-size: 12px; }
.gx-footer__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0; }
.gx-footer__stats > div { display: flex; align-items: baseline; gap: 6px; }
.gx-footer__stats dt { font-weight: 600; color: var(--ink-2); }
.gx-footer__stats dd { margin: 0; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.gx-footer__stats .is-mine dd { color: var(--gx-red-fg); }
.gx-footer__copy { text-align: right; }
.gx-footer__copy a { color: var(--ink); font-weight: 700; }
@media (max-width: 1199.98px) {
    .gx-footer__inner { grid-template-columns: 1fr; text-align: center; }
    .gx-footer__brand { justify-content: center; }
    .gx-footer__copy { text-align: center; }
}
@media (max-width: 991.98px) { .gx-footer { padding: 0 15px 16px; } }

/* ---------- Navegação inferior (celular) ---------- */
.gx-bottomnav { display: none; }
@media (max-width: 991.98px) {
    .gx-bottomnav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1035;
        display: grid;
        grid-auto-gx: column;
        grid-auto-columns: 1fr;
        height: calc(var(--nav-h) + var(--safe-bottom));
        padding-bottom: var(--safe-bottom);
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        backdrop-filter: saturate(160%) blur(14px);
        box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(15, 18, 22, .06);
    }
}
.gx-bottomnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--ink-3);
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.gx-bottomnav__item i {
    width: 56px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 18px;
    transition: background-color .2s ease;
}
.gx-bottomnav__item:hover { color: var(--ink-2); text-decoration: none; }
.gx-bottomnav__item.is-active { color: var(--gx-red-fg); }
.gx-bottomnav__item.is-active i { background: var(--gx-red-50); }
.gx-bottomnav__item:focus { outline: none; }

/* Botão voltar ao topo */
.gx-totop {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 1020;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}
.gx-totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 991.98px) { .gx-totop { right: 14px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px); } }

/* Barra de progresso ao trocar de tela */
.route-progress {
    position: fixed;
    top: var(--safe-top);
    left: 0;
    z-index: 2000;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gx-yellow), var(--gx-amber));
    opacity: 0;
    pointer-events: none;
}
body.is-leaving .route-progress { opacity: 1; width: 82%; transition: width 2.5s cubic-bezier(.1, .7, .2, 1); }

/* ==========================================================================
   Componentes Bootstrap 4
   ========================================================================== */

/* ---------- Cartões ---------- */
.card {
    border: 0;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}
.content-page .card { margin-bottom: 20px; }
.content-page .card .card { box-shadow: none; border: 1px solid var(--line); }
.card.shadow-none { box-shadow: none; }
.card.card-transparent { background: transparent; box-shadow: none; }

.card .card-header,
.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: transparent;
}
.card-header:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.card-body { padding: 20px; }
.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}
.card-footer:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.card-title { font-weight: 800; color: var(--ink); }

.header-title,
.card .card-header .header-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.header-title strong, .header-title b { font-weight: 800; }
.header-title img[src*="arrows.png"],
.modal-title img[src*="arrows.png"] {
    width: 36px !important;
    height: 36px;
    flex: 0 0 36px;
    padding: 8px;
    border-radius: 12px;
    background: var(--gx-red-50);
    object-fit: contain;
}
.gx-alert-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gx-red-50);
    color: var(--gx-red-fg);
    font-size: 15px;
}

.btn-collapse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.btn-collapse::after {
    content: "\f078";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 11px;
    margin-left: 4px;
    color: var(--ink-3);
    transition: transform .2s ease;
}
.btn-collapse.collapsed::after { transform: rotate(-90deg); }
.btn-collapse:hover strong { color: var(--gx-red-700); }

/* ---------- Formulários ---------- */
.form-group {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 1rem;
}
.form-group > label,
.control-label,
.col-form-label,
.form-label {
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}
.form-horizontal .control-label { padding-top: 11px; color: var(--ink); }

.form-control {
    height: 44px;
    padding: .5rem .85rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    color: var(--ink);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: var(--ink-3); opacity: 1; }
.form-control:focus {
    border-color: var(--gx-red);
    background-color: var(--surface);
    color: var(--ink);
    box-shadow: var(--ring);
}
textarea.form-control { height: auto; min-height: 96px; }
select.form-control[multiple], select.form-control[size] { height: auto; }
.form-control-sm { height: 36px; border-radius: 10px; font-size: 14px; }
.form-control-lg { height: 52px; border-radius: 14px; font-size: 16px; }
.form-control:disabled, .form-control[readonly] { background-color: var(--ink-50); color: var(--ink-2); opacity: 1; }
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: var(--gx-red); }
.invalid-feedback { color: var(--gx-red-fg); font-weight: 600; }
.form-text { color: var(--ink-2); }

.input-group-text {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--ink-50);
    color: var(--ink-2);
    font-weight: 600;
}
.input-group > .input-group-append > .btn,
.input-group > .input-group-prepend > .btn { height: 44px; }

.custom-file, .custom-file-input { height: 44px; }
.custom-file-label {
    height: 44px;
    padding: .55rem .85rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-2);
    box-shadow: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.custom-file-label::after,
.custom-file-input:lang(en) ~ .custom-file-label::after,
.custom-file-input:lang(pt) ~ .custom-file-label::after {
    content: "Procurar";
    height: 41px;
    padding: .55rem .9rem;
    border-radius: 0 10px 10px 0;
    background: var(--ink-50);
    color: var(--ink);
    font-weight: 700;
}
.custom-file-input:focus ~ .custom-file-label { border-color: var(--gx-red); box-shadow: var(--ring); }

.custom-control-label::before { border: 1.5px solid #C7CCD2; background-color: var(--surface); }
.custom-checkbox .custom-control-label::before { border-radius: 6px; }
.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--gx-red);
    background-color: var(--gx-red);
}
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: var(--ring); }
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: var(--gx-red); }
.custom-switch .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--gx-red); border-color: var(--gx-red); }
.custom-select {
    height: 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
}
.custom-select:focus { border-color: var(--gx-red); box-shadow: var(--ring); }

input[type="checkbox"], input[type="radio"] { accent-color: var(--gx-red); }

/* ---------- Botões ---------- */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.4;
    padding: .58rem 1.05rem;
    border-radius: var(--radius-sm);
    border-width: 1.5px;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus, .btn.focus { box-shadow: var(--ring); }
.btn-sm, .btn-group-sm > .btn { padding: .32rem .62rem; font-size: 13px; border-radius: 10px; }
.btn-lg, .btn-group-lg > .btn { padding: .78rem 1.35rem; font-size: 16px; border-radius: 14px; }
.btn-pill { border-radius: 999px; }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle { color: #fff; background-color: var(--gx-red); border-color: var(--gx-red); }
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus { color: #fff; background-color: var(--gx-red-strong); border-color: var(--gx-red-strong); }
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active { background-color: var(--gx-red-deep); border-color: var(--gx-red-deep); }
.btn-primary.disabled, .btn-primary:disabled { color: #fff; background-color: var(--gx-red); border-color: var(--gx-red); opacity: .5; }
.btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 4px rgba(207, 1, 15, .25); }

.btn-secondary,
.btn-default { color: var(--ink); background-color: var(--ink-50); border-color: var(--ink-50); }
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary.focus,
.btn-default:hover, .btn-default:focus { color: var(--ink); background-color: #E2E5E9; border-color: #E2E5E9; }
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle { color: var(--ink); background-color: #D6DADF; border-color: #D6DADF; }
.btn-secondary.disabled, .btn-secondary:disabled { color: var(--ink-2); background-color: var(--ink-50); border-color: var(--ink-50); }
.btn-secondary:focus, .btn-secondary:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 4px rgba(15, 18, 22, .1); }

.btn-light { color: var(--ink); background-color: var(--ink-50); border-color: var(--ink-50); }
.btn-light:hover, .btn-light:focus, .btn-light.focus { color: var(--ink); background-color: #E2E5E9; border-color: #E2E5E9; }
.btn-light:not(:disabled):not(.disabled):active,
.btn-light:not(:disabled):not(.disabled).active { color: var(--ink); background-color: #D6DADF; border-color: #D6DADF; }
.btn-light:focus, .btn-light:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 4px rgba(15, 18, 22, .1); }

.btn-soft { color: var(--gx-red-fg); background-color: var(--gx-red-50); border-color: var(--gx-red-50); }
.btn-soft:hover, .btn-soft:focus { color: var(--gx-red-700); background-color: var(--gx-red-100); border-color: var(--gx-red-100); }

.btn-success,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active { color: #fff; background-color: var(--success); border-color: var(--success); }
.btn-success:hover, .btn-success:focus, .btn-success.focus { color: #fff; background-color: var(--success-700); border-color: var(--success-700); }
.btn-success:focus, .btn-success:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 4px rgba(31, 138, 76, .22); }
.btn-success.disabled, .btn-success:disabled { background-color: var(--success); border-color: var(--success); opacity: .5; }

.btn-info,
.btn-info:not(:disabled):not(.disabled):active,
.btn-info:not(:disabled):not(.disabled).active { color: #fff; background-color: var(--info); border-color: var(--info); }
.btn-info:hover, .btn-info:focus, .btn-info.focus { color: #fff; background-color: var(--info-700); border-color: var(--info-700); }
.btn-info:focus, .btn-info:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 4px rgba(28, 111, 184, .22); }

.btn-warning,
.btn-warning:not(:disabled):not(.disabled):active,
.btn-warning:not(:disabled):not(.disabled).active { color: var(--ink); background-color: var(--gx-amber); border-color: var(--gx-amber); }
.btn-warning:hover, .btn-warning:focus, .btn-warning.focus { color: var(--ink); background-color: #DE9612; border-color: #DE9612; }
.btn-warning:focus, .btn-warning:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 4px rgba(239, 166, 29, .28); }

.btn-danger,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger:not(:disabled):not(.disabled).active,
.show > .btn-danger.dropdown-toggle { color: #fff; background-color: var(--gx-red-strong); border-color: var(--gx-red-strong); }
.btn-danger:hover, .btn-danger:focus, .btn-danger.focus { color: #fff; background-color: var(--gx-red-deep); border-color: var(--gx-red-deep); }
.btn-danger:focus, .btn-danger:not(:disabled):not(.disabled):active:focus { box-shadow: 0 0 0 4px rgba(168, 13, 20, .22); }

.btn-dark { color: #fff; background-color: var(--ink); border-color: var(--ink); }
.btn-dark:hover, .btn-dark:focus { color: #fff; background-color: #101214; border-color: #101214; }

.btn-outline-primary { color: var(--gx-red-fg); border-color: var(--gx-red); background: transparent; }
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active { color: #fff; background-color: var(--gx-red); border-color: var(--gx-red); }
.btn-outline-secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-outline-secondary:hover,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active { color: var(--ink); background-color: var(--ink-50); border-color: var(--line); }
.btn-outline-success { color: var(--success); border-color: var(--success); }
.btn-outline-success:hover { color: #fff; background-color: var(--success); border-color: var(--success); }
.btn-outline-danger { color: var(--gx-red-700); border-color: var(--gx-red-strong); }
.btn-outline-danger:hover { color: #fff; background-color: var(--gx-red-strong); border-color: var(--gx-red-strong); }
.btn-link { color: var(--gx-red-fg); font-weight: 700; }
.btn-link:hover { color: var(--gx-red-700); }

.btn-group > .btn:not(:first-child), .btn-group > .btn-group:not(:first-child) { margin-left: 0; }

/* ---------- Badges ---------- */
.badge { padding: .38em .72em; border: 0; border-radius: 999px; font-weight: 800; font-size: 76%; letter-spacing: 0; text-transform: none; }
.badge-card { border-radius: 999px !important; }
.badge-primary { color: #fff !important; background-color: var(--gx-red) !important; }
a.badge-primary:hover, a.badge-primary:focus, button.badge-primary:hover, button.badge-primary:focus { color: #fff !important; background-color: var(--gx-red-strong) !important; box-shadow: none; }
a.badge-primary:hover, a.badge-primary:focus { color: #fff; background-color: var(--gx-red-strong); }
.badge-secondary { color: var(--ink); background-color: var(--ink-50); }
.badge-success { color: var(--success); background-color: var(--success-50); }
.badge-info { color: var(--info); background-color: var(--info-50); }
.badge-warning { color: #7A4E06; background-color: var(--gx-amber-50); }
.badge-danger { color: var(--gx-red-700); background-color: var(--gx-red-50); }
.badge-light { color: var(--ink); background-color: var(--ink-50); }
.badge-dark { color: #fff; background-color: var(--ink); }

/* ---------- Alertas ---------- */
.alert {
    border: 0;
    border-left: 4px solid var(--ink-3);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    padding: 14px 18px;
}
.alert .close { padding: 14px 16px; }
.alert-primary { background: var(--gx-red-50); border-left-color: var(--gx-red); color: var(--gx-red-700); }
.alert-secondary { background: var(--gx-amber-50); border-left-color: var(--gx-amber); color: #7A4E06; }
.alert-success { background: var(--success-50); border-left-color: var(--success); color: #14532D; }
.alert-info { background: var(--info-50); border-left-color: var(--info); color: #124A7A; }
.alert-warning { background: var(--gx-amber-50); border-left-color: var(--gx-amber); color: #7A4E06; }
.alert-danger { background: var(--gx-red-50); border-left-color: var(--gx-red-700); color: var(--gx-red-800); }
.alert-light, .alert-default { background: var(--surface); border-left-color: var(--line); color: var(--ink); }
.alert-dark { background: var(--ink); border-left-color: var(--gx-red); color: #fff; }

/* ---------- Abas (etapas dos formulários) ---------- */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    margin-bottom: 20px;
    padding: 5px;
    border: 0;
    border-radius: 16px;
    background: var(--ink-50);
}
.nav-tabs .nav-item { margin-bottom: 0; }
.nav-tabs .nav-link,
.nav-tabs .nav-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .5rem .9rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    transition: background-color .15s ease, color .15s ease;
}
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { border: 0; color: var(--ink); background: rgba(255, 255, 255, .6); }
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    border: 0;
    background: var(--surface);
    color: var(--gx-red-700);
    box-shadow: var(--shadow-1);
}
.nav-tabs .nav-link.disabled { color: var(--ink-3); }
.tab-content { width: 100%; }

.nav-pills .nav-link { border-radius: 12px; color: var(--ink-2); font-weight: 700; }
.nav-pills .nav-link:hover { color: var(--ink); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--gx-red); color: #fff; }

/* ---------- Tabelas ---------- */
.table {
    border: 0;
    border-radius: 0;
    color: var(--ink);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.table td, .table th {
    padding: 11px 14px !important;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    vertical-align: middle;
}
.table thead th,
.table .ligth th {
    padding: 11px 14px !important;
    background: #FBF2F2;
    color: var(--gx-red-700);
    border-bottom: 0;
    font-size: 12.5px;
    font-weight: 700 !important;
    line-height: 1.3;
    text-transform: none;
    white-space: nowrap;
}
.table thead th:first-child { border-top-left-radius: 12px; }
.table thead th:last-child { border-top-right-radius: 12px; }
table.dataTable thead th, .table thead th { color: var(--gx-red-700) !important; }
.table thead th, .table .ligth th { background: #FBF2F2 !important; }
.table span, .table p, .table label { color: inherit; }
.table td:has(> .btn), .table td:has(> button) { white-space: nowrap; }
.table .badge-primary { color: #fff; }
.table-striped tbody tr:nth-of-type(odd) { background-color: #F8F9FA; }
.table-hover tbody tr:hover,
.table-striped tbody tr:hover { background-color: var(--gx-red-50); }
.table-bordered, .table-bordered td, .table-bordered th { border-color: var(--line); }
.table tfoot td, .table tfoot th { background: var(--ink-50); font-weight: 800; border-bottom: 0; }
.table-responsive {
    border-radius: 12px;
    padding: 5px;
}

/* DataTables */
.dataTables_wrapper { font-size: 14px; }
.dataTables_wrapper .row { margin-left: 0; margin-right: 0; }
.dataTables_wrapper .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.dataTables_wrapper > .row:first-child { align-items: center; gap: 10px 0; margin-bottom: 4px; }
div.dataTables_wrapper div.dataTables_filter { text-align: right; }
div.dataTables_wrapper div.dataTables_filter label { margin: 0; font-weight: 600; color: var(--ink-2); }
div.dataTables_wrapper div.dataTables_filter input {
    width: 240px;
    height: 40px;
    margin-left: 8px;
    padding: 0 14px 0 36px;
    border-radius: 999px;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23959DA7'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") 13px center / 14px no-repeat;
}
div.dataTables_wrapper div.dataTables_info { padding-top: 14px; color: var(--ink-2); font-size: 13px; }
div.dataTables_wrapper div.dataTables_info strong { color: var(--ink); }
div.dataTables_wrapper div.dataTables_paginate { padding-top: 8px; }
div.dataTables_wrapper div.dataTables_paginate ul.pagination { gap: 4px; margin: 6px 0 0; }
.dt-buttons.btn-group { flex-wrap: wrap; gap: 4px; }
.dt-buttons.btn-group > .btn { border-radius: 10px !important; padding: .38rem .8rem; font-size: 13px; }
.dt-buttons .btn-group { border: 0 !important; border-radius: 0 !important; background: transparent; }
div.dataTables_wrapper div.dt-buttons.btn-group div.btn-group,
div.dataTables_wrapper div.dt-buttons.btn-group div.btn-group:last-child { border: 0 !important; border-radius: 0 !important; }
div.dataTables_wrapper div.dt-buttons.btn-group div.btn-group > .btn,
div.dataTables_wrapper div.dt-buttons.btn-group div.btn-group:last-child > .btn,
div.dataTables_wrapper div.dt-buttons.btn-group div.btn-group:last-child button,
div.dataTables_wrapper div.dt-buttons.btn-group div.btn-group button.btn:first-of-type:last-of-type {
    border-radius: 10px !important;
    padding: .38rem .8rem;
    font-size: 13px;
}
table.dataTable { margin-top: 12px !important; margin-bottom: 8px !important; }
table.dataTable thead .sorting::before, table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before, table.dataTable thead .sorting_desc::after { bottom: .7em; }
table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_desc::after { color: var(--gx-red-fg); opacity: 1; }
.dt-button-collection.dropdown-menu { padding: 6px; }

/* Paginação */
.pagination { gap: 4px; }
.page-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 10px;
    border: 0;
    border-radius: 10px !important;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    font-size: 13.5px;
}
.page-link:hover { background: var(--gx-red-50); color: var(--gx-red-700); }
.page-link:focus { box-shadow: var(--ring); }
.page-item.active .page-link { background: var(--gx-red); border-color: var(--gx-red); color: #fff; }
.page-item.disabled .page-link { background: transparent; color: var(--ink-3); }

/* ---------- Modais ---------- */
.modal-backdrop.show { opacity: .5; }
.modal-backdrop { background-color: #17191C; }
.modal-content {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(15, 18, 22, .28);
    overflow: hidden;
}
.modal-header {
    align-items: center;
    padding: 14px 18px 14px 22px;
    border-bottom: 1px solid var(--line);
}
.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}
.modal-header .close {
    width: 40px;
    height: 40px;
    margin: 0 0 0 auto;
    padding: 0;
    border-radius: 50%;
    background: var(--ink-50);
    color: var(--ink);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
}
.modal-header .close:hover { background: #E2E5E9; opacity: 1; }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }

/* ---------- Menus suspensos ---------- */
.dropdown-menu {
    padding: 6px;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-2);
    color: var(--ink);
    font-size: 14px;
}
.dropdown-item { padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; white-space: normal; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--ink); }
.dropdown-item.active, .dropdown-item:active { background: var(--gx-red); color: #fff; }
.dropdown-item.active .text-primary, .dropdown-item:active .text-primary { color: #fff !important; }
.dropdown-divider { border-top-color: var(--line); }

/* Autocomplete (typeahead) */
.typeahead.dropdown-menu { max-height: 360px; overflow-y: auto; min-width: 260px; }
.typeahead.dropdown-menu > li > a,
.typeahead.dropdown-menu .dropdown-item { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.typeahead.dropdown-menu > .active > a,
.typeahead.dropdown-menu > li > a:hover { background: var(--gx-red-50); color: var(--gx-red-700); }

/* ---------- Dicas e popovers ---------- */
.tooltip { font-family: var(--font-body); }
.tooltip-inner { padding: 6px 10px; border-radius: 9px; background: var(--ink); font-size: 12.5px; font-weight: 600; }
.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { border-top-color: var(--ink); }
.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { border-bottom-color: var(--ink); }
.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before { border-left-color: var(--ink); }
.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before { border-right-color: var(--ink); }
.popover { border: 0; border-radius: 16px; box-shadow: var(--shadow-2); font-family: var(--font-body); }
.popover-header { background: var(--surface-2); border-bottom-color: var(--line); font-weight: 800; border-radius: 16px 16px 0 0; }

/* ---------- Diversos ---------- */
.progress { height: 10px; border-radius: 999px; background: var(--ink-50); }
.progress-bar { background-color: var(--gx-red); }
.list-group-item { border-color: var(--line); }
.list-group-item.active { background-color: var(--gx-red); border-color: var(--gx-red); }
.breadcrumb { background: transparent; padding: 0; }
.breadcrumb-item.active { color: var(--ink-2); }
.rounded { border-radius: var(--radius-sm) !important; }

/* ==========================================================================
   Plugins
   ========================================================================== */

/* ---------- Select2 (tema bootstrap) ---------- */
.select2-container--bootstrap .select2-selection {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: none;
    color: var(--ink);
    font-size: 15px;
}
.select2-container--bootstrap .select2-selection--single {
    height: 44px;
    padding: 0 30px 0 13px;
    line-height: 41px;
    font-size: 15px;
    color: var(--ink);
}
.select2-container--bootstrap .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 41px; padding: 0; }
.select2-container--bootstrap .select2-selection--single .select2-selection__placeholder { color: var(--ink-3); }
.select2-container--bootstrap .select2-selection--single .select2-selection__arrow { right: 10px; }
.select2-container--bootstrap .select2-selection--single .select2-selection__arrow b { border-top-color: var(--ink-2); }
.select2-container--bootstrap .select2-selection--multiple { min-height: 44px; border-radius: var(--radius-sm); }
.select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered { padding: 3px 8px; }
.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
    margin: 4px 6px 0 0;
    padding: 3px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--gx-red-50);
    color: var(--gx-red-700);
    font-size: 13px;
    font-weight: 700;
}
.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove { color: var(--gx-red-fg); margin-right: 4px; }
.select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field { height: 32px; }
.select2-container--bootstrap.select2-container--focus .select2-selection,
.select2-container--bootstrap.select2-container--open .select2-selection { border-color: var(--gx-red); box-shadow: var(--ring); }
.select2-container--bootstrap .select2-dropdown {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
.select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection { border-bottom-right-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.select2-container--bootstrap.select2-container--open.select2-container--above .select2-selection { border-top-right-radius: var(--radius-sm); border-top-left-radius: var(--radius-sm); }
.select2-container--bootstrap .select2-dropdown--below { margin-top: 6px; }
.select2-container--bootstrap .select2-dropdown--above { margin-top: -6px; }
.select2-container--bootstrap .select2-search--dropdown { padding: 8px; }
.select2-container--bootstrap .select2-search--dropdown .select2-search__field { height: 40px; border: 1.5px solid var(--line); border-radius: 10px; box-shadow: none; }
.select2-container--bootstrap .select2-results__option { padding: 9px 13px; font-size: 14.5px; color: var(--ink); }
.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] { background: var(--gx-red-50); color: var(--gx-red-700); }
.select2-container--bootstrap .select2-results__option[aria-selected="true"] { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.select2-container--bootstrap .select2-results__group { color: var(--ink-2); font-weight: 800; }

/* ---------- Bootstrap-select ---------- */
.bootstrap-select > .dropdown-toggle,
.bootstrap-select > .dropdown-toggle.bs-placeholder,
.bootstrap-select > .dropdown-toggle.btn-light,
.bootstrap-select > .dropdown-toggle.btn-none {
    height: 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    box-shadow: none;
    transform: none;
}
.bootstrap-select > .dropdown-toggle.bs-placeholder { color: var(--ink-3); }
.bootstrap-select > .dropdown-toggle:focus,
.bootstrap-select.show > .dropdown-toggle { border-color: var(--gx-red); box-shadow: var(--ring); outline: none !important; }
.bootstrap-select .dropdown-toggle::after { color: var(--ink-2); }
.bootstrap-select .dropdown-menu li a { border-radius: 10px; }
.bootstrap-select .dropdown-menu li a.active, .bootstrap-select .dropdown-menu li a:active,
.bootstrap-select .dropdown-menu li.selected a { background: var(--gx-red-50); color: var(--gx-red-700); }
.bootstrap-select .bs-searchbox .form-control { height: 38px; border-radius: 10px; }
.bootstrap-select .dropdown-menu .text-muted, .bootstrap-select .dropdown-menu small { color: var(--ink-2) !important; }

/* ---------- Tom Select (tema bootstrap 4) ---------- */
.ts-wrapper.form-control,
.ts-wrapper.form-select,
.form-control.ts-wrapper {
    height: auto;
    min-height: 44px;
    padding: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.ts-wrapper .ts-control,
.ts-control {
    min-height: 44px;
    padding: 6px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    box-shadow: none;
}
.ts-wrapper.focus .ts-control { border-color: var(--gx-red); box-shadow: var(--ring); }
.ts-wrapper.multi .ts-control > div,
.ts-wrapper.multi.has-items .ts-control > .item {
    margin: 2px 4px 2px 0;
    padding: 2px 4px 2px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--gx-red-50);
    color: var(--gx-red-700);
    font-size: 13px;
    font-weight: 700;
}
.ts-wrapper.plugin-remove_button .item .remove { border-left: 0; color: var(--gx-red-fg); border-radius: 0 999px 999px 0; }
.ts-wrapper.plugin-remove_button .item .remove:hover { background: var(--gx-red-100); }
.ts-dropdown { margin-top: 6px; border: 0; border-radius: 14px; box-shadow: var(--shadow-2); overflow: hidden; z-index: 1060; }
.ts-dropdown .option { padding: 9px 13px; font-size: 14.5px; }
.ts-dropdown .active { background: var(--gx-red-50); color: var(--gx-red-700); }
.ts-dropdown .no-results { padding: 10px 13px; color: var(--ink-2); }

/* ---------- Flatpickr ---------- */
.flatpickr-calendar {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-2);
    font-family: var(--font-body);
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-months .flatpickr-month { color: var(--ink); fill: var(--ink); height: 40px; }
.flatpickr-current-month { font-size: 15px; font-weight: 800; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 800; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--gx-red); }
span.flatpickr-weekday { color: var(--ink-3); font-weight: 700; }
.flatpickr-day { border-radius: 10px; color: var(--ink); font-weight: 600; }
.flatpickr-day:hover { background: var(--ink-50); border-color: var(--ink-50); }
.flatpickr-day.today { border-color: var(--gx-red); }
.flatpickr-day.today:hover { background: var(--gx-red-50); border-color: var(--gx-red); color: var(--gx-red-700); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover,
.flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus {
    background: var(--gx-red);
    border-color: var(--gx-red);
    color: #fff;
}
.flatpickr-day.inRange { background: var(--gx-red-50); border-color: var(--gx-red-50); box-shadow: -5px 0 0 var(--gx-red-50), 5px 0 0 var(--gx-red-50); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--ink-3); }

/* ---------- jQuery Confirm ---------- */
.jconfirm { font-family: var(--font-body); }
.jconfirm .jconfirm-bg { background-color: #17191C !important; }
.jconfirm.jconfirm-open .jconfirm-bg, .jconfirm .jconfirm-bg.jconfirm-bg-h { opacity: .5 !important; }
.jconfirm .jconfirm-box {
    border-radius: 26px !important;
    border-top: 0 !important;
    padding: 26px 22px 20px !important;
    box-shadow: 0 24px 60px rgba(15, 18, 22, .3) !important;
    background: var(--surface) !important;
}
.jconfirm .jconfirm-box div.jconfirm-title-c { padding-bottom: 8px; }
.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title {
    font-family: var(--font-body);
    font-size: 21px !important;
    font-weight: 800 !important;
    color: var(--ink) !important;
}
.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c { font-size: 40px !important; color: var(--gx-red-fg) !important; margin-bottom: 8px !important; }
.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.jconfirm .jconfirm-box .jconfirm-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 8px; float: none !important; }
.jconfirm .jconfirm-box .jconfirm-buttons button,
.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button {
    min-width: 120px;
    margin: 0 !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    font-family: var(--font-body);
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
}
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red { background-color: var(--gx-red-strong); color: #fff; }
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red:hover { background-color: var(--gx-red-deep); }
.jconfirm .jconfirm-box .jconfirm-closeIcon {
    top: 14px !important;
    right: 14px !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    border-radius: 50%;
    background: var(--ink-50);
    color: var(--ink) !important;
    opacity: 1 !important;
    font-size: 20px !important;
}

/* ---------- PNotify ---------- */
.ui-pnotify { font-family: var(--font-body); }
.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move { transition: opacity .3s linear, left .3s ease, top .3s ease, right .3s ease, bottom .3s ease; }
.ui-pnotify-container.brighttheme {
    padding: 14px 16px;
    border: 0;
    border-left: 4px solid var(--ink-3);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-2);
    color: var(--ink);
}
.brighttheme.brighttheme-success, .ui-pnotify-container.brighttheme-success { border-left-color: var(--success); background: var(--surface); color: var(--ink); }
.brighttheme.brighttheme-error, .ui-pnotify-container.brighttheme-error { border-left-color: var(--gx-red); background: var(--surface); color: var(--ink); background-image: none; }
.brighttheme.brighttheme-notice, .ui-pnotify-container.brighttheme-notice { border-left-color: var(--gx-amber); background: var(--surface); color: var(--ink); }
.brighttheme.brighttheme-info, .ui-pnotify-container.brighttheme-info { border-left-color: var(--info); background: var(--surface); color: var(--ink); }
.brighttheme .ui-pnotify-title { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.brighttheme .ui-pnotify-text { font-size: 14px; color: var(--ink-2); }
.brighttheme .ui-pnotify-icon, .brighttheme .ui-pnotify-icon span { border-radius: 50%; }
.brighttheme-icon-success { background-color: var(--success); color: #fff; }
.brighttheme-icon-error { background-color: var(--gx-red); color: #fff; }
.brighttheme-icon-notice { background-color: var(--gx-amber); color: var(--ink); }
.brighttheme-icon-info { background-color: var(--info); color: #fff; }

/* ---------- SweetAlert2 ---------- */
.swal2-popup { border-radius: 26px !important; font-family: var(--font-body) !important; color: var(--ink); padding: 1.6rem 1.25rem 1.4rem; }
.swal2-title { font-size: 22px !important; font-weight: 800 !important; color: var(--ink) !important; }
.swal2-html-container, .swal2-content { font-size: 15px !important; color: var(--ink-2) !important; }
.swal2-styled { border-radius: 999px !important; font-weight: 700 !important; padding: .65em 1.6em !important; }
.swal2-styled.swal2-confirm { background-color: var(--gx-red) !important; }
.swal2-styled.swal2-cancel { background-color: var(--ink-50) !important; color: var(--ink) !important; }
.swal2-styled:focus { box-shadow: var(--ring) !important; }

/* ---------- Fancybox ---------- */
.fancybox__container { --fancybox-bg: rgba(29, 22, 20, .9); }
.fancybox__slide.has-iframe .fancybox__content,
.fancybox__slide.has-pdf .fancybox__content {
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--canvas);
}
.fancybox__container .carousel__button.is-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gx-red);
    color: #fff;
    opacity: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.fancybox__container .carousel__button.is-close:hover { background: var(--gx-red-strong); }
.fancybox__container .carousel__button.is-close svg { filter: none; width: 20px; height: 20px; stroke-width: 2.4; }
/* janelas do sistema (gxJanela): o X fica na margem; no celular a janela desce para nao encostar nele */
@media (max-width: 767.98px) {
    .fancybox__container.gx-janela .fancybox__slide.has-iframe { padding-top: 64px; }
}

/* ---------- TinyMCE e uploaders ---------- */
.tox.tox-tinymce { border: 1.5px solid var(--line); border-radius: 14px; }
.fileuploader { border-radius: var(--radius-md); background: var(--surface-2); }
.fileuploader-theme-dragdrop .fileuploader-input {
    border: 2px dashed var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.fileuploader-theme-dragdrop .fileuploader-input:hover,
.fileuploader-theme-dragdrop.fileuploader-dragging .fileuploader-input { border-color: var(--gx-red); background: var(--gx-red-50); }

/* ==========================================================================
   Ajustes finos: regras do template que usam azul com maior especificidade
   ========================================================================== */
.dataTables_filter .form-control:focus,
.dataTables_length .form-control:focus,
div.dataTables_wrapper div.dataTables_filter input:focus,
div.dataTables_wrapper div.dataTables_length select:focus,
.login-content .form-control:focus,
.custom-select:focus {
    border-color: var(--gx-red) !important;
    box-shadow: var(--ring) !important;
    outline: 0;
}
/* Paginação do DataTables: o template aplica azul com !important no hover */
.dataTables_wrapper .dataTables_paginate li.paginate_button,
.dataTables_wrapper .dataTables_paginate li.paginate_button:hover,
.dataTables_wrapper .dataTables_paginate li.paginate_button:focus {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
}
.dataTables_wrapper .dataTables_paginate li.paginate_button:not(.active):not(.disabled) .page-link:hover,
.dataTables_wrapper .dataTables_paginate li.paginate_button:not(.active):not(.disabled) .page-link:focus,
.dataTables_wrapper .dataTables_paginate a.paginate_button:not(.current):not(.disabled):hover,
.dataTables_wrapper .dataTables_paginate span .paginate_button:not(.current):hover {
    border-color: var(--gx-red-50) !important;
    background: var(--gx-red-50) !important;
    color: var(--gx-red-700) !important;
}
.dataTables_wrapper .dataTables_paginate li.paginate_button.active .page-link,
.dataTables_wrapper .dataTables_paginate li.paginate_button.active .page-link:hover,
.dataTables_wrapper .dataTables_paginate span .paginate_button.current,
.dataTables_wrapper .dataTables_paginate span .paginate_button.current:hover {
    border-color: var(--gx-red) !important;
    background: var(--gx-red) !important;
    color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate li.paginate_button.disabled .page-link,
.dataTables_wrapper .dataTables_paginate li.paginate_button.disabled .page-link:hover,
.dataTables_wrapper .dataTables_paginate a.paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate a.paginate_button.disabled:hover {
    border-color: transparent !important;
    background: transparent !important;
    color: var(--ink-3) !important;
    cursor: default;
}
/* Botões de exportação (Copiar, Excel, PDF, Colunas) */
.dt-buttons .btn:hover,
.dt-buttons .btn:focus,
.dt-buttons .btn.active,
.dt-buttons .btn[aria-expanded="true"] {
    border-color: var(--gx-red-50) !important;
    background: var(--gx-red-50) !important;
    color: var(--gx-red-700) !important;
    box-shadow: none !important;
}
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before,
.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before,
.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: rgba(207, 1, 15, .45); border-color: transparent; }
.custom-range::-webkit-slider-thumb { background-color: var(--gx-red); }
.custom-range::-moz-range-thumb { background-color: var(--gx-red); }
.floating-input:focus ~ label { color: var(--gx-red-fg); }
span.link:hover, .fancyOpen, .fancyOpenGOOGLE, .fancyOpen:hover, .fancyOpenGOOGLE:hover { color: var(--gx-red-fg); }
.border-primary { border-color: var(--gx-red) !important; }
.bg-blue { background-color: var(--info) !important; }
.text-blue { color: var(--info) !important; }
.focus .ts-control, .ts-wrapper.focus .ts-control { border-color: var(--gx-red) !important; box-shadow: var(--ring) !important; }
.ts-wrapper.multi .ts-control > div.active { background: var(--gx-red); color: #fff; border-color: var(--gx-red); }
.plugin-dropdown_input.focus .ts-dropdown .dropdown-input { border-color: var(--gx-red); box-shadow: var(--ring); }
.select2-container--bootstrap .select2-dropdown { border-color: var(--line); }
.iq-timeline li .timeline-dots, .iq-timeline0 li .timeline-dots, .iq-timeline1 li .timeline-dots { border-color: var(--gx-red); color: var(--gx-red-fg); }

/* Estrela de favoritos na lista de fluxos (processos-all.php)
   O flow.js marca o favorito com a classe .text-secondary */
.process-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ink-3) !important;
    font-size: 16px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.process-fav i { --fa-style: 400; }
.process-fav:hover { background: var(--gx-amber-50); color: var(--gx-amber) !important; }
.process-fav:active { transform: scale(.9); }
.process-fav.text-secondary { color: #F5B700 !important; }
.process-fav.text-secondary i { --fa-style: 900; filter: drop-shadow(0 1px 1px rgba(185, 120, 10, .35)); animation: gx-fav-pop .3s ease; }
.process-fav.text-secondary:hover { background: var(--gx-amber-50); color: #E0A800 !important; }
@keyframes gx-fav-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Botões do topo do formulário do processo (processos-all.php): uma única linha */
.gx-process-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.gx-process-actions .btn,
.gx-process-actions .dropdown-toggle { white-space: nowrap; }
.gx-process-actions .dropdown { flex: 0 0 auto; }
@media (max-width: 767.98px) {
    .gx-process-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }
}

/* Contador do botão Alertas (rodapé) */
.gx-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ink-3);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.gx-count.is-active { background: var(--gx-red); }

/* Painel flutuante com o resumo do processo (formulários) */
.gx-float-info {
    right: 16px !important;
    min-width: 200px;
    max-width: 260px !important;
    border: 0 !important;
    border-left: 4px solid var(--gx-red) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    box-shadow: var(--shadow-2) !important;
    font-size: 13.5px;
    text-align: left !important;
}
.gx-float-info .content-aux { padding: 14px 16px 10px !important; }
.gx-float-info .content-aux > br:first-child { display: none; }
.gx-float-info p { margin: 0 0 6px; line-height: 1.35; color: var(--ink-2); }
.gx-float-info p b { display: block; color: var(--ink); font-size: 12.5px; }
.gx-float-info .content-aux p:first-of-type { padding-right: 30px; }
.gx-float-info #change-visibility {
    position: absolute;
    top: 8px;
    right: 8px !important;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
}
.gx-float-info:has(.content-aux.d-none) { min-width: 0; width: 46px; height: 46px; border-left-width: 0 !important; border-radius: 50% !important; }
.gx-float-info:has(.content-aux.d-none) #change-visibility { top: 8px; right: 8px !important; }

/* ==========================================================================
   Páginas de acesso (login, recuperação e primeiro acesso)
   ========================================================================== */
body.gx-auth-body { min-height: 100vh; background: var(--canvas); }

.gx-auth { min-height: 100vh; display: flex; flex-direction: column; }

.gx-auth__hero {
    position: relative;
    overflow: hidden;
    padding: calc(34px + var(--safe-top)) 24px 74px;
    background: linear-gradient(180deg, var(--gx-red) 0%, #9E000C 100%);
    color: #fff;
    text-align: center;
}
.gx-auth__hero-content { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; }
.gx-auth__mark { width: 84px; height: auto; }
.gx-auth__hello {
    margin: 14px 0 6px;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: clamp(30px, 7vw, 46px);
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #fff;
}
.gx-auth__lead { margin: 0 auto; max-width: 36ch; font-size: 15.5px; color: rgba(255, 255, 255, .9); }
.gx-auth__swoosh-v { display: none; }

.gx-auth__body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px calc(24px + var(--safe-bottom));
    margin-top: -30px;
}
.gx-auth__card {
    width: 100%;
    max-width: 440px;
    padding: 26px 24px 24px;
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow-2);
}
.gx-auth__logo { display: block; max-width: 70%; height: auto; margin: 0 auto 20px; }
.gx-auth__title { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.gx-auth__text { margin: 4px 0 20px; font-size: 14.5px; color: var(--ink-2); }
.gx-auth__form { display: grid; gap: 14px; }
.gx-auth__row { display: flex; justify-content: flex-end; margin-top: -4px; }
.gx-auth__link { font-size: 14px; font-weight: 700; color: var(--gx-red-fg); }
.gx-auth__actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 4px; }
.gx-auth__actions .btn { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.gx-auth .btn-block { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.gx-auth .btn .fa-2x { font-size: 1em; }
.gx-auth__hint { margin: -4px 0 0; font-size: 13px; color: var(--ink-2); }
.gx-auth__hint i { color: var(--ink-3); margin-right: 4px; }
.gx-auth__feedback:empty { display: none; }
.gx-auth__feedback { margin-top: -6px; font-size: 13px; font-weight: 600; }
.gx-auth__warn { margin-top: 14px; font-size: 13px; color: var(--gx-red-700); }
.gx-auth__warn p { margin: 0; }
.gx-auth #error-login .alert { margin-bottom: 16px; }
.gx-auth__copy { margin: 18px 0 0; font-size: 13px; color: var(--ink-2); text-align: center; }
.gx-auth__copy a { color: var(--ink); font-weight: 700; }

.gx-auth__notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--gx-amber-50);
}
.gx-auth__notice-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--gx-amber);
    color: var(--ink);
    font-size: 17px;
}
.gx-auth__notice-title { margin: 0; font-weight: 800; color: var(--ink); }
.gx-auth__notice-text { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.gx-auth__notice--warn { background: var(--gx-red-50); }
.gx-auth__notice--warn .gx-auth__notice-icon { background: var(--gx-red); color: #fff; }

/* Campo com rótulo flutuante */
.gx-field { position: relative; }
.gx-field__icon {
    position: absolute;
    left: 16px;
    top: 0;
    height: 56px;
    display: flex;
    align-items: center;
    color: var(--ink-3);
    font-size: 15px;
    pointer-events: none;
    transition: color .15s ease;
}
.gx-field .gx-field__input {
    height: 56px;
    padding: 22px 48px 6px 44px;
    border-radius: 14px;
    font-size: 16px;
}
.gx-field label {
    position: absolute;
    left: 45px;
    top: 17px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .15s ease, color .15s ease;
}
.gx-field__input:focus ~ label,
.gx-field__input:not(:placeholder-shown) ~ label { transform: translateY(-10px) scale(.78); font-weight: 700; }
.gx-field__input:focus ~ label { color: var(--gx-red-fg); }
.gx-field:focus-within .gx-field__icon { color: var(--gx-red-fg); }
.gx-field__reveal {
    position: absolute;
    right: 6px;
    top: 8px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
}
.gx-field__reveal:hover { background: var(--ink-50); color: var(--ink); }

@media (min-width: 992px) {
    .gx-auth { flex-direction: row; }
    .gx-auth__hero {
        flex: 0 0 44%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 48px 90px 48px 48px;
    }
    .gx-auth__hero-content { margin: 0 auto; max-width: 440px; }
    .gx-auth__mark { width: 118px; }
    .gx-auth__hello { font-size: clamp(42px, 4vw, 60px); margin-top: 22px; }
    .gx-auth__lead { margin: 12px auto 0; font-size: 17px; }
    .gx-auth__swoosh-h { display: none; }
    .gx-auth__swoosh-v {
        display: block;
        position: absolute;
        top: 0;
        right: -1px;
        bottom: 0;
        width: 60px;
        height: 100%;
    }
    .gx-auth__body { justify-content: center; margin-top: 0; padding: 32px; }
    .gx-auth__card { padding: 34px 34px 30px; box-shadow: var(--shadow-1); }
}

/* ==========================================================================
   Páginas internas carregadas em janelas (Fancybox)
   ========================================================================== */
body:not(.gx-shell):not(.gx-auth-body) > .card { margin: 12px !important; }

/* ==========================================================================
   Impressão e acessibilidade
   ========================================================================== */
@media print {
    body.gx-shell { padding: 0 !important; background: #fff; }
    .gx-sidebar, .gx-backdrop, .gx-appbar, .gx-hero, .gx-footer, .gx-bottomnav, .gx-totop, #loading { display: none !important; }
    .card { box-shadow: none; border: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Guaxinim: barra superior, filtros e cartoes de dispositivo (dashboard)
   ========================================================================== */

/* Nome do sistema na barra (aparece antes de rolar a pagina) */
.gx-appbar__system {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .96;
    transition: opacity .2s ease, transform .2s ease;
}
body.is-scrolled .gx-appbar__system { opacity: 0; transform: translateY(-6px); position: absolute; pointer-events: none; }
.gx-appbar__title { flex: 0 1 auto; }
body.is-scrolled .gx-appbar__title { flex: 1; }
.icon-btn.is-on { background: #fff; color: var(--gx-red-fg); }
@media (max-width: 1199.98px) { .gx-appbar__system { display: none; } }

/* Filtros por filial */
.gx-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 4px 16px; }
.gx-filtro {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.gx-filtro:hover { background: var(--gx-red-50); border-color: var(--gx-red-100); color: var(--gx-red-700); }
.gx-filtro.active, .gx-filtro.is-on, .gx-filtro.btn-primary { background: var(--gx-red); border-color: var(--gx-red); color: #fff; box-shadow: var(--shadow-red); }
.gx-filtro.btn-outline-primary:not(.active) { background: var(--surface); border-color: var(--line); color: var(--ink-2); box-shadow: none; }

/* Cartoes de dispositivo */
.gx-device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gx-device {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}
.gx-device__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
}
.gx-device__filial {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--gx-red);
    font-size: 12px;
    font-weight: 800;
}
.gx-device__tipo { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-device__body { padding: 14px; }
.gx-device__name { margin: 0 0 10px; font-size: 15px; font-weight: 800; text-align: center; color: var(--ink); }
.gx-device__row { display: flex; align-items: flex-start; gap: 12px; }
.gx-device__img { flex: 0 0 52px; }
.gx-device__img img { width: 100%; height: auto; }
.gx-device__info { flex: 1; min-width: 0; }
.gx-leitor { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; font-size: 13px; }
.gx-leitor + .gx-leitor { border-top: 1px dashed var(--line); }
.gx-leitor__sentido { font-weight: 700; color: var(--ink-2); }
.gx-leitor__sentido i { color: var(--gx-red-fg); }
.gx-leitor__ip { font-weight: 700; color: var(--ink); }
.gx-leitor__ip:hover { color: var(--gx-red-fg); }
.gx-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.gx-status--on { color: var(--success); }
.gx-status--off { color: var(--gx-red-fg); }
.gx-status .pulse-green, .gx-status .pulse-red { position: static; display: inline-block; }

/* animacao de reorganizacao dos cartoes (usada pelo filtro) */
.filial-oculta { display: none !important; }
.card-filial { transition: transform .40s cubic-bezier(.22, .61, .36, 1), opacity .28s ease; will-change: transform, opacity; }
.card-filial.card-entrando { opacity: 0; transform: scale(.92) translateY(12px); }
.card-filial.card-saindo { opacity: 0; transform: scale(.92); }
@media (prefers-reduced-motion: reduce) {
    .card-filial, .gx-filtro { transition: none !important; }
}

/* ==========================================================================
   Telas de acesso que mantiveram a marcacao do template
   (recuperar senha, nova senha, primeiro acesso e manutencao)
   ========================================================================== */
body.gx-auth-legacy { background: var(--canvas); }
body.gx-auth-legacy .login-content {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(28px + var(--safe-top)) 0 calc(28px + var(--safe-bottom));
    background: none;
}
/* faixa vermelha no topo, como nas demais telas */
body.gx-auth-legacy .login-content::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 42%;
    background: linear-gradient(180deg, var(--gx-red) 0%, #9E000C 100%);
}
body.gx-auth-legacy .login-content .container { position: relative; z-index: 1; }
body.gx-auth-legacy .card.auth-card {
    border: 0 !important;
    border-radius: 26px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-2) !important;
    backdrop-filter: none !important;
    padding: 8px 10px 14px;
}
body.gx-auth-legacy .gx-auth__logo { display: block; max-width: 74%; height: auto; margin: 18px auto 6px; }
body.gx-auth-legacy .card.auth-card .gx-auth__logo { margin-top: 8px; }
body.gx-auth-legacy h3, body.gx-auth-legacy h4, body.gx-auth-legacy h5 { color: var(--ink); }
body.gx-auth-legacy .text-primary { color: var(--gx-red-fg) !important; }
body.gx-auth-legacy .btn-primary { width: 100%; }
body.gx-auth-legacy .row > [class^="col-lg-"] > a.float-right { font-weight: 700; }
body.gx-auth-legacy .login-content .col-12.text-center span,
body.gx-auth-legacy .login-content .col-12.text-center a { color: #fff; }
@media (min-width: 992px) {
    body.gx-auth-legacy .login-content::before { height: 100%; width: 44%; right: auto; }
}

/* ---------- Foto do perfil pela webcam (webcam/index.php) ---------- */
body.gx-webcam-body { background: var(--canvas); color: var(--ink); padding: 14px 0 22px; }
body.gx-webcam-body .card { border: 0; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-1); }
body.gx-webcam-body video, body.gx-webcam-body img#foto { border-radius: 18px !important; background: var(--ink-50); }
body.gx-webcam-body .btn { border-radius: 999px; }

/* ==========================================================================
   Icone do cabecalho dos cards: vermelho sobre fundo vermelho claro (como no Flow)
   As paginas usam <i class="fa-solid ... fa-2x"> direto no .header-title ou
   dentro do .btn-collapse; o fa-2x deixava o icone grande e preto.
   ========================================================================== */
.header-title > i[class*="fa-"],
.header-title > .btn-collapse > i[class*="fa-"],
.modal-title > i[class*="fa-"]:first-child {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gx-red-50);
    color: var(--gx-red-fg);
    font-size: 16px !important;   /* anula o fa-2x */
    line-height: 1;
    vertical-align: middle;
}
.header-title img[src*="guaxinim-ico.png"],
.modal-title img[src*="guaxinim-ico.png"] {
    width: 36px !important;
    height: 36px;
    flex: 0 0 36px;
    padding: 6px;
    border-radius: 12px;
    background: var(--gx-red-50);
    object-fit: contain;
}

/* ==========================================================================
   Tom Select: borda e fundo solidos
   O tema tom-select.bootstrap5 (CDN) aplica "background: transparent !important"
   e "border: none !important" no .ts-control quando o wrapper tem .form-control.
   Os seletores abaixo repetem os dele para empatar a especificidade e vencer
   pela ordem (este arquivo carrega depois).
   ========================================================================== */
.ts-wrapper,
.ts-wrapper.form-control,
.ts-wrapper.form-select {
    height: auto !important;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.ts-wrapper .ts-control,
.ts-wrapper.single .ts-control,
.ts-wrapper.single.input-active .ts-control,
.ts-wrapper.form-control .ts-control,
.ts-wrapper.form-control.single.input-active .ts-control,
.ts-wrapper.form-select .ts-control,
.ts-wrapper.form-select.single.input-active .ts-control,
.ts-wrapper.form-control:not(.disabled) .ts-control,
.ts-wrapper.form-control:not(.disabled).single.input-active .ts-control,
.ts-wrapper.form-select:not(.disabled) .ts-control,
.ts-wrapper.form-select:not(.disabled).single.input-active .ts-control {
    min-height: 44px;
    padding: 8px 36px 8px 12px;
    border: 1.5px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--surface) !important;
    color: var(--ink);
    box-shadow: none;
}
.ts-wrapper .ts-control:hover { border-color: #C7CCD2 !important; }
.ts-wrapper.focus .ts-control,
.ts-wrapper.form-control.focus .ts-control,
.ts-wrapper.form-select.focus .ts-control,
.ts-wrapper.dropdown-active .ts-control {
    border-color: var(--gx-red) !important;
    box-shadow: var(--ring) !important;
}
.ts-wrapper.disabled .ts-control,
.ts-wrapper.form-control.disabled .ts-control { background: var(--ink-50) !important; opacity: .8; }
.ts-dropdown,
.ts-dropdown .ts-dropdown-content { background: var(--surface); color: var(--ink); }
.ts-dropdown { border: 1px solid var(--line); }
.ts-dropdown .active { background: var(--gx-red-50); color: var(--gx-red-700); }

/* ==========================================================================
   Botoes .btn-red e .btn-black (reprocessos e notificacoes)
   ========================================================================== */
.btn-red {
    color: #fff !important;
    background-color: var(--gx-red);
    border-color: var(--gx-red);
    box-shadow: none;
    padding: 8px;
}
.btn-red:hover, .btn-red:focus { background-color: var(--gx-red-strong); border-color: var(--gx-red-strong); }
.btn-black {
    color: #fff !important;
    background-color: #2F3439;
    border-color: #2F3439;
    box-shadow: none;
    padding: 8px;
}
.btn-black:hover, .btn-black:focus { background-color: #17191C; border-color: #17191C; }

/* ==========================================================================
   Dashboard: situacao do leitor so pelo ponto pulsante (sem texto)
   ========================================================================== */
.gx-pulse {
    position: relative;
    display: inline-block;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: help;
}
.gx-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: gx-pulse 1.8s ease-out infinite;
}
.gx-pulse--on { background: #22A55A; }
.gx-pulse--off { background: var(--gx-red); }
@keyframes gx-pulse {
    0% { transform: scale(1); opacity: .55; }
    80%, 100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .gx-pulse::after { animation: none; } }

/* telas de acesso com a marcacao do template: mesma faixa ambar/amarela do login */
body.gx-auth-legacy .login-content::before { box-shadow: 0 7px 0 var(--gx-amber), 0 13px 0 var(--gx-yellow); }
@media (min-width: 992px) {
    body.gx-auth-legacy .login-content::before { box-shadow: 7px 0 0 var(--gx-amber), 13px 0 0 var(--gx-yellow); }
}

/* ==========================================================================
   CRON INTERNO (Programador, Jobs e icone do rodape) e REP-A
   ========================================================================== */

/* item de menu que abre em janela */
.gx-nav__ext { margin-left: auto; font-size: 10px; opacity: .55; }

/* icone do servico de cron na barra inferior */
.gx-footer__cron {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--ink-50);
    color: var(--ink-3);
    font-size: 14px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.gx-footer__cron:hover, .gx-footer__cron:focus { text-decoration: none; filter: brightness(.96); }
/* ativo (online/ocupado): engrenagem girando em verde */
.gx-footer__cron.is-online, .gx-footer__cron.is-ocupado { background: var(--success-50); color: var(--success); }
/* nao ativo (offline/ausente): engrenagens paradas em vermelho, sem selo (::after) */
.gx-footer__cron.is-offline, .gx-footer__cron.is-ausente { background: var(--gx-red-50); color: var(--gx-red-fg); }
@media (prefers-reduced-motion: reduce) {
    .gx-footer__cron i.fa-spin { animation: none; }
}

/* tabelas */
.gx-cron-tabela td { vertical-align: middle; }
.gx-cron-tabela td > code:first-child { white-space: nowrap; }
.gx-cron-opcoes .custom-control-label { color: var(--ink); font-weight: 500; }
.gx-cron-tabela tr.is-off td { color: var(--ink-3); }
.gx-cron-tabela tr.is-off strong { color: var(--ink-2); }
.gx-cron-sub { margin-top: 2px; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.gx-cron-arquivo { white-space: normal; word-break: break-all; font-size: 12px; }
.gx-cron-aviso { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--gx-amber-700); }
.gx-cron-atualizado { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.gx-cron-filtro { min-width: 220px; }
.gx-cron-fila {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--gx-amber-50);
    color: var(--gx-amber-700);
    font-size: 13px;
    font-weight: 600;
}
.gx-cron-alerta { display: flex; align-items: center; gap: 10px; }

/* selos de situacao */
/* dentro de tabelas o template aplica ".table span { color }": a cor do selo precisa vencer */
.gx-cron-status,
.table .gx-cron-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--ink-50);
    color: var(--ink-2);
}
.gx-cron-status.gx-cron-status--success { background: var(--success-50); color: var(--success-700); }
.gx-cron-status.gx-cron-status--danger { background: var(--gx-red-50); color: var(--gx-red-fg); }
.gx-cron-status.gx-cron-status--info { background: var(--info-50); color: var(--info-700); }
.gx-cron-status.gx-cron-status--warning { background: var(--gx-amber-50); color: var(--gx-amber-700); }
.gx-cron-status.gx-cron-status--dark { background: var(--ink); color: var(--surface); }

/* cartao do servico */
.gx-cron-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--ink-50);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 700;
}
.gx-cron-pill--online { background: var(--success-50); color: var(--success-700); }
.gx-cron-pill--offline { background: var(--gx-red-50); color: var(--gx-red-fg); }
.gx-cron-pill--ausente { background: var(--gx-amber-50); color: var(--gx-amber-700); }
.gx-cron-servico {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px 24px;
    margin: 0;
}
.gx-cron-servico > div { min-width: 0; }
.gx-cron-servico dt { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.gx-cron-servico dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.gx-cron-instrucoes {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--line);
    background: var(--surface-2);
}
.gx-cron-instrucoes__titulo { font-weight: 800; color: var(--ink); }
.gx-cron-instrucoes__so { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 12px; }

/* formulario do programador */
.gx-cron-quando { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 575.98px) { .gx-cron-quando { grid-template-columns: 1fr; } }
.gx-cron-expr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }
.gx-cron-previa:not(:empty) {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--success-50);
    color: var(--ink);
    font-size: 13px;
}
.gx-cron-previa__erro { color: var(--gx-red-fg); font-weight: 600; }
.gx-cron-previa:has(.gx-cron-previa__erro) { background: var(--gx-red-50); }

/* console (log das execucoes) - escuro nos dois temas */
.gx-console {
    max-height: 60vh;
    margin: 0;
    padding: 14px 16px;
    overflow: auto;
    border-radius: var(--radius-sm);
    background: #0F1113;
    color: #D5DBE1;
    font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-word;
}
.gx-console--mini { max-height: none; margin: 6px 0 4px; padding: 10px 12px; font-size: 12px; }
.gx-cron-log-info:empty { display: none; }
.gx-cron-log-info { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* REP-A dentro da tela principal */
.gx-repa { margin: 0 -6px; }   /* compensa o respiro interno do painel: cards alinhados com as outras telas */
.gx-repa-frame {
    display: block;
    width: 100%;
    height: calc(100vh - var(--appbar-h) - 150px);
    min-height: 620px;
    border: 0;
    background: var(--canvas);
}

/* avisos rapidos (toast do SweetAlert2) em tamanho de notificacao */
/* seletores com .swal2-container na frente: vencem o CSS que o proprio SweetAlert2 injeta e o
   ".swal2-title { font-size: 22px !important }" das janelas normais (definido acima) */
.swal2-container .swal2-popup.swal2-toast { width: auto; max-width: 400px; padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-2); align-items: center; }
.swal2-container .swal2-popup.swal2-toast .swal2-title { margin: 0 0 0 10px; padding: 0; font-size: 14px !important; font-weight: 600; line-height: 1.4; text-align: left; }
.swal2-container .swal2-popup.swal2-toast .swal2-html-container { margin: 2px 0 0 10px; padding: 0; font-size: 13px; text-align: left; }

/* cron: fila de comandos, arquivos de log e atalhos para o gerenciador */
.gx-cron-fila-bloco {
    margin-top: 16px;
    padding: 12px 14px 4px;
    border-radius: var(--radius-sm);
    background: var(--gx-amber-50);
}
.gx-cron-fila-bloco__titulo { margin: 0 0 8px; font-weight: 700; color: var(--gx-amber-700); }
.gx-cron-fila-bloco .table { background: transparent; }
.gx-cron-logs-barra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 16px;
    font-size: 13px;
}
.gx-cron-logs-barra > p { flex: 1 1 320px; }
.gx-cron-logs-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* "Apagar logs com mais de [N] dias [Limpar]": um bloco so, mesma altura dos botoes pequenos,
   cantos arredondados nas duas pontas (raio dos .btn-sm do sistema) */
.gx-cron-btn34 { height: 34px; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; }
.gx-cron-limpar {
    display: inline-flex;
    align-items: stretch;
    height: 34px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}
.gx-cron-limpar__rotulo {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 10px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.gx-cron-limpar__num {
    width: 58px;
    border: 0;
    border-left: 1.5px solid var(--line);
    border-right: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    -moz-appearance: textfield;
}
.gx-cron-limpar__num::-webkit-outer-spin-button,
.gx-cron-limpar__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gx-cron-limpar__num:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gx-red-50); }
.gx-cron-limpar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border: 0;
    background: var(--gx-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease;
}
.gx-cron-limpar__btn:hover, .gx-cron-limpar__btn:focus { background: var(--gx-red-strong); outline: none; }
.gx-cron-limpar:focus-within { border-color: var(--gx-red); }

/* controle do servico */
.gx-cron-servico-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.gx-cron-servico-acoes .btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; }
.gx-cron-servico-acoes .btn.gx-cron-falta { opacity: .75; }
.gx-cron-servico-acoes .btn.gx-cron-falta::after { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gx-amber); color: #fff; font-size: 11px; font-weight: 800; }
.gx-cron-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gx-cron-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); text-align: left; }
.gx-cron-check > i { margin-top: 3px; font-size: 16px; }
.gx-cron-check--ok > i { color: var(--success); }
.gx-cron-check--aviso > i { color: var(--gx-amber); }
.gx-cron-check--erro { background: var(--gx-red-50); }
.gx-cron-check--erro > i { color: var(--gx-red-fg); }
.gx-cron-check strong { color: var(--ink); }
.gx-cron-check__det { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.gx-cron-check__sol { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--gx-red-fg); overflow-wrap: anywhere; }
.gx-cron-check--aviso .gx-cron-check__sol { color: var(--gx-amber-700); }
.gx-cron-resultado { text-align: left; font-size: 14px; line-height: 1.55; }
.gx-cron-dia .btn-link { font-weight: 700; color: var(--ink); text-decoration: none; }
.gx-cron-dia .btn-link i { width: 14px; color: var(--ink-3); }
.gx-cron-dia-detalhe > td { background: var(--surface-2); padding: 8px 14px 12px !important; }
.gx-cron-dia-lista .table td { vertical-align: middle; border-top-color: var(--line); }
.gx-cron-arquivo-link { text-decoration: none; }
.gx-cron-arquivo-link:hover code { text-decoration: underline; }

/* ao rolar ate um campo/botao (teclado, ancoras), ele nao fica escondido atras da barra fixa do topo */
html { scroll-padding-top: calc(var(--appbar-h, 64px) + 12px); }

/* tooltips e avisos rapidos nunca capturam o clique: o tooltip (mesmo durante a animacao)
   ficava por cima do proprio botao, e a area do toast bloqueava o que estava embaixo dele */
.tooltip { pointer-events: none; }
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-right,
.swal2-container.swal2-bottom-end { pointer-events: none; background: transparent !important; }
.swal2-container .swal2-toast { pointer-events: auto; }
