/* HD-12 — tour "Chỉ tôi làm" (help-tour.js): khung = driver.js + .doc-guide-popover (document-guide.css), mock Des 05-coach-mark.html.
   Vòng màu chính 4px quanh lỗ tô (không đỏ — đỏ dành cho ảnh bài); 390 = thanh đáy cố định (C7). */
.help-tour-active .driver-active-element { outline: 4px solid #346BDA; outline-offset: 2px; border-radius: 8px; }
/* Bước chọn trong ô tuỳ biến: menu (portal ra <body>) / lịch mở ra ngoài lỗ tô → lớp mờ không chặn bấm, menu nổi trên lớp mờ. */
.help-tour-passthrough .driver-overlay,
.help-tour-passthrough .driver-overlay * { pointer-events: none !important; }
.help-tour-passthrough .dropdown-menu,
.help-tour-passthrough .flatpickr-calendar { z-index: 10001 !important; }
/* driver.js khoá bấm cả trang (.driver-active *) trừ phần tử được tô — mở lại riêng menu / lịch của bước chọn. */
.help-tour-passthrough.driver-active .dropdown-menu,
.help-tour-passthrough.driver-active .dropdown-menu *,
.help-tour-passthrough.driver-active .flatpickr-calendar,
.help-tour-passthrough.driver-active .flatpickr-calendar * { pointer-events: auto !important; }

.driver-popover.help-tour-popover { max-width: 400px; }
.driver-popover.help-tour-popover .help-tour-progress { margin: 0 0 4px; font-size: 12px; color: #5a5a5f; }
.driver-popover.help-tour-popover .driver-popover-title { display: block; }
.driver-popover.help-tour-popover .driver-popover-description:empty { display: none; }
.driver-popover.help-tour-popover .help-tour-footer { justify-content: flex-end; gap: 8px; margin-top: 12px; }
.driver-popover.help-tour-popover .help-tour-footer .button { min-height: 40px; font-size: 14px; }
.driver-popover.help-tour-popover .help-tour-footer .button.is-primary { background: #346BDA; border-color: #346BDA; color: #fff; }

@media (max-width: 768px) {
  /* Thanh đáy: không đè phần tử được tô (phần tử ở nửa dưới → thanh lên đỉnh, .is-top), chạm ≥ 44px, không cuộn ngang. */
  .driver-popover.help-tour-popover {
    position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important;
    width: auto; min-width: 0; max-width: none; border-radius: 12px 12px 0 0; padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
  }
  .driver-popover.help-tour-popover.is-top { top: 0 !important; bottom: auto !important; border-radius: 0 0 12px 12px; }
  .driver-popover.help-tour-popover .driver-popover-arrow { display: none; }
  .driver-popover.help-tour-popover .help-tour-footer .button { min-height: 48px; flex: 1; }
}
