/* ═══════════════════════════════════════════════════════
   CODESIAN LAYOUT V3 — Agerpix v2 Design System
   Structural foundation for admin3.html
   ═══════════════════════════════════════════════════════ */

/* ── Reset & global structure ── */
* {
    box-sizing: border-box;
}
html {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}
body {
    font-size: 16px;
    font-family: var(--font, 'museosans', sans-serif);
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    color: var(--color-text, #111827);
    margin: 0;
    padding: 0;
    border: 0;
    background-color: var(--color-bg, #f0f2f5);
}

.app,
.main {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
}

.pickadate_container {
    font-family: var(--font);
}

.leaflet-control-attribution.leaflet-control {
    display: none !important;
}

.wrapper {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.map {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* ── Utility classes ── */
.display_none {
    display: none !important;
}
.table {
    display: table;
    width: 100%;
}
.trow {
    display: table-row;
}
.tcell {
    display: table-cell;
    vertical-align: middle;
}
.text_centered {
    text-align: center;
}
.text_valigned {
    top: 50%;
    transform: translateY(-50%);
    position: relative;
}
.no_border {
    border: 0 !important;
}
.no_mrg_btn {
    margin-bottom: 0 !important;
}

/* ── Animations ── */
.scaled {
    transform: scale(0.8);
}
.has_animation {
    transition: right 0.4s cubic-bezier(0.32,0.72,0,1);
}

/* ── Map base layer selector ── */
.base_layer_selector {
    position: absolute;
    height: 8em;
    width: 8em;
    right: 1em;
    top: 1em;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-sm, 6px);
}

/* ── Bootstrap / navbar ── */
.navbar .nav { margin: 0; }
.navbar .nav > li > .dropdown-menu:before,
.bootstrap-timepicker-widget.dropdown-menu:before {
    top: auto;
    bottom: -7px;
    border-top: 7px solid var(--color-border, #e2e8f0);
    border-bottom: 0;
    border-top-color: rgba(0,0,0,0.15);
}
.navbar .nav > li > .dropdown-menu:after,
.bootstrap-timepicker-widget.dropdown-menu:after {
    top: auto;
    bottom: -6px;
    border-top: 6px solid var(--color-surface, #fff);
    border-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   V1 LEGACY — Bottom toolbar & menus
   Kept for compatibility with shared components.
   These are NOT visible in the v2 admin layout but may
   be referenced by JS modules.
   ═══════════════════════════════════════════════════════ */
.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11000;
    display: flex;
    background-color: var(--color-primary-dark, #0f2e25);
}
.right_padding_cell {
    width: 1.68em;
    background-color: var(--color-primary-dark, #0f2e25);
    height: 6.75em;
    background-image: url(../img/remove.png);
    background-repeat: no-repeat;
    background-size: 0.7em;
    background-position: center;
    cursor: pointer;
}
.menu_selection, .menu_option {
    background-color: var(--color-primary-dark, #0f2e25);
    width: 22em;
    height: 6.75em;
    padding: 1.68em;
    position: relative;
}
.menu_option {
    padding: 1em 1.68em;
    height: 5em;
}
.day_result,
.legend_result {
    padding: 1em 0;
}
.day_result:nth-child(1) {
    padding-top: 0;
}
.menu_option:hover {
    background-color: rgba(255,255,255,0.05);
}
.menu_fill {
    width: 2em;
}

.menu_icon, .day_data_icon, .day_result_icon {
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    float: right;
    margin-right: 1em;
    cursor: pointer;
}
.day_data_icon {
    float: none;
    margin: auto;
}
.menu_icon.disabled,
.day_data_icon.limit_reached {
    background-color: var(--color-text-muted, #9ca3af);
    box-shadow: 0 0 12px 2px rgba(156,163,175,0.3);
}

.menu_title {
    color: var(--color-text, #111827);
    width: 20em;
    height: 1em;
    padding: 0.34em;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
}
.day_result_menu_title,
.legend_result_menu_title {
    width: 15em;
}
.menu_time {
    color: var(--color-text-secondary, #6b7280);
    width: 4em;
    height: 1em;
    padding: 0.34em;
    font-weight: 600;
}

.menu_map_position,
.menu_legend_actions {
    width: 1.7em;
    height: 1em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    cursor: pointer;
}

.legend_menu_tab_btns {
    text-align: center;
}
.legend_menu_tab_btn {
    width: 1.7em;
    height: 1em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    display: inline-block;
}
.legend_menu_tab_btn.disabled {
    opacity: 0.2;
}

.menu_map_position_options,
.menu_legend_actions_options {
    position: absolute;
    left: -0.3em;
    top: 0.05em;
    background-color: var(--color-surface, #fff);
    padding: 0.2em 0.3em;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--color-border, #e2e8f0);
    box-shadow: var(--shadow-md);
}
.menu_map_position_option,
.menu_legend_actions_option {
    width: 1em;
    height: 1em;
    padding: 0.55em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

/* Map position icons */
.menu_map_position_option[option="left"],
.menu_map_position[option="left"],
.legend_menu_tab_btn[option="left"] { background-image: url(../img/icon_map_left.png); }
.menu_map_position_option[option="right"],
.menu_map_position[option="right"],
.legend_menu_tab_btn[option="right"] { background-image: url(../img/icon_map_right.png); }
.menu_map_position_option[option="full"],
.menu_map_position[option="full"],
.legend_menu_tab_btn[option="full"] { background-image: url(../img/icon_map_full.png); }
.menu_map_position_option[option="none"],
.menu_map_position[option="none"] { background-image: url(../img/icon_map_none.png); }
.legend_menu_tab_btn[option="clear"] {
    background-image: url(../img/remove.png);
    position: absolute;
    right: 1em;
}
.legend_menu_tab_btn.disabled[option="clear"] {
    cursor: initial !important;
}

.menu_legend_actions[option="open_legend_actions"],
.menu_legend_actions_option[option="open_legend_actions"] {
    background-image: url(../img/main_menu_action_icon.png);
    background-size: 0.18em;
}
.menu_legend_actions_option[option="toggle"] {
    background-image: url(../img/show.png);
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}
.menu_legend_actions_option[option="toggle"][status="show"] {
    background-image: url(../img/hide.png);
    margin-bottom: 0.1em;
}
.menu_legend_actions_option[option="style"] {
    background-image: url(../img/action_styles.png);
    background-size: 1em;
    margin-bottom: 0.3em;
}
.menu_legend_actions_option[option="remove"] {
    background-image: url(../img/remove.png);
    margin-bottom: 0.1em;
    background-size: 0.8em;
}

.menu_description_wrapper {
    height: 1.68em;
    padding-left: 0.34em;
}
.menu_description {
    color: var(--color-text-muted, #9ca3af);
    font-size: 0.65em;
    font-weight: bold;
    cursor: pointer;
}
.menu_description strong {
    color: var(--color-text-secondary, #6b7280);
}
.no_results {
    color: var(--color-text-muted, #9ca3af);
    padding: 1.8em 0.5em;
    font-size: 0.9em;
    font-family: var(--font);
}

.toolbar {
    flex-grow: 1;
    display: flex;
    width: calc(100% - 23.68em);
    max-width: calc(100% - 23.68em);
    position: relative;
}
.main_actions,
.map_actions {
    height: 6.75em;
    width: 3.375em;
}
.main_actions > div,
.map_actions > div {
    cursor: pointer;
    position: relative;
}
.main_actions > div.disabled::after,
.map_actions > div.disabled::after {
    cursor: initial;
    opacity: 0.2;
}
.main_actions .action_one,
.map_actions .action_one {
    height: 3.375em;
    width: 3.375em;
    background-color: var(--color-primary-dark, #0f2e25);
}
.main_actions > div::after,
.map_actions > div::after {
    content: "";
    background-size: 1em;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    top: 0; left: 0; bottom: 0; right: 0;
    position: absolute;
}
.action_one[action="styles"]::after,
.action_one[action="legend"]::after {
    background: url(../img/action_styles.png) no-repeat center;
    background-size: 1.4em;
}
.main_actions .action_two,
.map_actions .action_two {
    height: 3.375em;
    width: 3.375em;
    background-color: var(--color-primary, #1a4d3e);
}
.action_two[action="filters"]::after {
    background: url(../img/action_filters.png) no-repeat center;
    background-size: 1.1em;
}
.action_two[action="clear_map"]::after {
    background: url(../img/remove.png) no-repeat center;
    background-size: 1.1em;
}
.main_actions[block="two"] .action_one {
    background-color: var(--color-primary, #1a4d3e);
}
.main_actions[block="two"] .action_two {
    background-color: var(--color-primary-dark, #0f2e25);
}
.action_one[action="new"]::after {
    background: url(../img/action_new.png) no-repeat center;
    background-size: 1.3em;
}
.action_two[action="export"]::after {
    background: url(../img/action_export.png) no-repeat center;
    background-size: 1.6em;
}

/* ── Menus ── */
.main_menu {
    position: absolute;
    bottom: 6.75em;
    left: 0;
    right: 0;
}
.second_menu,
.data_edit_menu,
.timeline_menu {
    position: absolute;
    bottom: 6.75em;
    left: 6.75em;
}
.legend_menu {
    position: absolute;
    bottom: 6.75em;
    right: 0.1em;
}

.main_menu_header,
.second_menu_header,
.data_edit_menu_header,
.timeline_menu_header,
.legend_menu_header {
    background-color: var(--color-accent, #34d399);
    padding: 1.75em;
    color: #fff;
    width: 22em;
    padding-bottom: 0;
    border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
    font-family: var(--font);
}
.data_edit_menu_header {
    width: 66em;
    background-color: var(--color-primary, #1a4d3e);
    padding-bottom: 0.75em;
}
.second_menu_header {
    background-color: var(--color-primary, #1a4d3e);
    padding-bottom: 1.75em;
}
.timeline_menu_header,
.legend_menu_header {
    background-color: var(--color-primary-light, #25644f);
    padding-bottom: 1.75em;
}

.main_menu_icon,
.second_menu_icon,
.data_edit_menu_icon,
.timeline_menu_icon,
.legend_menu_icon {
    background-image: url(../img/main_menu_icon.png);
    background-size: 1em;
    background-position: center;
    background-repeat: no-repeat;
    height: 1.43em;
    width: 1em;
}
.main_menu_action_icon,
.second_menu_action_icon,
.data_edit_menu_action_icon,
.timeline_menu_action_icon,
.legend_menu_action_icon {
    background-image: url(../img/remove.png);
    background-size: 0.9em;
    background-position: center;
    background-repeat: no-repeat;
    height: 1.43em;
    width: 1em;
    cursor: pointer;
}
.main_menu_title,
.second_menu_title,
.data_edit_menu_title,
.timeline_menu_title,
.legend_menu_title {
    font-size: 1.43em;
    color: #fff;
    text-align: center;
    font-family: var(--font);
}
.main_menu_desc_wp {
    padding: 1.3em 0;
}
.main_menu_desc {
    font-size: 0.75em;
}
.main_menu_header_bottom {
    background-image: url(../img/menu_bottom.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 3em;
    width: 22em;
    background-color: var(--color-primary-dark, #0f2e25);
}
.second_menu_header_bottom {
    background-image: url(../img/menu_bottom_styles.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 3em;
    width: 22em;
    background-color: var(--color-primary-dark, #0f2e25);
}
.data_edit_menu_header_bottom {
    background-image: url(../img/menu_bottom_data_edit.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 4em;
    width: 66em;
    background-color: var(--color-primary-dark, #0f2e25);
}
.timeline_menu_header_bottom,
.legend_menu_header_bottom {
    background-image: url(../img/menu_bottom_data.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 3em;
    width: 22em;
    background-color: var(--color-primary-dark, #0f2e25);
}

.second_menu_content,
.timeline_menu_content,
.legend_menu_content {
    width: 22em;
    max-width: 22em;
    background-color: var(--color-surface, #fff);
    max-height: 25em;
    position: relative;
    overflow: hidden;
    height: 25em;
    border: 1px solid var(--color-border, #e2e8f0);
}
.data_edit_menu_content {
    width: 66em;
    max-width: 66em;
    background-color: var(--color-surface, #fff);
    max-height: 25em;
    position: relative;
    overflow: hidden;
    height: 25em;
    border: 1px solid var(--color-border, #e2e8f0);
}
.vertical_scroll {
    overflow-y: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1em 1.68em;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.timeline_menu_content .vertical_scroll,
.legend_menu_content .vertical_scroll {
    padding-top: 0;
}
.menu_paginator {
    background-color: var(--color-surface, #fff);
    height: 2em;
    text-align: center;
    border-top: 1px solid var(--color-border-light, #f1f5f9);
}
.menu_paginator_icon {
    background-image: url(../img/menu_paginator.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 0.75em;
    width: 0.75em;
    display: inline-block;
    margin: 0 0.5em;
    cursor: pointer;
    opacity: 0.4;
}
.menu_paginator_icon.active {
    opacity: 1;
}

/* ── Timeline ── */
.time_line {
    display: flex;
    align-items: flex-end;
    background-color: var(--color-bg, #f0f2f5);
    width: calc(100% - 10.125em);
    max-width: calc(100% - 10.125em);
}
.day_data {
    width: 2em;
    padding: 0.15em 0;
    text-align: center;
    border: 1px solid transparent;
}
.day {
    width: 2em;
    padding: 0;
    text-align: center;
    color: var(--color-text-muted, #9ca3af);
    background-color: var(--color-bg, #f0f2f5);
    font-weight: bold;
    cursor: pointer;
}
.day.odd {
    background-color: var(--color-surface, #fff);
}
.day.even {
    background-color: var(--color-bg, #f0f2f5);
}
.day_line {
    font-size: 0.7em;
    padding-bottom: 0.2em;
    border-top: 1px solid var(--color-border, #e2e8f0);
}
.empty_row {
    display: none;
}
.month {
    padding: 0.2em 0;
    background-color: var(--color-text-muted, #9ca3af);
    color: #fff;
    font-weight: bold;
    text-indent: 0.5em;
}
.month.odd {
    background-color: var(--color-surface, #fff);
    color: var(--color-text-secondary, #6b7280);
}
.month.even {
    background-color: var(--color-bg, #f0f2f5);
    color: var(--color-text-secondary, #6b7280);
}
.day, .month, .day_data {
    display: inline-block;
    box-sizing: border-box;
    font-family: var(--font);
}
.month_txt {
    font-size: 0.7em;
    padding: 0.15em 0;
    text-transform: uppercase;
}
.day_txt {
    font-size: 0.9em;
    padding: 0 0 0.2em 0;
    color: var(--color-text-muted, #9ca3af);
}
.timeline_wp {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.75em;
}
.day_selected,
.day_selected .day_line,
.day_selected .day_txt {
    color: var(--color-primary, #1a4d3e) !important;
    font-weight: 700;
}
.time_line_loader {
    width: 100%;
    height: 6.75em;
    display: flex;
    align-items: center;
}
.loader_icon {
    background-image: url(../img/loading.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 3em;
    height: 3em;
    margin: auto;
}

/* ═══════════════════════════════════════════════════════
   FORM FIELDS
   ═══════════════════════════════════════════════════════ */
.cmp {
    background-color: var(--color-surface, #fff);
    padding: 1.5em 1em;
    border-radius: var(--radius-sm, 6px);
    margin-bottom: 0.5em;
    border: 1px solid var(--color-border, #e2e8f0);
}
.lbl {
    color: var(--color-text-secondary, #6b7280);
    font-size: 0.8125em;
    font-weight: 700;
    padding-bottom: 1em;
    font-family: var(--font);
}
.input {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}
.help {
    color: var(--color-text-muted, #9ca3af);
    font-size: 0.6875em;
    font-weight: bold;
}
.select_main {
    color: var(--color-text, #111827);
    font-size: 0.875em;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
}
.select_option {
    color: var(--color-text, #111827);
    font-size: 0.875em;
    font-weight: 600;
    cursor: pointer;
    margin: 0.3em 0;
    background-color: var(--color-bg, #f0f2f5);
    padding: 0.5em;
    border-radius: var(--radius-xs, 4px);
}

/* ── Form content ── */
.form_content .cmp {
    display: inline-block;
}
.form_content .control {
    padding-top: 0.5em;
}
.form_content .cmp[f-type="FieldText"],
.form_content .cmp[f-type="FieldPassword"],
.form_content .cmp[f-type="FieldDate"],
.form_content .cmp[f-type="FieldBoolean"],
.form_content .cmp[f-type="FieldRelationOne"] {
    width: 32%;
    margin: 1em 0.5%;
}
.form_content .cmp[f-type="FieldRelationMany"] {
    width: 65.4%;
    margin: 1em 0.5%;
}
.form_content .cmp[f-type="FieldTextArea"] {
    width: 99%;
    margin: 1em 0.5%;
}
.form_content .cmp[f-type="FormButton"] {
    width: 32%;
    margin: 1em 0.5%;
    float: right;
    background-color: var(--color-primary, #1a4d3e);
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm, 6px);
    font-family: var(--font);
}

input[type="text"],
textarea {
    width: 100%;
    background: transparent;
    color: var(--color-text, #111827);
    resize: none;
    border: 0 none;
    outline: none;
    font-family: var(--font);
}

/* Chosen select (legacy plugin) */
.chosen-container-single .chosen-single,
.chosen-container-active.chosen-with-drop .chosen-single {
    background: none;
    background-color: var(--color-surface, #fff) !important;
    color: var(--color-text, #111827) !important;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-xs, 4px);
}
.chosen-container .chosen-drop {
    background-color: var(--color-surface, #fff) !important;
    color: var(--color-text, #111827) !important;
    border: 1px solid var(--color-border, #e2e8f0);
}
.chosen-container .chosen-results li {
    color: var(--color-text, #111827);
}
input.chosen-search-input {
    color: var(--color-text, #111827);
}
li.no-results {
    color: var(--color-text-muted, #9ca3af) !important;
    background-color: var(--color-surface, #fff) !important;
}

/* ── Validation animation ── */
.invalid_input {
    animation: changeShadow 1s infinite alternate linear;
}
@keyframes changeShadow {
    from { box-shadow: 0 4px 2px -2px transparent; }
    to   { box-shadow: 0 4px 2px -2px var(--color-danger, #dc2626); }
}

/* ── Color ramps ── */
.color_ramp_1 {
    background: linear-gradient(90deg, rgb(183,121,135), rgb(38,221,118), rgb(38,221,218));
    height: 1.3em;
    cursor: pointer;
    border-radius: 3em;
}
.color_ramp_2 {
    background: linear-gradient(90deg, rgb(83,21,235), rgb(78,121,78), rgb(38,221,218));
    height: 1.3em;
    cursor: pointer;
    border-radius: 3em;
}
.color_ramp_3 {
    background: linear-gradient(90deg, rgb(93,91,95), rgb(38,221,118), rgb(48,21,28), rgb(183,221,35));
    height: 1.3em;
    cursor: pointer;
    border-radius: 3em;
}
.color_ramp_4 {
    background: linear-gradient(90deg, rgb(43,61,135), rgb(138,121,218), rgb(38,221,8));
    height: 1.3em;
    cursor: pointer;
    border-radius: 3em;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE FONT SCALING
   ═══════════════════════════════════════════════════════ */
@media screen and (min-width: 1000px) and (max-width: 1200px) {
    body { font-size: 15px; }
}
@media screen and (min-width: 800px) and (max-width: 999px) {
    body { font-size: 15px; }
}
@media screen and (min-width: 600px) and (max-width: 799px) {
    body { font-size: 14px; }
}
@media screen and (min-width: 400px) and (max-width: 599px) {
    body { font-size: 13px; }
}
@media screen and (min-width: 330px) and (max-width: 399px) {
    body { font-size: 13px; }
}
@media screen and (max-width: 329px) {
    body { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════
   MAP PANELS (dual-map compare)
   ═══════════════════════════════════════════════════════ */
.map_left {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    background-color: transparent;
}
.map_right {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9995;
    background-color: transparent;
}
.map_divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1em;
    background-color: transparent;
    z-index: 10100 !important;
    cursor: e-resize;
}
.map_divider_inner {
    background-color: var(--color-border, #e2e8f0);
    height: 100%;
    width: 3px;
    margin: auto;
}

/* ═══════════════════════════════════════════════════════
   ADMIN V2 LAYOUT FOUNDATION
   ═══════════════════════════════════════════════════════ */
.admin-layout {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    overflow: hidden;
}
.admin-sidebar,
.admin-main {
    position: relative;
    overflow: hidden;
}
.admin-content {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.admin-map {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: auto !important;
}
body.admin-v2 {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   DARK THEME OVERRIDES
   ═══════════════════════════════════════════════════════ */
[data-theme="dark"] body {
    color: var(--color-text);
    background-color: var(--color-bg);
}
[data-theme="dark"] .cmp {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}
[data-theme="dark"] .select_option {
    background-color: var(--color-bg);
    color: var(--color-text);
}
[data-theme="dark"] input[type="text"],
[data-theme="dark"] textarea {
    color: var(--color-text);
}
[data-theme="dark"] .chosen-container-single .chosen-single,
[data-theme="dark"] .chosen-container-active.chosen-with-drop .chosen-single {
    background-color: var(--color-surface) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border);
}
[data-theme="dark"] .chosen-container .chosen-drop {
    background-color: var(--color-surface) !important;
    color: var(--color-text) !important;
    border-color: var(--color-border);
}
[data-theme="dark"] .chosen-container .chosen-results li {
    color: var(--color-text);
}
[data-theme="dark"] .second_menu_content,
[data-theme="dark"] .timeline_menu_content,
[data-theme="dark"] .legend_menu_content,
[data-theme="dark"] .data_edit_menu_content {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}
[data-theme="dark"] .vertical_scroll {
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
[data-theme="dark"] .menu_paginator {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}
[data-theme="dark"] .map_divider_inner {
    background-color: var(--color-border);
}
[data-theme="dark"] .day {
    background-color: var(--color-bg);
    color: var(--color-text-muted);
}
[data-theme="dark"] .day.odd {
    background-color: var(--color-surface);
}
[data-theme="dark"] .day.even {
    background-color: var(--color-bg);
}
[data-theme="dark"] .day_selected,
[data-theme="dark"] .day_selected .day_line,
[data-theme="dark"] .day_selected .day_txt {
    color: var(--color-accent, #34d399) !important;
}
