/* constants */

html, body {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "Sora", sans-serif;
}

body {
    background: #fff;
}

.color-secondary {
    color: #009640 !important;
}

.bg-secondary {
    background: #009640 !important;
}

.bg-primary {
    background: #033F85 !important;
}

.color-primary {
    color: #033F85 !important;
}

.border-primary {
    border-color: #033F85 !important;
}

.border-primary:hover {
    background-color: #033F85 !important;
    color: #fff !important;
}

.border-secondary {
    border-color: #009640 !important;
}

.rounded {
    border-radius: 20px !important;
}

.line-height-1 {
    line-height: 1.2em;
}

.text-justify {
    text-align: justify;
}

.light-blue-color {
    color: #01ABE4;
}

.light-blue-bg {
    background: #01ABE4;

    transition: all 0.1s ease-in-out;
}

.light-blue-bg:hover {
    background: #008fbe;
}

.btn.disabled {
    background: #FFF7E8 !important;
    color: #000;
}

.form-select.bg-primary {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.65rem !important;
}

/* header */

#pre-top {
    background: #01ABE4;
    color: #fff;
}

#pre-top a, #pre-top a i {
    color: #fff;
}

#top {
    background: #009640;
}
#top a.nav-link {
    font-size: 18px;
    font-weight: 800;
    text-shadow: 3px 3px 3px rgba(0,0,0,0.25);
    color: #fff;
    margin: 0 5px;
}
#top a, #top a i {
    /* color: #fff; */
}

#page-content ul {
    list-style-position: inside;
}


/* slick */ 

#banner-principal-container {
    position: relative;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-top: 0;
    transition: all 0.1s ease-in-out;
}
#banner-principal-container .slick-dots {position:relative; bottom: 70px;}
#banner-principal-container .slick-dots li {
    width: auto !important;
    display: inline-block;
    height: 10px;
    margin: 0 5px;
}
#banner-principal-container .slick-dots li button {
    width: 65px;
    height: 10px;
    background: #8f8f8f;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    border: 0 none;
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
}
#banner-principal-container .slick-dots .slick-active button {background: #FFF;}
#banner-principal-container .slick-next.slick-arrow::before {
    font-size: 50px;
    color: #9BDA5D !important;
    opacity: 1;
}
#banner-principal.slick-dotted.slick-slider {margin-bottom: 0 !important;}
#banner-principal .slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}
#banner-principal {
    width: 100%;
    height: 100%;
}

/* slick-prev */
#banner-principal .slick-prev, #banner-principal .slick-next {
    position: absolute;
    top: 50%;
    /* left: 0; */
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 80px;
    background-color: transparent !important;
    border: 0 none;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

#banner-principal .slick-prev {
    left: 50px !important;
}
#banner-principal .slick-next {
    right: 50px !important;
}

/**/
#acesso-rapido .card {
    border-radius: 30px;
}

#botoes-grandes .btn {
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 800;
    margin: 10px;
}

/* contraste */

.contraste {
    background: #000;
    color: #fff;
}


body.contraste {
    background: #000 !important;
    color: #fff !important;
}

.contraste #header-content {
    background: #000 !important;
    color: #fff !important;
}

.contraste .navbar .nav-link {
    color: #000 !important;
}

.contraste #cursos-list ul li h5 {
    color: #fff !important;
    background-color: #000 !important;
}

.contraste #cursos {
    background: #000 !important;
}

.contraste #comissao, .contraste #botoes {
    background: #000 !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, .5) !important;
}
.navbar-toggler-icon {
  font-size: 12px;
}


/* pages */

#page-title {
    background: url(/../img/bg_sobre.jpg) no-repeat center center;
    background-size: cover;
    color: #fff;
}

#page-title h1 {
    font-size: 60px;
    font-weight: 800;
    text-shadow: 3px 3px 3px rgba(0,0,0,0.25);
}

.card-pasta {
    border-radius: 40px 0 40px 0 !important;
}

#sobre-pessoas .card, #sobre-pessoas .card img {
    border-radius: 20px;
}

#sobre-pessoas .card {
    border-color: #009640;
}

.card-blue-outline {
    border: 2px solid #033F85;
    border-radius: 20px;
}

.posts-container p{
    font-size: 18px;
    line-height: 1.5;
}
.posts-container .post{
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
    margin-bottom: 50px;
}

.posts-container p{
    font-size: 18px;
    line-height: 1.5;
}
.posts-container .post{
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
    margin-bottom: 50px;
}
#search-sidebar input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    background-color: #F0F0F0;
}
#search-sidebar input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
#search-sidebar button {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background-color: #F0F0F0;
}
.post-content img{
    max-width: 100%;
    height: auto;
    display: flex;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 5px;
}
.post-content small{
    display: block;
    text-align: center;
    margin-top: 10px;
}

/* mobile version */
@media (max-width: 768px) {

    #top a.nav-link {
      font-size: 12px !important;
    }

    #banner-principal-container .slick-dots {
        bottom: -25px;
    }
    #banner-principal-container .slick-dots li button {
        width: 30px;
        height: 10px;
    }
    .navbar-brand img {
        max-height: 80px;
    }

    #banner-principal .slick-prev, #banner-principal .slick-next {
        font-size: 40px;
    }
    #banner-principal .slick-prev {
        left: 0 !important;
    }
    #banner-principal .slick-next {
        right: 0 !important;
    }

    #banner-principal-container .slick-active button {
        background: #009640 !important;
    }
}

/* tablet version */
@media (max-width: 992px) {
    
}

/* desktop version */
@media (min-width: 992px) {
    
}

:root {

  --font-family: 'Inter', sans-serif;

  /*default colors*/
  --primary: #023e84 !important;
  --primary-color: #023e84;
  --btn-primary: #023e84;

  --secondary-color: #023e84;
  --tertiary-color: #023e84;

  --text-color: #023e84;
  --nav-items-color: #A0a0a0;
  --border-color: #F3F3F3;

  --white: #fff !important;

}

/* form */
form.button_to {
    all: unset;
}

.required {
    color: #dc3545;
}

/* datatable - jQuery Datatable */
.sm-hero__datatable-actions button.btn.btn-sm, .sm-hero__datatable-actions .btn-group-sm > button.btn  {
    padding: 0 0.5rem;
}

/* PMM_THEME */


@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css");

@import 'config/variables';
@import 'components/buttons';
@import 'components/navbar';
@import 'components/texts';

html, body {
    font-family: var(--font-family), sans-serif;
    font-size: 14px;
}

/* login */
#login-page #main {
  /*background-color: #F3f3f3;
  background-image: url(/../img/bg-login.jpg);*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#login-page .login-form__card {
  background-color: #e4e4e7b3;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* fixes */
.bi::before{
    line-height: normal !important;
}


/*header*/
#sm-hero-demo__header{
    position: relative;
    z-index: 1;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
    min-height: 55px;
}

.sm-hero__header-title{
    position: relative;
}
/* data && datasets */

body[data-show-title="false"] #sm-hero-demo__header .sm-hero__header-title {
    display: none !important;
}

/*navs*/
.navbar-light .navbar-toggler {
    border-color: transparent;
}
.sm-hero__title {
    font-size: 1.25rem;
    font-weight: 300;
    color: --text-color;
    margin: 0;
    padding: 0;
}
.sm-hero__header-title{
    border-bottom: 1px solid --border-color;
    background-position: center right;
    background-size: auto 100%;
}

/*nav-top right*/
.nav-top-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0.5rem;
}
.nav-top-right__item {
    margin-left: 1rem;
}
.nav-top-right__item a i::before {
    line-height: inherit !important;
}

.nav-top-right .dropdown-menu .dropdown-item{
    white-space: inherit;
    width: 50vw;
    max-width: 350px;
    font-size: 0.875em !important;
}

.nav-top-right__item > a {
    color: --nav-items-color;
    font-size: 1.5rem;
    line-height: 1em;
}
.nav-top-right__item a:hover {
    color: --primary-color;

    transition: all .2s linear;
}

.sm-hero__topnav.navbar-light #sidebarToggle {
    color: rgba(0, 0, 0, 0.5);
}

.sm-hero__topnav .navbar-brand{
    width: 250px;
}

/*content center*/
#container-center{
    display: flex;
    min-height: calc(100vh - 95px);
    overflow: hidden;
}

#main-footer{
  font-size: 0.9em;
}

/* aside sidenav */
.bd-sidebar {
    grid-area: sidebar;
}
.bd-layout {
    grid-template-columns: 1fr 5fr;
}
#layoutSidenav_nav {
    width: 0;
    background: #023e84;
    position: relative;
    box-shadow: 2px 0px 4px rgba(0, 0, 0, 0.25);

    transition: all .2s ease-in-out;
}
#layoutSidenav_nav.show{
    width: 225px !important;

    transition: all .2s ease-in-out;
}
@media screen and (max-width: 768px) {
    #layoutSidenav_nav{
        width: 0 !important;
        position: fixed;
        height: calc(100vh - 55px);
        overflow: auto;
    }
    #layoutSidenav_nav.show{
        width: 90% !important;
    }
}
.sm-hero-aside-component{
    background: #022C5C;
    transition: all .2s linear;
    min-height: calc(100vh - 120px);
}
.sm-hero__sidenav-menu-heading{
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    padding: 0.5rem;
}
.sm-hero__sidenav a, .sm-hero__sidenav-footer{
    color: #F9F9F9;
}
.sm-hero-aside-component::-webkit-scrollbar {
    width: 0.5rem;
    background: #064c9c;
    transition: all .2s linear;
    border-radius: 0.25rem;
}
.sm-hero-aside-component::-webkit-scrollbar-thumb {
    background: #6ca4e4;
    transition: all .2s linear;
    border-radius: 0.25rem;
    padding: 5px;
}
.sm-hero-aside-component__body{
    padding: 20px 0;
}
.sm-hero__sidenav {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    width: 100%;
}
.sm-hero__sidenav-menu .nav{
    display: flex;
    flex-direction: column;
}

.sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link .sm-hero__sidenav-link-icon {
    font-size: 0.9rem;
    margin-right: 0.5rem !important;
}

.sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link {
    display: flex;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    position: relative;
    font-size: 0.8rem;

    margin-bottom: -1px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: rgba(0, 0, 0, 0.08);
    border-left: 3px solid rgba(0, 0, 0, 0.3);

    transition: all .2s ease-in-out;
}

.sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link:hover, .sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link.active {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #FFF;
    transition: all .1s linear;
    border-left: 5px solid rgba(0, 0, 0, 0.5) !important;
}
.sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link:focus{
    color: #FFF !important;
    background: rgba(0, 0, 0, 0.3);
    border-left: 5px solid rgba(0, 0, 0, 0.5) !important;
}

/* .dropdown-mode .sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link:hover, .dropdown-mode .sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link.active{
    border-left: 3px solid rgba(0, 0, 0, 0.5) !important;
} */

.svg-inline--fa {
    display: var(--fa-display,inline-block);
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
}
.sm-hero__sidenav-footer{
    background: rgba(255, 255, 255, 0.25);
    padding: 0.75rem;
    flex-shrink: 0;
}
.sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link.collapsed .sm-hero__sidenav-collapse-arrow {
    transform: rotate(-90deg);
}
.sm-hero__sidenav .sm-hero__sidenav-menu .nav .nav-link .sm-hero__sidenav-collapse-arrow {
    display: inline-block;
    margin-left: auto;
    transition: transform 0.15s ease;
}
.sm-hero__sidenav .sm-hero__sidenav-menu .nav .collapse.show .nav-link{
    padding-left: 1.5rem !important;
    border-left: 10px solid rgba(0, 0, 0, 0.08) !important;

    transition: all .1s linear;
}

.sm-hero__sidenav .sm-hero__sidenav-menu .nav .collapse.show .nav-link:hover, .sm-hero__sidenav .sm-hero__sidenav-menu .nav .collapse.show .nav-link.active {
    border-left: 12px solid rgba(0, 0, 0, 0.15) !important;
    transition: all .1s linear;
}

.sm-hero__sidenav .nav-link[aria-expanded="true"]{
    color: #FFF !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-left: 5px solid rgba(0, 0, 0, 0.5) !important;
}

.sm-hero__sidenav-menu-nested .collapse.show .nav-link{
    border-left: 10px solid #064d9d !important;
}

.sm-hero__sidenav-menu-nested .collapse.show .nav-link:hover{
    border-left: 12px solid #064d9d !important;
}

/*/aside sidenav*/

#main-content{
    padding: 30px 15px;
    flex: 1;
    background: #F3F3F3;
    transition: all .2s ease-in-out;
}

/*demo main content*/

section.sm-hero__section > h2.sm-hero__section-title{
    color: --primary-color;
    font-size: 1.5em;
}

/*cards*/

.card{
    border: 1px solid #E6E6E6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.card-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}
.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6 {
    margin: 0;
    color: --primary-color;
    line-height: 1em !important;
}
.card-header h4{
    font-size: 1em;
}
.card-footer a{
    text-decoration: none;
}

.card-header-action a{
    padding: 0 10px;
}

/* demo cards*/
.card-body h2 {
    margin:0;
    padding: 0;
    font-size: 2.5em;
}

.card-footer.sticky{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f7f7f7;
}

/*/cards*/


/*gridjs*/

.gridjs-table{
    width: 100%;
}

/* datatable - jQuery Datatable */
table.dataTable tfoot th {
    padding: 10px !important;
}
.sm-hero__datatable-actions a.btn.btn-sm{
    padding: 0 0.5rem;
}

.sm-hero__datatable-actions.text-center{
    padding: 0 0.5rem;
}

/* Ações das datatables: flex com espaçamento consistente e quebra organizada */
.sm-hero__datatable-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
}

/* Cada item (botão/form/card) mantém o tamanho do conteúdo e quebra como um bloco */
.sm-hero__datatable-actions > * {
    flex: 0 0 auto;
}

/* O espaçamento passa a vir do gap: neutraliza as margens utilitárias (me-2) dos itens */
.sm-hero__datatable-actions > *,
.sm-hero__datatable-actions form > .btn {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* Card de status do certificado: agrupa (badge + data + ajuda + botões) numa linha */
.sm-hero__datatable-actions .certificado-card {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

/* Coluna de ações com um mínimo para não espremer os botões (o responsivo do
   DataTables ainda recolhe a coluna quando não couber) */
table.dataTable td.coluna-opcoes,
table.dataTable th.coluna-opcoes {
    min-width: 200px;
}


.bd-sidebar-toggle:hover,
.bd-sidebar-toggle:focus{
    color: #023e84;
}
.bd-sidebar-toggle:focus{
    box-shadow:0 0 0 3px rgba(2, 62, 132,0.25);
}
.bd-sidebar-toggle .bi-collapse{
    display:none
}
.bd-sidebar-toggle:not(.collapsed) .bi-expand{
    display:none
}
.bd-sidebar-toggle:not(.collapsed) .bi-collapse{
    display:inline-block
}

/* custom scroll */

/* width */
.sm-hero__sidenav::-webkit-scrollbar {
    width: 8px;
}

/* Track */
.sm-hero__sidenav::-webkit-scrollbar-track {
    background: #003f87;
}

/* Handle */
.sm-hero__sidenav::-webkit-scrollbar-thumb {
    background: #001b3a;
    border-radius: 20px;
}

.fade-out{
    opacity: 0;
    transition: all .2s ease-in-out;
}
.fade-out.show{
    opacity: 1;
    transition: all .2s ease-in-out;
}

.fade-in{
    opacity: 1;
    transition: all .2s ease-in-out;
    animation: fadeIn .2s ease-in-out;
}

@keyframes fadeIn{
    from{
        opacity: 0;

    }
    to{
        opacity: 1;
    }
}

@keyframes fadeOut{
    from{
        opacity: 1;

    }
    to{
        opacity: 0;
    }
}

aside.expansible:not(.dropdown-mode) .nav-link {
    text-align: center;
}

aside.expansible:not(.dropdown-mode) .nav-link{
    text-indent: 9999px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
}

aside.expansible:not(.dropdown-mode) .nav-link.align-center {
    justify-content: center;
    align-items: center;
}

aside.expansible.expanded .nav-link, aside.expansible.show .nav-link{
    text-indent: 0;
}

.expansible .nav-link .sm-hero__sidenav-link-icon{
    text-indent: 0;
}

/* CSS para o estado expandido estatico */
aside.expansible.expanded.mini-aside-static {
    width: 250px !important; /* Defina a largura desejada para o estado expandido */
}

.expansible.mini-aside-static {
    overflow: hidden;
    width: 50px !important; /* Defina a largura desejada para o estado expandido */
}

aside.expansible.expanded.mini-aside-static,
aside.expansible.show {
    overflow-y: auto;
}

aside.dropdown-mode{
    overflow: visible;
    width: auto !important;
    transition: all .2s ease-in-out;
}

aside.dropdown-mode.expansible{
    overflow: hidden;
    width: 40px !important;
}

aside.dropdown-mode.expanded{
    overflow: visible;
    width: auto !important;
    transition: all .2s ease-in-out;
}

aside.dropdown-mode .dropdown-menu {
    background: #023e84;
}

aside.dropdown-mode:not(.expansible){

}

aside.dropdown-mode {

}


/* CSS para a transição suave */
aside {
    transition: width 0.3s ease;
}

/* fix pre code */
pre code {
    white-space: pre;
    width: fit-content !important;
    min-width: 100% !important;
}

/* owlCarousel mods */
.owl-carousel .owl-prev span, .owl-carousel .owl-next span {
    padding: .3rem;
    font-size: 1rem;
}

/* input switch */

/* Estilo iOS */
.sm-hero-switch__container {
    width: 60px;
}

.sm-hero-switch {
    visibility: hidden;
    position: absolute;
    margin-left: -9999px;
}

.sm-hero-switch + label {
    display: block;
    position: relative;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.sm-hero-switch--shadow + label {
    padding: 2px;
    width: 60px;
    height: 30px;
    background-color: #dddddd;
    border-radius: 30px;
}

.sm-hero-switch--shadow + label:before,
.sm-hero-switch--shadow + label:after {
    display: block;
    position: absolute;
    top: 1px;
    left: 1px;
    bottom: 1px;
    content: "";
}

.sm-hero-switch--shadow + label:before {
    right: 1px;
    background-color: #f1f1f1;
    border-radius: 30px;
    transition: background 0.4s;
}

.sm-hero-switch--shadow + label:after {
    width: 28px;
    background-color: #fff;
    border-radius: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
  }

.sm-hero-switch--shadow:checked + label:before {
    background-color: --btn-primary;
}

.sm-hero-switch--shadow:checked + label:after {
    transform: translateX(30px);
}


/* checkbox */

.form-check-input:checked {
    background-color: --primary-color;
    border-color: --primary-color;
}

/* range sliders */

.form-range::-webkit-slider-thumb {
    background: --btn-primary;
}

.form-range::-webkit-slider-thumb:hover {
    translate: scale(1.2);
    transition: all .2s ease-in-out;
}


/* navs & tabs */
.nav-pills .nav-link.active {
    --bs-nav-pills-link-active-bg: #023e84 !important;
}

#footer {
  min-height: 40px;
}

.modal {
  backdrop-filter: blur(4px) !important;
}

.modal-content {
  border: 0px solid #000000 !important;
  border-radius: .8rem !important;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-primary:hover,
.open > .dropdown-toggle.btn-primary:hover,
.show > .btn-primary.dropdown-toggle:hover{
    background-image: linear-gradient(rgb(0 0 0/20%) 0 0);
    color: var(--white);
}

.btn-primary.active,
.btn-primary:active, .btn-primary:active:focus, .btn-primary:active:hover {
    background-image: linear-gradient(rgb(0 0 0/50%) 0 0);
    color: var(--white);
}

.btn-primary:focus, .btn-primary:active, .btn-primary.active,
.btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary, .open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active, .btn-primary.active,
.show > .btn-primary.dropdown-toggle, .btn-primary:active:focus,
.btn-primary.active:focus, .show > .btn-primary.dropdown-toggle:focus, .text-bg-primary {
    background-color: #003169 !important;
    border-color: #003169 !important;
    color: var(--white);
}

.btn.btn-outline-primary{
  color: var(--primary);
  border-color: var(--primary);
}

.btn.btn-outline-primary:hover, .btn.btn-outline-primary:active{
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

#main-navbar{
  background-color: #fff;
  position: fixed;
  width: 100%;
  z-index: 1;
}

.navbar-light .navbar-toggler {
  color: transparent !important;
}

.navbar-toggler-icon {
  font-size: 12px;
}

.text-primary{
  color: --primary;
}

.text-secondary{
  color: --secondary;
}

.dropdown-menu input[type="text"] {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 5px;
}

.dataTable th {
  background-color: #f3f4f6bf !important;
  font-weight: bold !important;
  border: transparent !important;
}

.dataTable tbody tr:nth-child(odd) {
  background-color: #ffffff !important;
  border: transparent !important;
}

.dataTable tbody tr:nth-child(even) {
  background-color: #f9fafb !important;
  border: transparent !important;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, 'Roboto', sans-serif !important;
}

.dataTables_filter input {
  border: 1px solid #dddddd !important;
  border-radius: 5px !important;
  padding: 5px;
  margin-bottom: 10px;
}

table.dataTable tbody td {
  word-wrap: break-word !important;
}

.dt-layout-cell {
  border: transparent !important;
}

.dataTable tbody  {
  border: transparent !important;
}

.dataTable tbody tr:last-child td {
  border-bottom: transparent !important;
}

.dt-paging-button {
  background-color: #f3f4f6 !important;
  border: transparent !important;
}

.dt-paging-button.current:hover {
  background-color: #650e0e !important;
  color: #ffffff !important;
}

div.dt-container .dt-paging .dt-paging-button:hover {
  background: #f9fafb !important;
  color: #000000 !important;
}

.dt-paging-button:hover {
  background: #f3f4f6 !important;
  color: #000000 !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 * require_tree .






*/
trix-editor{
  margin-top: 5px;
  min-height: 120px !important;
}
trix-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #fff;
  border: 0 !important;
  border-top-right-radius: 0.5em;
  border-top-left-radius: 0.5em;
  padding: 0.5em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-left: 1px;
  margin-right: 1px;
  margin-top: 0.5em;
}
.trix-editor {
  margin-top: -2.8em;
  padding-top: 4em;
}
trix-toolbar .trix-button-group {
  /* border-color: #ddd;
  border-bottom-color: #ccc; */
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0;
  border: 0;
}
trix-toolbar .trix-button:not(:first-child) {
  border-left: 0; 
}
trix-toolbar .trix-button {
  width: auto !important;
  text-indent: -9999px;
  overflow: hidden;
  border: 0;
  background-color: #fff;
  border-radius: 3px;

  width: 20px !important;
  background-size: contain;
  background-repeat: no-repeat;
  padding: 2px 20px;
  background-position: center center;
}
/* active status */
trix-toolbar .trix-button.trix-active {
  background-color: #F9F9F9;
  border-color: #ddd;
  border-bottom-color: #ccc;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

trix-toolbar .trix-button--icon::before {
  opacity: 0.75;
}
trix-toolbar .trix-button--icon-bold {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-bold' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M7 5h6a3.5 3.5 0 0 1 0 7h-6z' /%3E%3Cpath d='M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-italic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-italic' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cline x1='11' y1='5' x2='17' y2='5' /%3E%3Cline x1='7' y1='19' x2='13' y2='19' /%3E%3Cline x1='14' y1='5' x2='10' y2='19' /%3E%3C/svg%3E") !important;
}
trix-toolbar .trix-button--icon-strike {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-strikethrough' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cline x1='5' y1='12' x2='19' y2='12' /%3E%3Cpath d='M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7' /%3E%3Cpath d='M16.5 16a3.5 3.5 0 0 1 -3.5 3h-1.5a4 2 0 0 1 -4 -1.5' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-code {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-code' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cpolyline points='7 8 3 12 7 16' /%3E%3Cpolyline points='17 8 21 12 17 16' /%3E%3Cline x1='14' y1='4' x2='10' y2='20' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-link {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-link' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5' /%3E%3Cpath d='M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-bullet-list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-list' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cline x1='9' y1='6' x2='20' y2='6' /%3E%3Cline x1='9' y1='12' x2='20' y2='12' /%3E%3Cline x1='9' y1='18' x2='20' y2='18' /%3E%3Cline x1='5' y1='6' x2='5' y2='6.01' /%3E%3Cline x1='5' y1='12' x2='5' y2='12.01' /%3E%3Cline x1='5' y1='18' x2='5' y2='18.01' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-decrease-nesting-level {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-indent-decrease' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cline x1='20' y1='6' x2='13' y2='6' /%3E%3Cline x1='20' y1='12' x2='11' y2='12' /%3E%3Cline x1='20' y1='18' x2='13' y2='18' /%3E%3Cpath d='M8 8l-4 4l4 4' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-increase-nesting-level {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-indent-increase' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cline x1='20' y1='6' x2='9' y2='6' /%3E%3Cline x1='20' y1='12' x2='13' y2='12' /%3E%3Cline x1='20' y1='18' x2='9' y2='18' /%3E%3Cpath d='M4 8l4 4l-4 4' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-attach {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-photo' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cline x1='15' y1='8' x2='15.01' y2='8' /%3E%3Crect x='4' y='4' width='16' height='16' rx='3' /%3E%3Cpath d='M4 15l4 -4a3 5 0 0 1 3 0l 5 5' /%3E%3Cpath d='M14 14l1 -1a3 5 0 0 1 3 0l 2 2' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-quote {
  background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' class='bi bi-blockquote-left' fill='%232c3e50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M2 3.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm5 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm-5 3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z'/%3E%3Cpath d='M3.734 6.352a6.586 6.586 0 0 0-.445.275 1.94 1.94 0 0 0-.346.299 1.38 1.38 0 0 0-.252.369c-.058.129-.1.295-.123.498h.282c.242 0 .431.06.568.182.14.117.21.29.21.521a.697.697 0 0 1-.187.463c-.12.14-.289.21-.503.21-.336 0-.577-.108-.721-.327C2.072 8.619 2 8.328 2 7.969c0-.254.055-.485.164-.692.11-.21.242-.398.398-.562.16-.168.33-.31.51-.428.18-.117.33-.213.451-.287l.211.352zm2.168 0a6.588 6.588 0 0 0-.445.275 1.94 1.94 0 0 0-.346.299c-.113.12-.199.246-.257.375a1.75 1.75 0 0 0-.118.492h.282c.242 0 .431.06.568.182.14.117.21.29.21.521a.697.697 0 0 1-.187.463c-.12.14-.289.21-.504.21-.335 0-.576-.108-.72-.327-.145-.223-.217-.514-.217-.873 0-.254.055-.485.164-.692.11-.21.242-.398.398-.562.16-.168.33-.31.51-.428.18-.117.33-.213.451-.287l.211.352z'/%3E%3C/svg%3E") !important;
}
trix-toolbar .trix-button--icon-number-list {
  background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' class='bi bi-list-ol' fill='%232c3e50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5z'/%3E%3Cpath d='M1.713 11.865v-.474H2c.217 0 .363-.137.363-.317 0-.185-.158-.31-.361-.31-.223 0-.367.152-.373.31h-.59c.016-.467.373-.787.986-.787.588-.002.954.291.957.703a.595.595 0 0 1-.492.594v.033a.615.615 0 0 1 .569.631c.003.533-.502.8-1.051.8-.656 0-1-.37-1.008-.794h.582c.008.178.186.306.422.309.254 0 .424-.145.422-.35-.002-.195-.155-.348-.414-.348h-.3zm-.004-4.699h-.604v-.035c0-.408.295-.844.958-.844.583 0 .96.326.96.756 0 .389-.257.617-.476.848l-.537.572v.03h1.054V9H1.143v-.395l.957-.99c.138-.142.293-.304.293-.508 0-.18-.147-.32-.342-.32a.33.33 0 0 0-.342.338v.041zM2.564 5h-.635V2.924h-.031l-.598.42v-.567l.629-.443h.635V5z'/%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-undo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-arrow-back-up' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-redo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-arrow-forward-up' width='44' height='44' viewBox='0 0 24 24' stroke-width='1.5' stroke='%232c3e50' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1' /%3E%3C/svg%3E") !important;
}

trix-toolbar .trix-button--icon-heading-1 {
  background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' class='bi bi-type-h1' fill='%232c3e50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.637 13V3.669H7.379V7.62H2.758V3.67H1.5V13h1.258V8.728h4.62V13h1.259zm5.329 0V3.669h-1.244L10.5 5.316v1.265l2.16-1.565h.062V13h1.244z'/%3E%3C/svg%3E") !important;
}

trix-editor:empty:not(:focus)::before {
  color: #a0aec0;
}

.trix-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.trix-content a {
  text-decoration: underline;
  cursor: pointer;
  color: #667eea;
}

.trix-content blockquote {
  border-left-color: #667eea;
}

.trix-content pre {
  border-radius: 0.5em;
}

.trix-content ol,
.trix-content ul {
  margin-bottom: 1rem;
}

.trix-content li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 1rem;
}
.trix-content ul li:before {
  position: absolute;
  top: 10px;
  left: 0;
  content: "";
  width: 0.4em;
  height: 0.4em;
  background-color: #667eea;
  border-radius: 50%;
  display: inline-block;
}

.trix-content ol {
  counter-reset: custom-counter;
}
.trix-content ol li:before {
  counter-increment: custom-counter;
  position: absolute;
  top: 2px;
  left: 0;
  content: counter(custom-counter) ".";
  display: inline-block;
  font-size: 0.85em;
  font-weight: 500;
  color: #667eea;
  text-align: right;
}
/* Modo escuro do painel. Ativado por [data-bs-theme="dark"] no <html>
   (aplicado por um script inline no layout, antes da primeira pintura).
   Bootstrap 5.3 já cobre os componentes; aqui ajustamos o que tem cor fixa
   no template e nos plugins (DataTables, select2, Trix). */

html[data-bs-theme="dark"] {
  color-scheme: dark;
  /* Legibilidade: o que o Bootstrap deixaria acinzentado fica claro no escuro. */
  --bs-body-color: #f0f6fc;
  --bs-secondary-color: #e6edf3;
  --bs-tertiary-color: #e6edf3;
  --bs-emphasis-color: #ffffff;
}

/* Textos "muted"/secundários -> brancos no escuro */
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-body-secondary,
[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .form-text {
  color: #e6edf3 !important;
}

/* Breadcrumb */
[data-bs-theme="dark"] .breadcrumb-item,
[data-bs-theme="dark"] .breadcrumb-item a {
  color: #c9d1d9;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
  color: #f0f6fc;
}

/* Superfícies do template */
[data-bs-theme="dark"] #main-content {
  background: #161b22;
}

[data-bs-theme="dark"] #main-navbar {
  background-color: #1c2128;
  border-color: #30363d !important;
}

[data-bs-theme="dark"] #main-navbar .text-dark,
[data-bs-theme="dark"] #main-navbar .nav-link,
[data-bs-theme="dark"] #main-navbar .navbar-brand {
  color: #e6edf3 !important;
}

[data-bs-theme="dark"] #main-navbar .navbar-toggler-icon {
  filter: none;
  /* Ícone "hambúrguer" branco (o padrão do Bootstrap usa traço escuro) */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] #footer {
  background-color: #1c2128 !important;
  color: #e6edf3;
  border-top: 1px solid #30363d;
}

[data-bs-theme="dark"] #footer a {
  color: #79c0ff;
}

[data-bs-theme="dark"] #footer .text-primary {
  color: #79c0ff !important;
}

/* Cards */
[data-bs-theme="dark"] .card {
  background-color: #1c2128;
  border-color: #30363d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer {
  background-color: #21262d;
  border-color: #30363d;
}

/* DataTables (cores fixas em custom.css) */
[data-bs-theme="dark"] .dataTable th {
  background-color: #21262d !important;
  color: #e6edf3 !important;
}

[data-bs-theme="dark"] .dataTable tbody tr:nth-child(odd) {
  background-color: #161b22 !important;
}

[data-bs-theme="dark"] .dataTable tbody tr:nth-child(even) {
  background-color: #1c2128 !important;
}

[data-bs-theme="dark"] .dataTable tbody td {
  color: #e6edf3;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select {
  background-color: #0d1117 !important;
  color: #e6edf3 !important;
  border-color: #30363d !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_info,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate {
  color: #e6edf3 !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #f0f6fc !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #21262d !important;
  border-color: #30363d !important;
  color: #fff !important;
}

/* DataTables 2.x (classes novas: .dt-*) */
[data-bs-theme="dark"] .dt-container .dt-search input,
[data-bs-theme="dark"] .dt-container .dt-length select,
[data-bs-theme="dark"] .dt-container .dt-input {
  background-color: #0d1117 !important;
  color: #e6edf3 !important;
  border-color: #30363d !important;
}

[data-bs-theme="dark"] .dt-container .dt-info,
[data-bs-theme="dark"] .dt-container .dt-paging {
  color: #e6edf3 !important;
}

[data-bs-theme="dark"] .dt-container .dt-paging .dt-paging-button {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #f0f6fc !important;
}

[data-bs-theme="dark"] .dt-container .dt-paging .dt-paging-button:hover {
  background: #30363d !important;
  border-color: #484f58 !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .dt-container .dt-paging .dt-paging-button.current,
[data-bs-theme="dark"] .dt-container .dt-paging .dt-paging-button.current:hover {
  background: #1f6feb !important;
  border-color: #1f6feb !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .dt-container .dt-paging .dt-paging-button.disabled,
[data-bs-theme="dark"] .dt-container .dt-paging .dt-paging-button.disabled:hover {
  background: #161b22 !important;
  border-color: #21262d !important;
  color: #8b949e !important;
  opacity: 1 !important;
}

[data-bs-theme="dark"] .dt-container .dt-empty {
  color: #e6edf3 !important;
}

/* Formulários */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: #8b949e;
}

[data-bs-theme="dark"] .dropdown-menu {
  border-color: #30363d;
}

[data-bs-theme="dark"] .dropdown-menu input[type="text"] {
  background-color: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

/* Select2 (tema bootstrap-5) */
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
  background-color: #0d1117;
  border-color: #30363d;
  color: #e6edf3;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection__rendered,
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection__placeholder {
  color: #e6edf3;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
  background-color: #0d1117;
  border-color: #30363d;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
  color: #e6edf3;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: #21262d;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-search__field {
  background-color: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

/* Fechar (X) dos modais */
[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Abas */
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  background-color: #1c2128;
  border-color: #30363d;
}

/* Trix (Action Text) */
[data-bs-theme="dark"] trix-editor {
  background: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

/* A barra de ferramentas do Trix tem fundo branco fixo (trixx.css) e os
   ícones são SVGs escuros embutidos como background-image. No escuro,
   escurecemos a barra e invertemos os ícones para mantê-los legíveis. */
[data-bs-theme="dark"] trix-toolbar {
  background-color: #161b22;
  border: 1px solid #30363d !important;
}

[data-bs-theme="dark"] trix-toolbar .trix-button-group {
  background: #21262d !important;
  border: 0;
}

[data-bs-theme="dark"] trix-toolbar .trix-button {
  background-color: transparent !important;
  filter: invert(1) grayscale(1) brightness(1.7);
}

[data-bs-theme="dark"] trix-toolbar .trix-button.trix-active {
  /* o filter do botão inverte esta cor; o resultado visível fica ~#30363d */
  background-color: #d0d0d0 !important;
}

[data-bs-theme="dark"] trix-toolbar .trix-button:disabled {
  opacity: 0.35;
}

/* Diálogo de link do Trix (fundo branco por padrão) */
[data-bs-theme="dark"] .trix-dialog {
  background: #1c2128;
  border-color: #30363d;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .trix-input {
  background: #0d1117;
  color: #e6edf3;
  border-color: #30363d;
}

/* Texto rico exibido nas telas de detalhe (.trix-content) */
[data-bs-theme="dark"] .trix-content a {
  color: #79c0ff;
}

[data-bs-theme="dark"] .trix-content pre {
  background-color: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
}

/* Botões: contraste dos outlines e do btn-dark no escuro */
[data-bs-theme="dark"] .btn.btn-outline-primary {
  color: #8bb9fe;
  border-color: #8bb9fe;
}

[data-bs-theme="dark"] .btn.btn-outline-primary:hover,
[data-bs-theme="dark"] .btn.btn-outline-primary:active {
  background-color: #8bb9fe;
  border-color: #8bb9fe;
  color: #0b0f14;
}

[data-bs-theme="dark"] .btn.btn-outline-secondary {
  color: #e6edf3;
  border-color: #8b949e;
}

[data-bs-theme="dark"] .btn.btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn.btn-outline-secondary:active {
  background-color: #e6edf3;
  border-color: #e6edf3;
  color: #0b0f14;
}

[data-bs-theme="dark"] .btn.btn-outline-danger {
  color: #ff8a8a;
  border-color: #ff8a8a;
}

[data-bs-theme="dark"] .btn.btn-outline-danger:hover,
[data-bs-theme="dark"] .btn.btn-outline-danger:active {
  background-color: #ff8a8a;
  border-color: #ff8a8a;
  color: #0b0f14;
}

/* btn-dark (ex.: "Voltar") ficaria quase invisível no fundo escuro */
[data-bs-theme="dark"] .btn-dark {
  --bs-btn-bg: #30363d;
  --bs-btn-border-color: #484f58;
  --bs-btn-hover-bg: #3b434c;
  --bs-btn-hover-border-color: #59616b;
  --bs-btn-color: #f0f6fc;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: #3b434c;
  --bs-btn-active-border-color: #59616b;
}

/* Botão de alternância do tema */
.tema-toggle {
  color: var(--bs-body-color);
}

.tema-toggle:hover {
  color: var(--bs-primary);
}

[data-bs-theme="dark"] .tema-toggle {
  color: #e6edf3;
}

[data-bs-theme="dark"] .tema-toggle:hover {
  color: #fff;
}
