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

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

p {
    color: #76777a;
    font-weight: bold;
}

p2 {
    color: #76777a;
    font-size: 12px;
}

li {
    list-style: none;
}

h1 {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #05416a;
}

h2 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #05416a;
}

h3 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: #05416a;
}

h4 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: #05416a;
}

h5 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 0.4rem;
    color: #05416a;
}

h6 {
    font-size: 1.50rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 0.3rem;
    color: #05416a;
}

.mini-title {
    color: #76777a;
    font-weight: bold;
}

.container {
    margin-top: 20px;
    padding: 0 30px;
}

.wrapper {
    display: flex;
    height: 100%;
}

main {
    transition: all 0.35s ease-in-out;
    margin-top: 65px;
    min-height: 100%;
    width: 100%;
    padding-left: 70px;
    overflow: hidden;
}

.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#sidebar {
    text-align: left;
    width: 70px;
    min-width: 70px;
    transition: all .25s ease-in-out;
    background-color: #05416a;
    flex-direction: column;
    overflow-y: hidden;
    position: fixed;
    top: 64px;
    left: 0;
    height: 100vh;
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

#sidebar.expand,
#sidebar:hover {
    width: 270px;
    min-width: 240px;
    overflow-y: auto;
}

#sidebar.expand::-webkit-scrollbar,
#sidebar:hover::-webkit-scrollbar {
    width: 6px;
}

#sidebar.expand::-webkit-scrollbar-track,
#sidebar:hover::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar.expand::-webkit-scrollbar-thumb,
#sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
}

#sidebar.expand::-webkit-scrollbar-thumb:hover,
#sidebar:hover::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar .sidebar-logo,
#sidebar a.sidebar-link span {
    display: none;
}

#sidebar:hover .sidebar-logo,
#sidebar:hover a.sidebar-link span {
    display: inline;
}

.sidebar-nav {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    padding-bottom: 2rem;
    max-height: calc(100vh - 64px);
}

a.sidebar-link {
    padding: .7rem 1.26rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.3rem;
    margin-right: .75rem;
    transition: transform 0.3s ease;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #fff;
}

.sidebar-item {
    position: relative;
}

.sidebar-item.has-dropdown .sidebar-dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    background-color: #05416a;
    padding: 0;
    min-width: 15rem;
    margin-left: 0;
}

.sidebar-item.has-dropdown.open .sidebar-dropdown {
    max-height: 500px;
    opacity: 1;
    margin-left: 1.5rem;
}

.sidebar-dropdown .sidebar-item {
    border-left: 3px solid transparent;
}

.sidebar-dropdown .sidebar-item a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #fff;
}

#sidebar.expand .sidebar-item.has-dropdown .sidebar-dropdown {
    max-height: none;
    opacity: 1;
    margin-left: 1.5rem;
}

#sidebar:not(.expand) .sidebar-item.has-dropdown .sidebar-dropdown {
    margin-left: 0;
}

#sidebar:not(.expand) .sidebar-item:hover i.fa-chevron-down {
    transform: rotate(180deg);
}

.card-custom {
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    padding: 30px;
}

.card-body {
    margin-top: 50px;
}

.card-header-table {
    font-size: 25px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.chat-bubble {
    position: relative;
    max-width: 95%;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    background-color: #f1f0f0;
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.4;
    margin: 0 auto;
    animation: bounceIn 0.6s ease;
    transition: transform 0.2s ease;
    min-height: 290px;
    cursor: pointer;
    margin-bottom: 25px;
}

.chat-bubble.left::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 0;
    border: 30px solid transparent;
    border-top-color: #f1f0f0;
    border-bottom: 0;
    border-left: 0;
    margin-bottom: -30px;
}

.chat-bubble.right::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 0;
    height: 0;
    border: 30px solid transparent;
    border-top-color: #f1f0f0;
    border-bottom: 0;
    border-right: 0;
    margin-bottom: -30px;
}

.chat-bubble:hover {
    transform: translateY(-5px) scale(1.02);
}

.chat-bubble-atividades {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble-atividades.left {
    background-color: #f1f0f0;
}

.chat-bubble-atividades.right {
    background-color: #d1ffd6;
}

.chat-bubble-atividades.left::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #f1f0f0 transparent transparent;
}

.chat-bubble-atividades.right::after {
    content: "";
    position: absolute;
    top: 10px;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #d1ffd6;
}

#comentariosContainer {
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.nenhum-comentario {
    text-align: center;
    color: #888;
    font-style: italic;
}

.chat-header {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-bottom: 5px;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.btn-novo {
    background-color: #05416a;
    color: white;
    margin-top: -35px;
}

.btn-novo:hover {
    background-color: #184f75;
    color: white;
}

.modal-title {
    font-size: 25px;
    font-weight: bold;
}

.modal-subtitle {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.modal-subtitle_left {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 15px;
}

.modal-body {
    padding: 30px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 70, 119, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.photo-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.photo-thumbnail:hover {
    transform: scale(1.5);
}

.photo-container {
    display: inline-block;
    position: relative;
    cursor: zoom-in;
    margin-top: 6px;
    margin-left: 6px;
}

.cover-container {
    display: inline-block;
    position: relative;
    margin-top: 6px;
    margin-left: 6px;
}

.photo-thumbnail[data-bs-toggle="popover"] {
    cursor: pointer;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.powerBI {
    padding: 15px;
    padding-left: 15px;
}

.powerBI2 {
    padding: 15px;
    padding-right: 15px;
}

.firstSection {
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1);
}

.foto-aniversariante {
    width: 30%;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}

.carousel-item {
    min-height: 300px;
    height: 100%;
}

#carouselInner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#calendar {
    width: 90%;
    max-width: 90%;
    font-size: 1rem;
    margin: 0 auto;
    padding: 10px;
}

.btn-confirm-green {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-confirm-green:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-confirm-red {
    background-color: #a72828;
    border-color: #a72828;
}

.btn-confirm-red:hover {
    background-color: #a72828;
    border-color: #a72828;
}

.btn-denied-red {
    background-color: #a72828;
    border-color: #a72828;
}

.btn-denied-red:hover {
    background-color: #a72828;
    border-color: #a72828;
}

.btn-cancel {
    background-color: #6c757d;
    border-color: #6c757d;
}

.swal2-confirm {
    background-color: #28a745;
    color: white;
}

.swal2-cancel {
    background-color: #6c757d;
    color: white;
}

.avoid-break {
    page-break-inside: avoid;
    break-inside: avoid;
}

@media (max-width: 768px) {
    #calendar {
        font-size: 0.9rem;
    }

    #carouselInner img {
        object-fit: contain;
    }
}

@media (max-width: 576px) {
    #calendar {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .foto-aniversariante {
        width: 60%;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .foto-aniversariante {
        width: 50%;
        height: auto;
    }
}

@media (min-width: 1025px) {
    .foto-aniversariante {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 1625px) {
    .foto-aniversariante {
        width: 90px;
        height: 90px;
    }
}

.footer {
    background-color: #05416a;
    padding: 10px 0;
    margin-top: auto;
    text-align: center;
    width: 100%;
}
  
.footer-logo {
    max-height: 40px;
    margin: 0 auto;
    display: block;
}

#chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: url('https://raw.githubusercontent.com/wishaceleradoradigital/file_suportify/main/Group%2010667.png') no-repeat center center;
    background-size: cover;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
}
.down-arrow {
    display: none;
    width: 12px;
    height: 12px;
    border-right: 4px solid white;
    border-bottom: 4px solid white;
    transform: rotate(45deg);
    margin-top: -4px;
}
#chatbot-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 5px;
    width: 420px;
    max-height: 630px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    background-color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}
#chatbot-popup.open {
    border: 3px solid #D3D3D3;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    #chatbot-popup.open {
        width: 95%;
        height: 90%;
    }
}
@media (min-width: 769px) {
    #chatbot-popup.open {
        width: 440px;
        height: 700px;
    }
}
#chatbot-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}
#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}
.tooltip {
    position: fixed;
    bottom: 55px;
    right: 90px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
    white-space: nowrap;
    display: block;
}
.tooltip.second {
    bottom: 25px;
    right: 90px;
}
#chatbot-button:hover + .tooltip,
#chatbot-button:hover + .tooltip + .tooltip {
    display: block;
}

#bannerCarousel {
    height: 400px; 
}

#bannerCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
}

#bannerCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5); 
    padding: 20px;
    border-radius: 10px;
}

input:focus {
    outline: none;
    border: 2px solid #FF6600;
    border-color: #FF6600;
    box-shadow: none;
}

.autocomplete-list {
  border: 1px solid #d1d5db; 
  border-radius: 0.375rem;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  background: #fff;
  width: 47%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: none;
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 400;
  color: #374151;
}

.autocomplete-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: #e0e7ff;
  color: #05416a;
}

.autocomplete-item-detalhes {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.autocomplete-item-detalhes:last-child {
  border-bottom: none;
}

.autocomplete-item-detalhes:hover {
  background-color: #e0e7ff;
  color: #05416a;
}

.autocomplete-item-areas {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.autocomplete-item-areas:last-child {
  border-bottom: none;
}

.autocomplete-item-areas:hover {
  background-color: #e0e7ff;
  color: #05416a;
}

.autocomplete-item-customers {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.autocomplete-item-customers:last-child {
  border-bottom: none;
}

.autocomplete-item-customers:hover {
  background-color: #e0e7ff;
  color: #05416a;
}

#customTabs .nav-link {
  color: #004677;
  background-color: rgba(0, 0, 0, 0.01);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#customTabs .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  color: #003355;
}

#customTabs .nav-link.active {
  color: #004677;
  font-weight: bold;
  background-color: #e0e0e0;
  border: 1px solid #004677;
  border-bottom: none;
  border: 1px solid transparent;
}

#customTabs2 .nav-link {
  color: #004677;
  background-color: rgba(0, 0, 0, 0.01);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#customTabs2 .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  color: #003355;
}

#customTabs2 .nav-link.active {
  color: #004677;
  font-weight: bold;
  background-color: #e0e0e0;
  border: 1px solid #004677;
  border-bottom: none;
  border: 1px solid transparent;
}

.doc-thumbnail {
	width: 120px;
	border: 1px solid #ddd;
	padding: 5px;
	border-radius: 8px;
	position: relative;
}

.doc-thumbnail button {
	position: absolute;
	top: -8px;
	right: -8px;
	background: red;
	color: white;
	border: none;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	font-size: 12px;
	line-height: 1;
}

.doc-thumbnail small {
	display: block;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	font-size: 12px;
}

.linha-total-fixa,
.linha-total-fixa > td {
  font-weight: bold;
  background-color: #e5f4ff !important;
  color: #05416a;
}

#DataTableSaldos tbody tr:last-child {
	position: sticky;
	bottom: 0;
	z-index: 10;
	background-color: #f9f9f9;
}

.select-disabled {
    background-color: rgb(206, 206, 206) !important;
}

.quiz-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.quiz-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.linha-nucleo {
    cursor: pointer;
}

.linha-nucleo:hover {
    background: #eaeaea !important;
}

.select2-container--default .select2-selection--multiple {
    background-color: #fff; 
    border: 1px solid #d1d5db; 
    border-radius: 0.375rem; 
    min-height: 42px !important;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 5px 4px 0px 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #9ca3af; 
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #6366F1;
    box-shadow: 0 0 0 1px #6366F1;
}

#estrutura-preview {
        gap:32px;
        min-height: 280px;
        padding-bottom: 16px;
    }
    .estrutura-nucleo {
        min-width: 300px;
        max-width: 350px;
        border-right: 1.5px dashed #c1c1c1;
    }
    .estrutura-nucleo:last-child {
        border-right: none;
    }
    .estrutura-cargos {
        margin-left: 16px;
    }