@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* =========================================================
   Construct+ Design System — Apple-Inspired Modern Edition
   ========================================================= */

:root {
    /* Realize Human inspired palette */
    --background: 0 0% 100%;
    --foreground: 197 49% 17%;
    --card: 0 0% 100%;
    --card-foreground: 197 49% 17%;
    --primary: 194 58% 18%;
    --primary-foreground: 0 0% 100%;
    --secondary: 193 49% 41%;
    --secondary-foreground: 0 0% 100%;
    --accent: 324 67% 54%;
    --accent-foreground: 0 0% 100%;
    --muted: 30 25% 96%;
    --muted-foreground: 198 18% 38%;
    --border: 28 22% 85%;

    /* Extended Palette */
    --c-primary: #103d49;
    --c-primary-light: #185667;
    --c-secondary: #3b8aa0;
    --c-secondary-light: #58a9bf;
    --c-tertiary: #d93e92;
    --c-tertiary-light: #ec63ad;
    --c-outline: #e5ddd6;
    --c-outline-light: #f1ebe6;
    --c-surface: #ffffff;
    --c-surface-dim: #fbf8f6;
    --c-soft: #f6f2ef;
    --c-soft-2: #eef7fa;

    /* Premium Radius System */
    --radius-xs: 1px;
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(16, 61, 73, 0.04);
    --shadow-sm: 0 2px 8px rgba(16, 61, 73, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 61, 73, 0.10);
    --shadow-lg: 0 16px 48px rgba(16, 61, 73, 0.14);
    --shadow-xl: 0 24px 64px rgba(16, 61, 73, 0.18);
    --shadow-glow: 0 0 40px rgba(217, 62, 146, 0.22);
    --shadow-inset: inset 0 1px 2px rgba(16, 61, 73, 0.06);

    /* Refined Motion */
    --t-instant: 80ms;
    --t-fast: 150ms;
    --t: 250ms;
    --t-slow: 400ms;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Fibonacci Spacing */
    --space-xxs: 3px;
    --space-xs: 5px;
    --space-s: 8px;
    --space-m: 13px;
    --space-l: 21px;
    --space-xl: 34px;
    --space-2xl: 55px;
    --space-3xl: 89px;
}

/* =========================================================
   Base Typography
   ========================================================= */
html,
body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: hsl(var(--foreground));
    background: hsl(var(--background));

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    font-feature-settings: "kern" 1, "liga" 1;

    letter-spacing: -0.005em;
    line-height: 1.65;
}

/* Headings mais elegantes e menos pesados */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: hsl(var(--primary));
}

/* Links mais coerentes com o accent magenta */
a {
    color: hsl(var(--accent));
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

a:hover {
    color: var(--c-tertiary-light);
}

/* Focus moderno (menos feio que outline padrão) */
*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(217, 62, 146, 0.35);
    border-radius: var(--radius-sm);
}

/* Seleção de texto (detalhe que quase ninguém faz, mas muda percepção) */
::selection {
    background: rgba(217, 62, 146, 0.15);
    color: hsl(var(--foreground));
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

* {
    outline: none;
}


input,
select,
textarea {
    border-radius: 3px !important;
}

/* =========================================================
   Login Page — Glassmorphism Card
   ========================================================= */
body.login2 {
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../_custom/img/fundo_login.jpg) center / cover no-repeat fixed;
}

body.login2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

}

/* =========================================================
   Video Background
   ========================================================= */
.div-video_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -100;
}

@media (max-width: 768px) {
    .div-video_bg {
        display: none;
    }
}

.div-video_bg>.video-video_bg,
.div-video_bg>.overlay-video_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.div-video_bg>.video-video_bg {
    z-index: 1;
    object-fit: cover;
}

.div-video_bg>.overlay-video_bg {
    z-index: 2;
}

@media (min-aspect-ratio: 16/9) {
    .div-video_bg>.video-video_bg {
        height: 300%;
        top: -100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .div-video_bg>.video-video_bg {
        width: 300%;
        left: -100%;
    }
}

/* =========================================================
   Login Card — Premium Glassmorphism
   ========================================================= */
.div-login {
    position: relative;
    z-index: 3;
    max-width: 440px;
    width: 100%;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(203, 204, 174, 0.5);
    box-shadow:
        var(--shadow-xl),
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 -1px 0 rgba(7, 34, 53, 0.03) inset;
    text-align: center;
    animation: cardFloat 0.6s var(--ease-out) forwards;
}

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.login2 .login-wrapper h1 {
    margin: 0 0 var(--space-l) 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--c-primary);
}

body.login2 .login-wrapper {
    max-width: 380px;
    margin: 0 auto;
}

/* Form Inputs — Clean & Modern */
body.login2 .login-wrapper .input-group-addon {
    background: var(--c-soft);
    border: 1px solid rgba(203, 204, 174, 0.4);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--c-secondary);
    transition: all var(--t-fast) var(--ease);
}

body.login2 .login-wrapper input.form-control {
    height: 52px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border: 1px solid rgba(203, 204, 174, 0.5);
    background: #ffffff;
    box-shadow: var(--shadow-inset);
    font-size: 15px;
    font-weight: 400;
    color: #072235;
    transition: all var(--t) var(--ease);
}

body.login2 .login-wrapper input.form-control::placeholder {
    color: var(--c-outline);
}

body.login2 .login-wrapper input.form-control:focus {
    border-color: var(--c-tertiary);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(71, 188, 149, 0.12),
        var(--shadow-sm);
}

/* Buttons — Apple Premium Style */
body.login2 .login-wrapper input[type="submit"],
body.login2 .login-wrapper .btn,
body.login2 .div-login .btn {
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    padding: 14px 28px;
    transition: all var(--t) var(--ease-out);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
}

body.login2 .div-login .btn-success {
    background: linear-gradient(180deg,
            var(--c-tertiary) 0%,
            #d549d5 100%);
    color: #fff;
    box-shadow:
        var(--shadow-md),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

body.login2 .div-login .btn-success:hover {
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-lg),
        var(--shadow-glow);
}

body.login2 .div-login .btn-success:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   External Body Layout
   ========================================================= */
body.externo {
    padding: 5px 0 0;
    padding-top: 55px;
    /*margin-left: 56px;*/
    margin-left: 50px;
    transition: margin-left var(--t) var(--ease);
}

.legenda_titulo_pagina {
    margin-bottom: var(--space-s);
    font-weight: 500;
}

.navbar-fixed-bottom {
    margin-left: 56px;
}

.navbar-brand {
    padding: 0;
}

/* =========================================================
   Navbar — Frosted Glass Header
   ========================================================= */
.navbar-default {
    background: var(--c-primary);
    border: none;
    box-shadow: var(--shadow-md);
}

.icones_isolados_menu {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--t-fast) var(--ease);
}

.icones_isolados_menu:hover {
    color: #fff;
}

:where(.navbar-default a) {
    text-decoration: none;
}

:where(.navbar-default a:hover) {
    text-decoration: none;
}

/* =========================================================
   Sidebar Menu — Ultra Modern Dock Style
   ========================================================= */
.menu_lateral {
    position: fixed;
    left: 0;
    top: 50px;
    background: var(--c-primary) !important;
    color: white;
    height: calc(100dvh - 50px);
    /*width: 56px;*/
    width: 50px;
    z-index: 1049;
    transition: width var(--t) var(--ease-out);
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 1 !important;
    border-right: none;
    box-shadow: 1px 0 8px rgba(0, 0, 0, 0.08);

    /* Hide scrollbar completely for clean look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu_lateral::-webkit-scrollbar {
    display: none;
}

.menu_lateral_rodape {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    height: 95px;

}

.menu_lateral.menu_lateral_aberto {
    width: 240px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.menu_lateral_rodape img {
    max-height: 100%;
    transition: opacity var(--t) var(--ease);
    opacity: 0;
}

.menu_lateral_aberto>.menu_lateral_rodape img {
    opacity: 1;
}

.menu_lateral_rodape_linha {
    position: relative;
    width: 230px;
    height: 38px;
    overflow: hidden;
}

.menu_lateral_icone_rodape {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    top: 0;
    left: 0;
    /*width: 56px;*/
    width: 50px;
    /*height: 44px;*/
    height: 38px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--t-fast) var(--ease);
    border-radius: var(--radius-sm);
    /*margin: 2px;*/
}

.menu_lateral_icone_rodape_r {
    border-radius: var(--radius-sm);
}

.menu_lateral_rodape_texto {
    position: absolute;
    color: rgba(255, 255, 255, 0.75);
    top: 0;
    left: 56px;
    width: 150px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.div_imagem_usuario {
    max-width: 56px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.div_imagem_usuario img {
    border-radius: var(--radius-full);
    border: 2px solid var(--c-tertiary);
}

.menu_lateral_icone_rodape:visited,
.menu_lateral_icone_rodape:active,
.menu_lateral_icone_rodape:focus {
    text-decoration: none !important;
    color: inherit;
    background: transparent;
}

.menu_lateral_icone_rodape:hover {
    text-decoration: none;
    background: rgba(71, 188, 149, 0.15);
    color: var(--c-tertiary);
}

.menu_lateral_icone_rodape_r:visited,
.menu_lateral_icone_rodape_r:active,
.menu_lateral_icone_rodape_r:focus {
    color: inherit;
    background: transparent;
}

.menu_lateral_icone_rodape_a:visited,
.menu_lateral_icone_rodape_a:active,
.menu_lateral_icone_rodape_a:focus {
    color: inherit;
    background: transparent;
}

.menu_lateral_icone_rodape_r:hover {
    text-decoration: none;
    background: rgba(71, 188, 149, 0.15);
    color: var(--c-tertiary);
}

.menu_lateral.menu_lateral_aberto {
    width: 240px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.input-xs {
    height: 24px;
    font-size: 12px;
}

[data-oculta_perfil='SIM'] {
    display: none;
}

.div_croppie_wrap {
    width: 100%;
    height: calc(100vh - 115px) !important;
    padding-bottom: 45px;
}

@media screen and (max-width: 991px) {
    body.login2 {
        background: var(--c-primary);
    }

    .menu_lateral_rodape_linha {
        width: 100%;
    }

    .menu_lateral_rodape_texto {
        width: calc(100% - 200px);
    }

    .menu_lateral_icones_apoio {
        visibility: visible;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        top: 0;
        right: 0;
        width: 150px;
        height: 100%;
    }

    .calendario_data_descritivo {
        font-size: 18px;
        text-align: center;
    }

    .menu_lateral_aberto>.menu_lateral_rodape img {
        opacity: 1;
    }

    .calendario_botoes {
        text-align: center;
    }

    .menu_lateral.menu_lateral_aberto {
        width: 100vw;
    }

    .div-login {
        position: absolute;
        top: var(--space-m);
        left: var(--space-m);
        width: calc(100% - var(--space-l));
        height: calc(100% - var(--space-l));
        box-shadow: var(--shadow-xl);
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95);
        max-width: none;
        border-radius: var(--radius-lg);
    }

    .div_croppie_wrap {
        height: calc(100vh - 155px) !important;
    }
}

/* =========================================================
   Menu Items — Clean & Minimal
   ========================================================= */
.menu_lateral_itens {
    margin-top: 0;
    /*height: calc(100vh - 145px);*/
    height: calc(100vh - 126px);
    overflow: hidden;
    overflow-y: auto;
    padding: var(--space-xxs);

    /* Hide scrollbar completely */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu_lateral_itens::-webkit-scrollbar {
    display: none;
}

.link_menu_lateral {
    width: 100%;
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.menu_lateral_grupo {
    display: none;
    padding-left: var(--space-s);
    margin-left: var(--space-xs);
    background: rgba(26, 95, 122, 0.12) !important;
    border-left: 2px solid var(--c-tertiary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: var(--space-xxs);
}

.menu_lateral_sub_grupo {
    display: none;
    padding-left: var(--space-s);
    margin-left: var(--space-xs);
    background: rgba(26, 95, 122, 0.08) !important;
    border-left: 2px solid rgba(71, 188, 149, 0.4);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.menu_lateral_grupo .link_menu_lateral,
.menu_lateral_sub_grupo .link_menu_lateral {
    color: rgba(255, 255, 255, 0.85) !important;
}

.menu_lateral_titulo {
    width: calc(100% - 70px);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 500;
}

#container_dashboard_desk {
    display: inline-block;
    height: 100%;
    width: calc(100% - 290px);
    position: absolute;
    left: 145px;
}

#menu_superior {
    max-height: 56px;
    margin-bottom: 0;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu_superior_usuario {
    position: absolute;
    top: 0;
    right: var(--space-m);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 13px;
    font-weight: 500;
    width: 160px;
    text-align: right;
}

.menu_superior_usuario_nome {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 120px;
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
}

.link_menu_lateral,
.link_menu_lateral:visited {
    height: 40px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--t-fast) var(--ease);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}

.link_menu_lateral:hover,
.link_menu_lateral:active {
    text-decoration: none;
    background: rgba(71, 188, 149, 0.15);
    color: var(--c-tertiary-light);
}

.link_menu_lateral:focus {
    text-decoration: none;
    color: #fff;
}

.link_menu_lateral_accordion {
    height: 40px;
    display: flex;
    align-items: center;
}

.link_menu_lateral_direto {
    height: 40px;
    display: flex;
    align-items: center;
}

.menu_lateral_icone {
    font-size: 18px;
    width: 48px;
    text-align: center;
    max-width: 48px;
    min-width: 48px;
    opacity: 0.85;
}

#titulo_site {
    font-size: 17px;
    color: var(--c-primary);
    line-height: 1.3;
    width: 100%;
    display: inline-block;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* Login Form Refinements */
body.login2 .login-wrapper {
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}

body.login2 .login-wrapper h1 {
    font-size: 32px;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
}

body.login2 .login-wrapper h1 a {
    color: var(--c-secondary);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

body.login2 .login-wrapper h1 a:hover {
    color: var(--c-tertiary);
}

body.login2 .login-wrapper .input-group-addon {
    padding: var(--space-s) 0;
    background: var(--c-soft);
    min-width: 52px;
    text-align: center;
}

body.login2 .login-wrapper .input-group-addon i.falock {
    font-size: 18px;
    color: var(--c-secondary);
}

body.login2 .login-wrapper input.form-control {
    height: 52px;
    font-size: 15px;
    box-shadow: var(--shadow-inset);
}

body.login2 .login-wrapper .checkbox {
    margin-bottom: var(--space-m);
    text-align: left;
    color: #072235;
    font-size: 14px;
    font-weight: 500;
}

body.login2 .login-wrapper .checkbox label {
    color: #072235;
}

body.login2 .login-wrapper a {
    color: var(--c-secondary);
    font-weight: 500;
}

body.login2 .login-wrapper a:hover {
    color: var(--c-tertiary);
}

body.login2 .login-wrapper input[type="submit"] {
    padding: 14px 0 16px;
    margin: var(--space-m) 0 0 0;
    width: 100%;
}

body.login2 .login-wrapper h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 0 var(--space-l) 0;
}

/* =========================================================
   File Upload Components
   ========================================================= */
.fileUpload input.upload {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
}

.fileUpload2 input.uploadt2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
}

/* =========================================================
   DataTables — Clean & Modern
   ========================================================= */
.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}

.dataTable th {
    padding: var(--space-s) var(--space-m);
    padding-right: 24px;
    position: relative;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg,
            var(--c-soft) 0%,
            var(--c-soft-2) 100%);
    color: var(--c-primary);
    border-bottom: 2px solid var(--c-outline);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.dataTable th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.dataTable th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.dataTable th.sorting {
    cursor: pointer;
    position: relative;
    transition: background var(--t-fast) var(--ease);
}

.dataTable th.sorting:hover {
    background: var(--c-soft-2);
    color: var(--c-secondary);
}


th:active {
    outline: none;
}

#add-row {
    margin-right: 0;
}

.table>caption+thead>tr:first-child>th,
.table>colgroup+thead>tr:first-child>th,
.table>thead:first-child>tr:first-child>th,
.table>caption+thead>tr:first-child>td,
.table>colgroup+thead>tr:first-child>td,
.table>thead:first-child>tr:first-child>td {
    font-size: 11px;
}

body.login2 .form-group {
    margin-bottom: var(--space-m);
}

.logo_e_titulo_login {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-m);
    margin-bottom: var(--space-m);
}

.logo_e_titulo_login img {
    max-height: 160px;
    width: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: drop-shadow(0 4px 12px rgba(7, 34, 53, 0.25));
}

@media screen and (max-width: 414px) {
    body.login2 {
        padding: var(--space-xs);
    }

    body.login2 .login-wrapper {
        padding: 0 var(--space-m) var(--space-m);
    }

    body.login2 .login-wrapper h1 {
        margin-top: var(--space-xs);
        margin-bottom: var(--space-l);
    }

    body.login2 .login-wrapper h1 a:link {
        display: block;
        text-align: center;
    }

    body.login2 img {
        max-width: 50%;
        width: 50%;
        display: inline;
        border: 0;
    }

    .modal-footer .btn+.btn {
        margin-bottom: var(--space-xs) !important;
    }

    .modal-footer {
        text-align: center !important;
    }

    #dataTable1 * {
        font-size: 10px !important;
    }

    #dataTable1 td {
        min-width: 100px;
        white-space: nowrap;
    }

    #dataTable1 td.actions span {
        font-size: 10px !important;
        margin-left: 3px !important;
    }

    table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before,
    table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child:before {
        top: 6px !important;
    }

    table[id^='tabela_'] * {
        font-size: 10px !important;
    }

    table[id^='tabela_'] td {
        min-width: 100px;
        white-space: nowrap;
    }

    .radio input[type="radio"],
    .radio-inline input[type="radio"],
    .checkbox input[type="checkbox"],
    .checkbox-inline input[type="checkbox"] {
        margin-left: 0;
        position: relative;
    }

    .paging_full_numbers {
        float: left !important;
        max-width: 320px;
    }
}

/* =========================================================
   Treeview Component
   ========================================================= */
.tree {
    width: 100%;
    background: var(--c-soft);
    border: 1px solid var(--c-outline);
    border-radius: var(--radius-md);
    color: var(--c-secondary);
    padding: var(--space-m);
    font-size: 13px;
    margin-bottom: var(--space-m);
}

.tree h1 {
    margin: 0;
    width: 100%;
    padding: var(--space-m);
    background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary) 100%);
    color: #fff;
    letter-spacing: -0.01em;
    font-size: 18px;
    margin-bottom: var(--space-m);
    border-radius: var(--radius-sm);
}

.tree li {
    list-style-type: none;
    margin: 0;
    padding: 3px 5px 0 5px;
    position: relative;
}

.tree li::before,
.tree li::after {
    content: '';
    left: -40px;
    position: absolute;
    right: auto;
}

.tree li::before {
    border-left: 1px solid var(--c-outline);
    bottom: 50px;
    height: 100%;
    top: 0;
    width: 1px;
}

.tree li::after {
    border-top: 1px solid var(--c-outline);
    height: 20px;
    top: 25px;
    width: 25px;
}

.tree li span {
    background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary) 100%);
    color: #fff;
    display: inline-block;
    padding: var(--space-xs) var(--space-m);
    text-decoration: none;
    min-width: 160px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--t-fast) var(--ease);
}

.tree li.parent_li>span {
    cursor: pointer;
}

.tree>ul>li::before,
.tree>ul>li::after {
    border: 0;
}

.tree li:last-child::before {
    height: 30px;
}

.tree li.parent_li>span:hover,
.tree li.parent_li>span:hover+ul li span {
    background: var(--c-tertiary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.tree ul.primeiro {
    margin: 0;
    padding: 0;
}

/* =========================================================
   Dropdown Submenu
   ========================================================= */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-outline);
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: var(--c-outline);
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: var(--c-tertiary);
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm);
}

/* Input Text Transform */
input.Maiusculas {
    text-transform: uppercase;
}

input.Minusculas {
    text-transform: lowercase;
}

/* CEP Loader */
#loaderCEP {
    display: none;
}

.datepicker-dropdown {
    z-index: 888888 !important;
}

td.child {
    padding: 5px !important;
}

table.dataTable>tbody>tr.child span.dtr-title {
    min-width: 150px !important;
}

/* =========================================================
   Modal — Refined Glass Style
   ========================================================= */
.modal-backdrop {
    background: rgba(7, 34, 53, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.in {
    opacity: 1;
}

.modal.fade .modal-dialog {
    transform: translateY(24px) scale(0.97);
    transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease-out);
    opacity: 0;
}

.modal.in .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-body {
    overflow-y: auto;
    padding: var(--space-l);
}

.modal-content {
    max-height: calc(100vh - 30px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(203, 204, 174, 0.25);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    box-shadow:
        var(--shadow-xl),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 rgba(7, 34, 53, 0.02) inset;
    overflow: hidden;
}


@media (max-width: 480px) {
    .modal-full {
        position: fixed;
        inset: 0;
        overflow: hidden;
    }

    .modal-full .modal-dialog {
        position: fixed;
        margin: 0;
        width: 100%;
        height: 100%;
        padding: 0;
    }
}

@media (min-width: 481px) {
    .modal-full {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 480px;
        left: calc((100vw - 480px) / 2);
        overflow: hidden;
    }

    .modal-full .modal-dialog {
        position: fixed;
        margin: 0;
        width: 480px;
        height: 100%;
        padding: 0;
    }
}

.modal-full .modal-content {
    position: absolute;
    inset: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.modal-full .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 52px;
    padding: var(--space-s);
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    border: 0;
    display: flex;
    align-items: center;
}

.modal-full .modal-header .modal-title {
    color: #fff;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.modal-full .modal-body {
    position: absolute;
    top: 52px;
    bottom: 52px;
    width: 100%;
    padding: var(--space-m);
    overflow: auto;
}

.modal-full .modal-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 52px;
    padding: var(--space-s);
    background: var(--c-soft);
    border-top: 1px solid var(--c-outline);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-s);
}

.modal-full .modal-body-no-footer {
    position: absolute;
    top: 52px;
    bottom: 0;
    width: 100%;
    padding: var(--space-m);
    overflow: auto;
}

.modal-full-m .modal-body {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.modal-full-m .modal-body-fixed {
    height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (max-width: 768px) {
    body.externo {
        margin-left: 0;
    }

    .menu_lateral {
        width: 0;
        z-index: 999;
        position: fixed;
    }

    .table-responsive {
        border: none;
    }

    .modal-full-m {
        position: fixed;
        inset: 0;
        overflow: hidden;
    }

    .modal-full-m .modal-dialog {
        position: fixed;
        margin: 0;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .modal-full-m .modal-content {
        position: absolute;
        inset: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .modal-full-m .modal-header {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 52px;
        padding: var(--space-s);
        border: 0;
        background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    }

    .modal-full-m .modal-body {
        position: absolute;
        top: 52px;
        bottom: 52px;
        width: 100%;
        padding: var(--space-l);
        overflow: auto;
        max-height: none;
    }

    .modal-full-m .modal-footer {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 52px;
        padding: var(--space-s);
        background: var(--c-soft);
        border-top: 1px solid var(--c-outline);
    }

    .modal-full-m .modal-body-no-footer {
        position: absolute;
        top: 52px;
        bottom: 0;
        width: 100%;
        padding: var(--space-s);
        overflow: auto;
    }
}

.modal_dina_close {
    z-index: 1000;
    position: absolute;
    top: var(--space-s);
    right: var(--space-s);
    font-size: 16px;
    font-weight: 600;
    color: var(--c-primary);
    opacity: 1;
    cursor: pointer;
    border: none;
    line-height: 1;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    width: 28px;
    height: 28px;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) var(--ease);
    box-shadow: var(--shadow-sm);
}

.modal_dina_close:hover {
    background: var(--c-tertiary);
    color: #fff;
    transform: scale(1.05);
}

/* =========================================================
   Form Cadastro — Modern Form Styling
   ========================================================= */
.form_cadastro .form-group {
    margin-bottom: var(--space-l);
    padding: var(--space-xs) 0;

}

.form_cadastro .form-control {
    border: none;
    border: 1px solid var(--c-outline);
    border-radius: var(--radius-m);
    background: rgba(248, 250, 252, 1);
    padding: var(--space-xs);
    min-height: 30px;
    font-size: 12px;
    transition: all var(--t) var(--ease);
}

.form_cadastro .form-control:focus {
    border-color: var(--c-tertiary);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(71, 188, 149, 0.1),
        var(--shadow-sm);
    outline: none;
}


.form_cadastro .form-control:hover:not(:focus) {
    background: rgba(248, 250, 252, 1);
    border-bottom-color: var(--c-secondary);
}

.form_cadastro .input-group-addon:first-child {
    border: none;
    border-bottom: 2px solid var(--c-outline);
    background: rgba(248, 250, 252, 1);
}

.form_cadastro .select2-container--bootstrap .select2-selection--single {
    border: none;
    border-bottom: 2px solid var(--c-outline);
    background: rgba(248, 250, 252, 1) !important;
}

.form_cadastro .select2-container--bootstrap.select2-container--focus .select2-selection,
.select2-container--bootstrap.select2-container--open .select2-selection {
    box-shadow: 0 2px 0 var(--c-tertiary);
    background: rgba(248, 250, 252, 1) !important;
}

.select2-dropdown {
    border: 1px solid var(--c-outline) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    background: rgba(248, 250, 252, 1);
}

select[readonly="readonly"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

[obrigatorio="True"] {
    border-color: #e74c3c !important;
}

/* Campos de texto obrigatórios - estado preenchido (verde) */
[obrigatorio="True"]:not(:placeholder-shown),
[obrigatorio="True"]:valid:not(:placeholder-shown) {
    border-color: #27ae60 !important;
}



form div[class^='col'] .form-group label {
    /*    margin-bottom: *var(--space-xs);*/
    font-size: 11px;
    font-weight: 600;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: bottom;
    color: var(--c-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    padding-bottom: var(--space-xxs);
}



/* Separação visual entre grupos de campos */
.form_cadastro .row {
    margin-bottom: var(--space-s);
    padding-bottom: var(--space-s);
}

/* Seções do formulário com título */
.form_cadastro h4,
.form_cadastro h5,
.form_cadastro .section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--c-primary);
    margin-top: var(--space-l);
    margin-bottom: var(--space-m);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--c-outline);
}

.icone_menu {
    min-width: 24px;
    text-align: center;
}

.link_menu {
    /* preserved */
}

.btn-full-td {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-tabs>li>a {
    padding: var(--space-m) var(--space-s);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    font-weight: 500;
    transition: all var(--t-fast) var(--ease);
}

.nav-tabs>li.active>a {
    border-color: var(--c-outline);
    border-bottom-color: transparent;
    color: var(--c-primary);
}

.logo_menu_imagem {
    margin-right: 5px;
    max-height: 40px;
    margin-left: 8px;
    margin-top: 6px;

}

.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
    max-height: 100vh;
}

.link_dash_alerta_menu {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 22px;
    width: 56px;
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--t-fast) var(--ease);
}

.link_dash_alerta_menu:hover {
    color: var(--c-tertiary);
}

@media screen and (min-width: 769px) {
    .link_dash_alerta_menu {
        margin-left: var(--space-xl);
    }
}

.link_dash_menu {
    transition: all var(--t-fast) var(--ease);
}

.link_alerta_menu {
    transition: all var(--t-fast) var(--ease);
    cursor: pointer;
}

.link_dash_menu:hover {
    color: var(--c-tertiary-light) !important;
}

.link_alerta_menu:hover {
    color: var(--c-tertiary-light) !important;
}

@media screen and (max-width: 768px) {
    .link_alerta_menu {
        width: 32px;
    }
}

.titulo_menu_mobile {
    color: rgba(255, 255, 255, 0.8);
    width: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-nav>li>a {
        font-size: 11px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .icone_menu {
        font-size: 16px !important;
        min-width: 20px;
    }
}

.login_rodape {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: var(--space-m);
    padding-top: var(--space-m);
    border-top: 1px solid var(--c-outline);
}

.navegadores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-s);
    font-size: 10px;
    color: var(--c-secondary);
}

.navegadores .imgnav {
    max-height: 24px;
    width: auto;
    opacity: 0.6;
    transition: opacity var(--t-fast) var(--ease);
}

.navegadores .imgnav:hover {
    opacity: 1;
}

.icone_acao_linha {
    font-size: 15px !important;
    width: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--t-fast) var(--ease);
    filter: grayscale(1);
}

.icone_acao_linha:hover {
    background: var(--c-soft);
    filter: grayscale(0);
}

.icone_acao_linha:only-child {
    width: 28px;
}

.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>a:hover,
.pagination>.active>span:hover,
.pagination>.active>a:focus,
.pagination>.active>span:focus {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    border-color: var(--c-primary);
    box-shadow: var(--shadow-sm);
}

.pagination>li>a,
.pagination>li>span {
    border-radius: var(--radius-sm);
    margin: 0 2px;
    border: 1px solid var(--c-outline);
    color: var(--c-primary);
    transition: all var(--t-fast) var(--ease);
}

.pagination>li>a:hover {
    background: var(--c-soft);
    border-color: var(--c-secondary);
}

.page-header {
    padding-bottom: 0;
    margin: var(--space-m) 0 var(--space-s);
    border-bottom: 2px solid var(--c-outline);
}

.form_cadastro label[data-tipo-campo="arquivo"] {
    min-height: 28px !important;
}

.form_cadastro .form-group[data-tipo-campo="arquivo"],
.form_cadastro .form-group[data-tipo-campo="foto"] {
    background: var(--c-soft);
    padding: var(--space-m);
    border: 2px dashed var(--c-outline);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--t) var(--ease);
}

.form_cadastro .form-group[data-tipo-campo="arquivo"]:hover,
.form_cadastro .form-group[data-tipo-campo="foto"]:hover {
    border-color: var(--c-tertiary);
    background: rgba(71, 188, 149, 0.05);
}

.form_cadastro .form-group[data-tipo-campo="arquivo"][data-obrigatorio="True"],
.form_cadastro .form-group[data-tipo-campo="foto"][data-obrigatorio="True"] {
    border-color: #e74c3c;
}

.btn-vertical-menu {
    width: 100%;
    padding: 0 var(--space-m);
    margin-top: var(--space-xs);
}

.btn-vertical-menu>.btn {
    width: 100%;
}

/* =========================================================
   Simplified Groups — Card Style
   ========================================================= */
.div_grupo_simplificado {
    border: 1px solid var(--c-outline);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    padding: 40px var(--space-s) var(--space-s);
    margin-top: var(--space-s);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.cabecalho_grupo_simplificado {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-soft) 0%, var(--c-soft-2) 100%);
    font-size: 13px;
    font-weight: 600;
    padding: 0 var(--space-xs);
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-outline);
    font-family: 'Poppins', sans-serif;
}

.div_itens_simplificado {
    border: 1px solid var(--c-outline);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    padding: 36px 0 0 0;
    margin-top: var(--space-s);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.div_itens_simplificado_sem_cabecalho {
    padding-top: 0;
}

.cabecalho_itens_simplificado {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-soft) 0%, var(--c-soft-2) 100%);
    font-size: 13px;
    font-weight: 600;
    padding: 0 var(--space-xs);
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-outline);
    font-family: 'Poppins', sans-serif;
}

.cabecalho_itens_simplificado_com_explicacao {
    min-height: 36px;
    height: auto;
}

.acoes_itens_simplificado {
    width: 100%;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-soft);
    font-size: 12px;
    padding: 0;
    border-top: 1px solid var(--c-outline);
}

.icone_itens_refresh {
    display: none;
    margin-left: var(--space-xs);
    color: var(--c-tertiary);
    font-weight: 600;
}

.container_itens_simplificado {
    height: 100%;
    overflow: hidden;
    overflow-y: auto;
}

.corpo_itens_simplificado {
    padding: 0 var(--space-s);
}

.botao_refresh_itens_simplificado {
    position: absolute;
    left: var(--space-xxs);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    color: var(--c-tertiary);
    background: rgba(71, 188, 149, 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--t-fast) var(--ease);
}

.botao_refresh_itens_simplificado:hover {
    background: var(--c-tertiary);
    color: #fff;
}

.botao_incluir_itens_simplificado {
    position: absolute;
    right: var(--space-xxs);
    top: 2px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linha_itens_simplificado_agrupadora {
    /* preserved */
}

.coluna_itens_simplificado_agrupadora {
    background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary) 100%);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: var(--space-xs) var(--space-s);
}

.coluna_itens_simplificado_excluir {
    width: 36px;
    text-align: center;
    color: #e74c3c;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.coluna_itens_simplificado_excluir:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.coluna_itens_simplificado_editar {
    width: 36px;
    text-align: center;
    color: #f39c12;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.coluna_itens_simplificado_editar:hover {
    color: #d68910;
    transform: scale(1.1);
}

.coluna_itens_simplificado_visualizar {
    width: 36px;
    text-align: center;
    color: var(--c-secondary);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.coluna_itens_simplificado_visualizar:hover {
    color: var(--c-tertiary);
    transform: scale(1.1);
}

.tabela_itens_simplificado {
    margin-bottom: 0;
}

.tabela_itens_simplificado>thead {
    background: var(--c-soft);
}

.tabela_itens_simplificado>thead>tr>th,
.tabela_itens_simplificado>tbody>tr>td {
    padding: var(--space-xs) var(--space-s);
    font-size: 12px;
}

.tabela_itens_simplificado tbody tr.itens_linha_selecionada td {
    background: rgba(71, 188, 149, 0.15);
    border-bottom: 2px solid var(--c-tertiary);
}

.td_centro {
    text-align: center;
}

.td_esquerda {
    text-align: left;
}

.td_direita {
    text-align: right;
}

.td_ajustado {
    white-space: nowrap;
    width: 10px;
}

.td_negrito {
    font-weight: 600;
}

.ajuste_altura_botao {
    height: 24px;
    display: inline-block;
    width: 100%;
    color: transparent;
    background: transparent;
}

.ajuste_altura_botao::after {
    content: ".";
}

@media (max-width: 768px) {
    .ajuste_altura_botao {
        display: none;
    }
}

.ui-effects-transfer {
    border: 2px dashed var(--c-tertiary);
    border-radius: var(--radius-sm);
}

.colg {
    padding: 0 2px;
}

/* =========================================================
   Dashboard Boxes — Glass Cards
   ========================================================= */
.box_dash {
    position: relative;
    transition: all var(--t) var(--ease);
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-outline);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.box_dash:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .box_dash {
        transform: none;
    }

    .box_dash:hover {
        transform: none;
    }
}

.body_dash_board {
    background: var(--c-soft);
}

.box_dash_tem_rodape {
    padding-bottom: 32px;
}

.box_dash_titulo {
    padding: var(--space-s) var(--space-m);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(180deg, #fff 0%, var(--c-soft) 100%);
    border-bottom: 1px solid var(--c-outline);
}

.box_dash_titulo_texto {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    color: var(--c-primary);
    font-family: 'Poppins', sans-serif;
}

.box_dash_titulo_icone {
    font-size: 18px;
    color: var(--c-tertiary);
    margin-right: var(--space-s);
}

.box_dash_conteudo {
    padding: var(--space-m);
    position: relative;
}

.box_dash_rodape {
    height: 25px;
    padding: var(--space-xs) var(--space-m);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    background: var(--c-soft);
    border-top: 1px solid var(--c-outline);
    font-size: 12px;
    color: var(--c-secondary);
}

.col_dash {
    margin-bottom: var(--space-m);
}

/* Message Boxes */
.body_mensagem_board {
    background: #fff;
}

.box_mensagem {
    position: relative;
    height: 100%;
    transition: all var(--t) var(--ease);
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-outline);
    box-shadow: var(--shadow-sm);
}

.box_mensagem_tem_rodape {
    padding-bottom: 32px;
}

.box_mensagem_titulo {
    padding: var(--space-s) var(--space-m);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid var(--c-outline);
}

.box_mensagem_titulo_texto {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    font-family: 'Poppins', sans-serif;
}

.box_mensagem_titulo_icone {
    font-size: 18px;
    color: var(--c-tertiary);
    margin-right: var(--space-s);
}

.box_mensagem_conteudo {
    padding: var(--space-m);
    position: relative;
}

.box_mensagem_rodape {
    height: 32px;
    padding: var(--space-xs) var(--space-m);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    background: var(--c-soft);
    border-top: 1px solid var(--c-outline);
}

.row_mensagem {
    /* preserved */
}

.col_mensagem {
    margin-bottom: var(--space-m);
}

.center_center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quadros_laterais_direita {
    border-left: 3px solid #fff;
    border-bottom: 1.5px solid #fff;
    border-top: 1.5px solid #fff;
}

.quadros_laterais_direita:first-child {
    border-bottom: none;
    border-top: none;
}

.quadros_laterais_direita:last-child {
    border-bottom: none;
    border-top: none;
}

.quadros_laterais_esquerda {
    border-right: 3px solid #fff;
    border-bottom: 1.5px solid #fff;
    border-top: 1.5px solid #fff;
}

.quadros_laterais_esquerda:first-child {
    border-bottom: none;
    border-top: none;
}

.quadros_laterais_esquerda:last-child {
    border-bottom: none;
    border-top: none;
}

.mensagens_linha_previa {
    border-bottom: 1px solid var(--c-outline);
    position: relative;
    padding-left: 36px;
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
    transition: background var(--t-fast) var(--ease);
}

.mensagens_linha_previa:hover {
    background: var(--c-soft);
}

.mensagens_linha_previa_sem_icone {
    padding-left: 36px;
}

.mensagens_linha_previa:last-child {
    border-bottom: none;
}

.mensagem_previa_icone {
    height: 100%;
    position: absolute !important;
    font-size: 16px;
    top: 0;
    left: 0;
    width: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--c-tertiary);
}

/* CKEditor Integration */
.cke_chrome {
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-outline) !important;
}

.cke_top {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--c-soft) !important;
}

.cke_bottom {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--c-soft) !important;
}

.iziToast-message {
    margin-top: var(--space-xs) !important;
}

table.dataTable tbody>tr.selected,
table.dataTable tbody>tr>.selected {
    background: rgba(71, 188, 149, 0.2) !important;
}

table.dataTable tbody td.select-checkbox,
table.dataTable thead th.select-checkbox {
    position: relative;
    cursor: pointer;
    width: 20px;
}

.class_mostra_tem_selecao,
.class_mostra_tem_selecao_unica,
.class_mostra_tem_selecao_multiplas {
    display: none;
}

.cke_wysiwyg_frame {
    width: calc(100% - 8px) !important;
    padding: 2px 4px !important;
}

.bt_edicao {
    transition: all var(--t) var(--ease);
}

.dt-button-collection.dropdown-menu {
    max-height: 75vh;
    overflow: hidden;
    overflow-y: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Select2 Custom Styling */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: none !important;
    /*border-bottom: 2px solid var(--c-tertiary) !important;*/
}

span.select2.select2-container.select2-container--default {
    border: 1px solid #ccc;
    border-radius: 3px;

}


.select2-container--default .select2-selection--multiple {
    border: none !important;
    border-bottom: 1px solid #ccc;
    border-radius: 0 !important;
    padding-bottom: 0;
}

.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: none !important;
    border-bottom: 2px solid var(--c-outline) !important;
    border-radius: 0 !important;
    background: rgba(248, 250, 252, 0.5);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    color: var(--c-primary);
    background: rgba(248, 250, 252, 0.5);
}

.form-group[data-tipo-campo="combo_multiplo"]>.select2.select2-container.select2-container--default {
    height: 34px;
    overflow: hidden;
    overflow-y: auto;
    cursor: pointer;
}

.select2.select2-container.select2-container--default.select2-container--below.select2-container--open {
    height: auto;
    overflow: visible;
    overflow-y: auto;
    cursor: pointer;
}

.select2-container--default .select2-search--inline .select2-search__field {
    cursor: pointer;
}

.form-group[data-obrigatorio="True"]>.select2.select2-container.select2-container--default>.selection>.select2-selection.select2-selection--single {
    border-bottom: 2px solid #e74c3c !important;
}

.combo_select2 {
    height: 38px;
}

/* Bootbox Modal */
.bootbox.modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bootbox.modal .modal-dialog .modal-content {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bootbox.modal .modal-dialog .modal-content .modal-header {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: none;
}

.bootbox.modal .modal-dialog .modal-content .modal-header .close {
    padding: var(--space-xs) var(--space-s);
    background: rgba(255, 255, 255, 0.9);
    color: var(--c-primary);
    border-radius: var(--radius-sm);
    opacity: 1;
    font-size: 18px;
    transition: all var(--t-fast) var(--ease);
}

.bootbox.modal .modal-dialog .modal-content .modal-header .close:hover {
    background: #fff;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .bootbox.modal .modal-dialog {
        width: 100%;
        margin: var(--space-m);
    }
}

.table-condensed>thead>tr>th,
.table-condensed>tbody>tr>th,
.table-condensed>tfoot>tr>th,
.table-condensed>thead>tr>td,
.table-condensed>tbody>tr>td,
.table-condensed>tfoot>tr>td {
    padding: 0 var(--space-xs);
}

.ck_editor_live_preview {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--c-outline);
    box-shadow: var(--shadow-md);
    margin-left: var(--space-l);
    border-radius: var(--radius-sm);
}

#grupo_de_botoes_menu {
    height: 38px;
    overflow: hidden;
}

@media (max-width: 768px) {
    #grupo_de_botoes_menu {
        height: 100%;
        overflow: auto;
    }
}

.multi-line1>a {
    margin-top: 3px;
    font-size: 11px;
}

.multi-line2>a {
    margin-top: 4px;
    font-size: 9px;
}

.multi-line3>a {
    margin-top: 5px;
    font-size: 7px;
}

.combo_busca_com_tabela {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: none;
    padding-right: 0;
    background-image: none;
    pointer-events: none;
}

/* =========================================================
   Utility Animation Classes
   ========================================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn var(--t) var(--ease-out) forwards;
}

.animate-pulse {
    animation: pulse 2s var(--ease) infinite;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg,
            var(--c-soft) 25%,
            var(--c-outline-light) 50%,
            var(--c-soft) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* =========================================================
   Button Variants
   ========================================================= */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--t-fast) var(--ease);
    border: none;
    /*padding: var(--space-s) var(--space-l);*/
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--c-tertiary) 0%, #3ba882 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-default {
    background: var(--c-soft);
    color: var(--c-primary);
    border: 1px solid var(--c-outline);
}

.btn-default:hover {
    background: var(--c-soft-2);
    border-color: var(--c-secondary);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.btn-danger:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(135deg, var(--c-secondary) 0%, #237a9e 100%);
    color: #fff;
    box-shadow: var(--shadow-sm);

}


/* =========================================================
   Selection Colors
   ========================================================= */
::selection {
    background: rgba(71, 188, 149, 0.25);
    color: var(--c-primary);
}

::-moz-selection {
    background: rgba(71, 188, 149, 0.25);
    color: var(--c-primary);
}


.tdw80 {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}