/* Style riêng cho trang Chuyển hệ tọa độ & Thiết kế bản đồ (/chuyen-he-toa-do-va-thiet-ke-ban-do) */
#id_chuyenhetoado_li_noidiem > .dropdown-menu {
    box-sizing: border-box;
    padding: 5px !important;
    border: 0 !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(15 23 42 / 24%);
}

#id_chuyenhetoado_li_noidiem > .dropdown-menu .contact-box.center-version {
    border: 0 !important;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}

#id_chuyenhetoado_li_noidiem > .dropdown-menu .contact-box-footer {
    box-sizing: border-box;
    border: 1px solid #60A5FA !important;
    border-radius: 6px;
    background: #fff;
}

#id_chuyenhetoado_li_trangexcel .dropdown-alerts .contact-box-footer {
    border-top: none !important;
}

/* Tạm ẩn nút đổi tọa độ thập phân sang độ phút giây; giữ nguyên phần tử và logic. */
#id_chuyenhetoado_li_doitoado_thapphansangdo, #id_chuyenhetoado_li_trangexcel {
    display: none !important;
}

/* Tạm ẩn riêng lựa chọn OpenStreetMap; giữ menu và các nền khác. */
.gis-basemap-menu--coordinate .gis-basemap-menu__option:has(input[value="osm"]) {
    display: none !important;
}

/* Đường phân cách giữa nhóm ArcGIS và Google. */
.gis-basemap-menu--coordinate .gis-basemap-menu__separator {
    height: 1px !important;
    margin: 5px 0 !important;
    background: #0b83c6 !important;
}

/* Ẩn lớp mờ mờ của Attribution ArcGIS ở đáy bản đồ */
.esri-attribution,
.esri-ui-bottom .esri-attribution {
    display: none !important;
}

.optional-button-left-arcgis .open-small-chat,
.optional-button-left-arcgis .open-small-chat *,
.optional-button-left-arcgis .current-location-button,
.optional-button-left-arcgis .current-location-button *,
#id_chuyenhetoado_doitoado_nhom_tuychon,
#id_chuyenhetoado_doitoado_nhom_tuychon *,
#id_chuyenhetoado_txt_wgs84,
#id_chuyenhetoado_txt_vn2000,
#id_chuyenhetoado_doitoado_nhom_nutchuyendoi,
#id_chuyenhetoado_doitoado_nhom_nutchuyendoi * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tooltip {
    max-width: 113px;
}

#chtd-kml-control-tooltip {
    position: fixed;
    z-index: 2147483647;
    display: none;
    max-width: 260px;
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--color-daidien-xanhxam);
    box-shadow: 0 0 4px rgba(255, 255, 255, .45), 0 3px 8px rgba(0, 0, 0, .38);
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    white-space: pre-line;
    text-align: center;
    pointer-events: none;
}

#chtd-kml-control-tooltip::before {
    position: absolute;
    top: -5px;
    left: var(--chtd-kml-tooltip-arrow-left, 50%);
    transform: translateX(-50%);
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--color-daidien-xanhxam);
    border-left: 5px solid transparent;
    filter: drop-shadow(0 -1px 2px rgba(255, 255, 255, .38));
    content: '';
}

/* Nút nạp KML dùng cùng kiểu với nút chọn tệp Sổ đỏ, nhưng nằm ngoài modal AI+. */
#id_chuyenhetoado_doitoado_nhom_action .chtd-kml-header-upload {
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
    border: 1px solid #E7A5A5;
    border-radius: 5px;
    background: #fff;
    color: #f59e0b;
    box-shadow: none;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

#id_chuyenhetoado_doitoado_nhom_action .chtd-kml-header-upload:hover {
    border-color: #FFC107;
    background: #FFF3CD;
}

#id_chuyenhetoado_doitoado_nhom_action .chtd-kml-header-upload i {
    color: inherit;
}

#id_chuyenhetoado_doitoado_nhom_tuychon.chtd-kml-toolbar-aligned,
#id_chuyenhetoado_doitoado_nhom_action.chtd-kml-toolbar-aligned {
    top: 5px !important;
    height: 22px;
    box-sizing: border-box;
    align-items: center !important;
}

#id_chuyenhetoado_doitoado_nhom_action.chtd-kml-toolbar-aligned > #id_chuyenhetoado_btn_upload_kml,
#id_chuyenhetoado_doitoado_nhom_action.chtd-kml-toolbar-aligned > #id_chuyenhetoado_btn_xuatexceldoitoado,
#id_chuyenhetoado_doitoado_nhom_action.chtd-kml-toolbar-aligned > #id_chuyenhetoado_btn_chuyendoi_luu {
    box-sizing: border-box !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    align-self: center;
}

.small-chat-box.chtd-kml-editor-panel {
    bottom: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(15, 23, 42, 0.16) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 3px 8px rgba(15, 23, 42, 0.16), -4px 12px 24px -2px rgba(15, 23, 42, 0.3), -8px 24px 48px -6px rgba(15, 23, 42, 0.36) !important;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_doitoado_nhom_wgs84 {
    width: 100% !important;
    height: auto;
}

.small-chat-box.chtd-kml-editor-panel .slimScrollDiv,
.small-chat-box.chtd-kml-editor-panel .content {
    height: auto !important;
}

.small-chat-box.chtd-kml-editor-panel .slimScrollBar,
.small-chat-box.chtd-kml-editor-panel .slimScrollRail {
    display: none !important;
}

.small-chat-box.chtd-kml-editor-panel .content > div:not(.chtd-panel-notice) {
    padding-bottom: 0 !important;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_doitoado_nhom_wgs84 > .ibox {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-top: 27px !important;
    margin-bottom: 0 !important;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_wgs84_header {
    display: none !important;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .ibox-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    border: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_kml_editor_area {
    flex: 0 0 187px !important;
    min-height: 187px !important;
    height: 187px !important;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_doitoado_nhom_diachinh {
    display: none !important;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px;
    grid-template-rows: 187px auto auto;
    box-sizing: border-box;
    padding-top: 27px !important;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_doitoado_nhom_wgs84,
.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_doitoado_nhom_wgs84 > .ibox,
.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .ibox-content {
    display: contents !important;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_kml_editor_area {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_kml_status,
.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_kml_save_warning {
    grid-column: 1 / -1;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_kml_status {
    grid-row: 2;
    margin: 0 5px 5px;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_kml_save_warning {
    grid-row: 3;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_doitoado_nhom_diachinh {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    width: 150px !important;
    height: 187px !important;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_doitoado_nhom_diachinh > .ibox {
    height: calc(100% - 10px);
    margin: 5px 5px 5px 0 !important;
    overflow: hidden;
    border: 1px solid #16A34A;
    border-radius: 6px;
    box-sizing: border-box;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_doitoado_nhom_diachinh .ibox-content,
.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_list_diadanh {
    height: 100%;
    max-height: 100% !important;
    box-sizing: border-box;
    padding: 4px !important;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_doitoado_nhom_diachinh .ibox-content {
    border: 0 !important;
    padding: 0 !important;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 19px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-linenumber {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_list_diadanh {
    overflow-x: hidden;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_list_diadanh::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_list_diadanh::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #F1F5F9;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_list_diadanh::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94A3B8;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_list_diadanh::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

/* Dùng chung cho nút xuất Excel và nút đóng ngoài modal Sổ đỏ. */
.chtd-ai-plus-export-excel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.chtd-ai-plus-export-excel img {
    display: block;
    width: 22px;
    height: 22px;
}

.chtd-ai-plus-close {
    padding: 0 0 0 1px;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

/* Giao diện panel Tìm tọa độ VN2000 & WGS84 đồng bộ kích thước và kiểu dáng với modal Sổ đỏ. */
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) {
    top: 0px !important;
    left: 0px !important;
    right: auto !important;
    bottom: auto !important;
    width: var(--chtd-compact-panel-width, 350px) !important;
    max-width: var(--chtd-compact-panel-max-width, calc(100vw - 16px)) !important;
    height: auto !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(15, 23, 42, 0.16) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 3px 8px rgba(15, 23, 42, 0.16), -4px 12px 24px -2px rgba(15, 23, 42, 0.3), -8px 24px 48px -6px rgba(15, 23, 42, 0.36) !important;
    color: #1e293b;
    overflow: visible !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .slimScrollDiv,
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .content {
    height: auto !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .slimScrollBar,
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .slimScrollRail {
    display: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .content > div:not(.chtd-panel-notice) {
    padding-bottom: 0 !important;
}

/* Hàng 1 (32px = 5px trên + 22px nút + 5px dưới) đồng nhất cho cả WGS84, VN2000, KML và Sổ đỏ. */
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_tuychon {
    top: 5px !important;
    left: 6px !important;
    right: auto !important;
    height: 22px !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    color: #334155;
    font-size: 12px !important;
    white-space: nowrap;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_tuychon > label {
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_txt_theodiem,
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_txt_theomoc {
    color: #000000 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_tuychon input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    display: block;
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    align-self: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #89939b;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_tuychon input[type="radio"]:checked {
    border-color: #0D6EFD;
    background: radial-gradient(circle, #0D6EFD 0 3.5px, #fff 4px);
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_tuychon input[type="radio"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_tuychon input[type="radio"]:focus-visible {
    outline: 2px solid rgb(26 179 148 / 28%) !important;
    outline-offset: 2px;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_tuychon input[type="checkbox"] {
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_s_matcatan_ngancach {
    align-self: stretch;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-right: 0 !important;
    border-left: 1px solid silver !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_action {
    top: 5px !important;
    right: 6px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    z-index: 30 !important;
}

#id_chuyenhetoado_output_settings_wrap {
    display: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_doitoado_nhom_action > #id_chuyenhetoado_output_settings_wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.chtd-output-settings-btn {
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-height: 22px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: #f1f5f9;
    color: #000000;
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.chtd-output-settings-btn > i.fa-cog {
    color: inherit;
}

.chtd-output-settings-btn:hover {
    border-color: #94a3b8;
    background: #e2e8f0;
    color: #000000;
}

.chtd-output-settings-btn.is-menu-open {
    border-color: #64748b;
    background: #e2e8f0;
    color: #000000;
}

.chtd-output-settings-badge {
    position: absolute;
    top: -6px;
    right: -3px;
    min-width: 13px;
    height: 13px;
    padding: 0 2px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ca8a04;
    border-radius: 999px;
    background: #facc15;
    color: #111827;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 2.5px rgba(15, 23, 42, 0.28);
    pointer-events: none;
    z-index: 2;
}

.chtd-output-settings-badge[hidden] {
    display: none !important;
}

.chtd-output-settings-btn:focus-visible {
    outline: 2px solid rgb(0 0 0 / 24%);
    outline-offset: 1px;
}

.chtd-output-settings-menu {
    position: absolute;
    top: -1px;
    left: calc(100% + 3px);
    right: auto;
    width: max-content;
    min-width: 186px;
    padding: 5px 6px 4px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
    z-index: 40;
    user-select: none;
}

.chtd-output-settings-menu[hidden] {
    display: none !important;
}

.chtd-output-settings-menu-title {
    margin: 0 2px 3px;
    padding: 2px 2px 5.5px;
    border-bottom: 1px solid #B22222;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.chtd-output-settings-option {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 3px 4px !important;
    border-radius: 4px;
    color: #1e293b !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    cursor: pointer;
    white-space: nowrap;
}

.chtd-output-opt-sys {
    display: inline-block;
    min-width: 44px;
    text-align: left;
}

.chtd-output-opt-sep {
    display: inline-block;
    padding: 0 5px;
    text-align: center;
}

.chtd-output-opt-sub {
    display: inline-block;
}

@supports (grid-template-columns: subgrid) {
    .chtd-output-settings-grid {
        display: grid;
        grid-template-columns: auto max-content max-content 1fr;
    }

    .chtd-output-settings-grid > .chtd-output-settings-option {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: subgrid;
        align-items: center !important;
    }

    .chtd-output-settings-grid .chtd-output-opt-sys {
        min-width: 0;
    }
}

.chtd-output-settings-option:hover {
    background: #f1f5f9;
}

.chtd-output-settings-option input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 2.5px !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    flex: 0 0 13px;
}

.chtd-output-settings-option input[type="checkbox"]:checked {
    border-color: #B22222 !important;
    background-color: #B22222 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.2L4.8 8.8L9.8 3.3' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px 10px !important;
}

.chtd-output-settings-option input[type="checkbox"]:focus-visible {
    outline: 2px solid rgb(178 34 34 / 28%) !important;
    outline-offset: 1px;
}

.chtd-output-settings-divider {
    height: 0;
    margin: 3px 2px 2.5px;
    border: 0;
    border-top: 1px solid #B22222;
    background: transparent;
}

.chtd-output-settings-option--none {
    color: #475569 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_doitoado_nhom_action > #id_chuyenhetoado_btn_xuatexceldoitoado {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 3px !important;
    background: #f1f5f9 !important;
    overflow: hidden !important;
    transition: background-color 0.14s ease, border-color 0.14s ease !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_doitoado_nhom_action > #id_chuyenhetoado_btn_xuatexceldoitoado:hover {
    border-color: #94a3b8 !important;
    background: #e2e8f0 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_doitoado_nhom_action > #id_chuyenhetoado_btn_xuatexceldoitoado img {
    width: 14px !important;
    height: 14px !important;
    border-radius: 2px !important;
    opacity: 1;
    filter: none;
    transition: filter 0.14s ease;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_doitoado_nhom_action > #id_chuyenhetoado_btn_xuatexceldoitoado:hover img {
    opacity: 1;
    filter: brightness(0.9);
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_doitoado_nhom_action > #id_chuyenhetoado_btn_chuyendoi_luu {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 3px 2px !important;
    border: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
    border-radius: 3px !important;
    background: var(--color-daidien-page-chuyenhetoado) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_doitoado_nhom_action > #id_chuyenhetoado_doitoado_btn_thoat {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 0 0 1px !important;
    color: #111 !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

/* Hàng 2 (32px): thanh Múi chiếu và KTT giống hệt Sổ đỏ (bắt đầu tại 32px ngay dưới Hàng 1). */
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_doitoado_nhom_kinhtuyentruc {
    top: 32px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 32px !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_doitoado_nhom_kinhtuyentruc > div {
    padding: 5px 4px 5px 7px !important;
    background: var(--color-daidien-xanhxam) !important;
    color: #f8fafc !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_doitoado_nhom_kinhtuyentruc > div > div:first-child {
    gap: 0 !important;
}

.chtd-vn2000-zone-icon {
    display: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_lbl_muichieu {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #4ade80 !important;
    white-space: nowrap !important;
    cursor: help;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_lbl_muichieu {
    margin: 0 !important;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_lbl_muichieu {
    display: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_doitoado_nhom_kinhtuyentruc label {
    margin: 0 9px 0 0 !important;
    gap: 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #f8fafc !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_doitoado_nhom_kinhtuyentruc label:last-of-type {
    margin-right: 7px !important;
}

.small-chat-box input[name="chuyenhetoado_panel_rd_muichieu"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    min-height: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 50% !important;
    background: transparent !important;
    position: relative !important;
    top: -4px !important;
    transform: scale(0.88) !important;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.small-chat-box input[name="chuyenhetoado_panel_rd_muichieu"]:not(:checked):hover {
    border-color: #cbd5e1 !important;
}

.small-chat-box input[name="chuyenhetoado_panel_rd_muichieu"]:checked {
    border-color: #ffffff !important;
    background: radial-gradient(circle, #ffffff 0 3.2px, transparent 3.6px) !important;
}

.small-chat-box input[name="chuyenhetoado_panel_rd_muichieu"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

.small-chat-box input[name="chuyenhetoado_panel_rd_muichieu"]:focus-visible {
    outline: 2px solid rgb(26 179 148 / 28%) !important;
    outline-offset: 2px;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_separator {
    height: 14px !important;
    margin: 0 7px 0 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 0 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_lbl_kinhtuyentruc {
    display: inline-flex !important;
    align-items: baseline !important;
    margin: 0 8px 0 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #fbbf24 !important;
    cursor: help;
}

.small-chat-box.chtd-kml-editor-panel #id_chuyenhetoado_lbl_kinhtuyentruc {
    margin: 0 2px 0 0 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel, .chtd-kml-editor-panel) #id_chuyenhetoado_lbl_kinhtuyentruc sub {
    font-size: 8.5px;
    font-weight: 600;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    bottom: -0.18em;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_panel_ktt_controls .select2-container {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 220px !important;
    margin-right: 4px !important;
    height: 22px !important;
    display: block !important;
    pointer-events: auto !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single {
    position: relative !important;
    width: 100% !important;
    height: 22px !important;
    min-height: 22px !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    outline: none !important;
    overflow: hidden !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default:not(.select2-container--open):not(.select2-container--focus) .select2-selection--single:hover {
    border-color: #64748b !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default.select2-container--focus .select2-selection--single,
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default.select2-container--open .select2-selection--single,
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single:focus {
    border-color: #64748b !important;
    box-shadow: none !important;
    outline: none !important;
}

#id_chuyenhetoado_panel_sl_kinhtuyentruc:not(.select2-hidden-accessible) {
    color: #000000 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border: 1px solid #94a3b8 !important;
}

#id_chuyenhetoado_panel_sl_kinhtuyentruc:not(.select2-hidden-accessible):has(option[value=""]:checked) {
    color: #dc2626 !important;
    font-weight: 400 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__rendered,
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__rendered > span:not(.dxf-core-ktt-placeholder),
#id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__rendered,
#id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__rendered > span:not(.dxf-core-ktt-placeholder) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__rendered,
#id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 20px 0 6px !important;
}

#id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__rendered .dxf-core-ktt-placeholder,
#id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__rendered > span.dxf-core-ktt-placeholder {
    color: #dc2626 !important;
    font-weight: 400 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 2px !important;
    width: 16px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: static !important;
    display: block !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border-color: #64748b transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 4.5px 4px 0 4px !important;
    transition: border-color 0.15s ease !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_panel_ktt_controls .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent !important;
    border-width: 0 4px 4.5px 4px !important;
}

.select2-dropdown:has(#select2-id_chuyenhetoado_panel_sl_kinhtuyentruc-results),
.select2-dropdown.chtd-ktt-dual-dropdown {
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.select2-dropdown.chtd-ktt-dual-dropdown .select2-results__option {
    white-space: nowrap !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_panel_ktt_controls > #id_chuyenhetoado_btn_chuyendoi_timvn2000 {
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 0 0 auto !important;
    padding: 0 3.5px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: red !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_panel_ktt_controls > #id_chuyenhetoado_btn_chuyendoi_timvn2000:hover {
    background: #d90000 !important;
    color: #fff !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_panel_ktt_controls > #id_chuyenhetoado_btn_chuyendoi_timvn2000 .chtd-vn2000-search-btn-icon {
    display: inline-block !important;
    font-size: 10px !important;
    line-height: 1 !important;
    color: #fff !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_panel_ktt_controls > #id_chuyenhetoado_btn_chuyendoi_timvn2000 .chtd-vn2000-search-btn-label {
    display: inline-block !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_doitoado_nhom_kinhtuyentruc > div > div:first-child,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_ktt_separator,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_lbl_kinhtuyentruc,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_sl_kinhtuyentruc,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_ktt_controls .select2-container {
    display: none !important;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_ktt_controls {
    justify-content: space-between !important;
    gap: 5px !important;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_ktt_controls > #id_chuyenhetoado_btn_chuyendoi_timwgs84 {
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0 !important;
    padding: 0 3.5px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: yellow !important;
    color: #111827 !important;
    box-shadow: none !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_ktt_controls > #id_chuyenhetoado_btn_chuyendoi_timwgs84:hover {
    background: #e6e600 !important;
    color: #111827 !important;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_ktt_controls > #id_chuyenhetoado_btn_chuyendoi_timwgs84 .chtd-wgs84-search-btn-icon {
    display: inline-block !important;
    font-size: 10px !important;
    line-height: 1 !important;
    color: #111827 !important;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_panel_ktt_controls > #id_chuyenhetoado_btn_chuyendoi_timwgs84 .chtd-wgs84-search-btn-label {
    display: inline-block !important;
    color: #111827 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

#id_chuyenhetoado_wgs84_toolbar_hint,
#id_chuyenhetoado_toolbar_quad_headers,
#id_chuyenhetoado_doitoado_nhom_wgs84_output {
    display: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel).chtd-wgs84-output-open #id_chuyenhetoado_panel_doitoado_nhom_kinhtuyentruc > div {
    padding: 5px 5px 5px 7px !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel).chtd-wgs84-output-open #id_chuyenhetoado_panel_ktt_controls {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel).chtd-wgs84-output-open #id_chuyenhetoado_toolbar_quad_headers {
    display: grid !important;
    flex: 0 0 calc(var(--chtd-output-block-width, 171px) - 5px) !important;
    width: calc(var(--chtd-output-block-width, 171px) - 5px) !important;
    min-width: 0 !important;
    height: 22px !important;
    margin: 0 0 0 5px !important;
    padding: 0 !important;
    gap: 5px !important;
    align-items: center !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_wgs84_toolbar_hint {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 2px !important;
    color: #f8fafc !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    user-select: none;
}

/* Thân panel VN2000 & WGS84 (153px = 7 dòng × 19px + 8px padding + 2px viền + 10px lề, bên dưới 2 hàng đầu 64px). */
.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_vn2000_header,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_wgs84_header {
    display: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 153px auto auto;
    box-sizing: border-box !important;
    padding-top: 64px !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
    height: 153px !important;
    min-width: 0;
    min-height: 0;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 > .ibox,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 > .ibox {
    display: flex;
    flex-direction: column;
    height: calc(100% - 10px) !important;
    margin: 5px !important;
    box-sizing: border-box;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .ibox-content,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .ibox-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    border: 0 !important;
    padding: 0 !important;
}

.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_kml_editor_area {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror {
    flex: 1 1 auto !important;
    height: 100% !important;
    overflow: hidden;
    border: 1px solid #b8c4d4;
    border-radius: 6px;
    box-sizing: border-box;
    background: #ffffff;
    color: #1e293b;
    box-shadow: none;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 19px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    transition: border-color 0.15s ease;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror.CodeMirror-focused,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror.CodeMirror-focused {
    border-color: #94a3b8;
    box-shadow: none;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror.CodeMirror-empty .CodeMirror-scroll,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror.CodeMirror-empty .CodeMirror-scroll {
    overflow: hidden !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-gutters,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-gutters {
    padding-bottom: 0 !important;
    border-right: 1px solid #b8c4d4 !important;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    background-color: #f1f5f9 !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-gutter,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-gutter {
    padding-bottom: 0 !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-gutter-filler,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-gutter-filler {
    background-color: #f1f5f9 !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-linenumber,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-linenumber {
    padding: 0 4px 0 5px;
    min-width: 20px;
    color: #64748b !important;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-lines,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-lines {
    padding: 4px 0 !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror pre,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror pre {
    padding: 0 6px;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror div.CodeMirror-cursor,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror div.CodeMirror-cursor {
    border-left: 1px solid #1e293b;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-selected,
.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-focused .CodeMirror-selected,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-selected,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-focused .CodeMirror-selected {
    background: #dbeafe !important;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-placeholder,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-placeholder {
    box-sizing: border-box;
    max-width: 100%;
    white-space: pre !important;
    color: #7c8a99 !important;
}
.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-placeholder .chtd-cm-ph-strong,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-placeholder .chtd-cm-ph-strong {
    color: #526273;
    font-weight: 600;
}

.small-chat-box.chtd-vn2000-compact-panel:not(.chtd-vn2000-loaded-panel) #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-placeholder,
.small-chat-box.chtd-wgs84-compact-panel:not(.chtd-wgs84-loaded-panel) #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-placeholder {
    width: 100%;
    text-align: left;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-vscrollbar::-webkit-scrollbar,
.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-hscrollbar::-webkit-scrollbar,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-vscrollbar::-webkit-scrollbar,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-hscrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-vscrollbar::-webkit-scrollbar-track,
.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-hscrollbar::-webkit-scrollbar-track,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-vscrollbar::-webkit-scrollbar-track,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-hscrollbar::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #F1F5F9;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-vscrollbar::-webkit-scrollbar-thumb,
.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-hscrollbar::-webkit-scrollbar-thumb,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-vscrollbar::-webkit-scrollbar-thumb,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-hscrollbar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94A3B8;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-vscrollbar::-webkit-scrollbar-thumb:hover,
.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-vscrollbar::-webkit-scrollbar-thumb:hover,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_doitoado_nhom_diachinh {
    display: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 153px auto;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel).chtd-wgs84-output-open .content {
    grid-template-columns: minmax(150px, 1fr) auto var(--chtd-output-block-width, auto);
    grid-template-rows: 153px auto;
}

.small-chat-box.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel #id_chuyenhetoado_doitoado_nhom_vn2000,
.small-chat-box.chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel #id_chuyenhetoado_doitoado_nhom_wgs84 {
    grid-column: 1;
    grid-row: 1;
}

/* Khung kết quả chuyển đổi mở sang bên phải cột địa danh cho cả Tìm WGS84 và Tìm VN2000 (1..4 khung ngang hàng 153px = 7 dòng). */
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel).chtd-wgs84-output-open #id_chuyenhetoado_doitoado_nhom_wgs84_output {
    display: block !important;
    grid-column: 3;
    grid-row: 1;
    width: 100% !important;
    height: 153px !important;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 5px 5px 5px 0 !important;
    overflow: hidden;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea::-webkit-scrollbar {
    width: 4px;
    height: 5px;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #F1F5F9;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94A3B8;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border: 1px solid #b8c4d4;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-header {
    display: flex;
    height: 22px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 2px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    line-height: 1.2;
    user-select: none;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-title {
    color: #f8fafc;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea {
    display: block;
    flex: 1 1 auto !important;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 0 !important;
    margin: 0;
    padding: 4px 5px;
    border: 0;
    outline: none;
    box-sizing: border-box;
    resize: none;
    background: #ffffff;
    color: #0f172a;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11.5px;
    line-height: 19px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea::placeholder {
    color: #94a3b8;
    font-size: 10.5px;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea:focus {
    background: #f8fafc;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_doitoado_nhom_diachinh {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    width: max-content !important;
    max-width: 175px !important;
    height: 153px !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_doitoado_nhom_diachinh > .ibox {
    height: calc(100% - 10px) !important;
    margin: 5px 5px 5px 0 !important;
    overflow: hidden;
    border: 1px solid #b8c4d4;
    border-radius: 6px;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.15s ease;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_doitoado_nhom_diachinh > .ibox:focus-within {
    border-color: #94a3b8;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_doitoado_nhom_diachinh .ibox-content {
    height: 100%;
    border: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh {
    width: max-content;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 4px 5px 4px 4px !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh.has-vscroll {
    padding-right: 9px !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh > span.CodeMirror {
    width: max-content;
    max-width: 100%;
    min-height: 19px !important;
    line-height: 19px !important;
    overflow: visible !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #F1F5F9;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94A3B8;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh::-webkit-scrollbar-thumb:hover {
    background: #64748B;
}

@supports not selector(::-webkit-scrollbar) {
    .small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_list_diadanh,
    .small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-vscrollbar,
    .small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror-hscrollbar,
    .small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-vscrollbar,
    .small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror-hscrollbar,
    .small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea,
    .small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh {
        scrollbar-width: thin;
        scrollbar-color: #94A3B8 #F1F5F9;
    }
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel, .chtd-kml-editor-panel.chtd-kml-loaded-panel) #id_chuyenhetoado_list_diadanh > span.CodeMirror {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #1e293b;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh .chtd-diadanh-stt {
    display: none !important;
}

.small-chat-box.chtd-kml-editor-panel.chtd-kml-loaded-panel #id_chuyenhetoado_list_diadanh .chtd-diadanh-stt {
    margin-right: 3px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* Phân biệt trực quan vùng ô nhập (nền trắng, viền rõ) và các cột chỉ đọc/kết quả (nền xám lạnh nhẹ #f1f5f9). */
.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror {
    background: #ffffff;
    border-color: #94a3b8;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.small-chat-box.chtd-vn2000-compact-panel #id_chuyenhetoado_doitoado_nhom_vn2000 .CodeMirror.CodeMirror-focused,
.small-chat-box.chtd-wgs84-compact-panel #id_chuyenhetoado_doitoado_nhom_wgs84 .CodeMirror.CodeMirror-focused {
    border-color: var(--color-daidien-page-chuyenhetoado, #1ab394);
    box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.16);
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_doitoado_nhom_diachinh > .ibox,
.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-item {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_doitoado_nhom_diachinh .ibox-content,
.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh,
.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh > span.CodeMirror {
    background: transparent !important;
    border: 0 !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea {
    background: transparent;
    color: #0f172a;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea:focus {
    background: #eaf0f6;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-item:focus-within,
.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_doitoado_nhom_diachinh > .ibox:focus-within {
    border-color: #94a3b8;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh > span.CodeMirror[data-chtd-copyable="1"] {
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.12s ease;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh > span.CodeMirror[data-chtd-copyable="1"]:hover {
    background: rgba(26, 179, 148, 0.10) !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh > span.CodeMirror.chtd-diadanh-row-copied {
    background: #dbeafe !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea::selection {
    background: #dbeafe;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) .chtd-wgs84-quad-textarea::-webkit-scrollbar-track,
.small-chat-box:is(.chtd-vn2000-compact-panel.chtd-vn2000-loaded-panel, .chtd-wgs84-compact-panel.chtd-wgs84-loaded-panel) #id_chuyenhetoado_list_diadanh::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel).chtd-wgs84-output-open #id_chuyenhetoado_toolbar_quad_headers {
    position: relative !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel).chtd-wgs84-output-open #id_chuyenhetoado_toolbar_quad_headers::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 3px;
    bottom: 3px;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

#id_chuyenhetoado_kml_dropzone {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.18s;
}

#id_chuyenhetoado_kml_dropzone::before {
    position: absolute;
    inset: 5px;
    z-index: 0;
    border-radius: 6px;
    background: transparent;
    content: "";
    pointer-events: none;
    transition: background-color 0.18s;
}

#id_chuyenhetoado_kml_dropzone:hover::before,
#id_chuyenhetoado_kml_dropzone:focus-visible::before,
#id_chuyenhetoado_kml_dropzone.is-dragover::before {
    background: #F0FDF4;
}

#id_chuyenhetoado_kml_dropzone > i,
#id_chuyenhetoado_kml_dropzone > strong,
#id_chuyenhetoado_kml_dropzone > span {
    display: block;
    width: 100%;
}

#id_chuyenhetoado_kml_dropzone > i {
    margin-bottom: 7px;
    color: #16A34A;
    font-size: 25px;
}

#id_chuyenhetoado_kml_dropzone > strong {
    color: #000;
    font-size: 13px;
}

#id_chuyenhetoado_kml_dropzone > span {
    margin-top: 4px;
    color: #56657a;
    font-size: 12.3px;
}

#id_chuyenhetoado_kml_dropzone > i,
#id_chuyenhetoado_kml_dropzone > strong,
#id_chuyenhetoado_kml_dropzone > span {
    position: relative;
    z-index: 1;
}

/* Thanh thông báo dùng chung cho 3 panel: Sổ đỏ, KML và VN2000 (Phương án 2: viền đều 4 cạnh, nền & chữ đằm rõ trên nền trắng). */
.chtd-panel-notice {
    display: none;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 6px;
    box-sizing: border-box;
    margin: 0 5px 5px;
    padding: 6px 10px !important;
    border: 1px solid #60A5FA;
    border-radius: 6px;
    background: #DBEAFE;
    color: #1E3A8A;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.chtd-panel-notice.is-visible,
#id_chuyenhetoado_kml_status.chtd-panel-notice:not([hidden]) {
    display: flex;
}

.chtd-panel-notice[hidden] {
    display: none !important;
}

.chtd-panel-notice .chtd-panel-notice-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #2563EB;
    font-size: 13px;
    line-height: 1;
}

.chtd-panel-notice .chtd-panel-notice-text {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.chtd-panel-notice .chtd-panel-notice-text strong {
    font-weight: 700;
}

.chtd-panel-notice .chtd-panel-notice-sub {
    color: #1E293B;
    font-weight: 400;
}

.chtd-panel-notice.is-info {
    border-color: #60A5FA;
    background: #DBEAFE;
    color: #1E3A8A;
}

.chtd-panel-notice.is-info .chtd-panel-notice-icon {
    color: #2563EB;
}

.chtd-panel-notice.is-success {
    border-color: #4ADE80;
    background: #DCFCE7;
    color: #14532D;
}

.chtd-panel-notice.is-success .chtd-panel-notice-icon {
    color: #16A34A;
}

.chtd-panel-notice.is-success .chtd-panel-notice-text strong {
    color: #14532D;
}

.chtd-panel-notice.is-warning {
    border-color: #FBBF24;
    background: #FEF3C7;
    color: #92400E;
}

.chtd-panel-notice.is-warning .chtd-panel-notice-icon {
    color: #D97706;
}

.chtd-panel-notice.is-warning .chtd-panel-notice-text strong {
    color: #78350F;
}

.chtd-panel-notice.is-warning .chtd-panel-notice-sub {
    color: #78350F;
    font-weight: 400;
}

.chtd-panel-notice.is-error {
    border-color: #F87171;
    background: #FEE2E2;
    color: #991B1B;
}

.chtd-panel-notice.is-error .chtd-panel-notice-icon {
    color: #DC2626;
}

.chtd-panel-notice.is-error .chtd-panel-notice-text strong {
    color: #7F1D1D;
}

.chtd-panel-notice.is-error .chtd-panel-notice-sub {
    color: #7F1D1D;
    font-weight: 400;
}

.chtd-panel-notice .chtd-panel-notice-actions {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chtd-panel-notice .chtd-panel-notice-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid #DC2626;
    border-radius: 4px;
    background: #FFFFFF;
    color: #991B1B;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.chtd-panel-notice .chtd-panel-notice-action-btn:hover {
    background: #DC2626;
    color: #FFFFFF;
}

.chtd-panel-notice .chtd-panel-notice-action-btn:focus-visible {
    outline: 2px solid #DC2626;
    outline-offset: 1px;
}

.small-chat-box:not(.chtd-kml-editor-panel) #id_chuyenhetoado_kml_status,
.small-chat-box:not(.chtd-kml-editor-panel) #id_chuyenhetoado_kml_save_warning {
    display: none !important;
}

#id_chuyenhetoado_vn2000_notice {
    display: none !important;
}

.small-chat-box:is(.chtd-vn2000-compact-panel, .chtd-wgs84-compact-panel) #id_chuyenhetoado_vn2000_notice.is-visible:not([hidden]) {
    display: flex !important;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 5px 5px;
}

#id_chuyenhetoado_kml_dropzone::after {
    position: absolute;
    inset: 5px;
    z-index: 3;
    display: block;
    box-sizing: border-box;
    border: 1px dashed #16A34A;
    border-radius: 6px;
    content: "";
    pointer-events: none;
}

#id_chuyenhetoado_doitoado_nhom_action #id_chuyenhetoado_btn_xuatexceldoitoado,
#id_chuyenhetoado_doitoado_nhom_action #id_chuyenhetoado_btn_xuatexceldoitoado:hover,
#id_chuyenhetoado_doitoado_nhom_action #id_chuyenhetoado_btn_xuatexceldoitoado:focus,
#id_chuyenhetoado_doitoado_nhom_action #id_chuyenhetoado_btn_xuatexceldoitoado:focus-visible,
#id_chuyenhetoado_doitoado_nhom_action #id_chuyenhetoado_btn_xuatexceldoitoado:active {
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
}

/* Hướng dẫn khi dùng công cụ bản đồ trước khi mở thư mục. */
@keyframes chtdGuideFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#id_chuyenhetoado_huongdan_thumuc {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1200;
    box-sizing: border-box;
    width: max-content;
    min-width: 240px;
    max-width: min(350px, calc(100vw - 16px));
    padding: 9px 11px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    border-radius: 8px;
    box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.18), 0 3px 8px -2px rgba(15, 23, 42, 0.08);
    font-size: 12.2px;
    line-height: 1.48;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    animation: chtdGuideFadeIn 0.14s ease-out;
}

#id_chuyenhetoado_huongdan_thumuc::before,
#id_chuyenhetoado_huongdan_thumuc::after {
    content: "";
    position: absolute;
    top: var(--guide-arrow-top, 38px);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    pointer-events: none;
}

#id_chuyenhetoado_huongdan_thumuc::before,
#id_chuyenhetoado_huongdan_thumuc.is-arrow-left::before {
    left: -8px;
    border-width: 7px 8px 7px 0;
    border-color: transparent #d0dce3 transparent transparent;
    filter: drop-shadow(-2px 1px 2px rgba(15, 23, 42, 0.08));
}

#id_chuyenhetoado_huongdan_thumuc::after,
#id_chuyenhetoado_huongdan_thumuc.is-arrow-left::after {
    left: -6.5px;
    border-width: 6px 7px 6px 0;
    border-color: transparent #ffffff transparent transparent;
}

#id_chuyenhetoado_huongdan_thumuc.is-arrow-right::before {
    left: auto;
    right: -8px;
    border-width: 7px 0 7px 8px;
    border-color: transparent transparent transparent #d0dce3;
    filter: drop-shadow(2px 1px 2px rgba(15, 23, 42, 0.08));
}

#id_chuyenhetoado_huongdan_thumuc.is-arrow-right::after {
    left: auto;
    right: -6.5px;
    border-width: 6px 0 6px 7px;
    border-color: transparent transparent transparent #ffffff;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-grid {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 4px;
    row-gap: 2px;
    align-items: start;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-marker {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 18px;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-marker--icon {
    color: var(--color-daidien-nut-thongtin, #0284c7);
    margin-bottom: 2px;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-marker--icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-header {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 18px;
    margin-bottom: 2px;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-title {
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-close {
    flex: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 -2px 0 0;
    padding: 0;
    color: #94a3b8;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-close:hover {
    background: #f1f5f9;
    color: #334155;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-item-text {
    grid-column: 2;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #475569;
    font-size: 12.2px;
    line-height: 18px;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-dot {
    flex: 0 0 4.5px;
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background: #64748b;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-sym {
    white-space: nowrap;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-sym--create {
    color: var(--page-color);
    font-weight: 700;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-sym--open {
    color: #b22222;
    font-weight: 600;
}

#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-sym--create i,
#id_chuyenhetoado_huongdan_thumuc .chtd-folder-guide-sym--open i {
    color: inherit !important;
    font-size: 11.5px;
}

/* Hiệu ứng nháy sáng dẫn mắt sang nút thật ở cột bên phải khi hiện hướng dẫn. */
@keyframes chtdGuideCreateBtnPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.95);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.35), 0 0 10px 2px rgba(250, 204, 21, 0.9);
        transform: scale(1.12);
    }
}

@keyframes chtdGuideOpenBtnPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.22);
        background-color: #fffbeb !important;
        transform: scale(1.05);
    }
}

#id_chuyenhetoado_right_btn_thembando.chtd-guide-target-pulse {
    position: relative;
    z-index: 5;
    animation: chtdGuideCreateBtnPulse 0.85s ease-in-out 4 !important;
}

#id_chuyenhetoado_right_list_danhsachbando .chtd-bando-action-btn--primary.chtd-guide-target-pulse,
#id_chuyenhetoado_right_list_danhsachbando > div.ibox.itemsbando.chtd-guide-target-pulse {
    position: relative;
    z-index: 5;
    animation: chtdGuideOpenBtnPulse 0.85s ease-in-out 4 !important;
}

#id_chuyenhetoado_right_list_danhsachbando input[type="checkbox"].chtd-guide-target-pulse {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    animation: chtdGuideOpenBtnPulse 0.85s ease-in-out 4 !important;
}

/* Giữ bộ chọn lớp địa chính hiển thị riêng cho Cộng đồng; Bản đồ cảnh báo ẩn lúc tải và hiện cùng lúc tâm ngắm sau khi bản đồ sẵn sàng. */
body.gis-page-congdong .gis-diachinh-menu--coordinate {
    display: block !important;
}

body.gis-page-congdong #id_chuyenhetoado_btn_anhienlopdiachinh {
    display: flex !important;
}

/* Trên mobile, hai thanh công cụ này không áp dụng cho Cộng đồng.
   Giữ bằng CSS để các sự kiện JavaScript đổi trạng thái sau đó không làm nút hiện lại. */
@media (max-width: 768px) {

    body.gis-page-congdong #id_chuyenhetoado_btn_hiennhomexport,
    body.gis-page-congdong #id_chuyenhetoado_btn_annhomexport,
    body.gis-page-congdong #id_chuyenhetoado_btn_hiennhomlayer,
    body.gis-page-congdong #id_chuyenhetoado_btn_annhomlayer {
        display: none !important;
    }
}

/* Ô chọn trong các danh sách dùng màu trung tính chung. */
#id_chuyenhetoado_right_group_Ddanhsachdoituong input[type="checkbox"],
#id_chuyenhetoado_excel_div_groupdatatable input[type="checkbox"] {
    accent-color: var(--color-daidien-nut-chon);
}

/* Áp dụng cho tooltip của 3 datatable */
#id_chuyenhetoado_excel_div_datatable_vitri .tooltip,
#id_chuyenhetoado_excel_div_datatable_duongday .tooltip,
#id_chuyenhetoado_excel_div_datatable_dagiac .tooltip,
#id_chuyenhetoado_excel_div_datatable_vitri .tooltip-inner,
#id_chuyenhetoado_excel_div_datatable_duongday .tooltip-inner,
#id_chuyenhetoado_excel_div_datatable_dagiac .tooltip-inner {
    max-width: 1000px !important;
    width: auto !important;
    /* tự giãn theo nội dung */
    white-space: normal !important;
    /* cho phép xuống dòng */
    word-break: break-word;
    /* ngắt từ dài nếu cần */
}

/* Custom scrollbar for small-chat-box */
.small-chat-box ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.small-chat-box ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.small-chat-box ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.small-chat-box ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.CodeMirror {
    font-size: 14px;
    line-height: 1.4;
}

.CodeMirror-placeholder {
    color: #999 !important;
}

/* Chỉ dùng ở mặt cắt địa hình */
body.sidebar-hidden .navbar-static-side {
    display: none !important;
}

body.sidebar-hidden .nav-close {
    display: none !important;
}

body.sidebar-hidden #page-wrapper {
    margin-left: 0 !important;
}

body.sidebar-hidden .external-toggle-wrapper,
body.sidebar-hidden.mini-navbar .external-toggle-wrapper {
    left: 0 !important;
}

body.sidebar-hidden .external-toggle-wrapper i,
body.sidebar-hidden.mini-navbar .external-toggle-wrapper i {
    transform: rotate(180deg) !important;
    margin-left: 0px !important;
}

#id_chuyenhetoado_right_edt_timkiemdoituong::placeholder {
    font-size: 12.5px;
}

/* A. DATATABLE - Chuyenhetoado */
/* Khi row được active trong 3 bảng */
#id_chuyenhetoado_excel_div_datatable_vitri .activeRowDatatable,
#id_chuyenhetoado_excel_div_datatable_duongday .activeRowDatatable,
#id_chuyenhetoado_excel_div_datatable_dagiac .activeRowDatatable {
    background: var(--color-daidien-item-active-table-list) !important;
    color: unset !important;
}

/* Màu chữ cho cột đầu tiên trong 3 bảng */
/* #id_chuyenhetoado_excel_div_datatable_vitri td:first-child,
#id_chuyenhetoado_excel_div_datatable_duongday td:first-child,
#id_chuyenhetoado_excel_div_datatable_dagiac td:first-child {
    color: var(--color-mauchu-gocweb) !important;
} */
/* Input editable chiếm full ô */
#id_chuyenhetoado_excel_div_datatable_vitri .editable-input,
#id_chuyenhetoado_excel_div_datatable_duongday .editable-input,
#id_chuyenhetoado_excel_div_datatable_dagiac .editable-input {
    width: 100%;
    box-sizing: border-box;
}

/* Đồng bộ đúng viền của bảng DataTables tọa độ, không viền khung chứa */
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y table,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y th,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y td {
    border-color: var(--color-daidien-page-chuyenhetoado) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHead,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollFoot {
    border-color: var(--color-daidien-page-chuyenhetoado) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHead {
    border-left: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
    border-right: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
    border-top: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
    border-bottom: none !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody {
    border-left: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
    border-right: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
    border-top: none !important;
    border-bottom: none !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollFoot {
    /* tfoot rỗng chỉ dùng để chứa thanh cuộn ngang: không đặt viền
       trên để khỏi chồng với đường cuối của phần thân bảng. */
    border-left: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
    border-right: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHead table,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHead table thead th,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHead table thead td {
    border-top: none !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHead table thead th,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHead table thead td {
    border-bottom: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody table,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody table thead,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody table tbody>tr:first-child>th,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody table tbody>tr:first-child>td {
    border-top: none !important;
}

/* Không để viền đáy của table chồng lên viền đáy của vùng cuộn */
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody table,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollFootInner table,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollFootInner tfoot,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollFootInner tfoot tr,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollFootInner tfoot th {
    border-bottom: none !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody tbody>tr:last-child>td {
    border-bottom: 1px solid var(--color-daidien-page-chuyenhetoado) !important;
}

/* Nền ngoài và phần trống phía sau bảng giữ màu xanh nhạt. */
#id_chuyenhetoado_excel_div_groupdatatable {
    background: var(--color-daidien-table-sautable) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y {
    background: var(--color-daidien-table-sautable) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y table,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHead,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollHeadInner,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollFoot,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollFootInner {
    background: #ffffff !important;
}

/* Bảng rỗng vẫn giữ toàn bộ vùng bảng màu trắng. */
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y:has(.dataTables_scrollBody tbody > tr.dataTables_empty),
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y:has(.dataTables_scrollBody tbody:empty) {
    background: #ffffff !important;
}

/* Dòng lẻ/chẵn của phần dữ liệu: giữ màu chọn dòng ưu tiên hơn zebra. */
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody tbody>tr:nth-child(odd):not(.dataTables_empty)>td:not(.activeRowDatatable) {
    background: var(--color-daidien-table-dongle) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody tbody>tr:nth-child(even):not(.dataTables_empty)>td:not(.activeRowDatatable) {
    background: #ffffff !important;
}

#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody tbody>tr.dataTables_empty>td {
    background: #ffffff !important;
}

/* Dòng active phải phủ lên màu zebra, kể cả khi class nằm trên tr. */
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody tbody>tr.activeRowDatatable>td,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody tbody>tr.activeRowDatatable>th,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody tbody>tr>td.activeRowDatatable,
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y .dataTables_scrollBody tbody>tr>th.activeRowDatatable {
    background: var(--color-daidien-item-active-table-list) !important;
}

/* Viền nút thao tác trong bảng cùng màu với icon. */
#id_chuyenhetoado_excel_div_groupdatatable .dataTables_scrollBody tbody button[onclick^="Excel_hoiluuMotdong"],
#id_chuyenhetoado_excel_div_groupdatatable .dataTables_scrollBody tbody button[onclick^="Excel_luuMotdong"] {
    border-color: var(--color-daidien-nut-luu) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable .dataTables_scrollBody tbody button[onclick^="Excel_xoa1doituong"] {
    border-color: var(--color-daidien-nut-xoa) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable .dataTables_scrollBody tbody button[onclick^="Excel_thongtinDoituong"] {
    border-color: var(--color-daidien-nut-thongtin) !important;
}

/* Các nút/biểu tượng nhân bản trong hàng trung gian dùng thống nhất màu tím. */
#id_chuyenhetoado_excel_div_groupdatatable thead a[id^="id_chuyenhetoado_excel_btn_nhanban"],
#id_chuyenhetoado_excel_div_groupdatatable thead a[id^="id_chuyenhetoado_excel_btn_nhanban"] i {
    color: var(--color-daidien-nut-saochep) !important;
}

#id_chuyenhetoado_excel_div_groupdatatable thead button[onclick^="Excel_anTableEXcel"] {
    border-color: currentColor !important;
}

/* Hàng thao tác trung gian "Nhân bản tất cả..." */
#id_chuyenhetoado_excel_div_groupdatatable>.hideScroll_y thead[id^="id_chuyenhetoado_thead_chuyenhetoado_"]>tr>th {
    background: var(--color-daidien-table-sautable) !important;
}

/* #id_chuyenhetoado_excel_div_datatable_vitri {
    color: var(--color-mauchu-chatgpt);
} */
#custom-popup {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 70;
    /* Đảm bảo giá trị này lớn hơn các phần tử khác */
}

#custom-popup-close {
    position: absolute;
    top: 2px;
    right: 3px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    padding: 0;
    color: #596777;
    background: transparent;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

#custom-popup-close:hover,
#custom-popup-close:focus {
    color: #b22222;
    background: rgba(0, 0, 0, .06);
}

#custom-popup-open-folder {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
    height: 18px;
    padding: 0 4px;
    color: #B22222;
    background: #FFFFFF;
    border: 0.5px solid #B22222;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

#custom-popup-open-folder i {
    color: inherit;
    font-size: 10px;
    margin-top: 1px;
}

#custom-popup-open-folder:hover,
#custom-popup-open-folder:focus {
    color: #B22222;
    background: #FFFFFF;
    border-color: #B22222;
    outline: none;
}


/* Thanh tiến trình tải bản đồ ban đầu */
.chuyenhetoado-horizontal-loader {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.chuyenhetoado-horizontal-loader-bar {
    width: 30%;
    height: 100%;
    background: var(--page-color, #1ab394);
    position: absolute;
    animation: sodo-slide-alternate 1.5s infinite alternate ease-in-out;
}

@keyframes sodo-slide-alternate {
    0% {
        left: 0;
    }

    100% {
        left: 70%;
    }
}


/* ==========================================================================
   V2 LAYOUT: Ô TÌM KIẾM NỔI GÓC TRÊN BẢN ĐỒ & THANH TRẠNG THÁI 1 TẦNG DƯỚI ĐÁY
   (Đồng bộ phong cách với /tim-thua-dat-tren-so-do)
   ========================================================================== */

/* Bỏ padding 15px mặc định của #page-wrapper để các nút neo left: 0 / 15px / 48px thẳng hàng tuyệt đối */
body.chtd-v2-has-bottom-bar #page-wrapper.chtd-v2-page-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Căn nút thu/mở menu trái (<) ngang tâm với ô tìm kiếm địa điểm nổi */
body.chtd-v2-has-bottom-bar .external-toggle-wrapper {
    top: 17px !important;
    z-index: 105 !important;
}

#id_header_group_timkiemdiadanh_arcgis.chtd-v2-floating-search {
    position: absolute !important;
    top: 10px;
    left: 24px;
    z-index: 100 !important;
    display: flex;
    align-items: center;
}

#id_header_group_timkiemdiadanh_arcgis.chtd-v2-floating-search .custom-search-wrapper {
    height: 32px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.24), 0 1px 3px rgba(15, 23, 42, 0.14);
}

#id_header_group_timkiemdiadanh_arcgis.chtd-v2-floating-search .custom-search-dropdown {
    left: 0;
    top: calc(100% + 4px);
    border-radius: 8px;
}

/* Căn góc dưới trái (Nền, Tâm ngắm, Địa chính) cách đều thanh đáy 26px */
body.chtd-v2-has-bottom-bar .gis-basemap-menu--coordinate {
    bottom: 10px !important;
    left: 15px !important;
}

body.chtd-v2-has-bottom-bar .gis-tieudiem-menu--coordinate {
    bottom: 38px !important;
    left: 15px !important;
}

@media (min-width: 769px) {
    body.chtd-v2-has-bottom-bar .gis-diachinh-menu--coordinate {
        bottom: 38px !important;
        left: 48px !important;
    }
}

/* Căn nút ẩn/hiện bảng Excel, tab Điểm/Tuyến/Đa giác và bảng dữ liệu theo vùng bản đồ hiển thị (bù 220px khi panel phải V2 mở trên desktop) */
.chtd-v2-excel-center-btn {
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#id_chuyenhetoado_excel_div_tab {
    transition: right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#id_chuyenhetoado_excel_div_groupdatatable {
    transition: margin-right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 769px) {
    body.chuyenhetoado-right-panel-open .chtd-v2-excel-center-btn {
        left: calc(50% - 110px);
    }

    body.chuyenhetoado-right-panel-open #id_chuyenhetoado_excel_div_tab {
        right: 220px !important;
    }

    body.chuyenhetoado-right-panel-open #id_chuyenhetoado_excel_div_groupdatatable {
        margin-right: 220px !important;
    }
}

/* Đồng bộ chiều cao menu trái & khung trang dừng ngay trên thanh trạng thái đáy 26px */
body.chtd-v2-has-bottom-bar #wrapper {
    height: calc(100vh - 26px) !important;
    min-height: 0 !important;
}

body.chtd-v2-has-bottom-bar #page-wrapper {
    height: calc(100vh - 26px) !important;
    min-height: calc(100vh - 26px) !important;
}

body.chtd-v2-has-bottom-bar nav.navbar-static-side {
    height: calc(100vh - 26px) !important;
    max-height: calc(100vh - 26px) !important;
}

body.chtd-v2-has-bottom-bar:not(.mini-navbar) #id_navigation_left_group_scroll {
    max-height: calc(100vh - 281px) !important;
}

body.chtd-v2-has-bottom-bar.mini-navbar #id_navigation_left_group_scroll {
    max-height: calc(100vh - 201px) !important;
}

@media (max-width: 768px) {
    body.chtd-v2-has-bottom-bar .external-toggle-wrapper {
        top: 10px !important;
        left: 0 !important;
    }

    body.chtd-v2-has-bottom-bar .optional-button-left-arcgis {
        padding-top: 28px !important;
    }

    body.chtd-v2-has-bottom-bar #id_navigation_left_group_scroll {
        max-height: calc(100vh - 211px) !important;
    }

    body.chuyenhetoado-right-panel-open .chtd-v2-excel-center-btn {
        left: 50%;
    }
}

/* Thanh trạng thái 1 tầng 26px dưới đáy toàn màn hình (kéo dài qua cả chân navigation_left) */
#chtd-v2-bottom-bar.chtd-v2-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    height: 26px;
    min-height: 26px;
    z-index: 1030;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(11, 19, 34, 0.98));
    box-shadow: 0 -2px 10px rgba(2, 6, 23, 0.24);
    color: #e2e8f0;
    font-family: "Open Sans", "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500 !important;
    line-height: 16px;
    letter-spacing: 0;
    text-shadow: none !important;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

#chtd-v2-bottom-bar[hidden],
#chtd-v2-bottom-bar [hidden] {
    display: none !important;
}

#chtd-v2-bottom-bar.chtd-v2-bottom-bar *:not(.fa):not(.fas):not(.far):not([class*="fa-"]):not(.chtd-v2-scale-popover):not(.chtd-v2-scale-popover *):not(.chtd-v2-docao-menu):not(.chtd-v2-docao-menu *) {
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* 1. Cụm trái: Múi chiếu · Kinh tuyến trục · Thước & Tỷ lệ */
.chtd-v2-bottom-bar__left-proj {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: min(430px, 46%);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 6px 0 8px;
    border-right: 1px solid rgba(71, 85, 105, 0.85);
    box-sizing: border-box;
    overflow: hidden;
}

.chtd-v2-bottom-bar__zone-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    height: 22px;
}

.chtd-v2-bottom-bar__lbl--mc {
    flex: 0 0 auto;
    display: inline-block;
    height: 16px;
    margin-right: 1px;
    color: #4ade80;
    font-size: 11px;
    font-weight: 600 !important;
    line-height: 16px;
    white-space: nowrap;
    cursor: help;
}

.chtd-v2-bottom-bar__lbl {
    flex: 0 0 auto;
    display: inline-block;
    height: 16px;
    font-size: 11px;
    line-height: 16px;
    color: #cbd5e1;
    white-space: nowrap;
}

.chtd-v2-bottom-bar__lbl--ktt {
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600 !important;
    line-height: 16px;
}

.chtd-v2-bottom-bar__lbl--ktt sub {
    font-size: 8px;
    font-weight: 600 !important;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    bottom: -0.18em;
}

.chtd-v2-bottom-bar__mui-label {
    display: inline-flex;
    align-items: center;
    gap: 1.5px;
    height: 22px;
    margin: 0 2px 0 0;
    padding: 0 1px;
    cursor: pointer;
    user-select: none;
    line-height: 16px;
}

.chtd-v2-bottom-bar__mui-label:last-of-type {
    margin-right: 0;
}

.chtd-v2-bottom-bar__mui-num {
    display: inline-block;
    height: 16px;
    font-size: 11px;
    color: #e2e8f0;
    line-height: 16px;
    font-variant-numeric: tabular-nums;
}

.chtd-v2-bottom-bar__left-proj input[type="radio"].chtd-v2-bottom-bar__mui-radio {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    position: relative;
    top: -1px;
    width: 13px;
    height: 13px;
    min-width: 13px;
    min-height: 13px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #94a3b8;
    border-radius: 50%;
    background: transparent;
    transform: scale(0.86);
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.chtd-v2-bottom-bar__mui-label:hover input[type="radio"].chtd-v2-bottom-bar__mui-radio:not(:checked) {
    border-color: #cbd5e1;
}

.chtd-v2-bottom-bar__left-proj input[type="radio"].chtd-v2-bottom-bar__mui-radio:checked {
    border: 1.5px solid #ffffff;
    background: radial-gradient(circle, #ffffff 0 3.2px, transparent 3.6px);
}

.chtd-v2-bottom-bar__seg-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-radius: 3.5px;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.chtd-v2-bottom-bar__seg-btn--ktt {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 210px;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 5px 0 3px;
}

#chtd-v2-bottom-bar .chtd-v2-bottom-bar__ktt-val {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    height: 16px;
    padding: 0;
    text-align: left;
    font-size: 11px;
    line-height: 16px;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chtd-v2-bottom-bar .chtd-v2-bottom-bar__ktt-val[style*="dc2626"],
#chtd-v2-bottom-bar .chtd-v2-bottom-bar__ktt-val[style*="220, 38, 38"] {
    color: #f87171 !important;
}

/* Thước & tỷ lệ */
.chtd-v2-bottom-bar__seg-btn--scale {
    flex: 0 0 auto;
    width: auto;
    min-width: 148px;
    gap: 4px;
    padding: 0 3px;
    justify-content: flex-start;
}

.chtd-v2-bottom-bar__scale-lbl {
    flex: 0 0 auto;
    display: block;
    height: 16px;
    line-height: 16px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
    white-space: nowrap;
}

.chtd-v2-bottom-bar__scale-track {
    flex: 0 0 auto;
    min-width: 26px;
    max-width: 44px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.chtd-v2-bottom-bar__scale-line {
    display: inline-block;
    width: 35px;
    min-width: 26px;
    max-width: 44px;
    height: 5px;
    border-left: 1.5px solid #e2e8f0;
    border-right: 1.5px solid #e2e8f0;
    border-bottom: 1.5px solid #e2e8f0;
    box-sizing: border-box;
    transform: translateY(0.5px);
}

.chtd-v2-bottom-bar__seg-btn--scale:hover .chtd-v2-bottom-bar__scale-line,
.chtd-v2-bottom-bar__seg-btn--scale.is-open .chtd-v2-bottom-bar__scale-line {
    border-color: #fde68a;
}

.chtd-v2-bottom-bar__scale-ratio {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 5px;
    display: inline-block;
    height: 16px;
    line-height: 16px;
    text-align: right;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.15px;
    color: #93c5fd;
    white-space: nowrap;
    transition: color 0.14s ease;
}

.chtd-v2-bottom-bar__scale-caret {
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 5px;
    color: #94a3b8;
    transition: transform 0.15s ease, color 0.14s ease;
}

.chtd-v2-bottom-bar__seg-btn--scale:hover .chtd-v2-bottom-bar__scale-caret,
.chtd-v2-bottom-bar__seg-btn--scale.is-open .chtd-v2-bottom-bar__scale-caret {
    color: #fde68a;
}

.chtd-v2-bottom-bar__seg-btn--scale.is-open .chtd-v2-bottom-bar__scale-caret {
    transform: rotate(180deg);
}

/* 2. Cụm phải: Chuột di chuyển · WGS84 · VN2000 · 2 cấp · 3 cấp · Cao độ */
.chtd-v2-bottom-bar__right-info {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0 6px 0 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.chtd-v2-bottom-bar__hover-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 100%;
}

.chtd-v2-bottom-bar__seg-btn--hover {
    flex: 0 0 auto;
    min-width: 148px;
    max-width: 176px;
    justify-content: flex-start;
    gap: 0;
}

.chtd-v2-bottom-bar__cursor-icon {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-right: 2px;
    display: block;
    pointer-events: none;
}

.chtd-v2-bottom-bar__coord--hover {
    color: #cbd5e1;
}

.chtd-v2-bottom-bar__coords-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 100%;
}

#chtd-v2-bottom-bar .chtd-v2-bottom-bar__target-icon {
    flex: 0 0 13px !important;
    width: 13px !important;
    height: 13px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    object-fit: contain !important;
    pointer-events: none;
}

#chtd-v2-bottom-bar .chtd-v2-bottom-bar__target-icon[style*="display: none"] {
    display: none !important;
}

#chtd-v2-bottom-bar .chtd-v2-bottom-bar__line-icon {
    flex: 0 0 18px;
    max-width: 18px;
    margin: 0 !important;
}

#chtd-v2-sep-vn2000:has(+ #id_header_txt_vn2000[style*="display: none"]) {
    display: none !important;
}

.chtd-v2-bottom-bar__seg-btn--wgs84 {
    flex: 0 0 auto;
    min-width: 188px;
    max-width: 218px;
    justify-content: flex-start;
    gap: 3px;
}

.chtd-v2-bottom-bar__seg-btn--vn2000 {
    flex: 0 0 auto;
    min-width: 212px;
    max-width: 240px;
    justify-content: flex-start;
    gap: 3px;
}

.chtd-v2-bottom-bar__sys {
    flex: 0 0 auto;
    display: inline-block;
    height: 16px;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
}

.chtd-v2-bottom-bar__sys--wgs84 {
    color: #facc15;
}

.chtd-v2-bottom-bar__sys--vn2000 {
    color: #f87171;
}

.chtd-v2-bottom-bar__coord {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    height: 16px;
    text-align: left;
    font-size: 11px;
    line-height: 16px;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chtd-v2-bottom-bar #id_header_txt_toadoxy i.fa-spinner {
    font-size: 10.5px !important;
    line-height: 16px !important;
    color: #f87171 !important;
    vertical-align: baseline !important;
}

#chtd-v2-bottom-bar .chtd-hdr-xy-spin-box {
    display: inline-flex;
    align-items: center;
    height: 16px;
}

/* Đơn vị hành chính 2 cấp / 3 cấp */
.chtd-v2-bottom-bar__admin-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.chtd-v2-bottom-bar__admin-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 1 auto;
    min-width: 68px;
    height: 22px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-radius: 3.5px;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    font-size: 11px;
    line-height: 16px;
    text-align: left;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.chtd-v2-bottom-bar__admin-item--3cap {
    min-width: 76px;
}

.chtd-v2-bottom-bar__admin-item:hover,
.chtd-v2-bottom-bar__admin-item:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.chtd-v2-bottom-bar__admin-item:hover .chtd-v2-bottom-admin-val {
    color: #fde68a;
}

.chtd-v2-bottom-admin-tag {
    flex: 0 0 auto;
    display: inline-block;
    height: 16px;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
}

.chtd-v2-bottom-admin-tag--2cap {
    color: #34d399;
}

.chtd-v2-bottom-admin-tag--3cap {
    color: #fb923c;
}

.chtd-v2-bottom-admin-val {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    height: 16px;
    padding: 0;
    color: #e2e8f0;
    font-size: 11px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chtd-v2-bottom-admin-val:empty:has(+ .chtd-v2-bottom-admin-spin[style*="display: none"])::before {
    content: "--";
    color: #64748b;
}

.chtd-v2-bottom-admin-spin {
    flex: 0 0 auto;
    font-size: 10.5px;
    color: #94a3b8;
}

/* Cao độ */
.chtd-v2-bottom-bar__elev-wrap {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.chtd-v2-bottom-bar__seg-btn--elev {
    flex: 0 0 auto;
    min-width: 58px;
    max-width: 82px;
    gap: 4px;
    padding: 0 4px;
    justify-content: space-between;
}

#chtd-v2-bottom-bar .chtd-v2-bottom-bar__elev-icon {
    flex: 0 0 11px;
    width: 11px;
    text-align: center;
    font-size: 10.5px;
    color: #38bdf8 !important;
}

.chtd-v2-bottom-bar__elev-val {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    height: 16px;
    line-height: 16px;
    text-align: right;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chtd-v2-bottom-bar__elev-val:empty:has(+ .chtd-v2-bottom-admin-spin[style*="display: none"])::before {
    content: "--";
    color: #94a3b8;
}

.chtd-v2-bottom-bar__sep {
    flex: 0 0 1px;
    width: 1px;
    height: 12px;
    background: rgba(148, 163, 184, 0.24);
}

/* Hiệu ứng hover các nút phân đoạn */
.chtd-v2-bottom-bar__seg-btn:hover,
.chtd-v2-bottom-bar__seg-btn:focus-visible,
.chtd-v2-bottom-bar__seg-btn--scale.is-open {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.chtd-v2-bottom-bar__seg-btn:hover .chtd-v2-bottom-bar__coord,
.chtd-v2-bottom-bar__seg-btn:hover .chtd-v2-bottom-bar__ktt-val,
.chtd-v2-bottom-bar__seg-btn:hover .chtd-v2-bottom-bar__elev-val,
.chtd-v2-bottom-bar__seg-btn:hover .chtd-v2-bottom-bar__scale-lbl,
.chtd-v2-bottom-bar__seg-btn--scale.is-open .chtd-v2-bottom-bar__scale-lbl,
.chtd-v2-bottom-bar__seg-btn--scale:hover .chtd-v2-bottom-bar__scale-ratio,
.chtd-v2-bottom-bar__seg-btn--scale.is-open .chtd-v2-bottom-bar__scale-ratio {
    color: #fde68a !important;
}

/* Menu 3 nguồn cao độ (gis.vn / srtm30m / aster30m) đồng bộ nền tối kính mờ */
.chtd-v2-docao-menu {
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(28, 41, 66, 0.96), rgba(18, 28, 48, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -10px 28px rgba(2, 6, 23, 0.52), 0 4px 14px rgba(2, 6, 23, 0.36) !important;
}

/* Popover chọn nhanh tỷ lệ bản đồ (khi được portal ra body) */
.chtd-hdr-scale-popover.chtd-v2-scale-popover {
    position: fixed;
    width: 262px;
    padding: 10px 11px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(28, 41, 66, 0.96), rgba(18, 28, 48, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -12px 32px rgba(2, 6, 23, 0.56), 0 8px 22px rgba(2, 6, 23, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    z-index: 10050;
    user-select: none;
}

.chtd-hdr-scale-popover.chtd-v2-scale-popover[hidden] {
    display: none !important;
}

.chtd-scale-pop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.chtd-scale-pop__cur {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chtd-scale-pop__cur-lbl {
    font-size: 10.5px;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.1;
}

.chtd-scale-pop__cur-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chtd-scale-pop__cur-val {
    font-size: 14px;
    font-weight: 700;
    color: #fde68a;
    font-variant-numeric: tabular-nums;
}

.chtd-scale-pop__zoom-pill {
    display: inline-flex;
    align-items: center;
    height: 17px;
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.34);
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.chtd-scale-pop__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(51, 65, 85, 0.65);
    color: #f1f5f9;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.14s ease;
}

.chtd-scale-pop__copy-btn:hover {
    background: rgba(59, 130, 246, 0.28);
    border-color: rgba(96, 165, 250, 0.72);
    color: #ffffff;
}

.chtd-scale-pop__hint {
    margin-top: 7px;
    font-size: 11px;
    font-weight: 500;
    color: #cbd5e1;
}

.chtd-scale-pop__hint strong {
    font-weight: 600;
    color: #f8fafc;
}

.chtd-scale-pop__section {
    margin-top: 8px;
}

.chtd-scale-pop__sec-title {
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
}

.chtd-scale-pop__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.chtd-scale-pop__preset {
    height: 24px;
    padding: 0 4px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(51, 65, 85, 0.56);
    color: #f1f5f9;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all 0.14s ease;
}

.chtd-scale-pop__preset:hover {
    background: rgba(71, 85, 105, 0.88);
    border-color: rgba(147, 197, 253, 0.6);
    color: #ffffff;
}

.chtd-scale-pop__preset.is-active {
    background: rgba(37, 99, 235, 0.42);
    border-color: #60a5fa;
    color: #fde68a;
    font-weight: 600;
}

.chtd-scale-pop__custom {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.chtd-scale-pop__custom-prefix {
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
}

.chtd-scale-pop__custom-input {
    flex: 1 1 0;
    min-width: 0;
    height: 25px;
    padding: 0 7px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(11, 18, 32, 0.72);
    color: #f8fafc;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    outline: none;
    user-select: text;
    -webkit-user-select: text;
}

.chtd-scale-pop__custom-input::placeholder {
    color: #94a3b8;
}

.chtd-scale-pop__custom-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22);
}

.chtd-scale-pop__custom-input.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.24);
}

.chtd-scale-pop__apply-btn {
    height: 25px;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.14s ease;
}

.chtd-scale-pop__apply-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Chống chồng lấn tự động giống trang Sổ đỏ */
#chtd-v2-bottom-bar.is-left-no-ratio .chtd-v2-bottom-bar__seg-btn--scale {
    min-width: 0;
}

#chtd-v2-bottom-bar.is-left-no-ratio .chtd-v2-bottom-bar__scale-ratio {
    display: none !important;
}

#chtd-v2-bottom-bar.is-measuring-overlap #id_header_group_A,
#chtd-v2-bottom-bar.is-measuring-overlap .chtd-v2-bottom-bar__admin-sep,
#chtd-v2-bottom-bar.is-measuring-overlap .chtd-v2-bottom-bar__admin-item--3cap {
    display: inline-flex !important;
}

#chtd-v2-bottom-bar.is-measuring-overlap .chtd-v2-bottom-bar__right-info,
#chtd-v2-bottom-bar.is-measuring-overlap .chtd-v2-bottom-bar__admin-inline,
#chtd-v2-bottom-bar.is-measuring-overlap .chtd-v2-bottom-bar__admin-item {
    flex: 0 0 auto !important;
    width: max-content !important;
    overflow: visible !important;
}

#chtd-v2-bottom-bar.is-compact-hover #id_header_group_A {
    display: none !important;
}

#chtd-v2-bottom-bar.is-compact-3cap .chtd-v2-bottom-bar__admin-sep,
#chtd-v2-bottom-bar.is-compact-3cap .chtd-v2-bottom-bar__admin-item--3cap {
    display: none !important;
}

#chtd-v2-bottom-bar.is-narrow .chtd-v2-bottom-bar__left-proj {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: 48%;
    padding: 0 5px;
}

#chtd-v2-bottom-bar.is-narrow .chtd-v2-bottom-bar__seg-btn--scale,
#chtd-v2-bottom-bar.is-narrow .chtd-v2-bottom-bar__sep--scale {
    display: none !important;
}

#chtd-v2-bottom-bar.is-narrow .chtd-v2-bottom-bar__right-info {
    justify-content: flex-start;
    padding: 0 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

#chtd-v2-bottom-bar.is-narrow .chtd-v2-bottom-bar__admin-inline,
#chtd-v2-bottom-bar.is-narrow .chtd-v2-bottom-bar__admin-item {
    flex: 0 0 auto;
}

#chtd-v2-bottom-bar.is-narrow .chtd-v2-bottom-bar__right-info::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   V2 QUICK DOCK GÓC TRÊN PHẢI BẢN ĐỒ: ĐÃ LƯU · + THƯ MỤC MỚI
   (Đồng bộ thiết kế với /tim-thua-dat-tren-so-do)
   ========================================================================== */
.chtd-v2-right-top-controls {
    position: absolute;
    top: 15px;
    right: 6px;
    z-index: 106;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    max-width: calc(100% - 56px);
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 769px) {
    body.chuyenhetoado-right-panel-open .chtd-v2-right-top-controls {
        transform: translateX(-220px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chtd-v2-right-top-controls {
        transition-duration: 0.01ms;
    }
}

.chtd-v2-map-quick-dock[hidden],
.chtd-v2-map-quick-dock [hidden] {
    display: none !important;
}

.chtd-v2-map-quick-dock {
    --chtd-v2-dock-pill-width: 85px;
    position: relative;
    z-index: 106;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: max-content;
    min-width: var(--chtd-v2-dock-pill-width);
    padding: 0;
    flex: 0 0 auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    font-family: "Open Sans", "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.chtd-v2-map-dock-btn {
    position: relative;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    font: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, filter 0.16s ease;
}

.chtd-v2-map-dock-btn:active {
    transform: scale(0.96);
}

.chtd-v2-map-dock-btn:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.chtd-v2-map-dock-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: var(--chtd-v2-dock-pill-width);
    gap: 10px;
}

.chtd-v2-map-dock-btn--list,
.chtd-v2-map-dock-btn--new {
    width: 100%;
    min-width: var(--chtd-v2-dock-pill-width);
    height: 22px;
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    overflow: visible;
    border-radius: 999px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.chtd-v2-map-dock-btn--list {
    padding: 0 4px;
    gap: 3px;
    background: #b91c1c;
    border: 1px solid #991b1b;
    color: #ffffff;
    box-shadow: 0 2px 7px rgba(153, 27, 27, 0.3), 0 1px 2px rgba(15, 23, 42, 0.16);
}

.chtd-v2-map-dock-btn--list:hover {
    background: #991b1b;
    box-shadow: 0 4px 10px rgba(153, 27, 27, 0.38);
}

.chtd-v2-map-dock-btn--list.is-open {
    border-color: #991b1b;
    box-shadow: 0 2px 7px rgba(153, 27, 27, 0.3), 0 1px 2px rgba(15, 23, 42, 0.16);
}

.chtd-v2-map-dock-btn--new {
    background: #16a34a;
    border: 1px solid #15803d;
    color: #ffffff;
    justify-content: flex-start;
    gap: 2px;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.32), 0 1px 2px rgba(15, 23, 42, 0.12);
}

.chtd-v2-map-dock-btn--new:hover {
    background: #15803d;
    border-color: #166534;
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.38);
}

.chtd-v2-map-dock-icon {
    display: block;
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    margin: 0;
    pointer-events: none;
}

.chtd-v2-map-dock-btn--list .chtd-v2-map-dock-icon {
    width: 15px;
    height: 15px;
    color: #ffeb00;
}

.chtd-v2-map-dock-btn--new .chtd-v2-map-dock-icon {
    width: 12px;
    height: 12px;
    margin-left: 1px;
    transform: translateX(1px);
    color: #ffffff;
}

.chtd-v2-map-dock-label {
    display: block;
    flex: 1 0 auto;
    text-align: left;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.chtd-v2-map-dock-btn--new .chtd-v2-map-dock-label {
    margin-left: 3px;
}

.chtd-v2-map-dock-badge {
    position: static;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3.5px;
    margin-left: auto;
    margin-right: 0;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
    pointer-events: none;
    box-shadow: none;
}

.chtd-v2-map-dock-badge.is-zero,
.chtd-v2-map-dock-badge.has-items {
    background: #ffeb00;
    color: #17233a;
    border: 0;
}

@media (max-width: 768px) {
    .chtd-v2-right-top-controls {
        top: 10px;
        right: 6px;
    }

    .chtd-v2-map-quick-dock {
        gap: 8px;
    }

    .chtd-v2-map-dock-actions {
        gap: 8px;
    }
}

/* Căn menu Chức năng sát mép phải bảng 220px khi bỏ nút Mở thư mục và giữ con trỏ bấm trực tiếp trên thẻ thư mục. */
#id_chuyenhetoado_right_list_danhsachbando > div.ibox.itemsbando {
    cursor: pointer;
}

#id_chuyenhetoado_right_list_danhsachbando .chtd-bando-dropdown-menu {
    left: auto !important;
    right: 0 !important;
}

/* ==========================================================================
   V2 MAP ACTION DOCK (Xem · Thêm · Sửa · Xóa | Lưu · Hủy) & MODAL LƯU THƯ MỤC
   Đồng bộ trực tiếp với giao diện /tim-thua-dat-tren-so-do
   ========================================================================== */
.chtd-v2-map-action-center-wrap {
    --chtd-v2-action-save-width: 85px;
    --chtd-v2-action-row-gap: 6px;
    --chtd-v2-action-subbar-center-left: calc(50% - ((var(--chtd-v2-action-save-width) + var(--chtd-v2-action-row-gap)) / 2));
    position: absolute;
    top: 11px;
    left: 242px;
    right: 204px;
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    pointer-events: none;
    font-family: "Open Sans", "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    transition: right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 769px) {
    body.chuyenhetoado-right-panel-open .chtd-v2-map-action-center-wrap {
        right: 416px;
    }
}

.chtd-v2-map-action-dock {
    position: static;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.chtd-v2-map-action-dock [hidden] {
    display: none !important;
}

.chtd-v2-map-action-top-row {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--chtd-v2-action-row-gap);
    max-width: 100%;
    pointer-events: none;
}

.chtd-v2-map-action-pills {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 28px;
    padding: 2px 3px;
    border: 1px solid rgba(250, 204, 21, 0.5);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.46), 0 0 0 1px rgba(251, 191, 36, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
    white-space: nowrap;
}

.chtd-v2-map-action-sep {
    flex: 0 0 auto;
    width: 1px;
    height: 14px;
    border-radius: 1px;
    background: rgba(148, 163, 184, 0.24);
    transition: opacity 0.15s ease;
}

.chtd-v2-map-add-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.chtd-v2-map-action-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 22px;
    padding: 0 9px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.chtd-v2-map-action-pill:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.chtd-v2-map-action-pill:active {
    transform: scale(0.97);
}

.chtd-v2-map-action-pill:focus:not(:focus-visible) {
    outline: none;
}

.chtd-v2-map-action-pill:focus-visible {
    outline: 2px solid #fde047;
    outline-offset: 1px;
}

.chtd-v2-map-action-pill.is-active {
    background: linear-gradient(180deg, #fde047 0%, #fbbf24 100%);
    color: #0b1220;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.chtd-v2-map-action-pill__icon {
    display: block;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    align-self: center;
}

.chtd-v2-map-action-pill__icon--parcel {
    width: 15px;
    height: 13.5px;
}

.chtd-v2-map-action-pill__icon--marker,
.chtd-v2-map-action-pill__icon--delete {
    width: 12px;
    height: 14.5px;
    margin: 0 -0.5px;
}

.chtd-v2-map-action-pill__caret {
    font-size: 9px;
    line-height: 1;
    opacity: 0.78;
    margin-left: -1px;
}

.chtd-v2-map-action-pill[data-mode="view"].is-active .chtd-v2-map-parcel-poly {
    fill: #fef08a;
    fill-opacity: 0.92;
    stroke: #dc2626;
}

.chtd-v2-map-action-pill[data-mode="view"].is-active .chtd-v2-map-parcel-dot {
    fill: #dc2626;
}

.chtd-v2-map-action-pill[data-mode="add"].is-active .chtd-v2-map-marker-drop {
    fill: #ffffff;
    stroke: #334155;
    stroke-width: 1.15;
    stroke-linejoin: round;
    paint-order: stroke fill;
}

.chtd-v2-map-action-pill[data-mode="add"].is-active .chtd-v2-map-marker-core {
    fill: #ef4444;
}

.chtd-v2-map-action-pill[data-mode="edit"].is-active .chtd-v2-map-edit-pencil {
    fill: #dbeafe;
    stroke: #1d4ed8;
}

.chtd-v2-map-action-pill[data-mode="edit"].is-active .chtd-v2-map-edit-tip {
    stroke: #1e3a8a;
}

.chtd-v2-map-action-pill[data-mode="delete"].is-active .chtd-v2-map-marker-drop {
    fill: #dc2626;
    stroke: #7f1d1d;
    stroke-width: 1;
    stroke-linejoin: round;
    paint-order: stroke fill;
}

.chtd-v2-map-action-pill[data-mode="delete"].is-active .chtd-v2-map-marker-cross {
    stroke: #ffffff;
}

/* Menu chọn Điểm / Tuyến / Đa giác xổ dưới nút Thêm */
.chtd-v2-map-add-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 146px;
    padding: 5px;
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 120;
    pointer-events: auto;
}

.chtd-v2-map-add-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.chtd-v2-map-add-item:hover,
.chtd-v2-map-add-item:focus-visible,
.chtd-v2-map-add-item.is-selected {
    background: rgba(251, 191, 36, 0.18);
    color: #fde047;
    outline: none;
}

.chtd-v2-map-add-item__icon {
    width: 14px;
    text-align: center;
    font-size: 12px;
    flex: 0 0 auto;
}

.chtd-v2-map-add-item__icon.is-point {
    color: #f87171;
}

.chtd-v2-map-add-item__icon.is-line {
    color: #fbbf24;
}

.chtd-v2-map-add-item__icon.is-polygon {
    color: #34d399;
}

/* Cụm nút Lưu / Hủy ngay bên phải thanh chế độ bản đồ */
.chtd-v2-map-action-save-group {
    pointer-events: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    width: var(--chtd-v2-action-save-width, 85px);
    min-width: var(--chtd-v2-action-save-width, 85px);
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    white-space: nowrap;
}

.chtd-v2-map-action-save-btn,
.chtd-v2-map-action-discard-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    flex: 1 1 0;
    min-width: 0;
    height: 22px;
    padding: 0 4px;
    margin: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.chtd-v2-map-action-save-btn {
    border: 1px solid #cc0000;
    background: red;
    color: #ffffff;
    box-shadow: 0 2px 7px rgba(153, 27, 27, 0.3), 0 1px 2px rgba(15, 23, 42, 0.16);
}

.chtd-v2-map-action-save-btn:not(.is-disabled):hover,
.chtd-v2-map-action-save-btn:not(.is-disabled):focus-visible {
    background: #dc2626;
    border-color: #b91c1c;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(153, 27, 27, 0.38);
}

.chtd-v2-map-action-discard-btn {
    border: 1px solid #334155;
    background: #475569;
    color: #ffffff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.32), 0 1px 2px rgba(15, 23, 42, 0.16);
}

.chtd-v2-map-action-discard-btn:not(.is-disabled):hover,
.chtd-v2-map-action-discard-btn:not(.is-disabled):focus-visible {
    border-color: #1e293b;
    background: #334155;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.4);
}

.chtd-v2-map-action-save-btn:not(.is-disabled):active,
.chtd-v2-map-action-discard-btn:not(.is-disabled):active {
    transform: scale(0.97);
}

.chtd-v2-map-action-save-btn.is-disabled,
.chtd-v2-map-action-discard-btn.is-disabled {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.88);
    color: rgba(148, 163, 184, 0.72);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 7px rgba(2, 6, 23, 0.28);
}

/* Dải chú thích siêu mảnh dưới thanh chế độ */
.chtd-v2-map-action-guide {
    position: absolute;
    top: calc(100% + 5px);
    left: var(--chtd-v2-action-subbar-center-left, 50%);
    transform: translateX(-50%);
    width: max-content;
    max-width: 100%;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 24px;
    padding: 2px 3.5px 2px 10px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.38);
    color: #e2e8f0;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    box-sizing: border-box;
}

.chtd-v2-map-action-guide__text {
    flex: 0 1 auto;
    min-width: 0;
    padding-top: 1px;
    line-height: 1.2;
    word-break: break-word;
}

.chtd-v2-map-action-guide__text b {
    color: #fbbf24;
    font-weight: 700;
}

.chtd-v2-map-action-guide__actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chtd-v2-map-action-guide__exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 1.5px 7px 0;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    color: #fde047;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.chtd-v2-map-action-guide__exit-inner {
    display: inline-block;
    line-height: 1;
}

.chtd-v2-map-action-guide__esc-key {
    font-size: inherit;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

.chtd-v2-map-action-guide__dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 4px;
    border-radius: 50%;
    background: #e2e8f0;
    vertical-align: middle;
    transform: translateY(-0.5px);
}

.chtd-v2-map-action-guide__exit:hover,
.chtd-v2-map-action-guide__exit:focus-visible {
    border-color: #fbbf24;
    background: #fbbf24;
    color: #0b1220;
}

.chtd-v2-map-action-guide__exit:hover .chtd-v2-map-action-guide__esc-key,
.chtd-v2-map-action-guide__exit:focus-visible .chtd-v2-map-action-guide__esc-key {
    color: #1e293b;
}

.chtd-v2-map-action-guide__exit:hover .chtd-v2-map-action-guide__dot,
.chtd-v2-map-action-guide__exit:focus-visible .chtd-v2-map-action-guide__dot {
    background: #0b1220;
}

.chtd-v2-map-action-guide__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.chtd-v2-map-action-guide__close:hover {
    background: #fbbf24;
    color: #0b1220;
}

@media (max-width: 1180px) and (min-width: 769px) {
    .chtd-v2-map-action-center-wrap {
        left: 236px;
        right: 196px;
    }

    body.chuyenhetoado-right-panel-open .chtd-v2-map-action-center-wrap {
        right: 408px;
    }

    .chtd-v2-map-action-pill {
        padding: 0 7px;
        gap: 4px;
        font-size: 10.5px;
    }
}

@media (max-width: 768px) {
    .chtd-v2-map-action-center-wrap {
        top: 50px;
        left: 8px;
        right: 8px;
    }

    .chtd-v2-map-action-pills {
        height: 25px;
        padding: 2px;
    }

    .chtd-v2-map-action-pill {
        height: 19px;
        gap: 3.5px;
        padding: 0 7px;
        font-size: 10px;
    }

    .chtd-v2-map-action-sep {
        height: 11px;
    }

    .chtd-v2-map-action-guide {
        left: 50%;
        font-size: 10px;
    }

    .chtd-v2-map-action-guide__esc-key {
        display: none;
    }
}

/* Modal Lưu thư mục mới (hỏi tên lần đầu khi lưu từ trạng thái trống) */
.chtd-v2-save-folder-modal[hidden] {
    display: none !important;
}

.chtd-v2-save-folder-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.chtd-v2-save-folder-dialog {
    width: 380px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    font-family: "Open Sans", "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.chtd-v2-save-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.chtd-v2-save-folder-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.chtd-v2-save-folder-close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.chtd-v2-save-folder-close:hover {
    color: #0f172a;
}

.chtd-v2-save-folder-body {
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chtd-v2-save-folder-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chtd-v2-save-folder-field label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.chtd-v2-save-folder-field label span {
    color: #dc2626;
}

.chtd-v2-save-folder-field input,
.chtd-v2-save-folder-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chtd-v2-save-folder-field input:focus,
.chtd-v2-save-folder-field textarea:focus {
    border-color: var(--page-color, #b22222);
    box-shadow: 0 0 0 2px rgba(178, 34, 34, 0.14);
}

.chtd-v2-save-folder-error {
    font-size: 11.5px;
    font-weight: 600;
    color: #dc2626;
}

.chtd-v2-save-folder-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 16px 14px;
}

.chtd-v2-save-folder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

.chtd-v2-save-folder-btn.is-confirm {
    border: 1px solid var(--page-color, #b22222);
    background: var(--page-color, #b22222);
    color: #ffffff;
}

.chtd-v2-save-folder-btn.is-confirm:hover:not(:disabled) {
    filter: brightness(0.92);
}

.chtd-v2-save-folder-btn.is-cancel {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.chtd-v2-save-folder-btn.is-cancel:hover {
    background: #f1f5f9;
}

/* ==========================================================================
   V2 RIGHT PANEL: NHÃN "CHƯA LƯU" & EMPTY STATE KHI DANH SÁCH ĐỐI TƯỢNG TRỐNG
   ========================================================================== */
.chtd-v2-folder-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 10px 0px 10px;
}

.chtd-v2-folder-title-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chtd-v2-folder-draft-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid #fcd34d;
    background: #fef3c7;
    color: #b45309;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.chtd-v2-folder-draft-badge[hidden] {
    display: none !important;
}

.chtd-v2-objects-empty-state {
    padding: 10px 8px 14px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    font-family: "Open Sans", "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.chtd-v2-objects-empty-state[hidden],
.chtd-v2-objects-empty-state [hidden] {
    display: none !important;
}

.chtd-v2-empty-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 10px 9px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    box-sizing: border-box;
}

.chtd-v2-empty-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chtd-v2-empty-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(26, 179, 148, 0.2);
    border: 1px solid rgba(26, 179, 148, 0.45);
    color: #5eead4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.chtd-v2-empty-titles {
    flex: 1 1 auto;
    min-width: 0;
}

.chtd-v2-empty-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.chtd-v2-empty-sub {
    margin-top: 2px;
    font-size: 10.5px;
    color: #cbd5e1;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chtd-v2-empty-steps {
    list-style: none;
    margin: 0;
    padding: 7px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chtd-v2-empty-steps li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 10.5px;
    line-height: 1.35;
    color: #cbd5e1;
}

.chtd-v2-empty-steps li b {
    color: #ffffff;
    font-weight: 700;
}

.chtd-v2-empty-step-num {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    border-radius: 50%;
    background: #1ab394;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chtd-v2-empty-add-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chtd-v2-empty-add-caption {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chtd-v2-empty-add-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.chtd-v2-empty-add-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    color: #f8fafc;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.chtd-v2-empty-add-btn i {
    font-size: 12px;
}

.chtd-v2-empty-add-btn.is-point i {
    color: #fb7185;
}

.chtd-v2-empty-add-btn.is-line i {
    color: #38bdf8;
}

.chtd-v2-empty-add-btn.is-polygon i {
    color: #34d399;
}

.chtd-v2-empty-add-btn:hover {
    background: rgba(26, 179, 148, 0.26);
    border-color: rgba(94, 234, 212, 0.65);
    color: #ffffff;
}

.chtd-v2-empty-add-btn:active {
    transform: scale(0.97);
}

.chtd-v2-empty-secondary-btn,
.chtd-v2-empty-saved-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 29px;
    padding: 5px 8px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
}

.chtd-v2-empty-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chtd-v2-empty-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.chtd-v2-empty-saved-btn {
    border: 1px solid #991b1b;
    background: #b91c1c;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.chtd-v2-empty-saved-btn i {
    color: #ffeb00;
    font-size: 12px;
    flex: 0 0 auto;
}

.chtd-v2-empty-saved-btn__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chtd-v2-empty-saved-btn__badge {
    flex: 0 0 auto;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ffeb00;
    color: #17233a;
    font-size: 9.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.chtd-v2-empty-saved-btn:hover {
    background: #991b1b;
    border-color: #7f1d1d;
}

.chtd-v2-empty-saved-btn:active,
.chtd-v2-empty-secondary-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   V2 RIGHT PANEL (GROUP B): THANH TÌM THƯ MỤC + NÚT NHẬP BẢN SAO LƯU (.gis)
   ========================================================================== */
.chtd-v2-folder-search-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 0 10px 10px 10px;
    box-sizing: border-box;
}

.chtd-v2-folder-search-input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    flex: 1 1 0;
    min-width: 0;
    width: 0 !important;
}

.chtd-v2-folder-search-input-group .form-control {
    flex: 1 1 0;
    width: 0 !important;
    min-width: 0;
    padding-left: 7px;
    padding-right: 6px;
}

.chtd-v2-folder-search-input-group .input-group-btn {
    width: auto !important;
    flex: 0 0 auto;
    display: flex;
}

.chtd-v2-folder-search-input-group .input-group-btn .btn {
    padding-left: 8px;
    padding-right: 8px;
}

.chtd-v2-folder-import-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
    padding: 0 6px;
    border-radius: 3px;
    border: 1px solid var(--color-daidien-nut-tai, #16a34a);
    background: #f0fdf4;
    color: var(--color-daidien-nut-tai, #16a34a);
    font-family: "Open Sans", "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.chtd-v2-folder-import-btn i {
    font-size: 11px;
}

.chtd-v2-folder-import-btn:hover,
.chtd-v2-folder-import-btn:focus-visible {
    background: var(--color-daidien-nut-tai, #16a34a);
    border-color: var(--color-daidien-nut-tai, #16a34a);
    color: #ffffff;
    outline: none;
}

.chtd-v2-folder-import-btn:active {
    transform: scale(0.97);
}

/* ==========================================================================
   V2 TOP ACTION BAR (BƯỚC 3): CHẾ ĐỘ CHỌN ĐỐI TƯỢNG & NÚT "CHỌN KHÁC"
   ========================================================================== */
.chtd-v2-map-action-guide__pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 7px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.chtd-v2-map-action-guide__pick:hover,
.chtd-v2-map-action-guide__pick:focus-visible {
    border-color: #38bdf8;
    background: #38bdf8;
    color: #0b1220;
}

.chtd-v2-map-action-save-btn.is-delete-confirm:not(.is-disabled) {
    border-color: #b91c1c;
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}

body.chtd-v2-pick-edit #id_chuyenhetoadowgs84vn2000_map_bandonen,
body.chtd-v2-pick-delete #id_chuyenhetoadowgs84vn2000_map_bandonen {
    cursor: crosshair;
}

body.chtd-v2-pick-edit #id_chuyenhetoado_right_list_danhsachdoituong > div.ibox.items {
    cursor: pointer;
    transition: box-shadow 0.14s ease, background-color 0.14s ease;
}

body.chtd-v2-pick-edit #id_chuyenhetoado_right_list_danhsachdoituong > div.ibox.items:hover {
    box-shadow: inset 3px 0 0 #0284c7, inset 0 0 0 1px rgba(2, 132, 199, 0.45);
    background-color: #f0f9ff;
}

body.chtd-v2-pick-delete #id_chuyenhetoado_right_list_danhsachdoituong > div.ibox.items {
    cursor: pointer;
    transition: box-shadow 0.14s ease, background-color 0.14s ease;
}

body.chtd-v2-pick-delete #id_chuyenhetoado_right_list_danhsachdoituong > div.ibox.items:hover {
    box-shadow: inset 3px 0 0 #dc2626, inset 0 0 0 1px rgba(220, 38, 38, 0.45);
    background-color: #fff1f2;
}

/* ==========================================================================
   V2 BACKGROUND FOLDER LOAD (BƯỚC 4): TRẠNG THÁI ĐANG TẢI & TẢI LẠI KHI LỖI
   ========================================================================== */
.chtd-v2-map-dock-badge.is-loading,
.chtd-v2-empty-saved-btn__badge.is-loading {
    background: #fef08a;
    color: #713f12;
    letter-spacing: 0.5px;
    animation: chtdV2BadgePulse 1.1s ease-in-out infinite;
}

@keyframes chtdV2BadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.chtd-v2-dsbando-retry-box {
    margin: 12px 10px;
    padding: 12px 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    text-align: center;
    font-family: "Open Sans", "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.chtd-v2-dsbando-retry-text {
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.chtd-v2-dsbando-retry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    padding: 0 12px;
    border-radius: 5px;
    border: 1px solid #fca5a5;
    background: #b91c1c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.chtd-v2-dsbando-retry-btn:hover {
    background: #991b1b;
}

/* ==========================================================================
   V2 RESPONSIVE TOP CONTROLS & BOTTOM BAR COPY AFFORDANCE (BƯỚC 6)
   ========================================================================== */

/* 1. Gợi ý sao chép trực quan trên Bottom Bar (không gây nhảy kích thước ô) */
#chtd-v2-bottom-bar .chtd-v2-copyable {
    position: relative;
    transition: background-color 0.14s ease, box-shadow 0.14s ease, transform 0.1s ease;
}

#chtd-v2-bottom-bar .chtd-v2-copyable:hover,
#chtd-v2-bottom-bar .chtd-v2-copyable:focus-visible {
    background: rgba(56, 189, 248, 0.16) !important;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.36);
    outline: none;
}

#chtd-v2-bottom-bar.chtd-v2-bottom-bar .chtd-v2-copyable::after {
    content: "\f0c5";
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 9.5px;
    line-height: 1;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 3px;
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.9);
    color: #7dd3fc;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

#chtd-v2-bottom-bar .chtd-v2-copyable:hover::after,
#chtd-v2-bottom-bar .chtd-v2-copyable:focus-visible::after {
    opacity: 1;
}

#chtd-v2-bottom-bar .chtd-v2-copyable:active {
    background: rgba(16, 185, 129, 0.28) !important;
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.55);
    transform: scale(0.985);
}

#chtd-v2-bottom-bar .chtd-v2-elev-copy-val {
    border-radius: 3px;
    padding: 0 2px;
    transition: background-color 0.14s ease, color 0.14s ease;
}

#chtd-v2-bottom-bar .chtd-v2-elev-copy-val:hover {
    background: rgba(56, 189, 248, 0.22);
    color: #fde68a !important;
    text-decoration: underline dotted rgba(253, 230, 138, 0.85);
    text-underline-offset: 2px;
}

/* 2. Laptop vừa (769px – 1220px): nới khoảng giữa cho thanh Xem · Thêm · Sửa · Xóa | Lưu · Hủy */
@media (max-width: 1220px) and (min-width: 769px) {
    #id_header_group_timkiemdiadanh_arcgis.chtd-v2-floating-search {
        left: 22px;
    }

    #id_header_group_timkiemdiadanh_arcgis.chtd-v2-floating-search .custom-search-wrapper {
        width: 184px !important;
        max-width: 184px;
    }

    .chtd-v2-map-action-center-wrap {
        left: 214px;
        right: 100px;
    }

    body.chuyenhetoado-right-panel-open .chtd-v2-map-action-center-wrap {
        right: 320px;
    }

    .chtd-v2-map-action-pill {
        padding: 0 7px;
        gap: 3.5px;
        font-size: 10.5px;
    }
}

/* Khi cửa sổ hẹp (769px – 1060px) mà mở đồng thời cả menu trái và panel phải 220px:
   hạ thanh chế độ xuống tầng 2 ngay dưới ô tìm kiếm để không bao giờ kẹt/đè lên nhau. */
@media (max-width: 1060px) and (min-width: 769px) {
    body:not(.mini-navbar).chuyenhetoado-right-panel-open .chtd-v2-map-action-center-wrap {
        top: 47px;
        left: 52px;
        right: 228px;
    }
}

/* 3. Điện thoại / Màn hình nhỏ (<= 768px): tách tầng rõ ràng, không đè nút trái và nút + Thư mục */
@media (max-width: 768px) {
    /* Hàng 1 (y = 9..37px): [<] [Ô tìm kiếm] [Đã lưu] [+ Thư mục] */
    #id_header_group_timkiemdiadanh_arcgis.chtd-v2-floating-search {
        top: 9px;
        left: 22px;
        width: calc(100% - 176px);
        max-width: calc(100% - 176px);
    }

    #id_header_group_timkiemdiadanh_arcgis.chtd-v2-floating-search .custom-search-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        height: 28px;
    }

    #id_header_group_timkiemdiadanh_arcgis.chtd-v2-floating-search .custom-search-input {
        font-size: 11.5px;
    }

    .chtd-v2-right-top-controls {
        top: 11px;
        right: 6px;
        max-width: none;
    }

    .chtd-v2-map-quick-dock {
        --chtd-v2-dock-pill-width: auto;
        min-width: 0;
    }

    .chtd-v2-map-dock-actions {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        min-width: 0;
        width: auto;
    }

    .chtd-v2-map-dock-btn--list,
    .chtd-v2-map-dock-btn--new {
        width: auto;
        min-width: 0;
        height: 24px;
        padding: 0 6px;
        font-size: 10px;
    }

    .chtd-v2-map-dock-badge {
        height: 14px;
        min-width: 14px;
        padding: 0 3px;
        font-size: 9px;
    }

    /* Cột công cụ dọc bên trái bắt đầu dưới ô tìm kiếm, chừa hành lang từ x = 48px sang phải */
    body.chtd-v2-has-bottom-bar .optional-button-left-arcgis {
        padding-top: 42px !important;
    }

    body.chtd-v2-has-bottom-bar .optional-button-left-arcgis > ul {
        padding-inline-start: 10px !important;
    }

    /* Hàng 2 (y = 42..66px): [Xem · Thêm · Sửa · Xóa] [Lưu | Hủy] nằm gọn bên phải cột công cụ trái */
    .chtd-v2-map-action-center-wrap {
        --chtd-v2-action-save-width: 72px;
        --chtd-v2-action-row-gap: 4px;
        top: 42px;
        left: 48px;
        right: 6px;
    }

    .chtd-v2-map-action-pills {
        height: 24px;
        padding: 2px;
    }

    .chtd-v2-map-action-pill {
        height: 18px;
        gap: 2.5px;
        padding: 0 5.5px;
        font-size: 9.5px;
    }

    .chtd-v2-map-action-save-group {
        height: 22px;
    }

    .chtd-v2-map-action-save-btn,
    .chtd-v2-map-action-discard-btn {
        height: 20px;
        font-size: 9.5px;
        padding: 0 3px;
    }

    .chtd-v2-map-action-guide {
        left: 50%;
        max-width: calc(100vw - 60px);
        font-size: 9.5px;
        padding: 2px 4px 2px 8px;
    }
}
