/* ============================================================
   CHXD MANAGEMENT PAGE — Quản lý cửa hàng xăng dầu (ADMIN)
   ============================================================ */

/* Search bar */
.chxd-mgmt__search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chxd-mgmt__search-input {
  flex: 1;
  min-width: 180px;
}

/* Table */
.chxd-mgmt__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chxd-mgmt-table {
  width: 100%;
  table-layout: fixed;
}

.chxd-mgmt-table th:nth-child(1) {
  width: 20%;
}

/* Tên đầy đủ */
.chxd-mgmt-table th:nth-child(2) {
  width: 40%;
}

/* Địa chỉ */
.chxd-mgmt-table th:nth-child(3) {
  width: 10%;
}

/* Giờ */
.chxd-mgmt-table th:nth-child(4) {
  width: 10%;
}

/* Kinh độ */
.chxd-mgmt-table th:nth-child(5) {
  width: 10%;
}

/* Vĩ độ */
.chxd-mgmt-table th:nth-child(6) {
  width: 84px;
  /* Thao tác */
}

.chxd-mgmt-table td {
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Edit modal */
.chxd-edit-modal {
  width: min(600px, calc(100vw - 32px)) !important;
  max-height: min(90dvh, 680px) !important;
  display: flex !important;
  flex-direction: column !important;
}

.chxd-edit-modal .modal__body {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.chxd-edit-modal .form-group--full {
  grid-column: 1 / -1;
}

.chxd-edit-modal .modal__footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border-1);
  padding-top: 16px;
}

.chxd-coord-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Mobile — single column */
@media (max-width: 600px) {
  .chxd-mgmt-table {
    table-layout: auto;
  }

  .chxd-mgmt-table th:nth-child(2),
  .chxd-mgmt-table th:nth-child(4),
  .chxd-mgmt-table th:nth-child(5) {
    display: none;
  }

  .chxd-mgmt-table td:nth-child(2),
  .chxd-mgmt-table td:nth-child(4),
  .chxd-mgmt-table td:nth-child(5) {
    display: none;
  }

  .chxd-edit-modal .modal__body {
    grid-template-columns: 1fr;
  }

  .chxd-edit-modal .form-group--full {
    grid-column: 1;
  }
}