::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #eff7ff;
}

::-webkit-scrollbar-thumb {
    background: #1960ac;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #144e8b;
}

* {
    scrollbar-width: auto;
    scrollbar-color: #1960ac #eff7ff;
}

#chart-container,
#map-container {
    width: 100%;
    height: 100%;
    min-height: 800px;
    min-width: 60px;
    margin: 0 auto;
}

.module {
    background: white;
    border-radius: 8px;
    padding: 10px;
}

#clasnetDisplayTable_wrapper>div:nth-child(3)>div.dt-layout-cell.dt-layout-end>div>nav>ul {
    position: relative;
    background: unset;
}

.chart-type-btn {
    padding: 8px 15px;
    cursor: pointer;
    border: 1px solid #568ce3;
    background-color: #e7f3ff;
    border-radius: 4px;
    font-size: 0.9em;
    color: #144e8b;
}

.chart-type-btn:hover {
    background-color: #b9d9fb;
    transform: translateY(-2px);
}

.chart-type-btn.active {
    background-color: #144e8b;
    color: white;
    border-color: 1px solid #568ce3;
}

#clasnetDisplayTable_wrapper>div:nth-child(3)>div.dt-layout-cell.dt-layout-end>div>nav {
    position: relative;
    background: unset;
}

.nav-tabs {
    overflow-y: auto;
    text-align: center;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.table {
    width: 100%;
    margin: 0 auto;
}

.data-toggle {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    background-color: #e7f3ff;
    border-radius: 4px;
    font-size: 0.9em;
    text-decoration: none;
    color: #144e8b;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #568ce3;
}

.data-toggle:hover {
    background-color: #b9d9fb;
}

.nav-tabs li.active .data-toggle {
    background-color: #144e8b;
    color: white;
    border-color: #144e8b;
}

div.dataTables_wrapper div.dataTables_length select {
    width: auto;
    display: inline-block;
    margin-left: 0.5em;
    margin-right: 0.5em;
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: 0.5em;
    display: inline-block;
    width: auto;
}

div.dataTables_wrapper div.dataTables_paginate {
    display: flex;
    justify-content: center;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    margin: 2px 0;
    white-space: nowrap;
    text-align: center;
    list-style: none;
    display: flex;
    align-items: center;
}

#clasnetDisplayTable_wrapper>div.dt-layout-row.ui-helper-clearfix.dt-layout-table>div {
    overflow-y: auto;
}

#clasnetDisplayTable_paginate .paginate_button.previous.disabled {
    display: none;
}

#clasnetDisplayTable_paginate .paginate_button.next.disabled {
    display: none;
}

#clasnetDisplayTable_paginate .paginate_button {
    display: inline-block;
    margin: 0 2px;
}

#clasnetDisplayTable_paginate .paginate_button a {
    padding: 8px 16px;
    color: #144e8b;
    text-decoration: none;
    border: 1px solid #144e8b;
    border-radius: 8px;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#clasnetDisplayTable_paginate .paginate_button.active a {
    background-color: #144e8b;
    color: #ffffff;
    border-color: #144e8b;
}

#clasnetDisplayTable_paginate .paginate_button:not(.active) a:hover {
    background-color: #568ce3;
    color: #ffffff;
    border-color: #568ce3;
}

#clasnetDisplayTable_previous,
#clasnetDisplayTable_next {
    display: inline-block;
    margin: 0 5px;
}

#clasnetDisplayTable_previous a,
#clasnetDisplayTable_next a {
    padding: 8px 16px;
    color: #144e8b;
    text-decoration: none;
    border: 1px solid #144e8b;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#clasnetDisplayTable_previous a:hover,
#clasnetDisplayTable_next a:hover {
    background-color: #568ce3;
    color: #ffffff;
    border-color: #568ce3;
}

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.tab-pane.active {
    display: block;
    margin-top: 20px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f2f5ff;
    border: 1px solid #144e8b;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    color: #144e8b;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
    color: #568ce3;
}

table.dataTable>tbody>tr {
    background-color: #f2f5ff;
}

table.dataTable.cell-border>tbody>tr>* {
    border-top: 1px solid #568ce34d;
    border-right: 1px solid #568ce34d;
}

table.dataTable.cell-border>tbody>tr>*:first-child {
    border-left: 1px solid #568ce34d;
}

div.dt-container.dt-empty-footer tbody>tr:last-child>* {
    border-bottom: 1px solid #568ce34d;
}

table.dataTable thead th.ui-state-default,
table.dataTable tfoot th.ui-state-default {
    border-left-width: 0;
    border: 1px solid #568ce34d;
    background: #f2f5ff;
    font-weight: bold !important;
    color: #144e8b;
}

table.dataTable.display>tbody>tr:nth-child(odd)>.sorting_1,
table.dataTable.order-column.stripe>tbody>tr:nth-child(odd)>.sorting_1 {
    box-shadow: inset 0 0 0 9999px #dfe8fcb8 !important;
}

table.dataTable.stripe>tbody>tr:nth-child(odd)>*,
table.dataTable.display>tbody>tr:nth-child(odd)>* {
    box-shadow: inset 0 0 0 9999px #dfe8fcb8 !important;
}

div.dt-container .dt-search input {
    border: 1px solid #568ce3;
    border-radius: 4px;
    background-color: #f2f5ff;
    outline: none;
}

div.dt-container .dt-search input:focus {
    border: 1px solid #307fff;
    background: #e5ebff;
}

div.dt-container select.dt-input {
    outline: none;
    background: #f2f5ff;
    border: 1px solid #568ce3;
}

div.dt-container .dt-input {
    border-radius: 4px;
}

div.dt-container .dt-paging .fg-button:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

div.dt-container .dt-paging .fg-button {
    padding: 5px 10px;
    border: 1px solid #568ce3;
    border-radius: 4px;
}

.menu-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.menu-section {
    position: relative;
    margin: 0;
}

.menu-label {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: bold;
}

.menu-input {
    padding: 8px;
    border: 1px solid #568ce3;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    color: #144e8b;
}

.menu-input:hover {
    background-color: #f2f5ff;
}

.menu-input::after {
    content: "▼";
    font-size: 1rem;
    color: #144e8b;
}

.menu-options {
    display: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
    position: absolute;
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1051 !important;
    box-sizing: border-box;
}

.menu-options.show {
    display: block;
}

.menu-option {
    padding: 8px;
    cursor: pointer;
    font-size: 0.875em;
}

.menu-option:hover {
    background-color: #f2f5ff;
}

.menu-option.selected {
    background-color: #e6ecff;
    font-weight: bold;
}

.menu-option label {
    display: flex;
    align-items: center;
}

.menu-option input[type="checkbox"] {
    margin-right: 10px;
}

.update-button {
    padding: 10px;
    background-color: #568ce3;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.update-button:hover {
    background-color: #144e8b;
}

.update-button i {
    margin-left: 8px;
    margin-right: 8px;
}

.menu-option-action {
    color: #568ce3;
    font-style: italic;
    cursor: pointer;
}

.map-filter-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

#clasnetDisplayTable thead tr.column-filters th {
    padding: 1px;
    vertical-align: middle;
}

#clasnetDisplayTable thead tr.column-filters .menu-section.dt-table-filter-menu {
    width: 100%;
    margin: 0;
}

#clasnetDisplayTable thead tr.column-filters input.column-filter-input.menu-input {
    height: auto;
}

.menu-options .table-filter-internal-search {
    width: calc(100% - 16px);
    margin: 5px 8px 8px 8px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 0.9em;
}

.menu-options .table-filter-internal-search:focus {
    border-color: #568ce3;
    outline: none;
}

.menu-options .table-filter-options-list {
    overflow-y: auto;
    padding: 0 0px 5px 0px;
}

.menu-option .menu-option-label-text {
    font-size: 0.875em;
    font-weight: bold;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }

    .update-button {
        grid-column: 1 / 3;
    }
}

@media (max-width: 767px) {
    .menu-input {
        font-size: 14px;
    }

    .menu-options {
        width: 100%;
        left: 0;
    }

    .menu-title {
        font-size: 14px;
    }

    .menu-label {
        font-size: 12px;
    }
}
