html, body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: auto;
    overflow-y: auto;
}

main {
    flex-grow: 1; 
    overflow: hidden;
}

.table-wrapper-cdi {
    max-height: calc(100vh - 450px); 
    overflow-y: auto;
}

@media (max-height: 500px) {
    main {
        flex-grow: 1;
        overflow: auto; /* Enable vertical scrolling for the main content */
    }

    .table-wrapper-cdi {
        max-height: calc(100vh - 100px); 
        overflow-y: auto;
    }
}

/* ---------- */
/* - camera - */
button {
  margin: 0.5rem;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
}

#galeria {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#galeria img {
  width: 100px;
  border-radius: 8px;
}
/* ---------- */

#app {
    flex-grow: 1;
    overflow-y: auto;
}

html {
    height: -webkit-fill-available;
}

/* main {
    height: 100vh;
    height: -webkit-fill-available;
    max-height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
} */

.dropdown-toggle {
    outline: 0;
}

.btn-toggle {
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
    background-color: transparent;
}
.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(var(--bs-emphasis-color-rgb), 0.85);
    background-color: var(--bs-tertiary-bg);
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform 0.35s ease;
    transform-origin: 0.5em 50%;
}

[data-bs-theme="dark"] .btn-toggle::before {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(var(--bs-emphasis-color-rgb), 0.85);
}
.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    padding: 0.1875rem 0.5rem;
    margin-top: 0.125rem;
    margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: var(--bs-tertiary-bg);
}

.scrollarea {
    overflow-y: auto;
}

.breadcrumb-container {
    position: relative;
    margin-top: 10px;
    margin-left: 15px;
}

.color-cdi {
    color: #023c54;
}

.fundo-cdi {
    background-color: #023c54 !important;
    color: white !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 2s linear infinite; /* 2 seconds per rotation, smooth, infinite */
}

/* Smooth fade-in effect */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth fade-out effect */
.fade-out {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-out.hide {
    opacity: 0;
    transform: translateY(20px);
}

.vencido {
    color: white !important;
}

.prox-vencimento {
    color: white !important;
    background-color: orange !important;
}

.ok-vencimento {
    color: white !important;
    background-color: green !important;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.1);
    border: solid rgba(0, 0, 0, 0.15);
    border-width: 1px 0;
    box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
        inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* translucent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.scroll-container {
    width: 350px;
    height: 200px;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.label-b {
    font-size: 12px;
    color: #b5b5b5;
    margin-bottom: 0px !important;
}

.form-floating-font {
    font-size: 12px !important;
}

.form-control-font {
    font-size: 11px !important;
    padding-top: 7px !important;
}

.label-value {
    font-size: 10px !important;
}

.filtro-data {
    width: 100px;
    height: 50px;
    display: flex!important;
    align-items: center;
    justify-content: center;
}


#pullToRefresh {
    position: absolute;
    top: -50px;
    left: 25%;
    width: 50%;
    right: 0;
    height: 50px;
    text-align: center;
    line-height: 50px;
    background-color: white;
    color: #023c54;
    transition: top 0.3s;
    border: solid 2px #023c54;
    border-radius: 30px;
  }

  .refreshing #pullToRefresh {
    top: 0;
  }
  .card-chamado-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 0.8em;
    flex-shrink: 0;
}

.card-chamado-badge-top-right {
    position: absolute;
    top: 5px;
    right: 5px;
    font-family: monospace;
    font-size: 0.75em;
    padding: .2em .4em;
}

.card-chamado-obs-contrato {
    background-color: tomato;
    border-radius: 15px;
    padding: 5px;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    margin-top: 5px;
}

.card-chamado-obs-chamado {
    background-color: darkorange;
    border-radius: 15px;
    padding: 5px;
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    margin-top: 5px;
}

.card-chamado-chip {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 16px;
    margin: 2px;
    font-size: 11px;
    color: white;
    white-space: nowrap; /* Evita quebras de linha dentro do chip */
}

.card-chamado-chip i {
    margin-right: 4px;
    font-size: 11px;
}

.card-chamado-sem-tecnico {
    background-color: red;
    color: white;
    border-radius: 5px;
    text-align: center;
}

.cursor-pointer {
    cursor: pointer;
}

/* Estilos para ícones dentro do form-floating */
.form-floating .bi-search { right: 10px; }
.form-floating .bi-x-circle-fill { right: 40px; }

/* Modal de Histórico */
.historico-details {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}
.historico-details p {
    margin-bottom: 5px;
    font-size: 0.85em;
}
.historico-details strong {
    font-weight: bold;
}

@keyframes blink {
    50% {
        border-color: red;
        box-shadow: 0 0 10px red;
    }
}

.blinking-card .card-chamado {
    animation: blink 1s linear infinite;
}
