 /*Personalizado*/
 @media(max-width:767px) {
     .desktop {
         display: none;
     }

     .mobile {
         display: block !important;
     }
 }

 /* Centralizado e com a aparência solicitada */
 .main-header .navbar { position: relative; }

 #painel_simulacao{
     position: absolute;
     left: 50%;
     top: 50%;
     transform: translate(-70%, -50%);
     font-weight: bold;
     color: #000;
     background-color: #ffff00;
     padding: 0 60px;
     border-radius: 4px;

     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     pointer-events: none;
     z-index: 1;

     font-size: clamp(12px, 2.1vw, 16px);
     max-width: 70vw;
 }

 /* Ajustes em telas menores */
 @media (max-width: 768px){
     #painel_simulacao{
         font-size: 13px;
         padding: 0 40px;
         transform: translate(-50%, -50%);
     }
 }
 @media (max-width: 480px) {
     #painel_simulacao {
         font-size: 12px;
         padding: 0 28px;
     }
 }

 /*Fim Personalizado*/

/* Remove sombra da barra lateral (AdminLTE) */
 .elevation-4 {
     box-shadow: none !important;
 }

 .sidebar {
     border-right: 1px solid #dee2e6 !important;
 }



html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 10px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 0;
    display: inline-block;
    line-height: 1;
    padding-left: 6px;
    font-size: 12px;
}

a.asc:after {
    content: "▲";
}

a.desc:after {
    content: "▼";
}

.sort-numerical a.asc:after {
    content: "▲";
}

.sort-numerical a.desc:after {
    content: "▼";
}

.sort-ordinal a.asc:after {
    content: "▲";
}

.sort-ordinal a.desc:after {
    content: "▼";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.form-group.has-error .form-control,
.form-control.is-invalid {
    border-color: #dc3545 !important;
}

.form-group.has-error .help-block,
.invalid-feedback,
.help-block.help-block-error {
    color: #dc3545 !important;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {

    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

 .table-responsive {
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
 }

 @media (max-width: 768px) {
     .table-responsive {
         width: 100%;
         margin-bottom: 15px;
         overflow-y: hidden;
         -ms-overflow-style: -ms-autohiding-scrollbar;
         /* Remover a borda */
         border: none;
     }

     .table-responsive > .table {
         margin-bottom: 0;
     }

     .table-responsive > .table > thead > tr > th,
     .table-responsive > .table > tbody > tr > th,
     .table-responsive > .table > tfoot > tr > th,
     .table-responsive > .table > thead > tr > td,
     .table-responsive > .table > tbody > tr > td,
     .table-responsive > .table > tfoot > tr > td {
         white-space: nowrap;
     }
 }

 .custom-gridview th a {
     color: #333
 }

 .custom-gridview th a:hover {
     color: #869099 !important;
 }

 .custom-gridview .table-striped > tbody > tr:nth-of-type(odd) > * {
     color: #333;
 }

 /* Estilos específicos para evitar a interferência do Bootstrap */
 .custom-gridview .table > :not(caption) > * > * {
     padding: 0.5rem 0.5rem;
     color: #333;
     background-color: transparent !important;
     border-bottom-width: 1px;
     box-shadow: none;
 }

 /* Estilos para links dentro da tabela */
 .custom-gridview th a {
     color: #333;
     text-decoration: none;
 }

 .custom-gridview th a:hover {
     color: #869099 !important;
 }

 /* Estilos para linhas zebras */
 .custom-gridview.table-striped > tbody > tr:nth-of-type(odd) > * {
     color: #333;
     background-color: transparent !important;
 }

 .custom-gridview .table.table-bordered {
     border-collapse: separate;
     border-spacing: 0;
     border-radius: 6px;
     overflow: hidden;
 }

 /* Paginação */
 .pagination-container {
     display: flex;
     justify-content: center;
     width: 100%;
     margin-top: 20px;
 }

 .pagination {
     display: flex;
     list-style: none;
     padding: 0;
     margin: 0;
     border-radius: .25rem;
 }

 .page-link {
     position: relative;
     display: block;
     padding: .5rem .75rem;
     margin: 0 .25rem;
     line-height: 1.25;
     color: #007bff;
     background-color: #fff;
     border: 1px solid #dee2e6;
     border-radius: .25rem;
     text-decoration: none;
     transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
 }

 .page-link:hover {
     z-index: 2;
     color: #0056b3;
     background-color: #e9ecef;
     border-color: #dee2e6;
 }

 .page-link.active,
 .page-item.active .page-link {
     z-index: 3;
     color: #fff;
     background-color: #007bff;
     border-color: #007bff;
 }

 .page-link.disabled {
     color: #6c757d;
     pointer-events: none;
     background-color: #fff;
     border-color: #dee2e6;
 }

 .page-item.disabled {
     display: none;
 }

 .period-filter {
     display: flex;
     justify-content: space-between;
     gap: 12px;
     flex-wrap: wrap;
     align-items: flex-end;
     margin-bottom: 12px;
     padding: 12px 14px;
     border: 1px solid #dce3ea;
     border-radius: 8px;
     background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
 }

 .period-filter__form {
     display: flex;
     gap: 12px;
     align-items: flex-end;
     flex-wrap: wrap;
     margin: 0;
 }

 .period-filter__fields {
     display: flex;
     gap: 10px;
     align-items: flex-end;
     flex-wrap: wrap;
 }

 .period-filter__group {
     min-width: 145px;
 }

 .period-filter__label {
     display: block;
     margin: 0 0 4px;
     font-size: 12px;
     font-weight: 600;
     color: #55606c;
     letter-spacing: .03em;
 }

 .period-filter__input {
     height: 34px;
     padding: 6px 10px;
     border-color: #cad4df;
 }

 .period-filter__input:focus {
     border-color: #5f91c8;
     box-shadow: 0 0 0 2px rgba(36, 105, 180, .15);
 }

 .period-filter__actions {
     display: flex;
     gap: 8px;
     align-items: center;
 }

 .period-filter__actions .btn,
 .period-filter__export .btn {
     height: 34px;
     padding: 6px 12px;
     border-radius: 6px;
 }

 .period-filter__export {
     margin-left: auto;
 }

 @media (max-width: 768px) {
     .period-filter {
         align-items: stretch;
     }

     .period-filter__form,
     .period-filter__fields,
     .period-filter__actions,
     .period-filter__export {
         width: 100%;
     }

     .period-filter__group {
         min-width: 0;
         width: 100%;
     }

     .period-filter__actions {
         justify-content: space-between;
     }

     .period-filter__actions .btn,
     .period-filter__export .btn {
         flex: 1 1 auto;
         text-align: center;
     }
 }

/* Flash message estilo Bootstrap 5 */
.content-wrapper .alert {
    position: relative;
    border-radius: .5rem;
    border: 1px solid transparent;
    padding: 1rem 3rem 1rem 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.content-wrapper .alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.content-wrapper .alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.content-wrapper .alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.content-wrapper .alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.content-wrapper .btn-close {
    position: absolute;
    top: 50%;
    right: .9rem;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    padding: .25rem;
    border: 0;
    border-radius: .25rem;
    background: transparent;
    opacity: .55;
    cursor: pointer;
}

.content-wrapper .btn-close::before,
.content-wrapper .btn-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: .9rem;
    height: 2px;
    background: currentColor;
    transform-origin: center;
}

.content-wrapper .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.content-wrapper .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.content-wrapper .btn-close:hover {
    opacity: .85;
}

