.dataTables_length {
    margin-left: 16px;
}

div.dataTables_wrapper div.dataTables_info {
    margin-left: 16px;
}

.altoContrasteIcone {
    background: black !important;
    color: white !important;
    border: 2px solid white !important;
}

.altoContrasteBadge {
    background: yellow !important;
    color: black !important;
}

/* Base visual compartilhada por todas as telas de cadastro.
   .form-page/.form-card sao os nomes canonicos; os aliases por entidade
   ficam so por compatibilidade com telas ja publicadas. */
.form-page,
.usuario-page,
.inscricao-page {
    background: #f4f7fa;
    padding: 18px 18px 28px 18px;
    border-radius: 12px;
}

.form-card,
.usuario-card,
.inscricao-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    /* visible para o menu dos selects nao ser cortado pelo card */
    overflow: visible;
}

    .form-card .card-body,
    .usuario-card .card-body,
    .inscricao-card .card-body {
        padding: 28px;
    }

.section-box {
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
    padding: 22px;
    margin-bottom: 22px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
}

    .section-header i {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: #eef7ff;
        color: #009efb;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        flex: 0 0 auto;
    }

.section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.section-subtitle {
    margin: 2px 0 0 0;
    color: #6b7280;
    font-size: 13px;
}

.form-label-custom {
    display: block;
    font-weight: 700;
    color: #111827;
    margin-bottom: 7px;
    font-size: 15px;
}

    .form-label-custom.required::after {
        content: "*";
        color: #ef4444;
        margin-left: 2px;
    }

.form-page .form-control,
.form-page .bootstrap-select > .dropdown-toggle,
.usuario-page .form-control,
.usuario-page .bootstrap-select > .dropdown-toggle,
.inscricao-page .form-control,
.inscricao-page .bootstrap-select > .dropdown-toggle {
    background-color: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 9px;
    min-height: 42px;
    box-shadow: none;
}

    .form-page .form-control:focus,
    .usuario-page .form-control:focus,
    .inscricao-page .form-control:focus {
        border-color: #009efb;
        box-shadow: 0 0 0 3px rgba(0, 158, 251, .08);
    }

.form-page textarea.form-control,
.usuario-page textarea.form-control,
.inscricao-page textarea.form-control {
    min-height: 90px;
}

.form-page .input-group .btn,
.usuario-page .input-group .btn,
.inscricao-page .input-group .btn {
    border-radius: 9px;
}

/* bootstrap-select monta um wrapper dentro do .form-control: neutraliza o duplo campo */
.form-page .bootstrap-select.form-control,
.usuario-page .bootstrap-select.form-control,
.inscricao-page .bootstrap-select.form-control {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    padding: 0;
}

.form-page .bootstrap-select > .dropdown-toggle:focus,
.form-page .bootstrap-select.show > .dropdown-toggle,
.usuario-page .bootstrap-select > .dropdown-toggle:focus,
.usuario-page .bootstrap-select.show > .dropdown-toggle,
.inscricao-page .bootstrap-select > .dropdown-toggle:focus,
.inscricao-page .bootstrap-select.show > .dropdown-toggle {
    border-color: #009efb !important;
    box-shadow: 0 0 0 3px rgba(0, 158, 251, .08) !important;
    outline: 0 !important;
}

.form-page .dropzone,
.usuario-page .dropzone,
.inscricao-page .dropzone,
.dashboard-shell .dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    min-height: 130px;
}

    .form-page .dropzone:hover,
    .usuario-page .dropzone:hover,
    .inscricao-page .dropzone:hover,
    .dashboard-shell .dropzone:hover {
        border-color: #009efb;
        background: #f2f9ff;
    }

.permissoes-wrapper {
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: #fff;
    padding: 22px;
}

.permissoes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.permissoes-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #111827;
}

.permissoes-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.permissoes-actions .btn {
    padding: 7px 13px;
    font-size: 13px;
    border-radius: 8px;
    margin-left: 5px;
}

.permissoes-search {
    margin-bottom: 16px;
}

.permissao-card {
    border: 1px solid #e8edf3;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #fff;
    overflow: visible;
}
.permissao-card-body {
    overflow: visible;
}

.permissoes-wrapper {
    overflow: visible;
}

.bootstrap-select .dropdown-menu {
    z-index: 9999;
}

.permissao-card-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 14px 18px;
    border-bottom: 1px solid #e8edf3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.permissao-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.permissao-card-body {
    padding: 18px;
    background: #fff;
}

.permissao-item {
    padding: 10px 12px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 12px;
    transition: all .18s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

    .permissao-item:hover {
        border-color: #b9dff7;
        background: #f8fcff;
        transform: translateY(-1px);
    }

    .permissao-item .form-check {
        width: 100%;
        margin-bottom: 0;
    }

    .permissao-item .form-check-label {
        cursor: pointer;
        font-size: 14px;
        color: #1f2937;
        margin-left: 6px;
    }

    .permissao-item input:checked + label {
        font-weight: 800;
        color: #0f766e;
    }

.permissao-destaque {
    background: #effdf5;
    border-color: #bbf7d0;
}

    .permissao-destaque:hover {
        background: #e8fff2;
        border-color: #86efac;
    }

.content-helper {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 14px;
}

.action-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
}

    .action-footer .btn {
        border-radius: 9px;
        min-height: 42px;
    }

@media (max-width: 768px) {
    .form-card .card-body,
    .usuario-card .card-body,
    .inscricao-card .card-body {
        padding: 18px;
    }

    .section-box,
    .permissoes-wrapper {
        padding: 16px;
    }

    .permissoes-header {
        flex-direction: column;
    }

    .permissoes-actions {
        width: 100%;
    }

        .permissoes-actions .btn {
            margin: 0 5px 6px 0;
        }

    .action-footer .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}

.no-padding {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.titulo-municipio {
    margin-left: 12px;
    font-size: 18px;
    color: #fff;
    line-height: 2.0;
}

.titulo-transparencia {
    margin-left: 12px;
    color: #fff;
    line-height: 0.4;
}

.footer {
    bottom: 0 !important;
    left: 0;
    padding: 10px 15px;
    right: 0;
    border-top: 1px solid #e9ecef;
    background: #fff;
}

@media (max-width: 768px) {
    .titulo-transparencia {
        margin-left: 12px;
        color: #fff;
        line-height: 0.4;
        font-size: 19px;
    }
}

@media (max-width: 420px) {
    .titulo-transparencia {
        padding-top: 15px;
        margin-left: 8px;
        color: #fff;
        line-height: 0.4;
        font-size: 14px;
    }

    .titulo-municipio {
        margin-left: 8px;
        font-size: 14px;
        color: #fff;
        line-height: 2.0;
    }
}

@media (max-width: 350px) {
    .titulo-transparencia {
        padding-top: 15px;
        margin-left: 8px;
        color: #fff;
        line-height: 0.4;
        font-size: 7px;
    }

    .titulo-municipio {
        margin-left: 8px;
        font-size: 7px;
        color: #fff;
        line-height: 2.0;
    }
}

@media (min-width: 768px) {
    .navbar-header {
        width: 80px;
        flex-shrink: 0;
    }
}

.abase .card {
    color: #fff !important;
}

    .abase .card .card-body {
        padding: 0.05rem 0.05rem 0.05rem 0.05rem !important;
    }

        .abase .card .card-body .card-title {
            font-size: 1.25rem;
        }

        .abase .card .card-body .card-title {
            display: inline-block;
        }

    .abase .card .btn-secondary {
        border-color: #ffffff !important;
        background: #fff !important;
        height: 100%;
    }

    .abase .card:hover .btn-secondary {
        border-color: #f8f9fa !important;
        background: #f8f9fa !important;
        height: 100%;
    }

    .abase .card .btn {
        color: #6c757d !important;
    }

.abase .form-group {
    margin-bottom: 5px;
}

.table td, .table th {
    padding: 0.5rem;
    vertical-align: top;
    border-top: 1px solid #e9ecef;
}

.btnAbase {
    margin-top: -5px;
    padding: 3px 5px 2px 5px;
}
/**
.page-titles {
    background: #fff;
    padding: 5px 10px 0px 10px;
    box-shadow: 1px 0 20px rgba(0,0,0,.00);
    margin: 0 -25px 0px;
}**/
.comment-text {
    padding: 20px 15px 14px 20px;
}

.round {
    line-height: 48px;
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-block;
    text-align: center;
}

    .round, .round img {
        border-radius: 0;
    }

        .round, .round.round-info {
            background: #fff;
        }

.iconAbase {
    font-size: 30px !important;
}

    .iconAbase .fa-arrow-alt-circle-right {
        color: #00c0c8;
    }

    .iconAbase .fa-industry {
        color: #fb9678a3;
    }

    .iconAbase .fa-map-marked-alt {
        color: #3ADF00;
    }

    .iconAbase .fa-money-bill-alt {
        color: #ab8ce4c7;
    }

    .iconAbase .fa-users {
        color: #00c292;
    }

    .iconAbase .fa-certificate {
        color: #e21b2f8a;
    }

    .iconAbase .fa-donate {
        color: #fec20b;
    }

    .iconAbase .fa-truck-moving {
        color: #fb9678;
    }

    .iconAbase .fa-balance-scale {
        color: #e46a76;
    }

    .iconAbase .fa-seedling {
        color: #02dea8;
    }

    .iconAbase .fa-gavel {
        color: #02a1de;
    }

    .iconAbase .fa-file-contract {
        color: #A51D00;
    }

    .iconAbase .fa-file-invoice-dollar {
        color: #00c283;
    }

    .iconAbase .fa-hand-holding-usd {
        color: #fec209;
    }

    .iconAbase .fa-info-circle {
        color: #f1e907;
    }


.iconAbase {
    font-size: 30px !important;
}

    .iconAbase .fa-arrow-alt-circle-right {
        color: #00c0c8;
    }

    .iconAbase .fa-industry {
        color: #fb9678a3;
    }

    .iconAbase .fa-money-bill-alt {
        color: #00c292;
    }

    .iconAbase .fa-users {
        color: #00c292;
    }

    .iconAbase .fa-certificate {
        color: #e21b2f8a;
    }

    .iconAbase .fa-donate {
        color: #fec20b;
    }

    .iconAbase .fa-map-marked-alt {
        color: #3ADF00;
    }

    .iconAbase .fa-truck-moving {
        color: #fb9678;
    }

    .iconAbase .fa-balance-scale {
        color: #e46a76;
    }

    .iconAbase .fa-seedling {
        color: #02dea8;
    }

    .iconAbase .fa-gavel {
        color: #02a1de;
    }

    .iconAbase .fa-file-contract {
        color: #A51D00;
    }

    .iconAbase .fa-file-invoice-dollar {
        color: #00c283;
    }

    .iconAbase .fa-hand-holding-usd {
        color: #fec209;
    }

    .iconAbase .fa-info-circle {
        color: #f1e907;
    }

.iconDespesas .fa-file-invoice-dollar {
    color: #02dea8;
}

.iconDespesas .counter {
    color: #02dea8;
}

.Bg-empenho {
    background-color: #02dea8 !important;
}

.iconAbase .fa-dollar-sign {
    color: #01c0c8 !important;
}

.iconAbase .fa-sticky-note {
    color: #01c0c8 !important
}

.iconAbase .fa-hand-holding-usd {
    color: #00654c;
}

.iconAbase .fa-syringe {
    color: #a2ebe9;
}

.ColorSaldo {
    color: #00654c;
}

.BarColorSaldo {
    background-color: #00654c !important;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff !important;
    background-color: #05a9f3;
    border-color: #05a9f3;
}

@media (max-width: 1600px) {
    .topbar .top-navbar {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        flex-direction: row;
        flex-wrap: nowrap;
        -webkit-align-items: center;
    }
}

body {
    font-family: Poppins,sans-serif;
    line-height: 1.5;
    color: #212529;
    background-color: #edf1f5;
}

.dataTables_wrapper {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.form-group {
    margin-bottom: 5px;
}

.brasao {
    height: 50px;
}

.card-title {
    margin-bottom: 0.3rem;
}

.money {
    float: right !important "
}

.iconAbase .fa-id-card-alt {
    color: #fb9678
}

.iconAbase .mdi-contacts {
    color: #03a9f3;
}

.iconAbase .fa-money-bill-alt {
    color: #00c292;
}

.iconAbase .fa-id-badge {
    color: #01c0c8;
}

.iconAbase .mdi-car {
    color: #05a9f3;
}

.w-100 {
    width: 100%;
}

.linha0 {
    bottom: 0;
    background: #f4f4f4;
}

.linhaMargem {
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.abase5 .custom-control {
    padding-left: 0.025rem !important;
}

.card-sem-borda {
    margin-bottom: 1px !important;
}

    .card-sem-borda .no-padding .card {
        margin-bottom: 1px !important;
    }

.m-t-60 {
    margin-top: 60px;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #05a9f3;
    border-color: #05a9f3;
}

.dropdown-menu.show {
    display: block;
    width: 100%;
}

.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    overflow: hidden;
    color: #000;
}

@media (max-width: 991px) {
    .Botao100 {
        width: 100%;
    }
}

.required:after {
    content: "*";
    color: red;
    object-position:top;
   
}

.modal-800 {
    max-width: 800px;
}

.modal-1000 {
    max-width: 1000px;
}

.modal-1200 {
    max-width: 1200px;
}

.modal-1900 {
    max-width: 1900px;
}


.btn-tipo-encaminhamento {
    border: 2px solid #ff9b7a !important;
    color: #ff6b4a !important;
    background-color: transparent !important;
    padding: 8px 0 !important;
    text-align: center;
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
}

    .btn-tipo-encaminhamento:hover {
        background-color: #ff9b7a !important;
        color: white !important;
    }

    .btn-tipo-encaminhamento.active {
        background-color: #ff6b4a !important;
        color: white !important;
        font-weight: bold !important;
        border-color: #ff6b4a !important;
    }

table.table-bordered.dataTable tbody th, table.table-bordered.dataTable tbody td {
    border-bottom-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
}


.midia-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
    background: #f8f9fa;
	margin-bottom: 20px;
}

    .midia-card:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    }

    .midia-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

.midia-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: 0.2s;
}

.midia-card:hover .midia-check {
    opacity: 1;
}

.midia-card.selecionado .midia-check {
    background: #ff4d4f;
    opacity: 1;
}

.midia-card small {
    display: block;
    text-align: center;
    margin-top: 8px;
}

/* cartao do arquivo enviado: caixa menor que o padrao do dropzone */
.dropzone .dz-preview {
    width: 180px;
    margin: 10px;
    min-height: 0;
}

    .dropzone .dz-preview .dz-image {
        width: 72px;
        height: 72px;
        border-radius: 12px;
        margin: 0 auto;
    }

    .dropzone .dz-preview .dz-details {
        padding: .75em .5em;
        font-size: 12px;
    }

/* acoes do arquivo: um botao abaixo do outro, compactos */
.dz-preview button,
.dropzone .dz-preview button,
.form-page .dz-preview button,
.dashboard-shell .dz-preview button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 24px;
    margin: 4px 0 0 0;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
}

    .dz-preview button i {
        font-size: 11px;
    }

.link-cortado {
    max-width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sortable li {
    cursor: move;
}

.dashboard-shell {
    --dashboard-primary: #f2542d;
    --dashboard-primary-hover: #171e45;
    --dashboard-success: #16a34a;
    --dashboard-danger: #dc2626;
    --dashboard-text: #172033;
    --dashboard-muted: #64748b;
    --dashboard-border: #e5eaf2;
    --dashboard-surface: #ffffff;
    --dashboard-soft: #f8fafc;
    color: var(--dashboard-text);
}

.dashboard-page-title .text-themecolor {
    color: var(--dashboard-text) !important;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.dashboard-page-title .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.dashboard-shell .dashboard-card {
    background: var(--dashboard-surface);
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .055);
}

.dashboard-shell .dashboard-hero {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dashboard-shell .dashboard-hero .card-body {
    padding: 1.75rem 2rem;
}

.dashboard-hero-title,
.dashboard-section-title,
.dashboard-actions {
    display: flex;
    align-items: center;
}

.dashboard-hero-title,
.dashboard-section-title {
    gap: 1rem;
}

.dashboard-hero-icon,
.dashboard-section-icon {
    align-items: center;
    background: #eff6ff;
    border-radius: 10px;
    color: var(--dashboard-primary);
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.dashboard-hero-icon {
	background: linear-gradient(145deg, #171e45, #f2542d);
    color: #fff;
    font-size: 1.2rem;
    height: 54px;
    width: 54px;
}

.dashboard-eyebrow {
    color: var(--dashboard-primary);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    margin: 0 0 .25rem;
    text-transform: uppercase;
}

.dashboard-shell .dashboard-hero h1 {
    color: var(--dashboard-text);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin: 0;
}

.dashboard-hero-description,
.dashboard-section-title p {
    color: var(--dashboard-muted);
    font-size: .9rem;
    margin: .35rem 0 0;
}

.dashboard-actions {
    flex-wrap: wrap;
    gap: .65rem;
}

.dashboard-shell .dashboard-section {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dashboard-shell .dashboard-section.dashboard-section-overflow-visible {
    overflow: visible;
}

.dashboard-section-header {
    align-items: center;
    border-bottom: 1px solid var(--dashboard-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.dashboard-section-title h2 {
    color: var(--dashboard-text);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin: 0;
}

.dashboard-section-body {
    padding: 1.25rem 1.5rem 1.35rem;
}

.dashboard-section-body .row,
.dashboard-section-body [class*="col-"] {
    margin-bottom: 0 !important;
}

.dashboard-shell .dashboard-footer-actions {
    display: flex;
    justify-content: flex-end;
    margin: .25rem 0 1.5rem;
}

.btn-modern {
    align-items: center;
    border-radius: 8px;
    box-shadow: none;
    display: inline-flex;
    font-size: .875rem;
    font-weight: 600;
    gap: .45rem;
    justify-content: center;
    min-height: 38px;
    padding: .5rem .9rem;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn-modern:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
    transform: translateY(-1px);
}

table.table-modern {
    border-collapse: separate;
    border-spacing: 0;
    color: #334155;
    margin: 0 !important;
}

table.table-modern thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf2 !important;
    border-top: 0 !important;
    color: #475569;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .035em;
    padding: .9rem 1rem !important;
    text-transform: uppercase;
    vertical-align: middle;
}

table.table-modern td {
    border-color: #edf1f5 !important;
    vertical-align: middle;
    font-size: 13px;
}

table.table-modern tbody tr {
    transition: background-color .15s ease;
}

table.table-modern tbody tr:hover {
    background: #f8fbff !important;
}


.dashboard-shell .btn {
    border-radius: 8px;
    box-shadow: none;
    display: inline-flex;
    font-size: .875rem;
    font-weight: 600;
    gap: .45rem;
    justify-content: center;
    min-height: 38px;
    padding: .5rem .9rem;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    align-items: center;
}

.dashboard-shell .btn:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
    transform: translateY(-1px);
}

.dashboard-shell .btn-primary { background: var(--dashboard-primary); border-color: var(--dashboard-primary); }
.dashboard-shell .btn-primary:hover { background: var(--dashboard-primary-hover); border-color: var(--dashboard-primary-hover); }
.dashboard-shell .btn-info { background: var(--dashboard-primary); border-color: var(--dashboard-primary); color: #fff; }
.dashboard-shell .btn-success { background: var(--dashboard-success); border-color: var(--dashboard-success); }
.dashboard-shell .btn-danger { background: var(--dashboard-danger); border-color: var(--dashboard-danger); }
.dashboard-shell .btn-secondary { background: #fff; border-color: #cbd5e1; color: #475569; }
.dashboard-shell .btn-secondary:hover { background: #f8fafc; border-color: #94a3b8; color: #334155; }

.dashboard-shell .btn-table {
    min-height: 30px;
    padding: .25rem .45rem !important;
}

.dashboard-shell .table-responsive {
    border: 1px solid var(--dashboard-border);
    border-radius: 9px;
    overflow-x: auto;
}

.dashboard-shell .dataTables_wrapper .dataTables_filter input,
.dashboard-shell .dataTables_wrapper .dataTables_length select {
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    min-height: 34px;
    outline: 0;
    padding: .35rem .6rem;
}

.dashboard-shell .dataTables_wrapper .dataTables_filter input:focus,
.dashboard-shell .dataTables_wrapper .dataTables_length select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.dashboard-shell .dataTables_wrapper .page-item .page-link {
    border-radius: 7px;
    color: var(--dashboard-primary);
    margin: 0 2px;
}

.dashboard-shell .dataTables_wrapper .page-item.active .page-link {
    background: var(--dashboard-primary);
    border-color: var(--dashboard-primary);
}

.dashboard-shell .bootstrap-select .dropdown-menu {
    overflow: visible !important;
    border-color: var(--dashboard-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .13);
}

.dashboard-shell .bootstrap-select .dropdown-menu .inner {
    max-height: 300px !important;
    overflow-y: auto !important;
}

.dashboard-shell .bootstrap-select.show {
    z-index: 999999;
}

.dashboard-shell .modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
    overflow: unset;
}

.dashboard-shell .modal-header {
    align-items: center;
    background: var(--dashboard-soft);
    border-bottom: 1px solid var(--dashboard-border);
    padding: 1rem 1.5rem;
}

.dashboard-shell .modal-title {
    color: var(--dashboard-text);
    font-size: 1.05rem;
    font-weight: 700;
}

.dashboard-shell .modal-header .close {
    border-radius: 6px;
    color: var(--dashboard-muted);
    margin: -.25rem -.35rem -.25rem auto;
    opacity: 1;
    padding: .25rem .55rem;
}

.dashboard-shell .modal-body,
.dashboard-shell .modal-content > .card {
    border: 0;
    box-shadow: none;
    margin: 0;
}

.dashboard-shell .modal-content > .card > .card-body,
.dashboard-shell .modal-body {
    padding: 1.5rem;
}

.dashboard-shell .modal-content .form-group {
    margin-bottom: 0;
}

.dashboard-shell .modal-content .form-group > [class*="col-"] {
    margin-bottom: 1rem;
}

.dashboard-shell .modal-content .card-title {
    color: #334155;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: .45rem;
}

.dashboard-shell .modal-content .form-control,
.dashboard-shell .modal-content .bootstrap-select > .dropdown-toggle {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: none;
    color: #334155;
    min-height: 42px;
    padding: .55rem .75rem;
}

.dashboard-shell .modal-content .form-control:focus,
.dashboard-shell .modal-content .bootstrap-select.show > .dropdown-toggle,
.dashboard-shell .modal-content .bootstrap-select > .dropdown-toggle:focus {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
    outline: 0 !important;
}

.dashboard-shell .modal-content .bootstrap-select.form-control {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    padding: 0;
}

.dashboard-shell .modal-footer {
    align-items: center;
    background: #fbfcfe;
    border-top: 1px solid var(--dashboard-border);
    display: flex;
    gap: .65rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
}

.dashboard-shell .modal-footer .btn[class*="col-"] {
    flex: 0 0 auto;
    width: auto;
}

.dashboard-shell .inscritos-lista {
    width: 100%;
}

.dashboard-shell .inscritos-lista .container-fluid {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.dashboard-shell .inscritos-lista .container-fluid > .row {
    margin-left: 0;
    margin-right: 0;
}

.dashboard-shell .inscritos-lista .container-fluid > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.dashboard-shell .inscritos-lista .card {
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    box-sizing: border-box;
    margin-bottom: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    transition: box-shadow .18s ease;
    width: 100%;
}

.dashboard-shell .inscritos-lista .card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, .09);
}

.dashboard-shell .inscritos-lista .card > div:first-child {
    align-items: center;
    border-bottom: 1px solid var(--dashboard-border);
    display: flex;
    margin: 0 0 .75rem;
    padding-bottom: .6rem;
}

.dashboard-shell .inscritos-lista .card > div:first-child h4.p-l-30 {
    align-items: center;
    background: linear-gradient(145deg, #2563eb, #4f46e5);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .9rem;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    width: 32px;
}

.dashboard-shell .inscritos-lista h5.font-medium {
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: .2rem !important;
    text-transform: uppercase;
}

.dashboard-shell .inscritos-lista .d-flex.no-block.p-l-30 p {
    color: #1e293b;
    font-size: .9rem;
    word-break: break-word;
}

.dashboard-shell .inscritos-lista .d-flex.no-block.border-top {
    border-top-color: var(--dashboard-border) !important;
    padding-bottom: .6rem;
    padding-top: .6rem;
}

.dashboard-shell .inscritos-lista .btn + .btn {
    margin-left: .5rem;
}

@media (max-width: 767.98px) {
    .dashboard-page-title .text-right { text-align: left !important; }
    .dashboard-page-title .d-flex { justify-content: flex-start !important; margin-top: .5rem; }
    .dashboard-hero .card-body { padding: 1.25rem; }
    .dashboard-section-header { align-items: flex-start; flex-direction: column; padding: 1.1rem 1.15rem; }
    .dashboard-section-body { padding: 1rem; }
    .dashboard-actions { width: 100%; }
    .dashboard-actions .btn { flex: 1 1 auto; }
    .dashboard-hero-title { align-items: flex-start; }
    .dashboard-hero-icon { height: 46px; width: 46px; }
    .dashboard-shell .table-responsive { border-radius: 8px; }
    .dashboard-shell .modal-dialog { margin: .75rem; }
    .dashboard-shell .modal-header,
    .dashboard-shell .modal-content > .card > .card-body,
    .dashboard-shell .modal-body,
    .dashboard-shell .modal-footer { padding: 1rem; }
    .dashboard-shell .modal-footer { align-items: stretch; flex-direction: column-reverse; }
    .dashboard-shell .modal-footer .btn,
    .dashboard-shell .modal-footer .btn[class*="col-"] { width: 100%; }
    .dashboard-footer-actions .btn { width: 100%; }
}


.dropdown-toggle::after {
    margin-left: 98%;
}
/* iframe de pre-visualizacao de documentos/arquivos nos formularios */
.preview-frame {
    width: 100%;
    height: 768px;
    max-height: 80vh;
    border: 0;
    border-radius: 12px;
}

/* o tema base aplica width fixa no focus: mantem o campo do tamanho da coluna */
.form-page .form-control:focus,
.usuario-page .form-control:focus,
.inscricao-page .form-control:focus,
.dashboard-shell .form-control:focus {
    width: 100%;
}

.form-page .input-group > .form-control:focus,
.usuario-page .input-group > .form-control:focus,
.inscricao-page .input-group > .form-control:focus,
.dashboard-shell .input-group > .form-control:focus {
    width: 1%;
    flex: 1 1 auto;
}

/* o bootstrap zera o raio do campo dentro do input-group: os botoes ja ficam separados */
.form-page .bootstrap-select > .dropdown-toggle,
.usuario-page .bootstrap-select > .dropdown-toggle,
.inscricao-page .bootstrap-select > .dropdown-toggle,
.dashboard-shell .bootstrap-select > .dropdown-toggle {
    border-radius: 10px !important;
}

/* overflow para a barra e o rodape do editor acompanharem o arredondado */
.mce-tinymce,
.tox-tinymce {
    border-radius: 10px !important;
    overflow: hidden;
}

    .mce-tinymce.mce-fullscreen {
        border-radius: 0 !important;
    }

/* campo de upload simples (input type=file) usado nos cadastros */
.file-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px 14px;
}

    .file-picker .file-picker-input {
        flex: 1 1 240px;
        min-width: 0;
        font-size: 14px;
        color: #475569;
    }

    .file-picker .file-picker-nome {
        color: #475569;
        font-size: 13px;
        font-weight: 600;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 6px 10px;
    }

/* seletor de cor ao lado do campo hexadecimal */
.color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .color-picker input[type="color"] {
        width: 46px;
        height: 42px;
        padding: 3px;
        border: 1px solid #dfe7ef;
        border-radius: 9px;
        background: #fff;
        cursor: pointer;
    }

/* coluna de acoes das tabelas: os botoes (status, editar, excluir) ficam
   lado a lado mesmo com a largura estreita definida pelo DataTables */
.table td:has(.btn-table) {
    white-space: nowrap;
    text-align: right;
}

    .table td:has(.btn-table) .btn {
        margin: 2px 0 2px 4px;
        vertical-align: middle;
        float: none;
    }

    .table td:has(.btn-table) span {
        display: inline-block;
    }

/* primeira coluna costuma ter apenas o botao de detalhes */
.table td:first-child:has(.btn-table) {
    text-align: center;
}

    .table td:first-child:has(.btn-table) .btn {
        margin-left: 0;
    }

/* navegador sem suporte a :has() cai na ultima coluna, onde ficam as acoes */
@supports not selector(:has(*)) {
    .table td:last-child {
        white-space: nowrap;
    }

        .table td:last-child .btn-table {
            margin: 2px 0 2px 4px;
        }
}

/* grupo de botoes de acao: flex impede a quebra que o nowrap nao resolve
   quando o padding da celula come a largura util da coluna */
.acoes-linha {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
}

    .acoes-linha .btn {
        flex: 0 0 auto;
    }

    .acoes-linha span {
        display: inline-flex;
    }

/* a coluna de acoes nao precisa do respiro lateral das colunas de texto */
.table td:has(.acoes-linha) {
    padding-left: 6px;
    padding-right: 6px;
}

/* coluna de acoes: largura suficiente para os botoes ficarem em uma linha */
.table th.col-acoes {
    width: 150px;
    min-width: 150px;
}

.table td:last-child:has(.btn-table),
.table td:has(.acoes-linha) {
    white-space: nowrap;
    min-width: 150px;
}

/* editor wysihtml5: a barra original usa float e estoura a caixa em telas
   estreitas; flex mantem os botoes alinhados e dentro do campo */
ul.wysihtml5-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #dfe7ef;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #f8fafc;
}

    ul.wysihtml5-toolbar > li {
        float: none;
        display: inline-flex;
        margin: 0;
    }

    ul.wysihtml5-toolbar a.btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 32px;
        padding: 6px 10px;
        border: 1px solid transparent;
        border-radius: 7px;
        background: #fff;
        color: #475569;
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
    }

        ul.wysihtml5-toolbar a.btn:hover,
        ul.wysihtml5-toolbar a.btn:focus {
            border-color: #cbd5e1;
            background: #f1f5f9;
            color: #0f172a;
        }

    ul.wysihtml5-toolbar a.btn.wysihtml5-command-active {
        border-color: #7dd3fc;
        background: #e0f2fe;
        color: #0369a1;
    }

    ul.wysihtml5-toolbar .btn-group {
        display: inline-flex;
        gap: 4px;
    }

    ul.wysihtml5-toolbar .dropdown-menu {
        z-index: 1050;
    }

    /* a regra global .dropdown-toggle::after usa margin-left:98% para o
       bootstrap-select; aqui ela esticava o botao e jogava o icone para fora */
    ul.wysihtml5-toolbar .dropdown-toggle::after {
        margin-left: .35rem;
    }

    ul.wysihtml5-toolbar .dropdown-toggle .caret {
        display: none;
    }

    /* o texto do botao e so texto: nada de cara de campo */
    ul.wysihtml5-toolbar .current-font,
    ul.wysihtml5-toolbar .current-color {
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
        font: inherit;
        color: inherit;
    }

    ul.wysihtml5-toolbar a.btn i {
        margin: 0;
        font-size: 14px;
        color: inherit;
    }

/* corpo do editor encosta na barra, formando um campo unico */
.wysihtml5-sandbox,
.wysihtml5-textarea {
    width: 100% !important;
    border: 1px solid #dfe7ef !important;
    border-radius: 0 0 9px 9px !important;
    background: #fff;
}

.form-page .wysihtml5-sandbox,
.dashboard-shell .wysihtml5-sandbox {
    min-height: 180px;
}

/* menu dos selects (bootstrap-select) nao pode ser cortado pelos containers */
.form-page,
.form-page .card,
.form-page .card-body,
.section-box,
.dashboard-shell .dashboard-section,
.dashboard-shell .dashboard-section-body,
.dashboard-shell .card,
.dashboard-shell .card-body,
.tab-content,
.tab-pane {
    overflow: visible;
}

.bootstrap-select .dropdown-menu {
    z-index: 1060;
}

    .bootstrap-select .dropdown-menu .inner {
        max-height: 320px;
        overflow-y: auto;
    }

/* a tabela ainda rola na horizontal, mas sem cortar o menu aberto sobre ela */
.dashboard-shell .table-responsive {
    overflow: visible;
    overflow-x: auto;
    margin-top: 20px;
}


@media (max-width: 767.98px) {

    .page-titles.dashboard-page-title {
        margin-top: .75rem;
    }

    .form-page,
    .usuario-page,
    .inscricao-page {
        padding: 10px 8px 16px 8px;
        border-radius: 8px;
    }

    .form-card .card-body,
    .usuario-card .card-body,
    .inscricao-card .card-body {
        padding: 12px;
    }

    .section-box {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .section-header {
        align-items: flex-start;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .dashboard-shell .dashboard-hero h1 {
        font-size: 1.3rem;
    }

    .dashboard-shell .dashboard-hero .card-body {
        padding: 1rem;
    }

    /* input-group em duas faixas: campo inteiro em cima, botoes embaixo */
    .form-page .input-group,
    .usuario-page .input-group,
    .inscricao-page .input-group,
    .dashboard-shell .input-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px;
    }

        .form-page .input-group > .form-control,
        .form-page .input-group > .bootstrap-select,
        .form-page .input-group > .input-group-prepend,
        .form-page .input-group > .input-group-append,
        .usuario-page .input-group > .form-control,
        .usuario-page .input-group > .bootstrap-select,
        .inscricao-page .input-group > .form-control,
        .inscricao-page .input-group > .bootstrap-select,
        .dashboard-shell .input-group > .form-control,
        .dashboard-shell .input-group > .bootstrap-select {
            flex: 1 0 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            border-radius: 9px !important;
        }

        /* botoes dividem a faixa de baixo, com area de toque de 44px */
        .form-page .input-group > .btn,
        .usuario-page .input-group > .btn,
        .inscricao-page .input-group > .btn,
        .dashboard-shell .input-group > .btn {
            flex: 1 1 0 !important;
            min-width: 0;
            min-height: 44px;
            margin: 0 !important;
            border-radius: 9px !important;
        }

    /* o campo do select precisa caber o texto e abrir na largura toda */
    .form-page .bootstrap-select,
    .usuario-page .bootstrap-select,
    .inscricao-page .bootstrap-select,
    .dashboard-shell .bootstrap-select {
        width: 100% !important;
    }

        .form-page .bootstrap-select > .dropdown-toggle,
        .usuario-page .bootstrap-select > .dropdown-toggle,
        .inscricao-page .bootstrap-select > .dropdown-toggle,
        .dashboard-shell .bootstrap-select > .dropdown-toggle {
            width: 100% !important;
            min-height: 44px;
            text-align: left;
        }

        .form-page .bootstrap-select .dropdown-menu,
        .usuario-page .bootstrap-select .dropdown-menu,
        .inscricao-page .bootstrap-select .dropdown-menu,
        .dashboard-shell .bootstrap-select .dropdown-menu {
            width: 100% !important;
            min-width: 100% !important;
        }

        .bootstrap-select .dropdown-menu li a {
            padding: 10px 14px;
            white-space: normal;
        }

        .bootstrap-select .bs-searchbox .form-control {
            min-height: 44px;
        }

    /* campos e rotulos */
    .form-page .form-control,
    .usuario-page .form-control,
    .inscricao-page .form-control,
    .dashboard-shell .form-control {
        min-height: 44px;
        font-size: 15px;
    }

    .form-label-custom {
        font-size: 14px;
        margin-bottom: 5px;
    }

    /* editor: so impede de passar da largura da tela.
       Altura e itens da barra ficam como o TinyMCE define em cada campo:
       o titulo usa height 50 e o texto usa 300. */
    .mce-tinymce,
    .tox-tinymce {
        max-width: 100% !important;
    }

    /* anexos e upload */
    .dropzone .dz-preview {
        width: 100%;
        margin: 8px 0;
    }

    .file-picker {
        flex-direction: column;
        align-items: stretch;
    }

    /* modais usam a largura da tela */
    .modal-dialog.modal-xl,
    .modal-dialog.modal-1200,
    .modal-dialog.modal-1000,
    .modal-dialog.modal-800,
    .modal-dialog.modal-1900 {
        width: auto !important;
        max-width: 100% !important;
        margin: .5rem;
    }

    /* rodape: salvar em cima, ambos ocupando a linha */
    .action-footer {
        flex-direction: column-reverse;
    }

        .action-footer .btn {
            width: 100%;
            min-height: 46px;
            margin-left: 0;
        }

    /* checkbox com area de toque melhor */
    .form-check-input {
        width: 18px;
        height: 18px;
    }

    .form-check-label {
        padding-left: 4px;
    }
}

/* ==========================================================================
   Marca Abase - cabecalho, menu lateral e rodape
   Escopo: somente topbar, sidebar e footer. Telas internas nao sao afetadas.
   ========================================================================== */

:root {
    --abase-navy: #171e45;
    --abase-orange: #f2542d;
    --abase-orange-escuro: #d8431f;
}

/* --- Cabecalho -------------------------------------------------------- */
/* !important porque o tema vendor pinta a topbar por skin (.skin-blue .topbar) */
.topbar,
.skin-blue .topbar,
.skin-default .topbar,
.skin-green .topbar,
.skin-red .topbar,
.skin-purple .topbar,
.skin-megna .topbar {
    background: var(--abase-navy, #171e45) !important;
}

.topbar .top-navbar .navbar-header {
    background: transparent !important;
}

.topbar .navbar-nav > li > a,
.topbar .navbar-nav > li > a i,
.topbar .navbar-nav > li > a span {
    color: #fff !important;
}

    .topbar .navbar-nav > li > a:hover,
    .topbar .navbar-nav > li > a:focus {
        color: var(--abase-orange, #f2542d) !important;
        background: rgba(255, 255, 255, .06) !important;
    }

/* botao de sair: unica acao primaria do cabecalho */
/* o li vira flex so para centralizar o botao na altura da barra */
.topbar .navbar-nav > .nav-item-sair {
    display: flex;
    align-items: center;
}

/* seletor do vendor tem 5 classes (line-height:50px), por isso o !important aqui */
.topbar .top-navbar .navbar-nav > .nav-item > .nav-link.topbar-sair,
.topbar .nav-link.topbar-sair {
    background: var(--abase-orange, #f2542d) !important;
    color: #fff !important;
    border-radius: 5px;
    margin: 0 10px;
    padding: 0 12px !important;
    font-size: 13px !important;
    line-height: 30px !important;
    font-weight: 500;
}

    .topbar .nav-link.topbar-sair:hover,
    .topbar .nav-link.topbar-sair:focus {
        background: var(--abase-orange-escuro, #d8431f) !important;
        color: #fff !important;
    }

@media (max-width: 575.98px) {
    /* em celular sobra so o icone */
    .topbar-sair-texto {
        display: none;
    }

    .topbar .nav-link.topbar-sair {
        padding: 0 9px !important;
        margin: 0 6px;
    }
}

/* --- Menu lateral ----------------------------------------------------- */
/* so o .left-sidebar leva a cor: ele tem largura fixa (70px no modo mini).           */
/* o .scroll-sidebar e position:absolute sem largura, entao acompanha o item de 290px */
/* do hover e pintaria a coluna inteira de navy.                                      */
.left-sidebar {
    background: var(--abase-navy, #171e45) !important;
}

.scroll-sidebar,
.sidebar-nav,
#sidebarnav {
    background: transparent !important;
}

.sidebar-nav ul li a,
.sidebar-nav ul li a i {
    color: rgba(255, 255, 255, .82) !important;
}

    .sidebar-nav ul li a:hover,
    .sidebar-nav ul li a:focus,
    .sidebar-nav ul li a:hover i,
    .sidebar-nav ul li a:focus i {
        background: rgba(255, 255, 255, .06) !important;
        color: #fff !important;
    }

/* item ativo: laranja solido, sem a borda azul do vendor */
.sidebar-nav ul li a.active,
.sidebar-nav ul li a.active i,
.sidebar-nav > ul > li.active > a,
.sidebar-nav > ul > li.active > a i,
#sidebarnav > li.active > a,
#sidebarnav > li.active > a i {
    background: var(--abase-orange, #f2542d) !important;
    color: #fff !important;
    border-left: none !important;
}

/* flyout do modo mini: o vendor so alarga o <a>, sem acabamento nenhum */
.mini-sidebar .sidebar-nav #sidebarnav > li:hover > a {
    background: var(--abase-orange, #f2542d) !important;
    color: #fff !important;
    position: relative;
    z-index: 1002;
    border-radius: 0 6px 6px 0;
    /* anel claro junto da sombra para o contorno aparecer sobre fundo escuro */
    box-shadow: 4px 0 14px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .18);
}

/* --- Rodape ----------------------------------------------------------- */
.footer {
    border-top: 3px solid var(--abase-orange, #f2542d) !important;
}

/* ==========================================================================
   Alto contraste: midia em tons de cinza
   A classe .alto-contraste entra no body pelo acessibilidade.js.
   ========================================================================== */

body.alto-contraste img,
body.alto-contraste svg,
body.alto-contraste video,
body.alto-contraste canvas,
body.alto-contraste iframe,
body.alto-contraste picture {
    filter: grayscale(100%) !important;
}

/* fundos declarados em CSS nao sao <img>, entao precisam do filtro no proprio elemento */
body.alto-contraste .login-bg,
body.alto-contraste .login-hero,
body.alto-contraste [style*="background-image"] {
    filter: grayscale(100%) !important;
}

/* ==========================================================================
   Modais - padrao Abase (cabecalho navy + friso laranja)
   Regra global: vale para todos os modais, nao precisa mexer um a um.
   ========================================================================== */

.modal-content {
    border: 0;
    border-radius: .3rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .25);
    /* sem overflow:hidden aqui: cortaria o dropdown de select dentro do modal */
}

.modal-header {
    background: var(--abase-navy, #171e45) !important;
    border-bottom: 3px solid var(--abase-orange, #f2542d) !important;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
    padding: 12px 20px;
}

    .modal-header .modal-title,
    .modal-header h3,
    .modal-header h4,
    .modal-header h5 {
        color: #fff !important;
        font-weight: 600;
        margin-bottom: 0;
    }

    .modal-header .close,
    .modal-header .close span {
        color: #fff !important;
        text-shadow: none;
        opacity: .85;
    }

        .modal-header .close:hover {
            opacity: 1;
        }

.modal-footer {
    border-top: 1px solid #e9ecef;
}

.loader__figure {
    background-color: var(--abase-orange, #f2542d) !important;
    border-color: var(--abase-orange, #f2542d) !important;
}

.loader__label {
    color: var(--abase-orange, #f2542d) !important;
}

.topbar {
    box-shadow: inset 0 -3px 0 var(--abase-orange, #f2542d);
}

.skin-blue .page-titles .breadcrumb .breadcrumb-item.active {
	color: #f2542d !important;
}


.loader__figure {
    background-color: var(--abase-orange, #f2542d) !important;
    border-color: var(--abase-orange, #f2542d) !important;
}

.loader__label {
    color: var(--abase-orange, #f2542d) !important;
}


.topbar {
    box-shadow: inset 0 -3px 0 var(--abase-orange, #f2542d);
}
.skin-blue .page-titles .breadcrumb .breadcrumb-item.active {
    color: #f2542d !important;
}

.bootstrap-select > .dropdown-toggle {
    /* espaco reservado para a seta nao encostar no texto */
    padding-right: 28px;
}

    .bootstrap-select > .dropdown-toggle::after {
        position: absolute;
        top: 50%;
        right: 14px;
        margin: -1px 0 0 0;
    }

.nav-tabs.customtab2 {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 18px;
    padding: 6px;
    border: 0;
    border-bottom: 0;
    border-radius: 12px;
    background: #f1f5f9;
}

    .nav-tabs.customtab2 .nav-item {
        margin: 0;
        margin-bottom: 0;
    }

    .nav-tabs.customtab2 .nav-link {
        padding: 9px 18px;
        margin-bottom: 0;
        border: 0 !important;
        border-radius: 9px;
        background: transparent;
        color: #64748b;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        transition: background-color .15s ease, color .15s ease;
    }

        .nav-tabs.customtab2 .nav-link i {
            margin-right: 6px;
        }

        .nav-tabs.customtab2 .nav-link:hover,
        .nav-tabs.customtab2 .nav-link:focus {
            background: rgba(15, 23, 42, .05);
            color: #334155;
        }

        .nav-tabs.customtab2 .nav-link.active,
        .nav-tabs.customtab2 .nav-item.show .nav-link {
            background: var(--abase-orange, #f2542d) !important;
            color: #fff !important;
            box-shadow: 0 2px 6px rgba(242, 84, 45, .35);
        }

@media (max-width: 575.98px) {
    .nav-tabs.customtab2 {
        display: flex;
        width: 100%;
    }

        .nav-tabs.customtab2 .nav-link {
            padding: 9px 12px;
            font-size: 13px;
        }
}



/* mensagem ao lado do campo obrigatorio nao preenchido */
.campo-erro-msg {
    display: block;
    margin-top: 4px;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 600;
}

/* o tinymce esconde o textarea: a borda vai na caixa do editor */
.mce-tinymce.input-error,
.tox-tinymce.input-error {
    border: 2px solid #ff3b3b !important;
    border-radius: 6px;
}


.editor-imagem-corpo {
    overflow-x: hidden;
}

.editor-imagem-area {
    max-width: 100%;
    overflow: hidden;
}

    .editor-imagem-area img {
        display: block;
        max-width: 100%;
    }

.editor-imagem-corpo .cropper-container {
    max-width: 100% !important;
}

/* a barra de botoes quebra em vez de empurrar a largura do modal */
.editor-imagem-barra {
    flex-wrap: wrap;
    gap: 8px;
}

    .editor-imagem-barra .btn-group {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }


.bootstrap-select.input-error {
    border: 0 !important;
}

    .bootstrap-select.input-error > .dropdown-toggle {
        border: 2px solid #ff3b3b !important;
        border-radius: 6px !important;
    }


.grupo-dias {
    height: 100%;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fff;
}

.grupo-dias-titulo {
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f6;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.grupo-dias .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    margin: 0;
    padding: 0;
}

    .grupo-dias .form-check-input {
        position: static;
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        margin: 0;
    }

    .grupo-dias .form-check-label {
        margin: 0;
        color: #334155;
        font-size: 13.5px;
        line-height: 1.3;
        cursor: pointer;
    }
