/* ============================================================
   BẢN ĐỒ TRI ÂN & ĐIỀU HÀNH THĂM HỎI CHÍNH SÁCH (PHÂN HỆ 6)
   Công ty Điện lực Củ Chi — EVNHCMC (TCNS & Văn phòng)
   ============================================================ */

:root {
  --primary: #991b1b;
  --primary-hover: #7f1d1d;
  --primary-light: #fef2f2;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --border: #e2e8f0;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --warning: #ea580c;
  --warning-light: #fff7ed;
  --purple: #7e22ce;
  --purple-light: #faf5ff;
  --cyan: #0284c7;
  --cyan-light: #f0f9ff;
  --sidebar-w: 420px;
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-page);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* TOPBAR */
.ta-topbar {
  height: var(--topbar-h);
  background: linear-gradient(90deg, #7f1d1d, #991b1b 60%, #b91c1c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  z-index: 1000;
  gap: 12px;
}

.ta-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.ta-brand-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
}

.ta-brand-text h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.ta-brand-text small {
  font-size: 11.5px;
  opacity: .9;
  display: block;
}

.ta-campaign-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.2);
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
}

.ta-campaign-bar label {
  font-size: 12px;
  font-weight: 600;
  color: #fef08a;
}

.ta-select-white {
  background: rgba(255,255,255,.95);
  border: none;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.ta-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-top {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}

.btn-top:hover {
  background: rgba(255,255,255,.28);
}

.btn-top.btn-accent {
  background: #f59e0b;
  border-color: #d97706;
  color: #78350f;
  font-weight: 700;
}

.btn-top.btn-accent:hover {
  background: #fbbf24;
}

/* MAIN LAYOUT */
.ta-main {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* SIDEBAR */
.ta-sidebar {
  width: var(--sidebar-w);
  height: 100%;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 500;
  box-shadow: 2px 0 10px rgba(0,0,0,.04);
  transition: transform .25s ease;
}

.ta-nav-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 4px 6px 0;
  gap: 4px;
}

.ta-tab-btn {
  flex: 1;
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
}

.ta-tab-btn.active {
  background: #fff;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.ta-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ta-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.ta-panel.active {
  display: flex;
}

/* TAB 1: DANH SÁCH & LỌC */
.ta-filter-box {
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(153,27,27,.15);
}

.search-input-wrap svg {
  position: absolute;
  left: 10px;
  top: 11px;
  color: #94a3b8;
}

.filter-row {
  display: flex;
  gap: 6px;
}

.filter-row select {
  flex: 1;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  padding: 0 8px;
  background: #f8fafc;
  outline: none;
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all .15s;
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ta-list-stats {
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ta-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* CARD NHÂN VIÊN */
.emp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}

.emp-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.emp-card.selected {
  border-color: var(--primary);
  background: #fff5f5;
  box-shadow: 0 4px 12px rgba(153,27,27,.12);
}

.emp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.emp-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
}

.emp-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-huu_tri { background: #dbeafe; color: #1e40af; }
.badge-da_mat { background: #f3e8ff; color: #6b21a8; }
.badge-hoan_canh { background: #ffedd5; color: #9a3412; }
.badge-con_em { background: #cffafe; color: #155e75; }

.emp-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 4px;
}

.emp-address {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 8px;
}

.emp-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.status-chua_tham { color: #dc2626; }
.status-chua_tham .status-dot { background: #dc2626; }
.status-da_tham { color: #16a34a; font-weight: 600; }
.status-da_tham .status-dot { background: #16a34a; }
.status-vang_nha { color: #d97706; }
.status-vang_nha .status-dot { background: #d97706; }

.emp-actions {
  display: flex;
  gap: 6px;
}

.btn-mini {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-mini:hover {
  background: #f1f5f9;
}

.btn-mini.btn-direct {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* TAB 2: LỘ TRÌNH LÁI XE */
.route-header {
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.route-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-optimize {
  width: 100%;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(217,119,6,.25);
  transition: all .2s;
}

.btn-optimize:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
}

.route-summary {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
  display: flex;
  justify-content: space-between;
}

.route-step-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.route-step-item {
  display: flex;
  gap: 10px;
  position: relative;
}

.route-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -10px;
  width: 2px;
  background: #e2e8f0;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(185,28,28,.3);
}

.step-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.step-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.step-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.step-distance {
  font-size: 11px;
  color: #0369a1;
  font-weight: 600;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
}

.step-addr {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.step-actions {
  display: flex;
  gap: 6px;
}

/* TAB 3: THỐNG KÊ & BÁO CÁO */
.stats-container {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.progress-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 5px;
  transition: width .3s ease;
}

/* MAP CONTAINER */
.ta-map-wrap {
  flex: 1;
  position: relative;
  height: 100%;
}

#taMap {
  width: 100%;
  height: 100%;
}

/* FLOATING CONTROLS ON MAP */
.map-badge-campaign {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.campaign-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.2);
}

.map-driver-quick {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-float {
  background: #b91c1c;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}

.btn-float:hover {
  background: #991b1b;
  transform: translateY(-2px);
}

/* MAP POPUP */
.maplibregl-popup-content {
  border-radius: 12px !important;
  padding: 14px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.2) !important;
  font-size: 13px;
  max-width: 300px;
}

.popup-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.popup-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.popup-row {
  margin-bottom: 4px;
  color: #475569;
  line-height: 1.35;
}

.popup-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.btn-pop {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
}

.btn-pop.green { background: #16a34a; color: #fff; }
.btn-pop.blue { background: #0284c7; color: #fff; }
.btn-pop.outline { background: #f1f5f9; color: #334155; }

/* Nút hành động trong Popup kiểu lưới hiện đại */
.popup-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.btn-pop-action {
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: all .15s;
}

.btn-pop-action:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.popup-estimate-box {
  border-radius: 8px;
  padding: 7px 10px;
  margin: 6px 0;
  line-height: 1.4;
}

/* Album ảnh kỷ niệm */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.album-card {
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modal-header h3 {
  font-size: 16px;
  color: #1e293b;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(153,27,27,.12);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #f8fafc;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* POPUP LỘ TRÌNH GỢI Ý */
.popup-estimate-box {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
  line-height: 1.45;
}

.popup-estimate-title {
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.popup-estimate-text {
  font-size: 12px;
  color: #78350f;
}

/* NÚT CHỤP ẢNH KỶ NIỆM */
.photo-upload-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.photo-action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-camera-touch, .btn-gallery-touch {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  transition: all .2s;
}

.btn-camera-touch {
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 3px 8px rgba(185,28,28,.25);
}

.btn-gallery-touch {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-camera-touch input, .btn-gallery-touch input {
  display: none;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.photo-preview-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  border: 1px solid var(--border);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ALBUM ẢNH KỶ NIỆM QUÁ KHỨ */
.gallery-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 0;
}

.gallery-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.04);
}

.gallery-card-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-card-info {
  padding: 10px 12px;
}

.gallery-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.gallery-card-meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

/* RESPONSIVE & MOBILE BOTTOM SHEET */
@media (max-width: 900px) {
  :root {
    --sidebar-w: 380px;
  }
}

/* ============================================================
   CHẾ ĐỘ DI ĐỘNG (MOBILE BOTTOM SHEET & THAO TÁC VUỐT CHẠM)
   ============================================================ */
@media (max-width: 768px) {
  body {
    height: 100dvh;
  }

  .ta-topbar {
    height: 52px;
    padding: 0 10px;
  }

  .ta-brand-icon {
    width: 32px;
    height: 32px;
  }

  .ta-brand-text h1 {
    font-size: 13px;
  }

  .ta-brand-text small {
    display: none;
  }

  .ta-campaign-bar {
    display: none;
  }

  .ta-topbar-actions .btn-text-hide {
    display: none;
  }

  .btn-top {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .ta-main {
    flex-direction: column;
    position: relative;
    height: calc(100dvh - 52px);
    overflow: hidden;
  }

  /* Bản đồ chiếm toàn màn hình nền */
  .ta-map-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* Ngăn kéo Bottom Sheet ở dưới kéo lên */
  .ta-sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 50;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 25px rgba(0,0,0,.25);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    transition: height .25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Thanh tay nắm kéo Bottom Sheet */
  .sheet-handle-bar {
    width: 100%;
    padding: 8px 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: #fff;
    border-radius: 20px 20px 0 0;
    user-select: none;
    touch-action: none;
  }

  .sheet-drag-pill {
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 3px;
  }

  .sheet-peek-info {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 600;
  }

  /* 3 trạng thái của Bottom Sheet */
  .ta-sidebar.sheet-peek {
    height: 110px;
  }

  .ta-sidebar.sheet-half {
    height: 50vh;
  }

  .ta-sidebar.sheet-full {
    height: 86vh;
  }

  /* Điều hướng Tabs trên di động dạng Bottom Nav */
  .ta-nav-tabs {
    padding: 0 4px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    justify-content: space-around;
  }

  .ta-tab-btn {
    flex-direction: column;
    padding: 6px 4px;
    font-size: 11px;
    gap: 2px;
  }

  .ta-tab-btn span:first-child {
    font-size: 16px;
  }

  .map-badge-campaign {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 11px;
    max-width: 80%;
  }

  .map-driver-quick {
    bottom: 125px; /* Nằm trên Bottom Sheet peek */
    right: 12px;
  }

  .btn-float {
    padding: 8px 14px;
    font-size: 12px;
  }
}

