/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo svg {
  width: 34px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* Diminui o tamanho da fonte e do ícone dentro do Toast do SweetAlert2 */
.swal2-toast-small {
    font-size: 0.85rem !important; /* Tamanho menor */
    font-weight: 500 !important; /* Deixa a fonte menos "pesada" */
    margin: 0 !important; /* Remove margens que empurram o layout */
    padding: 0 5px !important; /* Ajusta o respiro lateral */
    display: flex !important;
    align-items: center !important;
}

/* Garante que o ícone acompanhe o alinhamento do texto pequeno */
.swal2-icon.swal2-success.swal2-icon-show {
    margin: 0 0.5rem 0 0 !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

/* Ajusta o container interno do toast para não ter sobras */
.swal2-html-container {
    margin: 0 !important;
}

.swal2-toast-small .swal2-title {
    font-size: 1.85rem !important; /* Tamanho menor */
    font-weight: 500 !important; /* Deixa a fonte menos "pesada" */
    margin: 0 !important; /* Remove margens que empurram o layout */
    padding: 0 5px !important; /* Ajusta o respiro lateral */
    display: flex !important;
    align-items: center !important;
    color: #ece0e0 !important;
}

    /* Diminui o ícone de check/erro */
    .swal2-toast-small .swal2-icon {
        transform: scale(0.7);
        margin-right: 0 !important;
    }











/* corpo do modal com espaço extra inferior para separar do footer */
.modal .modal-dialog.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 2rem 2rem; /* top | sides | bottom maior para separar do footer */
}

/* shell com destaque lateral suave e sombra geral discreta */
.table-shell {
    position: relative;
    border-radius: 0.6rem;
    padding: 0.75rem; /* espaço entre borda do shell e tabela */
    background: #ffffff;
    /* sombra externa suave + leve brilho interno */
    box-shadow: 0 6px 18px rgba(11,17,27,0.06), inset 0 0 0 1px rgba(99,102,241,0.015);
}

    /* pseudo-gradientes laterais bem suaves (realçam a área interna) */
    .table-shell::before,
    .table-shell::after {
        content: "";
        position: absolute;
        top: 0.5rem;
        bottom: 0.5rem;
        width: 24px;
        pointer-events: none;
        border-radius: 0.5rem;
        z-index: 2;
    }

    .table-shell::before {
        left: 0;
        background: linear-gradient(90deg, rgba(15,23,42,0.035), rgba(15,23,42,0.00));
    }

    .table-shell::after {
        right: 0;
        background: linear-gradient(270deg, rgba(15,23,42,0.035), rgba(15,23,42,0.00));
    }

/* tabela dentro do shell: leve padding interno e margem embaixo para separar do footer */
.card-table {
    border-radius: 0.45rem;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.04);
    background: #ffffff;
    margin-bottom: 2rem; /* garante distância do footer */
    padding: 0.35rem; /* espaço interno para não colar nas laterais internas */
}

    /* garante que a tabela ocupe o espaço do card sem "grudar" nas laterais */
    .card-table .table {
        margin: 0;
        background: transparent;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

/* padding consistente nas células para não colar nas laterais internas */
#viewPlacasMotoristaModal .card-table thead th,
#viewPlacasMotoristaModal .card-table tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* cabeçalho fixo - deslocamento leve para respeitar o padding interno */
#viewPlacasMotoristaModal .card-table thead th {
    /* position: sticky; */
    top: 0.6rem; /* offset para ficar alinhado ao interior do shell */
    background: linear-gradient(180deg,#f7f9fc,#f6f8fb);
    z-index: 4;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* linhas, hover e alternância */
#viewPlacasMotoristaModal .card-table tbody td {
    color: #374151;
    border-top: 1px solid rgba(15, 23, 42, 0.03);
    vertical-align: middle;
    padding-top: 10px;
    padding-bottom: 10px;
}

#viewPlacasMotoristaModal .card-table tbody tr {
    background: #ffffff;
}

    #viewPlacasMotoristaModal .card-table tbody tr:nth-child(even) {
        background: #fbfdff;
    }

/* padding consistente nas células para não colar nas laterais internas */
#viewOcorrenciasMotoristaModal .card-table thead th,
#viewOcorrenciasMotoristaModal .card-table tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* cabeçalho fixo - deslocamento leve para respeitar o padding interno */
#viewOcorrenciasMotoristaModal .card-table thead th {
    /* position: sticky; */
    top: 0.6rem; /* offset para ficar alinhado ao interior do shell */
    background: linear-gradient(180deg,#f7f9fc,#f6f8fb);
    z-index: 4;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* linhas, hover e alternância */
#viewOcorrenciasMotoristaModal .card-table tbody td {
    color: #374151;
    border-top: 1px solid rgba(15, 23, 42, 0.03);
    vertical-align: middle;
    padding-top: 10px;
    padding-bottom: 10px;
}

#viewOcorrenciasMotoristaModal .card-table tbody tr {
    background: #ffffff;
}

    #viewOcorrenciasMotoristaModal .card-table tbody tr:nth-child(even) {
        background: #fbfdff;
    }


/* padding consistente nas células para não colar nas laterais internas */
#viewIntercorrenciasMotoristaModal .card-table thead th,
#viewIntercorrenciasMotoristaModal .card-table tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* cabeçalho fixo - deslocamento leve para respeitar o padding interno */
#viewIntercorrenciasMotoristaModal .card-table thead th {
    /* position: sticky; */
    top: 0.6rem; /* offset para ficar alinhado ao interior do shell */
    background: linear-gradient(180deg,#f7f9fc,#f6f8fb);
    z-index: 4;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* linhas, hover e alternância */
#viewIntercorrenciasMotoristaModal .card-table tbody td {
    color: #374151;
    border-top: 1px solid rgba(15, 23, 42, 0.03);
    vertical-align: middle;
    padding-top: 10px;
    padding-bottom: 10px;
}

#viewIntercorrenciasMotoristaModal .card-table tbody tr {
    background: #ffffff;
}

    #viewIntercorrenciasMotoristaModal .card-table tbody tr:nth-child(even) {
        background: #fbfdff;
    }

/* divisória suave antes do footer e espaçamento dos botões */
.modal-footer {
    border-top: 1px solid rgba(15,23,42,0.06); /* divisória */
    padding: 1.15rem 2rem 1.15rem; /* aumenta distância entre grid e botões */
    background: transparent;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

    .modal-footer .btn {
        min-width: 110px;
        padding: 0.55rem 1rem;
    }

/* estado vazio: centraliza botão e remove footer duplicado se necessário */
.empty-state {
    padding: 2.5rem 2rem;
}

    .empty-state .d-flex {
        justify-content: center;
        margin-top: .75rem;
    }

@@media (min-width: 992px) {
    .modal .modal-dialog.modal-lg.modal-dialog-scrollable .modal-body {
        max-height: calc(100vh - 200px);
    }
}




/* Estilos do ícone SVG */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: none; /* Escondido por padrão */
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
}

    .check-icon::before {
        top: 3px;
        left: -2px;
        width: 30px;
        transform-origin: 100% 50%;
        border-radius: 100px 0 0 100px;
    }

/* Animação do traço do check */
.icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

/* Estilo do Modal: Fundo Transparente e Bordas Levemente Arredondadas */
#loadingModal .modal-content {
    background-color: rgba(255, 255, 255, 0.85); /* Fundo branco com 85% de opacidade */
    backdrop-filter: blur(10px); /* Desfoca o que está atrás do modal */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Borda sutil de "vidro" */
    border-radius: 4px !important; /* "Mais quadrado": um raio bem pequeno */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); /* Sombra suave e difusa */
}

/* Ajuste da Barra de Progresso para combinar */
#loadingModal .progress {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 2px !important;
    height: 12px;
}

#loadingModal .progress-bar {
    border-radius: 2px !important;
}

/* Remover o fundo escuro padrão do Bootstrap (opcional) */
.modal-backdrop.show {
    opacity: 0.4;
}
