:root {
    --gpp-1: #3470f5; /* Substitua pelo código da sua cor 1 */
    --gpp-2: #8147cf; /* Substitua pelo código da sua cor 2 */
    --gpp-3: #fbb65d; /* Substitua pelo código da sua cor 3 */
    --gpp-4: #ff7583; /* Substitua pelo código da sua cor 4 */
    --gpp-5: #592ace; /* Substitua pelo código da sua cor 5 */
    --gpp-6: #d49a5b; /* Substitua pelo código da sua cor 6 */
    --gpp-7: #d6587e; /* Substitua pelo código da sua cor 7 */
    --gpp-8: #f6605f; /* Substitua pelo código da sua cor 8 */
}

/* Bootstrap 5 */
:root,
[data-bs-theme=light] {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success-rgb: 25, 135, 84;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark-rgb: 33, 37, 41;
    --bs-primary-text-emphasis: #052c65;
    --bs-secondary-text-emphasis: #2b2f32;
    --bs-success-text-emphasis: #0a3622;
    --bs-info-text-emphasis: #055160;
    --bs-warning-text-emphasis: #664d03;
    --bs-danger-text-emphasis: #58151c;
    --bs-light-text-emphasis: #495057;
    --bs-dark-text-emphasis: #495057;
    --bs-primary-bg-subtle: #cfe2ff;
    --bs-secondary-bg-subtle: #e2e3e5;
    --bs-success-bg-subtle: #d1e7dd;
    --bs-info-bg-subtle: #cff4fc;
    --bs-warning-bg-subtle: #fff3cd;
    --bs-danger-bg-subtle: #f8d7da;
    --bs-light-bg-subtle: #fcfcfd;
    --bs-dark-bg-subtle: #ced4da;
    --bs-primary-border-subtle: #9ec5fe;
    --bs-secondary-border-subtle: #c4c8cb;
    --bs-success-border-subtle: #a3cfbb;
    --bs-info-border-subtle: #9eeaf9;
    --bs-warning-border-subtle: #ffe69c;
    --bs-danger-border-subtle: #f1aeb5;
    --bs-light-border-subtle: #e9ecef;
    --bs-dark-border-subtle: #adb5bd;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-color-rgb: 33, 37, 41;
    --bs-body-bg: #fff;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-emphasis-color: #000;
    --bs-emphasis-color-rgb: 0, 0, 0;
    --bs-secondary-color: rgba(33, 37, 41, 0.75);
    --bs-secondary-color-rgb: 33, 37, 41;
    --bs-secondary-bg: #e9ecef;
    --bs-secondary-bg-rgb: 233, 236, 239;
    --bs-tertiary-color: rgba(33, 37, 41, 0.5);
    --bs-tertiary-color-rgb: 33, 37, 41;
    --bs-tertiary-bg: #f8f9fa;
    --bs-tertiary-bg-rgb: 248, 249, 250;
    --bs-heading-color: inherit;
    --bs-link-color: #0d6efd;
    --bs-link-color-rgb: 13, 110, 253;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #0a58ca;
    --bs-link-hover-color-rgb: 10, 88, 202;
    --bs-code-color: #d63384;
    --bs-highlight-color: #212529;
    --bs-highlight-bg: #fff3cd;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
    --bs-form-valid-color: #198754;
    --bs-form-valid-border-color: #198754;
    --bs-form-invalid-color: #dc3545;
    --bs-form-invalid-border-color: #dc3545;
    --bs-modal-color: #000000 !important;
    --bs-popover-bg: #000000 !important;
    --bs-popover-body-color: #ffffff !important;
    --badge-border-color: #808080;
    --badge-text-color: #000;
}

[data-bs-theme=dark] {
    color-scheme: dark;
    --bs-body-color: #dee2e6;
    --bs-body-color-rgb: 222, 226, 230;
    --bs-body-bg: #212529;
    --bs-body-bg-rgb: 33, 37, 41;
    --bs-emphasis-color: #fff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(222, 226, 230, 0.75);
    --bs-secondary-color-rgb: 222, 226, 230;
    --bs-secondary-bg: #343a40;
    --bs-secondary-bg-rgb: 52, 58, 64;
    --bs-tertiary-color: rgba(222, 226, 230, 0.5);
    --bs-tertiary-color-rgb: 222, 226, 230;
    --bs-tertiary-bg: #2b3035;
    --bs-tertiary-bg-rgb: 43, 48, 53;
    --bs-primary-text-emphasis: #6ea8fe;
    --bs-secondary-text-emphasis: #a7acb1;
    --bs-success-text-emphasis: #75b798;
    --bs-info-text-emphasis: #6edff6;
    --bs-warning-text-emphasis: #ffda6a;
    --bs-danger-text-emphasis: #ea868f;
    --bs-light-text-emphasis: #f8f9fa;
    --bs-dark-text-emphasis: #dee2e6;
    --bs-primary-bg-subtle: #031633;
    --bs-secondary-bg-subtle: #161719;
    --bs-success-bg-subtle: #051b11;
    --bs-info-bg-subtle: #032830;
    --bs-warning-bg-subtle: #332701;
    --bs-danger-bg-subtle: #2c0b0e;
    --bs-light-bg-subtle: #343a40;
    --bs-dark-bg-subtle: #1a1d20;
    --bs-primary-border-subtle: #084298;
    --bs-secondary-border-subtle: #41464b;
    --bs-success-border-subtle: #0f5132;
    --bs-info-border-subtle: #087990;
    --bs-warning-border-subtle: #997404;
    --bs-danger-border-subtle: #842029;
    --bs-light-border-subtle: #495057;
    --bs-dark-border-subtle: #343a40;
    --bs-heading-color: inherit;
    --bs-link-color: #6ea8fe;
    --bs-link-hover-color: #8bb9fe;
    --bs-link-color-rgb: 110, 168, 254;
    --bs-link-hover-color-rgb: 139, 185, 254;
    --bs-code-color: #e685b5;
    --bs-highlight-color: #dee2e6;
    --bs-highlight-bg: #664d03;
    --bs-border-color: #495057;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
    --bs-form-valid-color: #75b798;
    --bs-form-valid-border-color: #75b798;
    --bs-form-invalid-color: #ea868f;
    --bs-form-invalid-border-color: #ea868f;
    --bs-modal-color: #ffffff !important;
    --bs-popover-bg: #ffffff;
    --bs-popover-body-color: #000000 !important;
    --badge-border-color: #808080;
    --badge-text-color: #fff;
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}
body {
    background-image: url("../images/background_tecn.jpg") !important;
    background-size: cover !important; /* Para cobrir toda a área */
    background-repeat: no-repeat !important; /* Para evitar a repetição da imagem */
    background-attachment: fixed !important;
    color: white !important;
}
header {
    height: 50px !important;
    text-align: center !important;
}
main {
    height: calc(100% - 100px) !important; /* Altura da área central (100% menos altura da barra de título e do rodapé) */
    overflow-y: auto !important;
}

.content {
    padding: 10px !important;
    padding-top: 40px !important;
}

footer {
    position: fixed !important;
    height: 50px !important;
    width: 100% !important;
    bottom: 0 !important;
    text-align: center !important;
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
    color: black !important;
}

footer > p {
    margin-top: 10px !important;
}

.popover-body {
    padding: 0.3rem 1rem !important;
}

button.btn-permissao {
    height: 75px;
    width: 105px;
    margin: 3px 1px;
    text-align: center;
    padding: 7px 0;
}

button.btn-permissao > div.div-botao-permissao {
    height: 40px;
    width: 100%;
}

button.btn-permissao > div.div-botao-permissao img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

button.btn-permissao span {
    font-size: 15px;
}

.div-foto {
    border-radius: 4px;
    border: 1px #c3c3c3 solid;
    cursor: pointer;
    text-align: center;
}

.div-foto img {
    width: 100%;
    object-fit: contain;
}

@media screen and (max-width: 600px) {
    .div-foto img {
        width: auto;
        height: 20vh;
        object-fit: contain;
    }

    .btn > span.sp-button {
        display: none;
    }
}

.img-foto {
    max-width: 100%;
    height: auto;
    max-height: 169px;
}

.div-botoes-foto {
    margin: 5px 0 !important;
}

a.controls {
    min-width: 50px !important;
}

.oculto {
    display: none;
}

.municipio {
    fill: #ccc;
}

.municipio:hover {
    fill: #0f5132;
}

.miw-55 {
    min-width: 55px !important;
}

.cl-red {
    color: red;
}

.cl-green {
    color: green;
}


.cl-blue {
    color: blue;
}


.cl-yellow {
    color: yellow;
}

div.card-header.solicitacao {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

div.card-header.solicitacao div:first-child {
    flex-grow: 1;
}

.ml-5 {
    margin-left: 3px;
}

.ml-11 {
    margin-left: 11px;
}

.tabela-agendamentos tr:nth-child(odd) {
    font-size: small;
}

.tabela-agendamentos tr:nth-child(even) {
    background-color: #f8f8f8;
    font-weight: bold;
    border-bottom: solid 1px #ccc;
}

.concedido {
    color: green !important;
}

.negado {
    color: red !important;
}

button[aria-expanded="false"].accordion-button div.grid-resumo {
    width: 100%;
}

button[aria-expanded="true"].accordion-button div.grid-resumo {
    display: none;
}

button.accordion-button label {
    cursor: pointer;
}

div.accordion-collapse.collapse.show > div.accordion-body {
    border: 1px solid rgba(13, 110, 253, 0.25) !important;
}

.exibir-fullscreen {
    z-index: 1100 !important;
    position: fixed !important;
    top: 0 !important;;
    left: 0 !important;;
    width: 100% !important;
    height: 100% !important;
}

.btn-xs {
    margin-left: 5px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px
}

#geoLocalizacao input {
    max-width: 40vw;
    cursor: default;
    background-color: light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3));
    border-color: rgba(118, 118, 118, 0.3);
    border-radius: 5px;
    text-align: center;
}

.grid-resumo {
    display: grid;
    grid-template-columns: min-content 1fr;
}

.grid-resumo div:nth-child(odd) {
    display: flex;
    margin: 3px 3px 0 0;
}

.grid-resumo div:nth-child(even) {
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.grip-column-2 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.btn-remover {
    float: right;
    margin-left: 15px;
    margin-right: 15px;
    height: max-content;
}

.text-justify {
    text-align: justify;
}

.mr-3 {
    margin-right: 3px;
}

.mr-5 {
    margin-right: 5px;
}

.pr-0 {
    padding-right: 0;
}

.btn-top {
    position: relative;
    top: 31px;
}

@media (max-width: 992px) {
    .btn-top {
        top: 7px;
    }
}

.btn-top-all {
    position: relative;
    top: 31px;
}

.table_component {
    overflow: auto;
    width: 100%;
}

.table_component table {
    border: 1px solid #dededf;
    height: 100%;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 1px;
    text-align: left;
}

.table_component caption {
    caption-side: top;
    text-align: left;
}

.table_component th, td {
    padding: 0 5px;
}

.table_component thead tr {
    border: 1px solid #dededf;
    background-color: #000000 !important;
    color: #ffffff;
}

.table_component tbody tr:nth-child(odd) {
    border: 1px solid #dededf;
    background-color: #dededf;
    color: #000000;
}

.table_component tbody tr:nth-child(even) {
    border: 1px solid #dededf;
    background-color: #ffffff;
    color: #000000;
}

.table_component tbody tr:hover {
    cursor: pointer;
    background-color: #f1f1f1;
}

.input-coordenada {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
}

.input-coordenada:hover, .input-coordenada:focus {
    outline: none;
}

.hidden {
    display: none;
}

/* ------ ICONE DO AGUARDE ------ */
.lds-facebook {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-facebook > span {
    font-size: 18px;
    color: white;
}
.lds-facebook div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #fff;
    animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}
@keyframes lds-facebook {
    0% {
        top: 8px;
        height: 64px;
    }
    50%, 100% {
        top: 24px;
        height: 32px;
    }
}

/* EFEITO DO ICONE DE NOTIFICACAO */
.notificar {
    animation: swing 1s ease-in-out infinite;
    transform-origin: top center; /* Define o ponto de rotação no topo do sino */
}

@keyframes swing {
    0% {
        transform: rotate(0deg);  /* Posição inicial */
    }
    25% {
        transform: rotate(-15deg); /* Movimento para a esquerda */
    }
    50% {
        transform: rotate(0deg);   /* Retorna ao centro */
    }
    75% {
        transform: rotate(15deg);  /* Movimento para a direita */
    }
    100% {
        transform: rotate(0deg);   /* Retorna ao centro */
    }
}

/* LISTA DO BATE-PAPO */
.contact-card {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}
.contact-photo {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin-right: 10px;
}

/* TELA DA CONVERSA DO BATE-PAPO */
.chat-container {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 10px;
    background-color: #fff;
    border-radius: 5px;
    height: 60vh;
}

.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.message.sent {
    align-self: flex-end;
    background-color: #dcf8c6;
    color: #000000;
    border: 1px solid #ddd;
}

.message.received {
    align-self: flex-start;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ddd;
}

.input-container {
    padding: 10px;
    display: flex;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.input-container button {
    padding: 10px;
    margin-left: 10px;
    border: none;
    background-color: #34b7f1;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
}

/* TíTULO DA CONVERSA */
.conversa-titulo {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-bottom: 5px;
}

.conversa-titulo span {
    background-color: rgba(255, 255, 255, 0.31);
    color: #fff;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    padding-top: 2px;
}

.maiusculo {
    text-transform: uppercase;
}

.minusculo {
    text-transform: lowercase;
}

.two-line {
    width: 100%;
    margin-right: 15px;
}

.two-line > * {
    display: block;
}

.two-line-last-center {
    width: 100%;
    margin-right: 15px;
}

.two-line-last-center > * {
    display: block;
}

.two-line-last-center > :last-child {
    margin-top: 5px;
    text-align: center;
}

.duas-colunas {
    display: flex;
    align-items: center;
}

.duas-colunas > .left {
    margin-right: 10px;
}

.duas-colunas > .right {
    flex-grow: 1;
}

.btn > .span-pdf::before {
    content: '\f1c1'; /* Substitua pelo caminho da sua imagem */
    font-family: 'Font Awesome 5 Free';
    display: inline-block; /* Garante que seja tratado como um elemento em linha */
    width: 16px; /* Ajuste para o tamanho do ícone */
    height: 16px; /* Ajuste para o tamanho do ícone */
    color: red;
}

.btn > .span-imagem::before {
    content: '\f1c5'; /* Substitua pelo caminho da sua imagem */
    font-family: 'Font Awesome 5 Free';
    display: inline-block; /* Garante que seja tratado como um elemento em linha */
    width: 16px; /* Ajuste para o tamanho do ícone */
    height: 16px; /* Ajuste para o tamanho do ícone */
    color: green;
}

.badge {
    border: solid 1px var(--badge-border-color);
    border-radius: 15px;
    color: var(--badge-text-color);
    margin-left: 5px;
}

#spanMatriculas {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    background-color: white;
    color: black;
}

/* VACINAS NA FICHA DA PESSOA LOGADA */
.accordion-body div.row.item  {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    border: solid 1px #ccc;
    border-radius: 5px;
    padding: 0 5px 11px;
}

.accordion-body div.row.item > * {
    margin-top: 0 !important;
}

.accordion-body div.row.item:nth-child(odd) { /* Labels ímpares */
    background-color: #f2f2f2;
}

.accordion-body div.row.item:nth-child(even) { /* Labels pares */
    background-color: #ffffff;
}

li button[id^="person-"].btn-outline-light:hover {
    background-color: #ffffffa3 !important;
    border-color: #ffffffa3 !important;
}

/* Ícone de gravação da Videochamada*/
.recording-indicator {
    position: absolute;
    top: 62px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    z-index: 9999;
}
.recording-icon {
    width: 20px;
    height: 20px;
    background-color: #d32f2f;
    border-radius: 50%;
    animation: pulse 1.2s infinite ease-in-out;
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.5);
}
.recording-tooltip {
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    position: absolute;
    top: 40px;
    right: 0;
    white-space: nowrap;
    display: none;
}
.recording-indicator:hover .recording-tooltip {
    display: block;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }
    70% {
        transform: scale(1.2);
    }
}
