/* ===== PAGE-SCOPED STYLES MOVED FROM EJS ===== */
/* ===== SODO GOC PAGE STYLES ===== */
/* BAT DAU H. VUNG HEADER */
.dxf_sodo .btn-header {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: background-color 0.2s;
}

.dxf_sodo .btn-danger {
  background-color: #e81a54;
}

.dxf_sodo .btn-header:hover {
  background-color: #1557b0;
}

/* CSS cho Checkbox */
.dxf_sodo .sodo-left-panel .chk-label {
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.dxf_sodo .sodo-left-panel .chk-label input {
  margin: 0 !important;
}

.dxf_sodo .sodo-header .toolbar-chip {
  background: #f8fafc;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  padding: 5px 9px;
  min-height: 28px;
}

.dxf_sodo .sodo-header .toolbar-chip:hover {
  background: #eef6ff;
  border-color: #9ec5fe;
}

.dxf_sodo .sodo-header .toolbar-chip input:disabled {
  cursor: not-allowed;
}

.dxf_sodo .sodo-header .toolbar-input-wrap,
.dxf_sodo .sodo-header .toolbar-text-size {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.dxf_sodo .scrollable-controls {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.dxf_sodo .scrollable-controls::-webkit-scrollbar {
  height: 6px;
}

.dxf_sodo .scrollable-controls::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.dxf_sodo .scrollable-controls::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.dxf_sodo .scrollable-controls::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dxf_sodo {
  margin: 0;
  height: 100%;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
}

.dxf_sodo {
  overflow: hidden;
}

.dxf_sodo .panel {
  order: 2;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    border-width 0.22s ease;
}

.dxf_sodo .panel-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dxf_sodo .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dxf_sodo .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
  overflow: hidden;
  flex: 0 0 auto;
}

.dxf_sodo .brand-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.dxf_sodo .panel-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.dxf_sodo .panel-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.2;
  max-width: 230px;
}

.dxf_sodo .panel-body {
  padding: 10px;
  height: calc(100dvh - 28px);
  overflow: hidden;
  min-height: 0;
}

.dxf_sodo .hidden {
  display: none !important;
}

.dxf_sodo .danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.dxf_sodo .help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.dxf_sodo .mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.dxf_sodo .mini-actions button {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 11px;
  background: var(--panel-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.dxf_sodo .list-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-2);
}

.dxf_sodo .error {
  margin-top: 10px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border-radius: 12px;
  padding: 10px 11px;
  font-size: 13px;
  line-height: 1.4;
}

.dxf_sodo.dark .error {
  color: #fecaca;
}

.dxf_sodo .sodo-header .toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--toolbar-btn-border);
  background: var(--toolbar-btn);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  flex: 0 0 auto;
  letter-spacing: 0.01em;
}

.dxf_sodo .sodo-header .toolbar-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: white;
  padding: 0px;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  padding-left: 10px;
  padding-right: 10px;
}

.dxf_sodo .sodo-header .toolbar-btn.success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.2);
}

.dxf_sodo .sodo-header .toolbar-btn.warning {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.22);
}

.dxf_sodo .sodo-header .toolbar-btn.active {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
  border-color: var(--primary);
}

.dxf_sodo .sodo-header .toolbar-btn.icon-only {
  min-width: 42px;
  width: 42px;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
}

.dxf_sodo .sodo-header .toolbar-btn .icon {
  font-size: 15px;
  line-height: 1;
}

.dxf_sodo .icon-svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dxf_sodo .sodo-header .toolbar-btn.primary .icon-svg {
  width: 18px;
  height: 18px;
}

.dxf_sodo .sodo-header .toolbar-btn.icon-only .icon-svg {
  width: 18px;
  height: 18px;
}

.dxf_sodo .sodo-header .toolbar-btn.success .icon-svg {
  width: 15px;
  height: 15px;
}

.dxf_sodo .sodo-header .toolbar-btn.warning .icon-svg {
  width: 15px;
  height: 15px;
}

.dxf_sodo .status-item {
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 12px;
  min-width: 0;
}

.dxf_sodo .status-item b {
  color: var(--text);
}

.dxf_sodo .panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-3);
}

.dxf_sodo .filter-compact-group {
  margin-top: 8px;
  padding: 9px;
}

.dxf_sodo .compact-filter-actions {
  gap: 6px;
  margin-top: 7px;
}

.dxf_sodo .compact-filter-actions button {
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 10px;
}

.dxf_sodo .compact-panel-body {
  height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dxf_sodo .table-wrapper {
  flex: 1;
  overflow: auto;
  border: 0;
  position: relative;
  background: var(--panel-2);
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 145, 190, 0.35) transparent;
}

.dxf_sodo .table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dxf_sodo .table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(120, 145, 190, 0.35);
  border-radius: 999px;
}

.dxf_sodo .table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.dxf_sodo #data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.2px;
  table-layout: fixed;
  background: var(--panel-2);
}

.dxf_sodo #data-table th,
.dxf_sodo #data-table td {
  border: 1px solid var(--border);
  padding: 0;
  white-space: nowrap;
  text-align: center;
  height: 28px;
  position: relative;
  box-sizing: border-box;
}

.dxf_sodo #data-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 11.6px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 20;
  letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.dxf_sodo .cell-editable {
  width: 100%;
  height: 28px;
  line-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 9px;
  box-sizing: border-box;
  outline: none;
  background: transparent;
  color: var(--text);
  cursor: cell;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

.dxf_sodo .cell-readonly {
  background: var(--panel-3);
  color: var(--muted);
  cursor: default;
  justify-content: center;
  text-align: center;
  font-weight: 500;
}

.dxf_sodo .cell-editable.editing {
  background: #ffffff !important;
  color: #000000 !important;
  cursor: text;
  user-select: text;
}

.dxf_sodo #data-tbody tr:nth-child(even) td:not(.active-cell):not(.selected-range) {
  background: rgba(148, 163, 184, 0.035);
}

.dxf_sodo.dark #data-table th {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.dxf_sodo .btn-primary {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.dxf_sodo .btn-primary:hover {
  background-color: #1557b0;
}

/* Giao diá»‡n sĂ¡ng */
.dxf_sodo .theme-light {
  background: #ffffff !important;
}

.dxf_sodo .theme-light-header {
  background: #f1f1f1 !important;
  border-bottom: 1px solid #ccc !important;
  color: #000 !important;
}

.dxf_sodo .theme-light-text {
  color: #333 !important;
}

/* =========================================================
           Gá»˜P VĂ™NG B + C: Canvas váº½ ranh tá»« báº£ng tá»a Ä‘á»™ náº±m chá»“ng trong DXF Viewer Pro
           - Máº·c Ä‘á»‹nh áº©n Ä‘á»ƒ vĂ¹ng C Ä‘á»c DXF hoáº¡t Ä‘á»™ng bĂ¬nh thÆ°á»ng.
           - Khi báº£ng tá»a Ä‘á»™ cĂ³ dá»¯ liá»‡u, canvas nĂ y sáº½ hiá»‡n lĂªn trong vĂ¹ng C.
           ========================================================= */
.dxf_sodo #dxf-preview-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: none;
  z-index: 2;
  background: #000;
  cursor: grab;
}

.dxf_sodo #dxf-preview-canvas:active {
  cursor: grabbing;
}

.dxf_sodo #canvas.coordinate-mode-hidden {
  visibility: hidden;
}

.dxf_sodo .sodo-header .toolbar-area-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* =========================================================
           FIX LAYOUT FULL TRANG - KHĂ”NG KĂ‰O NGANG
           - Header chá»‰ cĂ²n thĂ´ng tin tá»a Ä‘á»™/hĂ nh chĂ­nh.
           - ToĂ n bá»™ nĂºt cĂ´ng cá»¥ Ä‘Æ°á»£c Ä‘Æ°a vĂ o toolbar vĂ¹ng DXF.
           - VĂ¹ng trĂ¡i giá»¯ láº¡i: báº£ng tá»a Ä‘á»™ + báº£n Ä‘á»“ ná»n.
           ========================================================= */
.dxf_sodo .sodo-main-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-left: 0;
  gap: 0;
}

.dxf_sodo .sodo-dxf-panel {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.dxf_sodo .sodo-dxf-panel .panel-body {
  height: 100%;
}

.dxf_sodo .sodo-header .dxf-header-tools {
  gap: 8px;
}

.dxf_sodo .sodo-header .dxf-header-tools .toolbar-chip {
  background: var(--toolbar-btn);
  border-color: var(--toolbar-btn-border);
  color: var(--text) !important;
}

.dxf_sodo .sodo-header .dxf-header-tools input[type="text"],
.dxf_sodo .sodo-header .dxf-header-tools input[type="number"] {
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--toolbar-btn-border);
  background: var(--toolbar-btn);
  color: var(--text);
  outline: none;
  padding: 0 8px;
}

.dxf_sodo .sodo-header .dxf-header-tools .btn-header {
  min-height: 32px;
  border-radius: 12px;
  box-shadow: none;
  padding: 6px 10px;
}

.dxf_sodo .header-info-only {
  flex: 1;
  min-width: 0;
}

.dxf_sodo .sodo-header .toolbar-group+.toolbar-group::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(148, 163, 184, 0.45);
}

.dxf_sodo .sodo-header .toolbar-btn,
.dxf_sodo .sodo-header .dxf-header-tools .btn-header {
  min-height: 27px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
  gap: 4px !important;
  line-height: 1.15 !important;
}

.dxf_sodo .sodo-header .toolbar-btn.primary {
  padding: 4px 10px !important;
}

.dxf_sodo .sodo-header .toolbar-btn.icon-only {
  min-width: 30px !important;
  width: 30px !important;
  min-height: 27px !important;
}

.dxf_sodo .sodo-header .toolbar-btn .icon {
  font-size: 13px !important;
}

.dxf_sodo .sodo-header .icon-svg,
.dxf_sodo .sodo-header .toolbar-btn.icon-only .icon-svg {
  width: 14px !important;
  height: 14px !important;
}

.dxf_sodo .sodo-header .toolbar-chip {
  min-height: 27px !important;
  padding: 4px 7px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}

.dxf_sodo .sodo-header .dxf-header-tools input[type="text"],
.dxf_sodo .sodo-header .dxf-header-tools input[type="number"] {
  height: 27px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}

.dxf_sodo .sodo-header .toolbar-area-badge {
  min-height: 27px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
}

.dxf_sodo .status-item {
  padding: 6px 8px !important;
  border-radius: 10px !important;
}

.dxf_sodo,
.dxf_sodo body {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.dxf_sodo #wrapper {
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.dxf_sodo #page-wrapper,
.dxf_sodo .gray-bg.sidebar-content {
  height: 100vh !important;
  min-height: 100vh !important;
  margin-top: 0 !important;
  margin-left: 220px !important;
  /* NhÆ°á»ng chá»— cho sidebar navigation_left.ejs (220px) */
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.dxf_sodo #page-wrapper>.row.border-bottom {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Khi sidebar thu nhá» (mini-navbar), #page-wrapper lĂ¹i láº¡i 70px Ä‘á»ƒ vá»«a vá»›i sidebar nhá» */
.dxf_sodo.mini-navbar #page-wrapper,
.dxf_sodo.fixed-sidebar.mini-navbar #page-wrapper {
  margin-left: 70px !important;
}

/* Äáº£m báº£o nĂºt toggle di chuyá»ƒn vĂ  xoay Ä‘Ăºng vá»‹ trĂ­ khi thu gá»n trĂªn trang SÆ¡ Ä‘á»“ */
.dxf_sodo.mini-navbar .external-toggle-wrapper {
  left: 70px !important;
}

.dxf_sodo.mini-navbar .external-toggle-wrapper i {
  transform: rotate(0deg) !important;
  margin-left: -4px !important;
}

.dxf_sodo .sodo-main-layout {
  height: 100vh !important;
  min-height: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}

.dxf_sodo #id_sodo_div_excel {
  min-height: 0 !important;
  background: var(--panel-2) !important;
}

.dxf_sodo #id_sodo_map_bandonen {
  height: auto !important;
  flex: 6 !important;
  min-height: 0 !important;
  position: relative !important;
  background: var(--panel-2) !important;
  overflow: hidden !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado {
  width: 300px !important;
  height: 210px !important;
  bottom: auto !important;
  top: 65px !important;
  left: 65px !important;
  border: 1px solid #e7eaec !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .content {
  display: block !important;
  height: 100% !important;
  padding: 0 !important;
}

.dxf_sodo #id_dxf_sodo_doitoado_nhom_wgs84,
.dxf_sodo #id_dxf_sodo_doitoado_nhom_vn2000 {
  width: 100% !important;
  padding: 0 !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .ibox-content {
  height: 100% !important;
  border-color: white !important;
  padding: 0 14px 14px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.dxf_sodo #id_sodo_dxf_txt_wgs84,
.dxf_sodo #id_dxf_sodo_txt_vn2000 {
  display: inline-block !important;
  height: 23px !important;
  line-height: 23px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

.dxf_sodo #id_sodo_dxf_txt_wgs84 {
  color: var(--color-daidien-wgs84) !important;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important;
}

.dxf_sodo #id_dxf_sodo_txt_vn2000 {
  color: var(--color-daidien-vn2000) !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .CodeMirror {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 140px !important;
  min-height: 0 !important;
  border: 1px solid #e7eaec !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .CodeMirror-scroll {
  height: 100% !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado,
.dxf_sodo #id_dxf_sodo_panel_doitoado .optional-button-right-arcgis,
.dxf_sodo #id_dxf_sodo_panel_doitoado label,
.dxf_sodo #id_dxf_sodo_panel_doitoado b,
.dxf_sodo #id_dxf_sodo_panel_doitoado span {
  color: black;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .optional-button-right-arcgis {
  top: 5px !important;
  left: auto !important;
  right: 5px !important;
  width: auto !important;
  height: 24px !important;
  padding-top: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.dxf_sodo #id_dxf_sodo_doitoado_btn_thoat {
  position: absolute !important;
  top: 0px !important;
  right: 0px !important;
  left: auto !important;
  bottom: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #888 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  opacity: 0.6 !important;
  cursor: pointer !important;
  transition: opacity 0.15s, color 0.15s !important;
}

.dxf_sodo #id_dxf_sodo_doitoado_btn_thoat:hover {
  opacity: 1 !important;
  color: #ff3333 !important;
}

.dxf_sodo #id_sodo_dxf_btn_chuyendoi_timwgs84,
.dxf_sodo #id_dxf_sodo_btn_chuyendoi_vn2000,
.dxf_sodo #id_dxf_sodo_btn_upload_kml {
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 3px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 0 4px 3px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

.dxf_sodo #id_sodo_dxf_btn_chuyendoi_timwgs84 {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.dxf_sodo #wrapper {
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.dxf_sodo #page-wrapper,
.dxf_sodo .gray-bg.sidebar-content {
  height: 100vh !important;
  min-height: 100vh !important;
  margin-top: 0 !important;
  margin-left: 220px !important;
  /* NhÆ°á» ng chá»— cho sidebar navigation_left.ejs (220px) */
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.dxf_sodo #page-wrapper>.row.border-bottom {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Khi sidebar thu nhá»  (mini-navbar), #page-wrapper lĂ¹i láº¡i 70px Ä‘á»ƒ vá»«a vá»›i sidebar nhá»  */
.dxf_sodo.mini-navbar #page-wrapper,
.dxf_sodo.fixed-sidebar.mini-navbar #page-wrapper {
  margin-left: 70px !important;
}

/* Ä áº£m báº£o nĂºt toggle di chuyá»ƒn vĂ  xoay Ä‘Ăºng vá»‹ trĂ­ khi thu gá» n trĂªn trang SÆ¡ Ä‘á»“ */
.dxf_sodo.mini-navbar .external-toggle-wrapper {
  left: 70px !important;
}

.dxf_sodo.mini-navbar .external-toggle-wrapper i {
  transform: rotate(0deg) !important;
  margin-left: -4px !important;
}

.dxf_sodo .sodo-main-layout {
  height: 100vh !important;
  min-height: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}

.dxf_sodo #id_sodo_div_excel {
  min-height: 0 !important;
  background: var(--panel-2) !important;
}

.dxf_sodo #id_sodo_map_bandonen {
  height: auto !important;
  flex: 6 !important;
  min-height: 0 !important;
  position: relative !important;
  background: var(--panel-2) !important;
  overflow: hidden !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado {
  width: 300px !important;
  height: 210px !important;
  bottom: auto !important;
  top: 65px !important;
  left: 65px !important;
  border: 1px solid #e7eaec !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .content {
  display: block !important;
  height: 100% !important;
  padding: 0 !important;
}

.dxf_sodo #id_dxf_sodo_doitoado_nhom_wgs84,
.dxf_sodo #id_dxf_sodo_doitoado_nhom_vn2000 {
  width: 100% !important;
  padding: 0 !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .ibox-content {
  height: 100% !important;
  border-color: white !important;
  padding: 0 14px 14px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.dxf_sodo #id_sodo_dxf_txt_wgs84,
.dxf_sodo #id_dxf_sodo_txt_vn2000 {
  display: inline-block !important;
  height: 23px !important;
  line-height: 23px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

.dxf_sodo #id_sodo_dxf_txt_wgs84 {
  color: var(--color-daidien-wgs84) !important;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 !important;
}

.dxf_sodo #id_dxf_sodo_txt_vn2000 {
  color: var(--color-daidien-vn2000) !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .CodeMirror {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 140px !important;
  min-height: 0 !important;
  border: 1px solid #e7eaec !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .CodeMirror-scroll {
  height: 100% !important;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado,
.dxf_sodo #id_dxf_sodo_panel_doitoado .optional-button-right-arcgis,
.dxf_sodo #id_dxf_sodo_panel_doitoado label,
.dxf_sodo #id_dxf_sodo_panel_doitoado b,
.dxf_sodo #id_dxf_sodo_panel_doitoado span {
  color: black;
}

.dxf_sodo #id_dxf_sodo_panel_doitoado .optional-button-right-arcgis {
  top: 5px !important;
  left: auto !important;
  right: 5px !important;
  width: auto !important;
  height: 24px !important;
  padding-top: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.dxf_sodo #id_dxf_sodo_doitoado_btn_thoat {
  position: absolute !important;
  top: 0px !important;
  right: 0px !important;
  left: auto !important;
  bottom: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #888 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  opacity: 0.6 !important;
  cursor: pointer !important;
  transition: opacity 0.15s, color 0.15s !important;
}

.dxf_sodo #id_dxf_sodo_doitoado_btn_thoat:hover {
  opacity: 1 !important;
  color: #ff3333 !important;
}

.dxf_sodo #id_sodo_dxf_btn_chuyendoi_timwgs84,
.dxf_sodo #id_dxf_sodo_btn_chuyendoi_vn2000,
.dxf_sodo #id_dxf_sodo_btn_upload_kml {
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 3px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 0 4px 3px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

.dxf_sodo #id_sodo_dxf_btn_chuyendoi_timwgs84 {
  background-color: var(--color-daidien-vn2000) !important;
  border: 1px solid #9E1E1E !important;
  color: white !important;
}

.dxf_sodo #id_dxf_sodo_btn_chuyendoi_vn2000 {
  background-color: yellow !important;
  border: 1px solid #C29F0B !important;
  color: #333 !important;
}

.dxf_sodo #id_dxf_sodo_btn_upload_kml {
  background-color: #1ab394 !important;
  border: 1px solid #18a689 !important;
  color: white !important;
}

.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_wgs84,
.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_vn2000,
.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_kml {
  width: 31px !important;
  height: 31px !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  color: black !important;
  box-shadow: 0 2px 4px rgb(0 0 0 / 30%) !important;
  text-align: center !important;
  background: rgb(255, 255, 255) !important;
  margin: 0 auto !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column !important;
  padding: 0 !important;
  user-select: none !important;
}

.dxf_sodo #id_dxf_sodo_btn_timvitri_google,
.dxf_sodo #id_dxf_sodo_btn_danduong_google {
  height: 26px !important;
  border-radius: 13px !important;
  box-shadow: 0 2px 4px rgb(0 0 0 / 30%) !important;
  text-align: center !important;
  background: rgb(255, 255, 255) !important;
  margin: 0 auto !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-direction: row !important;
  padding: 0 10px !important;
  gap: 2px !important;
  user-select: none !important;
  transition: all 0.2s ease-in-out !important;
  border: 1px solid #e2e8f0 !important;
}

.dxf_sodo #id_dxf_sodo_btn_timvitri_google {
  width: 100px !important;
}

.dxf_sodo #id_dxf_sodo_btn_danduong_google {
  width: 136px !important;
}

.dxf_sodo #id_dxf_sodo_btn_timvitri_google:hover,
.dxf_sodo #id_dxf_sodo_btn_danduong_google:hover {
  background: #f8fafc !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px);
}

.dxf_sodo #id_dxf_sodo_btn_timvitri_google>svg,
.dxf_sodo #id_dxf_sodo_btn_danduong_google>svg {
  display: inline-block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_wgs84>i,
.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_vn2000>i,
.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_kml>i {
  font-size: 12px !important;
  white-space: nowrap !important;
  margin-bottom: 0 !important;
}

.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_kml>i {
  margin-bottom: 3px !important;
}

.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_wgs84>b {
  font-size: 10px !important;
  color: var(--color-daidien-wgs84) !important;
  margin-top: 0 !important;
  font-family: 'Font Awesome 4' !important;
  text-shadow:
    -0.4px -0.4px 0 #222,
    0.4px -0.4px 0 #222,
    -0.4px 0.4px 0 #222,
    0.4px 0.4px 0 #222,
    0 -0.6px 0 #000 !important;
}

.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_vn2000>b {
  font-size: 9.5px !important;
  color: var(--color-daidien-vn2000) !important;
  margin-top: 0 !important;
  font-family: 'Font Awesome 4' !important;
}

.dxf_sodo #id_dxf_sodo_btn_timkiemtoado_kml>b {
  font-size: 8.5px !important;
  color: #32CD32 !important;
  margin-top: 0 !important;
  font-family: 'Font Awesome 4' !important;
  line-height: 1 !important;
}

.dxf_sodo #id_dxf_sodo_btn_timvitri_google>b,
.dxf_sodo #id_dxf_sodo_btn_danduong_google>b {
  font-size: 11px !important;
  color: #000000 !important;
  font-family: inherit !important;
  line-height: 1 !important;
  margin-top: 0 !important;
  font-weight: 700 !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

.dxf_sodo .table-wrapper {
  height: 100% !important;
  min-height: 0 !important;
}

.dxf_sodo #id_dxf_sodo_header_sl_cha_kinhtuyentruc .select2-container {
  width: 145px !important;
}

.dxf_sodo #id_dxf_sodo_header_sl_cha_kinhtuyentruc .select2-selection--single {
  height: 24px !important;
  border-color: #cbd5e1 !important;
}

.dxf_sodo #id_dxf_sodo_header_sl_cha_kinhtuyentruc .select2-selection__rendered {
  line-height: 22px !important;
  font-size: 12px !important;
  padding-left: 7px !important;
  color: #1f2937 !important;
}

.dxf_sodo #id_dxf_sodo_header_sl_cha_kinhtuyentruc .select2-selection__arrow {
  height: 22px !important;
}

.dxf-sodo-ktt-dropdown {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  opacity: 1 !important;
  z-index: 3000 !important;
}

.dxf-sodo-ktt-dropdown .select2-search__field {
  color: #111827 !important;
  background: #ffffff !important;
  border-color: #64748b !important;
}

.dxf-sodo-ktt-dropdown .select2-results__option {
  color: #111827 !important;
  background: #ffffff !important;
  opacity: 1 !important;
}

.dxf-sodo-ktt-dropdown .select2-results__option[aria-selected=true] {
  color: #111827 !important;
  background: #dbe4ee !important;
}

.dxf-sodo-ktt-dropdown .select2-results__option--highlighted[aria-selected] {
  color: #ffffff !important;
  background: #2563eb !important;
}

.dxf-sodo-ktt-dropdown .select2-results__option[aria-disabled=true] {
  color: #64748b !important;
  background: #f8fafc !important;
}

/* =========================================================
           FIX: Cá»™t trĂ¡i rá»™ng Ä‘Ăºng theo báº£ng Excel, pháº§n cĂ²n láº¡i lĂ  Canvas
           ========================================================= */
.dxf_sodo {
  --left-excel-width: 500px;
}

.dxf_sodo .sodo-dxf-panel {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.dxf_sodo #id_sodo_div_excel,
.dxf_sodo #id_sodo_map_bandonen {
  width: 100% !important;
}

.dxf_sodo #data-table {
  width: 100% !important;
  min-width: unset !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.dxf_sodo .table-wrapper {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* FIX: Bá» border ngoĂ i cĂ¹ng cá»§a vĂ¹ng Excel, chá»‰ giá»¯ Ä‘Æ°á»ng káº» Ă´ bĂªn trong */
.dxf_sodo #id_sodo_div_excel {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.dxf_sodo #id_sodo_map_bandonen {
  border-top: none !important;
}

.dxf_sodo .arcgis-map-loading {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  pointer-events: none;
}

.dxf_sodo .arcgis-map-loading i {
  color: var(--primary);
}

/* Horizontal loader running left to right and back */
.dxf_sodo .sodo-horizontal-loader {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.dxf_sodo .sodo-horizontal-loader-bar {
  width: 30%;
  height: 100%;
  background: #ef4444;
  position: absolute;
  animation: sodo-slide-alternate 1.5s infinite alternate ease-in-out;
}

@keyframes sodo-slide-alternate {
  0% {
    left: 0;
  }
  100% {
    left: 70%;
  }
}

.dxf_sodo #id_sodo_map_bandonen .esri-ui-corner .esri-component {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  border: 1px solid var(--border);
}

.dxf_sodo.dark #id_sodo_map_bandonen .esri-widget,
.dxf_sodo.dark #id_sodo_map_bandonen .esri-widget--button {
  background: var(--toolbar-btn);
  color: var(--text);
}

.dxf_sodo #id_sodo_div_excel .table-wrapper {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.dxf_sodo .sodo-dropdown {
  position: relative;
  display: inline-flex !important;
  padding: 0 !important;
}

.dxf_sodo #trigger-display {
  color: #a78bfa !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
  background: rgba(167, 139, 250, 0.05) !important;
}

.dxf_sodo #trigger-config {
  color: #fb923c !important;
  border-color: rgba(251, 146, 60, 0.4) !important;
  background: rgba(251, 146, 60, 0.05) !important;
}

.dxf_sodo #trigger-tools {
  color: #22d3ee !important;
  border-color: rgba(34, 211, 238, 0.4) !important;
  background: rgba(34, 211, 238, 0.05) !important;
}

.dxf_sodo #trigger-export {
  color: #f472b6 !important;
  border-color: rgba(244, 114, 182, 0.4) !important;
  background: rgba(244, 114, 182, 0.05) !important;
}

.dxf_sodo .sodo-header .dropdown-trigger i,
.dxf_sodo .sodo-header .toolbar-btn i,
.dxf_sodo .sodo-header .toolbar-btn span,
.dxf_sodo .sodo-header .dropdown-trigger span,
.dxf_sodo .sodo-header .icon-svg {
  color: inherit !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dxf_sodo .dropdown-trigger i:first-child {
  margin-right: 8px !important;
  font-size: 14px !important;
  opacity: 0.9;
}

.dxf_sodo .fa-caret-down {
  margin-left: 8px !important;
  font-size: 12px !important;
}

.dxf_sodo .icon-svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  flex-shrink: 0 !important;
}

.dxf_sodo .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 176px;
  z-index: 300 !important;
  border-radius: 10px;
  padding: 6px;
  background: rgba(11, 21, 38, 0.96) !important;
  border: 1px solid rgba(96, 165, 250, 0.18) !important;
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.dxf_sodo .sodo-dropdown.active .dropdown-content {
  display: block;
}

.dxf_sodo .dropdown-item span {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.dxf_sodo .dropdown-item:hover {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #ffffff !important;
}

.dxf_sodo .dropdown-item.active {
  background: rgba(37, 99, 235, 0.16) !important;
  color: #eff6ff !important;
}

.dxf_sodo .dropdown-item.active i,
.dxf_sodo .dropdown-item.active .icon {
  color: #bfdbfe;
}

.dxf_sodo .dropdown-item input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.dxf_sodo .dropdown-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.16);
  margin: 5px 2px;
}

.dxf_sodo .dropdown-field {
  flex-direction: column;
  align-items: flex-start !important;
}

.dxf_sodo .dropdown-field span {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.dxf_sodo .dropdown-field input {
  width: 100%;
  padding: 6px;
  background: #111827;
  color: white;
  border: 1px solid #374151;
  border-radius: 6px;
  font-size: 12px;
}

.dxf_sodo .sodo-header .toolbar.toolbar-legacy-hidden {
  display: none !important;
}

/* BAT DAU  C. VUNG BEN PHAI DXF */
.dxf_sodo {
  --bg: #eef2ff;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-2: #ffffff;
  --panel-3: #f8fbff;
  --border: #dbe4f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #16a34a;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  --canvas-bg: #0b1526;
  --grid: rgba(15, 23, 42, 0.06);
  --overlay: rgba(15, 23, 42, 0.82);
  --list-hover: #f1f5f9;
  --list-active: #dbeafe;
  --crosshair: rgba(37, 99, 235, 0.45);
  --minimap-bg: rgba(255, 255, 255, 0.9);
  --minimap-border: rgba(15, 23, 42, 0.15);
  --toolbar-bg: rgba(255, 255, 255, 0.82);
  --toolbar-group: rgba(248, 251, 255, 0.92);
  --toolbar-btn: #ffffff;
  --toolbar-btn-border: #d7e1ef;
  --drop-overlay: rgba(255, 255, 255, 0.72);
  --drop-box: rgba(255, 255, 255, 0.94);
}

.dxf_sodo.dark {
  --bg: #0b1220;
  --panel: rgba(15, 23, 42, 0.95);
  --panel-2: #111827;
  --panel-3: #0f1a2e;
  --border: #223148;
  --text: #e5eefb;
  --muted: #93a4bc;
  --primary: #60a5fa;
  --primary-2: #3b82f6;
  --danger: #f87171;
  --warning: #fbbf24;
  --success: #34d399;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --canvas-bg: #0b1526;
  --grid: rgba(255, 255, 255, 0.05);
  --overlay: rgba(2, 6, 23, 0.86);
  --list-hover: #152034;
  --list-active: #172554;
  --crosshair: rgba(255, 255, 255, 0.18);
  --minimap-bg: rgba(2, 6, 23, 0.82);
  --minimap-border: rgba(255, 255, 255, 0.16);
  --toolbar-bg: rgba(8, 15, 29, 0.88);
  --toolbar-group: rgba(16, 25, 43, 0.95);
  --toolbar-btn: #12203a;
  --toolbar-btn-border: #243653;
  --drop-overlay: rgba(2, 6, 23, 0.45);
  --drop-box: rgba(8, 15, 29, 0.92);
}

.dxf_sodo .file-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}

.dxf_sodo .file-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.dxf_sodo .file-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.dxf_sodo .compact-btn {
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 10px;
}

.dxf_sodo .group {
  margin-top: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 14px;
  padding: 10px;
}

.dxf_sodo .group-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.dxf_sodo .entity-list,
.dxf_sodo .summary-list {
  max-height: 150px;
  overflow: auto;
}

.dxf_sodo .entity-item.active {
  background: var(--list-active);
}

.dxf_sodo .entity-item {
  cursor: pointer;
}

.dxf_sodo .entity-type {
  font-weight: 500;
  font-size: 13px;
}

.dxf_sodo .swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
}

.dxf_sodo .toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
  border: none;
  flex: 0 0 auto;
}

.dxf_sodo .toggle:checked {
  background: var(--primary);
}

.dxf_sodo .toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}

.dxf_sodo .toggle:checked::after {
  transform: translateX(16px);
}

.dxf_sodo .overlay {
  position: absolute;
  z-index: 4;
  background: var(--overlay);
  color: white;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  backdrop-filter: blur(6px);
  max-width: 360px;
  white-space: pre-line;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.dxf_sodo .overlay.top-right {
  top: 12px;
  right: 12px;
}

.dxf_sodo .overlay.bottom-left {
  bottom: 12px;
  left: 12px;
}

/* Cá»™t Ghi chĂº (cá»™t thá»© 5) luĂ´n canh trĂ¡i Ä‘á»ƒ dá»… Ä‘á»c chá»¯ */
.dxf_sodo #data-table td:nth-child(5) .cell-editable {
  justify-content: flex-start;
  text-align: left;
}

.dxf_sodo .panel-tab-btn {
  min-height: 48px;
  padding: 7px 6px;
  border-radius: 11px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}

.dxf_sodo .panel-tab-btn:hover {
  background: var(--panel-2);
  color: var(--text);
  transform: none;
}

.dxf_sodo .panel-tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.dxf_sodo #tab-entities.active,
.dxf_sodo #tab-props.active {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.dxf_sodo #tab-layers.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.dxf_sodo .compact-input {
  padding: 8px 10px;
  font-size: 12.5px;
}

.dxf_sodo .file-actions-main {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  max-width: none;
  padding-bottom: 2px;
}

.dxf_sodo .compact-action-btn {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 12.5px;
}

.dxf_sodo .file-actions-main .danger {
  margin-left: auto;
}

@media (max-width: 1200px) {
  .dxf_sodo .floating-panel-toggle {
    right: 10px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
}

@media (max-width: 1200px) {
  .dxf_sodo .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    overflow: auto;
  }

  .dxf_sodo .panel-body {
    height: auto;
  }

  .dxf_sodo .viewer {
    min-height: 78vh;
  }

  .dxf_sodo .statusbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dxf_sodo .canvas-drop-box {
    min-width: 0;
    width: calc(100% - 32px);
  }
}

.dxf_sodo .sodo-left-panel {
  width: 360px;
  min-width: 320px;
  max-width: 420px;
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d1d5db;
  background: #ffffff;
  overflow: hidden;
}

@media (max-width: 1400px) {
  .dxf_sodo .sodo-left-panel {
    width: 330px;
    flex-basis: 330px;
  }

  .dxf_sodo .sodo-dxf-panel .app {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}

.dxf_sodo .sodo-left-panel,
.dxf_sodo .sodo-dxf-panel {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dxf_sodo .sodo-left-panel {
  width: var(--left-excel-width) !important;
  min-width: 300px !important;
  max-width: none !important;
  flex: 0 0 var(--left-excel-width) !important;
  position: relative;
  transition: none !important;
}

.dxf_sodo .sodo-left-panel.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  border-right: none !important;
  overflow: hidden;
}

.dxf_sodo .sodo-left-panel {
  background: var(--panel-2) !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

.dxf_sodo #chooseFileBtn {
  color: #3b82f6 !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(59, 130, 246, 0.05) !important;
}

.dxf_sodo #chooseFileBtn:hover {
  background: rgba(59, 130, 246, 0.15) !important;
}

.dxf_sodo #chooseFileBtn i {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3));
}

.dxf_sodo #chooseFileBtn>.icon-svg {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3));
}

.dxf_sodo #fitBtn {
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  background: rgba(52, 211, 153, 0.05) !important;
}

.dxf_sodo #fitBtn:hover {
  background: rgba(52, 211, 153, 0.15) !important;
}

.dxf_sodo #clearBtn {
  color: #fb7185 !important;
  border-color: rgba(251, 113, 133, 0.4) !important;
  background: rgba(251, 113, 133, 0.05) !important;
}

.dxf_sodo #clearBtn:hover {
  background: rgba(251, 113, 133, 0.15) !important;
}

.dxf_sodo .dropdown-item,
.dxf_sodo #themeBtn.dropdown-item {
  min-height: 30px !important;
  height: auto !important;
  padding: 6px 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: var(--toolbar-button-gap, 5px) !important;
  color: #dbe7f5 !important;
  font-family:
    "Inter", "Segoe UI Variable", "Segoe UI", Arial, sans-serif !important;
  font-size: var(--toolbar-text-size, 12px) !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  white-space: nowrap;
}

.dxf_sodo .dropdown-item.is-toggle {
  padding-right: 8px !important;
}

.dxf_sodo .dropdown-item.is-toggle.active {
  background: transparent !important;
}

.dxf_sodo .dropdown-item.is-toggle.active:hover {
  background: rgba(148, 163, 184, 0.12) !important;
}

.dxf_sodo .dropdown-item.is-toggle span:last-of-type {
  flex: 1 1 auto !important;
}

.dxf_sodo .dropdown-item.is-toggle::after {
  content: "";
  width: 28px;
  height: 16px;
  margin-left: 12px;
  flex: 0 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background:
    radial-gradient(circle at 7px 50%, #cbd5e1 0 4px, transparent 4.5px),
    rgba(15, 23, 42, 0.86);
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.dxf_sodo .dropdown-item.is-toggle.active::after {
  border-color: rgba(96, 165, 250, 0.72);
  background:
    radial-gradient(circle at 21px 50%, #ffffff 0 4px, transparent 4.5px),
    linear-gradient(135deg, #2563eb, #60a5fa);
}

/* =========================================================
   Excel coordinate sheet - final visual pass
   ========================================================= */
.dxf_sodo #id_sodo_div_excel {
  background: #f8fafc !important;
  border-bottom: none !important;
  border-right: 0.5px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

.dxf_sodo #id_sodo_div_excel .table-wrapper {
  height: 100% !important;
  overflow-y: scroll !important;
  /* LuĂ´n giá»¯ chá»— cho scrollbar Ä‘á»ƒ khá»›p vá»›i footer 8px */
  overflow-x: hidden !important;
  /* KHOA ngang â€” khĂ´ng cho cuá»™n ngang */
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    repeating-linear-gradient(90deg,
      transparent 0 79px,
      rgba(15, 23, 42, 0.03) 79px 80px);
  scrollbar-color: #94a3b8 transparent;
}

.dxf_sodo #id_sodo_div_excel .table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.dxf_sodo #id_sodo_div_excel .table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.dxf_sodo #id_sodo_div_excel .table-wrapper::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
  border: none;
}

.dxf_sodo #data-table {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff !important;
  font-family:
    "Inter", "Segoe UI Variable", "Segoe UI", Arial, sans-serif !important;
}

.dxf_sodo #data-table th,
.dxf_sodo #data-table td {
  height: 27px !important;
  line-height: 27px !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1px solid #d7dee8 !important;
  border-bottom: 1px solid #d7dee8 !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dxf_sodo #data-table thead th,
.dxf_sodo #data-table th {
  position: sticky !important;
  top: 0 !important;
  z-index: 6 !important;
  height: 28px !important;
  line-height: 28px !important;
  padding: 0 6px !important;
  background: #fef9c3 !important;
  color: #000000 !important;
  border-right: 1px solid #fca5a5 !important;
  border-top: none !important;
  border-bottom: 1px solid #3b82f6 !important;
  box-shadow: inset 0 1px 0 #ffffff !important;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.dxf_sodo #data-table td {
  background: #ffffff !important;
  text-align: center !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
}

.dxf_sodo #data-table tr:nth-child(even) td {
  background: #fffafa !important;
}

.dxf_sodo #id_sodo_div_excel .cell-editable,
.dxf_sodo #id_sodo_div_excel .cell-readonly {
  width: 100% !important;
  height: 100% !important;
  min-height: 27px !important;
  line-height: 27px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 7px !important;
  color: #000000 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums !important;
  text-shadow: none !important;
  outline: 0 !important;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dxf_sodo #data-table tbody td,
.dxf_sodo #id_sodo_div_excel tbody .cell-editable,
.dxf_sodo #id_sodo_div_excel tbody .cell-readonly,
.dxf_sodo #id_sodo_div_excel tbody td:nth-child(1) .cell-editable,
.dxf_sodo #id_sodo_div_excel tbody td:nth-child(6) .cell-editable,
.dxf_sodo #id_sodo_div_excel tbody td:nth-child(6) .cell-readonly {
  font-weight: 400 !important;
  font-style: normal !important;
  text-transform: none !important;
}

.dxf_sodo #data-table td:nth-child(1),
.dxf_sodo #id_sodo_div_excel td:nth-child(1) .cell-editable {
  text-align: center !important;
  justify-content: center !important;
  background: transparent !important;
  color: #000000 !important;
  font-weight: 400 !important;
}

.dxf_sodo #data-table td:nth-child(2) .cell-editable,
.dxf_sodo #data-table td:nth-child(3) .cell-editable,
.dxf_sodo #data-table td:nth-child(4) .cell-editable,
.dxf_sodo #data-table td:nth-child(6) .cell-editable {
  justify-content: center !important;
  text-align: center !important;
}

.dxf_sodo #data-table td:nth-child(5),
.dxf_sodo #data-table td:nth-child(5) .cell-editable {
  justify-content: flex-start !important;
  text-align: left !important;
}

/* =========================================================
   CUOI FILE: Column widths, L gray, bo bold Diem, khoa cuon ngang
   ========================================================= */
/* Khoa cuon ngang o moi cap */
.dxf_sodo #id_sodo_div_excel {
  overflow-x: hidden !important;
}

/* Column widths co dinh (Diem:15% X:20% Y:20% Z:10% GhiChu:25% L:10%) */
.dxf_sodo #data-table th:nth-child(1),
.dxf_sodo #data-table td:nth-child(1) {
  width: 15% !important;
}

.dxf_sodo #data-table th:nth-child(2),
.dxf_sodo #data-table td:nth-child(2) {
  width: 20% !important;
}

.dxf_sodo #data-table th:nth-child(3),
.dxf_sodo #data-table td:nth-child(3) {
  width: 20% !important;
}

.dxf_sodo #data-table th:nth-child(4),
.dxf_sodo #data-table td:nth-child(4) {
  width: 10% !important;
}

.dxf_sodo #data-table th:nth-child(5),
.dxf_sodo #data-table td:nth-child(5) {
  width: 25% !important;
}

.dxf_sodo #data-table th:nth-child(6),
.dxf_sodo #data-table td:nth-child(6) {
  width: 10% !important;
}

/* Cot Diem: bo bold hoan toan va xoa mau nen xam cua readonly de giong cot nhap lieu */
.dxf_sodo #data-table td:nth-child(1),
.dxf_sodo #data-table td:nth-child(1) .cell-editable,
.dxf_sodo #data-table td:nth-child(1) .cell-readonly {
  font-weight: 400 !important;
  background: transparent !important;
  color: #000000 !important;
}

.dxf_sodo #data-table td:nth-child(6),
.dxf_sodo #data-table tr:nth-child(even) td:nth-child(6) {
  background: #f4f1f1 !important;
  border-right-color: #cbd5e1 !important;
  border-bottom-color: #cbd5e1 !important;
  cursor: not-allowed !important;
}

.dxf_sodo #id_sodo_div_excel td:nth-child(6) .cell-editable,
.dxf_sodo #id_sodo_div_excel td:nth-child(6) .cell-readonly {
  color: #000000 !important;
  font-weight: 400 !important;
  font-style: normal !important;
  cursor: not-allowed !important;
}

body.dxf_sodo #data-table tbody td,
body.dxf_sodo #data-table tbody td .cell-editable,
body.dxf_sodo #data-table tbody td .cell-readonly,
body.dxf_sodo #id_sodo_div_excel tbody td,
body.dxf_sodo #id_sodo_div_excel tbody td .cell-editable,
body.dxf_sodo #id_sodo_div_excel tbody td .cell-readonly {
  /* color: #000000 !important; removed */
  font-weight: 400 !important;
  font-style: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
}

/* Header cot L: xam phan am giong cot L va footer */
.dxf_sodo #data-table th:nth-child(6) {
  background: #f4f1f1 !important;
  color: #000000 !important;
  border-top: none !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-right: 0px solid transparent !important;
  box-shadow: inset 0 1px 0 #ffffff !important;
}

/* Tat vien outline mac dinh cua ArcGIS API khi click */
.esri-view,
.esri-view-surface,
.esri-view .esri-view-surface--inset-outline:focus::after,
.esri-view-surface:focus::after,
.esri-view:focus,
.esri-view-root:focus,
#id_sodo_map_bandonen:focus,
.esri-display-object:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* VĂ¹ng chá» n nhiá» u Ă´ - ná» n vĂ ng cam nháº¡t áº¥m Ă¡p */
/* Hiá»‡u á»©ng flash khi Ctrl+C - nháº¥p nhĂ¡y Ä‘á»  */
.dxf_sodo #data-table td.copy-flash {
  background: rgba(59, 130, 246, 0.25) !important;
  outline: 2px dashed #3b82f6 !important;
  outline-offset: -2px !important;
  transition: background 0.1s ease, outline 0.1s ease;
}

/* Ă” Ä‘ang edit - cursor text, viá» n Ä‘á»  */
.dxf_sodo .cell-editable.editing {
  user-select: text !important;
  cursor: text !important;
}

.dxf_sodo .cell-editable:not(.editing):not(.cell-readonly) {
  cursor: cell;
  user-select: none;
}

/* =========================================================
   POLYGON SELECTED STATE â€” táº¥t cáº£ dĂ²ng bĂ´i Ä‘á»
   Ăp dá»¥ng khi click Ä‘a giĂ¡c trĂªn báº£n Ä‘á»“ / canvas CAD
   ========================================================= */
/* Viá»n Ä‘á» trĂªn/dÆ°á»›i cho Tá»ªNG dĂ²ng â€” khĂ´ng tĂ´ ná»n */
body.dxf_sodo #data-table tr.polygon-selected td,
body.dxf_sodo #data-table tr.polygon-selected td:nth-child(n),
body.dxf_sodo #data-table tr.polygon-selected:nth-child(even) td,
body.dxf_sodo #data-table tr.polygon-selected:nth-child(odd) td,
body.dxf_sodo #data-table tr.polygon-selected td:nth-child(6),
body.dxf_sodo #data-table tr.polygon-selected:nth-child(even) td:nth-child(6),
body.dxf_sodo #data-table tr.polygon-selected:nth-child(odd) td:nth-child(6) {
  /* border removed */
  /* border removed */
  position: relative !important;
  z-index: 2 !important;
}

/* áº¨n viá»n dÆ°á»›i dĂ²ng náº±m ngay trĂªn dĂ²ng polygon-selected Ä‘á»ƒ trĂ¡nh Ä‘Ă¨ nhau */
body.dxf_sodo #data-table tr.row-above-polygon td,
body.dxf_sodo #data-table tr.row-above-polygon:nth-child(even) td,
body.dxf_sodo #data-table tr.row-above-polygon:nth-child(odd) td,
body.dxf_sodo #data-table tr.row-above-polygon td:nth-child(6),
body.dxf_sodo #data-table tr.row-above-polygon:nth-child(even) td:nth-child(6),
body.dxf_sodo #data-table tr.row-above-polygon:nth-child(odd) td:nth-child(6) {
  border-bottom-color: transparent !important;
}

/* RESIZER BARS (Thanh kĂ©o giĂ£n) */
.sodo-resizer-bar-col {
  width: 0px !important;
  background: transparent !important;
  cursor: col-resize;
  z-index: 999 !important;
  flex-shrink: 0;
  position: relative;
  height: 100%;
  overflow: visible !important;
}

.sodo-resizer-bar-col::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: -10px;
  cursor: col-resize;
  z-index: 1;
}

.sodo-resizer-bar-col::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #111827;
  pointer-events: none;
  z-index: 2;
}

body.dxf_sodo.sodo-view-swapped .sodo-resizer-bar-col::after {
  background: transparent;
}

.sodo-resizer-bar-row {
  height: 0px !important;
  background: transparent !important;
  cursor: row-resize;
  z-index: 999 !important;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  overflow: visible !important;
}

.sodo-resizer-bar-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: -10px;
  cursor: row-resize;
  z-index: 1;
}

.sodo-resizer-bar-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

body.dxf_sodo.sodo-view-swapped .sodo-resizer-bar-row::after {
  background: red;
}

.sodo-resizer-handle-col {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 32px;
  background: #2f3b4c !important;
  border: 1.5px solid #4a5b70 !important;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1000 !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sodo-resizer-handle-row {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 10px;
  background: #2f3b4c !important;
  border: 1.5px solid #4a5b70 !important;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1000 !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sodo-handle-line-v {
  width: 2px;
  height: 8px;
  background: #ffffff !important;
  border-radius: 1px;
}

.sodo-handle-line-h {
  width: 8px;
  height: 2px;
  background: #ffffff !important;
  border-radius: 1px;
}

.sodo-resizer-bar-col:hover .sodo-resizer-handle-col,
.sodo-resizer-bar-col:active .sodo-resizer-handle-col {
  transform: translate(-50%, -50%) scale(1.15);
  background: #39475c !important;
  border-color: #5d728c !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.sodo-resizer-bar-row:hover .sodo-resizer-handle-row,
.sodo-resizer-bar-row:active .sodo-resizer-handle-row {
  transform: translate(-50%, -50%) scale(1.15);
  background: #39475c !important;
  border-color: #5d728c !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Floating swap buttons styling */
.btn-floating-control {
  backdrop-filter: blur(8px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(110%) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
  border-radius: 20px !important;
  transition: all 0.2s ease !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-floating-control:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

/* Header chung náº±m ngoĂ i vĂ¹ng map, nĂªn nĂºt ná»•i giá»¯ cĂ¹ng cao Ä‘á»™ vá»›i chuyenhetoado */
.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_dxf_sodo_btn_vitricuaban {
  top: 73px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_dxf_sodo_li_doitoado_tim_wgs84 {
  top: 113px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_dxf_sodo_li_doitoado_tim_vn2000 {
  top: 153px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_dxf_li_uploadkmzlfile {
  top: 193px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_dxf_sodo_li_timvitri_google {
  top: 73px !important;
  left: auto !important;
  right: 156px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_dxf_sodo_li_danduong_google {
  top: 73px !important;
  left: auto !important;
  right: 14px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_dxf_li_upload_ai {
  top: 193px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_dxf_li_upload_ai_plus {
  top: 233px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #sodo-btn-map-swap {
  top: 50% !important;
  left: 10px !important;
  right: auto !important;
  transform: translateY(-50%) !important;
  height: 28px !important;
  min-width: 54px !important;
  padding: 3px 9px !important;
  gap: 4px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  border-radius: 16px !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(37, 99, 235, 0.94) !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.26) !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #sodo-btn-map-swap:hover {
  transform: translateY(-50%) translateX(2px) !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_btn_expand_map {
  top: 88px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_dxf_sodo_btn_view_map,
.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_dxf_sodo_btn_view_satellite,
.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_dxf_sodo_btn_anhientendiadanh {
  bottom: 15px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_btn_anhiendiachinh,
.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_btn_anhienthuocdo {
  bottom: 48px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_btn_anhiendagiac,
.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_btn_anhienedges {
  bottom: 73px !important;
}

.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_btn_anhienmarker,
.dxf_sodo #sodo-map-wrapper:not(.viewport-small) #id_sodo_btn_anhienlabel {
  bottom: 98px !important;
}

/* Layout overrides for embedded DXF viewer (KhĂ´ng Ä‘á»•i style lĂµi cá»§a DXF viewer) */
.dxf_sodo .dxf_trinhxem.dxf-page {
  height: 100% !important;
  min-height: 100% !important;
}

.dxf_sodo .dxf_trinhxem.dxf-page .app.layout-3col,
.dxf_sodo .dxf_trinhxem.dxf-page .layout-3col.app.dxf_trinhxem_panel_collapsed,
.dxf_sodo .dxf_trinhxem.dxf-page .layout-3col.app.dxf_trinhxem_left_panel_collapsed,
.dxf_sodo .dxf_trinhxem.dxf-page .layout-3col.app.dxf_trinhxem_left_panel_collapsed.dxf_trinhxem_panel_collapsed {
  height: 100% !important;
  min-height: 100% !important;
  padding: 10px !important;
}

.dxf_sodo #sodo-map-floating-header::-webkit-scrollbar {
  display: none !important;
}

.dxf_sodo #sodo-map-floating-header {
  border-bottom: 1px solid #e7eaec !important;
  border-left: 1px solid #3b82f6 !important;
  box-shadow: none !important;
}

.dxf_sodo #id_sodo_legacy_navbar_static_top {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.dxf_sodo #id_header_group_B_Moblie {
  display: none !important;
}

/* Small Viewport Adjustments */
#sodo-map-wrapper.viewport-small #sodo-map-floating-header {
  border-left: none !important;
}

#sodo-map-wrapper.viewport-small #id_sodo_dxf_li_uploadkmzlfile {
  display: none !important;
}

#sodo-map-wrapper.viewport-small #id_dxf_sodo_btn_vitricuaban {
  top: 73px !important;
}

#sodo-map-wrapper.viewport-small #id_dxf_sodo_li_doitoado_tim_wgs84 {
  top: 113px !important;
}

#sodo-map-wrapper.viewport-small #id_dxf_sodo_li_doitoado_tim_vn2000 {
  top: 153px !important;
}

#sodo-map-wrapper.viewport-small #id_sodo_dxf_li_upload_ai {
  top: 193px !important;
}

#sodo-map-wrapper.viewport-small #id_sodo_dxf_li_upload_ai_plus {
  top: 233px !important;
}

#sodo-map-wrapper.viewport-small #id_dxf_sodo_li_timvitri_google {
  top: 73px !important;
  left: auto !important;
  right: 156px !important;
}

#sodo-map-wrapper.viewport-small #id_dxf_sodo_li_danduong_google {
  top: 73px !important;
  left: auto !important;
  right: 14px !important;
}

#sodo-map-wrapper.viewport-small #id_dxf_sodo_btn_view_map,
#sodo-map-wrapper.viewport-small #id_dxf_sodo_btn_view_satellite,
#sodo-map-wrapper.viewport-small #id_dxf_sodo_btn_anhientendiadanh {
  bottom: 15px !important;
}

#sodo-map-wrapper.viewport-small #id_sodo_btn_anhiendiachinh,
#sodo-map-wrapper.viewport-small #id_sodo_btn_anhienthuocdo {
  bottom: 48px !important;
}

#sodo-map-wrapper.viewport-small #id_sodo_btn_anhiendagiac,
#sodo-map-wrapper.viewport-small #id_sodo_btn_anhienedges {
  bottom: 73px !important;
}

#sodo-map-wrapper.viewport-small #id_sodo_btn_anhienmarker,
#sodo-map-wrapper.viewport-small #id_sodo_btn_anhienlabel {
  bottom: 98px !important;
}

#sodo-map-wrapper.viewport-small #id_sodo_btn_anhienhover {
  bottom: 123px !important;
}

#sodo-map-wrapper.viewport-small #sodo-btn-map-swap {
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  padding: 4px 8px !important;
  font-size: 10.5px !important;
  min-width: 54px !important;
  border-radius: 16px !important;
}

/* CAD in small viewport: show icons only, hide text in toolbar buttons to fit in narrow slot */
body.dxf_sodo .viewport-small .dxf_trinhxem .toolbar .toolbar-btn:not(#sys_btn_dao) span,
body.dxf_sodo .viewport-small .dxf_trinhxem .toolbar .ui-dropdown > button span {
  display: none !important;
}

body.dxf_sodo .viewport-small .dxf_trinhxem .toolbar .toolbar-btn:not(#sys_btn_dao) {
  padding: 6px 8px !important;
  min-width: 32px;
  justify-content: center;
  gap: 0 !important;
}

body.dxf_sodo .viewport-small .dxf_trinhxem .toolbar .ui-dropdown .toolbar-btn:not(#sys_btn_dao) {
  padding: 6px 2px 6px 6px !important;
  min-width: 32px;
  justify-content: center;
  gap: 1px !important;
}

/* CAD thu nhỏ: đưa nút X/Y vào menu Hệ thống để toolbar không bị chật. */
body.dxf_sodo .viewport-small .dxf_trinhxem .toolbar #sys_btn_dao {
  display: none !important;
}

body.dxf_sodo .viewport-small .dxf_trinhxem .toolbar #sys_btn_dao i {
  display: none !important;
}

/* Animation warning for central meridian dropdown when coordinates change */
@keyframes sodo-pulse-meridian {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    border-color: #f59e0b !important;
  }

  70% {
    box-shadow: 0 0 8px 4px rgba(245, 158, 11, 0);
    border-color: #f59e0b !important;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

#id_dxf_sodo_header_sl_cha_kinhtuyentruc.sodo-attention-meridian .select2-selection--single {
  animation: sodo-pulse-meridian 1.5s infinite !important;
  border: 1px solid #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.08) !important;
}

@keyframes sodo-pulse-meridian-boundary {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8);
  }

  50% {
    box-shadow: 0 0 10px 4px rgba(220, 38, 38, 0.35);
  }
}

#id_dxf_sodo_header_group_B.sodo-meridian-outside-boundary {
  background: rgba(254, 226, 226, 0.72) !important;
  border-left: 3px solid #dc2626 !important;
}

#id_dxf_sodo_header_sl_cha_kinhtuyentruc.sodo-meridian-outside-boundary .select2-selection--single {
  animation: sodo-pulse-meridian-boundary 1s infinite !important;
  border: 2px solid #dc2626 !important;
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.tooltip.sodo-meridian-boundary-tooltip .tooltip-inner {
  max-width: 340px;
  padding: 7px 10px;
  background-color: #b93636 !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 500;
}

.tooltip.sodo-meridian-boundary-tooltip.in {
  opacity: 1 !important;
}

.tooltip.sodo-meridian-boundary-tooltip.bottom .tooltip-arrow {
  border-bottom-color: #b93636 !important;
}

.CodeMirror-placeholder {
  color: #999 !important;
  opacity: 0.7 !important;
}

/* OVERLAY SELECTION CHO CTRL+A VA CTRL+C */
#sodo-selection-overlay.is-all-selected {
  border: 2px solid #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.04) !important;
  animation: none !important;
}

body.dxf_sodo #data-table tr.polygon-selected td,
body.dxf_sodo #data-table tr.polygon-selected td:nth-child(n) {
  background: #fef9c3 !important;
}

.dxf_sodo .cell-editable:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Khi ô đang edit và được focus: đảm bảo nền trắng, chữ đen */
.dxf_sodo .cell-editable.editing:focus {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #3b82f6 !important;
}

/* =========================================================
   HIỆU ỨNG BẢNG GIỐNG EXCEL
   1. Click ô → bôi vàng cả dòng (active-row)
   2. Tô chọn → viền đỏ bao quanh vùng
   3. Dblclick sửa → viền đỏ đậm + nền trắng
   4. Copy → nét đứt chạy (marching ants)
   ========================================================= */
/* --- 1. ACTIVE ROW: bôi vàng nhạt cả dòng khi click ô --- */
body.dxf_sodo #data-table tr.active-row td,
body.dxf_sodo #data-table tr.active-row td:nth-child(n),
body.dxf_sodo #data-table tr.active-row:nth-child(even) td,
body.dxf_sodo #data-table tr.active-row:nth-child(odd) td,
body.dxf_sodo #data-table tr.active-row td:nth-child(6),
body.dxf_sodo #data-table tr.active-row:nth-child(even) td:nth-child(6),
body.dxf_sodo #data-table tr.active-row:nth-child(odd) td:nth-child(6) {
  background: #fef9c3 !important;
}

/* Dòng ngay trên active-row: ẩn border-bottom để tránh đè */
body.dxf_sodo #data-table tr.row-above-active td,
body.dxf_sodo #data-table tr.row-above-active:nth-child(even) td,
body.dxf_sodo #data-table tr.row-above-active:nth-child(odd) td,
body.dxf_sodo #data-table tr.row-above-active td:nth-child(6),
body.dxf_sodo #data-table tr.row-above-active:nth-child(even) td:nth-child(6),
body.dxf_sodo #data-table tr.row-above-active:nth-child(odd) td:nth-child(6) {
  border-bottom-color: transparent !important;
}

/* Ô active khi nằm trong vùng chọn nhiều ô (anchor cell highlight) */
/* Cặp ô tọa độ X+Y cùng dòng: giống active-cell nhưng liền nhau */
body.dxf_sodo #data-table td.sodo-coord-active-left {
  background: #fef9c3 !important;
  border-right: none !important;
  border-bottom: 1px solid #d7dee8 !important;
  outline: none !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 10 !important;
}

body.dxf_sodo #data-table td.sodo-coord-active-right {
  background: #fef9c3 !important;
  border-right: 1px solid #d7dee8 !important;
  border-bottom: 1px solid #d7dee8 !important;
  outline: none !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 10 !important;
}

/* --- 3. EDIT MODE: ô đang sửa — viền đỏ đậm, nền trắng --- */
/* (đã có ở trên, ghi đè thêm để chắc chắn đúng độ ưu tiên) */
body.dxf_sodo #data-table .cell-editable.editing,
body.dxf_sodo #id_sodo_div_excel .cell-editable.editing {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #3b82f6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
  caret-color: #3b82f6 !important;
  z-index: 20 !important;
  position: relative !important;
}

/* --- 4. COPY OVERLAY: marching ants animation nét đứt chạy --- */
@keyframes sodo-march-border {
  0% {
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  }

  100% {
    background-position: 20px 0, 100% 20px, calc(100% - 20px) 100%, 0 calc(100% - 20px);
  }
}

#sodo-selection-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  border: 2px solid #3b82f6 !important;
  display: none;
  box-sizing: border-box;
  background: transparent;
}

#sodo-selection-overlay.is-copying {
  border: none !important;
  background-color: rgba(59, 130, 246, 0.04) !important;
  /* Marching ants: 4 cạnh dùng gradient background */
  background-image:
    repeating-linear-gradient(90deg, #3b82f6 0, #3b82f6 8px, transparent 8px, transparent 16px),
    repeating-linear-gradient(180deg, #3b82f6 0, #3b82f6 8px, transparent 8px, transparent 16px),
    repeating-linear-gradient(90deg, #3b82f6 0, #3b82f6 8px, transparent 8px, transparent 16px),
    repeating-linear-gradient(180deg, #3b82f6 0, #3b82f6 8px, transparent 8px, transparent 16px) !important;
  background-size:
    16px 2px,
    2px 16px,
    16px 2px,
    2px 16px !important;
  background-repeat: repeat-x, repeat-y, repeat-x, repeat-y !important;
  background-position: 0 0, 100% 0, 100% 100%, 0 100% !important;
  animation: sodo-march-border 0.5s linear infinite !important;
}

/* =========================================================
   CONSOLIDATED SELECTION HIGHLIGHT CSS
   ========================================================= */
/* Nền vàng nhạt cho toàn bộ vùng chọn */
body.dxf_sodo #data-table td.selected-range,
body.dxf_sodo #data-table td.selected-range:nth-child(n),
body.dxf_sodo #data-table tr td.selected-range:nth-child(n),
body.dxf_sodo #data-table td.active-cell.selected-range {
  background: #fef9c3 !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 3 !important;
}

/* Các viền bao quanh (vòng ngoài) của vùng tô chọn */
body.dxf_sodo #data-table td.sel-border-top {
  border-top: 1px solid #3b82f6 !important;
}

body.dxf_sodo #data-table td.sel-border-bottom {
  border-bottom: 1px solid #3b82f6 !important;
}

body.dxf_sodo #data-table td.sel-border-left {
  border-left: 1px solid #3b82f6 !important;
}

body.dxf_sodo #data-table td.sel-border-right {
  border-right: 1px solid #3b82f6 !important;
}

/* =========================================================
   CONSOLIDATED ACTIVE-CELL CSS
   ========================================================= */
body.dxf_sodo #data-table td.active-cell {
  background: #fef9c3 !important;
  border-right: 1px solid #d7dee8 !important;
  border-bottom: 1px solid #d7dee8 !important;
  outline: none !important;
  box-shadow: none !important;
  z-index: 10 !important;
  position: relative !important;
}

body.dxf_sodo #data-table td.active-cell .cell-editable {
  color: #0f172a !important;
  font-weight: 500 !important;
  caret-color: #3b82f6 !important;
}

/* CTRL+A ONLY BORDER 2PX */
body.dxf_sodo #data-table td.sel-border-top-thick {
  border-top: 2px solid #3b82f6 !important;
}

body.dxf_sodo #data-table td.sel-border-bottom-thick {
  border-bottom: 2px solid #3b82f6 !important;
}

body.dxf_sodo #data-table td.sel-border-left-thick {
  border-left: 2px solid #3b82f6 !important;
}

body.dxf_sodo #data-table td.sel-border-right-thick {
  border-right: 2px solid #3b82f6 !important;
}

/* COPY OVERLAY HIDE BORDER - khi Ctrl+C chỉ giữ viền nét đứt, ẩn mọi viền xanh */
body.dxf_sodo #data-table.is-copying-active td.sel-border-top,
body.dxf_sodo #data-table.is-copying-active td.sel-border-top-thick {
  border-top-color: transparent !important;
}

body.dxf_sodo #data-table.is-copying-active td.sel-border-bottom,
body.dxf_sodo #data-table.is-copying-active td.sel-border-bottom-thick {
  border-bottom-color: transparent !important;
}

body.dxf_sodo #data-table.is-copying-active td.sel-border-left,
body.dxf_sodo #data-table.is-copying-active td.sel-border-left-thick {
  border-left-color: transparent !important;
}

body.dxf_sodo #data-table.is-copying-active td.sel-border-right,
body.dxf_sodo #data-table.is-copying-active td.sel-border-right-thick {
  border-right-color: transparent !important;
}

/* Ẩn box-shadow xanh của active-cell và các ô tọa độ khi đang copy */
body.dxf_sodo #data-table.is-copying-active td.active-cell,
body.dxf_sodo #data-table.is-copying-active td.sodo-coord-active-left,
body.dxf_sodo #data-table.is-copying-active td.sodo-coord-active-right {
  outline: none !important;
  box-shadow: none !important;
}

/* Page-specific overrides moved from dxf_sodo.ejs */
#id_dxf_sodo_header_sl_cha_kinhtuyentruc .select2-container--default .select2-selection--single {
  border: 1px solid #333333 !important;
  border-radius: 4px;
}

#id_dxf_sodo_header_sl_cha_kinhtuyentruc .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #dc2626 !important;
  font-weight: 500;
}

#fitBtn,
#toggleMiniMapBtn,
#toggleGridBtn,
#toggleAxisBtn,
#basemapBtn,
#exportDxfBtn,
#exportPngBtn,
#exportExcelBtn,
#exportJsonBtn {
  display: none !important;
}

#dropdown_item_xuatkml {
  display: flex !important;
}

#sodo-btn-map-swap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

#sodo-btn-map-swap i {
  font-size: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(0.5px) !important;
}

#sodo-btn-map-swap:hover {
  background: #39475c !important;
  border-color: #5d728c !important;
  transform: translate(-50%, -50%) scale(1.1) !important;
}

#sodo-btn-map-swap:hover i {
  color: #38bdf8 !important;
}

body.dxf_sodo .dxf_trinhxem.dxf-page .toolbar-btn.tx_mode_toggle_class {
  display: none !important;
}

body.dxf_sodo .dxf_trinhxem.dxf-page .toolbar-groups>.toolbar-group:nth-child(1),
body.dxf_sodo .dxf_trinhxem.dxf-page .toolbar-groups>.toolbar-group:nth-child(2),
body.dxf_sodo .dxf_trinhxem.dxf-page .toolbar-groups>.toolbar-group:nth-child(3) {
  display: none !important;
}

body.dxf_sodo .dxf_trinhxem .user-info-group,
body.dxf_sodo #id_trangchu_btn_dangnhap {
  display: none !important;
}

body.dxf_sodo .dxf_trinhxem.dxf-page .dxf_trinhxem_left_panel #tab-entities .entity-item,
body.dxf_sodo .dxf_trinhxem.dxf-page .dxf_trinhxem_left_panel #tab-layers .layer-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 0 !important;
  border-radius: 4px !important;
}

.small-chat-box:not(#id_dxf_sodo_panel_doitoado) .CodeMirror {
  flex: 1;
  height: auto !important;
  min-height: 50px;
}

#sodo-map-floating-header .fa-refresh.fa-spin {
  font-size: 11px;
  color: #aaa;
}

.sweet-alert.swal-wide,
.swal2-popup.swal-wide {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.swal2-container:has(.swal-wide),
.swal-overlay:has(.swal-wide) {
  z-index: 100000000 !important;
}

.sweet-alert.swal-wide h2,
.sweet-alert.swal-wide p,
.swal2-popup.swal-wide .swal2-title,
.swal2-popup.swal-wide .swal2-html-container {
  display: none !important;
}

.sodo-btn-ai-upload {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: #ffffff;
  color: #dc2626 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  margin: 0 auto;
  text-decoration: none !important;
}

.sodo-btn-ai-upload i {
  font-size: 11px !important;
  margin-bottom: 0 !important;
  color: yellow !important;
  margin-top: 5px !important;
  text-shadow:
    -0.4px -0.4px 0 #222,
    0.4px -0.4px 0 #222,
    -0.4px 0.4px 0 #222,
    0.4px 0.4px 0 #222,
    0 -0.6px 0 #000 !important;
}

.sodo-btn-ai-upload b {
  font-size: 9.5px !important;
  color: blue !important;
  font-weight: 700 !important;
  line-height: 1.4;
  font-family: 'Font Awesome 4', sans-serif !important;
}

.sodo-btn-ai-plus-upload i {
  color: #111827 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-shadow: none !important;
}

.sodo-btn-ai-plus-upload b {
  color: #0284C7 !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
}

.sodo-btn-ai-plus-upload {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
}

.sodo-btn-ai-plus-upload:hover {
  background: #eff6ff;
}

.sodo-ai-plus-modal {
  display: flex;
  flex-direction: column;
  width: 560px;
  max-height: calc(100vh - 32px);
}

.sodo-ai-plus-modal .sodo-server-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.sodo-ai-plus-modal .sodo-server-modal-footer {
  flex: 0 0 auto;
}

.sodo-ai-plus-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sodo-ai-plus-header-choose {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #c4b5fd;
  border-radius: 5px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
}

.sodo-ai-plus-header-choose:hover {
  border-color: #8b5cf6;
  background: #ede9fe;
}

.sodo-ai-plus-header-choose:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.sodo-ai-plus-intro {
  margin-bottom: 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.sodo-ai-plus-intro.is-hidden,
.sodo-ai-plus-dropzone.is-hidden {
  display: none;
}

.sodo-ai-plus-dropzone {
  padding: 18px 16px;
  border: 1.5px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.sodo-ai-plus-dropzone:hover,
.sodo-ai-plus-dropzone.is-dragover {
  border-color: #7c3aed;
  background: #f5f3ff;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.sodo-ai-plus-dropzone i {
  display: block;
  margin-bottom: 7px;
  color: #7c3aed;
  font-size: 25px;
}

.sodo-ai-plus-dropzone strong,
.sodo-ai-plus-dropzone span {
  display: block;
}

.sodo-ai-plus-dropzone strong {
  font-size: 13px;
}

.sodo-ai-plus-dropzone span {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.sodo-ai-plus-preview {
  display: none;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.sodo-ai-plus-preview.is-visible {
  display: block;
}

.sodo-ai-plus-preview-content {
  display: block;
  position: relative;
  height: 204px;
  overflow: auto;
  border-radius: 0;
  background: #f8fafc;
  padding: 0;
}

.sodo-ai-plus-preview-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  pointer-events: auto;
}

.sodo-ai-plus-pdf-note {
  padding: 16px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.sodo-ai-plus-error {
  display: none;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.sodo-ai-plus-error.is-visible {
  display: block;
  padding: 8px 12px;
  background-color: rgb(51, 69, 86);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #FFFF00;
  margin: 8px;
}

.sodo-ai-plus-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 164px;
  min-width: 164px;
  background: #7c3aed !important;
}

.sodo-ai-plus-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

#dynamic_sodo_ai_plus_modal.sodo-server-modal-overlay {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-modal {
  --sodo-ai-brand: #00CCFF;
  --sodo-ai-brand-dark: #036B86;
  --sodo-ai-brand-soft: #F0FBFF;
  --sodo-ai-brand-soft-hover: #D9F7FF;
  --sodo-ai-brand-border: #8AE8FF;
  position: fixed;
  top: var(--sodo-ai-plus-top, 220px);
  left: var(--sodo-ai-plus-left, 16px);
  width: 200px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  border: 1px solid var(--sodo-ai-brand-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgb(15 23 42 / 20%);
  outline: 0;
  pointer-events: auto;
}

#dynamic_sodo_ai_plus_modal .sodo-server-modal-header {
  display: none;
}

#dynamic_sodo_ai_plus_modal .sodo-server-modal-title {
  display: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-actions {
  display: flex;
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  align-items: center;
  gap: 3px;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-actions {
  margin-left: 0;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #facc15;
  border-radius: 5px;
  background: #fffbeb;
  color: #f59e0b;
  line-height: 1;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-choose i {
  margin: 0;
  color: #f59e0b !important;
  font-size: 12px;
  line-height: 1;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-choose span {
  display: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-choose:hover {
  border-color: #f59e0b;
  background: #fef3c7;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-choose.is-loading,
#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-choose.is-loading:disabled {
  border-color: #facc15;
  background: #fffbeb;
  color: #ff0000;
  opacity: 1;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-header-choose.is-loading i {
  color: #ff0000 !important;
}

#dynamic_sodo_ai_plus_modal .sodo-server-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  color: #111;
  font-size: 14px;
  line-height: 18px;
  box-shadow: 0 1px 3px rgb(15 23 42 / 16%);
}

#dynamic_sodo_ai_plus_modal .sodo-server-modal-close:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #dc2626;
}

#dynamic_sodo_ai_plus_modal .sodo-server-modal-body {
  max-height: none;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #fff;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone {
  display: flex;
  position: relative;
  min-height: 140px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  flex-direction: column;
  justify-content: center;
  outline: 0;
  box-shadow: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone.has-preview {
  min-height: unset;
  padding: 0;
  border: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone.has-preview .sodo-ai-plus-prompt {
  display: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview {
  display: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview.is-visible {
  display: block;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 140px;
  min-height: 140px;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: #000;
  scrollbar-color: #94a3b8 transparent;
  scrollbar-width: thin;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content::-webkit-scrollbar-track {
  background: transparent;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 999px;
  background: #94a3b8;
  background-clip: padding-box;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content::-webkit-scrollbar-thumb:hover {
  background: #64748b;
  background-clip: padding-box;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content img,
#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content object {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  pointer-events: auto;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content object {
  height: 100%;
  min-height: 140px;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone:focus,
#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview:focus,
#dynamic_sodo_ai_plus_modal .sodo-ai-plus-preview-content:focus {
  outline: 0;
  box-shadow: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone::after {
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--sodo-ai-brand);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone:hover,
#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone.is-dragover {
  border-color: transparent;
  background: var(--sodo-ai-brand-soft);
  box-shadow: none;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone i {
  color: var(--sodo-ai-brand);
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-error {
  margin: 8px;
}

.sodo-server-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 99999999;
  padding: 16px;
  background: rgba(15, 23, 42, 0.56);
}

.sodo-server-modal {
  width: 400px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.3);
  color: #1e293b;
  font-family: Arial, sans-serif;
}

.sodo-server-modal-header,
.sodo-server-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
}

.sodo-server-modal-header {
  border-bottom: 1px solid #e2e8f0;
}

.sodo-server-modal-footer {
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
}

.sodo-server-modal-title {
  margin: 0;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
}

.sodo-server-modal-subtitle,
.sodo-save-mode-card small,
.sodo-save-list-note {
  color: #64748b;
  font-size: 12px;
}

.sodo-server-modal-close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sodo-server-modal-body {
  max-height: 430px;
  overflow-y: auto;
  padding: 16px 18px;
  background: #ffffff;
}

.sodo-server-modal-list-body {
  max-height: 400px;
  padding: 0;
}

.sodo-server-drawing-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sodo-server-drawing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 15px !important;
  border-bottom: 1px solid #e2e8f0;
}

.sodo-server-drawing-item:last-child {
  border-bottom: 0;
}

.sodo-server-drawing-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sodo-server-drawing-name {
  overflow-wrap: anywhere;
  color: #1e293b;
  font-size: 13px !important;
  font-weight: 700;
}

.sodo-server-drawing-note,
.sodo-server-drawing-date {
  margin-top: 0px !important;
  color: #64748b;
  font-size: 13px !important;
}

.sodo-server-drawing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.sodo-server-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sodo-server-form-actions {
  margin-top: 16px;
}

.sodo-server-action {
  flex: 0 0 auto;
  padding: 5px 10px !important;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: normal;
  line-height: 1.2;
}

.sodo-server-action.is-view {
  background: #3b82f6;
}

.sodo-server-action.is-edit {
  background: #f59e0b;
}

.sodo-server-action.is-delete {
  background: #ef4444;
}

.sodo-server-action.is-save {
  background: #059669;
}

.sodo-server-action.is-cancel {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #475569;
}

.sodo-server-form label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
}

.sodo-server-form label.is-spaced {
  margin-top: 13px;
}

.sodo-server-required,
.sodo-server-confirm-warning {
  color: #dc2626;
}

.sodo-server-field {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  color: #1e293b;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

textarea.sodo-server-field {
  resize: vertical;
}

.sodo-server-field::placeholder {
  color: #64748b;
  opacity: 1;
}

.sodo-server-confirm-text {
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
}

.sodo-server-confirm-warning {
  margin-top: 6px;
}

.sodo-server-choice-intro {
  margin-bottom: 14px;
  color: #475569;
  font-size: 13px;
}

.sodo-server-choice {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
}

.sodo-server-choice+.sodo-server-choice {
  margin-top: 10px;
}

.sodo-server-choice strong,
.sodo-server-choice span {
  display: block;
}

.sodo-server-choice strong {
  margin-bottom: 3px;
}

.sodo-server-choice span {
  font-size: 12px;
}

.sodo-server-choice.is-new {
  border: 1px solid #10b981;
  background: #ecfdf5;
  color: #047857;
}

.sodo-server-choice.is-overwrite {
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.sodo-save-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
}

.sodo-save-mode-card.is-active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.sodo-save-mode-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.sodo-save-mode-card input {
  margin-top: 2px;
}

.sodo-save-mode-card span,
.sodo-save-mode-card small {
  display: block;
}

.sodo-save-panel {
  margin-top: 14px;
}

.sodo-save-panel label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
}

.sodo-save-panel input[type="text"] {
  width: 100%;
  height: 34px;
  padding: 6px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  outline: none;
  font-size: 13px;
}

.sodo-save-panel input[type="text"]:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.sodo-save-error {
  min-height: 17px;
  padding-top: 4px;
  color: #dc2626;
  font-size: 12px;
}

.sodo-save-list-note {
  padding: 7px 0 5px;
}

.sodo-save-file-list {
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
}

.sodo-save-file-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.sodo-save-file-item:last-child {
  border-bottom: 0;
}

.sodo-save-file-item:hover {
  background: #f8fafc;
}

.sodo-save-file-item.is-selected {
  background: #ecfdf5;
  box-shadow: inset 3px 0 0 #10b981;
}

.sodo-save-file-name {
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
}

.sodo-save-file-date,
.sodo-save-empty {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.sodo-save-empty {
  padding: 12px;
  text-align: center;
}

.sodo-server-btn {
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sodo-server-btn-cancel {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #475569;
}

.sodo-server-btn-primary {
  background: #10b981;
  color: #ffffff;
}

.sodo-server-btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Sơ đồ dùng nhóm toolbar hệ thống; nút chuyển nhóm chỉ dành cho viewer độc lập. */
body.dxf_sodo .dxf_trinhxem .toolbar-btn.tx_mode_toggle_class {
  display: none !important;
}

/* Khi canvas thu nhỏ, giữ lại tỷ lệ và tọa độ ghim trong status bar. */
body.dxf_sodo .viewport-small #footer-status-layer,
body.dxf_sodo .viewport-small #footer-status-object,
body.dxf_sodo .viewport-small #footer-status-cursor {
  display: none !important;
}

body.dxf_sodo .viewport-small .statusbar {
  grid-template-columns: 150px minmax(0, 1fr) !important;
}

/* Thu hẹp khoảng cách của các vạch ngăn cách trong chế độ viewport-small */
body.dxf_sodo .viewport-small .dxf_trinhxem .toolbar-group {
    position: relative !important;
}

body.dxf_sodo .viewport-small .dxf_trinhxem .toolbar-group:not(:last-child)::after {
    position: absolute !important;
    right: -7px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: transparent;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-pdf-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-pdf-wrapper object {
    position: absolute;
    top: -1px;
    left: -15px;
    width: calc(100% + 30px) !important;
    max-width: none !important;
    height: calc(100% + 2px) !important;
    background: transparent;
}

#dynamic_sodo_ai_plus_modal .sodo-ai-plus-dropzone.has-preview::after {
  display: none;
}

.sodo-current-drawing-card {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 98;
  width: auto;
  min-width: 0;
  max-width: 170px;
  box-sizing: border-box;
  padding: 7px 8px 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  color: #f8fafc;
  font-size: 11.5px;
  line-height: 1.25;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

.sodo-current-drawing-card.is-unsaved {
  color: yellow;
}

.sodo-current-drawing-title {
  font-weight: 800;
  font-size: 12px;
  color: yellow;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sodo-current-drawing-card.is-unsaved .sodo-current-drawing-title {
  font-weight: 500;
  color: yellow;
}

.sodo-current-drawing-row {
  margin-top: 2px;
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sodo-current-drawing-row.is-hidden {
  display: none;
}

#sodo-map-wrapper.viewport-small .sodo-current-drawing-card {
  right: 14px;
  bottom: 14px;
  max-width: 140px;
  padding: 6px 8px;
}

