:root {
  --bg: #ecf3ee;
  --text: #111827;
  --muted: #5a6b62;
  /* Thương hiệu PTT — xanh lá chủ đạo (#398B43 / #8CC63F) */
  --primary: #398b43;
  --white: #ffffff;
  --border: rgba(57, 139, 67, 0.16);
  --border-soft: rgba(57, 139, 67, 0.1);
  --surface: #ffffff;
  --surface-soft: #f6faf7;
  --surface-muted: #f0f7f2;
  --surface-elevated: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
  --text-strong: #0f2418;
  --text-subtle: #5c6f63;
  --primary-50: #eef8f0;
  --primary-100: #d9f0de;
  --primary-600: #4a9d52;
  --primary-700: #2f7238;
  --primary-800: #245a2c;
  --brand-lime: #8cc63f;
  --success-soft: #eaf8f1;
  --danger-soft: #ffebeb;
  --green-glow: rgba(57, 139, 67, 0.12);
  --green-glow-strong: rgba(57, 139, 67, 0.22);
  --focus-border: rgba(57, 139, 67, 0.55);
  --focus-ring: 0 0 0 3px rgba(57, 139, 67, 0.14);
  --shadow-green-sm: 0 4px 16px rgba(47, 114, 56, 0.08);
  --shadow-green-md: 0 10px 32px rgba(47, 114, 56, 0.12);
  --app-bg-gradient:
    radial-gradient(circle at 8% 0%, rgba(140, 198, 63, 0.14), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(57, 139, 67, 0.1), transparent 38%),
    linear-gradient(180deg, #eef6f0 0%, #e8f2eb 45%, #f2f8f4 100%);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 4px 12px rgba(47, 114, 56, 0.06);
  --shadow-sm: 0 8px 20px rgba(47, 114, 56, 0.08);
  --shadow-md: 0 14px 30px rgba(47, 114, 56, 0.1);
  /* Nút — viên thuốc (tròn đầy), cỡ lớn hơn */
  --btn-fw: 600;
  --btn-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --btn-radius: 9999px;
  --btn-min-h: 52px;
  --btn-pad-y: 14px;
  --btn-pad-x: 32px;
  --btn-fs: 16px;
  --btn-min-h-compact: 46px;
  --btn-pad-x-compact: 22px;
  --btn-fs-compact: 14px;
  --btn-primary-top: #4eb457;
  --btn-primary-mid: #3a9544;
  --btn-primary-bottom: #2a7232;
  --btn-primary-ring: rgba(57, 139, 67, 0.45);
  --btn-primary-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 14px rgba(47, 114, 56, 0.16);
  --btn-primary-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 2px 4px rgba(15, 23, 42, 0.05),
    0 8px 24px rgba(47, 114, 56, 0.22);
  --btn-primary-border: rgba(21, 65, 28, 0.32);
  --btn-secondary-border: #e2e8f0;
  --btn-secondary-bg: #fcfcfd;
  --btn-secondary-bg-hover: #f3f9f4;
  --btn-secondary-color: #1e293b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

/* Single-page: neo section dưới sticky bar (.landing-pad gắn từ JS, dự phòng khi :has không có) */
html.landing-pad,
html:has(.landing-body) {
  scroll-padding-top: 116px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .btn-secondary,
  .btn-logout,
  .crm-btn-cancel,
  .crm-btn-submit-create,
  .crm-staff-btn-cta,
  .crm-staff-outline-btn {
    transition-duration: 0.01ms;
  }

  .btn:hover,
  .btn:active,
  .btn-secondary:hover,
  .btn-secondary:active {
    transform: none;
  }
}

.landing-body {
  background:
    radial-gradient(circle at 96% 2%, rgba(180, 220, 190, 0.42), transparent 38%),
    radial-gradient(circle at 4% 40%, rgba(200, 230, 210, 0.22), transparent 42%),
    linear-gradient(180deg, #f6faf7 0%, #f0f5f1 50%, #f7faf8 100%);
}

.landing-body .section {
  padding: 64px 0;
}

.landing-body .section + .section {
  border-top: 1px solid rgba(190, 215, 200, 0.55);
}

.landing-body .section-head {
  max-width: 920px;
}

/* Đầu mục section — Noto Serif: nghiêm, rõ (trừ block Đối tác có chi tiết riêng) */
.landing-body .section-head:not(.section-head-partners) h2 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 3.9vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #050d1c;
}

.landing-body .section-head:not(.section-head-partners) p {
  margin-top: 14px;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.65;
  letter-spacing: 0.015em;
  font-weight: 500;
  color: #3d4d6e;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--primary-600, #4a9d52);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(90, 150, 105, 0.14);
  backdrop-filter: blur(8px);
  z-index: 10;
  box-shadow: 0 6px 18px rgba(20, 60, 40, 0.06);
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  color: var(--text-strong);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Logo hình + tên: trang mặc định, landing, career */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 420px);
  white-space: normal;
  line-height: 1.15;
}

.brand-logo-img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.topbar .brand-logo-img,
.landing-topbar .brand-logo-img,
.career-site-header .brand-logo-img {
  height: 44px;
  /* PNG nền trong suốt — không cần khung/đổ bóng */
  border-radius: 0;
  box-shadow: none;
}

.brand-logo-text {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a2a12;
  font-size: clamp(14px, 1.1vw, 18px);
}

.career-site-header .brand-logo .brand-logo-text {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 15px;
  line-height: 1.2;
  color: #111;
}

.default-nav a {
  margin-left: 16px;
  color: #2b3f67;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.default-nav a:hover {
  background: #e8f5ea;
  color: #2f7238;
}

.default-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* CRM dropdown — topbar mặc định (Admin / CRM / CMS) */
.nav-crm-dd {
  position: relative;
  margin-left: 8px;
}

.nav-crm-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: #2b3f67;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-crm-dd-trigger.is-active,
.nav-crm-dd-trigger:hover {
  background: #e8f5ea;
  color: #2f7238;
}

.nav-crm-dd-caret {
  font-size: 10px;
  opacity: 0.75;
}

.nav-crm-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1200;
  min-width: 240px;
  padding: 8px;
  background: var(--surface, #fff);
  border: 1px solid rgba(90, 150, 105, 0.18);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-md, 0 14px 30px rgba(14, 36, 82, 0.12));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}

.nav-crm-dd:hover .nav-crm-dd-panel,
.nav-crm-dd:focus-within .nav-crm-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-crm-dd-link {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2b3f67;
  text-decoration: none;
  white-space: nowrap;
}

.nav-crm-dd-link:hover,
.nav-crm-dd-link.is-active {
  background: #e8f5ea;
  color: #2f7238;
}

.hero {
  padding: 78px 0 54px;
  background: radial-gradient(circle at top right, #d4edd8, transparent 45%);
}

.hero-ptt-brand,
.hero-admicro {
  background:
    linear-gradient(140deg, rgba(12, 48, 22, 0.93), rgba(32, 88, 42, 0.88)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  color: #eef4ff;
}

/* Slide trang chủ — full width */
.home-hero-slider {
  position: relative;
  margin: 0;
  padding: 0;
  outline: none;
}

.home-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.home-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-slider-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: clamp(680px, 96vh, min(1200px, 100vh));
  display: flex;
  align-items: center;
  padding: clamp(80px, 11vh, 120px) 0 clamp(96px, 12vh, 140px);
  box-sizing: border-box;
  background-color: #0c2012;
  overflow: hidden;
}
.home-slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.home-slider-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 26, 14, 0.72) 0%, rgba(16, 46, 24, 0.52) 100%);
  z-index: 0;
  pointer-events: none;
}
.home-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-slider-slide-inner {
  position: relative;
  z-index: 1;
  width: min(1400px, 96%);
  max-width: 1400px;
}

/* Slider rộng hơn khối .container mặc định (1120px) */
.home-hero-slider .home-slider-slide-inner.container {
  width: min(1400px, 96%);
  max-width: 1400px;
}

.home-slider-kicker {
  margin: 0 0 14px;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.55);
}

.home-slider-slide h1,
.home-slider-heading {
  margin: 0 0 18px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.35rem, 5.8vw, 4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.85),
    0 2px 16px rgba(0, 0, 0, 0.75),
    0 6px 36px rgba(0, 0, 0, 0.45);
  max-width: 22em;
}

.home-slider-lead {
  margin: 0;
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
  line-height: 1.68;
  font-weight: 600;
  color: #ffffff;
  max-width: min(720px, 55vw);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 3px 18px rgba(0, 0, 0, 0.5);
}

.home-slider-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-slider-btn-primary.btn {
  margin-top: 0;
  padding: 14px 26px;
  font-size: 1.05rem;
  text-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
  color: #0a1628;
  border: none;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.home-slider-btn-primary.btn:hover {
  filter: brightness(1.03);
}

.home-slider-btn-ghost.btn {
  margin-top: 0;
  padding: 14px 26px;
  font-size: 1.05rem;
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #ffffff;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.home-slider-btn-ghost.btn:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: #ffffff;
}

.home-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 28, 48, 0.45);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.home-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.home-slider-prev {
  left: clamp(14px, 4vw, 40px);
}

.home-slider-next {
  right: clamp(14px, 4vw, 40px);
}

.home-slider-dots-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 4vh, 40px);
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.home-slider-dots {
  display: inline-flex;
  gap: 10px;
  pointer-events: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.home-slider-dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.home-slider-dot.is-active {
  background: var(--brand-lime, #8cc63f);
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .home-slider-slide {
    min-height: clamp(560px, 92vh, 900px);
    padding: 56px 0 88px;
  }

  .home-slider-lead {
    max-width: none;
  }

  .home-slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slider-track {
    transition: none !important;
  }
}

.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}

.landing-body .hero-grid {
  gap: 34px;
}

.hero-main .muted {
  color: #d8e2ff;
  max-width: 640px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  min-height: 290px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  object-fit: cover;
}

.landing-body .hero-media img {
  box-shadow: 0 22px 54px rgba(7, 24, 61, 0.42);
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #dce7ff;
  border: 1px solid rgba(220, 231, 255, 0.4);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.65);
}

.landing-body .hero-badge {
  backdrop-filter: blur(4px);
}

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(57, 139, 67, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 28px rgba(12, 40, 22, 0.07);
  /* backdrop-filter moved to ::before — applying it directly on a position:sticky element
     creates a new containing block in Safari, breaking all position:fixed children */
}
.landing-topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-topbar .nav-wrap {
  gap: 22px;
  justify-content: flex-start;
  min-height: 84px;
}

.landing-topbar .logo-landing .brand-logo-img {
  height: 60px;
  width: auto;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(57, 139, 67, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f6faf7 100%);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 2px 8px rgba(8, 28, 16, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(57, 139, 67, 0.45);
  box-shadow: 0 1px 0 #fff inset, 0 4px 14px rgba(57, 139, 67, 0.12);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: #153520;
  border-radius: 1px;
  margin: 5px auto;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 4% 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(12, 32, 24, 0.06);
}

.mobile-menu a {
  display: block;
  text-decoration: none;
  color: #152a1e;
  font-weight: 700;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 13px 0;
  border-bottom: 1px solid rgba(57, 139, 67, 0.08);
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--primary-700);
}

.mobile-menu-link-cta {
  margin-top: 4px;
  padding: 14px 16px !important;
  border: 1px solid rgba(57, 139, 67, 0.35) !important;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(57, 139, 67, 0.08) 0%, rgba(57, 139, 67, 0.04) 100%);
  color: var(--primary-700) !important;
  font-weight: 800;
  text-align: center;
}

.mobile-menu-link-cta:hover {
  background: rgba(57, 139, 67, 0.12) !important;
  border-color: var(--primary) !important;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.mobile-menu-nav-grid .mobile-menu-link {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(57, 139, 67, 0.08);
}

.mobile-menu-nav-grid .mobile-menu-link:nth-child(odd) {
  border-right: 1px solid rgba(57, 139, 67, 0.08);
}

.mobile-menu-nav-grid .mobile-menu-link:nth-last-child(-n + 2):nth-child(odd):last-child,
.mobile-menu-nav-grid .mobile-menu-link:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: none;
}

.logo-landing,
.logo-landing .brand-logo-text {
  color: #0a2a12;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: inherit;
  letter-spacing: -0.02em;
}

.landing-topbar .logo-landing .brand-logo-text,
.landing-topbar .logo-landing .logo-landing-text {
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  overflow-x: auto;
  margin-left: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.landing-nav::-webkit-scrollbar {
  display: none;
}

.landing-nav > a.landing-nav-item {
  color: #1a2e1f;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  border-radius: 11px;
  padding: 12px 15px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.landing-nav > a.landing-nav-item:hover {
  color: var(--primary-700);
  background: rgba(57, 139, 67, 0.08);
}

.landing-nav > a.landing-nav-item.is-active {
  color: var(--primary-700);
  position: relative;
  background: rgba(57, 139, 67, 0.06);
}

.landing-nav > a.landing-nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 0.4em;
  right: 0.4em;
  bottom: 4px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.landing-nav-item-cta {
  background: linear-gradient(180deg, rgba(57, 139, 67, 0.12) 0%, rgba(57, 139, 67, 0.07) 100%) !important;
  border: 1px solid rgba(57, 139, 67, 0.35);
  color: #1f4a25 !important;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.landing-nav-item-cta:hover {
  background: rgba(57, 139, 67, 0.16) !important;
  border-color: var(--primary);
  color: #143217 !important;
}

/* CRM trên menu landing */
.landing-nav-crm {
  position: relative;
  display: inline-flex;
  align-self: center;
}

.nav-crm-hover-wrap {
  display: flex;
  align-items: stretch;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.landing-nav-crm:hover .nav-crm-hover-wrap,
.landing-nav-crm:focus-within .nav-crm-hover-wrap,
.landing-nav-crm.is-active-section .nav-crm-hover-wrap {
  background: linear-gradient(180deg, rgba(57, 139, 67, 0.09) 0%, rgba(57, 139, 67, 0.04) 100%);
}

.nav-crm-hover-link {
  padding-right: 4px !important;
}

.nav-crm-hover-opener {
  display: flex;
  align-items: center;
  padding: 0 12px 0 2px;
  border: none;
  background: transparent;
  color: #1a2e1f;
  font-size: 12px;
  cursor: pointer;
  border-radius: 0 999px 999px 0;
}

.nav-crm-hover-opener:hover {
  color: var(--primary);
}

.nav-crm-hover-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1200;
  min-width: 240px;
}

.nav-crm-hover-panel-inner {
  padding: 8px;
  background: var(--surface, #fff);
  border: 1px solid rgba(90, 150, 105, 0.18);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-md, 0 14px 30px rgba(14, 36, 82, 0.12));
}

.nav-crm-hover-item {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a2e1f;
  text-decoration: none;
  white-space: nowrap;
}

.nav-crm-hover-item:hover,
.nav-crm-hover-item.is-active {
  background: rgba(57, 139, 67, 0.1);
  color: var(--primary);
}

@media (min-width: 901px) {
  .landing-nav-crm:hover .nav-crm-hover-panel,
  .landing-nav-crm:focus-within .nav-crm-hover-panel {
    display: block !important;
  }

  .nav-crm-hover-panel[hidden] {
    display: none !important;
  }
}

.mobile-nav-dd-body--crm {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-dd-body--crm .mobile-menu-link {
  margin: 0;
  border-radius: 8px;
}

/* Mega menu Dịch vụ — bố cục nhiều cột, thẩm mỹ sang trọng (tông thương hiệu PTT) */
/* Bọc cả trigger + panel — một cây DOM: mouseenter/leave không bị tách theo 2 cây. */
.nav-mega-hover {
  position: static;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
}

/* Lớp nối vô hình dưới pill Dịch vụ: giảm khe mà con trỏ vẫn tính là ra khỏi vùng (leave giả) */
@media (min-width: 901px) {
  .nav-mega-hover {
    position: relative;
  }

  .nav-mega-hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }
}

.nav-mega-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-mega-wrap:hover,
.nav-mega-wrap:focus-within,
.nav-mega-wrap:has([aria-expanded="true"]) {
  background: linear-gradient(180deg, rgba(57, 139, 67, 0.09) 0%, rgba(57, 139, 67, 0.04) 100%);
  box-shadow: 0 1px 0 rgba(57, 139, 67, 0.12) inset;
}

/* Link: cuộn tới #main — cùng style với mục nav khác */
.nav-mega-dv-link {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 11px 2px 11px 18px;
  border-radius: 999px 0 0 999px;
  text-decoration: none;
  color: #1a2e1f;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-mega-dv-link:hover {
  color: var(--primary);
}

.nav-mega-dv-link.is-active {
  color: var(--primary);
  position: relative;
}

.nav-mega-dv-link.is-active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--primary);
}

/* Nút chỉ mở panel mega (không cuộn trang) */
.nav-mega-opener {
  margin: 0;
  padding: 11px 16px 11px 2px;
  border: none;
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: #1a2e1f;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-mega-opener:hover,
.nav-mega-opener[aria-expanded="true"] {
  color: var(--primary);
}

.nav-mega-opener.is-active {
  color: var(--primary);
}

/* Một gạch chân dưới cả nhóm khi đang ở #main (Dịch vụ) */
.nav-mega-wrap:has(.nav-mega-dv-link.is-active)::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -8px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-mega-dv-link.is-active::after {
  display: none;
}

/* Caret ký tự */
.nav-mega-caret {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  vertical-align: middle;
  color: #3d5a44;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-mega-opener[aria-expanded="true"] .nav-mega-caret {
  transform: rotate(180deg);
  opacity: 0.9;
}

/* Cố định theo viewport; top gán bằng JS theo đáy thanh header (sticky) — full-bleed, không bị cắt bởi nav hẹp. */
.nav-mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-mega-panel-top, 64px);
  z-index: 90;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.08);
  max-height: min(82vh, 820px);
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Không dùng transform/animation ở đây — tránh layer composite giật khi mở + rê chuột */
  scrollbar-gutter: stable;
  isolation: isolate;
}

.nav-mega-container {
  max-width: none;
  width: 100%;
  margin: 0;
  /* Tràn tới 2 cạnh viewport; khoảng cách bằng padding ngang (clamp) */
  padding: 22px clamp(16px, 3.5vw, 48px) 32px;
  box-sizing: border-box;
}

/* Lưới dịch vụ + (tuỳ chọn) cột 5: 4 cột nhóm + 1 cột quảng cáo */
.nav-mega-body {
  padding-top: 0;
}

.nav-mega-cols {
  min-width: 0;
  padding: 0 0 4px 0;
}

/* 5 “cột” tổng: ul 4 cột + aside */
.nav-mega-cols--five {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  column-gap: 2rem;
  align-items: stretch;
}

.nav-mega-ad-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

a.nav-mega-promo {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 240px;
  max-height: 480px;
  height: 100%;
  text-decoration: none;
  color: #0d1a10;
  background: #f8fbf8;
  border: 1px solid rgba(57, 139, 67, 0.22);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  outline: none;
}

a.nav-mega-promo:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 32px rgba(8, 40, 22, 0.12);
  transform: translateY(-1px);
}

a.nav-mega-promo:focus-visible {
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.35);
}

.nav-mega-promo-media {
  display: block;
  position: relative;
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 220px;
  background: #e4eee6;
  overflow: hidden;
}

.nav-mega-promo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-mega-promo-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-700);
  padding: 10px 14px 0;
  flex-shrink: 0;
}

.nav-mega-promo-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 4px 14px 0;
  font-family: "Manrope", "Inter", sans-serif;
  color: #0d1a10;
  flex-shrink: 0;
}

.nav-mega-promo-sub {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: #3d4d48;
  padding: 6px 14px 14px;
  flex-shrink: 0;
}

@media (max-width: 1020px) {
  .nav-mega-container {
    padding: 20px clamp(14px, 3vw, 28px) 28px;
  }
}

/* Cột quảng cáo: xuống dưới block dịch vụ; card ngang (ảnh trái) */
@media (max-width: 1100px) {
  .nav-mega-cols--five {
    grid-template-columns: 1fr;
  }

  .nav-mega-cols--five .nav-mega-ad-col {
    order: 1;
  }

  a.nav-mega-promo {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
    grid-template-rows: auto auto 1fr;
    min-height: 120px;
    max-height: none;
    height: auto;
  }

  a.nav-mega-promo .nav-mega-promo-media {
    grid-column: 1;
    grid-row: 1 / -1;
    max-height: none;
    min-height: 100%;
  }

  a.nav-mega-promo .nav-mega-promo-label {
    grid-column: 2;
    padding: 10px 14px 0 12px;
  }

  a.nav-mega-promo .nav-mega-promo-title {
    grid-column: 2;
    padding: 2px 14px 0 12px;
  }

  a.nav-mega-promo .nav-mega-promo-sub {
    grid-column: 2;
    padding: 4px 14px 12px 12px;
  }
}

/* Cột con — kiểu BNG: phẳng, không thẻ nổi */
li.nav-mega-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  scroll-margin-top: 0.75rem;
}

.nav-mega-col-head {
  display: block;
  min-width: 0;
  margin: 0 0 2px 0;
  padding: 0 0 10px 0;
  border: none;
  background: none;
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
  overflow: visible;
}

/* Mega Dịch vụ: nhiều cột ngang (tương tự bngagency.vn) */
ul.nav-mega-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 1.75rem;
  width: 100%;
  align-items: start;
}

@media (max-width: 1100px) {
  ul.nav-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  ul.nav-mega-grid {
    grid-template-columns: 1fr;
  }
}

/* Tiêu đề từng cột: như heading nhóm BNG */
h3.nav-mega-heading {
  margin: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #111;
  line-height: 1.3;
  border: none;
  display: block;
  background: transparent;
  font-family: "Manrope", "Inter", sans-serif;
}

.nav-mega-list {
  margin: 0;
  padding: 12px 0 0 0;
  list-style: none;
}

.nav-mega-list li {
  margin: 0;
  padding: 0;
  border: none;
}

.nav-mega-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 6px 0;
  text-decoration: none;
  color: #2c3544;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  border-radius: 0;
  margin: 0;
  letter-spacing: 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, padding 0.15s ease;
}

.nav-mega-link-text {
  flex: 1;
  min-width: 0;
}

.nav-mega-link-icon {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--primary-600);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.nav-mega-list a:hover {
  color: var(--primary-700);
  background: none;
  font-weight: 600;
  padding-left: 2px;
}

.nav-mega-list a:hover .nav-mega-link-icon {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

.nav-mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  /* Bỏ backdrop-filter — blur toàn màn gây repaint nặng khi rê chuột, dễ giật */
  background: rgba(4, 16, 10, 0.42);
}

/* Nổi Tư vấn + Zalo + gọi — góc trái */
.contact-fab {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: "Manrope", "Inter", sans-serif;
  pointer-events: none;
}

.contact-fab__btn {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 11px 11px;
  min-width: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    padding 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
}

.contact-fab__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.contact-fab__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.contact-fab__ico {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.95;
}

/* Icon điện thoại & Zalo — cùng khung vuông để đồng nhất kích thước */
.contact-fab__ico--tel,
.contact-fab__ico--zalo {
  display: flex;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.contact-fab__ico--tel svg,
.contact-fab__ico--zalo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-fab__label {
  display: inline-block;
  overflow: hidden;
  max-width: 12em;
  opacity: 1;
  margin-left: 6px;
  padding-right: 2px;
  flex-shrink: 0;
  transition: max-width 0.3s ease, opacity 0.2s ease, margin 0.25s ease;
}

/* Desktop / chuột: chỉ icon; rê chuột hoặc focus → hiện chữ */
@media (hover: hover) and (pointer: fine) {
  .contact-fab__label {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    padding-right: 0;
  }

  .contact-fab__btn:hover,
  .contact-fab__btn:focus-visible {
    padding-right: 16px;
  }

  .contact-fab__btn:hover .contact-fab__label,
  .contact-fab__btn:focus-visible .contact-fab__label {
    max-width: 12em;
    opacity: 1;
    margin-left: 8px;
  }
}

.contact-fab__btn--zalo {
  background: linear-gradient(180deg, #0d7aff 0%, #0068ff 100%);
}
.contact-fab__btn--zalo:hover {
  background: linear-gradient(180deg, #1a82ff 0%, #0056d4 100%);
}

.contact-fab__btn--tel {
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-700) 100%);
}
.contact-fab__btn--tel:hover {
  background: linear-gradient(180deg, var(--primary) 0%, #1f5c28 100%);
}

.contact-fab__btn--consult {
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
  animation: cfab-pulse 2.8s ease-in-out infinite;
}
.contact-fab__btn--consult:hover,
.contact-fab__btn--consult.is-active {
  background: linear-gradient(180deg, #8b5cf6 0%, #5b21b6 100%);
  animation: none;
}
@keyframes cfab-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 0 0 0 rgba(124,58,237,0.45); }
  55%       { box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 0 0 9px rgba(124,58,237,0); }
}

/* ── Popup tư vấn ────────────────────────────────────────────────────── */
.cfab-popup {
  position: fixed;
  left: max(72px, calc(env(safe-area-inset-left, 0px) + 72px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 501;
  width: min(310px, calc(100vw - 84px));
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 48px rgba(8, 20, 12, 0.22), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(57, 139, 67, 0.14);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  font-family: "Manrope", "Inter", sans-serif;
}
.cfab-popup.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cfab-popup-inner {
  padding: 20px 20px 18px;
}
.cfab-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.cfab-popup-eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7c3aed;
  margin: 0 0 3px;
}
.cfab-popup-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f1f14;
  margin: 0;
  line-height: 1.3;
  font-family: "Manrope", "Inter", sans-serif;
}
.cfab-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: -2px;
  transition: color .15s, background .15s;
}
.cfab-popup-close:hover { background: #f3f4f6; color: #374151; }
.cfab-popup-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cfab-popup-form input {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  color: #111827;
  background: #fafafa;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cfab-popup-form input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
  background: #fff;
}
.cfab-popup-form input::placeholder { color: #9ca3af; }
.cfab-popup-submit {
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(109,40,217,0.35);
  margin-top: 2px;
}
.cfab-popup-submit:hover {
  background: linear-gradient(180deg, #8b5cf6 0%, #5b21b6 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(109,40,217,0.45);
}
.cfab-popup-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.cfab-popup-msg {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 1.2em;
}
.cfab-popup-msg.is-ok { color: var(--primary-700); }
.cfab-popup-msg.is-error { color: #dc2626; }

@media (max-width: 480px) {
  .cfab-popup {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .cfab-popup.is-open {
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .contact-fab {
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }

  .contact-fab__btn {
    min-width: 40px;
    min-height: 40px;
    padding: 7px;
  }
  .contact-fab__ico--tel,
  .contact-fab__ico--zalo {
    width: 22px;
    height: 22px;
  }
}

@media print {
  .contact-fab {
    display: none !important;
  }
}

.landing-utility {
  display: flex;
  gap: 8px;
}

.landing-utility a {
  text-decoration: none;
  color: var(--primary);
  background: #e8f5ea;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 {
  margin: 12px 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  font-family: "Manrope", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

.landing-body .hero-main h1 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-transform: none;
}

.tag {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.muted {
  color: var(--muted);
}

.btn {
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: inherit;
  font-size: var(--btn-fs);
  font-weight: var(--btn-fw);
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-align: center;
  border: 1px solid var(--btn-primary-border);
  border-radius: var(--btn-radius);
  background: linear-gradient(
    165deg,
    var(--btn-primary-top) 0%,
    var(--btn-primary-mid) 42%,
    var(--btn-primary-bottom) 100%
  );
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  box-shadow: var(--btn-primary-shadow);
  transition:
    transform 0.22s var(--btn-ease),
    box-shadow 0.22s var(--btn-ease),
    filter 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  border-color: rgba(21, 65, 28, 0.42);
  box-shadow: var(--btn-primary-shadow-hover);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.99);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 1px 3px rgba(15, 23, 42, 0.08);
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--btn-primary-ring);
  outline-offset: 3px;
}

.btn:disabled,
.btn[aria-disabled="true"],
fieldset:disabled .btn {
  opacity: 0.47;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  filter: grayscale(0.1) brightness(0.98);
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #f8fafc;
  text-shadow: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  filter: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.btn-light:focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

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

.hero-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics article {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(4px);
}

.landing-body .hero-metrics article {
  min-height: 78px;
}

.hero-metrics strong {
  display: block;
  font-size: 20px;
  color: #ffffff;
}

.hero-metrics span {
  display: block;
  color: #d8e2ff;
  font-size: 12px;
}

.hero-box {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 22px;
}

.hero-box ul {
  margin: 0;
  padding-left: 18px;
}

.section {
  padding: 52px 0;
}

.section-alt {
  background: #eef3fb;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: #172845;
  font-family: "Manrope", "Inter", sans-serif;
}

.section-head p {
  margin-top: 8px;
  color: var(--text-subtle);
  line-height: 1.6;
}

.section-head-services {
  max-width: 820px;
}

.partners-section {
  text-align: center;
}

.landing-body .section-head-partners {
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
  text-align: center;
}

.landing-body .section-head-partners h2 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.85vw, 3.85rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: #040c18;
}

.landing-body .section-head-partners h2::after {
  content: "";
  display: block;
  width: min(88px, 26vw);
  height: 2px;
  margin: 20px auto 0;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, #1a3a6e 20%, #1a3a6e 80%, transparent);
}

.landing-body .section-head-partners p {
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
  margin-top: 18px;
  font-size: clamp(1.12rem, 1.5vw, 1.4rem);
  line-height: 1.65;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: #3d4f73;
}

.landing-body .section-head-services .section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.landing-body .service-acc-title {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
  letter-spacing: 0.015em;
  color: #101f3d;
}

.landing-body .service-acc-list-title {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.015em;
}

.landing-body .service-acc-side h4 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.015em;
}

.landing-body .project-content h3 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: #0f1f3d;
}

.landing-body .news-item h3 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: #132747;
}

.landing-body .contact h2 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  line-height: 1.2;
  letter-spacing: 0.025em;
}

.landing-body .contact-grid > div > p:first-of-type {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  opacity: 0.95;
}

.landing-footer-cta-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.section-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dfeaff;
  color: #18439a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.grid-3 {
  margin-top: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.project-card,
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card {
  padding: 18px;
}

.eco-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-grid-secondary {
  margin-top: 16px;
}

.service-grid-unified {
  margin-top: 16px;
  grid-template-columns: 1fr;
  gap: 0;
}

.service-stats {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-stats span {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf3ff;
  border: 1px solid #d7e2f7;
  color: #2a4f97;
  font-size: 12px;
  font-weight: 700;
}

.service-row {
  background: transparent;
  border-bottom: 1px solid #d9e1f1;
  padding: 16px 0;
  transition: border-color 0.2s ease;
}

.service-row:hover {
  border-bottom-color: #b8caef;
}

.landing-body .service-row {
  padding: 18px 0 16px 4px;
}

.landing-body .service-row::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f8dff 0%, #0f5eea 100%);
  position: relative;
  left: -4px;
  top: 12px;
  transition: height 0.2s ease;
}

.landing-body .service-row:hover::before {
  height: 36px;
}

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

.service-row h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.service-row-head span {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #d7e1f7;
  background: #f7faff;
  color: #5770a2;
  font-size: 12px;
  font-weight: 600;
}

.service-list {
  margin: 0;
  padding-left: 18px;
  color: #2d3b57;
  columns: 2;
  column-gap: 24px;
}

.service-list li {
  margin-bottom: 7px;
  line-height: 1.5;
}

.service-list li a {
  color: #1f3f88;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.2s ease;
}

.service-list li a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.service-more {
  margin-top: 10px;
  display: inline-block;
  color: #305aa8;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.services-accordion {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.service-jump {
  margin-top: 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid #dfe7f6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 76px;
  z-index: 9;
  scrollbar-width: thin;
  scrollbar-color: #c7d6f2 transparent;
}

.service-jump-btn {
  flex: 0 0 auto;
  border: 1px solid #d6e1f5;
  border-radius: 999px;
  background: #ffffff;
  color: #2f4879;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  cursor: pointer;
  transition: 0.2s ease;
}

.service-jump-btn:hover {
  border-color: #adc2ea;
  background: #f3f7ff;
}

.service-jump-btn.active {
  background: #e8f0ff;
  color: #1048bb;
  border-color: #9fbaf0;
}

.service-jump-btn:focus-visible {
  outline: none;
  border-color: #6e96e6;
  box-shadow: 0 0 0 3px rgba(60, 113, 209, 0.2);
}

.service-acc-item {
  border: 1px solid #dce4f3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.service-acc-trigger {
  width: 100%;
  border: none;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.service-acc-trigger:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

.service-acc-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d5e2f8;
  box-shadow: 0 2px 10px rgba(40, 84, 162, 0.12);
  flex-shrink: 0;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-acc-title {
  margin: 0;
  font-size: 19px;
  color: #1b2e50;
}

.service-acc-summary p {
  margin: 4px 0 0;
  color: #6a7a97;
  font-size: 13px;
}

.service-acc-chevron {
  color: #4c6698;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.service-acc-item.is-open .service-acc-chevron {
  transform: rotate(180deg);
}

.service-acc-panel {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  border-top: 1px solid #e3e9f5;
  padding: 14px;
  background: #fcfdff;
}

.service-acc-item.is-open .service-acc-panel {
  display: grid;
  animation: accPanelIn 0.24s ease;
}

.service-acc-list-wrap {
  border: 1px solid #e2e8f5;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px 16px;
}

.service-acc-list-title {
  margin: 0 0 10px;
  font-size: 15px;
  color: #244379;
}

.service-acc-list-wrap .service-list {
  columns: 1;
  margin: 0;
  padding-left: 18px;
}

.service-wheel {
  --radius: clamp(120px, 18vw, 170px);
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1;
}

.service-wheel::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed #c8d7f2;
  border-radius: 999px;
  animation: serviceOrbitSpin 24s linear infinite;
}

.service-wheel::after {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(184, 204, 237, 0.45);
  border-radius: 999px;
}

.service-wheel-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(calc(360deg / var(--count) * var(--i))) translateX(var(--radius));
  width: clamp(128px, 15vw, 168px);
}

.service-wheel-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  text-align: center;
  text-decoration: none;
  color: #183a79;
  border: 1px solid #d4e1f8;
  border-radius: 14px;
  background: #ffffff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 10px;
  box-shadow: 0 8px 22px rgba(39, 77, 148, 0.1);
  transform: rotate(calc(-360deg / var(--count) * var(--i)));
  transition: 0.22s ease;
}

.service-wheel-item a:hover {
  transform: rotate(calc(-360deg / var(--count) * var(--i))) translateY(-2px);
  color: #0f4ec0;
  border-color: #9eb9ee;
  box-shadow: 0 12px 26px rgba(40, 85, 164, 0.18);
}

.service-wheel-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(145px, 17vw, 190px);
  min-height: 145px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
  border: 1px solid #cfdef7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.65);
}

.service-wheel-core strong {
  color: #1a3e80;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.35;
}

.service-wheel-core span {
  color: #5c7194;
  font-size: 12px;
}

.service-acc-side {
  border: 1px solid #e2e8f5;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.service-acc-side h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #244379;
}

.service-acc-benefits {
  margin: 0;
  padding-left: 18px;
  color: #556887;
}

.service-acc-benefits li {
  margin-bottom: 6px;
}

@keyframes accPanelIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes serviceOrbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.service-catalog {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.service-catalog-row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 16px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #dce4f3;
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-xs);
}

.service-catalog-meta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.service-index {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf3ff;
  color: #29529b;
  font-weight: 800;
  font-size: 13px;
}

.service-catalog-meta h3 {
  margin: 0;
  font-size: 18px;
  color: #1b2e50;
}

.service-catalog-meta p {
  margin: 6px 0 0;
  color: #6a7a97;
  font-size: 13px;
}

.service-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  color: #1f3f88;
  border: 1px solid #e2e9f6;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fcfdff;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s ease;
}

.service-links li a:hover {
  border-color: #b9cbef;
  background: #f3f7ff;
  color: #0e50c9;
}

/* CAPABILITIES — chỉ đoạn mô tả + lưới icon lớn + nội dung (không kicker/h2/số thứ tự) */
.capabilities-section--modern {
  position: relative;
  padding-top: clamp(56px, 10vw, 96px);
  padding-bottom: clamp(60px, 11vw, 104px);
  overflow: hidden;
  border-top: 1px solid rgba(57, 139, 67, 0.14);
  border-bottom: 1px solid rgba(57, 139, 67, 0.12);
}

.capabilities-section--modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 70% at 50% -5%, rgba(57, 139, 67, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 50% at 100% 100%, rgba(57, 139, 67, 0.07), transparent 52%),
    radial-gradient(ellipse 45% 40% at 0% 80%, rgba(15, 31, 61, 0.06), transparent 55%),
    linear-gradient(185deg, #dff0e2 0%, #f4fbf6 28%, #ffffff 55%, #edf6ef 100%);
  pointer-events: none;
  z-index: 0;
}

.capabilities-section--modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 139, 67, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 139, 67, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, black 15%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.capabilities-inner {
  position: relative;
  z-index: 1;
}

.capabilities-intro {
  margin: 0 auto clamp(40px, 6vw, 56px);
  max-width: min(46rem, 100%);
  padding: 22px 26px 24px;
  font-size: clamp(1.02rem, 1.28vw, 1.14rem);
  line-height: 1.72;
  font-weight: 500;
  color: #3f4f62;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.65) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 12px 48px rgba(15, 31, 61, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.capabilities-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 560px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }
}

@media (min-width: 960px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 28px;
  }
}

.capabilities-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 28px 22px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 250, 242, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 14px 48px rgba(15, 31, 61, 0.08),
    0 6px 20px rgba(57, 139, 67, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.capabilities-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(96px, 22vw, 112px);
  height: clamp(96px, 22vw, 112px);
  margin-bottom: 18px;
  border-radius: 26px;
  color: var(--primary-700, #2f7238);
  background: linear-gradient(155deg, rgba(57, 139, 67, 0.14), rgba(57, 139, 67, 0.05));
  border: 1px solid rgba(57, 139, 67, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 36px rgba(57, 139, 67, 0.1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.capabilities-icon svg,
.capabilities-icon-img {
  width: clamp(56px, 13vw, 72px);
  height: clamp(56px, 13vw, 72px);
}

.capabilities-icon-img {
  object-fit: contain;
}

.capabilities-item:hover {
  transform: translateY(-8px);
  border-color: rgba(57, 139, 67, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 28px 64px rgba(15, 31, 61, 0.12),
    0 14px 36px rgba(57, 139, 67, 0.14),
    0 0 0 3px rgba(57, 139, 67, 0.12);
}

.capabilities-item:hover .capabilities-icon {
  transform: scale(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 44px rgba(57, 139, 67, 0.18);
}

.capabilities-text {
  margin: 0;
  max-width: 22rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: #0b1424;
}

@media (prefers-reduced-motion: reduce) {
  .capabilities-item,
  .capabilities-icon {
    transition: none;
  }

  .capabilities-item:hover {
    transform: none;
  }

  .capabilities-item:hover .capabilities-icon {
    transform: none;
  }
}

@media (max-width: 559px) {
  .capabilities-item:hover {
    transform: translateY(-4px);
  }
}

.partners-shell {
  margin-top: 18px;
  padding: 6px 0;
}

.partner-slider {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.partner-slider-track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 8px 4px 12px;
  animation: none;
  transform: none;
}

.partner-slider:hover .partner-slider-track,
.partner-slider-track.is-paused {
  animation-play-state: paused;
}

.partner-slide {
  flex: 0 0 auto;
  width: 220px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  color: #4b5f89;
  padding: 0;
}

.partner-slide img {
  width: 188px;
  height: 58px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: none;
  opacity: 1;
  transition: transform 0.2s ease;
}

.partner-slide span {
  display: none;
}

.partner-slide:hover img,
.partner-slide:focus-visible img {
  transform: translateY(-2px);
}

.partner-slide.is-fallback img {
  display: none;
}

.partner-slide.is-fallback span {
  display: block;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: #4b5f89;
}

.partner-slide:focus-visible {
  outline: none;
}

.partner-slide:focus-visible img {
  box-shadow: 0 0 0 2px rgba(47, 109, 214, 0.45);
  border-radius: 6px;
}

@keyframes partnerMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-slider-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.project-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #b7c9ef;
  box-shadow: var(--shadow-md);
}

.landing-body .project-card {
  overflow: hidden;
}

.landing-body .project-card img {
  transition: transform 0.45s ease;
}

.landing-body .project-card:hover img {
  transform: scale(1.035);
}

.project-content {
  padding: 16px;
}

.project-content h3 {
  margin: 6px 0 8px;
  font-family: "Manrope", "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--text-subtle, #66758f);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md, 12px);
}

.news-item {
  margin: 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 139, 67, 0.28);
  box-shadow: 0 14px 36px rgba(15, 31, 61, 0.08);
}

.landing-body .news-item {
  backdrop-filter: blur(2px);
}

.news-item-link {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}

.news-item-media {
  flex-shrink: 0;
  align-self: center;
}

.news-item-media img {
  display: block;
  width: 200px;
  height: 118px;
  border-radius: 12px;
  object-fit: cover;
}

.news-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.news-item-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5c6578;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-item-cta {
  flex-shrink: 0;
  align-self: center;
  padding: 10px 14px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-700, #2f7238);
  border-radius: 10px;
  background: rgba(57, 139, 67, 0.1);
  border: 1px solid rgba(57, 139, 67, 0.22);
}

.news-item:hover .news-item-cta {
  background: rgba(57, 139, 67, 0.16);
}

/* Trang chi tiết tin — /tin-tuc/<id> */
.news-detail-page .news-detail-main {
  background: #fafafa;
}

.news-detail-hero {
  width: 100%;
  max-height: min(52vh, 420px);
  min-height: 200px;
  overflow: hidden;
  background: #e8e8e8;
}

.news-detail-hero-img {
  display: block;
  width: 100%;
  height: min(52vh, 420px);
  max-height: min(52vh, 420px);
  object-fit: cover;
  object-position: center;
}

.news-detail-shell {
  max-width: min(720px, 94%);
  padding-top: 28px;
  padding-bottom: 56px;
}

.news-detail-bc-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
  color: #737373;
}

.news-detail-bc-list a {
  color: #525252;
  text-decoration: none;
  font-weight: 600;
}

.news-detail-bc-list a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

.news-detail-date {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748b;
}

.news-detail-title {
  margin: 0 0 22px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0c1220;
}

.news-detail-prose {
  margin: 0;
}

.news-detail-prose p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.78;
  color: #3f4f62;
  white-space: pre-line;
}

.news-detail-external {
  margin: 28px 0 0;
}

.news-detail-external-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-detail-related {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid rgba(15, 31, 61, 0.1);
}

.news-detail-related-heading {
  margin: 0 0 22px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: #0c1220;
  text-align: center;
}

.news-detail-related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 560px) {
  .news-detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
  }
}

@media (min-width: 900px) {
  .news-detail-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 24px;
  }
}

.news-detail-related-card {
  display: block;
  height: 100%;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 31, 61, 0.1);
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 31, 61, 0.06);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.25s ease;
}

.news-detail-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 139, 67, 0.28);
  box-shadow: 0 16px 44px rgba(15, 31, 61, 0.1);
}

.news-detail-related-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e8e8;
}

.news-detail-related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.news-detail-related-card:hover .news-detail-related-thumb img {
  transform: scale(1.05);
}

.news-detail-related-title {
  display: block;
  padding: 14px 16px 16px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #132747;
}

@media (max-width: 640px) {
  .news-detail-hero-img {
    height: auto;
    max-height: 42vh;
    min-height: 180px;
  }
}

.recruitment-section {
  position: relative;
  padding: 72px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 70% at 50% -5%, rgba(140, 198, 63, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(57, 139, 67, 0.08), transparent 50%),
    linear-gradient(180deg, #f0f7f1 0%, #e4f0e7 45%, #ecf5ee 100%);
  border-top: 1px solid rgba(57, 139, 67, 0.18);
  border-bottom: 1px solid rgba(57, 139, 67, 0.14);
}

.recruitment-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 55, 32, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}

.recruitment-section-inner {
  position: relative;
  z-index: 1;
}

.landing-body .recruitment-section-head {
  max-width: 720px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.landing-body .recruitment-section-head h2 {
  color: #0a1810;
  -webkit-text-fill-color: #0a1810;
  background: none;
  font-size: clamp(2.1rem, 3.75vw, 3.05rem);
}

.landing-body .recruitment-section-head .recruitment-lead {
  margin-top: 14px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  color: rgba(35, 55, 42, 0.88);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.recruitment-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.recruitment-grid {
  margin-top: 36px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.recruitment-card {
  position: relative;
  background: linear-gradient(168deg, #ffffff 0%, #f8fcf9 45%, #fbfffc 100%);
  border: 1px solid rgba(57, 139, 67, 0.14);
  border-left: 4px solid var(--primary);
  border-radius: 6px 18px 18px 6px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 2px 4px rgba(8, 28, 16, 0.05),
    0 20px 44px rgba(8, 36, 20, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.recruitment-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(140, 198, 63, 0.2), transparent 70%);
  pointer-events: none;
}

.recruitment-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 139, 67, 0.28);
  box-shadow:
    0 4px 8px rgba(8, 28, 16, 0.07),
    0 26px 52px rgba(8, 40, 22, 0.14);
}

.landing-body .recruitment-card h3 {
  margin: 0;
  padding-right: 48px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0c1812;
  line-height: 1.38;
}

.recruitment-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.recruitment-pill {
  display: inline-block;
  padding: 5px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1e3d26;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(57, 139, 67, 0.18);
  border-radius: 4px;
}

.recruitment-pill-muted {
  color: #3d5a45;
  background: rgba(240, 248, 242, 0.9);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.recruitment-desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14.5px;
  line-height: 1.68;
  color: #3a4a40;
  border-top: 1px solid rgba(57, 139, 67, 0.12);
  padding-top: 14px;
}

.landing-body .recruitment-section .btn.recruitment-apply {
  margin-top: 4px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 22px;
  text-align: left;
  text-decoration: none;
  line-height: 1.28;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(165deg, var(--primary-600) 0%, var(--primary) 40%, var(--primary-700) 100%);
  color: #fbfffc;
  box-shadow: 0 10px 28px rgba(12, 58, 28, 0.35);
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.landing-body .recruitment-section .btn.recruitment-apply:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(8, 48, 24, 0.38);
}

.landing-body .recruitment-section .btn.recruitment-apply:active {
  transform: translateY(0);
}

.recruitment-apply-main {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recruitment-apply-sub {
  font-weight: 500;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contact {
  background:
    linear-gradient(140deg, rgba(8, 22, 14, 0.94), rgba(10, 40, 24, 0.92)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  color: #e2f0e6;
  padding: 56px 0;
}

.contact h2 {
  margin-top: 0;
  font-family: "Manrope", "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.landing-body .contact-form {
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 30px rgba(4, 18, 46, 0.28);
}

.landing-body .contact-form .btn {
  width: 100%;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.contact-form input {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  border-color: rgba(140, 198, 63, 0.85);
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.28);
  outline: none;
}

.contact-form input:focus-visible {
  border-color: rgba(140, 198, 63, 0.85);
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.28);
  outline: none;
}

.contact-form .btn {
  width: fit-content;
}

#contact-form .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  filter: none;
}

#contact-form .btn:disabled:hover {
  transform: none;
  filter: none;
}

.landing-toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  min-width: min(100% - 32px, 400px);
  max-width: min(100% - 32px, 480px);
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #0d1f12;
  background: #ecf8ef;
  border: 1px solid rgba(67, 149, 71, 0.45);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(8, 30, 18, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.landing-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.landing-toast.is-error {
  color: #4a0f0f;
  background: #fff0f0;
  border-color: rgba(200, 80, 80, 0.5);
  box-shadow: 0 10px 32px rgba(40, 10, 10, 0.18);
}

.footer {
  padding: 20px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(14, 36, 24, 0.88) 0%, rgba(4, 14, 9, 0.94) 100%);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  color: #dff3e3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-default-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-default-brand {
  display: inline-block;
  line-height: 0;
}

.footer-default-logo {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  max-height: 88px;
  height: auto;
  vertical-align: middle;
}

/* Logo trắng trên nền footer tối (trang career: nền sáng — giữ logo màu gốc) */
body:not(.career-page) .footer .footer-default-logo {
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.footer-default-copy {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-default-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin: 0;
}

.footer-default-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.footer-default-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* —— Legal / privacy policy —— */
body.legal-page {
  background: var(--app-bg-gradient, linear-gradient(180deg, #eef6f0 0%, #f2f8f4 100%));
  color: var(--text-strong, #0f2418);
}

.legal-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border, rgba(57, 139, 67, 0.16));
}

.legal-topbar-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.legal-topbar-nav a {
  color: var(--text-subtle, #5c6f63);
  text-decoration: none;
}

.legal-topbar-nav a:hover,
.legal-topbar-nav a.is-active {
  color: var(--primary-800, #245a2c);
}

.legal-main {
  padding: 2.5rem 0 4rem;
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-soft, rgba(57, 139, 67, 0.1));
  border-radius: var(--radius-md, 14px);
  box-shadow: var(--shadow-green-sm, 0 4px 16px rgba(47, 114, 56, 0.08));
  padding: 2rem 1.75rem 2.5rem;
}

.legal-doc-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft, rgba(57, 139, 67, 0.1));
}

.legal-doc-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-700, #2f7238);
}

.legal-doc-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  line-height: 1.2;
  color: var(--text-strong, #0f2418);
}

.legal-doc-updated {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-subtle, #5c6f63);
}

.legal-doc-body section {
  margin-bottom: 1.65rem;
}

.legal-doc-body h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--primary-800, #245a2c);
}

.legal-doc-body p,
.legal-doc-body li {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-strong, #0f2418);
}

.legal-doc-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal-doc-body a {
  color: var(--primary-700, #2f7238);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-contact-list {
  list-style: none;
  padding-left: 0;
}

.legal-contact-list li {
  margin-bottom: 0.45rem;
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 1.35rem 1.1rem 1.75rem;
  }

  .legal-topbar .nav-wrap {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

.landing-footer {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(20, 50, 35, 0.55) 0%, rgba(4, 18, 12, 0.78) 45%, rgba(1, 8, 5, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.landing-body .landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-footer-bng {
  --footer-fg: #d0e6d6;
  --footer-heading: #f2faf4;
  --footer-line: rgba(255, 255, 255, 0.12);
  --footer-accent: #a8f0b8;
  --footer-muted: rgba(255, 255, 255, 0.7);
}

.landing-footer-cta {
  position: relative;
  padding: 40px 0 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.05) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.landing-footer-cta-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

.landing-footer-cta-copy {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 820px;
}

.landing-footer-cta-line,
.landing-footer-cta-contact {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.landing-footer-cta-line {
  margin-top: 8px;
}

.landing-footer-cta-contact {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.landing-footer-cta .footer-tel,
.landing-footer-cta .footer-mail {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.landing-footer-cta .footer-tel:hover,
.landing-footer-cta .footer-mail:hover {
  color: #e8fff0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-footer-cta .footer-divider {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 400;
  user-select: none;
}

.landing-footer-cta .landing-footer-cta-btn {
  margin-top: 0;
  flex-shrink: 0;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
  padding: 14px 26px;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-footer-bng-body {
  padding: 40px 0 36px;
  position: relative;
  z-index: 1;
}

.landing-footer-bng-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr 1.2fr;
  gap: 32px 28px;
  align-items: start;
}

.landing-footer-bng-col {
  min-width: 0;
  text-align: left;
  color: var(--footer-fg, #d0e6d6);
  font-size: 14px;
  line-height: 1.6;
}

.landing-footer-bng-col-brand {
  min-width: 0;
}

.landing-footer-bng-col-brand .brand-logo--footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 420px);
  margin: 0 0 14px;
  text-decoration: none;
}

.landing-footer-bng .brand-logo--footer .brand-logo-img {
  height: 44px;
  width: auto;
  max-width: none;
  max-height: none;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.landing-footer-bng .brand-logo--footer .brand-logo-text,
.landing-footer-bng .brand-logo--footer .logo-landing-text {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-footer-bng-marketing {
  margin: 0 0 10px;
  max-width: 340px;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.landing-footer-bng-tagline {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
  max-width: 300px;
}

.landing-footer-bng-social {
  margin: 0;
  font-size: 14px;
}

.landing-footer-bng-social a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
}

.landing-footer-bng-social a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-footer-bng-heading {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin: 0 0 16px;
}

.landing-footer-bng-heading-sub {
  margin-top: 18px;
}

.landing-footer-bng-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-footer-bng-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.landing-footer-bng-list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-footer-bng-address,
.landing-footer-bng-phones {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.landing-footer-bng-phones a {
  color: inherit;
  text-decoration: none;
}

.landing-footer-bng-phones a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-footer-bng-mail {
  color: #fff;
}

.landing-footer-bng-mail:hover {
  color: #fff;
}

.landing-footer-legal {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  padding: 18px 0 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-footer-legal-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.landing-footer-legal-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.landing-footer-legal-name {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.landing-footer-legal-mute {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.landing-footer-legal sup {
  font-size: 0.65em;
  font-weight: 700;
  margin-left: 0.1em;
}

.landing-footer-bng a {
  text-decoration: none;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .landing-footer-bng-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}

/* Trang con dịch vụ (kiểu BNG: hero + breadcrumb + 2 cột + CTA full width) */
body.service-subpage {
  background: linear-gradient(180deg, #f6faf7 0%, #f0f4f1 50%, #f7f9f7 100%);
  color: #0d1a10;
}

.service-subpage-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(57, 139, 67, 0.14);
  box-shadow: 0 1px 0 rgba(12, 40, 22, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-subpage-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
  flex-wrap: wrap;
}

.service-subpage-topbar .brand-logo-img {
  height: 60px;
  width: auto;
}

.service-subpage-topbar .brand-logo .brand-logo-text {
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0a2a12;
}

.service-subpage-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.service-subpage-nav a.service-subpage-nav-item {
  color: #1a2e1f;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-subpage-nav a.service-subpage-nav-item:hover {
  color: var(--primary-700);
  background: rgba(57, 139, 67, 0.07);
}

.service-subpage-nav-cta {
  color: #1f4a25 !important;
  border: 1px solid rgba(57, 139, 67, 0.4) !important;
  border-bottom-color: rgba(57, 139, 67, 0.4) !important;
  background: linear-gradient(180deg, rgba(57, 139, 67, 0.12) 0%, rgba(57, 139, 67, 0.05) 100%) !important;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.service-subpage-nav-cta:hover {
  background: rgba(57, 139, 67, 0.16) !important;
  color: #143217 !important;
  border-color: var(--primary) !important;
}

.service-subpage-wrap {
  min-width: 0;
}

/* Hero — tương tự dịch vụ trang tham chiếu: tiêu đề mạnh, CTA nổi bật */
.service-hero {
  position: relative;
  padding: 48px 0 52px;
  color: #f0faf2;
  overflow: hidden;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 32, 18, 0.92) 0%, rgba(20, 72, 36, 0.88) 45%, rgba(6, 22, 12, 0.95) 100%),
    radial-gradient(100% 80% at 10% 0%, rgba(140, 198, 63, 0.2), transparent 55%),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  z-index: 0;
}

.service-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.service-hero-eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 230, 205, 0.95);
}

.service-hero-title {
  margin: 0 0 8px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.service-hero-tagline {
  margin: 0 0 16px;
  max-width: 48rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.55;
  font-weight: 600;
  color: rgba(210, 240, 218, 0.96);
  letter-spacing: 0.04em;
}

.service-hero-lead {
  margin: 0 0 24px;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.7;
  color: rgba(228, 240, 230, 0.95);
  max-width: 52rem;
  font-weight: 500;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.service-hero-cta.btn {
  background: linear-gradient(180deg, #f2fff4 0%, #c8e8d0 100%);
  color: #0a1f12 !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 14px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.service-hero-cta.btn:hover {
  filter: brightness(1.05);
  color: #051208 !important;
}

.service-hero-ghost.btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 22px;
  text-decoration: none;
}

.service-hero-ghost.btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}

.service-shell {
  padding-top: 20px;
  padding-bottom: 40px;
}

.service-breadcrumb {
  margin: 0 0 28px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #4a5c50;
}

.service-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(57, 139, 67, 0.45);
  font-weight: 500;
  margin-left: 2px;
}

.service-breadcrumb a {
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 600;
}

.service-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-bc-cat {
  color: #3d5244;
  font-weight: 600;
}

.service-breadcrumb [aria-current="page"] {
  color: #1a2e1f;
  font-weight: 700;
  max-width: 100%;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(300px, 32%);
  gap: 32px 40px;
  align-items: start;
}

.service-main {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(57, 139, 67, 0.12);
  border-radius: 16px;
  padding: 28px 32px 32px;
  box-shadow: 0 2px 16px rgba(8, 32, 18, 0.05);
}

.service-block {
  margin-bottom: 32px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block-title {
  margin: 0 0 14px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a1810;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(57, 139, 67, 0.2);
  display: inline-block;
}

.service-block-lead {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #2d3d33;
}

.service-par {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: #2d3d33;
}

.service-par-gap {
  margin-bottom: 16px;
}

.service-rich-html {
  font-size: 1.04rem;
  line-height: 1.75;
  color: #2d3d33;
}
.service-rich-html p { margin: 0 0 14px; }
.service-rich-html p:last-child { margin-bottom: 0; }
.service-rich-html h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f1f14;
  margin: 1.4em 0 0.5em;
  font-family: "Manrope", "Inter", sans-serif;
}
.service-rich-html h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2e1f;
  margin: 1em 0 0.4em;
}
.service-rich-html ul,
.service-rich-html ol {
  padding-left: 1.5em;
  margin: 0 0 14px;
}
.service-rich-html li { margin-bottom: 5px; }
.service-rich-html strong { font-weight: 700; color: #0f1f14; }
.service-rich-html em { font-style: italic; }
.service-rich-html a { color: var(--primary-700); text-decoration: underline; }
.service-rich-html a:hover { color: var(--primary); }

.service-block-title-sub {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f7238;
  border-bottom: none;
  display: block;
  padding-bottom: 0;
  margin-bottom: 16px;
  font-weight: 800;
  font-family: "Manrope", "Inter", sans-serif;
}

.service-stat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.service-stat-tile {
  padding: 16px 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(57, 139, 67, 0.18);
  background: linear-gradient(180deg, #fbfffd 0%, #f0f8f2 100%);
  text-align: center;
  box-shadow: 0 2px 10px rgba(8, 32, 18, 0.04);
}

.service-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a1810;
  line-height: 1.2;
  margin-bottom: 6px;
  font-family: "Manrope", "Inter", sans-serif;
}

.service-stat-label {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #3d5a45;
  font-weight: 600;
}

.service-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.service-pillar-card {
  padding: 18px 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(57, 139, 67, 0.12);
  background: #fbfcfb;
  min-width: 0;
}

.service-pillar-h {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #1a2e1f;
  font-family: "Manrope", "Inter", sans-serif;
  letter-spacing: 0.02em;
}

.service-pillar-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #3a4a40;
}

.service-outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #1e2a22;
  padding: 0;
}

.service-out-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 2px;
}

.service-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(57, 139, 67, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.service-faq-item {
  border-bottom: 1px solid rgba(57, 139, 67, 0.1);
}

.service-faq-item:last-child {
  border-bottom: none;
}

.service-faq-q {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: #0f1f14;
  padding: 14px 16px 14px 44px;
  position: relative;
  font-family: "Manrope", "Inter", sans-serif;
}

.service-faq-q::-webkit-details-marker {
  display: none;
}

.service-faq-q::before {
  content: "＋";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--primary-700);
  font-weight: 800;
}

.service-faq-item[open] .service-faq-q::before {
  content: "－";
}

.service-faq-a {
  margin: 0 16px 16px 44px;
  font-size: 14px;
  line-height: 1.7;
  color: #3a4a40;
}

.service-block-muted {
  margin: 0;
  color: #4a5c50;
  font-size: 15px;
  line-height: 1.65;
}

.service-deliver-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step 0;
}

.service-deliver-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(57, 139, 67, 0.1);
  counter-increment: step 1;
}

.service-deliver-list li:first-child {
  padding-top: 0;
}

.service-deliver-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-deliver-idx {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-700) 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(8, 48, 24, 0.2);
}

.service-deliver-txt {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #1e2a22;
  padding-top: 2px;
}

.service-inline-cta {
  margin-top: 8px;
  padding: 22px 22px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(57, 139, 67, 0.06) 0%, rgba(140, 198, 63, 0.06) 100%);
  border: 1px solid rgba(57, 139, 67, 0.18);
  text-align: center;
}

.service-inline-cta-line {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #2d3d33;
}

.service-inline-cta-btn.btn {
  background: var(--primary);
  color: #fff !important;
  border: 1px solid var(--primary-700);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 12px 24px;
}

.service-aside {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-aside-card {
  background: #fff;
  border: 1px solid rgba(57, 139, 67, 0.14);
  border-radius: 14px;
  padding: 22px 20px 24px;
  box-shadow: 0 4px 20px rgba(8, 32, 18, 0.06);
}

.service-aside-pricing {
  background:
    linear-gradient(140deg, #f8fff9 0%, #edf8ef 100%);
  border: 1px solid rgba(57, 139, 67, 0.22);
}

.service-aside-price-tag {
  margin: 6px 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-700);
  font-family: "Manrope", "Inter", sans-serif;
  line-height: 1.2;
}

.service-aside-price-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: #445040;
  line-height: 1.55;
}

.service-aside-pricing .service-aside-btn.btn {
  background: linear-gradient(180deg, #398b43 0%, #2c7235 100%);
  color: #fff !important;
  border: none;
}

.service-aside-pricing .service-aside-eyebrow {
  color: var(--primary-700);
}

.service-hero--has-img {
  background-image: var(--service-hero-img);
  background-size: cover;
  background-position: center;
}

.service-hero--has-img .service-hero-bg {
  background: linear-gradient(135deg, rgba(8, 26, 14, 0.86) 0%, rgba(12, 36, 20, 0.78) 100%);
}

.service-aside-cta {
  position: sticky;
  top: 84px;
  background:
    linear-gradient(155deg, rgba(16, 42, 28, 0.98) 0%, rgba(8, 28, 18, 0.98) 100%),
    radial-gradient(100% 80% at 100% 0%, rgba(140, 198, 63, 0.1), transparent 50%);
  color: #e8f4ea;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(2, 12, 6, 0.28);
}

.service-aside-eyebrow {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 220, 190, 0.85);
}

.service-aside-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  font-family: "Manrope", "Inter", sans-serif;
}

.service-aside-tel,
.service-aside-mail {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  text-decoration: none;
  color: #c8f0d0;
}

.service-aside-tel:hover,
.service-aside-mail:hover {
  color: #fff;
}

.service-aside-mail {
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 500;
  word-break: break-all;
  opacity: 0.95;
}

.service-aside-btn.btn {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f6fff8 0%, #d8f0e0 100%);
  color: #0a1f12 !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
}

.service-aside-sib-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1a2e1f;
}

.service-sibling-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-sibling-list li {
  border-bottom: 1px solid rgba(57, 139, 67, 0.1);
}

.service-sibling-list li:last-child {
  border-bottom: none;
}

.service-sibling-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: #0f1f14;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 8px;
}

.service-sibling-list a:hover {
  color: var(--primary-700);
  background: rgba(57, 139, 67, 0.06);
}

.service-sibling-ico {
  color: var(--primary);
  font-weight: 700;
  opacity: 0.8;
}

.service-aside-back {
  padding: 16px 18px;
}

.service-back-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-700);
  text-decoration: none;
}

.service-back-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-cta-wide {
  background:
    linear-gradient(115deg, rgba(12, 38, 22, 0.97) 0%, rgba(24, 88, 44, 0.94) 100%),
    radial-gradient(80% 60% at 0% 100%, rgba(140, 198, 63, 0.12), transparent 50%);
  color: #e8f4ea;
  padding: 40px 0 48px;
  border-top: 1px solid rgba(57, 139, 67, 0.25);
}

.service-cta-wide-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.service-cta-wide-title {
  margin: 0 0 8px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  max-width: 36rem;
}

.service-cta-wide-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(200, 225, 205, 0.95);
  max-width: 40rem;
}

.service-cta-wide-btn.btn {
  flex-shrink: 0;
  background: linear-gradient(180deg, #f2fff4 0%, #c8e8d0 100%);
  color: #0a1f12 !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.service-cta-wide-btn.btn:hover {
  filter: brightness(1.04);
  color: #051208 !important;
}

.service-subpage-footer {
  background: #0a1510;
  color: rgba(200, 215, 200, 0.85);
  padding: 24px 0 32px;
  border-top: 1px solid rgba(57, 139, 67, 0.2);
}

.service-subpage-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  font-size: 12.5px;
}

.service-subpage-footer-brand {
  margin: 0;
  max-width: 28rem;
  line-height: 1.5;
}

.service-subpage-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.service-subpage-footer-links a {
  color: rgba(200, 230, 210, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.service-subpage-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1020px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-aside-cta {
    position: static;
  }

  .service-subpage-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .service-hero {
    padding: 32px 0 40px;
  }

  .service-main {
    padding: 20px 16px 24px;
  }

  .service-cta-wide-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .service-cta-wide-btn.btn {
    width: 100%;
    text-align: center;
  }
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  animation: consultFade 0.24s ease;
}

.consult-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.consult-dialog {
  position: relative;
  width: min(620px, 88%);
  max-height: 82vh;
  overflow-y: auto;
  margin: 6vh auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e4e8f1;
  box-shadow: 0 18px 40px rgba(18, 32, 65, 0.18);
  padding: 22px 22px 18px;
  font-family: "Inter", "Be Vietnam Pro", sans-serif;
  animation: consultPop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.consult-dialog::-webkit-scrollbar {
  width: 10px;
}

.consult-dialog::-webkit-scrollbar-thumb {
  background: #ccd8ef;
  border-radius: 999px;
  border: 2px solid #f7f9fd;
}

.consult-close {
  position: absolute;
  right: 10px;
  top: 4px;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3f2;
  border-radius: 999px;
  background: #f8faff;
  font-size: 28px;
  line-height: 1.05;
  cursor: pointer;
  color: #1b2d52;
  transition: 0.2s ease;
}

.consult-close:hover {
  background: #edf3ff;
  border-color: #b7caee;
}

.consult-head {
  text-align: center;
}

.consult-eyebrow {
  margin: 0;
  letter-spacing: 0.04em;
  color: #3b558a;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.consult-title-main {
  margin: 8px 0 0;
  color: #172845;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  font-family: "Inter", "Be Vietnam Pro", sans-serif;
}

.consult-title-sub {
  margin: 8px auto 12px;
  color: #5e6e8d;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.45;
}

.consult-pill-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.consult-pill {
  display: block;
  padding: 8px 6px;
  border-radius: 999px;
  border: 1px solid #dce4f3;
  background: #f8faff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  color: #304770;
  text-align: center;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  border: 1px solid #cfd9eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 12px;
  font: inherit;
  margin-bottom: 7px;
  font-family: "Be Vietnam Pro", "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.consult-form input::placeholder,
.consult-form textarea::placeholder {
  color: #7a879f;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}

.consult-form {
  width: 88%;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e4eaf6;
  border-radius: 14px;
  padding: 12px;
}

.consult-form input,
.consult-form select {
  height: 44px;
}

.consult-form textarea {
  min-height: 78px;
  max-height: 132px;
  resize: vertical;
}

.consult-submit {
  width: 100%;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f8dff 0%, #0f5eea 55%, #0a49c7 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 94, 234, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.consult-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(12, 84, 213, 0.36);
}

.consult-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(12, 84, 213, 0.28);
}

.consult-status {
  margin: 10px 0 0;
}

/* Form tư vấn: đồng bộ tông thương hiệu trên trang dịch vụ */
body.service-subpage .consult-dialog {
  border: 1px solid rgba(57, 139, 67, 0.2);
  box-shadow: 0 20px 48px rgba(4, 24, 12, 0.18);
}

body.service-subpage .consult-eyebrow {
  color: var(--primary-700);
}

body.service-subpage .consult-title-main {
  color: #0a1810;
  font-family: "Noto Serif", Georgia, serif;
}

body.service-subpage .consult-form input:focus,
body.service-subpage .consult-form select:focus,
body.service-subpage .consult-form textarea:focus {
  border-color: rgba(57, 139, 67, 0.65);
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.2);
}

body.service-subpage .consult-submit {
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary) 50%, var(--primary-700) 100%);
  box-shadow: 0 12px 24px rgba(8, 48, 24, 0.28);
}

body.service-subpage .consult-submit:hover {
  box-shadow: 0 16px 30px rgba(6, 40, 20, 0.32);
}

@keyframes consultFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes consultPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin {
  padding: 38px 0 52px;
}

.admin .section-head {
  margin-bottom: 16px;
}

.admin .section-head h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.admin .section-head p {
  margin-top: 8px;
  color: #5f6e8b;
}

.admin-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-logout-form {
  flex-shrink: 0;
  align-self: center;
}

/* Nút đăng xuất — dùng chung Admin / CMS / CRM */
.btn-logout {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--btn-secondary-color);
  background: linear-gradient(180deg, #ffffff 0%, var(--btn-secondary-bg) 100%);
  border: 1px solid var(--btn-secondary-border);
  border-radius: var(--btn-radius);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    color 0.18s var(--btn-ease),
    background 0.18s var(--btn-ease),
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s var(--btn-ease);
}

.btn-logout:hover {
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, var(--btn-secondary-bg-hover) 100%);
  border-color: rgba(57, 139, 67, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 2px 8px rgba(15, 23, 42, 0.06);
}

.btn-logout:focus-visible {
  outline: 2px solid var(--btn-primary-ring);
  outline-offset: 3px;
}

.btn-logout:active {
  transform: translateY(0.5px);
}

.btn-logout-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.88;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.59L17 17l5-5-5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.btn-logout:hover .btn-logout-icon {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e293b'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.59L17 17l5-5-5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E");
}

.admin-login-panel .admin-login-form {
  display: grid;
  gap: 12px;
  max-width: 400px;
  margin-bottom: 6px;
}

.admin-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-login-label {
  font-weight: 600;
  font-size: 13px;
  color: #465266;
}

.admin-login-env-hint {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
}

.admin-login-error {
  color: #611a15;
  background: var(--danger-soft);
  border: 1px solid #f0c4c0;
}

.admin-login-panel code {
  font-size: 0.88em;
}

.admin h3.cms-settings-sub {
  margin: 22px 0 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.panel {
  padding: 20px;
  margin: 18px 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.panel:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(57, 139, 67, 0.24);
}

.panel h2,
.panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.panel .muted {
  font-size: 14px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

input {
  width: 100%;
  border: 1px solid rgba(57, 139, 67, 0.2);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font: inherit;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}

textarea {
  width: 100%;
  border: 1px solid rgba(57, 139, 67, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  resize: vertical;
  background: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #8190a9;
}

.panel-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-secondary {
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: inherit;
  font-size: var(--btn-fs);
  font-style: normal;
  line-height: 1.25;
  text-align: center;
  border-radius: var(--btn-radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: var(--btn-secondary-color);
  background: linear-gradient(180deg, #ffffff 0%, var(--btn-secondary-bg) 100%);
  border: 1px solid var(--btn-secondary-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(15, 23, 42, 0.04);
  font-weight: var(--btn-fw);
  letter-spacing: -0.01em;
  text-shadow: none;
  transition:
    transform 0.22s var(--btn-ease),
    box-shadow 0.22s var(--btn-ease),
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn-secondary:hover {
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, var(--btn-secondary-bg-hover) 100%);
  border-color: rgba(57, 139, 67, 0.22);
  filter: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-0.5px);
}

.btn-secondary:active {
  transform: translateY(0);
  background: #eef5f0;
  border-color: rgba(57, 139, 67, 0.28);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--btn-primary-ring);
  outline-offset: 3px;
}

.btn-secondary:disabled,
.btn-secondary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  box-shadow: none;
}

#services-dirty-badge {
  font-weight: 600;
  align-self: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4dc;
  border: 1px solid #ffe1a8;
  color: #8b5a00;
}

.hidden {
  display: none;
}

.cms-builder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

.cms-sidebar {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cms-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

#item-preview-link {
  display: inline-block;
  margin-bottom: 8px;
  text-decoration: none;
}

.category-list {
  display: grid;
  gap: 10px;
}

.category-block {
  border: 1px solid #e3e8f4;
  border-radius: 10px;
  padding: 8px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-block:hover {
  border-color: #bfd0f3;
  box-shadow: 0 8px 18px rgba(36, 83, 173, 0.08);
}

.category-btn {
  width: 100%;
  text-align: left;
  border: 1px solid #d9e1f1;
  background: #f7f9ff;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
}

.category-btn.active {
  border-color: #95b3ff;
  background: #eaf0ff;
}

.item-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.item-chip {
  border: 1px solid #dce4f3;
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.item-chip.active {
  border-color: #95b3ff;
  background: #eaf0ff;
}

.raw-json-panel {
  margin-top: 12px;
}

.raw-json-panel summary {
  cursor: pointer;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e3e9f5;
}

th,
td {
  border-bottom: 1px solid #e2e8f4;
  text-align: left;
  padding: 12px 8px;
  vertical-align: top;
}

th {
  background: #f5f8ff;
  color: #2c4066;
  font-weight: 700;
  letter-spacing: 0.01em;
}

tbody tr:hover {
  background: #f9fbff;
}

.delete-btn {
  border: none;
  border-radius: 999px;
  background: var(--danger-soft);
  color: #be2f2f;
  padding: 7px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.delete-btn:hover {
  background: #ffdede;
}

.muted {
  color: var(--text-subtle);
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid-unified {
    grid-template-columns: 1fr;
  }

  .service-list {
    columns: 1;
  }

  .service-catalog-row {
    grid-template-columns: 1fr;
  }

  .service-links {
    grid-template-columns: 1fr;
  }

  .service-acc-panel {
    grid-template-columns: 1fr;
  }

  .service-acc-list-wrap {
    padding: 12px;
  }

  .service-jump {
    gap: 6px;
    top: 70px;
    padding: 6px;
  }

  .eco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-slide {
    width: 188px;
    min-height: 54px;
  }

  .partner-slide img {
    width: 156px;
    height: 48px;
  }

  .partner-slider-track {
    gap: 22px;
    animation-duration: 34s;
  }

  .contact-grid,
  .landing-footer-bng-grid {
    grid-template-columns: 1fr;
  }

  .landing-footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .landing-footer-cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-footer-cta .landing-footer-cta-btn {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .landing-nav {
    display: none;
  }

  .nav-mega-panel,
  .nav-mega-backdrop {
    display: none !important;
  }

  .mobile-nav-dd {
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
  }

  .mobile-nav-dd-summary {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 18px;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 12px 1.5em 12px 0;
    color: #152a1e;
    position: relative;
  }

  .mobile-nav-dd-summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    line-height: 1;
    color: #3d5a44;
    opacity: 0.75;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .mobile-nav-dd[open] .mobile-nav-dd-summary::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 0.95;
  }

  .mobile-nav-dd summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-dd-body {
    padding: 0 0 8px 8px;
  }

  .mobile-nav-dd-banner {
    display: block;
    margin: 0 0 14px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(57, 139, 67, 0.22);
    box-shadow: 0 4px 16px rgba(8, 32, 18, 0.08);
  }

  .mobile-nav-dd-banner-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    vertical-align: middle;
  }

  .mobile-nav-dd-block {
    margin-bottom: 14px;
  }

  .mobile-nav-dd-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a5a70;
  }

  .mobile-nav-dd-list {
    margin: 0;
    padding: 0 0 0 4px;
    list-style: none;
  }

  .mobile-nav-dd-list a {
    display: block;
    padding: 7px 0;
    text-decoration: none;
    color: #1a2b4f;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
  }

  .mobile-nav-dd-cta {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .news-item-link {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .news-item-media {
    align-self: stretch;
  }

  .news-item-media img {
    width: 100%;
    height: 200px;
  }

  .news-item-cta {
    align-self: stretch;
    text-align: center;
  }

  .cms-builder {
    grid-template-columns: 1fr;
  }

  .consult-dialog {
    width: min(640px, 94%);
    max-height: 84vh;
    margin: 4vh auto;
  }

  .consult-pill-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consult-title-main {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .eco-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-acc-list-wrap {
    padding: 10px;
  }

  .landing-utility a {
    padding: 5px 9px;
    font-size: 12px;
  }
}

/* --- Career pages (corporate listing + detail, Daiko-style clean layout) --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-to-main:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

body.career-page {
  background: var(--surface-soft);
  color: var(--text);
}

body.career-page .footer {
  border-top: 1px solid rgba(57, 139, 67, 0.14);
  background: #fff;
  color: #4a4f4a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.career-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(57, 139, 67, 0.12);
  box-shadow: 0 1px 0 rgba(12, 40, 22, 0.04);
}

.career-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.career-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.career-site-logo .brand-logo-text {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.career-site-logo:hover .brand-logo-text {
  color: #333;
}

.career-site-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.career-site-links a {
  color: #555;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.career-site-links a:hover {
  color: #111;
}

.career-site-links a.is-active {
  color: var(--primary-700);
  border-bottom-color: var(--primary);
}

.career-main {
  padding-bottom: 64px;
}

.career-hero {
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(140, 198, 63, 0.12), transparent 45%),
    linear-gradient(180deg, #fbfcfb 0%, #eef4f0 100%);
  border-bottom: 1px solid rgba(57, 139, 67, 0.12);
  padding: 48px 0 40px;
}

.career-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-700);
  margin: 0 0 12px;
}

.career-hero-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #0a1810;
  margin: 0 0 16px;
  line-height: 1.2;
}

.career-hero-lead {
  max-width: 640px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #3a4a40;
}

.career-list-section {
  padding: 40px 0 0;
}

.career-job-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(57, 139, 67, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(8, 32, 18, 0.05);
  overflow: hidden;
}

.career-job-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px 32px;
  align-items: start;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(57, 139, 67, 0.1);
}

.career-job-row:last-child {
  border-bottom: none;
}

.career-job-row-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}

.career-job-row-title a {
  color: #111;
  text-decoration: none;
}

.career-job-row-title a:hover {
  color: var(--primary-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.career-job-row-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.career-job-row-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #666;
  text-align: right;
  min-width: 140px;
  padding-top: 4px;
}

.career-job-row-type {
  color: #888;
}

.career-job-row-cta {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.career-btn-detail {
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff !important;
  border: 1px solid var(--primary-700);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(8, 48, 24, 0.2);
}

.career-btn-detail:hover {
  background: var(--primary-600);
  border-color: var(--primary);
  filter: brightness(1.03);
}

/* Detail */
.career-detail-main {
  padding-top: 32px;
}

.career-detail-container {
  max-width: 760px;
  padding-bottom: 48px;
}

.career-breadcrumb {
  font-size: 13px;
  color: #777;
  margin-bottom: 28px;
  line-height: 1.5;
}

.career-breadcrumb a {
  color: #555;
  text-decoration: none;
}

.career-breadcrumb a:hover {
  text-decoration: underline;
}

.career-bc-sep {
  margin: 0 8px;
  color: #bbb;
}

.career-detail-header {
  margin-bottom: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(57, 139, 67, 0.14);
}

.career-detail-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  line-height: 1.25;
}

.career-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-detail-intro {
  font-size: 17px;
  line-height: 1.7;
  color: #3d3d3d;
  margin: 0 0 36px;
}

.career-detail-block {
  margin-bottom: 32px;
}

.career-detail-block h2 {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(57, 139, 67, 0.22);
  display: inline-block;
}

.career-detail-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #444;
  font-size: 15px;
  line-height: 1.75;
}

.career-detail-list li {
  margin-bottom: 8px;
}

.career-flash-list {
  margin: 0 0 28px;
}

.career-flash {
  margin: 0 0 10px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.career-flash-success {
  background: #ecf7ed;
  border: 1px solid #b8dcb8;
  color: #1e4620;
}

.career-flash-error {
  background: #fdecea;
  border: 1px solid #f0c4c0;
  color: #611a15;
}

.career-flash-message {
  background: #f0f4f8;
  border: 1px solid #d0dae6;
  color: #333;
}

.career-detail-cta {
  margin-top: 40px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid rgba(57, 139, 67, 0.16);
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(8, 32, 18, 0.04);
}

.career-detail-cta h2 {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}

.career-apply-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

.career-apply-form {
  max-width: 100%;
}

.career-form-row {
  margin-bottom: 18px;
}

.career-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.career-req {
  color: #b00020;
  font-weight: 700;
}

.career-form-row input[type="text"],
.career-form-row input[type="email"],
.career-form-row input[type="tel"],
.career-form-row textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fafafa;
  color: #111;
}

.career-form-row input:focus,
.career-form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.2);
}

.career-form-row textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

.career-form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.career-file-row .career-file-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.career-file-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.career-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.career-file-btn {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  background: #fff;
  color: var(--primary-700) !important;
  border: 1px solid rgba(57, 139, 67, 0.35);
  border-radius: 8px;
  display: inline-block;
}

.career-file-btn:hover {
  background: var(--success-soft);
}

.career-file-name {
  font-size: 14px;
  color: #444;
  word-break: break-all;
}

.career-file-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #777;
}

.career-form-actions {
  margin-top: 24px;
  text-align: center;
}

.career-submit-btn {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 40px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-700);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(8, 48, 24, 0.22);
}

.career-submit-btn:hover {
  background: var(--primary-600);
  filter: brightness(1.03);
}

.career-detail-back {
  margin: 40px 0 0;
  text-align: center;
}

.career-back-link {
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.career-back-link:hover {
  color: #111;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .career-job-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .career-job-row-meta {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
  }

  .career-job-row-cta {
    justify-content: flex-start;
  }

  .career-form-row-split {
    grid-template-columns: 1fr;
  }
}

/* Landing: Dự án — khung portfolio kiểu Saga (ảnh + giới thiệu) */
.saga-work-section {
  background: #fafafa;
}

.saga-work-section .container {
  width: min(1240px, 94%);
}

.saga-work-head {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.saga-work-head h2 {
  margin: 0 0 12px;
}

.saga-work-section .section-head h2 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  letter-spacing: 0.03em;
  color: #262626;
}

.saga-work-intro {
  margin: 0;
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  line-height: 1.65;
  font-weight: 400;
  color: #737373;
}

.saga-work-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 36px;
  align-items: start;
}

.saga-work-card {
  margin: 0;
  scroll-margin-top: 120px;
}

/* Khung ảnh: crop cố định 3:2 */
a.saga-work-card-media,
button.saga-work-card-media {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.saga-work-card-media {
  overflow: hidden;
  border-radius: 0;
  background: #e8e8e8;
  aspect-ratio: 3 / 2;
  width: 100%;
}

a.saga-work-card-media:focus-visible,
button.saga-work-card-media:focus-visible {
  outline: 2px solid var(--primary-600, #4a9d52);
  outline-offset: 3px;
}

.saga-work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.saga-work-card:hover .saga-work-card-media img {
  transform: scale(1.035);
}

.saga-work-card-body {
  padding-top: 16px;
}

/* Chỉ đoạn giới thiệu (description) dưới ảnh — tiêu đề giữ bằng .visually-hidden cho outline/a11y */
.saga-work-card-intro {
  margin: 0;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 1.25vw, 1.06rem);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0.01em;
  color: #525252;
  white-space: pre-line;
}

.saga-work-grid--collapsible:not(.is-expanded) .saga-work-card--extra {
  display: none;
}

.saga-work-more-row {
  margin: 28px 0 0;
  text-align: center;
}

.saga-work-more-btn.home-slider-btn-ghost {
  min-width: 200px;
}

@media (max-width: 900px) {
  .home-slider-slide {
    min-height: clamp(520px, 88vh, 900px);
    padding: clamp(64px, 10vh, 96px) 0 clamp(72px, 11vh, 110px);
  }

  .home-slide-bg-img,
  .home-slide-video {
    object-fit: cover;
    object-position: center center;
  }

  .saga-work-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 36px;
  }

  .saga-work-card {
    scroll-margin-top: 100px;
  }

  .saga-work-card-media {
    aspect-ratio: 3 / 2;
  }

}

/* Trang chi tiết dự án (/du-an/<id>) — kiểu Saga Marketing work detail */
@keyframes project-detail-hero-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.project-detail-page .project-detail-saga {
  background: #fafafa;
}

.project-detail-saga-hero {
  width: 100%;
  max-height: min(72vh, 820px);
  min-height: 260px;
  background: #e8e8e8;
  overflow: hidden;
}

.project-detail-saga-hero-img {
  display: block;
  width: 100%;
  height: min(72vh, 820px);
  max-height: min(72vh, 820px);
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
}

@media not (prefers-reduced-motion: reduce) {
  .project-detail-page .project-detail-saga-hero-img {
    animation: project-detail-hero-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-detail-page .project-detail-saga-hero-img {
    animation: none;
  }
}

.project-detail-saga-shell {
  max-width: min(760px, 94%);
  padding-top: 36px;
  padding-bottom: 20px;
}

.project-detail-saga-bc {
  margin-bottom: 26px;
}

.project-detail-saga-bc-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #737373;
}

.project-detail-saga-bc-list a {
  color: #525252;
  text-decoration: none;
  font-weight: 600;
}

.project-detail-saga-bc-list a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

.project-detail-saga-h1 {
  margin: 0 0 14px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: #0a0a0a;
}

.project-detail-saga-h2 {
  margin: 0 0 22px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.28;
  color: #171717;
}

.project-detail-saga-rule {
  border: none;
  height: 1px;
  margin: 26px 0 28px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    rgba(15, 15, 15, 0.15) 12%,
    rgba(15, 15, 15, 0.15) 88%,
    rgba(0, 0, 0, 0)
  );
}

.project-detail-saga-prose {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.09rem);
  line-height: 1.82;
  color: #404040;
  white-space: pre-line;
}

.project-detail-more {
  padding: 48px 0 52px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-detail-more-heading {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #737373;
  text-align: center;
}

.project-detail-more-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 26px;
  max-width: 900px;
}

.project-detail-more-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-detail-more-thumb {
  overflow: hidden;
  border-radius: 2px;
  background: #ebebeb;
  aspect-ratio: 3 / 2;
}

.project-detail-more-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.project-detail-more-card:hover .project-detail-more-thumb img {
  transform: scale(1.045);
}

.project-detail-more-meta {
  padding-top: 14px;
}

.project-detail-more-title {
  display: block;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  font-weight: 400;
  line-height: 1.38;
  color: #171717;
}

.project-detail-saga-back-wrap {
  padding-bottom: 52px;
  text-align: center;
}

.project-detail-saga-back {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-700);
  text-decoration: none;
}

.project-detail-saga-back:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .project-detail-more-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-saga-hero-img {
    min-height: 220px;
    height: auto;
    max-height: 52vh;
  }
}

/* Career modal (popup chi tiết + ứng tuyển) */
body.career-modal-open {
  overflow: hidden;
}

.career-page-flash-wrap {
  padding: 16px 0 0;
  max-width: 960px;
  margin: 0 auto;
}

.career-page-flash-wrap .career-flash {
  margin-bottom: 8px;
}

.career-job-title-btn {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.career-job-title-btn:hover {
  color: var(--primary-700);
}

.career-modal-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.career-modal-root.is-open {
  opacity: 1;
  visibility: visible;
}

.career-modal-root[hidden] {
  display: none !important;
}

.career-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(26, 38, 61, 0.55), rgba(10, 12, 18, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.career-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fefffe 0%, #f4faf6 100%);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(57, 139, 67, 0.2),
    0 28px 80px rgba(6, 28, 14, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.18);
  border-top: 4px solid var(--primary);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.career-modal-root.is-open .career-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.career-modal-header-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(57, 139, 67, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.career-modal-brand {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.career-modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(57, 139, 67, 0.08);
  color: #1a3d22;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.career-modal-close:hover {
  background: rgba(57, 139, 67, 0.16);
  transform: scale(1.05);
}

.career-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 22px 28px;
  -webkit-overflow-scrolling: touch;
}

.career-modal-article {
  max-width: 100%;
}

.career-modal-intro {
  margin-bottom: 20px;
}

.career-modal-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
  line-height: 1.25;
}

.career-modal-article .career-detail-block h3 {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(57, 139, 67, 0.22);
  display: inline-block;
}

.career-modal-article .career-detail-cta {
  margin-top: 28px;
  padding: 22px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(57, 139, 67, 0.2);
}

.career-modal-article .career-detail-cta h3 {
  font-size: 18px;
  border-bottom: none;
  display: block;
  margin-bottom: 8px;
}

.career-modal-form-msg {
  min-height: 0;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
}

.career-modal-form-msg.is-success {
  padding: 10px 14px;
  border-radius: 8px;
  background: #ecf7ed;
  border: 1px solid #b8dcb8;
  color: #1e4620;
}

.career-modal-form-msg.is-error {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fdecea;
  border: 1px solid #f0c4c0;
  color: #611a15;
}

.career-modal-article .career-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .career-modal-root,
  .career-modal-panel {
    transition: none;
  }

  .career-modal-root.is-open .career-modal-panel {
    transform: none;
  }
}

/* --- CRM / quy trình chăm sóc khách hàng --- */
.crm-body {
  min-height: 100vh;
  background: var(--app-bg-gradient);
}

.crm-app {
  max-width: min(1280px, 96%);
}

.crm-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(90, 150, 105, 0.14);
}

.crm-hero-text {
  max-width: 640px;
}

.crm-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-700);
  background: linear-gradient(135deg, rgba(57, 139, 67, 0.12), rgba(140, 198, 63, 0.15));
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.crm-hero-title {
  margin: 0;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.2;
}

.crm-hero-desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5a75;
}

.crm-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.crm-btn-ghost {
  border-radius: 999px;
}

.crm-add-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(57, 139, 67, 0.25);
}

.crm-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

/* Phễu bán hàng real-time */
.crm-funnel-panel {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(57, 139, 67, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff 0%, #f8fbf9 100%);
}

.crm-funnel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.crm-funnel-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.crm-funnel-sub {
  margin: 0;
  font-size: 13px;
}

.crm-funnel-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--muted);
}

.crm-funnel-kpi strong {
  color: var(--text-strong);
  font-weight: 800;
}

.crm-funnel-kpi--warn strong {
  color: #c2410c;
}

.crm-funnel-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-funnel-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.crm-funnel-label {
  font-weight: 600;
  color: var(--text-strong);
}

.crm-funnel-bar-wrap {
  height: 10px;
  background: rgba(90, 150, 105, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.crm-funnel-bar {
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, #3d9b52, #5cb86a);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.crm-funnel-count {
  font-weight: 800;
  min-width: 1.5rem;
  text-align: right;
}

.crm-funnel-conv,
.crm-funnel-avg {
  grid-column: 2 / -1;
  font-size: 11px;
  color: var(--muted);
  margin-left: 98px;
}

.crm-funnel-bottlenecks {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(194, 65, 12, 0.25);
}

.crm-funnel-bn-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c2410c;
}

.crm-funnel-bn-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 13px;
  color: var(--muted);
}

.crm-card.is-sla-overdue {
  border-color: rgba(194, 65, 12, 0.45);
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.12);
}

.crm-pill--sla {
  background: #fff7ed;
  color: #c2410c;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.crm-chip-mini--warn {
  color: #c2410c;
  border-color: rgba(194, 65, 12, 0.3);
}

/* Thẻ thống kê */
.crm-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .crm-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .crm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .crm-stats {
    grid-template-columns: 1fr;
  }
}

.crm-stat-card {
  background: var(--surface);
  border: 1px solid rgba(90, 150, 105, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
}

.crm-stat-card--active {
  border-color: rgba(57, 139, 67, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f6faf7 100%);
}

.crm-stat-card--warn {
  border-color: rgba(194, 65, 12, 0.2);
  background: linear-gradient(180deg, #fffefb 0%, #fff7ed 100%);
}

.crm-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.crm-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  line-height: 1.1;
}

.crm-stat-card--warn .crm-stat-value {
  color: #c2410c;
}

/* Thanh công cụ */
.crm-toolbar {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(90, 150, 105, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-xs);
}

.crm-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.crm-search-wrap {
  flex: 1;
  min-width: min(100%, 280px);
  position: relative;
  display: block;
}

.crm-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.crm-search-wrap input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border-radius: 999px;
  border: 1px solid #d5dee8;
  font-size: 14px;
  background: #fafbfd;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.crm-search-wrap input:hover {
  border-color: #c5d0de;
}

.crm-search-wrap input:focus {
  outline: none;
  border-color: rgba(57, 139, 67, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.12);
}

.crm-filter-hint {
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
}

.crm-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crm-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 4px;
}

.crm-chip {
  margin: 0;
  appearance: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--btn-secondary-border);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  color: var(--btn-secondary-color);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: var(--btn-min-h-compact);
  padding: 10px 22px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition:
    background 0.2s var(--btn-ease),
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.crm-chip:hover {
  border-color: rgba(57, 139, 67, 0.35);
  color: var(--primary-700);
  background: #fff;
  box-shadow: 0 2px 8px rgba(47, 114, 56, 0.08);
}

.crm-chip:focus-visible {
  outline: 2px solid var(--btn-primary-ring);
  outline-offset: 2px;
}

.crm-chip.is-active {
  background: linear-gradient(
    165deg,
    rgba(77, 180, 87, 0.14) 0%,
    rgba(57, 139, 67, 0.12) 50%,
    rgba(140, 198, 63, 0.08) 100%
  );
  border-color: rgba(57, 139, 67, 0.38);
  color: var(--primary-700);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 3px rgba(47, 114, 56, 0.1);
}

.crm-board-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px 12px;
  -webkit-overflow-scrolling: touch;
}

.crm-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(200px, 1fr));
  gap: 14px;
  align-items: start;
  min-width: min(100%, 1500px);
}

@media (max-width: 1100px) {
  .crm-board {
    grid-template-columns: repeat(7, minmax(180px, 1fr));
  }
}

/* Cột Kanban — viền màu theo giai đoạn */
.crm-col {
  --col-accent: rgba(57, 139, 67, 0.55);
  background: var(--surface);
  border: 1px solid rgba(90, 150, 105, 0.14);
  border-radius: var(--radius-md);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid var(--col-accent);
}

.crm-col--tiep_nhan {
  --col-accent: #3b82f6;
}

.crm-col--dang_xu_ly {
  --col-accent: #398b43;
}

.crm-col--cho_khach {
  --col-accent: #d97706;
}

.crm-col--da_giai_quyet {
  --col-accent: #0d9488;
}

.crm-col--dong {
  --col-accent: #64748b;
}

.crm-col--pipe-moi { --col-accent: #6366f1; }
.crm-col--pipe-dang_lien_he { --col-accent: #0ea5e9; }
.crm-col--pipe-mql { --col-accent: #14b8a6; }
.crm-col--pipe-sql { --col-accent: #22c55e; }
.crm-col--pipe-bao_gia { --col-accent: #eab308; }
.crm-col--pipe-chot { --col-accent: #16a34a; }
.crm-col--pipe-mat { --col-accent: #94a3b8; }

.crm-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(90, 150, 105, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
}

.crm-col-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.crm-col-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--success-soft);
  padding: 3px 10px;
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
}

.crm-col-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.crm-col-body.is-drag-over {
  background: rgba(140, 198, 63, 0.1);
  box-shadow: inset 0 0 0 2px rgba(57, 139, 67, 0.35);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.crm-col-empty {
  margin: 0;
  padding: 16px 10px;
  font-size: 12px;
  text-align: center;
  line-height: 1.45;
  border: 1px dashed #d5dee8;
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.6);
}

/* Thẻ */
.crm-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 11px 12px 12px;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.crm-card:active {
  cursor: grabbing;
}

.crm-card:hover {
  border-color: rgba(57, 139, 67, 0.38);
  box-shadow: 0 8px 22px rgba(14, 36, 82, 0.08);
  transform: translateY(-1px);
}

.crm-card.is-high {
  border-left: 3px solid #ea580c;
}

.crm-card.is-low {
  border-left: 3px solid #94a3b8;
}

.crm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.crm-card-id {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.crm-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}

.crm-pill--priority {
  background: #f1f5f9;
  color: #475569;
}

.crm-pill--p-cao {
  background: #fff7ed;
  color: #c2410c;
}

.crm-pill--p-thap {
  background: #f8fafc;
  color: #64748b;
}

.crm-pill--p-binh_thuong {
  background: #ecfdf5;
  color: #047857;
}

.crm-card-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-strong);
}

.crm-card-cust {
  margin: 0;
  font-size: 13px;
  color: #3d4d6e;
}

.crm-card-cust-name {
  font-weight: 600;
}

.crm-card-desc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crm-card-desc--empty {
  font-style: italic;
  opacity: 0.75;
}

.crm-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.crm-chip-mini {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-chip-mini--assign {
  background: #ecfdf5;
  color: #166534;
}

.crm-pill--care {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
}

.crm-pill--care-warn {
  background: #fef3c7;
  color: #b45309;
  font-size: 10px;
}

.crm-customers-panel {
  margin-bottom: 1.25rem;
}

.crm-customers-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.crm-customers-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.crm-customers-sub {
  margin: 0;
  font-size: 0.875rem;
}

.crm-customers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.crm-customers-table-wrap {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
}

.crm-customers-table tbody tr {
  cursor: pointer;
}

.crm-customers-table tbody tr:hover {
  background: rgba(57, 139, 67, 0.04);
}

.crm-customers-table tbody tr.is-sla-overdue {
  background: rgba(254, 243, 199, 0.35);
}

.crm-customers-col-name {
  min-width: 10rem;
}

.crm-customers-name {
  display: block;
  font-weight: 600;
  color: #13233f;
}

.crm-customers-company {
  display: block;
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.crm-customers-contact-line {
  display: block;
  font-size: 0.875rem;
  line-height: 1.35;
}

.crm-customers-title {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.crm-customers-col-updated {
  white-space: nowrap;
  font-size: 0.82rem;
  color: #66758f;
}

.crm-customers-stage {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.crm-customers-care-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}

.crm-customers-care-meta {
  font-size: 0.75rem;
  color: #66758f;
}

.crm-care-status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  line-height: 1.25;
  white-space: nowrap;
}

.crm-care-status-pill.is-ok {
  background: #dcfce7;
  color: #166534;
}

.crm-care-status-pill.is-pending {
  background: #fef3c7;
  color: #b45309;
}

.crm-care-status-pill.is-bad {
  background: #fee2e2;
  color: #b91c1c;
}

.crm-care-status-pill.is-escalate {
  background: #fce7f3;
  color: #be185d;
}

.crm-care-status-pill.is-done {
  background: #e2e8f0;
  color: #475569;
}

.crm-care-status-pill.is-none {
  background: #fff7ed;
  color: #c2410c;
  border: 1px dashed rgba(234, 88, 12, 0.35);
}

.crm-care-status-pill.is-neutral {
  background: #e0f2fe;
  color: #0369a1;
}

.crm-customers-panel--staff .crm-customers-col-assign {
  display: none;
}

/* —— Trang Khách hàng CRM (master-detail v2) —— */
.crm-customers-page .admin-main {
  max-width: none;
}

.crm-customers-app {
  --cu-radius: 12px;
  --cu-border: #e2e8f0;
  --cu-bg-soft: #f8fafc;
  --cu-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.crm-cu-shell {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-height: calc(100vh - 11rem);
}

.crm-cu-list-pane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: calc(100vh - 9.5rem);
  overflow: hidden;
  padding: 1rem;
  box-shadow: var(--cu-shadow);
  border: 1px solid var(--cu-border);
}

.crm-cu-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.crm-cu-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--cu-radius);
  background: var(--cu-bg-soft);
  border: 1px solid var(--cu-border);
  transition: transform 0.15s, box-shadow 0.15s;
}

.crm-cu-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.crm-cu-stat-icon {
  display: flex;
  color: #94a3b8;
  margin-bottom: 0.1rem;
}

.crm-cu-stat-card--active {
  background: linear-gradient(135deg, rgba(57, 139, 67, 0.08), rgba(47, 114, 56, 0.04));
  border-color: rgba(57, 139, 67, 0.25);
}

.crm-cu-stat-card--active .crm-cu-stat-icon {
  color: var(--primary-600, #398b43);
}

.crm-cu-stat-card--warn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.04));
  border-color: rgba(245, 158, 11, 0.3);
}

.crm-cu-stat-card--warn .crm-cu-stat-icon {
  color: #d97706;
}

.crm-cu-stat-pill-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.crm-cu-stat-card--active .crm-cu-stat-pill-val {
  color: var(--primary-700, #2f7238);
}

.crm-cu-stat-card--warn .crm-cu-stat-pill-val {
  color: #b45309;
}

.crm-cu-stat-pill-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crm-cu-list-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.crm-cu-search-wrap input {
  border-radius: 10px;
  background: #fff;
}

.crm-cu-filters {
  display: flex;
  gap: 0.4rem;
}

.crm-cu-filters .crm-chip {
  flex: 1;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.crm-cu-card-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.crm-cu-card {
  position: relative;
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--cu-border);
  border-radius: var(--cu-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.crm-cu-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background 0.18s;
}

.crm-cu-card:hover {
  border-color: rgba(57, 139, 67, 0.4);
  box-shadow: 0 2px 12px rgba(57, 139, 67, 0.08);
  transform: translateY(-1px);
}

.crm-cu-card.is-selected {
  border-color: var(--primary-600, #398b43);
  background: linear-gradient(90deg, rgba(57, 139, 67, 0.07) 0%, #fff 40%);
  box-shadow: 0 0 0 1px rgba(57, 139, 67, 0.15), 0 4px 16px rgba(57, 139, 67, 0.1);
}

.crm-cu-card.is-selected::before {
  background: var(--primary-600, #398b43);
}

.crm-cu-card-avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.crm-cu-card-body {
  flex: 1;
  min-width: 0;
}

.crm-cu-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.crm-cu-card-name {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

.crm-cu-card-time {
  flex-shrink: 0;
  font-size: 0.68rem;
  white-space: nowrap;
}

.crm-cu-card-company {
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
}

.crm-cu-card-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.crm-cu-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #475569;
  background: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-cu-card-chip svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.crm-cu-card-no-contact {
  font-size: 0.75rem;
}

.crm-cu-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.crm-cu-card-cases {
  font-size: 0.68rem;
  font-weight: 600;
}

.crm-cu-card--skeleton {
  pointer-events: none;
  border-color: #f1f5f9;
}

.crm-cu-skeleton-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.crm-cu-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: crm-cu-shimmer 1.2s infinite;
  border-radius: 6px;
}

.crm-cu-skeleton--avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.crm-cu-skeleton--line {
  height: 0.65rem;
}

.crm-cu-skeleton--w70 { width: 70%; }
.crm-cu-skeleton--w50 { width: 50%; }
.crm-cu-skeleton--w90 { width: 90%; }

@keyframes crm-cu-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.crm-cu-list-empty {
  text-align: center;
  padding: 2rem 0.75rem;
}

.crm-cu-detail-pane {
  position: relative;
  min-height: 520px;
}

.crm-cu-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  min-height: 520px;
  box-shadow: var(--cu-shadow);
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.crm-cu-detail-empty-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-600, #398b43);
}

.crm-cu-empty-orbit {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(57, 139, 67, 0.25);
  border-radius: 50%;
  animation: crm-cu-spin 24s linear infinite;
}

@keyframes crm-cu-spin {
  to { transform: rotate(360deg); }
}

.crm-cu-detail-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #1e293b;
}

.crm-cu-empty-tips {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  max-width: 22rem;
}

.crm-cu-empty-tips li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.crm-cu-empty-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-600, #398b43);
}

.crm-cu-detail-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 9.5rem);
  box-shadow: var(--cu-shadow);
  border: 1px solid var(--cu-border);
}

.crm-cu-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--cu-border);
  background: linear-gradient(135deg, rgba(57, 139, 67, 0.06) 0%, rgba(57, 139, 67, 0.02) 50%, #fff 100%);
}

.crm-cu-hero-main {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  min-width: 0;
}

.crm-cu-avatar {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15), 0 0 0 3px #fff;
  outline: 3px solid rgba(255, 255, 255, 0.8);
}

.crm-cu-hero-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-600, #398b43);
}

.crm-cu-hero-text h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.crm-cu-hero-meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.crm-cu-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.crm-cu-hero-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.crm-cu-hero-badge--stage {
  background: rgba(57, 139, 67, 0.12);
  color: var(--primary-700, #2f7238);
}

.crm-cu-hero-badge--warn {
  background: #fef3c7;
  color: #b45309;
}

.crm-cu-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.crm-cu-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--cu-border);
  background: #fff;
  color: var(--primary-700, #2f7238);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.crm-cu-quick-btn:hover {
  background: rgba(57, 139, 67, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(57, 139, 67, 0.15);
}

.crm-cu-detail-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--cu-border);
  border-radius: 10px;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: none;
}

.crm-cu-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--cu-border);
  background: var(--cu-bg-soft);
}

.crm-cu-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--cu-border);
  transition: transform 0.15s;
}

.crm-cu-metric:hover {
  transform: translateY(-1px);
}

.crm-cu-metric-icon {
  display: flex;
  color: #94a3b8;
  margin-bottom: 0.1rem;
}

.crm-cu-metric-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.crm-cu-metric-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.crm-cu-metric--warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: #fffbeb;
}

.crm-cu-metric--warn .crm-cu-metric-icon,
.crm-cu-metric--warn .crm-cu-metric-val {
  color: #b45309;
}

.crm-cu-detail-body {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.crm-cu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 0.6rem;
  border-right: 1px solid var(--cu-border);
  background: #fafbfc;
  overflow-y: auto;
}

.crm-cu-nav-group {
  margin: 0.65rem 0 0.25rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.crm-cu-nav-group:first-child {
  margin-top: 0;
}

.crm-cu-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}

.crm-cu-nav-icon {
  display: flex;
  flex-shrink: 0;
  opacity: 0.65;
}

.crm-cu-nav-label {
  flex: 1;
}

.crm-cu-nav-item:hover {
  background: rgba(57, 139, 67, 0.07);
  color: #334155;
}

.crm-cu-nav-item:hover .crm-cu-nav-icon {
  opacity: 1;
}

.crm-cu-nav-item.is-active {
  background: #fff;
  color: var(--primary-700, #2f7238);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
}

.crm-cu-nav-item.is-active .crm-cu-nav-icon {
  opacity: 1;
  color: var(--primary-600, #398b43);
}

.crm-cu-nav-badge {
  flex-shrink: 0;
  min-width: 1.2rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  text-align: center;
}

.crm-cu-nav-badge--warn {
  background: #fef3c7;
  color: #b45309;
}

.crm-cu-content {
  overflow-y: auto;
  padding: 1.1rem 1.35rem 1.75rem;
  background: #fff;
}

.crm-cu-tab-panel[hidden] {
  display: none;
}

.crm-cu-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.crm-cu-contact-card {
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--cu-border);
  border-radius: var(--cu-radius);
  background: var(--cu-bg-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.crm-cu-contact-card:not(.is-empty):hover {
  border-color: rgba(57, 139, 67, 0.35);
  box-shadow: 0 2px 8px rgba(57, 139, 67, 0.08);
}

.crm-cu-contact-card.is-empty {
  opacity: 0.65;
}

.crm-cu-contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0.1rem;
  color: var(--primary-600, #398b43);
}

.crm-cu-contact-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.crm-cu-contact-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.crm-cu-contact-val {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  word-break: break-word;
}

a.crm-cu-contact-val:hover {
  color: var(--primary-700, #2f7238);
  text-decoration: underline;
}

.crm-cu-contact-val--empty {
  color: #94a3b8;
  font-weight: 400;
}

.crm-cu-form-card {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--cu-border);
  border-radius: var(--cu-radius);
  background: #fff;
}

.crm-cu-form-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.crm-cu-form-section {
  margin-bottom: 1.25rem;
}

.crm-cu-form-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cu-border);
}

.crm-cu-sticky-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, #fff 20%);
  padding-bottom: 0.25rem;
  z-index: 2;
}

.crm-cu-collapsible {
  margin-bottom: 1rem;
  border: 1px solid var(--cu-border);
  border-radius: var(--cu-radius);
  overflow: hidden;
  background: #fff;
}

.crm-cu-collapsible-summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  background: var(--cu-bg-soft);
  list-style: none;
  color: var(--primary-700, #2f7238);
}

.crm-cu-collapsible-summary::-webkit-details-marker {
  display: none;
}

.crm-cu-collapsible .crm-cu-inline-form {
  padding: 0 1rem 1rem;
  border: 0;
  background: transparent;
}

.crm-cu-empty-hint {
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: var(--cu-radius);
  background: var(--cu-bg-soft);
  color: #64748b;
}

.crm-cu-btn-icon {
  font-size: 1.1rem;
  margin-right: 0.15rem;
}

.crm-cu-create-modal {
  max-width: 32rem;
}

.crm-cu-create-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}

.crm-cu-issue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
}

.crm-cu-case-card,
.crm-cu-contract-card {
  margin-bottom: 0.75rem;
}

.crm-cu-case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.crm-cu-case-head h3 {
  margin: 0;
  font-size: 1rem;
}

.crm-cu-case-actions {
  margin-top: 0.65rem;
}

.crm-cu-care-form {
  margin-bottom: 1.25rem;
}

.crm-cu-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.crm-cu-care-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crm-cu-care-item {
  position: relative;
  padding: 0 0 1rem 1.25rem;
  border-left: 2px solid var(--cu-border, #e2e8f0);
  margin-left: 0.35rem;
}

.crm-cu-care-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.crm-cu-care-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-600, #398b43);
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.15);
}

.crm-cu-care-item time {
  font-size: 0.75rem;
  color: #64748b;
}

.crm-cu-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crm-cu-source-list li {
  padding: 0.35rem 0;
  font-size: 0.875rem;
}

.crm-cu-source-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 600;
}

.crm-cu-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.crm-cu-relation-card,
.crm-cu-purchase-card,
.crm-cu-issue-card {
  margin-bottom: 0.65rem;
  border: 1px solid var(--cu-border);
  border-radius: var(--cu-radius);
  transition: box-shadow 0.15s;
}

.crm-cu-relation-card:hover,
.crm-cu-purchase-card:hover,
.crm-cu-issue-card:hover {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.crm-cu-relation-head,
.crm-cu-purchase-head,
.crm-cu-issue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.crm-cu-inline-form {
  margin-top: 0.75rem;
}

.crm-cu-inline-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.crm-cu-issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
  align-items: center;
}

.crm-cu-issue-actions select,
.crm-cu-issue-actions input {
  min-height: 36px;
  font-size: 0.875rem;
}

.crm-cu-mobile-drawer {
  display: none;
}

@media (max-width: 960px) {
  .crm-cu-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .crm-cu-list-pane {
    max-height: none;
    border-radius: var(--cu-radius);
  }

  .crm-cu-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .crm-cu-detail-pane {
    display: none;
  }

  .crm-cu-detail-pane.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    padding: 0;
  }

  .crm-cu-detail-pane.is-open .crm-cu-detail-empty {
    display: none;
  }

  .crm-cu-detail-pane.is-open .crm-cu-detail-panel {
    position: absolute;
    inset: 0;
    max-height: none;
    border-radius: 0;
    overflow-y: auto;
    background: #fff;
  }

  .crm-cu-detail-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .crm-cu-detail-body {
    grid-template-columns: 1fr;
  }

  .crm-cu-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--cu-border);
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .crm-cu-nav-group {
    display: none;
  }

  .crm-cu-nav-item {
    flex-shrink: 0;
    width: auto;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
  }

  .crm-cu-nav-icon {
    margin: 0 auto;
  }

  .crm-cu-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .crm-cu-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .crm-cu-hero {
    flex-direction: column;
    padding: 1rem;
  }

  .crm-cu-hero-actions {
    align-self: stretch;
    justify-content: flex-end;
  }
}

/* —— CRM Kinh doanh —— */
.crm-sales-page .admin-main {
  max-width: none;
}

.crm-sales-hero .crm-hero-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.crm-sales-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.crm-sales-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.crm-sales-kpi-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.crm-sales-kpi strong {
  font-size: 1.2rem;
  color: #0f172a;
}

.crm-sales-kpi--plan {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  border-color: rgba(37, 99, 235, 0.25);
}

.crm-sales-kpi--plan strong {
  color: #1d4ed8;
}

.crm-sales-plan-hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.crm-sales-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  margin: 1rem 0;
}

.crm-sales-tab {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.crm-sales-tab.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.crm-sales-pane[hidden] {
  display: none;
}

.crm-sales-pane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.crm-sales-card {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.crm-sales-card--wide {
  grid-column: 1 / -1;
}

.crm-sales-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.crm-sales-funnel-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}

.crm-sales-funnel-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.crm-sales-funnel-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
}

.crm-sales-bottleneck-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.crm-sales-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.crm-sales-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.crm-sales-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.crm-sales-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.crm-sales-item {
  padding: 0.85rem 1rem;
}

.crm-sales-item.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.crm-sales-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.crm-sales-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.crm-sales-partner-card {
  padding: 1rem;
}

.crm-sales-funnel-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.crm-sales-stage-bar {
  position: relative;
  height: 1.75rem;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
}

.crm-sales-stage-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0.15));
}

.crm-sales-stage-lbl {
  position: relative;
  z-index: 1;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.crm-sales-filter-label {
  font-size: 0.82rem;
}

.crm-sales-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.crm-sales-report-card {
  padding: 0.85rem;
  text-align: center;
}

.crm-sales-report-card span {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.crm-sales-report-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
}

.crm-sales-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.crm-sales-search {
  margin-bottom: 0.75rem;
}

.crm-sales-modal-panel {
  max-width: 36rem;
}

@media (max-width: 900px) {
  .crm-sales-split {
    grid-template-columns: 1fr;
  }
}

.crm-app--staff-portal .crm-staff-workspace-controls {
  display: none !important;
}

.crm-app .crm-staff-workspace {
  margin-bottom: 20px;
  gap: 16px;
}

.crm-staff-workspace-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.crm-staff-workspace-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.crm-staff-workspace-sub {
  margin: 0;
  font-size: 0.92rem;
}

.crm-staff-workspace-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
}

.crm-staff-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
}

.crm-staff-pick select {
  min-width: 14rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.crm-view-mode {
  display: flex;
  gap: 6px;
}

.crm-staff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.crm-staff-workspace-hint {
  margin: 0;
  font-size: 0.88rem;
}

.crm-care-report-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.crm-care-report-form textarea,
.crm-care-report-form input,
.crm-care-report-form select {
  width: 100%;
}

.crm-panel-title--spaced {
  margin-top: 8px;
}

.crm-ev-care .crm-ev-dot {
  background: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.crm-ev-next {
  font-size: 0.88rem;
  margin-top: 4px;
}

.crm-staff-topbar {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.crm-staff-topbar .crm-staff-logout {
  display: inline-flex;
  margin: 0;
}

.crm-staff-home-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 960px) {
  .crm-staff-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.crm-staff-home-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
}

.crm-staff-home-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.crm-staff-home-kpi-stats,
.crm-staff-home-lead-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.crm-staff-home-stat {
  font-size: 0.875rem;
  color: #475569;
}

.crm-staff-home-stat.is-ok strong {
  color: #15803d;
}

.crm-staff-home-stat.is-warn strong {
  color: #b45309;
}

.crm-staff-home-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crm-staff-home-list-item {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.crm-staff-home-list-item.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.crm-staff-home-list-item.is-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.crm-staff-home-list-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.crm-staff-home-list-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.crm-staff-home-list-meta {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.crm-staff-home-report-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.crm-staff-home-report-ok {
  color: #15803d;
  margin: 0;
}

.crm-staff-home-report-missing {
  color: #b45309;
  margin: 0;
}

.crm-staff-home-report-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.crm-staff-home-quick {
  margin-bottom: 1.5rem;
}

.crm-staff-home-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.crm-staff-home-quick-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.875rem;
}

.crm-staff-home-quick-link:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.crm-app--staff-portal .crm-detail-form label:has(#crm-detail-assigned) {
  display: none;
}

.crm-hint {
  margin-top: 22px;
  font-size: 13px;
}

.crm-load-fail {
  padding: 20px;
  text-align: center;
}

/* Modal */
.crm-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 32px;
  overflow-y: auto;
}

.crm-modal-root[hidden] {
  display: none;
}

.crm-modal-root.is-open .crm-modal-backdrop {
  opacity: 1;
}

.crm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.crm-modal-root.is-open .crm-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.crm-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin-top: 4vh;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  border: 1px solid #e2e8f0;
  padding: 0 0 18px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.crm-modal-wide {
  width: min(960px, 100%);
}

.crm-modal-panel--detail {
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.crm-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e8edf5;
  flex-shrink: 0;
}

.crm-modal-head--detail {
  align-items: flex-start;
}

.crm-modal-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.crm-modal-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 42ch;
}

.crm-modal-head h2 {
  margin: 0;
  font-size: 1.28rem;
  font-family: "Noto Serif", Georgia, serif;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.crm-detail-head-main {
  min-width: 0;
}

.crm-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.crm-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.crm-badge--muted {
  background: #f1f5f9;
  color: #475569;
}

.crm-badge--status {
  background: #eff6ff;
  color: #1d4ed8;
}

.crm-badge--channel {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.crm-badge--priority {
  background: #ecfdf5;
  color: #047857;
}

.crm-badge--p-cao {
  background: #fff7ed;
  color: #c2410c;
}

.crm-badge--p-thap {
  background: #f8fafc;
  color: #64748b;
}

.crm-badge--p-binh_thuong {
  background: #ecfdf5;
  color: #047857;
}

.crm-modal-close {
  border: none;
  background: #f1f5f9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 10px;
  flex-shrink: 0;
}

.crm-modal-close:hover {
  background: var(--danger-soft);
  color: #991b1b;
}

.crm-detail-loading {
  padding: 28px 20px;
  color: var(--muted);
}

.crm-detail-loading-text {
  margin: 12px 0 0;
  font-size: 14px;
  text-align: center;
}

.crm-detail-load-msg {
  margin: 0;
  padding: 8px 0;
  color: #b91c1c;
  font-weight: 600;
}

.crm-skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e8eef5 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: crm-shimmer 1.1s ease-in-out infinite;
}

.crm-skeleton-line {
  height: 14px;
  margin-bottom: 10px;
}

.crm-skeleton-line--short {
  width: 55%;
}

@keyframes crm-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crm-skeleton {
    animation: none;
  }

  .crm-modal-panel,
  .crm-modal-backdrop {
    transition: none;
  }

  .crm-modal-root.is-open .crm-modal-panel {
    transform: none;
    opacity: 1;
  }
}

.crm-detail-body-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.crm-detail-form,
.crm-fieldset {
  padding: 0;
  margin: 0;
  border: none;
}

.crm-modal-panel .crm-detail-form,
.crm-modal-panel .crm-fieldset {
  padding: 0 20px;
}

.crm-modal-panel--create .crm-detail-form {
  padding-top: 4px;
  padding-bottom: 0;
}

.crm-modal-footer--create {
  margin-top: 8px;
  padding: 16px 0 0;
  border-top: 1px solid #e8edf5;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, #fafbfc 100%);
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 4px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.crm-modal-actions--create {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
  padding: 0;
}

@media (max-width: 480px) {
  .crm-modal-actions--create {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .crm-btn-cancel,
  .crm-btn-submit-create {
    width: 100%;
    justify-content: center;
  }
}

.crm-btn-cancel {
  margin: 0;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) calc(var(--btn-pad-x) - 4px);
  font-family: inherit;
  font-size: var(--btn-fs);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--btn-secondary-color);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--btn-secondary-border);
  border-radius: var(--btn-radius);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    color 0.18s var(--btn-ease),
    background 0.18s var(--btn-ease),
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s var(--btn-ease);
}

.crm-btn-cancel:hover {
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, var(--btn-secondary-bg-hover) 100%);
  border-color: rgba(57, 139, 67, 0.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 2px 8px rgba(15, 23, 42, 0.06);
  transform: translateY(-0.5px);
}

.crm-btn-cancel:focus-visible {
  outline: 2px solid var(--btn-primary-ring);
  outline-offset: 3px;
}

.crm-btn-cancel:active {
  transform: translateY(0);
  background: #eef5f0;
}

.crm-btn-submit-create {
  margin: 0;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-h);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: inherit;
  font-size: var(--btn-fs);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  border: 1px solid var(--btn-primary-border);
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  background: linear-gradient(
    165deg,
    var(--btn-primary-top) 0%,
    var(--btn-primary-mid) 42%,
    var(--btn-primary-bottom) 100%
  );
  box-shadow: var(--btn-primary-shadow);
  transition:
    filter 0.18s ease,
    box-shadow 0.2s var(--btn-ease),
    transform 0.2s var(--btn-ease),
    border-color 0.18s ease;
}

.crm-btn-submit-create:hover {
  filter: brightness(1.02);
  border-color: rgba(21, 65, 28, 0.42);
  box-shadow: var(--btn-primary-shadow-hover);
  transform: translateY(-1px);
}

.crm-btn-submit-create:focus-visible {
  outline: 2px solid var(--btn-primary-ring);
  outline-offset: 3px;
}

.crm-btn-submit-create:active {
  transform: translateY(0);
  filter: brightness(0.99);
}

.crm-create-msg {
  margin: 14px 20px 0;
}

@media (max-width: 480px) {
  .crm-create-msg {
    margin-left: 0;
    margin-right: 0;
  }
}

.crm-fieldset {
  margin-top: 16px;
}

.crm-fieldset legend {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-strong);
  padding: 0 0 10px;
  letter-spacing: 0.02em;
}

.crm-fieldset--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.crm-field-span2 {
  grid-column: 1 / -1;
}

@media (max-width: 540px) {
  .crm-fieldset--grid {
    grid-template-columns: 1fr;
  }
}

.crm-detail-form label,
.crm-fieldset label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #465266;
  margin-bottom: 6px;
}

.crm-detail-form input,
.crm-detail-form textarea,
.crm-detail-form select,
.crm-fieldset input,
.crm-fieldset textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  font-size: 14px;
  background: #fafbfd;
}

.crm-detail-form input:focus,
.crm-detail-form textarea:focus,
.crm-detail-form select:focus,
.crm-fieldset input:focus,
.crm-fieldset textarea:focus {
  outline: none;
  border-color: rgba(57, 139, 67, 0.5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.1);
}

.crm-detail-form textarea,
.crm-fieldset textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.crm-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
}

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

@media (max-width: 520px) {
  .crm-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.crm-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
  padding-right: 0;
}

.crm-form-msg.is-error {
  margin: 12px 20px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--danger-soft);
  border: 1px solid #f0c4c0;
  color: #611a15;
}

.crm-form-msg.is-success {
  margin: 12px 20px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--success-soft);
  border: 1px solid #b8dcb8;
  color: #1e4620;
}

.crm-detail-grid {
  display: grid;
  gap: 0 24px;
  grid-template-columns: 1fr 1fr;
  padding: 10px 20px 22px;
}

@media (max-width: 860px) {
  .crm-detail-grid {
    grid-template-columns: 1fr;
  }
}

.crm-panel {
  margin-bottom: 20px;
}

.crm-panel-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.crm-panel--customer {
  margin-bottom: 8px;
}

.crm-customer-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fafc, #fff);
  border: 1px solid #e8edf5;
  border-radius: var(--radius-md);
}

.crm-customer-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--primary-700);
  background: linear-gradient(145deg, rgba(57, 139, 67, 0.15), rgba(140, 198, 63, 0.12));
  border: 1px solid rgba(57, 139, 67, 0.2);
}

.crm-kv {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.crm-kv li {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #e5eaf3;
}

.crm-kv li:last-child {
  border-bottom: none;
}

.crm-k {
  flex: 0 0 56px;
  font-size: 12px;
  color: var(--muted);
}

.crm-v {
  color: var(--text);
  word-break: break-word;
  font-weight: 500;
}

.crm-timeline-wrap {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

@media (min-width: 861px) {
  .crm-timeline-wrap {
    padding-left: 20px;
    margin-left: 0;
    border-left: 1px solid #e8edf5;
  }
}

@media (max-width: 860px) {
  .crm-timeline-wrap {
    border-top: 1px solid #e8edf5;
    padding-top: 18px;
  }
}

.crm-timeline-intro {
  margin: -4px 0 14px;
  font-size: 13px;
  line-height: 1.45;
}

.crm-timeline {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  position: relative;
}

.crm-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(57, 139, 67, 0.35), #e2e8f0);
  border-radius: 1px;
}

.crm-ev {
  position: relative;
  padding: 0 0 18px 28px;
  border-bottom: none;
}

.crm-ev-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(57, 139, 67, 0.5);
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.08);
}

.crm-ev-status .crm-ev-dot {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.crm-ev-assignment .crm-ev-dot {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.crm-ev-body {
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #eef2f7;
}

.crm-ev-status .crm-ev-body {
  background: #ecfdf5;
  border-color: rgba(13, 148, 136, 0.2);
}

.crm-ev-assignment .crm-ev-body {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.25);
}

.crm-timeline time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.crm-ev-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.crm-ev-status .crm-ev-body p {
  color: var(--primary-700);
  font-weight: 600;
}

.crm-ev-assignment .crm-ev-body p {
  color: #3730a3;
  font-weight: 600;
}

.crm-ev-muted {
  color: var(--muted);
  font-size: 14px;
}

.crm-ev-empty {
  padding: 12px 0 18px 4px;
  border: none;
}

.crm-note-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #465266;
  margin-bottom: 8px;
}

.crm-note-form textarea {
  margin-bottom: 10px;
  font-family: inherit;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  font-size: 14px;
  background: #fafbfd;
}

.crm-note-form textarea:focus {
  outline: none;
  border-color: rgba(57, 139, 67, 0.5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.1);
}

/* Trang quản lý nhân viên CRM */
.crm-staff-page .crm-staff-add-panel h2,
.crm-staff-page .crm-staff-list-panel h2 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--text-strong);
}

.crm-staff-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 14px;
  margin-bottom: 14px;
}

.crm-staff-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #465266;
  margin-bottom: 6px;
}

.crm-staff-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  font-size: 14px;
}

.crm-staff-msg {
  margin-top: 10px;
  font-size: 14px;
}

.crm-staff-msg.is-error {
  color: #b91c1c;
  font-weight: 600;
}

.crm-staff-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.crm-staff-table-wrap {
  overflow-x: auto;
}

.crm-staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.crm-staff-table th,
.crm-staff-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf5;
  vertical-align: top;
}

.crm-staff-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.crm-staff-actions {
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.crm-staff-row-action-btn.btn-secondary {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  min-height: 0;
  line-height: 1.25;
  border-radius: 8px;
  letter-spacing: -0.01em;
}

.crm-staff-table--compact .crm-staff-col-title-head,
.crm-staff-table--compact .crm-staff-col-title {
  min-width: 12rem;
}

.crm-staff-table--main .crm-staff-col-name-head,
.crm-staff-table--main .crm-staff-col-name {
  min-width: 15rem;
}

@media (min-width: 1100px) {
  .crm-staff-table--main .crm-staff-col-name-head,
  .crm-staff-table--main .crm-staff-col-name {
    min-width: 18rem;
  }
}

.crm-staff-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.crm-staff-pill.is-on {
  background: var(--success-soft);
  color: var(--primary-700);
}

.crm-staff-pill.is-off {
  background: #f1f5f9;
  color: #64748b;
}

.crm-staff-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin: 8px 0 12px;
}

.crm-staff-checkbox input {
  width: auto;
  margin: 0;
}

.crm-toolbar-row .crm-staff-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  min-height: var(--btn-min-h-compact);
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .crm-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-toolbar-row .crm-staff-link {
    justify-content: center;
  }
}

.crm-staff-page .crm-staff-stats {
  margin-bottom: 0;
}

.crm-staff-toolbar.panel {
  margin-bottom: 0;
}

.crm-staff-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

.crm-staff-form-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.crm-staff-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 64px;
}

.crm-staff-notes-label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #465266;
}

.crm-staff-td-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #475569;
}

.crm-staff-td-contact {
  font-size: 13px;
  line-height: 1.45;
}

.crm-staff-td-contact a {
  color: #1d4ed8;
  word-break: break-word;
}

.crm-staff-pipeline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
}

.crm-staff-pipeline.has-open {
  background: #ecfdf5;
  color: #047857;
}

.crm-modal-panel--staff-edit {
  width: min(720px, 100%);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.crm-modal-panel--staff-edit .crm-detail-form {
  overflow-y: auto;
  flex: 1;
  padding: 0 20px 20px;
  max-height: min(70vh, 640px);
}

.crm-staff-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

@media (max-width: 520px) {
  .crm-staff-edit-grid {
    grid-template-columns: 1fr;
  }
}

.crm-dept-panel.panel {
  margin-bottom: 18px;
}

.crm-dept-sub {
  margin: 4px 0 0;
  font-size: 13px;
  max-width: 720px;
}

.crm-dept-add-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 14px;
  align-items: end;
  margin-bottom: 10px;
}

.crm-dept-add-form label {
  font-size: 12px;
  font-weight: 600;
  color: #465266;
}

.crm-dept-add-form label input {
  margin-top: 6px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  font-size: 14px;
}

.crm-staff-dept-filter {
  min-width: 220px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid #d5dee8;
  font-size: 14px;
  background: #fafbfd;
}

.crm-staff-page .crm-staff-form select.crm-staff-dept-select,
.crm-staff-page .crm-staff-form select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  font-size: 14px;
  background: #fff;
}

.crm-toolbar-row--export {
  margin-bottom: 0;
  align-items: center;
}

.crm-toolbar-row--export .crm-export-hint {
  margin: 0;
  flex: 1;
  min-width: min(100%, 220px);
  font-size: 12px;
}

.crm-staff-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.crm-staff-page-label {
  font-size: 13px;
}

.crm-staff-per-page select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  font-size: 14px;
  background: #fff;
}

.crm-staff-emp-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

.crm-staff-td-date {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.crm-staff-import-wrap input[type="file"] {
  max-width: min(100%, 240px);
  font-size: 12px;
}

#crm-staff-import-msg:not(.is-error) {
  margin-top: 10px;
  color: #0f766e;
  font-weight: 600;
}

/* —— Quản lý nhân viên: workspace & vùng bước —— */
.crm-staff-workspace {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.crm-staff-page .crm-staff-stats {
  margin-bottom: 0;
}

.crm-staff-zone {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.crm-staff-zone--roster {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crm-staff-zone--reference .crm-staff-catalog-grid {
  margin-bottom: 0;
}

.crm-staff-zone-head {
  display: flex;
  align-items: flex-start;
  gap: 14px 18px;
  padding: 4px 2px 0;
  margin-bottom: 2px;
}

.crm-staff-zone-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-700, #206b2f);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95) 0%, rgba(220, 252, 231, 0.75) 100%);
  border: 1px solid rgba(57, 139, 67, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.crm-staff-zone-head-text {
  min-width: 0;
  flex: 1;
}

.crm-staff-zone-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  line-height: 1.25;
}

.crm-staff-zone-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 48rem;
}

/* CRM workflow playbook — /crm/staff + Bảng CSKH */
.crm-board-playbook {
  margin-top: 28px;
  scroll-margin-top: 88px;
}

.crm-staff-zone--playbook {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.crm-staff-zone-badge--playbook {
  width: auto;
  min-width: 44px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.crm-wf-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 12px;
  margin: 0;
}

.crm-wf-nav-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border, #d8deeb);
  border-radius: var(--radius-md, 12px);
  background: var(--white, #fff);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font: inherit;
  color: inherit;
}

.crm-wf-nav-btn:hover {
  border-color: rgba(57, 139, 67, 0.45);
  background: var(--surface-soft, #f6faf7);
}

.crm-wf-nav-btn.is-active {
  border-color: rgba(57, 139, 67, 0.55);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
  box-shadow: var(--shadow-xs, 0 4px 12px rgba(16, 41, 88, 0.05));
}

.crm-wf-nav-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-700, #2f7238);
  background: rgba(57, 139, 67, 0.12);
}

.crm-wf-nav-label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.crm-wf-panel[hidden] {
  display: none !important;
}

.crm-wf-panel-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.crm-wf-panel-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.crm-wf-summary {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted, #59657d);
}

.crm-wf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.crm-wf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-wf-link-btn {
  font-size: 0.82rem;
  padding: 6px 14px;
}

.crm-wf-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 20px;
  align-items: start;
}

.crm-wf-block-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong, #13233f);
}

.crm-wf-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crm-wf-step {
  padding: 12px 14px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--surface-soft, #f6faf7);
}

.crm-wf-step-title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.crm-wf-step-detail {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.crm-wf-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.crm-wf-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crm-wf-checklist {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.crm-wf-checklist li + li {
  margin-top: 6px;
}

.crm-wf-kpi-table-wrap {
  overflow-x: auto;
}

.crm-wf-kpi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.crm-wf-kpi-table th,
.crm-wf-kpi-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
}

.crm-wf-kpi-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

@media (max-width: 900px) {
  .crm-wf-grid {
    grid-template-columns: 1fr;
  }
  .crm-wf-nav {
    grid-template-columns: 1fr;
  }
}

.crm-wf-block--apply {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(57, 139, 67, 0.25);
}

.crm-wf-mode-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 4px;
}

.crm-wf-mode-btn {
  flex: 1;
  min-width: 160px;
  padding: 10px 16px;
  border: 1px solid var(--border, #d8deeb);
  border-radius: var(--radius-md, 12px);
  background: var(--white, #fff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.crm-wf-mode-btn.is-active {
  border-color: rgba(57, 139, 67, 0.55);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95) 0%, #fff 100%);
  color: var(--primary-700, #2f7238);
}

.crm-wf-mode-pane[hidden] {
  display: none !important;
}

.crm-wf-master {
  margin-bottom: 16px;
}

.crm-wf-master-intro {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.crm-wf-master-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-wf-master-item {
  padding: 14px 16px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--surface-soft, #f6faf7);
}

.crm-wf-master-phase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: #64748b;
}

.crm-wf-master-pillar {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(57, 139, 67, 0.15);
  color: var(--primary-700, #2f7238);
}

.crm-wf-master-step-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.crm-wf-master-cta {
  margin: 14px 0 0;
}

.crm-wf-ingress {
  margin-top: 8px;
}

.crm-wf-channel-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.crm-wf-channel-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border, #d8deeb);
  border-radius: var(--radius-md, 12px);
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.crm-wf-channel-btn.is-active {
  border-color: rgba(57, 139, 67, 0.55);
  background: rgba(236, 253, 245, 0.6);
}

.crm-wf-channel-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.crm-wf-channel-panel[hidden] {
  display: none !important;
}

.crm-wf-channel-head h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.crm-wf-channel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.crm-wf-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.crm-wf-channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.crm-wf-block--script {
  grid-column: 1 / -1;
}

.crm-wf-subtitle {
  margin: 12px 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-strong, #13233f);
}

.crm-wf-subtitle:first-child {
  margin-top: 0;
}

.crm-wf-checklist--ordered {
  list-style: decimal;
  padding-left: 1.25rem;
}

.crm-wf-matrix-wrap {
  overflow-x: auto;
}

.crm-wf-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.crm-wf-matrix-table th,
.crm-wf-matrix-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  vertical-align: top;
  text-align: left;
}

.crm-wf-matrix-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
}

.crm-wf-matrix-table td:first-child {
  white-space: nowrap;
  font-weight: 700;
  width: 72px;
}

.crm-wf-script {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  border-left: 3px solid rgba(57, 139, 67, 0.45);
}

.crm-wf-script--warn {
  border-left-color: rgba(185, 28, 28, 0.45);
  background: rgba(254, 242, 242, 0.5);
}

@media (max-width: 900px) {
  .crm-wf-channel-grid {
    grid-template-columns: 1fr;
  }
}

.crm-staff-toolbar .crm-staff-toolbar-legend {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.crm-staff-toolbar-divider {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin: 0 6px 0 0;
  background: rgba(148, 163, 184, 0.45);
  vertical-align: middle;
}

.crm-staff-toolbar-divider--full {
  display: block;
  width: 100%;
  height: 1px;
  margin: 4px 0 12px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35) 15% 85%, transparent);
}

.crm-toolbar-row--export {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.crm-staff-list-micro {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

@media (max-width: 720px) {
  .crm-staff-zone-head {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-staff-zone-badge {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* —— Quản lý nhân viên: giao diện chuyên nghiệp —— */
.crm-staff-page .crm-staff-hero {
  margin-bottom: 22px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(90, 150, 105, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 252, 248, 0.98) 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 28px rgba(57, 139, 67, 0.06);
  border-bottom: none;
}

.crm-staff-page .crm-staff-hero .crm-hero-desc {
  max-width: 52rem;
  color: #4b5c78;
  line-height: 1.6;
}

.crm-staff-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.crm-staff-section-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.crm-staff-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 920px) {
  .crm-staff-catalog-grid {
    grid-template-columns: 1fr;
  }
}

.crm-staff-zone--levels {
  margin-bottom: 24px;
}

.crm-staff-zone-badge--levels {
  background: linear-gradient(135deg, #6b4fbb 0%, #8b6fd4 100%);
  color: #fff;
}

.crm-staff-levels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .crm-staff-levels-grid {
    grid-template-columns: 1fr;
  }
}

.crm-staff-level-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(90, 150, 105, 0.12);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.crm-staff-level-card.is-s {
  border-top: 3px solid #7c3aed;
}

.crm-staff-level-card.is-a {
  border-top: 3px solid #d97706;
}

.crm-staff-level-card.is-b {
  border-top: 3px solid #2563eb;
}

.crm-staff-level-card.is-c {
  border-top: 3px solid #64748b;
}

.crm-staff-level-card.is-disabled {
  opacity: 0.72;
}

.crm-staff-level-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.crm-staff-level-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.crm-staff-level-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
}

.crm-staff-level-exp {
  margin: 4px 0 0;
  font-size: 13px;
}

.crm-staff-level-cap {
  margin: 0 0 8px;
  font-size: 13px;
}

.crm-staff-level-priority {
  margin: 0 0 10px;
  font-size: 13px;
  font-style: italic;
}

.crm-staff-level-body {
  display: grid;
  gap: 10px;
}

.crm-staff-level-block h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.crm-staff-level-block ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.crm-staff-level-block li + li {
  margin-top: 4px;
}

.crm-staff-level-off {
  margin: 10px 0 0;
  font-size: 12px;
}

.crm-staff-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.crm-staff-level-badge.is-s {
  background: #ede9fe;
  color: #5b21b6;
}

.crm-staff-level-badge.is-a {
  background: #ffedd5;
  color: #c2410c;
}

.crm-staff-level-badge.is-b {
  background: #dbeafe;
  color: #1d4ed8;
}

.crm-staff-level-badge.is-c {
  background: #f1f5f9;
  color: #475569;
}

.crm-staff-level-badge.is-none {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.crm-modal-panel--staff-level {
  max-width: 640px;
}

.crm-modal-panel--competency {
  max-width: 920px;
  max-height: min(92vh, 960px);
  overflow: auto;
}

.crm-staff-competency-tabs {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--border-soft);
}

.crm-staff-competency-tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-subtle);
  cursor: pointer;
}

.crm-staff-competency-tab.is-active {
  background: var(--primary-50);
  border-color: var(--border);
  color: var(--primary-800);
}

.crm-staff-competency-pane {
  padding: 16px 20px;
}

.crm-staff-competency-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.crm-competency-groups {
  display: grid;
  gap: 14px;
}

.crm-competency-group-card {
  border: 1px solid rgba(90, 150, 105, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface-soft);
}

.crm-competency-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.crm-competency-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-staff-competency-editor {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(90, 150, 105, 0.25);
  background: #fff;
}

.crm-staff-competency-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.crm-staff-competency-bands-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
}

.crm-staff-competency-bands-head h4 {
  margin: 0;
  font-size: 13px;
}

.crm-staff-competency-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border-soft);
}

.crm-staff-competency-preview {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(90, 150, 105, 0.12);
  background: var(--surface-soft);
}

.crm-competency-preview-groups {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-size: 13px;
}

.crm-competency-preview-class {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.crm-competency-cls-chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-soft);
  font-size: 12px;
}

.crm-comp-band-label,
.crm-comp-band-min,
.crm-comp-band-max,
.crm-comp-band-points {
  width: 100%;
  min-width: 0;
}

.crm-staff-catalog-grid .crm-dept-panel.panel,
.crm-staff-catalog-grid .crm-position-panel.panel {
  margin-bottom: 0;
}

.crm-staff-section.panel {
  margin-bottom: 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(90, 150, 105, 0.1);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.crm-staff-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.crm-staff-section-intro .crm-dept-sub {
  margin-top: 6px;
  line-height: 1.45;
}

.crm-staff-outline-btn {
  flex-shrink: 0;
  margin: 0;
  min-height: var(--btn-min-h-compact);
  font-weight: 600;
  font-size: var(--btn-fs-compact);
  letter-spacing: -0.01em;
  padding: 11px var(--btn-pad-x-compact);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(57, 139, 67, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  color: var(--primary-700);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition:
    background 0.2s var(--btn-ease),
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.2s var(--btn-ease);
}

.crm-staff-outline-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, var(--btn-secondary-bg-hover) 100%);
  border-color: rgba(57, 139, 67, 0.48);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 2px 8px rgba(47, 114, 56, 0.1);
  transform: translateY(-0.5px);
}

.crm-staff-outline-btn:active {
  transform: translateY(0);
  background: #eef5f0;
}

.crm-staff-outline-btn:focus-visible {
  outline: 2px solid var(--btn-primary-ring);
  outline-offset: 3px;
}

.crm-staff-table-shell {
  border-radius: 12px;
  border: 1px solid #e8edf5;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.crm-staff-table-shell--main {
  border-color: #e2e8f0;
}

.crm-staff-table--compact .crm-staff-table th,
.crm-staff-table--compact .crm-staff-table td {
  padding: 9px 12px;
  font-size: 13px;
}

.crm-staff-table--compact .crm-staff-table th {
  font-size: 11px;
}

.crm-staff-table-shell .crm-staff-table {
  margin: 0;
}

.crm-staff-table-shell .crm-staff-table tbody tr:last-child td {
  border-bottom: none;
}

.crm-staff-table--main thead th {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.crm-staff-table--main tbody tr {
  transition: background 0.12s ease;
}

.crm-staff-table--main tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.55);
}

.crm-staff-table--main tbody tr:hover {
  background: rgba(236, 253, 245, 0.65);
}

.crm-staff-page .crm-staff-stats .crm-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 16px 18px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.crm-staff-page .crm-staff-stats .crm-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, rgba(57, 139, 67, 0.45), rgba(140, 198, 63, 0.35));
  opacity: 0.85;
}

.crm-staff-page .crm-staff-stats .crm-stat-card--active::before {
  background: linear-gradient(180deg, #398b43, #8cc63f);
}

.crm-staff-page .crm-staff-stats .crm-stat-card--warn::before {
  background: linear-gradient(180deg, #ea580c, #fbbf24);
}

.crm-staff-page .crm-staff-stats .crm-stat-label {
  padding-left: 8px;
}

.crm-staff-page .crm-staff-stats .crm-stat-value {
  padding-left: 8px;
}

.crm-staff-toolbar.panel {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(90, 150, 105, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05),
    0 12px 40px rgba(15, 23, 42, 0.04);
}

.crm-toolbar-row--staff-primary {
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.crm-staff-btn-cta {
  margin: 0;
  border: 1px solid var(--btn-primary-border);
  border-radius: var(--btn-radius);
  background: linear-gradient(
    152deg,
    var(--btn-primary-top) 0%,
    var(--btn-primary-mid) 44%,
    var(--btn-primary-bottom) 100%
  );
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  box-shadow: var(--btn-primary-shadow);
  transition:
    transform 0.22s var(--btn-ease),
    filter 0.18s ease,
    box-shadow 0.22s var(--btn-ease),
    border-color 0.18s ease;
}

.crm-staff-btn-cta:hover {
  filter: brightness(1.02);
  border-color: rgba(21, 65, 28, 0.42);
  box-shadow: var(--btn-primary-shadow-hover);
  transform: translateY(-1px);
}

.crm-staff-btn-cta:active {
  transform: translateY(0);
  filter: brightness(0.99);
}

.crm-staff-btn-cta:focus-visible {
  outline: 2px solid var(--btn-primary-ring);
  outline-offset: 3px;
}

.crm-staff-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.crm-search-wrap--flex {
  flex: 1;
  min-width: min(100%, 300px);
}

@media (max-width: 720px) {
  .crm-toolbar-row--staff-primary {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-staff-btn-cta {
    justify-content: center;
    width: 100%;
  }
}

.crm-staff-list-panel.panel {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(90, 150, 105, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.crm-staff-list-head--main {
  margin-bottom: 16px;
  align-items: flex-end;
}

.crm-staff-hint--flush {
  margin: 0 0 16px;
}

.crm-staff-page .crm-staff-list-panel h2,
.crm-staff-page .crm-staff-section-title {
  margin-top: 0;
  font-size: 1.125rem;
  color: var(--text-strong);
}

.crm-filter-chips {
  padding-top: 4px;
}

/* Chấm công & lương — combobox / select */
.crm-combobox {
  position: relative;
  display: block;
  width: 100%;
}

.crm-payroll-page .crm-combobox select,
.crm-payroll-page .crm-combobox input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  min-height: 42px;
  margin-bottom: 0;
  padding: 10px 2.35rem 10px 13px;
  border-radius: 10px;
  border: 1px solid #d5dee8;
  background-color: #fafbfd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25 7 8.75l3.5-3.5' stroke='%2366758f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-strong, #13233f);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.crm-payroll-page .crm-combobox input[type="date"] {
  cursor: text;
  color-scheme: light;
}

.crm-payroll-page .crm-combobox select:hover,
.crm-payroll-page .crm-combobox input[type="date"]:hover {
  border-color: #c5d0de;
  background-color: #fff;
}

.crm-payroll-page .crm-combobox select:focus,
.crm-payroll-page .crm-combobox input[type="date"]:focus {
  outline: none;
  border-color: rgba(57, 139, 67, 0.55);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.12);
}

.crm-payroll-page .crm-combobox select:disabled,
.crm-payroll-page .crm-combobox input[type="date"]:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  background-color: #f1f5f9;
}

.crm-payroll-page .crm-combobox--compact select,
.crm-payroll-page .crm-combobox--compact input[type="date"] {
  min-height: 38px;
  padding: 8px 2.1rem 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  background-position: right 11px center;
}

.crm-payroll-page .crm-combobox--month {
  min-width: 8.5rem;
}

.crm-payroll-page .crm-combobox--date input[type="date"] {
  min-width: 10.5rem;
}

.crm-payroll-page .crm-detail-form .crm-combobox select,
.crm-payroll-page .crm-detail-form .crm-combobox input[type="date"] {
  margin-bottom: 0;
}

.crm-payroll-page .crm-payroll-field .crm-combobox,
.crm-payroll-page .crm-att-filter .crm-combobox {
  margin-top: 2px;
}

.crm-payroll-page .crm-export-period-fields .crm-payroll-field {
  min-width: min(100%, 11rem);
}

.crm-payroll-page .crm-pr-export-staff-wrap .crm-combobox {
  margin-top: 2px;
}

/* Chấm công & lương */
.crm-payroll-page {
  scroll-behavior: smooth;
}

.crm-payroll-page [id^="crm-payroll-"] {
  scroll-margin-top: 80px;
}

.crm-payroll-page .crm-app {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.crm-payroll-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.crm-payroll-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.crm-payroll-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-subtle, #66758f);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.crm-payroll-nav-link:hover {
  color: var(--primary-700, #2f7238);
  background: rgba(255, 255, 255, 0.9);
}

.crm-payroll-nav-link:focus-visible {
  outline: 2px solid rgba(57, 139, 67, 0.45);
  outline-offset: 2px;
}

.crm-payroll-nav-link.is-active {
  color: var(--primary-700, #2f7238);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(57, 139, 67, 0.18);
}

.crm-payroll-period-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crm-period-step {
  min-width: 2.25rem;
  padding-inline: 0.65rem;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.crm-payroll-period-refresh.is-loading .crm-btn-label {
  opacity: 0.55;
}

.crm-payroll-period-refresh.is-loading {
  pointer-events: none;
  position: relative;
}

.crm-payroll-period-refresh.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(57, 139, 67, 0.25);
  border-top-color: var(--primary-700, #2f7238);
  border-radius: 50%;
  animation: crm-spin 0.65s linear infinite;
}

@keyframes crm-spin {
  to {
    transform: rotate(360deg);
  }
}

.crm-table-bar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.crm-table-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle, #66758f);
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.crm-att-mini-stats,
.crm-pr-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-strong, #13233f);
  background: rgba(234, 248, 241, 0.85);
  border: 1px solid rgba(57, 139, 67, 0.16);
}

.crm-stat-pill--warn {
  color: #9a3412;
  background: rgba(255, 247, 237, 0.95);
  border-color: rgba(234, 88, 12, 0.22);
}

.crm-stat-pill--accent {
  color: var(--primary-700, #2f7238);
  background: rgba(234, 248, 241, 0.95);
  border-color: rgba(57, 139, 67, 0.28);
}

.crm-table-bar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  min-width: min(100%, 420px);
}

.crm-table-bar-filters .crm-search-wrap {
  flex: 1 1 180px;
  min-width: min(100%, 200px);
}

.crm-att-table-bar {
  align-items: flex-start;
}

.crm-payroll-period-bar {
  position: sticky;
  top: 8px;
  z-index: 20;
  margin-bottom: 0;
}

.crm-payroll-period-row {
  align-items: center;
  margin-bottom: 0;
  gap: 12px 18px;
}

.crm-payroll-period-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
}

.crm-payroll-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-subtle, #66758f);
}

.crm-payroll-field input:not([type="date"]),
.crm-payroll-field select {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.crm-payroll-period-hint {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: right;
}

.crm-payroll-period-refresh {
  flex-shrink: 0;
}

.crm-payroll-page .crm-pr-period-input {
  max-width: 7rem;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d5dee8;
  background: #fafbfd;
  font-size: 0.88rem;
  font-weight: 500;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.crm-payroll-page .crm-pr-period-input:hover {
  border-color: #c5d0de;
  background: #fff;
}

.crm-payroll-page .crm-pr-period-input:focus {
  outline: none;
  border-color: rgba(57, 139, 67, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(57, 139, 67, 0.12);
}

.crm-pr-subcard {
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.crm-pr-subcard-head {
  margin-bottom: 12px;
}

.crm-pr-subcard-head .crm-staff-eyebrow {
  margin-bottom: 4px;
}

.crm-pr-subcard-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.crm-att-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.crm-att-form-grid {
  margin-bottom: 0;
}

.crm-att-list-panel,
.crm-pr-table-panel {
  margin-top: 4px;
}

.crm-att-table-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.crm-att-table-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-strong, #13233f);
}

.crm-table-bar-filters .crm-combobox--compact {
  min-width: min(100%, 220px);
}

.crm-att-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: min(100%, 220px);
}

.crm-att-section-err {
  margin: 0 0 12px;
}

.crm-payroll-table-shell {
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: auto;
  max-height: min(70vh, 720px);
  background: #fff;
}

.crm-payroll-page .crm-staff-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  box-shadow: 0 1px 0 rgba(226, 232, 240, 0.95);
}

.crm-payroll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.crm-payroll-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0 12px;
}

.crm-payroll-form-actions {
  margin-top: 10px;
}

.crm-payroll-page .crm-pr-num {
  width: 7rem;
  max-width: 100%;
}

.crm-payroll-page .crm-pr-note {
  width: 10rem;
  min-width: 6rem;
  max-width: 100%;
}

.crm-payroll-page .crm-pr-net {
  font-weight: 600;
  white-space: nowrap;
}

.crm-payroll-control .crm-staff-section-head {
  align-items: flex-start;
}

.crm-payroll-dash {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 10px 14px;
  margin: 0 0 1rem;
}

.crm-payroll-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.95);
  position: relative;
  overflow: hidden;
}

.crm-payroll-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-600, #4a9d52), var(--primary-700, #2f7238));
  opacity: 0.85;
}

.crm-payroll-stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-strong, #13233f);
}

.crm-payroll-stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted, #5c6b80);
}

.crm-payroll-policy-panel {
  margin: 0 0 1rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--border-soft, #e2e8f0);
}

.crm-payroll-policy-panel:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.crm-payroll-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 12px;
}

.crm-payroll-panel-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong, #13233f);
}

.crm-section-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.crm-section-collapsible:not(.is-open) > .crm-section-collapsible-body {
  display: none;
}

.crm-payroll-page .crm-section-toggle {
  flex-shrink: 0;
  min-height: var(--btn-min-h-compact, 46px);
  padding-inline: var(--btn-pad-x-compact, 22px);
  font-size: var(--btn-fs-compact, 14px);
}

.crm-payroll-weekdays {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.crm-payroll-weekdays legend {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.crm-payroll-page .crm-pr-pos-rank {
  width: 3.5rem;
}

.crm-payroll-page .crm-pr-pos-allow {
  width: 8rem;
  max-width: 100%;
}

.crm-payroll-page .crm-pr-pos-bonus {
  width: 5rem;
  max-width: 100%;
}

.crm-payroll-weekday-shifts-wrap {
  margin-bottom: 14px;
}

.crm-payroll-page .crm-wd-in,
.crm-payroll-page .crm-wd-out {
  width: 4.5rem;
  max-width: 100%;
}

.crm-payroll-page .crm-wd-break {
  width: 4rem;
  max-width: 100%;
}

.crm-payroll-page .crm-wd-hours {
  width: 4rem;
  max-width: 100%;
}

.crm-payroll-page #crm-pr-weekday-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.crm-att-import {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.crm-att-import-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin-top: 8px;
}

.crm-att-import-file-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 12rem;
}

.crm-payroll-page .crm-form-msg.is-ok {
  color: var(--primary-700, #2f7238);
  margin-top: 10px;
}

.crm-payroll-export {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.crm-payroll-export-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 20px;
  align-items: end;
}

.crm-export-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.crm-export-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle, #66758f);
}

.crm-export-period-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
}

.crm-export-group--actions .crm-payroll-export-actions {
  margin-top: 0;
}

.crm-payroll-export-hint {
  margin-top: 12px;
  margin-bottom: 0;
}

.crm-payroll-export-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin-top: 8px;
}

.crm-payroll-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.crm-payroll-export .crm-pr-export-opt[hidden] {
  display: none;
}

.crm-pr-export-staff-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(100%, 280px);
}

.crm-search-wrap--compact .crm-search-icon {
  left: 12px;
  font-size: 0.95rem;
}

.crm-search-wrap--compact input {
  padding: 10px 12px 10px 38px;
  font-size: 0.9rem;
  min-height: 38px;
  border-radius: 999px;
}

.crm-pr-export-staff-hint {
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .crm-payroll-export-grid {
    grid-template-columns: minmax(240px, 1.1fr) minmax(220px, 1fr) auto;
  }

  .crm-export-group--actions {
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .crm-att-workspace {
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    align-items: start;
  }
}

@media (max-width: 720px) {
  .crm-payroll-period-hint {
    flex-basis: 100%;
    text-align: left;
  }

  .crm-payroll-period-refresh {
    width: 100%;
  }

  .crm-table-bar-filters {
    width: 100%;
    min-width: 0;
  }

  .crm-att-filter {
    flex: 1 1 100%;
  }

  .crm-payroll-nav {
    border-radius: 12px;
  }

  .crm-payroll-nav-link {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

.crm-device-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-strong, #13233f);
}

.crm-device-integration .crm-staff-section-title {
  margin-bottom: 8px;
}

.crm-device-integration-body {
  font-size: 0.94rem;
  line-height: 1.55;
}

.crm-device-integration-body p {
  margin: 0 0 12px;
}

.crm-device-steps {
  margin: 0 0 14px 1.1rem;
  padding: 0;
  line-height: 1.55;
}

.crm-device-steps li {
  margin-bottom: 6px;
}

.crm-code-inline {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.crm-device-endpoint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 !important;
}

.crm-device-endpoint-label {
  font-weight: 600;
  color: var(--text-strong);
}

.crm-device-endpoint {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  word-break: break-all;
}

.crm-device-copy {
  flex-shrink: 0;
  font-size: 13px;
  padding: 8px 12px;
}

.crm-device-key-state {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.crm-device-key-state.is-on {
  background: rgba(236, 253, 245, 0.65);
  border-color: rgba(57, 139, 67, 0.25);
  color: #14532d;
}

.crm-device-key-state.is-off {
  background: rgba(254, 243, 199, 0.45);
  border-color: rgba(217, 119, 6, 0.28);
  color: #7c2d12;
}

.crm-device-json-hint {
  font-size: 12px;
  margin-top: 10px !important;
  line-height: 1.5;
}

/* KPI nhân viên */
.crm-kpi-include-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.crm-kpi-metric-table-wrap {
  overflow-x: auto;
}

.crm-kpi-metric-active-cell {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.crm-kpi-add-form {
  margin-bottom: 18px;
}

.crm-kpi-add-grid {
  align-items: end;
}

.crm-kpi-add-note-label {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .crm-kpi-add-note-label {
    grid-column: auto;
  }
}

.crm-kpi-add-actions {
  margin-top: 8px;
}

.crm-kpi-rows-wrap {
  overflow-x: auto;
}

.crm-kpi-rows-table .crm-kpi-cell-num {
  width: 6.5rem;
  max-width: 100%;
}

.crm-kpi-rows-table .crm-kpi-cell-note {
  width: 10rem;
  min-width: 7rem;
  max-width: 100%;
}

.crm-kpi-rows-table .crm-kpi-cell-status {
  min-width: 8rem;
}

.crm-kpi-row-actions {
  white-space: nowrap;
}

.crm-kpi-metric-desc-label {
  grid-column: 1 / -1;
}

.crm-kpi-metric-active-label {
  align-self: center;
}

.crm-kpi-mode-banner {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(254, 243, 199, 0.6);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 0.92em;
}

.crm-kpi-alerts-panel {
  border-left: 4px solid rgba(217, 119, 6, 0.45);
}

.crm-kpi-alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm-kpi-al-item {
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(26, 32, 44, 0.08);
}

.crm-kpi-al-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

.crm-kpi-al-critical {
  background: rgba(254, 226, 226, 0.9);
  color: #991b1b;
}

.crm-kpi-al-warn {
  background: rgba(254, 243, 199, 0.9);
  color: #92400e;
}

.crm-kpi-chart-wrap {
  position: relative;
  max-width: 100%;
  margin-top: 8px;
}

.crm-kpi-chart-metric-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
}

.crm-kpi-risk-hint {
  display: block;
  font-weight: 400;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.45;
}

.crm-kpi-metric-hi-label,
.crm-kpi-metric-risk-label {
  grid-column: 1 / -1;
}

body.crm-kpi-readonly .crm-kpi-metric-edit-btn,
body.crm-kpi-readonly .crm-kpi-metric-active-cb,
body.crm-kpi-readonly .crm-kpi-metrics-include-wrap {
  display: none !important;
}

body.crm-kpi-readonly .crm-kpi-rows-table input,
body.crm-kpi-readonly .crm-kpi-rows-table select {
  pointer-events: none;
  background: rgba(248, 250, 252, 0.9);
  border-style: dashed;
}

body.crm-kpi-readonly .crm-kpi-row-actions {
  display: none !important;
}

body.crm-kpi-staff-portal .crm-kpi-admin-only,
body.crm-payroll-staff-portal .crm-payroll-admin-only {
  display: none !important;
}

body.crm-kpi-staff-portal .crm-kpi-col-staff,
body.crm-payroll-staff-portal .crm-att-col-staff {
  display: none;
}

/* CRM Hub — marketing, contracts, reminders */
.crm-remind-strip {
  margin-bottom: 1rem;
}

.crm-remind-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.crm-remind-strip-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.crm-remind-strip-link:hover {
  text-decoration: underline;
}

.crm-remind-strip-sep {
  opacity: 0.45;
}

.crm-hub-page .crm-hub-summary {
  margin-bottom: 1rem;
}

.crm-hub-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.crm-hub-summary-card {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.crm-hub-summary-card--danger {
  border-color: rgba(185, 28, 28, 0.3);
}

.crm-hub-summary-card--today {
  border-color: rgba(37, 99, 235, 0.3);
}

.crm-hub-summary-label {
  font-size: 0.82rem;
  display: block;
  opacity: 0.82;
}

.crm-hub-summary-value {
  font-size: 1.45rem;
  font-weight: 700;
}

.crm-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.crm-hub-tab {
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(26, 32, 44, 0.14);
  background: transparent;
  padding: 8px 16px;
  font: inherit;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.crm-hub-tab.is-active {
  background: rgba(57, 139, 67, 0.16);
  border-color: rgba(57, 139, 67, 0.45);
  color: var(--primary);
}



.crm-hub-inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  margin-top: 4px;
}

.crm-hub-table .crm-hub-cell-actions {
  white-space: nowrap;
}

.crm-hub-cell-actions .crm-hub-action-btn {
  font-size: 0.875rem;
  padding: 6px 10px;
  margin-right: 4px;
}

.crm-hub-cell-actions .crm-hub-action-btn:last-child {
  margin-right: 0;
}

/* ═══════════════════════════════════════════════════════
   CRM SOP — Marketing Standard Operating Procedure
═══════════════════════════════════════════════════════ */

/* Summary bar */
.crm-sop-summary {
  margin-bottom: 1rem;
}

.crm-sop-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .85rem;
}

.crm-sop-sc {
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 32, 44, .08);
  background: rgba(255, 255, 255, .7);
}

.crm-sop-sc--active { border-color: rgba(57, 139, 67, .35); }
.crm-sop-sc--danger { border-color: rgba(185, 28, 28, .3); }

.crm-sop-sc-label { font-size: .82rem; display: block; opacity: .82; }
.crm-sop-sc-val { font-size: 1.45rem; font-weight: 700; }

/* Pane */
.crm-sop-pane[hidden] { display: none; }
.crm-sop-pane-head { margin-bottom: 1rem; }

.crm-sop-run-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

/* Loading */
.crm-sop-loading { padding: .5rem 0; }

/* SOP Code badge */
.crm-sop-code {
  font-size: .8rem;
  background: rgba(57, 139, 67, .1);
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--primary);
}

/* ── Template list ─────────────────────────────────── */

.crm-sop-tpl-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.crm-sop-tpl-row {
  border: 1px solid rgba(26, 32, 44, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .75);
  overflow: hidden;
}

.crm-sop-tpl-row--off { opacity: .65; }

.crm-sop-tpl-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: .85rem 1rem;
  background: rgba(248, 250, 252, .6);
}

.crm-sop-tpl-expand {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 1rem/1.3 inherit;
  color: inherit;
  padding: 0;
}

.crm-sop-tpl-expand-icon {
  font-size: .75rem;
  display: inline-block;
  transition: transform .15s;
}

.crm-sop-tpl-name { font-weight: 700; }

.crm-sop-tpl-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.crm-sop-tpl-desc {
  padding: 0 1rem .75rem;
  font-size: .92rem;
  line-height: 1.5;
}

.crm-sop-tpl-body {
  padding: .5rem 1rem 1rem;
  border-top: 1px solid rgba(26, 32, 44, .07);
}

/* ── Step list ─────────────────────────────────────── */

.crm-sop-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.crm-sop-step-item {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: start;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: 8px;
  background: rgba(248, 250, 252, .9);
  border: 1px solid rgba(26, 32, 44, .07);
}

.crm-sop-step-num {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 2px;
}

.crm-sop-step-title {
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 .2rem;
}

.crm-sop-step-req {
  color: #b91c1c;
  margin-right: 3px;
}

.crm-sop-step-meta { font-size: .82rem; margin: 0 0 .25rem; }
.crm-sop-step-desc { font-size: .88rem; margin: 0; }

.crm-sop-step-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: start;
}

.crm-sop-cl-badge {
  display: inline-block;
  font-size: .78rem;
  background: rgba(57, 139, 67, .13);
  color: var(--primary);
  padding: 1px 7px;
  border-radius: 999px;
}

/* ── Launch preview ─────────────────────────────────── */

.crm-sop-launch-preview {
  background: rgba(248, 250, 252, .9);
  border: 1px solid rgba(57, 139, 67, .2);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-top: .5rem;
}

.crm-sop-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.crm-sop-preview-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
}

.crm-sop-preview-pos {
  font-size: .78rem;
  background: rgba(57, 139, 67, .15);
  color: var(--primary);
  padding: 1px 7px;
  border-radius: 4px;
  min-width: 3.5rem;
  text-align: center;
}

.crm-sop-preview-title { font-weight: 600; }
.crm-sop-preview-meta { font-size: .82rem; }

/* ── Run cards ─────────────────────────────────────── */

.crm-sop-run-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crm-sop-run-card {
  padding: 1rem 1.2rem;
}

.crm-sop-run-card-top {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: start;
  gap: 1rem;
}

@media (max-width: 640px) {
  .crm-sop-run-card-top {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
  }
  .crm-sop-run-card-actions { grid-column: 1 / -1; }
}

.crm-sop-ring { display: block; }

.crm-sop-run-name {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
}

.crm-sop-run-expand {
  appearance: none; border: 0; background: none; padding: 0; font: 700 1.05rem/1.3 inherit;
  color: inherit; cursor: pointer; text-align: left;
}
.crm-sop-run-expand:hover { text-decoration: underline; }

.crm-sop-run-meta { margin: 0 0 .25rem; font-size: .88rem; }
.crm-sop-run-progress-text { margin: 0; font-size: .85rem; }

.is-overdue-text { color: #b91c1c; font-weight: 600; }

.crm-sop-run-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: start;
}

.crm-sop-run-tasks-wrap {
  margin-top: 1rem;
  border-top: 1px solid rgba(26, 32, 44, .07);
  padding-top: .75rem;
}

/* ── Kanban board ──────────────────────────────────── */

.crm-sop-kanban {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: .75rem;
}

.crm-sop-kcol {
  border-radius: 10px;
  background: rgba(248, 250, 252, .9);
  border: 1px solid rgba(26, 32, 44, .08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.crm-sop-kcol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  background: rgba(241, 245, 249, .95);
  font-weight: 600;
  font-size: .88rem;
  border-bottom: 1px solid rgba(26, 32, 44, .07);
}

.crm-sop-kcol[data-st="done"] .crm-sop-kcol-head { background: rgba(220, 252, 231, .7); }
.crm-sop-kcol[data-st="in_progress"] .crm-sop-kcol-head { background: rgba(219, 234, 254, .7); }
.crm-sop-kcol[data-st="skipped"] .crm-sop-kcol-head { opacity: .6; }

.crm-sop-kcol-body {
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.crm-sop-kcol-empty { padding: .5rem; font-size: .85rem; }

.crm-sop-task-card {
  padding: .6rem .75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(26, 32, 44, .09);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.crm-sop-task-card.is-overdue {
  border-color: rgba(185, 28, 28, .35);
  background: rgba(254, 242, 242, .6);
}

.crm-sop-task-title {
  margin: 0 0 .25rem;
  font-weight: 600;
  font-size: .92rem;
}

.crm-sop-task-item-btn {
  appearance: none; border: 0; background: none; padding: 0; font: 600 .92rem/1.3 inherit;
  color: inherit; cursor: pointer; text-align: left;
}
.crm-sop-task-item-btn:hover { text-decoration: underline; }

.crm-sop-task-meta { font-size: .8rem; margin: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.crm-sop-task-quick-status {
  font-size: .8rem !important;
  padding: 4px 8px !important;
  margin-top: 4px;
}

/* ── Checklist inputs ────────────────────────────── */

.crm-sop-checklist-section { margin-top: .5rem; }
.crm-sop-checklist-add-btn { font-size: .82rem !important; padding: 4px 10px !important; vertical-align: middle; margin-left: 8px; }

.crm-sop-checklist {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.crm-sop-cl-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-sop-cl-check { flex-shrink: 0; }

.crm-sop-cl-label {
  flex: 1;
  border: 1px solid rgba(26, 32, 44, .15);
  border-radius: 6px;
  padding: 4px 8px;
  font: inherit;
  font-size: .9rem;
}

.crm-sop-cl-del {
  flex-shrink: 0;
  appearance: none; border: 0;
  background: rgba(185, 28, 28, .1);
  color: #b91c1c;
  border-radius: 4px;
  width: 24px; height: 24px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.crm-sop-cl-del:hover { background: rgba(185, 28, 28, .2); }

/* ── Overdue table ─────────────────────────────────── */
.crm-sop-page .crm-sop-overdue-done { font-size: .83rem; padding: 5px 10px; }

/* ── Marketing plan (CRM) ─────────────────────────── */

.crm-mp-page .crm-mp-segments {
  margin-bottom: 1rem;
}
.crm-mp-segments-head .crm-staff-section-title {
  margin-top: 0.15rem;
}
.crm-mp-segments-lead {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.crm-mp-page .crm-mp-segments-nav {
  margin-top: 0.75rem;
}
.crm-mp-page .crm-mp-segments-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .crm-mp-page .crm-mp-segments-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}
/* Ô lưới: <li> co giãn để <a> lấp đầy — toàn bộ ô nhận click */
.crm-mp-page .crm-mp-segments-cell {
  display: flex;
  min-width: 0;
  min-height: 0;
}
.crm-mp-segments-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 9.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 32, 44, 0.12);
  background: linear-gradient(165deg, #fcfdff 0%, #f5f8fc 100%);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: rgba(14, 80, 201, 0.18);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.crm-mp-segments-item:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 80, 201, 0.28);
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.08);
}
.crm-mp-segments-item:focus {
  outline: none;
}
.crm-mp-segments-item:focus-visible {
  outline: 2px solid #0e50c9;
  outline-offset: 2px;
}
.crm-mp-segments-code {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0e50c9;
  background: rgba(14, 80, 201, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
}
.crm-mp-segments-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.25;
}
.crm-mp-segments-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(26, 32, 44, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.crm-mp-segments-cta {
  margin-top: auto;
  padding-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: #0e50c9;
}

/* Trang tham chiếu KHTN / KHQT / CSKH (CRM) */
.crm-mp-segment-page .crm-mp-segment-bc {
  margin-bottom: 0.75rem;
  padding: 0.65rem 1rem;
}
.crm-mp-segment-bc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.86rem;
}
.crm-mp-segment-bc-list li:not([aria-current])::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(26, 32, 44, 0.35);
}
.crm-mp-segment-bc-list a {
  color: #0e50c9;
  text-decoration: none;
}
.crm-mp-segment-bc-list a:hover {
  text-decoration: underline;
}
.crm-mp-segment-bc-list [aria-current="page"] {
  color: rgba(26, 32, 44, 0.75);
  font-weight: 600;
}
.crm-mp-segment-h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a202c;
}
.crm-mp-segment-points {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(26, 32, 44, 0.88);
}
.crm-mp-segment-points li + li {
  margin-top: 0.4rem;
}
.crm-mp-segment-siblings {
  margin-top: 0.75rem;
}
.crm-mp-segment-sibling-grid {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .crm-mp-segment-sibling-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.crm-mp-segment-sib-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 32, 44, 0.1);
  background: #fff;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.crm-mp-segment-sib-card:hover {
  border-color: rgba(14, 80, 201, 0.3);
  background: rgba(14, 80, 201, 0.04);
}
.crm-mp-segment-sib-code {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  color: #0e50c9;
}
.crm-mp-segment-sib-title {
  flex: 1;
  font-weight: 600;
}
.crm-mp-segment-sib-arrow {
  color: #0e50c9;
}
.crm-mp-segment-foot {
  margin: 1rem 0 0;
}

/* KHTN — quy trình 5 bước + popup */
.crm-mp-segment-page .crm-khtn-pipeline-lead {
  margin: 0.35rem 0 0.75rem;
  max-width: 44rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.crm-mp-segment-page .crm-khtn-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.crm-mp-segment-page .crm-khtn-steps-list > li {
  margin: 0;
  padding: 0;
}
.crm-khtn-step-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 32, 44, 0.12);
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: rgba(14, 80, 201, 0.15);
}
.crm-khtn-step-btn:hover {
  border-color: rgba(14, 80, 201, 0.3);
  box-shadow: 0 6px 18px rgba(15, 31, 61, 0.07);
  background: rgba(14, 80, 201, 0.03);
}
.crm-khtn-step-btn:focus {
  outline: none;
}
.crm-khtn-step-btn:focus-visible {
  outline: 2px solid #0e50c9;
  outline-offset: 2px;
}
.crm-khtn-step-index {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(14, 80, 201, 0.12);
  color: #0e50c9;
  font-size: 0.8rem;
  font-weight: 800;
}
.crm-khtn-step-label {
  flex: 1;
  font-weight: 650;
  color: #1a202c;
  font-size: 0.92rem;
}
.crm-khtn-step-hint {
  flex-shrink: 0;
  font-size: 0.78rem;
}
.crm-khtn-step-modal-inner {
  padding: 0 20px 8px;
  max-height: min(65vh, 520px);
  overflow-y: auto;
}
.crm-khtn-step-lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.crm-khtn-step-points {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(26, 32, 44, 0.92);
}
.crm-khtn-step-points li + li {
  margin-top: 0.45rem;
}
.crm-khtn-step-modal-actions {
  padding-top: 4px;
}

.crm-khtn-plan-strip-lead code {
  font-size: 0.82em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(14, 80, 201, 0.08);
}
.crm-khtn-plan-strip-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}
.crm-khtn-plan-fy-label input {
  max-width: 7rem;
}
.crm-khtn-plan-select-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.crm-khtn-s3-save-msg.is-success {
  color: #047857;
  font-weight: 600;
  font-size: 0.86rem;
}
.crm-khtn-s3-save-msg.is-error {
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.86rem;
}

.crm-khtn-plan-msg.is-error {
  color: #b91c1c;
  font-weight: 600;
}

.crm-khtn-field-hint {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 400;
  margin: 0.15rem 0 0.35rem;
  max-width: 42rem;
}

.crm-khtn-demo-block > span:first-of-type {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.crm-khtn-geo-block > span:first-of-type {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.crm-khtn-psy-block > span:first-of-type {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.crm-khtn-beh-block > span:first-of-type {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.crm-khtn-demo-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.crm-khtn-demo-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.crm-khtn-demo-field > span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
}
.crm-khtn-demo-field input[type="text"] {
  font-weight: 400;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #1e293b;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.crm-khtn-demo-field input[type="text"]:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
  border-color: #60a5fa;
}
.crm-khtn-demo-notes textarea {
  font-weight: 400;
  min-height: 2.75rem;
  resize: vertical;
}

.crm-khtn-approach-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 0.35rem;
}
.crm-khtn-approach-legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  padding: 0;
  margin: 0 0 0.5rem;
}
.crm-khtn-approach-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.crm-khtn-approach-option {
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.crm-khtn-approach-opt-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: #1e293b;
}
.crm-khtn-approach-opt-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
  accent-color: #2563eb;
}
.crm-khtn-approach-opt-title {
  font-weight: 600;
}
.crm-khtn-approach-option .crm-khtn-field-hint {
  margin: 0.35rem 0 0 1.55rem;
}

.crm-khtn-pilot-explainer {
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.crm-khtn-pilot-explainer-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}
.crm-khtn-pilot-explainer-list li {
  margin: 0.4rem 0;
}

.crm-khtn-step5-program-title {
  margin: 1.05rem 0 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid #e8edf5;
  font-size: 0.96rem;
  font-weight: 700;
  color: #1a202c;
}
.crm-khtn-step5-program-lead {
  margin: 0 0 0.8rem;
  font-size: 0.84rem;
  line-height: 1.5;
}
.crm-khtn-step5-program-fields {
  margin-bottom: 0.35rem;
}
.crm-khtn-step5-practice-heading {
  border-top-style: dashed;
}
.crm-khtn-step5-analysis-heading {
  border-top: 2px solid #c9d4e7;
  padding-top: 0.55rem;
  margin-top: 1.4rem;
  color: #163a78;
}
.crm-khtn-step5-analysis-summary {
  margin: 0.35rem 0 0.85rem 1.1rem;
  padding: 0;
  font-size: 0.83rem;
  line-height: 1.55;
}
.crm-khtn-step5-analysis-summary li {
  margin: 0.18rem 0;
}

.crm-khtn-metrics-table-wrap {
  margin: 0.55rem 0 0.7rem;
  overflow-x: auto;
  border: 1px solid #d8e0ee;
  border-radius: 6px;
  background: #fff;
}
.crm-khtn-metrics-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.4;
}
.crm-khtn-metrics-table thead th {
  background: #eef3fb;
  color: #1a2940;
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #c9d4e7;
  white-space: nowrap;
}
.crm-khtn-metrics-table tbody th,
.crm-khtn-metrics-table tbody td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #eef1f6;
  vertical-align: middle;
}
.crm-khtn-metrics-table tbody tr:last-child th,
.crm-khtn-metrics-table tbody tr:last-child td {
  border-bottom: 0;
}
.crm-khtn-metrics-name {
  font-weight: 700;
  color: #163a78;
  white-space: nowrap;
}
.crm-khtn-metrics-formula {
  color: #2c3a55;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.8rem;
  white-space: nowrap;
}
.crm-khtn-metrics-th-input {
  min-width: 160px;
}
.crm-khtn-metrics-table input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.32rem 0.45rem;
  border: 1px solid #cbd4e3;
  border-radius: 4px;
  font: inherit;
  background: #fbfcfe;
}
.crm-khtn-metrics-table input[type="text"]:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
@media (max-width: 720px) {
  .crm-khtn-metrics-table {
    font-size: 0.78rem;
  }
  .crm-khtn-metrics-th-input {
    min-width: 130px;
  }
}

.crm-khtn-segment-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.55rem 0 0.4rem;
}
.crm-khtn-segment-toolbar .btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #cbd4e3;
  border-radius: 5px;
  background: #f5f8ff;
  color: #1a3a78;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.crm-khtn-segment-toolbar .btn-mini:hover {
  background: #e6eeff;
  border-color: #9bb1d9;
}
.crm-khtn-segment-toolbar .btn-mini--alt {
  background: #fff;
  color: #5c6878;
}
.crm-khtn-segment-toolbar .btn-mini--alt:hover {
  background: #eef1f6;
  border-color: #b8c2d3;
  color: #1a3a78;
}
.crm-khtn-segment-count {
  font-size: 0.81rem;
}

.crm-khtn-segment-groups {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
}

.crm-khtn-segment-group {
  border: 1px solid #d8e0ee;
  border-left: 4px solid #2563eb;
  border-radius: 7px;
  background: #fbfcfe;
  padding: 0.65rem 0.75rem 0.7rem;
}
.crm-khtn-segment-group-head {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.crm-khtn-segment-group-head .crm-khtn-segment-grp-name {
  font-weight: 700;
  color: #163a78;
  background: #fff;
}
.crm-khtn-segment-group-head input[type="text"] {
  padding: 0.34rem 0.5rem;
  border: 1px solid #cbd4e3;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.crm-khtn-segment-group-head input[type="text"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.crm-khtn-segment-grp-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #f0c8c8;
  background: #fff5f5;
  color: #b13a3a;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.crm-khtn-segment-grp-remove:hover {
  background: #ffd6d6;
  border-color: #d57b7b;
}

.crm-khtn-segment-grp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 0.55rem;
}
.crm-khtn-segment-grp-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.78rem;
  color: #5c6878;
}
.crm-khtn-segment-grp-field span {
  font-weight: 600;
  color: #4a5568;
}
.crm-khtn-segment-grp-field input[type="text"] {
  padding: 0.32rem 0.45rem;
  border: 1px solid #cbd4e3;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #fff;
}
.crm-khtn-segment-grp-field input[type="text"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.crm-khtn-segment-grp-field--wide {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .crm-khtn-segment-group-head {
    grid-template-columns: 1fr auto;
  }
  .crm-khtn-segment-group-head .crm-khtn-segment-grp-desc {
    grid-column: 1 / -1;
  }
  .crm-khtn-segment-grp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-khtn-segment-grp-field--wide {
    grid-column: span 2;
  }
}

.crm-khtn-step5-breakdown-block {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid #d8e0ee;
  border-left: 4px solid #6b46c1;
  border-radius: 8px;
  background: linear-gradient(180deg, #faf7ff 0%, #fbfcfe 60%);
}
.crm-khtn-breakdown-h5 {
  margin: 1rem 0 0.45rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #d8e0ee;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a3a78;
}
.crm-khtn-breakdown-h5--surprise {
  color: #b35d00;
}
.crm-khtn-breakdown-h5--next {
  color: #1a6e3a;
}
.crm-khtn-breakdown-h5--forecast {
  color: #155cab;
}
.crm-khtn-breakdown-h5--final {
  color: #145b3a;
}

.crm-khtn-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.crm-khtn-breakdown-card {
  padding: 0.65rem 0.7rem 0.75rem;
  border: 1px solid #d8e0ee;
  border-radius: 7px;
  background: #fff;
}
.crm-khtn-breakdown-card--win {
  border-left: 4px solid #d4a226;
  background: linear-gradient(180deg, #fff9e6 0%, #fff 50%);
}
.crm-khtn-breakdown-card--tie {
  border-left: 4px solid #94a3b8;
  background: linear-gradient(180deg, #f4f6fa 0%, #fff 50%);
}
.crm-khtn-breakdown-card--lose {
  border-left: 4px solid #c14a4a;
  background: linear-gradient(180deg, #fff1f0 0%, #fff 50%);
}
.crm-khtn-breakdown-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.crm-khtn-breakdown-card-emoji {
  font-size: 1.15rem;
  line-height: 1;
}
.crm-khtn-breakdown-card-title {
  font-weight: 700;
  font-size: 0.86rem;
  color: #1a2940;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.crm-khtn-breakdown-card-action {
  font-weight: 600;
  font-size: 0.74rem;
  color: #5c6878;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.crm-khtn-breakdown-card-budget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  font-size: 0.72rem;
  color: #5c6878;
}
.crm-khtn-breakdown-card-budget input {
  width: 78px;
  padding: 0.28rem 0.4rem;
  border: 1px solid #cbd4e3;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  text-align: right;
  background: #fff;
}
.crm-khtn-breakdown-card-budget input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.crm-khtn-breakdown-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.55rem;
  border: 1px solid #cbd4e3;
  border-radius: 5px;
  font: inherit;
  font-size: 0.85rem;
  background: #fbfcfe;
  resize: vertical;
}
.crm-khtn-breakdown-card textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.crm-khtn-surprise-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
}
.crm-khtn-surprise-card {
  border: 1px solid #f1c987;
  border-left: 4px solid #d97706;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff8eb 0%, #fffdf8 60%);
  padding: 0.65rem 0.75rem 0.7rem;
}
.crm-khtn-surprise-card-head {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr auto;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.crm-khtn-surprise-card-head input[type="text"] {
  padding: 0.34rem 0.5rem;
  border: 1px solid #e3c08a;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.crm-khtn-surprise-card-head input.crm-khtn-surprise-title {
  font-weight: 700;
  color: #93410f;
}
.crm-khtn-surprise-card-head input[type="text"]:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}
.crm-khtn-surprise-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.crm-khtn-surprise-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.78rem;
  color: #5c4327;
}
.crm-khtn-surprise-field span {
  font-weight: 600;
  color: #6b3a0e;
}
.crm-khtn-surprise-field:nth-child(2) {
  grid-column: 1 / -1;
}
.crm-khtn-surprise-field input[type="text"],
.crm-khtn-surprise-field textarea {
  padding: 0.34rem 0.5rem;
  border: 1px solid #e3c08a;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #fff;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.crm-khtn-surprise-field input[type="text"]:focus,
.crm-khtn-surprise-field textarea:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.crm-khtn-breakdown-textarea-label {
  display: block;
  margin-top: 0.15rem;
}
.crm-khtn-breakdown-textarea-label textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd4e3;
  border-radius: 5px;
  font: inherit;
  background: #fbfcfe;
  resize: vertical;
  white-space: pre-wrap;
}
.crm-khtn-breakdown-textarea-label textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

@media (max-width: 720px) {
  .crm-khtn-breakdown-grid {
    grid-template-columns: 1fr;
  }
  .crm-khtn-surprise-card-head {
    grid-template-columns: 1fr auto;
  }
  .crm-khtn-surprise-card-head .crm-khtn-surprise-highlight,
  .crm-khtn-surprise-card-head .crm-khtn-surprise-budget {
    grid-column: 1 / -1;
  }
  .crm-khtn-surprise-card-body {
    grid-template-columns: 1fr;
  }
}

.crm-khtn-platforms {
  margin: 0.55rem 0 0.4rem;
  border: 1px solid #d8e0ee;
  border-radius: 8px;
  background: #fbfcfe;
}
.crm-khtn-platforms-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.45rem 0.55rem 0;
  border-bottom: 1px solid #d8e0ee;
  background: #eef3fb;
  border-radius: 8px 8px 0 0;
}
.crm-khtn-platforms-tab {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #d8e0ee;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  transition: background 0.12s, border-color 0.12s;
}
.crm-khtn-platforms-tab:hover {
  background: #f7faff;
  border-color: #b9c8e3;
}
.crm-khtn-platforms-tab.is-active {
  background: #fbfcfe;
  border-color: #2563eb;
  box-shadow: 0 -2px 0 #2563eb inset;
}
.crm-khtn-platforms-tab-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a3a78;
  cursor: pointer;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-khtn-platforms-tab.is-active .crm-khtn-platforms-tab-btn {
  color: #163a78;
}
.crm-khtn-platforms-tab-remove {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-left: 1px solid #e3e8f1;
  background: transparent;
  padding: 0 0.55rem;
  font-size: 1rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.crm-khtn-platforms-tab-remove:hover {
  background: #fde4e4;
  color: #b13a3a;
}
.crm-khtn-platforms-tab-add {
  appearance: none;
  -webkit-appearance: none;
  border: 1px dashed #b9c8e3;
  background: #fff;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a3a78;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.12s, border-color 0.12s;
}
.crm-khtn-platforms-tab-add:hover {
  background: #e6eeff;
  border-color: #2563eb;
}
.crm-khtn-platforms-tab-add--alt {
  margin-left: 0.3rem;
  background: #f7f7f9;
  color: #5c6878;
}
.crm-khtn-platforms-tab-add--alt:hover {
  background: #eef1f6;
  color: #1a3a78;
}

.crm-khtn-platforms-panels {
  padding: 0.7rem 0.85rem 0.85rem;
}
.crm-khtn-platforms-panel {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
}
.crm-khtn-platforms-panel.is-active {
  display: flex;
}
.crm-khtn-platforms-name-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: #5c6878;
}
.crm-khtn-platforms-name-label > span {
  font-weight: 600;
  color: #4a5568;
}
.crm-khtn-platforms-name-label input {
  padding: 0.42rem 0.6rem;
  border: 1px solid #cbd4e3;
  border-radius: 5px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #163a78;
  background: #fff;
}
.crm-khtn-platforms-name-label input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.crm-khtn-platforms-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.7rem;
}
.crm-khtn-platforms-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.78rem;
  color: #5c6878;
}
.crm-khtn-platforms-field > span {
  font-weight: 600;
  color: #4a5568;
}
.crm-khtn-platforms-field textarea {
  padding: 0.4rem 0.55rem;
  border: 1px solid #cbd4e3;
  border-radius: 5px;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}
.crm-khtn-platforms-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.crm-khtn-platforms-field--wide {
  grid-column: 1 / -1;
}
.crm-khtn-platforms-empty {
  margin: 0;
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .crm-khtn-platforms-fields {
    grid-template-columns: 1fr;
  }
  .crm-khtn-platforms-tab-btn {
    max-width: 140px;
  }
  .crm-khtn-platforms-tab-add {
    margin-left: 0;
  }
}

.crm-khtn-step1-extra,
.crm-khtn-step2-extra,
.crm-khtn-step3-extra,
.crm-khtn-step4-extra,
.crm-khtn-step5-extra {
  margin-top: 0.85rem;
  padding-top: 0.15rem;
}
.crm-khtn-step1-hr {
  border: 0;
  border-top: 1px solid #e8edf5;
  margin: 0 0 1rem;
}
.crm-khtn-step1-form-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
}
.crm-khtn-step1-form-lead {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
}
.crm-khtn-step1-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.crm-khtn-step1-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.crm-khtn-step1-label textarea {
  font-weight: 400;
  min-height: 4.5rem;
  resize: vertical;
}
.crm-khtn-step1-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}
.crm-khtn-s1-save-msg.is-success {
  color: #047857;
  font-weight: 600;
  font-size: 0.86rem;
}
.crm-khtn-s1-save-msg.is-error {
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.86rem;
}
.crm-khtn-s2-save-msg.is-success,
.crm-khtn-s3-save-msg.is-success,
.crm-khtn-s4-save-msg.is-success,
.crm-khtn-s5-save-msg.is-success {
  color: #047857;
  font-weight: 600;
  font-size: 0.86rem;
}
.crm-khtn-s2-save-msg.is-error,
.crm-khtn-s3-save-msg.is-error,
.crm-khtn-s4-save-msg.is-error,
.crm-khtn-s5-save-msg.is-error {
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.86rem;
}

.crm-mp-page .crm-mp-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.crm-mp-filter-cell { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; }
.crm-mp-filter-grow { flex: 1; min-width: 12rem; }
.crm-mp-filter-actions { margin-left: auto; }

.crm-mp-list-msg { margin: 0.5rem 0 0; font-size: 0.88rem; }

.crm-mp-table .crm-mp-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.crm-mp-actions-cell {
  white-space: nowrap;
}
.crm-mp-btn-edit { font-size: 0.82rem !important; padding: 4px 10px !important; }

.crm-mp-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(26, 32, 44, 0.1);
}

.crm-mp-st-draft { opacity: 0.85; }
.crm-mp-st-review { background: rgba(254, 243, 199, 0.7); border-color: rgba(245, 158, 11, 0.4); }
.crm-mp-st-active { background: rgba(219, 234, 254, 0.65); border-color: rgba(59, 130, 246, 0.35); }
.crm-mp-st-paused { background: rgba(254, 243, 199, 0.45); opacity: 0.95; }
.crm-mp-st-completed { background: rgba(220, 252, 231, 0.7); border-color: rgba(34, 197, 94, 0.35); }
.crm-mp-st-archived { opacity: 0.68; background: rgba(241, 245, 249, 0.6); }
.crm-mp-st-cancelled { background: rgba(254, 242, 242, 0.75); border-color: rgba(248, 113, 113, 0.4); color: #991b1b; }

.crm-mp-fieldset legend { font-weight: 600; padding: 0 0.25rem; }

.crm-mp-channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.crm-mp-form .crm-mp-channels-fs { margin-top: 0.5rem; }

.crm-mp-kpi-block {
  margin-top: 0.65rem;
}
.crm-mp-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.crm-mp-kpi-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
  font-size: 0.88rem;
}
.crm-mp-kpi-table th,
.crm-mp-kpi-table td {
  border-bottom: 1px solid rgba(26, 32, 44, 0.08);
  padding: 0.35rem 0.4rem;
}
.crm-mp-kpi-table th { text-align: left; font-size: 0.8rem; color: rgba(51, 65, 85, 0.9); }
.crm-mp-kpi-table input { width: 100%; font: inherit; }

.crm-mp-icon-btn {
  appearance: none;
  border: 0;
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.crm-mp-icon-btn:hover { background: rgba(185, 28, 28, 0.2); }

.crm-mp-campaign-filter {
  width: 100%;
  margin-bottom: 0.35rem;
  font: inherit;
  padding: 0.35rem 0.5rem;
}

.crm-mp-campaign-box {
  max-height: 11rem;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(26, 32, 44, 0.11);
  background: rgba(248, 250, 252, 0.75);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.crm-mp-camp-option { display: flex; align-items: flex-start; gap: 8px; font-size: 0.87rem; }
.crm-mp-camp-option input[type="checkbox"] { margin-top: 3px; }

.crm-mp-ms-hint { font-size: 0.86rem; margin: 0 0 0.35rem; }
.crm-mp-milestone-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.crm-mp-milestone-add-row input[type="text"] { flex: 1; min-width: 10rem; font: inherit; }
.crm-mp-milestone-add-row input[type="date"],
.crm-mp-milestone-add-row select {
  font: inherit;
}
.crm-mp-ms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.crm-mp-ms-table th,
.crm-mp-ms-table td {
  border-bottom: 1px solid rgba(26, 32, 44, 0.08);
  padding: 0.35rem 0.35rem;
  vertical-align: middle;
}
.crm-mp-ms-table th { font-size: 0.8rem; text-align: left; color: rgba(51, 65, 85, 0.9); }
.crm-mp-ms-table input,
.crm-mp-ms-table select { font: inherit; width: 100%; max-width: 100%; }
.crm-mp-ms-act { white-space: nowrap; width: 1%; }
.crm-mp-ms-act .btn-secondary { font-size: 0.78rem !important; padding: 3px 8px !important; }

@media (max-width: 760px) {
  .crm-mp-page .crm-modal-wide { max-width: 100vw; }
}

/* Scroll long marketing plan modal */
.crm-mp-page #crm-mp-modal .crm-modal-panel.crm-modal-wide .crm-mp-form {
  max-height: min(74vh, 900px);
  overflow: auto;
  padding-right: 0.25rem;
}
.crm-mp-modal-actions { justify-content: flex-end; gap: 0.35rem; flex-wrap: wrap; }

/* Khung nghiệp vụ marketing (9 trụ cốt lõi) */
.crm-mp-fw-intro {
  font-size: 0.87rem;
  line-height: 1.45;
  margin: 0 0 0.65rem;
}
.crm-mp-fw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .crm-mp-fw-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.crm-mp-fw-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 500;
}
.crm-mp-fw-item textarea {
  font: inherit;
  min-height: 4.25rem;
  resize: vertical;
}

/* Popup “khung nghiệp vụ” — xếp lớp trên modal kế hoạch */
.crm-mp-page .crm-mp-fw-teaser {
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0 0 0.55rem;
}
.crm-mp-page .crm-mp-fw-trigger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.crm-mp-page #crm-mp-fw-summary {
  font-size: 0.84rem;
}

.crm-mp-page .crm-mp-modal-strategy-fw {
  z-index: 140;
}

.crm-mp-page .crm-mp-modal-strategy-fw .crm-modal-panel {
  margin-top: 2vh;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 920px);
  padding-bottom: 0;
}

.crm-mp-fw-popup-body {
  padding: 4px 20px 12px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.crm-mp-page .crm-mp-modal-strategy-fw .crm-mp-fw-intro {
  margin-top: 0;
}

.crm-mp-strategy-fw-foot {
  flex-shrink: 0;
  padding: 12px 20px 18px;
  border-top: 1px solid #e8edf5;
  background: linear-gradient(to top, #f8fafc, #fff);
}

.crm-mp-page .crm-mp-tm-pro {
  margin-bottom: 0.65rem;
  padding-bottom: 0.15rem;
}
.crm-mp-page .crm-mp-tm-pro-title {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.crm-mp-page .crm-mp-tm-pro-lead {
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0 0 0.65rem;
}
.crm-mp-page .crm-mp-tm-pro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .crm-mp-page .crm-mp-tm-pro-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.crm-mp-page .crm-mp-s4-flow {
  margin-bottom: 0.5rem;
}
.crm-mp-page .crm-mp-s4-block {
  margin-bottom: 1rem;
}
.crm-mp-page .crm-mp-s4-step-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: rgba(30, 41, 59, 0.95);
}
.crm-mp-page .crm-mp-s4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .crm-mp-page .crm-mp-s4-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.crm-mp-page .crm-mp-fw-sep {
  border: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  margin: 1rem 0;
}
.crm-mp-page .crm-mp-fw-rest-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.95);
}

/* ============================================================
   PTT Admin / CRM — hệ thống chủ đạo xanh
   ============================================================ */

body.admin-app .crm-app {
  max-width: min(1320px, 98%);
}

body.admin-app .crm-hero,
body.crm-body .crm-hero,
.crm-staff-page .crm-staff-hero {
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(57, 139, 67, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 252, 246, 0.96) 100%);
  box-shadow: var(--shadow-green-sm);
  border-bottom: none;
}

body.admin-app .crm-hero-desc,
body.crm-body .crm-hero-desc,
.crm-staff-page .crm-staff-hero .crm-hero-desc {
  color: var(--text-subtle);
  line-height: 1.55;
}

body.admin-app .crm-staff-section.panel,
body.crm-body .crm-staff-section.panel {
  margin-bottom: 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(57, 139, 67, 0.12);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-xs);
}

body.admin-app .crm-staff-toolbar.panel,
body.crm-body .crm-staff-toolbar.panel {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(57, 139, 67, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 249, 0.96));
  box-shadow: var(--shadow-green-sm);
}

body.admin-app .crm-staff-table thead th,
body.crm-body .crm-staff-table thead th {
  background: linear-gradient(180deg, #f3faf5 0%, #ebf5ee 100%);
  color: var(--primary-800);
  border-bottom: 1px solid rgba(57, 139, 67, 0.16);
}

body.admin-app .crm-chip.is-active,
body.crm-body .crm-chip.is-active {
  background: linear-gradient(135deg, rgba(57, 139, 67, 0.14), rgba(140, 198, 63, 0.12));
  border-color: rgba(57, 139, 67, 0.28);
  color: var(--primary-800);
}

body.admin-app .crm-payroll-nav,
body.crm-body .crm-payroll-nav {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(57, 139, 67, 0.14);
  box-shadow: var(--shadow-xs);
}

body.admin-app .crm-payroll-nav-link.is-active,
body.crm-body .crm-payroll-nav-link.is-active {
  color: var(--primary-800);
  background: linear-gradient(135deg, rgba(57, 139, 67, 0.16), rgba(140, 198, 63, 0.1));
  box-shadow: inset 0 0 0 1px rgba(57, 139, 67, 0.18);
}

body.admin-app .crm-pr-subcard,
body.crm-body .crm-pr-subcard {
  border-color: rgba(57, 139, 67, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 249, 0.97));
}

body.admin-app .crm-stat-pill,
body.crm-body .crm-stat-pill {
  background: var(--primary-50);
  border-color: rgba(57, 139, 67, 0.2);
  color: var(--primary-800);
}

body.admin-app .crm-stat-pill--accent,
body.crm-body .crm-stat-pill--accent {
  background: linear-gradient(135deg, rgba(57, 139, 67, 0.12), rgba(140, 198, 63, 0.1));
}

/* Portal nhân viên — topbar xanh */
.crm-staff-topbar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
  border-bottom: 1px solid rgba(57, 139, 67, 0.14);
  box-shadow: 0 2px 12px rgba(47, 114, 56, 0.06);
}

.crm-staff-topbar .default-nav a.is-active,
.crm-staff-topbar .default-nav a:hover {
  color: var(--primary-700);
}

.crm-staff-topbar .default-nav a.is-active {
  background: rgba(57, 139, 67, 0.1);
  border-radius: 999px;
}

.admin-page-desc strong {
  color: var(--primary-700);
}

.admin-page-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--brand-lime));
}

body.admin-app .admin-page-body .crm-hero-title {
  display: none;
}

body.admin-app .admin-page-title:not(:empty) + .admin-page-desc {
  margin-top: 0.5rem;
}

/* === Landing CTA Strip === */
.landing-cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #2d7035 100%);
  padding: 3.5rem 0;
}
.landing-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.landing-cta-strip-body { flex: 1; min-width: 260px; }
.landing-cta-strip-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
.landing-cta-strip-line {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin: 0;
  max-width: 560px;
}
.landing-cta-strip-btn {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.landing-cta-strip-btn:hover {
  background: var(--bg-tint);
  color: var(--primary-700);
  transform: translateY(-2px);
}
@media (max-width: 700px) {
  .landing-cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .landing-cta-strip-title { font-size: 1.35rem; }
}
