﻿:root {
    --cor-principal: #FDB913;
    --cor-principal-light: #FED672;
    --cor-principal-lightest: #FFEDC2;
    --cor-principal-dark: #ffb500;
    --cor-secundaria: black;
    --cor-secundaria-dark: darkgrey;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
}

p,
div {
    font-family: 'Open Sans', sans-serif;
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
    background-color: #f6f6f6;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    /*max-width: 280px;*/
    /*Alterado pelo luis para os elementos serem responsivos, e nao com tamanho fixo*/
}

/* Especificado pelo usuario*/
.field-validation-error {
    color: #B72E22;
}

.fundo-verde {
    border: 1px solid;
    border-collapse: separate;
    border-color: darkgreen;
    border-radius: 5px;
}

.navbar-nav>li>a {
    font-size: 15px;
    font-weight: 500;
    color: black;
}

.lista-menu-direito>li {
    padding: 3px 10px;
}

.select-dropdown-remarcar {
    width: 50%;
    /* Define a largura do dropdown como 100% */
}

.Incremental form {
    margin-bottom: 4px;
}

.datetimepicker-general .input-group-addon {
    cursor: pointer;
}

.datetimepicker-general .datetimepicker-input {
    cursor: pointer;
}

.typeahead {
    background-color: #fff;
}

.typeahead:focus {
    border: 2px solid #0097cf;
}

.tt-query {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
    color: #999
}

.tt-menu {
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    z-index: 1100;
}

/* O dropdown de sugestões do typeahead estava sendo (1) recortado pelo
   overflow do <form class="container-fluid"> e (2) coberto pela linha de
   indicadores, que vem depois no DOM. Liberamos o overflow do form e
   elevamos toda a linha de filtros acima do bloco de indicadores. */
#dropdowns {
    position: relative;
    z-index: 1100;
}

#form-drop {
    overflow: visible;
}

.tt-suggestion {
    padding: 3px 20px;
    font-size: 12px;
    line-height: 24px;
}

.tt-suggestion:hover {
    cursor: pointer;
    color: #fff;
    background-color: #0097cf;
}

.tt-suggestion.tt-cursor {
    color: #fff;
    background-color: #0097cf;
}

.tt-suggestion p {
    margin: 0;
}

.gist {
    font-size: 14px;
}

.tab-pane {
    border-left: 1.2px solid #ddd;
    border-right: 1.2px solid #ddd;
    border-bottom: 1.2px solid #ddd;
    border-top: 1.2px solid #ddd;
    border-radius: 0px 0px 5px 5px;
    padding: 10px;
}

.nav-tabs>li {
    margin-bottom: -3px;
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover,
.nav-tabs>li.active>a:focus {
    border: 1.2px solid #ddd;
    border-bottom-color: transparent;
}

div.familia-do-dia .radio label {
    padding-left: 10px;
}

div.familia-do-dia .radio label input {
    margin-left: -15px;
}

.separator {
    margin-top: 5px;
}

.avatar {
    vertical-align: middle;
    /*width: 50%;
    height: 50%;*/
    /*border-radius: 10%;*/
}

.back-alert {
    background-color: #ffeeba;
}

select option:disabled {
    background-color: lightgray;
}

.small-padding-left {
    padding-left: 2px;

}

.small-padding-right {
    padding-right: 2px;
}

.small-margin-top {
    margin-top: 4px;
}

.vl-right {
    border-right: 1px gray;
}

.vl-left {
    border-left: 1px gray;
}

.green-tooltip+.tooltip>.tooltip-inner {
    background-color: #5cb85c;
}

.green-tooltip+.tooltip>.tooltip-arrow {
    border-bottom-color: #5cb85c;
}

.green-tooltip+.tooltip>.tooltip-arrow {
    border-top-color: #5cb85c;
}

.red-tooltip+.tooltip>.tooltip-inner {
    background-color: #f00;
}

.red-tooltip+.tooltip>.tooltip-arrow {
    border-bottom-color: #f00;
}

.btn-instituto {
    background-color: #F04B6D;
    color: white;
    font-weight: 500;
}

.btn-instituto-cancel {
    background-color: white;
    color: #F04B6D;
    border-color: #F04B6D;
    font-weight: 500;
}

.text-instituto {
    color: #F04B6D;
    font-weight: 500;
}

.text-instituto-table {
    color: #F04B6D;
    font-weight: 100;
    font-size: 12px;
}

.icon-instituto {
    color: #F04B6D;
}

.text-farol-verde {
    color: #00cc00;
}

.text-farol-amarelo {
    color: #ffcc00;
}

.text-farol-vermelho {
    color: #ff0000;
}

.back-farol-verde {
    background-color: #00cc00;
    color: black;
}

.back-farol-amarelo {
    background-color: #ffff00;
    color: black;
}

.back-farol-vermelho {
    background-color: #ff0000;
    color: white;
}

.container,
.container-fluid-new,
.container-sm,
.container-md,
.container-lg,
.container-xl {
    width: 100%;
    /*padding-right: 15px;
    padding-left: 15px;*/
    margin-right: auto;
    margin-left: auto;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    margin-top: -10px;
    width: 100%
}

.shadow-dash {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.col-xl-dash-3 {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

.card-dashboard {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.card-body-dashboard {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.schedule-cards {
    display: flex;
    margin-top: 10px;
    width: 100%;
}

.card {
    display: flex;
    flex-direction: row;
    justify-content: start;
    flex: 100%;
    margin-bottom: 10px;
    border-radius: 7px;
    box-shadow: 0px 10px 20px -20px;
}

.horizontal-container-clean {
    display: flex;
    flex-direction: row;
}

.horizontal-container2-clean {
    display: flex;
    flex-direction: row;
    max-height: 10%;
}

.vertical-container2-clean {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 15px 0 15px;
}

.vertical-container3-clean {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 5px 0 5px;
}

.vertical-container3-clean:nth-child(even) .card-agendamento {
    background-color: #f2f2f2;
}

.fixed-container {
    display: flex;
}

.times-selector {
    flex: 0 0 auto;
    width: 200px;
    /* Adjust width as needed */
    position: sticky;
    top: 0;
    background-color: white;
    /* Match background to page */
    z-index: 500;
    text-align: center;
    justify-content: center;
}

.dropdown-container {
    position: relative;
    z-index: 1000;
}

.overflow-cards {
    max-height: calc(100vh - 59px);
    overflow: auto;
    flex-grow: 1;
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-cards-journey {
    max-height: calc(100vh - 59px - 77px);
    overflow: auto;
}

.family-cards-container {
    padding: 1rem 15px 0 15px;
    /*overflow-x: auto;*/
    height: 100%;
    width: 100%
}

.technician-cards-container {
    padding: 1rem 25px 100px 10px;
    width: 100%;
    overflow-y: auto;
}

.schedule-cards-container {
    padding: 1rem 15px 0 15px;
    /*overflow-x: auto;*/
    height: 100%;
    width: 100%
}

.auto-hide-payroll {
    content-visibility: auto;
    contain-intrinsic-size: 168.4px;
}

.family-card {
    display: flex;
    border-radius: 5px;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .3);
    border: #80808029 1px solid;
}

.AgendaDia-card {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    border-radius: 5px;
    flex-direction: column;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .3);
    border: #80808029 1px solid;
}

.AgendaDia-warning-card {
    display: flex;
    background-color: #f5e1c4;
    flex-wrap: wrap;
    margin-top: 10px;
    border-radius: 5px;
    flex-direction: column;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .3);
    border: #80808029 1px solid;
}

.technician-card {
    display: flex;
    border-radius: 5px;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .3);
    border: #80808029 1px solid;
}

.family-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.technician-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    height: 100%;
}

.schedule-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow: visible;
}

.filter-container {
    /*  padding-left: 30px;
    padding-right: 30px;*/
    padding-top: 0.4rem;
    min-width: 270px;
    max-width: 270px;
    height: calc(100vh - 59px);
    background: #f7f7f7;
}

.family-card-header {
    padding-top: 5px;
    padding-bottom: 5px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.family-card-header h6 {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 0;
}

.family-card-header input,
.family-card-header p {
    font-weight: 300;
    margin-bottom: 0;
    height: auto;
    /*margin-top: 10px;*/
}

.technician-card-header {
    padding-top: 5px;
    padding-bottom: 5px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.technician-card-header h6 {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 0;
}

.technician-card-header input,
.technician-card-header p {
    font-weight: 300;
    margin-bottom: 0;
    height: auto;
    /*margin-top: 10px;*/
}

.family-card-container {
    width: 100%;
    /*    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 10px;
    box-shadow: -8px -8px 15px rgba(255,255,255,.7), 5px 5px 5px rgba(0,0,0, .3);
    background-color: #ececec;*/
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}


#style-1::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

#style-1::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

#style-1::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #555;
}

.align-items-center {
    -ms-flex-align: center !important;
    align-items: center !important;
}

.main-button {
    display: flex;
    flex-direction: column;
    padding: 10px 20px 10px 20px;
    justify-content: center;
    text-align: center;
    align-items: center;
    font-weight: 500;
    transition: .3s;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
    /*no selection inside text*/
}

.main-button:disabled {
    pointer-events: none;
    opacity: 0.4;
}


.dp06 {
    background-color: #f7f7f7;

}


.horario-box {
    display: flex;
    flex-direction: row;
    padding: 10px 20px 10px 20px;
    justify-content: center;
    text-align: center;
    align-items: center;
    font-weight: 500;
    transition: .3s;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
    /*no selection inside text*/
}

/*.main-color {
    color: #f7f7f7;
    
}*/

.scrollbar {
    /*margin-left: 30px;*/
    float: left;
    height: 100%;
    /*width: 65px;*/
    /*background: #F5F5F5;*/
    overflow-y: scroll;
    margin-bottom: 0px;
    margin-right: 15px;
    max-height: calc(100vh - 59px);
    /*overflow: auto;*/
    flex-grow: 1;
    position: relative;
}

.scrollbar-horizontal {
    /*margin-left: 30px;*/
    float: left;
    height: 100%;
    /*width: 65px;*/
    /*background: #F5F5F5;*/
    overflow-x: scroll;
    margin-bottom: 25px;
    margin-right: 15px;
    margin-left: 15px;
    max-height: calc(100vh - 59px);
    /*overflow: auto;*/
    flex-grow: 1;
    position: relative;
}

.scrollbar-both {
    float: left;
    max-height: calc(100vh - 109px);
    max-width: 100vw;
    overflow: auto;
    margin-bottom: 25px;
    margin-right: 15px;
    margin-left: 15px;
    flex-grow: 1;
    position: relative;
}


.card-info {
    display: flex;
    flex-direction: column;
    margin-right: 10%;
}

.card-info-line {
    display: flex;
    flex-direction: row;
}

.card-info-title {
    font-size: 16px;
    font-weight: 600;
    margin-right: 4px;
}

.card-info-text {
    font-size: 14px;
    margin-top: 2px;
}

.mw-300 {
    min-width: 300px;
}

.img-exame {
    max-width: 100%;
    max-height: 100px
}

.indicador-number {
    font-weight: 600;
    vertical-align: middle !important;
    text-align: center;
}

.indicador-text {
    vertical-align: middle !important;
}

.indicador-group {
    font-weight: 600;
    vertical-align: middle !important;
}

.loader {
    border: 5px solid lightgray;
    border-top: 5px solid;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.d-none {
    display: none !important;
}

.switch-holder {
    display: flex;
    border-radius: 10px;
    /*margin-bottom: 30px;*/
    /*box-shadow: inset 5px 5px 5px rgba(0,0,0, .3);*/
    justify-content: space-between;
    align-items: center;
}

.switch-label {
    width: auto;
}

.switch-label i {
    margin-right: 5px;
}

.switch-toggle {
    height: 40px;
}

.switch-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    z-index: -2;
}

.switch-toggle input[type="checkbox"]+label {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 40px;
    border-radius: 20px;
    margin: 0;
    cursor: pointer;
}

.switch-toggle input[type="checkbox"]+label::before {
    position: absolute;
    content: 'Inicio';
    font-size: 13px;
    text-align: center;
    line-height: 25px;
    top: 8px;
    left: 8px;
    color: white;
    width: 40px;
    height: 25px;
    border-radius: 20px;
    background-color: #383838;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .25);
    transition: .3s;
}

.switch-toggle input[type="checkbox"]:checked+label::before {
    left: 50%;
    content: 'Fim';
    color: #fff;
    background-color: #383838;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .25);
}

.vehicle-toggle input[type="checkbox"]+label::before {
    content: 'OFF';
}

.vehicle-toggle input[type="checkbox"]:checked+label::before {
    content: 'ON';
}

.numberCircle {
    width: 30px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    border: 1px solid currentColor;
    color: black;
}

.secondary-text {
    font-weight: 1000;
}

.hidden-selectpicker {
    display: none;
}

.journey-card-skeleton {
    background-color: #383838;
    overflow: hidden;
}

.journey-skeleton-animation {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, rgba(56, 56, 56, 0.95) 0%, rgba(89, 89, 89, 0.8) 50%, rgba(56, 56, 56, 0.95) 100%);
    width: 350px;
    z-index: 1;
    border-radius: inherit;
    animation: journey-skeleton-loading 2s ease-in-out infinite forwards;
}

.vh-70 {
    height: 70vh;
}

.navbar {
    -webkit-box-shadow: 0px 5px 21px 0px rgba(209, 209, 209, 1);
    -moz-box-shadow: 0px 5px 21px 0px rgba(209, 209, 209, 1);
    box-shadow: 0px 5px 21px 0px rgba(209, 209, 209, 1);
    background-color: white;
}

.form-control:focus {
    border-color: #ef4365;
    /* Light pink; adjust the color as needed */
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
    /* Light pink glow */
}

.selected-option {
    background-color: #ef4365 !important;
    /* Light pink; adjust as needed */
    color: white;
    /* Adjust text color as needed */
}

.select2-pink-theme .select2-selection {
    background-color: #ef4365;
    /* Pink background */
    color: white;
    /* White text */
}


/* Style the label to be inline-flex */
.switch-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Hide the default checkbox */
.switch-checkbox {
    display: none;
}

/* Create the switch */
.switch-slider {
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    position: relative;
    transition: background-color 0.2s;
}

/* Create the circle inside the switch */
.switch-slider::before {
    content: "";
    position: absolute;
    width: 23px;
    height: 23px;
    background-color: white;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: transform 0.2s;
}

/* Move the circle when the checkbox is checked */
.switch-checkbox:checked+.switch-slider {
    background-color: #f04b6d;
}

.switch-checkbox:checked+.switch-slider::before {
    transform: translateX(25px);
}

.search-bar {
    border-radius: 25px;
    height: 40px;
    padding-left: 15px;
    margin-top: 18px;
}

.checklist {
    margin: 10px;
}

.checklist ul {
    list-style: none;
    padding: 0;
}

.checklist li {
    margin-bottom: 5px;
    position: relative;
}

.checklist input[type="checkbox"] {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    appearance: none;
    border: 2px solid #ccc;
    display: inline-block;
    position: relative;
}

.checklist input[type="checkbox"]:checked::before {
    content: '✔';
    color: #EF4365;
    font-size: 16px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.checklist label {
    font-size: 16px;
    vertical-align: middle;
}

.card-agendamento {
    min-width: 500px;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    padding: 4px;
    margin-bottom: 6px;
    /* espaçamento vertical entre cards */
}

.card-agendamento form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* espaço entre blocos do formulário */
}

.card-agendamento .d-flex {
    gap: 10px;
    /* espaço lateral entre itens flexíveis */
}

.card-agendamento .form-control,
.card-agendamento .form-check,
.card-agendamento .form-select {
    margin: 0 2px;
    /* leve respiro horizontal */
}

.time-slot {
    min-width: 60px;
    min-height: 118px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-weight: bold;
    margin-bottom: 5px;
    /* espaçamento vertical entre cards */

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.calendar-header {
    display: flex;
    justify-content: center;
}

.calendar-wrapper {
    height: calc(100vh - 140px);
    /* Ajuste com base na altura do header real */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Segunda a Sexta */
    gap: 12px;
    height: 100%;
    width: 100%;
}

.calendar-day {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-day.empty {
    background: transparent;
    border: none;
}

.day-number {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.agendamentos-list {
    overflow-y: auto;
    flex-grow: 1;
}

.agendamento-item {
    font-size: 1rem;
    margin-bottom: 5px;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

:root {
    --dash-card-height: 255px;
    --dash-title-height: 38px;
}

.card .card-title {
    font-weight: 600;
    text-align: center;
    margin: 0 0 6px;
    height: var(--dash-title-height);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acesso-title-toggle {
    cursor: pointer;
    user-select: none;
}

.card.shadow-sm .card-body {
    padding: 8px 10px 6px;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
}

.chart-metric {
    height: var(--dash-card-height);
    display: flex;
}

.chart-metric .card-body {
    justify-content: flex-start;
    flex: 1 1 auto;
    height: 100%;
}

.chart-metric .chart-box {
    flex: 1 1 auto;
}

.acesso-wrapper {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acesso-wrapper canvas {
    max-width: 100%;
}

.autonomia-wrapper {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autonomia-wrapper canvas {
    max-width: 100%;
}

.chart-row {
    flex: 1 1 auto;
}

.chart-row canvas {
    flex: 1 1 auto;
}

.chart-metric .dignidade-pane,
.chart-metric #vuln-donuts {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
}

#alertas-beneficios {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.chart-box {
    display: block;
    width: 100%;
    height: auto;
}

.chart-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.container-fluid {
    overflow-x: hidden;
    padding-right: 15px;
    padding-left: 15px;
}

.select-wrap {
    position: relative;
    display: inline-block;
}

.clean-select {
    -webkit-appearance: none;
    appearance: none;
    background-color: #f8f9fb;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: .45rem 2rem .45rem .75rem;
    margin-right: 1rem;
    font-size: 1.1rem;
    line-height: 1.2;
    min-width: 200px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    color: #212529;
    text-transform: capitalize;
}

.clean-select:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.select-wrap::after {
    content: "▾";
    position: absolute;
    right: 1.6rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: .85rem;
    color: #6c757d;
}

.clean-input {
    background-color: #f8f9fb;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: .45rem .75rem;
    margin-right: 1rem;
    font-size: 1.1rem;
    line-height: 1.2;
    min-width: 200px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
    color: #212529;
}

.clean-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.multiselect-wrap {
    position: relative;
    display: inline-block;
    background-color: #f8f9fb;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: .25rem 2rem .25rem .5rem;
    min-height: 38px;
}

.clean-select-multiple {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    outline: none;
    min-width: 240px;
    min-height: 28px;
}

.multiselect-wrap .ms-placeholder {
    position: absolute;
    left: .6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: .9rem;
    pointer-events: none;
}

.multiselect-wrap .ms-caret {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: .85rem;
    pointer-events: none;
}

.dignidade-vuln-wrapper {
    height: auto;
}

.vuln-donuts-grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 110px);
    /* força 4 itens na primeira linha */
    gap: 4px 4px;
    /* gap ainda menor conforme pedido */
    align-content: start;
    justify-content: center;
    /* centraliza o grid dentro do card */
    justify-items: center;
    padding: 4px 2px 2px;
    max-width: calc((110px * 4) + (4px * 3));
    /* impede que caibam 5 ou 6 na mesma linha */
    margin-left: auto;
    margin-right: auto;
}

#vuln-donuts.vuln-donuts-grid:has(.vuln-donut:nth-child(7)):after {
    content: '';
    display: none;
}

@media (min-width: 992px) {
    .vuln-donuts-grid.vuln-seven .vuln-donut:nth-child(5) {
        grid-column-start: auto !important;
    }
}

.vuln-donut {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 110px;
    /* largura fixa para evitar esticar 1fr e aumentar espaços */
    max-width: 110px;
    padding: 2px 2px 4px;
}

.vuln-donut-chart {
    position: relative;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vuln-donut canvas {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
}

.vuln-donut-center {
    position: absolute;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.vuln-donut-name {
    margin-top: 2px;
    font-size: 1rem;
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
    min-height: 2.1em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#vuln-donuts.vuln-donuts-grid {
    gap: 4px 4px;
}

@media (max-width: 991.98px) {
    .vuln-donuts-grid {
        grid-template-columns: repeat(3, 110px);
        max-width: calc((110px * 3) + (4px * 2));
    }
}

@media (max-width: 575.98px) {
    .vuln-donuts-grid {
        grid-template-columns: repeat(2, 110px);
        max-width: calc((110px * 2) + 4px);
    }
}

.vuln-donuts-grid.vuln-seven {
    /* classe ainda pode existir via JS, mas não altera layout agora */
}

.dignidade-title-toggle {
    cursor: pointer;
    user-select: none;
}

.autonomia-title-toggle {
    cursor: pointer;
    user-select: none;
}

.desenvolvimento-title-toggle {
    cursor: pointer;
    user-select: none;
}

.dignidade-pane {
    flex: 1 1 auto;
}

.desenv-card {
    background: #f8f9fa;
}

.desenvolvimento-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

@media (max-width: 575.98px) {

    .dignidade-vuln-wrapper {
        min-height: 240px;
        flex-direction: column !important;
    }

    #dignidade-bar-wrapper {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100%;
    }
}

#secao-alertas .card-body {
    display: flex;
    flex-direction: column;
}

#secao-alertas {
    font-size: 1rem;
}

#secao-alertas table {
    font-size: 1.3rem;
}

#secao-alertas .badge {
    font-size: 1rem;
}

#secao-alertas td,
#secao-alertas th {
    padding: 4px 8px;
}