/**
 * guide-theme.css — Giao diện Hướng dẫn tối giản, gọn gàng.
 */

.vizio-guide-wrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #f8fafc;
  padding: 24px 20px 60px;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #1e293b;
}

.vizio-guide-wrap.is-standalone {
  position: fixed;
  inset: 0;
  z-index: 9500;
  height: 100vh;
  overflow-y: auto;
  padding-top: 28px;
}

.vizio-guide-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.vg-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vg-title {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.vg-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
}

.vg-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  transition: background 0.15s ease;
}

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

.vg-btn-primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.vg-btn-primary:hover {
  background: #1e293b;
}

.vg-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vg-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vg-tab {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.vg-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.vg-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 10px;
  min-width: 240px;
}

.vg-search i {
  color: #94a3b8;
  font-size: 15px;
  margin-right: 6px;
}

.vg-search input {
  border: none;
  outline: none;
  width: 100%;
  padding: 7px 0;
  font-size: 13px;
  color: #0f172a;
  background: transparent;
}

.vg-search-clear {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
}

.vg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.vg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vg-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.vg-step-num {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.vg-role-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

.vg-card-desc {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.vg-step-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.vg-step-list b {
  color: #0f172a;
  font-weight: 600;
}

.vg-card-note {
  font-size: 12px;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
  margin-top: auto;
}

.vg-action-btn {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vg-action-btn:hover {
  background: #f1f5f9;
}

/* ============================================================================
   ICON HƯỚNG DẪN TÀI LIỆU (i) MỜ GÓC PHẢI & HỘP HƯỚNG DẪN TỐI GIẢN
   ============================================================================ */
.vg-float-trigger {
  position: fixed;
  right: 16px;
  bottom: 78px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  cursor: grab;
  z-index: 9800;
  width: 38px;
  height: 40px;
  padding: 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.vg-float-trigger.is-dragging {
  cursor: grabbing !important;
  opacity: 0.95;
  transform: none !important;
  transition: none !important;
}

.vg-doc-ico,
.vg-doc-ico * {
  pointer-events: none;
}

.vg-doc-ico {
  width: 28px;
  height: 31px;
  display: block;
}

.vg-doc-ico--filled {
  display: none;
}

.vg-float-trigger:hover,
.vg-float-trigger.is-open {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Khi di chuột, đang kéo, hoặc đang mở: chuyển từ icon viền mảnh sang icon đặc (đúng theo mẫu ảnh) */
.vg-float-trigger:hover .vg-doc-ico--outline,
.vg-float-trigger.is-dragging .vg-doc-ico--outline,
.vg-float-trigger.is-open .vg-doc-ico--outline {
  display: none;
}

.vg-float-trigger:hover .vg-doc-ico--filled,
.vg-float-trigger.is-dragging .vg-doc-ico--filled,
.vg-float-trigger.is-open .vg-doc-ico--filled {
  display: block;
}

/* Hộp nội dung hướng dẫn nhỏ gọn, ít chữ, tự nhiên */
.vg-float-popover {
  position: fixed;
  right: 16px;
  bottom: 124px;
  z-index: 9850;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 13px 15px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.14);
  color: #1e293b;
}

.vg-pop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.vg-pop-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.vg-pop-close {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.vg-pop-close:hover {
  color: #334155;
}

.vg-pop-desc {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.vg-pop-steps {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.42;
  color: #334155;
}

.vg-pop-steps b {
  color: #0f172a;
  font-weight: 600;
}

.vg-pop-note {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.38;
}

@media (max-width: 767px) {
  .vizio-guide-wrap {
    padding: 14px 12px 80px;
  }
  .vg-grid {
    grid-template-columns: 1fr;
  }
  .vg-float-trigger {
    bottom: 66px;
    right: 12px;
  }
  .vg-float-popover {
    bottom: 110px;
    right: 12px;
  }
}

@media print {
  .no-print,
  .vg-float-trigger,
  .vg-float-popover,
  .fx-nav {
    display: none !important;
  }
  .vizio-guide-wrap {
    padding: 0;
  }
}
