
  .left {
    width: 100%;
  }
  .calendar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    color: #878895;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 20px;
  }
  .calendar .month {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: capitalize;
  }
  .calendar .month .prev,
  .calendar .month .next {
    cursor: pointer;
  }
  .calendar .month .prev:hover,
  .calendar .month .next:hover {
    color: var(--cor-tematica-light);
  }
  .calendar .weekdays {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
  }
  .weekdays div {
    width: 14.28%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .calendar .days {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
  }
  .calendar .days .day {
      width: 14.28%;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      /* color: var(--cor-tematica-light); */
      border: 1px solid #f5f5f5;
    }
/* .calendar .days .day.dia-evento{
    background-color: #a5a5a5;
} */
  .calendar .days .day:nth-child(7n + 1) {
    border-left: 2px solid #f5f5f5;
  }
  .calendar .days .day:nth-child(7n) {
    border-right: 2px solid #f5f5f5;
  }
  .calendar .days .day:nth-child(-n + 7) {
    border-top: 2px solid #f5f5f5;
  }
  .calendar .days .day:nth-child(n + 29) {
    border-bottom: 2px solid #f5f5f5;
  }

  .calendar .days .day:not(.prev-date, .next-date):hover {
    color: #fff;
    /* background-color: var(--cor-tematica-light); */
  }
  .calendar .days .prev-date,
  .calendar .days .next-date {
    color: #b3b3b3;
  }
  .calendar .days .active {
    position: relative;
    font-size: 2rem;
    color: #fff;
    /* background-color: var(--cor-tematica-light); */
  }
  .calendar .days .active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* box-shadow: 0 0 10px 2px var(--cor-tematica-light); */
  }
  .calendar .days .today {
      font-size: 1.5rem;
    }
    .calendar .days .event {
        position: relative;
    }
  .calendar .days .event::after, .calendar .days .today.event::after {
    content: "";
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: 75%;
    height: 6px;
    border-radius: 30px;
    transform: translateX(-50%);
    /* background-color: var(--cor-tematica-light); */
  }
  /* .calendar .days .event.dia-evento::after {
    background-color: var(--cor-tematica-light);
  } */
  .calendar .days .day:hover.event::after {
    background-color: #fff;
  }
  .calendar .days .active.event::after {
    background-color: #fff;
    bottom: 20%;
  }
  .calendar .days .active.event {
    padding-bottom: 10px;
  }
  .calendar .goto-today {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 0 20px;
    margin-bottom: 20px;
    color: var(--cor-tematica-light);
  }
  .calendar .goto-today .goto {
    display: flex;
    align-items: center;
    border-radius: 11px;
    overflow: hidden;
    border: 2px solid var(--cor-tematica-light);
  }
  .calendar .goto-today .goto input {
    width: 100%;
    height: 30px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    color: var(--cor-tematica-light);
    border-radius: 5px;
  }
  .calendar .goto-today button {
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    background-color: transparent;
    cursor: pointer;
}
.calendar .goto-today button:hover {
    color: #fff;
  }
.calendar .goto-today .goto button {
    border: none;
    height: 100%;
    border: 3px solid transparent;
    border-left: 1px solid var(--cor-tematica-light);
}
.calendar .goto-today .goto button img {
    width: 20px;
}

/* Botão HOJE para o RH*/
.calendar .goto-today.rh button {
  border: 2px solid var(--cor-tematica-light);
  color: var(--cor-tematica-light);
}
.table.tabela{
    color: var(--cor-cinza);
}
.calendar .goto-today.rh button:hover {
  color: #000000;
  border: 2px solid var(--cor-cinza-2);
  background-color: var(--cor-cinza-2);
}

/* Modal visualização de férias - RH */
/* .modal-content.rh{
  border: 5px solid var(--cor-tematica-light);
} */
.modal-title {
  color: var(--cor-tematica-light);
}
.accordion-button:not(.collapsed) {
    color: #213555 !important;
}

.text-nome {
    --bs-text-opacity: 1;
    color: #213555 !important;
}
  .right {
    display: none;
  }

  .right .today-date {
    width: 100%;
    height: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    padding-left: 70px;
    margin-top: 50px;
    margin-bottom: 20px;
    text-transform: capitalize;
  }
  .right .today-date .event-day {
    font-size: 2rem;
    font-weight: 500;
  }
  .right .today-date .event-date {
    font-size: 1rem;
    font-weight: 400;
    color: #878895;
  }
  .events {
    width: 100%;
    height: 100%;
    max-height: 600px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-left: 4px;
  }
  .events .event {
    position: relative;
    width: 95%;
    min-height: 70px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0 20px;
    padding-left: 50px;
    color: #fff;
    background: linear-gradient(90deg, #3f4458, transparent);
    cursor: pointer;
  }
  /* even event */
  .events .event:nth-child(even) {
    background: transparent;
  }
  .events .event:hover {
    background: linear-gradient(90deg, var(--cor-cinza-2), transparent);
  }
  .events .event .title {
    display: flex;
    align-items: center;
    pointer-events: none;
  }
  .events .event .title .event-title {
    font-size: 1rem;
    font-weight: 400;
    margin-left: 20px;
  }
  .events .event i {
    color: var(--cor-cinza-3);
    font-size: 0.5rem;
  }
  .events .event:hover i {
    color: #fff;
  }
  .events .event .event-time {
    font-size: 0.8rem;
    font-weight: 400;
    color: #878895;
    margin-left: 15px;
    pointer-events: none;
  }
  .events .event:hover .event-time {
    color: #fff;
  }
  /* add tick in event after */
  .events .event::after {
    content: "✓";
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 3rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    color: var(--cor-tematica-light);
    transform: translateY(-50%);
  }
  .events .event:hover::after {
    display: flex;
  }
  .add-event {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #878895;
    border: 2px solid #878895;
    opacity: 0.5;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
  }
  .add-event:hover {
    opacity: 1;
  }
  .add-event i {
    pointer-events: none;
  }
  .events .no-event {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #878895;
  }
  .add-event-wrapper {
    position: absolute;
    bottom: 100px;
    left: 50%;
    width: 90%;
    max-height: 0;
    overflow: hidden;
    border-radius: 5px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: max-height 0.5s ease;
  }
  .add-event-wrapper.active {
    max-height: 300px;
  }
  .add-event-header {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #373c4f;
    border-bottom: 1px solid #f5f5f5;
  }
  .add-event-header .close {
    font-size: 1.5rem;
    cursor: pointer;
  }
  .add-event-header .close:hover {
    color: var(--cor-tematica-light);
  }
  .add-event-header .title {
    font-size: 1.2rem;
    font-weight: 500;
  }
  .add-event-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
  }
  .add-event-body .add-event-input {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .add-event-body .add-event-input input {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    padding: 0 10px;
    font-size: 1rem;
    font-weight: 400;
    color: #373c4f;
  }
  .add-event-body .add-event-input input::placeholder {
    color: #a5a5a5;
  }
  .add-event-body .add-event-input input:focus {
    border-bottom: 1px solid var(--cor-tematica-light);
  }
  .add-event-body .add-event-input input:focus::placeholder {
    color: var(--cor-tematica-light);
  }
  .add-event-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .add-event-footer .add-event-btn {
    height: 40px;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    border: none;
    color: #fff;
    background-color: var(--cor-tematica-light);
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid var(--cor-tematica-light);
  }
  .add-event-footer .add-event-btn:hover {
    background-color: transparent;
    color: var(--cor-tematica-light);
  }
.modal-dialog{
    max-width: 790px !important;
}
.modal-title{
    font-weight: 500;
    font-size: 14px;
}
.span-nome-servidor{
    font-weight: 500;
    color: #000;
}
.accordion-button.collapsed.fw-semibold, .accordion-collapse.collapse.show, .accordion-item {
    background-color: azure !important;
}
.span-nome-periodo{
    margin-right: 10px;
    background-color: var(--cor-roxo-quaternario);
    padding: 5px;
    border-radius: 6px;
}

/* .modal-content{
    border: 5px solid var(--cor-roxo-rh) !important;
} */

.titulo-periodo {
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nome-servidor {
  color: #2a4d9b;    /* azul */
  font-weight: 600;
}
.datas-ferias {
  color: #6c757d;    /* cinza */
  font-style: italic;
  margin-left: 2px;
}


.span-situacao-ferias.span-situacao-programado-aguardando-envio{
  color: var(--cor-programado-aguardando-envio);
}
.span-situacao-ferias.span-situacao-programado-aguardando-envio img{
    margin: 5px 5px -3px;
}
.span-situacao-ferias.span-situacao-programacao-enviada{
    color: var(--cor-programacao-enviada);
}
.span-situacao-ferias.span-situacao-programacao-enviada img{
    margin: 5px 5px -3px;
}
.span-situacao-ferias.span-situacao-aprovado{
  color: var(--cor-aprovado);
}
.span-situacao-ferias.span-situacao-aprovado img{
  margin: 5px 5px -3px;
}
.span-situacao-ferias.span-situacao-reprovado{
  color: var(--cor-reprovado);
}
.span-situacao-ferias.span-situacao-reprovado img{
  margin: 5px 5px -3px;
}
.span-situacao-ferias.span-situacao-interrompido{
  color: var(--cor-interrompido);
}
.span-situacao-ferias.span-situacao-interrompido img{
  margin: 5px 5px -3px;
}
.span-situacao-ferias.span-situacao-suspenso{
  color: var(--cor-suspenso);
}
.span-situacao-ferias.span-situacao-suspenso img{
  margin: 5px 5px -3px;
}
.span-situacao-ferias.span-situacao-usufruindo{
    color: var(--cor-usufruindo);
}
.span-situacao-ferias.span-situacao-usufruindo img{
    margin: 5px 5px -3px;
}
.span-situacao-ferias.span-situacao-homologado{
  color: var(--cor-homologado);
}
.span-situacao-ferias.span-situacao-homologado img{
  margin: 5px 5px -3px;
}

#tabela-ferias-solicitadas_previous a{
    color: #666 !important;
}

#tabela-ferias-solicitadas_next a{
    color: #666 !important;
}

#tabela-ferias-solicitadas_previous:hover{
    border-radius: 20px;
    border: 0px solid;
}
#tabela-ferias-solicitadas_next:hover{
    border-radius: 20px;
    border: 0px solid;
}


  /* media queries */
  @media screen and (max-width: 1000px) {
    body {
      align-items: flex-start;
      justify-content: flex-start;
    }
    .container {
      min-height: 100vh;
      flex-direction: column;
      border-radius: 0;
    }
    .container .left {
      width: 100%;
      height: 100%;
      padding: 20px 0;
    }
    .container .right {
      width: 100%;
      height: 100%;
      padding: 20px 0;
    }
    .calendar::before,
    .calendar::after {
      top: 100%;
      left: 50%;
      width: 97%;
      height: 12px;
      border-radius: 0 0 5px 5px;
      transform: translateX(-50%);
    }
    .calendar::before {
      width: 94%;
      top: calc(100% + 12px);
    }
    .events {
      padding-bottom: 340px;
    }
    .add-event-wrapper {
      bottom: 100px;
    }
  }
  @media screen and (max-width: 500px) {
    .calendar .month {
      height: 75px;
    }
    .calendar .weekdays {
      height: 50px;
    }
    .calendar .days .day {
      height: 40px;
      font-size: 0.8rem;
    }
    .calendar .days .day.active,
    .calendar .days .day.today {
      font-size: 1rem;
    }
    .right .today-date {
      padding: 20px;
    }
  }

  .credits {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #fff;
    background-color: #b38add;
  }
  .credits a {
    text-decoration: none;
    font-weight: 600;
  }
  .credits a:hover {
    text-decoration: underline;
  }
/* ===== Variáveis CSS para Accordion ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius-md: 0.5rem;
    --radius-sm: 0.375rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Modal Header ===== */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

/* ===== Título do Período ===== */
.conteudo-modal h5 {
    color: var(--primary-color);
    background: #f8fafc;
    border-left: 4px solid var(--cor-tematica-light);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 1rem 0;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ===== Container do Accordion ===== */
.accordion {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
}

/* ===== Items do Accordion ===== */
.accordion-item {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.875rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.accordion-item:last-child {
    margin-bottom: 0;
}

/* ===== Header do Accordion ===== */
.accordion-header {
    margin: 0;
}

.accordion-button {
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236366f1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1.25rem;
    height: 1.25rem;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background: var(--cor-tematica-light);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-button:focus {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    border: none;
    outline: none;
}

/* ===== Body do Accordion ===== */
.accordion-collapse {
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body {
    padding: 1.5rem;
    background: #fafbfc;
    border-top: 1px solid var(--border-color);
}

/* ===== Itens de Servidor no Accordion ===== */
.accordion-body p {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--cor-tematica-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/* ===== Badges de Status ===== */
.text-secondary, .text-info, .text-success, .text-danger, .text-warning, .text-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.text-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.text-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.text-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.text-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.text-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.text-primary {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #a5b4fc;
}

.text-secondary img, .text-info img, .text-success img,
.text-danger img, .text-warning img, .text-primary img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* ===== Nome do Servidor ===== */
.text-nome {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    position: relative;
}

.text-nome::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cor-tematica-light);
    transition: width 0.3s ease;
}

.accordion-body p:hover .text-nome::after {
    width: 100%;
}

/* ===== Texto Muted (Datas e Período) ===== */
.text-muted {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ===== Animação de Entrada ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.accordion-body > p {
    animation: slideIn 0.3s ease-out backwards;
}

.accordion-body > p:nth-child(1) { animation-delay: 0.05s; }
.accordion-body > p:nth-child(2) { animation-delay: 0.1s; }
.accordion-body > p:nth-child(3) { animation-delay: 0.15s; }
.accordion-body > p:nth-child(4) { animation-delay: 0.2s; }
.accordion-body > p:nth-child(5) { animation-delay: 0.25s; }

/* ===== Responsivo ===== */
@media (max-width: 768px) {
    .accordion-button {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .accordion-body p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .text-secondary, .text-info, .text-success,
    .text-danger, .text-warning, .text-primary {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .text-nome {
        font-size: 0.9rem;
    }

    .text-muted {
        font-size: 0.875rem;
    }

    .conteudo-modal h5 {
        font-size: 1.125rem;
        padding: 0.875rem 1rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}
