/* driver.js theme — Sales Agent */
.driver-popover.sa-tour {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 18px 18px 14px;
  max-width: 340px;
  min-width: 260px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .06);
}
.driver-popover.sa-tour .driver-popover-title {
  font: 800 16px/1.3 'Be Vietnam Pro', system-ui, sans-serif;
  letter-spacing: -0.01em;
  margin: 0 22px 6px 0;
}
.driver-popover.sa-tour .driver-popover-description {
  font: 400 13.5px/1.6 'Be Vietnam Pro', system-ui, sans-serif;
  color: #475569;
}
.driver-popover.sa-tour .driver-popover-description b { color: #0f172a; font-weight: 700; }
.driver-popover.sa-tour .driver-popover-close-btn {
  top: 10px; right: 10px; width: 28px; height: 28px;
  border-radius: 8px; color: #94a3b8; font-size: 20px;
  transition: background .15s, color .15s;
}
.driver-popover.sa-tour .driver-popover-close-btn:hover { background: #f1f5f9; color: #0f172a; }
.driver-popover.sa-tour .driver-popover-footer { margin-top: 14px; align-items: center; }
.driver-popover.sa-tour .driver-popover-progress-text { font-size: 12px; font-weight: 600; color: #94a3b8; }
.driver-popover.sa-tour .driver-popover-navigation-btns { gap: 6px; }
.driver-popover.sa-tour .driver-popover-footer button {
  font: 700 13px/1 'Be Vietnam Pro', system-ui, sans-serif;
  text-shadow: none;
  border-radius: 10px;
  padding: 9px 13px;
  margin: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  transition: background .15s, border-color .15s, transform .15s;
}
.driver-popover.sa-tour .driver-popover-footer button:hover { background: #f8fafc; border-color: #cbd5e1; }
.driver-popover.sa-tour .driver-popover-footer .driver-popover-next-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .6);
}
.driver-popover.sa-tour .driver-popover-footer .driver-popover-next-btn:hover { background: linear-gradient(135deg, #2563eb, #1d4ed8); transform: translateY(-1px); }
.driver-popover.sa-tour .driver-popover-footer .driver-popover-btn-disabled { opacity: .45; }

.driver-popover.sa-tour .sa-tour-chap {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: -4px 30px 10px 0;
}
.driver-popover.sa-tour .sa-tour-chap span {
  font: 700 11px/1 'Be Vietnam Pro', system-ui, sans-serif;
  color: #2563eb; background: #eff6ff; border-radius: 999px; padding: 5px 9px;
  white-space: nowrap;
}
.driver-popover.sa-tour .sa-tour-skip {
  font: 600 11.5px/1 'Be Vietnam Pro', system-ui, sans-serif;
  color: #64748b; background: none; border: 0; padding: 4px 2px; cursor: pointer; white-space: nowrap;
}
.driver-popover.sa-tour .sa-tour-skip:hover { color: #0f172a; text-decoration: underline; }

/* Nút Hướng dẫn trên thanh trên */
.zl-top-btn.sa-tour-btn { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 9px; font: 600 13px/1 'Be Vietnam Pro', system-ui, sans-serif; color: #334155; }
.zl-top-btn.sa-tour-btn svg { color: #2563eb; }
.zl-top-btn.sa-tour-btn[aria-expanded="true"] { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.zl-top-btn.sa-tour-btn.is-new::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: #2563eb; box-shadow: 0 0 0 2px #fff; animation: saTourPing 1.8s ease-out infinite;
}
@keyframes saTourPing {
  0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(37, 99, 235, .45); }
  100% { box-shadow: 0 0 0 2px #fff, 0 0 0 10px rgba(37, 99, 235, 0); }
}
@media (max-width: 900px) {
  .zl-top-btn.sa-tour-btn { width: 36px; padding: 0; justify-content: center; }
  .sa-tour-btn-label { display: none; }
}

/* Trung tâm hướng dẫn */
.sa-tour-menu {
  position: fixed; z-index: 100000; width: 340px; max-width: calc(100vw - 16px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .32), 0 0 0 1px rgba(15, 23, 42, .08);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif; color: #0f172a;
  display: flex; flex-direction: column; max-height: calc(100vh - 76px);
  animation: saTmIn .16s ease-out;
}
@keyframes saTmIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sa-tour-menu button { font-family: inherit; cursor: pointer; }
.sa-tm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 10px; }
.sa-tm-head b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.sa-tm-head span { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.sa-tm-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: #94a3b8; display: grid; place-items: center; }
.sa-tm-x:hover { background: #f1f5f9; color: #0f172a; }
.sa-tm-prog { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.sa-tm-bar { flex: 1; height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.sa-tm-bar i { display: block; height: 100%; border-radius: inherit; background: #2563eb; transition: width .3s; }
.sa-tm-prog span { font-size: 11.5px; font-weight: 600; color: #64748b; white-space: nowrap; }
.sa-tm-cards { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; }
.sa-tm-card { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; transition: border-color .15s, background .15s; }
.sa-tm-card:hover { border-color: #93c5fd; background: #f8fbff; }
.sa-tm-card.is-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.sa-tm-card.is-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.sa-tm-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f1f5f9; color: #475569; }
.sa-tm-ico svg { width: 18px; height: 18px; }
.sa-tm-ico.sm { width: 30px; height: 30px; border-radius: 9px; }
.sa-tm-ico.sm svg { width: 16px; height: 16px; }
.sa-tm-card.is-primary .sa-tm-ico { background: rgba(255, 255, 255, .18); color: #fff; }
.sa-tm-card:not(.is-primary) .sa-tm-ico { background: #eff6ff; color: #2563eb; }
.sa-tm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-tm-txt b { font-size: 13.5px; font-weight: 600; }
.sa-tm-txt small { font-size: 11.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-tm-card.is-primary .sa-tm-txt small { color: rgba(255, 255, 255, .8); }
.sa-tm-go { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: #2563eb; }
.sa-tm-card.is-primary .sa-tm-go { background: #fff; color: #2563eb; }
.sa-tm-sep { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 6px; border-top: 1px solid #f1f5f9; }
.sa-tm-sep span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.sa-tm-all { border: 0; background: none; padding: 2px 0; font-size: 12px; font-weight: 600; color: #2563eb; }
.sa-tm-all:hover { text-decoration: underline; }
.sa-tm-list { overflow-y: auto; padding: 0 8px 8px; min-height: 0; }
.sa-tm-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 7px 8px; color: #0f172a; transition: background .12s; }
.sa-tm-item:hover { background: #f8fafc; }
.sa-tm-item .sa-tm-txt b { font-size: 13px; font-weight: 500; }
.sa-tm-item.is-cur { background: #f1f5ff; }
.sa-tm-item.is-cur .sa-tm-txt b { font-weight: 600; color: #1d4ed8; }
.sa-tm-item.is-cur .sa-tm-ico { background: #dbeafe; color: #1d4ed8; }
.sa-tm-state { flex: none; color: #cbd5e1; display: grid; place-items: center; }
.sa-tm-item:hover .sa-tm-state { color: #64748b; }
.sa-tm-done { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #15803d; }
.sa-tm-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #f1f5f9; background: #fafbfc; font-size: 12px; color: #475569; cursor: pointer; }
.sa-tm-foot input { width: 15px; height: 15px; accent-color: #2563eb; margin: 0; }

/* Gợi ý khi mở trang lần đầu */
.sa-tour-hint {
  position: fixed; z-index: 99990; width: 300px; max-width: calc(100vw - 16px);
  display: flex; gap: 11px; padding: 14px; border-radius: 14px; background: #fff;
  box-shadow: 0 18px 44px -14px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .08);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif; color: #0f172a;
  animation: saTmIn .2s ease-out;
}
.sa-tour-hint::before {
  content: ""; position: absolute; top: -7px; left: var(--arrow, 24px); width: 14px; height: 14px;
  background: #fff; transform: rotate(45deg); border-radius: 3px 0 0 0;
  box-shadow: -1px -1px 0 rgba(15, 23, 42, .08);
}
.sa-tour-hint .sa-tm-ico { background: #eff6ff; color: #2563eb; }
.sa-th-body { min-width: 0; flex: 1; }
.sa-th-body b { display: block; font-size: 13.5px; font-weight: 600; }
.sa-th-body p { margin: 3px 0 10px; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.sa-th-acts { display: flex; gap: 6px; }
.sa-th-acts button { font: 600 12.5px/1 'Be Vietnam Pro', system-ui, sans-serif; border-radius: 9px; padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sa-th-go { border: 0; background: #2563eb; color: #fff; }
.sa-th-go:hover { background: #1d4ed8; }
.sa-th-later { border: 1px solid #e2e8f0; background: #fff; color: #475569; }
.sa-th-later:hover { background: #f8fafc; }
@media (prefers-reduced-motion: reduce) {
  .sa-tour-menu, .sa-tour-hint, .zl-top-btn.sa-tour-btn.is-new::after { animation: none; }
}

@media (max-width: 520px) {
  .driver-popover.sa-tour { max-width: calc(100vw - 24px); }
}

.driver-popover .sa-tour-where { display: block; margin: 0 0 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.01em; color: #0f766e; }
