@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600;700;800;900&display=swap');

.sidebar-lateral {
    position: fixed;
    left: 0;
    top: 72px;
    width: 60px;
    height: calc(100vh - 72px);
    background: #13385c;
    z-index: 1000;
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.sidebar-icon {
    width: 60px;
    height: 55px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    padding: 10px;
    transition: all 0.2s;
}

.sidebar-icon:hover,
.sidebar-icon.active {
    box-shadow: inset 0px 0px 4px 2px rgba(255,255,255,0.5);
}

.sidebar-filter {
    position: fixed;
    z-index: 999;
    background: #13385c;
    left: 60px;
    width: 480px;
    height: calc(100vh - 72px);
    margin-top: 72px;
    transition: transform 0.3s ease;
    transform: translateX(-540px);
    overflow: hidden;
    border-left: 2px solid rgba(255,255,255,0.2);
}

.sidebar-filter.open {
    transform: translateX(0);
}

.settings-panel {
    position: fixed;
    left: 60px;
    top: 72px;
    width: 480px;
    height: calc(100vh - 72px);
    background: #13385c;
    z-index: 999;
    transform: translateX(-540px);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-left: 2px solid rgba(255,255,255,0.2);
}

.settings-panel.open {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5% 5px 5%;
    background: #13385c;
    position: relative;
    z-index: 10;
}

.panel-header h3 {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-weight: bold;
    font-size: 21px;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 1px;
}

.close-panel {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 35px;
    padding: 0;
    line-height: 1;
}

.close-panel:hover {
    color: #ffffff;
}

.filter-content-wrapper {
    width: calc(90% - 20px);
    height: calc(100% - 110px);
    margin-left: 5%;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 15px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.filter-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.filter-content-wrapper::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
}

.filter-content-wrapper::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(204,204,204,0.5);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

.sidebar-filter .container-texto,
.settings-panel .container-texto {
    width: 100%;
    float: left;
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    margin-top: 20px !important;
    position: relative;
    padding-left: 0;
}

.sidebar-filter .container-texto:first-child,
.settings-panel .container-texto:first-child {
    margin-top: 10px !important;
}

.sidebar-filter .container-texto > label,
.settings-panel .container-texto > label {
    font-size: 16px;
    color: #FFF;
    margin-bottom: 4px;
    display: block;
    padding-left: 12px;
}

.select-label,
.select-label-arrow {
    font-size: 16px;
    color: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.2s ease;
    user-select: none;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

.select-label:hover,
.select-label-arrow:hover {
    opacity: 0.85;
}

.arrow-icon {
    width: 10px;
    height: 8px;
    background-image: url('assets/img/ordenar_with_down01.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    transition: background-image 0.2s ease;
    flex-shrink: 0;
}

.select-label.active .arrow-icon,
.select-label-arrow.active .arrow-icon {
    background-image: url('assets/img/ordenar_with_up01.png');
}

.sidebar-filter .container-campo,
.settings-panel .container-campo {
    float: left;
    width: 100%;
    padding-top: 5px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 6px !important;
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.container-campo-data {
    width: calc(50% - 6px);
    float: left;
}

.date-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-form-gw {
    width: calc(100% - 42px);
    height: 32px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    background: #ffffff;
    color: #333333;
    box-sizing: border-box;
    font-family: sans-serif;
}

.calendar-icon-btn {
    width: 34px;
    height: 36px;
    min-width: 34px;
    min-height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.calendar-icon-btn:hover {
    opacity: 0.7;
}

.calendar-icon-btn img {
    width: 34px;
    height: 36px;
    display: block;
}

.sidebar-filter .form-control.js-example-basic-multiple,
.settings-panel .form-control.js-example-basic-multiple {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: text;
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    min-height: 32px;
    width: 100%;
    padding-left: 10px;
}

.select2-container {
    width: 100% !important;
}

.sidebar-filter .select2-container,
.settings-panel .select2-container {
    margin-left: 0 !important;
    width: 100% !important;
}

.sidebar-filter .select2-container--default .select2-selection--multiple,
.settings-panel .select2-container--default .select2-selection--multiple {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #aaa !important;
    border-radius: 4px !important;
    cursor: text !important;
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif !important;
    min-height: 32px !important;
    padding-left: 10px !important;
    width: 100% !important;
    margin-left: 0 !important;
}

.sidebar-filter .select2-container--default .select2-selection--multiple .select2-selection__rendered,
.settings-panel .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: #333333;
}

.sidebar-filter .select2-container .select2-selection--multiple,
.settings-panel .select2-container .select2-selection--multiple {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4;
    color: #333333;
    border: 1px solid #aaa;
}

.select2-results__option {
    color: #333333;
}

.container-bt-consulta {
    width: 100%;
    float: left;
    text-align: center;
    margin-top: 12px;
    padding-bottom: 10px;
}

.searchButton {
    color: #FFF !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 11px 32px 11px 50px !important;
    border-radius: 4px !important;
    background: #057899 url("assets/img/icon-search.png") no-repeat 18px center !important;
    background-size: 16px 16px !important;
    border: 0 !important;
    cursor: pointer !important;
    font-family: sans-serif !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.searchButton:hover {
    background-color: #0a556a !important;
    background-image: url("assets/img/icon-search.png") !important;
}

.ajustes-wrapper {
    width: calc(90% - 20px);
    margin-left: 5%;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 15px;
}

.lb-filtros-ajustes {
    color: #FFF;
    font-family: sans-serif;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
}

.select-atualizar-resultados {
    width: 100%;
    height: 30px;
    background: #ffffff;
    color: #333333;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 10px;
    font-size: 13px;
    font-family: sans-serif;
    margin-top: 5px;
}

.refresh-status {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    text-align: center;
}

.refresh-status small {
    color: #b8cfe0;
    font-size: 13px;
    font-family: sans-serif;
}

#page-content-wrapper {
    width: 100%;
    transition: width 0.3s, margin-left 0.3s;
    box-sizing: border-box;
}

body.panel-open #page-content-wrapper {
    width: calc(100% - 540px);
    margin-left: 540px;
    transition: width 0.3s, margin-left 0.3s;
}

body.panel-open #wrapper {
    padding-left: 0;
}

body.panel-open .container-fluid {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .sidebar-filter,
    .settings-panel {
        width: calc(100vw - 60px);
    }

    .sidebar-filter .container-campo,
    .settings-panel .container-campo {
        flex-wrap: wrap;
    }

    .container-campo-data {
        width: 100%;
        margin-bottom: 10px;
    }
}