/* DEMAIS ESTILOS */
body{
    font-family: 'Open Sans', sans-serif;
}

#content-wrapper{
    padding-bottom: 65px;
}

#main-navbar .navbar-header {
    min-width: 240px!important;
    width: auto!important;
}
.get-height {
    display: block !important;
    position: absolute !important;
    visibility: hidden !important;
}
.navigation > li.mm-dropdown {
    position: relative;
}

body.mmc .navigation > li.mm-dropdown > ul {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    z-index: 1000;
    min-width: 200px;
    background: #2f4050;
}

body.mmc .navigation > li.mm-dropdown.mmc-dropdown-open > ul {
    display: block;
}
body:not(.mmc) .navigation .mm-text {
    padding-left: 0;
}
body.mmc .mmc-dropdown-open-ul .mm-text {
    margin-left: -25px!important;
}

.requerido::after{
    position: absolute;
    content: "*";
    margin-left: 3px;
    color: #f00;
}

.titulo-card{font-size: 18px;font-weight: 400;}
.titulo-card small{font-size: 16px;font-weight: 300;}

table.table tr td{
    vertical-align: middle;
}

.titulo-card-body{
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.6px;
}
.subtitulo-card-body{
    font-size: 13px;
}


/* Customização da barra de rolagem para o dropdown de notificações */
.notifications-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.notifications-scroll-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.notifications-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    border: 1px solid #f8f9fa;
}

.notifications-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.notifications-scroll-container::-webkit-scrollbar-thumb:active {
    background: #999999;
}

/* Para Firefox */
.notifications-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f8f9fa;
}

.d-none, .hidden {
    display: none!important;
}
.rounded-circle{
    border-radius: 50%;
}
.avatar-inicial {
  width: 30px; 
  height: 30px;
  border-radius: 50%; /* rounded-full */
  background: #3b82f6;
  display: inline-flex; /* flex */
  align-items: center; /* items-center */
  justify-content: center; /* justify-center */
  color: white; /* text-white */
  font-size: 12px; /* text-2xl */
  font-weight: bold; /* font-bold */
  margin-right: 3px;
}
.mt-5{
  margin-top: 1.25rem;
}
/* Melhorar hover nos cabeçalhos ordenáveis */
th[wire\:click] {
    transition: background-color 0.2s ease;
}

th[wire\:click]:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Loading state mais suave */
.table-row {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
.tooltip{
    display: block!important;
    width: max-content!important;
}

a.btn-primary.btn-outline.focus, 
a.btn-primary.btn-outline:focus, a.btn-primary.btn-outline:hover, a.btn-primary.focus, a.btn-primary:focus, a.btn-primary:hover {
    color: #fff!important;
    border-color: #207ebc #207ebc #13496e!important;
    background: #248cd2!important;
}
.help-block{
    font-size: 12px!important;
}
/* Em seu arquivo CSS */
.toast-critical {
    border-left: 4px solid #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

#enable-sound {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    padding: 8px 15px;
    border-radius: 20px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

#enable-sound.active {
    background: #4CAF50;
    color: white;
    border-color: #388E3C;
}

#enable-sound:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.help-block{
    font-weight: bold;
}

.link {
    cursor: pointer!important;
    text-decoration: none!important;
}

.link:hover {
    text-decoration: underline!important;
}


.link-desativado {
    pointer-events: none!important; /* desabilita o clique */
    color: #999;
    cursor: not-allowed!important;
    text-decoration: none!important;
    font-weight: bold!important;
    background-color: #f5f5f5!important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.flex {
    display: flex;
}
.flex-col{
    flex-direction: column;
}
.items-center{
    align-items: center;
} 
.justify-center{
    justify-content: center;
} 
.text-center{
    text-align: center;
}
.livewire-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.loading-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    /* animation: slideInDown 0.5s ease-out; */
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #28a745;
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: #ffc107;
}

.spinner-ring:nth-child(4) {
    border-top-color: #dc3545;
}

.loading-text h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text p {
    color: #6c757d;
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.8;
    margin-top: 3px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .livewire-loading-overlay {
        background: rgba(33, 37, 41, 0.95);
    }
    
    .loading-text h4 {
        color: #f8f9fa;
    }
    
    .loading-text p {
        color: #ced4da;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .loading-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .loading-text h4 {
        font-size: 1.25rem;
    }
    
    .loading-text p {
        font-size: 0.8rem;
    }
}
.hidden,
.d-none{display: none;}
.datepicker {
    z-index: 9999999;
}

.modal-xl {
    width: 1200px;
}

.area-controles{
    padding: 15px;
}

.area-filtro{
    margin: 0;
}
.label-filtro{
    font-size: 12px;
    color: rgba(0,0,0,.5);
}

.px-nav-box button
{
    position: relative;
    top: 1px;
    float: right;
    line-height: 18px;
    background: none;
    border: none;
    font-weight: 300;
}
.px-nav-box button i
{
    display: block;
    font-size: 24px;
    padding: 0!important;
    margin: 0!important;
}

.px-nav-dropdown-menu > .px-nav-item.active::after,
.px-nav-item.menu-item.active::after {
    border-right: 10px solid #EBEFF4;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    content: "";
    display: block;
    right: -1px;
    position: absolute;
    top: 12px;
}

.px-nav-dropdown-menu > .px-nav-item.active::after {
    top: 8px;
}

.badge, .label {
    font-size: 80%;
}

.small, small {
    font-size: 85%!important;
}

.form-control {
    border-radius: 0!important;
}

/*Modal Môdulo*/
.conteudo
{
    position: relative;
    width: 100%;
    height: 200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    margin: 0px;
    grid-gap: 10px;
}
.conteudo .caixa
{
    position: relative;
    width: 100%;
    display: grid;
    padding: 20px 5px;
    place-items: center;
    border: 1px solid  rgba(0,0,0,0.09);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: 0.5s;
    border-radius: 5px;
}
.conteudo .caixa:hover
{
    background: rgba(0,0,0,0.8);
    color: #fff;
}
.conteudo .caixa.active
{
    background: #248cd2;
    color: #fff;
}
.conteudo .caixa > i
{
    font-size: 45px;
}
.conteudo .caixa span
{
    text-transform: uppercase;
}
.conteudo .caixa form
{

}
.conteudo .caixa form button.btn
{
    font-size: 13px!important;
    cursor: pointer;
}
.conteudo .caixa.active form button.btn
{
    background: #fff;
    color: #248cd2;
    border-color: #fff;
}

li.list-group-item a h4{
    margin-top: 10px!important;
    margin-bottom: 5px!important;
}

li.list-group-item small{
    display: block;
    padding-bottom: 8px!important;
}

.fa-10x{font-size: 172px!important}

.titulo-formulario{
	border-bottom: 1px solid #d5d5d5;
	padding-bottom: 8px;
	margin-bottom: 25px;
	color: #2B8BCB;
}

a[href="#top"]{
    position: fixed;
    bottom: 50px;
    right: 10px;
    font-size: 22px;
    width: 35px;
    height: 35px;
    padding: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    outline: none!important;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 19;
}
a[href="#top"]:hover{
    text-decoration:none;
}
a[href="#top"] img{
    width: 100%;
}

dl dt{
    color: #777!important;
}

dl.dl-horizontal.area-visualizando{

}
dl.dl-horizontal.area-visualizando dt{
    font-size: 12.5px;
}
dl.dl-horizontal.area-visualizando dd{
    display: block;
    font-size: 14.5px;
}
dl.dl-horizontal.dl-sm dd{
    margin-bottom: 0px!important;
}

.titulo-sessao-formulario{
	margin-left: 0!important;
    margin-bottom: 15px;
}
.titulo-sessao-formulario p{
	font-size: 16px;
	font-weight: bold;
	padding-bottom: 2px!important;
	margin-bottom: 2px!important;
}

.subtitulo-sessao-formulario{
	margin-left: 0px;
}
.subtitulo-sessao-formulario p{
	font-size: 14px;
	font-weight: bold;
	padding-bottom: 2px!important;
	margin-bottom: 2px!important;
}

table.tabela-lista-registros{
    width: 100%;
    margin-top: -15px;
    margin-bottom: 20px;
}

table.tabela-lista-registros tr th{
    color: #777!important;
    text-align: right!important;
    font-size: 13px!important;
    padding: 5px 10px 0 0;
    font-weight:  normal!important;
    vertical-align: bottom!important;
}

table.tabela-lista-registros tr td{
    font-size: 14px!important;
    border-bottom: 1px #f1f1f1 solid;
    padding: 5px 0 0 0;
    font-weight: bold;
}

table.tabela-lista-registros tr td.off-border-bottom{
    border-bottom: 1px #fff solid!important;
}


#toast-container{
    width: 400px
}

#toast-container .toast{
    width: 100%
}

#toast-container .toast .toast-title{
    font-size: 14px;
}

.area-modulos{
    text-align: center;
    border: 1px solid rgba(0,0,0,.07);
    padding: 5px;
    background-color: #F6F6F6;
    width: 100%;
    margin: 0 auto;
}

.area-modulos i{
    font-size: 45px;
    color: #444;
}

.area-modulos span{
    display: block;
    font-size: 16px;
    color: #444;
}

.px-content{padding-bottom: 210px;}
.page-header-form .input-group-addon,
.page-header-form .form-control {
    background: rgba(0,0,0,.05);
}
.DT-lf-right {
    width: 100%;
    float: left!important;
}
.DT-lf-right .DT-search{
    float: right!important;
}
.DT-search .form-control{
    width: 350px!important;
}
table tr th{
    font-size: 12px!important;
    background-color: rgba(0,0,0,.05);
    vertical-align: middle!important;
}
table tr td{
    font-size: 12.5px;
}
textarea {
    resize: none !important;
}
.mensagem-error{
    color: red;
    font-weight: bold;
    font-size: 12px;
}
dd, dt{
    height: 25px;
}

.form-pesquisar .form-group{
    border: none!important;
    padding: 0!important;
}

.grade-pesquisa{
    margin-bottom: 10px;
}
.grade-pesquisa .list-group-item-text{
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,.03);
    padding-bottom: 3px;
    margin-bottom: 3px;
}
.grade-pesquisa .list-group-item-text span{
    font-weight: 600;
    display: block;
    height: 20px;
}
.grade-pesquisa .list-group-item-text small{
    display: block;
    color: #888;
}
.table{
    margin-bottom: 0!important;
}
ul.lista-exibir{margin-left: 55px}
ul.lista-exibir li{font-size: 13px!important;font-weight: bold!important;padding: 0}
ul.lista-exibir li small{font-weight: normal;font-size: 13px!important;}
ul.lista-exibir li.li-titulo{padding: 10px 0 5px 0;list-style: none;margin-left: -40px;font-size: 14px!important;font-weight: 500;}
ul.lista-exibir li.li-divisor{padding: 7.5px 0;list-style: none;}
.align-items-center{
    display: flex;
    align-items: center!important
}

/* =============================
   MARGINS - proporcional maior
============================= */

/* Margin Top */
.m-t-1 { margin-top: 0.5rem; }
.m-t-2 { margin-top: 1rem; }
.m-t-3 { margin-top: 1.5rem; }
.m-t-4 { margin-top: 2rem; }
.m-t-5 { margin-top: 2.5rem; }

/* Margin Bottom */
.m-b-1 { margin-bottom: 0.5rem; }
.m-b-2 { margin-bottom: 1rem; }
.m-b-3 { margin-bottom: 1.5rem; }
.m-b-4 { margin-bottom: 2rem; }
.m-b-5 { margin-bottom: 2.5rem; }

/* Margin Left */
.m-l-1 { margin-left: 0.5rem; }
.m-l-2 { margin-left: 1rem; }
.m-l-3 { margin-left: 1.5rem; }
.m-l-4 { margin-left: 2rem; }
.m-l-5 { margin-left: 2.5rem; }

/* Margin Right */
.m-r-1 { margin-right: 0.5rem; }
.m-r-2 { margin-right: 1rem; }
.m-r-3 { margin-right: 1.5rem; }
.m-r-4 { margin-right: 2rem; }
.m-r-5 { margin-right: 2.5rem; }

/* Margin All Sides */
.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }
.m-5 { margin: 2.5rem; }

/* =============================
   PADDINGS - proporcional maior
============================= */

/* Padding Top */
.p-t-1 { padding-top: 0.5rem; }
.p-t-2 { padding-top: 1rem; }
.p-t-3 { padding-top: 1.5rem; }
.p-t-4 { padding-top: 2rem; }
.p-t-5 { padding-top: 2.5rem; }

/* Padding Bottom */
.p-b-1 { padding-bottom: 0.5rem; }
.p-b-2 { padding-bottom: 1rem; }
.p-b-3 { padding-bottom: 1.5rem; }
.p-b-4 { padding-bottom: 2rem; }
.p-b-5 { padding-bottom: 2.5rem; }

/* Padding Left */
.p-l-1 { padding-left: 0.5rem; }
.p-l-2 { padding-left: 1rem; }
.p-l-3 { padding-left: 1.5rem; }
.p-l-4 { padding-left: 2rem; }
.p-l-5 { padding-left: 2.5rem; }

/* Padding Right */
.p-r-1 { padding-right: 0.5rem; }
.p-r-2 { padding-right: 1rem; }
.p-r-3 { padding-right: 1.5rem; }
.p-r-4 { padding-right: 2rem; }
.p-r-5 { padding-right: 2.5rem; }

/* Padding All Sides */
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

#main-navbar li a.btn.btn-sm{
    line-height: initial!important;
    padding: 5px 10px;
}
#main-navbar .btn-xs{
    line-height: initial!important;
    padding: 5px 10px;
}

.nav-tabs > li > a:focus{
    outline: none!important;
}

.d-flex{
    display: flex;
} 
.justify-content-between{
    justify-content: space-between;
} 
.align-items-center{
    align-items: center;
}
