/* =====================================================================
   AGENCY CONNECT — COMPLETE REDESIGN  ·  ONE FILE  ·  DESKTOP + PHONE
   John Martinez Insurance Agency, Inc.
   ---------------------------------------------------------------------
   HOW TO INSTALL (CSS only — plug and play):
     1. Upload this file (e.g. /assets/css/agency-connect-complete.css).
     2. Load it on EVERY page, AFTER the theme CSS:
          <link rel="stylesheet" href="/assets/css/agency-connect-complete.css">
     3. Hard-refresh (Ctrl+F5).
   No HTML or JavaScript changes are needed.
 
   WHAT'S INSIDE:
     PART 1 — Left sidebar + gold "Back to top" button (every page)
     PART 2 — Client Profile page (viewLead): header, Back/Edit,
              tab menu, status banner (colored by status), client
              pills, Enrollment Steps, Assignment & Preferences,
              gold divider bars, all tabs (Contact Info, Household,
              Compliance, Client Files, Policies, Payment Request,
              General Notes, Activity Timeline), success/error messages.
     Phone / tablet layout is built in (screens 768px and smaller).
 
   NOTES:
     - Keep this as ONE file in this order (later rules refine earlier ones).
     - Merge duplicate / Mark as Deceased sit in the client-name row
       using "top: 353px" (last desktop rule in PART 2). If the header,
       tab bar or blue banner height ever changes, adjust that number.
   ===================================================================== */
 
 
/* #####################################################################
   PART 1 — SIDEBAR + BACK TO TOP  (every page)
   ##################################################################### */
/* =========================================================
   AGENCY CONNECT — Left sidebar, modern restyle
   John Martinez Insurance Agency, Inc.
   PLUG AND PLAY: CSS only. Load on EVERY page (global stylesheet),
   after the theme CSS. No markup or JavaScript changes.
 
   • Soft black-to-charcoal panel with a thin gold edge
   • User block as a glass card with a gold avatar ring
   • Section headers become slim labels with a colored dot
     (no more heavy gold bars), chevron stays clickable
   • Menu links: rounded rows with icon tiles; active page =
     gold glow + gold icon tile + gold bar on the left
   ========================================================= */
 
html body .agency-sidebar {
  background:
    radial-gradient(140% 260px at 0% 0%, rgba(201,165,76,.10), transparent 70%),
    linear-gradient(180deg, #11100d 0%, #090909 100%) !important;
  border-right: 1px solid rgba(201,165,76,.22) !important;
  box-shadow: 8px 0 30px rgba(0,0,0,.45);
}
 
/* Brand */
html body .agency-sidebar .agency-brand {
  padding-bottom: 14px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(201,165,76,.15);
}
html body .agency-sidebar .agency-brand img { filter: drop-shadow(0 4px 14px rgba(201,165,76,.25)); }
 
/* User card */
html body .agency-sidebar .agency-user {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 10px 12px 14px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(201,165,76,.28) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)) !important;
  transition: border-color .15s, background .15s;
}
html body .agency-sidebar .agency-user:hover { border-color: rgba(232,200,114,.6) !important; background: rgba(201,165,76,.08) !important; }
html body .agency-sidebar .agency-user img {
  width: 38px !important; height: 38px !important;
  border-radius: 50% !important;
  border: 2px solid #c9a54c;
  box-shadow: 0 0 0 3px rgba(201,165,76,.15);
  object-fit: cover;
}
html body .agency-sidebar .agency-user strong { color: #fff !important; font-size: .84rem !important; }
html body .agency-sidebar .agency-user small {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(52,211,153,.14);
  color: #6ee7b7 !important;
  font-size: .62rem !important;
  font-weight: 700;
  letter-spacing: .06em;
}
 
/* Section headers: slim label + colored dot + fading line */
html body .agency-sidebar .agency-navigation h2 {
  margin: 16px 0 6px !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}
html body .agency-sidebar .agency-section-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: auto !important;
  padding: 4px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #8f8775 !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .18em;
  text-transform: uppercase;
}
html body .agency-sidebar .agency-section-toggle::before {
  content: "";
  width: 7px; height: 7px; flex: 0 0 7px;
  border-radius: 50%;
  background: var(--sec-c, #c9a54c);
  box-shadow: 0 0 8px var(--sec-c, #c9a54c);
}
html body .agency-sidebar .agency-section-toggle span { order: 0; }
html body .agency-sidebar .agency-section-toggle::after {
  content: "";
  order: 1;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,165,76,.35), transparent);
}
html body .agency-sidebar .agency-section-toggle i { order: 2; color: #6f6a60 !important; font-size: .8rem; }
html body .agency-sidebar .agency-section-toggle:hover { color: #e8c872 !important; }
html body .agency-sidebar .agency-navigation h2:nth-of-type(1) .agency-section-toggle { --sec-c: #e8c872; } /* Overview */
html body .agency-sidebar .agency-navigation h2:nth-of-type(2) .agency-section-toggle { --sec-c: #60a5fa; } /* Book of Business */
html body .agency-sidebar .agency-navigation h2:nth-of-type(3) .agency-section-toggle { --sec-c: #f472b6; } /* Communications */
html body .agency-sidebar .agency-navigation h2:nth-of-type(4) .agency-section-toggle { --sec-c: #34d399; } /* Operations */
html body .agency-sidebar .agency-navigation h2:nth-of-type(5) .agency-section-toggle { --sec-c: #fb923c; }
html body .agency-sidebar .agency-navigation h2:nth-of-type(6) .agency-section-toggle { --sec-c: #a78bfa; }
 
/* Menu links */
html body .agency-sidebar .agency-navigation ul { padding: 0 10px !important; }
html body .agency-sidebar .agency-nav-link {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  margin: 2px 0 !important;
  padding: 5px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #d9d2c3 !important;
  font-size: .86rem !important;
  font-weight: 600 !important;
  transition: background .15s, border-color .15s, color .15s;
}
html body .agency-sidebar .agency-nav-link i {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: inline-flex !important; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  color: #e8c872 !important;
  font-size: 1rem !important;
  transition: background .15s;
}
html body .agency-sidebar .agency-nav-link:hover {
  background: rgba(201,165,76,.08) !important;
  border-color: rgba(201,165,76,.22) !important;
  color: #fff !important;
}
html body .agency-sidebar .agency-nav-link:hover i { background: rgba(201,165,76,.16); }
 
/* Active page */
html body .agency-sidebar .agency-nav-link[aria-current="page"],
html body .agency-sidebar .agency-nav-link.active {
  background: linear-gradient(90deg, rgba(232,200,114,.20), rgba(201,165,76,.05)) !important;
  border-color: rgba(232,200,114,.45) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
html body .agency-sidebar .agency-nav-link[aria-current="page"]::before,
html body .agency-sidebar .agency-nav-link.active::before {
  content: "";
  position: absolute;
  left: -10px; top: 8px; bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #f0d483, #c9a54c);
  box-shadow: 0 0 10px rgba(232,200,114,.6);
}
html body .agency-sidebar .agency-nav-link[aria-current="page"] i,
html body .agency-sidebar .agency-nav-link.active i {
  background: linear-gradient(180deg, #f0d483, #c9a54c);
  color: #1a1408 !important;
}
 
/* Footer / Logout */
html body .agency-sidebar .agency-sidebar-footer {
  border-top: 1px solid rgba(201,165,76,.18) !important;
  background: rgba(0,0,0,.35) !important;
}
html body .agency-sidebar .agency-logout {
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  height: 40px;
  border: 1px solid rgba(201,165,76,.35) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #e9e3d6 !important;
  font-weight: 700 !important;
  transition: all .15s;
}
html body .agency-sidebar .agency-logout:hover {
  border-color: rgba(248,113,113,.6) !important;
  background: rgba(248,113,113,.1) !important;
  color: #fca5a5 !important;
}
 
/* Thin gold scrollbar */
html body .agency-sidebar ::-webkit-scrollbar,
html body .agency-sidebar::-webkit-scrollbar { width: 6px; }
html body .agency-sidebar ::-webkit-scrollbar-thumb,
html body .agency-sidebar::-webkit-scrollbar-thumb { background: rgba(201,165,76,.35); border-radius: 6px; }
 
/* =========================================================
   SECTION HEADERS — thick gold bars (keeps the original format,
   just bolder so each section clearly stands apart)
   ========================================================= */
html body .agency-sidebar .agency-navigation h2 {
  margin: 20px 10px 8px !important;
}
html body .agency-sidebar .agency-section-toggle {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #e8c872, #b38e3a) !important;
  box-shadow: 0 4px 12px rgba(201,165,76,.25), inset 0 1px 0 rgba(255,255,255,.35) !important;
  color: #1a1408 !important;
  font-size: .7rem !important;
  font-weight: 900 !important;
  letter-spacing: .16em;
}
html body .agency-sidebar .agency-section-toggle::before { display: none !important; }
html body .agency-sidebar .agency-section-toggle::after { display: none !important; }
html body .agency-sidebar .agency-section-toggle span { flex: 1; text-align: left; }
html body .agency-sidebar .agency-section-toggle i { color: #1a1408 !important; font-size: .9rem; }
html body .agency-sidebar .agency-section-toggle:hover { color: #000 !important; filter: brightness(1.06); }
 
/* =========================================================
   "BACK TO TOP" BUTTON (every page)
   Restyles the theme's built-in scroll-to-top button
   (#kt_scrolltop) into a gold pill in the bottom-right corner.
   It appears once you scroll down; one click glides back to the top.
   ========================================================= */
html body #kt_scrolltop.kt-scrolltop {
  width: auto !important;
  height: 46px !important;
  padding: 0 20px 0 6px !important;
  right: 28px !important;
  bottom: 28px !important;
  display: none;
  align-items: center;
  gap: 10px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #f7df9a, #e2bf63 45%, #c9a54c) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 0 4px rgba(201,165,76,.18), inset 0 1px 0 rgba(255,255,255,.55) !important;
  opacity: 0;
  cursor: pointer;
  z-index: 1000;
  transition: opacity .2s, transform .2s !important;
}
html body.kt-scrolltop--on #kt_scrolltop.kt-scrolltop { display: flex !important; opacity: 1 !important; }
html body #kt_scrolltop.kt-scrolltop i {
  width: 34px; height: 34px;
  display: inline-flex !important; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #1a1408 !important;
  color: #f0d483 !important;
  font-size: .95rem !important;
}
html body #kt_scrolltop.kt-scrolltop::after {
  content: "Back to top";
  color: #1a1408;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
html body #kt_scrolltop.kt-scrolltop:hover { transform: translateY(-2px); }
html body #kt_scrolltop.kt-scrolltop:hover i { transform: translateY(-2px); transition: transform .2s; }
/* draw the up-arrow with CSS (the theme's icon font doesn't load here) */
html body #kt_scrolltop.kt-scrolltop i { font-size: 0 !important; }
html body #kt_scrolltop.kt-scrolltop i::before { content: none !important; }
html body #kt_scrolltop.kt-scrolltop i {
  background: #1a1408 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d483' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 18px no-repeat !important;
}
 
/* Phones: Back to top becomes a round icon button */
@media (max-width: 768px) {
  html body #kt_scrolltop.kt-scrolltop { right: 16px !important; bottom: 16px !important; padding: 0 6px !important; height: 46px !important; }
  html body #kt_scrolltop.kt-scrolltop::after { content: none !important; }
}
 
 
 
/* #####################################################################
   PART 2 — CLIENT PROFILE PAGE (viewLead)
   ##################################################################### */
/* =========================================================
   AGENCY CONNECT — Client Profile: Contact Info tab restyle
   John Martinez Insurance Agency, Inc.
   PLUG AND PLAY: CSS only. Load after the theme CSS on the
   client profile page (viewLead). No markup or JavaScript changes.
 
   • Gold pill tabs
   • Three sections become titled cards: Contact · Personal · Client Details
   • Gold labels, larger white values, gold row lines, no vertical lines
   • SWAP: Monthly Premium now shows where Household Income was,
     and Household Income moves to Monthly Premium's spot.
   ========================================================= */
 
/* ---------- Tabs: gold pills ---------- */
html body .vl-tab-nav {
  gap: 10px;
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(201, 165, 76, 0.22);
}
html body .vl-tab-nav .nav-link {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: #111 !important;
  border: 1px solid rgba(201, 165, 76, 0.3) !important;
  color: #e9e3d6 !important;
  font-weight: 700;
  font-size: .9rem;
  transition: border-color .15s, background .15s, color .15s;
}
html body .vl-tab-nav .nav-link:hover {
  border-color: #c9a54c !important;
  color: #e8c872 !important;
}
html body .vl-tab-nav .nav-link.active {
  background: linear-gradient(180deg, #e8c872, #c9a54c) !important;
  border-color: #e8c872 !important;
  color: #1a1408 !important;
  box-shadow: 0 6px 16px rgba(201, 165, 76, 0.28);
}
html body .vl-tab-nav .nav-link .badge {
  border-radius: 999px;
  background: rgba(201, 165, 76, 0.2) !important;
  color: #e8c872 !important;
}
html body .vl-tab-nav .nav-link.active .badge {
  background: #1a1408 !important;
  color: #e8c872 !important;
}
 
/* ---------- Contact Info tab ---------- */
html body #tab-contact {
  --cp-gold: #c9a54c;
  --cp-gold-bright: #e8c872;
  --cp-gold-deep: #9c7c2e;
  --cp-line: rgba(201, 165, 76, 0.2);
  --cp-text: #f5f1e8;
  --cp-muted: #8a8478;
}
html body #tab-contact > .vl-card {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
 
/* Tab title with a gold underline accent */
html body #tab-contact > .vl-card > h5 {
  position: relative;
  margin: 4px 0 0 !important;
  padding-bottom: 12px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  border-bottom: 0 !important;
}
html body #tab-contact > .vl-card > h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cp-gold-bright), var(--cp-gold-deep));
}
 
/* Each section = a card with a small titled header */
html body #tab-contact .vl-section {
  position: relative;
  margin: 0 !important;
  padding: 50px 14px 8px !important;
  border: 1px solid var(--cp-gold) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #141209 0%, #0b0b0b 90px) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
html body #tab-contact .vl-section::before {
  position: absolute;
  top: 16px;
  left: 28px;
  padding-left: 30px;
  color: var(--cp-gold-bright);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 20px;
  background: no-repeat left center / 20px 20px;
}
html body #tab-contact .vl-section:nth-of-type(1)::before {
  content: "Contact";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}
html body #tab-contact .vl-section:nth-of-type(2)::before {
  content: "Personal";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
}
html body #tab-contact .vl-section:nth-of-type(3)::before {
  content: "Client Details";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.3 8 11 4.6-1.7 8-6 8-11V5z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}
/* thin gold line under the section title */
html body #tab-contact .vl-section::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--cp-line);
}
 
/* Fields: gold row lines only, no vertical lines */
html body #tab-contact .vl-section > [class*="col-"] {
  padding: 16px 14px !important;
  border: 0 !important;                                  /* removes the vertical divider */
  border-bottom: 1px solid var(--cp-line) !important;   /* horizontal gold line */
}
html body #tab-contact .vl-section .vl-label {
  display: block;
  margin-bottom: 6px;
  color: var(--cp-gold) !important;
  font-size: .7rem !important;
  font-weight: 800 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}
html body #tab-contact .vl-section .vl-value {
  color: var(--cp-text) !important;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
}
html body #tab-contact .vl-section .vl-value a {
  color: var(--cp-gold-bright) !important;
  text-decoration: none;
}
html body #tab-contact .vl-section .vl-value a:hover { text-decoration: underline; }
 
/* Tobacco Use dropdown: dark pill with gold border */
html body #tab-contact .vl-section select.form-control {
  height: 42px;
  max-width: 320px;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background-color: #0b0b0b !important;
  border: 1px solid rgba(201, 165, 76, 0.45) !important;
  color: var(--cp-text) !important;
  font-weight: 600;
}
html body #tab-contact .vl-section select.form-control:focus {
  border-color: var(--cp-gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 165, 76, 0.15) !important;
}
 
/* ---------- SWAP: Monthly Premium <-> Household Income ----------
   Client Details order in the page code:
   1 Referral Source, 2 Tobacco Use, 3 Client Since, 4 Household Income,
   5 Monthly Premium, 6 Lines of Business, 7 Employer Name, 8 Insured Status
   Shown order after this CSS: 1, 2, 3, 5 (Monthly Premium), 4 (Household Income), 6, 7, 8 */
html body #tab-contact .vl-section-split > :nth-child(-n+3) { order: 0; }
html body #tab-contact .vl-section-split > :nth-child(5)    { order: 1; }  /* Monthly Premium */
html body #tab-contact .vl-section-split > :nth-child(4)    { order: 2; }  /* Household Income */
html body #tab-contact .vl-section-split > :nth-child(n+6)  { order: 3; }
 
/* Monthly Premium gets a gold highlight in its new spot */
html body #tab-contact .vl-section-split > :nth-child(5) .vl-value {
  color: var(--cp-gold-bright) !important;
  font-size: 1.15rem;
  font-weight: 800;
}
 
/* ---------- Smaller screens ---------- */
@media (max-width: 768px) {
  html body .vl-tab-nav { flex-wrap: nowrap; overflow-x: auto; }
  html body #tab-contact .vl-section { padding-top: 48px !important; }
}
 
/* =========================================================
   CONTACT CARD ORDER: Secondary Email + Secondary Phone
   move below the Mailing Address
   ========================================================= */
html body #tab-contact .vl-section:first-of-type > :nth-child(1),
html body #tab-contact .vl-section:first-of-type > :nth-child(2) { order: 0; } /* Email, Phone */
html body #tab-contact .vl-section:first-of-type > :nth-child(5),
html body #tab-contact .vl-section:first-of-type > :nth-child(6) { order: 1; } /* Address, County */
html body #tab-contact .vl-section:first-of-type > :nth-child(7) { order: 2; }  /* Mailing Address */
html body #tab-contact .vl-section:first-of-type > :nth-child(3),
html body #tab-contact .vl-section:first-of-type > :nth-child(4) { order: 3; }  /* Secondary Email, Secondary Phone */
 
/* =========================================================
   HEADER: title + smaller action buttons
   ========================================================= */
html body .vl-profile-header {
  border-bottom: 2px solid rgba(201,165,76,.45) !important;
}
html body .vl-profile-header .kt-portlet__head-title {
  color: #f1d98a !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}
html body .vl-profile-actions { display: flex; align-items: center; gap: 8px; }
 
/* Merge duplicate + Mark as Deceased: compact outline chips */
html body .vl-profile-actions .btn.btn-secondary {
  height: 28px !important;
  padding: 0 10px !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid rgba(201,165,76,.35) !important;
  color: #b9ad92 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  box-shadow: none !important;
}
html body .vl-profile-actions .btn.btn-secondary i { font-size: .8rem !important; color: inherit !important; }
html body .vl-profile-actions button.btn.btn-secondary:hover {
  border-color: #c9a54c !important; color: #f1d98a !important; background: rgba(201,165,76,.08) !important;
}
html body .vl-profile-actions a.btn.btn-secondary:hover {          /* Deceased: red on hover only */
  border-color: #c0504d !important; color: #ff8a80 !important; background: rgba(192,80,77,.1) !important;
}
 
/* =========================================================
   PROFILE CARD
   ========================================================= */
html body .vl-profile-card {
  border: 1px solid rgba(201,165,76,.45) !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: linear-gradient(180deg,#141210 0%,#0b0b0b 100%) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
html body .vl-client-name {
  font-size: 1.55rem !important;
  letter-spacing: .01em;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
html body .vl-client-name::before {               /* person ring */
  content: "";
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  border: 2px solid #c9a54c;
  background: #1a160e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3c46c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E") center/22px no-repeat;
}
html body .vl-intake-status {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,165,76,.5);
  background: rgba(201,165,76,.1);
  color: #f1d98a !important;
  font-size: .72rem !important;
  text-transform: uppercase;
  letter-spacing: .06em;
}
 
/* Contact chips */
html body .vl-contact-summary { gap: 10px !important; }
html body .vl-contact-chip {
  border: 1px solid rgba(201,165,76,.35) !important;
  border-radius: 10px !important;
  background: #121110 !important;
  padding: 9px 14px !important;
  transition: border-color .15s;
}
html body a.vl-contact-chip:hover { border-color: #c9a54c !important; }
html body .vl-contact-chip i { color: #c9a54c !important; }
 
/* Agent / preference labels + selects */
html body .vl-profile-meta label,
html body .vl-profile-meta .vl-meta-label {
  color: #c9a54c !important;
  font-size: .7rem !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800 !important;
}
html body .vl-profile-card select.form-control {
  background-color: #121110 !important;
  border: 1px solid rgba(201,165,76,.35) !important;
  border-radius: 10px !important;
  color: #f3efe6 !important;
  height: 40px !important;
}
html body .vl-profile-card select.form-control:focus {
  border-color: #c9a54c !important;
  box-shadow: 0 0 0 3px rgba(201,165,76,.18) !important;
}
 
/* =========================================================
   TABS spacing
   ========================================================= */
html body .vl-tab-nav { margin-top: 18px; }
 
/* =========================================================
   SECTION ORDER: Personal → Contact → Client Details
   (titles follow the cards; page code is unchanged)
   ========================================================= */
html body #tab-contact > .vl-card > h5                      { order: 0; }
html body #tab-contact > .vl-card > .vl-section:nth-of-type(2) { order: 1; } /* Personal */
html body #tab-contact > .vl-card > .vl-section:nth-of-type(1) { order: 2; } /* Contact */
html body #tab-contact > .vl-card > .vl-section:nth-of-type(3) { order: 3; } /* Client Details */
html body #tab-contact > .vl-card > :not(h5):not(.vl-section)  { order: 4; }
 
/* =========================================================
   HEADER BUTTON SIZES (overrides the compact chips above)
   Edit = normal gold outline button
   Merge duplicate + Mark as Deceased = quiet text links with icons,
   split by a thin gold divider. Deceased turns red only on hover.
   ========================================================= */
html body .vl-profile-actions a.btn.btn-secondary:has(.la-edit) {
  height: 34px !important;
  padding: 0 14px !important;
  font-size: .82rem !important;
  color: #f1d98a !important;
  border-color: rgba(201,165,76,.6) !important;
}
html body .vl-profile-actions button.btn.btn-secondary,
html body .vl-profile-actions a.btn.btn-secondary:has(.la-ban) {
  height: 22px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #8f8673 !important;
  font-size: .68rem !important;
  font-weight: 600 !important;
  gap: 4px;
}
html body .vl-profile-actions button.btn.btn-secondary { margin-left: 6px; }
html body .vl-profile-actions a.btn.btn-secondary:has(.la-ban) {
  position: relative;
  margin-left: 12px;
}
html body .vl-profile-actions a.btn.btn-secondary:has(.la-ban)::before {   /* divider */
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(201,165,76,.35);
}
html body .vl-profile-actions button.btn.btn-secondary i,
html body .vl-profile-actions a.btn.btn-secondary:has(.la-ban) i { font-size: .75rem !important; }
html body .vl-profile-actions button.btn.btn-secondary:hover {
  color: #f1d98a !important; background: transparent !important; text-decoration: underline;
}
html body .vl-profile-actions a.btn.btn-secondary:has(.la-ban):hover {
  color: #ff8a80 !important; background: transparent !important; text-decoration: underline;
}
 
/* Colour accents: Merge = gold icon, Mark as Deceased = red icon */
html body .vl-profile-actions button.btn.btn-secondary i { color: #e3c46c !important; }
html body .vl-profile-actions button.btn.btn-secondary { color: #cbb98a !important; }
html body .vl-profile-actions a.btn.btn-secondary:has(.la-ban) i { color: #e5534b !important; }
html body .vl-profile-actions a.btn.btn-secondary:has(.la-ban) { color: #d98c86 !important; }
html body .vl-profile-actions button.btn.btn-secondary:hover { color: #f1d98a !important; }
html body .vl-profile-actions a.btn.btn-secondary:has(.la-ban):hover { color: #ff8a80 !important; }
 
/* =========================================================
   MODERN FINISH — stacked cards (Personal → Contact → Client Details)
   Same layout as the original, with a cleaner, more modern look:
   gold icon tile + title + subtitle, soft glass cards, faded row
   lines, gold dot before each label, row hover glow.
   ========================================================= */
html body #tab-contact > .vl-card { gap: 22px; }
 
html body #tab-contact .vl-section {
  padding: 84px 10px 10px !important;
  border: 1px solid rgba(201,165,76,.32) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(90deg, #e8c872, #c9a54c 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 140px at 0% 0%, rgba(201,165,76,.14), transparent 70%),
    linear-gradient(180deg, #121110 0%, #0a0a0a 100%) !important;
  box-shadow: 0 1px 0 rgba(232,200,114,.25) inset, 0 18px 40px rgba(0,0,0,.5);
  overflow: hidden;
}
/* subtitle under the section title */
html body #tab-contact .vl-section::after {
  top: 45px !important; left: 80px !important; right: auto !important;
  height: auto !important;
  background: none !important;
  color: #8f8775;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
}
html body #tab-contact .vl-section:nth-of-type(2)::after { content: "Identity & citizenship"; }
html body #tab-contact .vl-section:nth-of-type(1)::after { content: "How to reach the client"; }
html body #tab-contact .vl-section:nth-of-type(3)::after { content: "Coverage & account"; }
 
/* Header: icon tile + title + subtitle (two lines in one pseudo-element) */
html body #tab-contact .vl-section::before {
  top: 22px !important;
  left: 24px !important;
  padding-left: 56px !important;
  line-height: 22px !important;
  font-size: .95rem !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  color: #fff !important;
  background-repeat: no-repeat !important;
  background-size: 42px 42px !important;
  background-position: left top !important;
  min-height: 42px;
  padding-top: 0 !important;
}
html body #tab-contact .vl-section:nth-of-type(2)::before {
  content: "Personal";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e8c872'/%3E%3Cstop offset='1' stop-color='%23b38e3a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%231a1408' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='20' cy='16' r='5'/%3E%3Cpath d='M11 30c1.5-5 5-7 9-7s7.5 2 9 7'/%3E%3C/g%3E%3C/svg%3E") !important;
}
html body #tab-contact .vl-section:nth-of-type(1)::before {
  content: "Contact";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e8c872'/%3E%3Cstop offset='1' stop-color='%23b38e3a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%231a1408' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='12' width='20' height='16' rx='2'/%3E%3Cpath d='m30 14-10 7-10-7'/%3E%3C/g%3E%3C/svg%3E") !important;
}
html body #tab-contact .vl-section:nth-of-type(3)::before {
  content: "Client Details";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e8c872'/%3E%3Cstop offset='1' stop-color='%23b38e3a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%231a1408' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10l-8 3v6c0 5 3.4 9 8 11 4.6-2 8-6 8-11v-6z'/%3E%3Cpath d='m16.5 20 2.5 2.5 4.5-5'/%3E%3C/g%3E%3C/svg%3E") !important;
}
 
/* Fields: faded gold row lines, hover glow */
html body #tab-contact .vl-section > [class*="col-"] {
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 12px;
  background-image: linear-gradient(90deg, transparent, rgba(201,165,76,.35) 15%, rgba(201,165,76,.35) 85%, transparent) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 1px !important;
  background-position: bottom !important;
  transition: background-color .15s;
}
html body #tab-contact .vl-section > [class*="col-"]:hover { background-color: rgba(201,165,76,.06) !important; }
 
/* Label with a small gold dot */
html body #tab-contact .vl-section .vl-label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px !important;
  font-size: .66rem !important;
  color: #c9a54c !important;
}
html body #tab-contact .vl-section .vl-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #c9a54c;
  box-shadow: 0 0 6px rgba(232,200,114,.7);
  flex: 0 0 6px;
}
html body #tab-contact .vl-section .vl-value {
  margin: 0 !important;
  padding-left: 13px;
  font-size: 1.06rem;
  color: #f7f3ea !important;
}
html body #tab-contact .vl-section .vl-value:is(:empty) { color: #6f6a60 !important; }
html body #tab-contact .vl-section > [class*="col-"] > form { margin: 0; }
html body #tab-contact .vl-section select.form-control { margin-left: 13px; height: 38px; max-width: 260px; }
 
/* Monthly Premium: gold pill highlight */
html body #tab-contact .vl-section-split > :nth-child(5) .vl-value {
  display: inline-block;
  margin-left: 13px !important;
  padding: 3px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232,200,114,.22), rgba(201,165,76,.1));
  border: 1px solid rgba(232,200,114,.55);
}
 
/* =========================================================
   HOUSEHOLD TAB — each member becomes a modern card
   Row 1: person ring + name · relationship chip · insured status · ⋮
   Row 2: eight small labeled tiles (DOB, SSN, Gender, Immigration,
          Income, Employer, Applying, Tobacco)
   Wide screens only (the page already stacks the table below 992px).
   ========================================================= */
html body #tab-household > .vl-card {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
html body #tab-household > .vl-card > .d-flex:first-child {
  padding: 18px 22px !important;
  margin-bottom: 18px !important;
  border: 1px solid rgba(201,165,76,.32);
  border-radius: 20px;
  background:
    linear-gradient(90deg, #e8c872, #c9a54c 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 140px at 0% 0%, rgba(201,165,76,.14), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a);
}
html body #tab-household > .vl-card > .d-flex:first-child h5 {
  position: relative;
  padding-left: 56px;
  margin: 0 0 2px !important;
  min-height: 42px;
  line-height: 22px;
  color: #fff !important;
  font-weight: 800;
}
html body #tab-household > .vl-card > .d-flex:first-child h5::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e8c872'/%3E%3Cstop offset='1' stop-color='%23b38e3a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%231a1408' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 19l10-8 10 8'/%3E%3Cpath d='M13 17v12h14V17'/%3E%3Cpath d='M18 29v-6h4v6'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
html body #tab-household > .vl-card > .d-flex:first-child .text-muted {
  padding-left: 56px;
  margin-top: -18px;
  color: #8f8775 !important;
  font-size: .8rem;
}
html body #tab-household > .vl-card > .d-flex:first-child .btn {
  height: 36px; padding: 0 16px !important; border-radius: 999px !important;
  font-weight: 700 !important; display: inline-flex; align-items: center; gap: 6px;
}
html body #tab-household > .vl-card > .d-flex:first-child .btn-secondary {
  background: transparent !important; border: 1px solid rgba(201,165,76,.6) !important; color: #f1d98a !important;
}
html body #tab-household > .vl-card > .d-flex:first-child .btn-primary {
  background: linear-gradient(180deg, #e8c872, #c9a54c) !important; border: 0 !important; color: #1a1408 !important;
}
 
/* DataTables controls */
html body #householdTable_wrapper .dataTables_length,
html body #householdTable_wrapper .dataTables_filter,
html body #householdTable_wrapper .dataTables_info { color: #8f8775 !important; font-size: .8rem; }
html body #householdTable_wrapper select,
html body #householdTable_wrapper input[type="search"] {
  background: #121110 !important; border: 1px solid rgba(201,165,76,.35) !important;
  border-radius: 999px !important; color: #f3efe6 !important; height: 34px; padding: 0 12px !important;
}
html body #householdTable_wrapper .pagination .page-link {
  background: transparent !important; border: 1px solid rgba(201,165,76,.3) !important;
  color: #e8c872 !important; border-radius: 999px !important; margin: 0 3px;
}
html body #householdTable_wrapper .pagination .active .page-link {
  background: linear-gradient(180deg, #e8c872, #c9a54c) !important; color: #1a1408 !important; border-color: transparent !important;
}
 
@media (min-width: 992px) {
  html body table#householdTable.dataTable { border: 0 !important; border-collapse: separate !important; border-spacing: 0 14px !important; background: transparent !important; }
  html body table#householdTable.dataTable thead { display: none !important; }
  html body table#householdTable.dataTable tbody tr {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) 48px;
    gap: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(201,165,76,.32) !important;
    border-radius: 18px;
    background:
      radial-gradient(120% 120px at 0% 0%, rgba(201,165,76,.10), transparent 70%),
      linear-gradient(180deg, #121110, #0a0a0a) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.45);
  }
  html body table#householdTable.dataTable tbody tr:hover { border-color: rgba(232,200,114,.7) !important; }
  html body table#householdTable.dataTable tbody td {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    min-width: 0 !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 12px;
    background: transparent !important;
    color: #f7f3ea !important;
    font-size: .95rem;
    font-weight: 600;
    text-align: left !important;
    white-space: normal !important;
  }
  /* Row 1 */
  html body table#householdTable.dataTable tbody td:nth-child(1) {          /* Name */
    grid-column: 1 / 5; grid-row: 1;
    flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px;
    font-size: 1.15rem !important;
  }
  html body table#householdTable.dataTable tbody td:nth-child(1)::before {
    content: ""; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    border: 2px solid #c9a54c;
    background: #1a160e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3c46c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  }
  html body table#householdTable.dataTable tbody td:nth-child(1) strong { color: #fff !important; font-weight: 800; }
  html body table#householdTable.dataTable tbody td:nth-child(2) {          /* Relationship chip */
    grid-column: 5 / 7; grid-row: 1;
    flex-direction: row; align-items: center;
  }
  html body table#householdTable.dataTable tbody td:nth-child(2)::after { content: none; }
  html body table#householdTable.dataTable tbody td:nth-child(11) {         /* Insured status */
    grid-column: 7 / 9; grid-row: 1; align-items: stretch;
  }
  html body table#householdTable.dataTable tbody td:nth-child(12) {         /* Actions */
    grid-column: 9; grid-row: 1 / 3; align-items: center; justify-content: flex-start; padding: 10px 0 !important;
  }
  /* Row 2: tiles */
  html body table#householdTable.dataTable tbody td:nth-child(n+3):nth-child(-n+10) {
    grid-row: 2;
    background: rgba(255,255,255,.025) !important;
    border: 1px solid rgba(201,165,76,.16) !important;
  }
  html body table#householdTable.dataTable tbody td:nth-child(3)  { grid-column: 1; }
  html body table#householdTable.dataTable tbody td:nth-child(4)  { grid-column: 2; }
  html body table#householdTable.dataTable tbody td:nth-child(5)  { grid-column: 3; }
  html body table#householdTable.dataTable tbody td:nth-child(6)  { grid-column: 4; }
  html body table#householdTable.dataTable tbody td:nth-child(7)  { grid-column: 5; color: #e8c872 !important; font-weight: 800; }
  html body table#householdTable.dataTable tbody td:nth-child(8)  { grid-column: 6; }
  html body table#householdTable.dataTable tbody td:nth-child(9)  { grid-column: 7; }
  html body table#householdTable.dataTable tbody td:nth-child(10) { grid-column: 8; }
 
  /* small gold labels */
  html body table#householdTable.dataTable tbody td:nth-child(n+3)::before,
  html body table#householdTable.dataTable tbody td:nth-child(2)::before {
    display: block;
    color: #c9a54c;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  html body table#householdTable.dataTable tbody td:nth-child(2)::before  { content: none; }
  html body table#householdTable.dataTable tbody td:nth-child(3)::before  { content: "Date of birth"; }
  html body table#householdTable.dataTable tbody td:nth-child(4)::before  { content: "SSN"; }
  html body table#householdTable.dataTable tbody td:nth-child(5)::before  { content: "Gender"; }
  html body table#householdTable.dataTable tbody td:nth-child(6)::before  { content: "Immigration"; }
  html body table#householdTable.dataTable tbody td:nth-child(7)::before  { content: "Income"; }
  html body table#householdTable.dataTable tbody td:nth-child(8)::before  { content: "Employer"; }
  html body table#householdTable.dataTable tbody td:nth-child(9)::before  { content: "Applying"; }
  html body table#householdTable.dataTable tbody td:nth-child(10)::before { content: "Tobacco"; }
  html body table#householdTable.dataTable tbody td:nth-child(11)::before { content: "Insured status"; }
  html body table#householdTable.dataTable tbody td:nth-child(12)::before { content: none; }
}
/* Relationship chip (all sizes) */
html body table#householdTable tbody td:nth-child(2) {
  color: #f1d98a !important;
}
@media (min-width: 992px) {
  html body table#householdTable.dataTable tbody td:nth-child(2) {
    align-self: center;
    width: max-content;
    padding: 6px 14px !important;
    border: 1px solid rgba(201,165,76,.5) !important;
    border-radius: 999px;
    background: rgba(201,165,76,.1) !important;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
  }
}
html body table#householdTable select.form-control {
  height: 36px !important;
  border-radius: 999px !important;
  background-color: #0b0b0b !important;
  border: 1px solid rgba(201,165,76,.45) !important;
  color: #f5f1e8 !important;
  padding: 0 14px !important;
}
html body table#householdTable .ssn-toggle { color: #e8c872 !important; }
 
/* ⋮ menu: gold circle button + cream menu (shared with Client Files) */
html body #tab-household .dropdown > .btn-secondary,
html body #tab-client-files .ws-file-actions > .btn-secondary {
  width: 36px; height: 36px; padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1px solid rgba(201,165,76,.55) !important;
  color: #e8c872 !important;
  font-weight: 900 !important;
  display: inline-flex !important; align-items: center; justify-content: center;
}
html body #tab-household .dropdown > .btn-secondary:hover,
html body #tab-client-files .ws-file-actions > .btn-secondary:hover {
  background: rgba(201,165,76,.15) !important; border-color: #e8c872 !important;
}
 
/* =========================================================
   CLIENT FILES TAB — modern folders + file cards
   ========================================================= */
html body #tab-client-files .ws-files {
  gap: 18px;
  background: transparent !important;
  border: 0 !important;
}
/* Folder rail */
html body #tab-client-files .ws-folders {
  padding: 16px 12px !important;
  border: 1px solid rgba(201,165,76,.32) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(140% 160px at 0% 0%, rgba(201,165,76,.12), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
}
html body #tab-client-files .ws-folders-head h5 {
  color: #c9a54c !important; font-size: .68rem !important; font-weight: 800 !important; letter-spacing: .16em;
}
html body #tab-client-files .ws-folders-toggle {
  border-radius: 50% !important; border: 1px solid rgba(201,165,76,.45) !important;
  background: transparent !important; color: #e8c872 !important;
}
html body #tab-client-files .ws-folder {
  display: flex !important; align-items: center; gap: 10px;
  width: 100%;
  margin-bottom: 4px;
  padding: 10px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #d9d2c3 !important;
  font-weight: 600;
  text-align: left;
  transition: background .15s, border-color .15s;
}
html body #tab-client-files .ws-folder i {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(201,165,76,.12);
  color: #e8c872 !important;
  font-size: 1rem;
}
html body #tab-client-files .ws-folder span { flex: 1; line-height: 1.2; }
html body #tab-client-files .ws-folder b {
  min-width: 24px; height: 22px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #8f8775;
  font-size: .72rem;
}
html body #tab-client-files .ws-folder:hover { background: rgba(201,165,76,.08) !important; border-color: rgba(201,165,76,.25) !important; }
html body #tab-client-files .ws-folder.active {
  background: linear-gradient(180deg, rgba(232,200,114,.2), rgba(201,165,76,.08)) !important;
  border-color: rgba(232,200,114,.6) !important;
  color: #fff !important;
}
html body #tab-client-files .ws-folder.active i { background: linear-gradient(180deg, #e8c872, #c9a54c); color: #1a1408 !important; }
html body #tab-client-files .ws-folder.active b { background: #c9a54c; color: #1a1408; }
 
/* File panel */
html body #tab-client-files .ws-file-content {
  padding: 20px 22px !important;
  border: 1px solid rgba(201,165,76,.32);
  border-radius: 20px;
  background:
    linear-gradient(90deg, #e8c872, #c9a54c 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 140px at 0% 0%, rgba(201,165,76,.12), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a);
  min-height: 100%;
}
html body #tab-client-files .ws-folder-heading { align-items: center; }
html body #tab-client-files .ws-folder-heading h4 {
  display: flex; align-items: center; gap: 12px;
  margin: 0; color: #fff !important; font-size: 1.15rem; font-weight: 800;
}
html body #tab-client-files .ws-folder-heading h4 i {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #e8c872, #b38e3a);
  color: #1a1408 !important;
  font-size: 1.25rem;
}
html body #tab-client-files .ws-button-row .btn {
  height: 36px; padding: 0 16px !important; border-radius: 999px !important; font-weight: 700 !important;
  background: linear-gradient(180deg, #e8c872, #c9a54c) !important; border: 0 !important; color: #1a1408 !important;
}
html body #tab-client-files .ws-button-row .btn + .btn {
  background: transparent !important; border: 1px solid rgba(201,165,76,.6) !important; color: #f1d98a !important;
}
 
/* File rows as cards */
html body #tab-client-files table.ws-table { border-collapse: separate !important; border-spacing: 0 !important; background: transparent !important; width: 100%; }
html body #tab-client-files table.ws-table thead { display: none; }
html body #tab-client-files table.ws-table tbody tr {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(110px, .8fr) minmax(150px, 1fr) minmax(120px, .8fr) 46px;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(201,165,76,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  transition: border-color .15s, background .15s;
}
html body #tab-client-files table.ws-table tbody tr:hover { border-color: rgba(232,200,114,.6); background: rgba(201,165,76,.06); }
html body #tab-client-files table.ws-table tbody td {
  display: block; padding: 0 !important; border: 0 !important; background: transparent !important;
  color: #e9e3d6 !important; font-size: .9rem; min-width: 0;
}
/* File: doc icon tile + name + uploader */
html body #tab-client-files table.ws-table tbody td:nth-child(1) {
  position: relative; padding-left: 54px !important; min-height: 42px;
  display: flex; flex-direction: column; justify-content: center;
}
html body #tab-client-files table.ws-table tbody td:nth-child(1)::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(201,165,76,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E") center / 22px no-repeat;
  border: 1px solid rgba(201,165,76,.35);
}
html body #tab-client-files table.ws-table tbody td:nth-child(1) strong { color: #fff !important; font-size: 1rem; font-weight: 800; }
html body #tab-client-files table.ws-table tbody td:nth-child(1) small { color: #8f8775 !important; font-size: .78rem; }
/* Type chip */
html body #tab-client-files table.ws-table tbody td:nth-child(2) {
  justify-self: start; padding: 5px 12px !important; border-radius: 999px;
  border: 1px solid rgba(201,165,76,.4) !important; color: #f1d98a !important; font-size: .78rem; font-weight: 700;
}
/* Uploaded: calendar icon */
html body #tab-client-files table.ws-table tbody td:nth-child(3) {
  padding-left: 26px !important; font-weight: 600;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a54c' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") left center / 18px no-repeat !important;
}
html body #tab-client-files table.ws-table tbody td:nth-child(4) .ws-badge {
  padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700;
}
html body #tab-client-files table.ws-table tbody td:nth-child(5) { justify-self: end; }
 
/* Empty folder */
html body #tab-client-files table.ws-table tbody tr:has(.ws-empty) {
  display: block; padding: 34px 16px; text-align: center;
  border: 1.5px dashed rgba(201,165,76,.4); background: rgba(201,165,76,.03);
}
html body #tab-client-files table.ws-table td.ws-empty {
  display: block; padding-top: 52px !important; text-align: center !important;
  color: #8f8775 !important; font-size: .92rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a54c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center top / 40px no-repeat !important;
}
 
/* =========================================================
   MODERN HEADER, PROFILE BLOCK + TAB ICONS
   (banner colors — blue status bar, enrollment step cards — unchanged)
   ========================================================= */
/* Back: gold gradient pill */
html body .vl-profile-actions .btn.btn-primary {
  height: 36px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #f0d483, #c9a54c) !important;
  color: #1a1408 !important;
  font-weight: 800 !important;
  font-size: .84rem !important;
  display: inline-flex !important; align-items: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(201,165,76,.3), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .15s, box-shadow .15s;
}
html body .vl-profile-actions .btn.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(201,165,76,.4); }
html body .vl-profile-actions .btn.btn-primary i {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(26,20,8,.15); color: #1a1408 !important; font-size: .85rem !important;
}
/* Edit: glass pill with gold icon tile */
html body .vl-profile-actions a.btn.btn-secondary:has(.la-edit) {
  height: 36px !important;
  padding: 0 16px 0 6px !important;
  border: 1px solid rgba(201,165,76,.55) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)) !important;
  color: #f7f3ea !important;
  font-weight: 700 !important;
  gap: 8px;
  backdrop-filter: blur(6px);
}
html body .vl-profile-actions a.btn.btn-secondary:has(.la-edit) i {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #e8c872, #c9a54c); color: #1a1408 !important; font-size: .8rem !important;
}
html body .vl-profile-actions a.btn.btn-secondary:has(.la-edit):hover { border-color: #e8c872 !important; background: rgba(201,165,76,.12) !important; }
/* Merge duplicate: small tinted chip with color */
html body .vl-profile-actions button.btn.btn-secondary {
  height: 26px !important;
  padding: 0 10px !important;
  margin-left: 4px;
  border: 1px solid rgba(96,165,250,.45) !important;
  border-radius: 999px !important;
  background: rgba(96,165,250,.12) !important;
  color: #a9cdfb !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
}
html body .vl-profile-actions button.btn.btn-secondary i { color: #60a5fa !important; }
html body .vl-profile-actions button.btn.btn-secondary:hover { background: rgba(96,165,250,.22) !important; color: #dbeafe !important; text-decoration: none; }
 
/* Profile block: bigger person ring + name, chips as icon tiles */
html body .vl-client-name { font-size: 1.7rem !important; gap: 14px; }
html body .vl-client-name::before {
  width: 54px !important; height: 54px !important; flex: 0 0 54px !important;
  box-shadow: 0 0 0 4px rgba(201,165,76,.15), 0 8px 18px rgba(0,0,0,.45);
  background-size: 26px !important;
}
html body .vl-contact-chip {
  border-radius: 14px !important;
  background: linear-gradient(180deg, #17140e, #0f0e0c) !important;
  padding: 10px 14px !important;
  box-shadow: inset 0 1px 0 rgba(232,200,114,.12);
}
html body .vl-contact-chip i {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: inline-flex !important; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #e8c872, #c9a54c);
  color: #1a1408 !important;
  font-size: 1rem !important;
}
 
/* Tabs: icon on every pill (icons follow the text color) */
html body .vl-tab-nav .nav-link::before {
  content: "";
  width: 17px; height: 17px; flex: 0 0 17px;
  background: currentColor;
  -webkit-mask: var(--tab-ic) center / contain no-repeat;
          mask: var(--tab-ic) center / contain no-repeat;
}
html body .vl-tab-nav .nav-link { color: #e9e3d6 !important; }
html body .vl-tab-nav .nav-link:not(.active)::before { background: #e8c872; }
html body .vl-tab-nav a[href="#tab-contact"]       { --tab-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M15 8h3M15 12h3M6 16c.5-1.5 1.7-2 3-2s2.5.5 3 2'/%3E%3C/svg%3E"); }
html body .vl-tab-nav a[href="#tab-household"]     { --tab-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
html body .vl-tab-nav a[href="#tab-compliance"]    { --tab-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.3 8 11 4.6-1.7 8-6 8-11V5z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
html body .vl-tab-nav a[href="#tab-client-files"]  { --tab-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
html body .vl-tab-nav a[href="#tab-policies"]      { --tab-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
html body .vl-tab-nav a[href="#tab-payments"]      { --tab-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
html body .vl-tab-nav a[href="#tab-general-notes"] { --tab-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12l-4 4H4z'/%3E%3Cpath d='M16 20v-4h4M8 9h8M8 13h5'/%3E%3C/svg%3E"); }
html body .vl-tab-nav a[href="#tab-activity"]      { --tab-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
 
/* tidy: tables sit on a transparent background */
html body #householdTable_wrapper, html body table#householdTable, html body table#householdTable tbody,
html body #tab-client-files table.ws-table, html body #tab-client-files .ws-table-wrap { background: transparent !important; }
@media (min-width: 992px) {
  html body table#householdTable.dataTable tbody td:nth-child(2) { justify-self: start; }
}
 
/* =========================================================
   COLOR ACCENTS — gold stays the base; each area gets its own color
   Personal = orange · Contact = blue · Client Details = green
   Household = teal · chips, folders and tab icons each get a color
   ========================================================= */
html body #tab-contact .vl-section:nth-of-type(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fdba74'/%3E%3Cstop offset='1' stop-color='%23f97316'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='16' r='5'/%3E%3Cpath d='M11 30c1.5-5 5-7 9-7s7.5 2 9 7'/%3E%3C/g%3E%3C/svg%3E") !important; }
html body #tab-contact .vl-section:nth-of-type(2) {
  background:
    linear-gradient(90deg, #fdba74, #f97316 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 140px at 0% 0%, rgba(251,146,60,.14), transparent 70%),
    linear-gradient(180deg, #121110 0%, #0a0a0a 100%) !important;
  border-color: rgba(251,146,60,.3) !important;
}
html body #tab-contact .vl-section:nth-of-type(2) .vl-label::before { background: #f97316; box-shadow: 0 0 6px rgba(251,146,60,.8); }
html body #tab-contact .vl-section:nth-of-type(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2393c5fd'/%3E%3Cstop offset='1' stop-color='%233b82f6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='12' width='20' height='16' rx='2'/%3E%3Cpath d='m30 14-10 7-10-7'/%3E%3C/g%3E%3C/svg%3E") !important; }
html body #tab-contact .vl-section:nth-of-type(1) {
  background:
    linear-gradient(90deg, #93c5fd, #3b82f6 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 140px at 0% 0%, rgba(96,165,250,.14), transparent 70%),
    linear-gradient(180deg, #121110 0%, #0a0a0a 100%) !important;
  border-color: rgba(96,165,250,.3) !important;
}
html body #tab-contact .vl-section:nth-of-type(1) .vl-label::before { background: #3b82f6; box-shadow: 0 0 6px rgba(96,165,250,.8); }
html body #tab-contact .vl-section:nth-of-type(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%236ee7b7'/%3E%3Cstop offset='1' stop-color='%2310b981'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10l-8 3v6c0 5 3.4 9 8 11 4.6-2 8-6 8-11v-6z'/%3E%3Cpath d='m16.5 20 2.5 2.5 4.5-5'/%3E%3C/g%3E%3C/svg%3E") !important; }
html body #tab-contact .vl-section:nth-of-type(3) {
  background:
    linear-gradient(90deg, #6ee7b7, #10b981 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 140px at 0% 0%, rgba(52,211,153,.14), transparent 70%),
    linear-gradient(180deg, #121110 0%, #0a0a0a 100%) !important;
  border-color: rgba(52,211,153,.3) !important;
}
html body #tab-contact .vl-section:nth-of-type(3) .vl-label::before { background: #10b981; box-shadow: 0 0 6px rgba(52,211,153,.8); }
html body #tab-household > .vl-card > .d-flex:first-child h5::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235eead4'/%3E%3Cstop offset='1' stop-color='%2314b8a6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 19l10-8 10 8'/%3E%3Cpath d='M13 17v12h14V17'/%3E%3Cpath d='M18 29v-6h4v6'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain !important; }
html body #tab-household > .vl-card > .d-flex:first-child {
  background:
    linear-gradient(90deg, #5eead4, #14b8a6 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 140px at 0% 0%, rgba(45,212,191,.14), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
}
html body table#householdTable.dataTable tbody td:nth-child(2) { color: #5eead4 !important; border-color: rgba(45,212,191,.5) !important; background: rgba(45,212,191,.1) !important; }
html body table#householdTable.dataTable tbody td:nth-child(7) { color: #6ee7b7 !important; }
html body table#householdTable tbody tr td:nth-child(1)::before { border-color: #14b8a6 !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(1) i { background: linear-gradient(180deg, #6ee7b7, #10b981) !important; color: #fff !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(1) { border-color: rgba(52,211,153,.35) !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(2) i { background: linear-gradient(180deg, #93c5fd, #3b82f6) !important; color: #fff !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(2) { border-color: rgba(96,165,250,.35) !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(3) i { background: linear-gradient(180deg, #c4b5fd, #8b5cf6) !important; color: #fff !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(3) { border-color: rgba(167,139,250,.35) !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(4) i { background: linear-gradient(180deg, #fdba74, #f97316) !important; color: #fff !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(4) { border-color: rgba(251,146,60,.35) !important; }
html body .vl-tab-nav a[href="#tab-contact"]:not(.active)::before { background: #93c5fd !important; }
html body .vl-tab-nav a[href="#tab-household"]:not(.active)::before { background: #5eead4 !important; }
html body .vl-tab-nav a[href="#tab-compliance"]:not(.active)::before { background: #6ee7b7 !important; }
html body .vl-tab-nav a[href="#tab-client-files"]:not(.active)::before { background: #c4b5fd !important; }
html body .vl-tab-nav a[href="#tab-policies"]:not(.active)::before { background: #7dd3fc !important; }
html body .vl-tab-nav a[href="#tab-payments"]:not(.active)::before { background: #fdba74 !important; }
html body .vl-tab-nav a[href="#tab-general-notes"]:not(.active)::before { background: #f9a8d4 !important; }
html body .vl-tab-nav a[href="#tab-activity"]:not(.active)::before { background: #cbd5e1 !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(1) i { background: rgba(96,165,250,.16) !important; color: #93c5fd !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(1) i { background: linear-gradient(180deg, #93c5fd, #3b82f6) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(2) i { background: rgba(167,139,250,.16) !important; color: #c4b5fd !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(2) i { background: linear-gradient(180deg, #c4b5fd, #8b5cf6) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(3) i { background: rgba(45,212,191,.16) !important; color: #5eead4 !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(3) i { background: linear-gradient(180deg, #5eead4, #14b8a6) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(4) i { background: rgba(52,211,153,.16) !important; color: #6ee7b7 !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(4) i { background: linear-gradient(180deg, #6ee7b7, #10b981) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(5) i { background: rgba(201,165,76,.16) !important; color: #e8c872 !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(5) i { background: linear-gradient(180deg, #e8c872, #c9a54c) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(6) i { background: rgba(244,114,182,.16) !important; color: #f9a8d4 !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(6) i { background: linear-gradient(180deg, #f9a8d4, #ec4899) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(7) i { background: rgba(56,189,248,.16) !important; color: #7dd3fc !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(7) i { background: linear-gradient(180deg, #7dd3fc, #0ea5e9) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(8) i { background: rgba(52,211,153,.16) !important; color: #6ee7b7 !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(8) i { background: linear-gradient(180deg, #6ee7b7, #10b981) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(9) i { background: rgba(251,146,60,.16) !important; color: #fdba74 !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(9) i { background: linear-gradient(180deg, #fdba74, #f97316) !important; color: #fff !important; }
html body #tab-client-files .ws-folders > .ws-folder:nth-of-type(10) i { background: rgba(148,163,184,.16) !important; color: #cbd5e1 !important; }
html body #tab-client-files .ws-folders > .ws-folder.active:nth-of-type(10) i { background: linear-gradient(180deg, #cbd5e1, #64748b) !important; color: #fff !important; }
html body #tab-client-files table.ws-table tbody td:nth-child(2) { border-color: rgba(167,139,250,.45) !important; color: #c4b5fd !important; background: rgba(167,139,250,.08) !important; }
html body #tab-client-files table.ws-table tbody td:nth-child(1)::before { background-color: rgba(96,165,250,.14) !important; border-color: rgba(96,165,250,.4) !important; }
 
/* =========================================================
   COMPLIANCE · POLICIES · PAYMENTS · GENERAL NOTES · ACTIVITY
   Same modern card look: colored accent line, icon tile on the
   title, gold labels, dark pill inputs, clean table rows.
   Compliance = green · Policies = sky · Payments = orange
   General Notes = pink · Activity = slate
   ========================================================= */
html body #tab-compliance > .vl-card, html body #tab-policies > .vl-card, html body #tab-payments > .vl-card, html body #tab-general-notes > .vl-card, html body #tab-activity > .vl-card {
  position: relative;
  padding: 22px 24px !important;
  border: 1px solid rgba(201,165,76,.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
html body #tab-compliance > .vl-card {
  border-color: rgba(52,211,153,.3) !important;
  background:
    linear-gradient(90deg, #6ee7b7, #10b981 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 160px at 0% 0%, rgba(52,211,153,.13), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
}
html body #tab-compliance > .vl-card h5:first-of-type::before,
html body #tab-compliance > .vl-card .vl-tab-heading h5::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%236ee7b7'/%3E%3Cstop offset='1' stop-color='%2310b981'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10l-8 3v6c0 5 3.4 9 8 11 4.6-2 8-6 8-11v-6z'/%3E%3Cpath d='m16.5 20 2.5 2.5 4.5-5'/%3E%3C/g%3E%3C/svg%3E"); }
html body #tab-policies > .vl-card {
  border-color: rgba(56,189,248,.3) !important;
  background:
    linear-gradient(90deg, #7dd3fc, #0ea5e9 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 160px at 0% 0%, rgba(56,189,248,.13), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
}
html body #tab-policies > .vl-card h5:first-of-type::before,
html body #tab-policies > .vl-card .vl-tab-heading h5::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237dd3fc'/%3E%3Cstop offset='1' stop-color='%230ea5e9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 10h-8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V14z'/%3E%3Cpath d='M23 10v4h4M17 20h6M17 24h4'/%3E%3C/g%3E%3C/svg%3E"); }
html body #tab-payments > .vl-card {
  border-color: rgba(251,146,60,.3) !important;
  background:
    linear-gradient(90deg, #fdba74, #f97316 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 160px at 0% 0%, rgba(251,146,60,.13), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
}
html body #tab-payments > .vl-card h5:first-of-type::before,
html body #tab-payments > .vl-card .vl-tab-heading h5::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fdba74'/%3E%3Cstop offset='1' stop-color='%23f97316'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='13' width='22' height='15' rx='2'/%3E%3Cpath d='M9 18h22M13 24h4'/%3E%3C/g%3E%3C/svg%3E"); }
html body #tab-general-notes > .vl-card {
  border-color: rgba(244,114,182,.3) !important;
  background:
    linear-gradient(90deg, #f9a8d4, #ec4899 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 160px at 0% 0%, rgba(244,114,182,.13), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
}
html body #tab-general-notes > .vl-card h5:first-of-type::before,
html body #tab-general-notes > .vl-card .vl-tab-heading h5::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f9a8d4'/%3E%3Cstop offset='1' stop-color='%23ec4899'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 11h18v12l-5 5H11z'/%3E%3Cpath d='M24 28v-5h5M15 16h10M15 20h6'/%3E%3C/g%3E%3C/svg%3E"); }
html body #tab-activity > .vl-card {
  border-color: rgba(148,163,184,.3) !important;
  background:
    linear-gradient(90deg, #cbd5e1, #64748b 40%, transparent) top / 100% 3px no-repeat,
    radial-gradient(120% 160px at 0% 0%, rgba(148,163,184,.13), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
}
html body #tab-activity > .vl-card h5:first-of-type::before,
html body #tab-activity > .vl-card .vl-tab-heading h5::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23cbd5e1'/%3E%3Cstop offset='1' stop-color='%2364748b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='9'/%3E%3Cpath d='M20 15v5l3 2'/%3E%3C/g%3E%3C/svg%3E"); }
/* Title with icon tile */
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) > .vl-card h5:first-of-type,
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) > .vl-card .vl-tab-heading h5 {
  display: flex !important; align-items: center; gap: 12px;
  color: #fff !important; font-size: 1.2rem !important; font-weight: 800 !important;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) > .vl-card h5:first-of-type::before,
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) > .vl-card .vl-tab-heading h5::before {
  content: ""; width: 42px; height: 42px; flex: 0 0 42px;
  background-repeat: no-repeat; background-size: contain;
}
/* Labels + inputs */
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .vl-label, html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) label {
  color: #c9a54c !important; font-size: .66rem !important; font-weight: 800 !important;
  letter-spacing: .12em; text-transform: uppercase;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .form-control {
  min-height: 40px;
  border-radius: 12px !important;
  background-color: #0b0b0b !important;
  border: 1px solid rgba(201,165,76,.35) !important;
  color: #f5f1e8 !important;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) select.form-control { border-radius: 999px !important; padding: 0 16px !important; }
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .form-control:focus { border-color: #e8c872 !important; box-shadow: 0 0 0 3px rgba(201,165,76,.18) !important; }
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) textarea.form-control { border-radius: 14px !important; }
/* Buttons */
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .btn.btn-primary {
  border: 0 !important; border-radius: 999px !important; padding: 0 16px !important; min-height: 34px;
  background: linear-gradient(180deg, #f0d483, #c9a54c) !important; color: #1a1408 !important; font-weight: 800 !important;
  box-shadow: 0 6px 16px rgba(201,165,76,.25);
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .btn.btn-secondary, html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .btn-group .btn {
  border-radius: 999px !important; background: transparent !important;
  border: 1px solid rgba(201,165,76,.5) !important; color: #f1d98a !important; font-weight: 700 !important;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .btn-group .btn.active { background: rgba(201,165,76,.2) !important; color: #fff !important; }
/* Tables: no vertical lines, gold row lines, small gold header labels */
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) table.dataTable, html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) table.table {
  border: 0 !important; border-collapse: separate !important; border-spacing: 0 !important; background: transparent !important;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) table thead th {
  background: transparent !important; border: 0 !important; border-bottom: 2px solid rgba(201,165,76,.5) !important;
  color: #c9a54c !important; font-size: .66rem !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) table tbody td {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(201,165,76,.22) !important;
  color: #f1ece2 !important; vertical-align: middle !important; padding: 14px 12px !important;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) table tbody tr:hover td { background: rgba(201,165,76,.05) !important; }
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .dataTables_wrapper .dataTables_length, html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .dataTables_wrapper .dataTables_filter, html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .dataTables_wrapper .dataTables_info { color: #8f8775 !important; font-size: .8rem; }
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .dataTables_wrapper input[type="search"], html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .dataTables_wrapper select {
  background: #121110 !important; border: 1px solid rgba(201,165,76,.35) !important; border-radius: 999px !important; color: #f3efe6 !important;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .pagination .page-link { background: transparent !important; border: 1px solid rgba(201,165,76,.3) !important; color: #e8c872 !important; border-radius: 999px !important; margin: 0 3px; }
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .pagination .active .page-link { background: linear-gradient(180deg, #e8c872, #c9a54c) !important; color: #1a1408 !important; }
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .dropdown > .btn-secondary {
  width: 36px; height: 36px; padding: 0 !important; border-radius: 50% !important;
  display: inline-flex !important; align-items: center; justify-content: center;
}
html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) .text-muted { color: #8f8775 !important; }
 
/* Empty tables: dashed placeholder instead of a black band */
html body .tab-pane td.dataTables_empty {
  background: transparent !important; color: #8f8775 !important; padding: 28px !important;
  border: 1.5px dashed rgba(201,165,76,.35) !important; border-radius: 14px;
}
 
/* =========================================================
   ACTIVITY TIMELINE — vertical timeline with glowing dots
   ========================================================= */
html body #tab-activity .item-card {
  position: relative;
  margin: 0 0 0 22px !important;
  padding: 14px 18px 14px 26px !important;
  border: 0 !important;
  border-left: 2px solid rgba(148,163,184,.35) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
html body #tab-activity .item-card::before {
  content: "";
  position: absolute; left: -8px; top: 18px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #0a0a0a; border: 3px solid #e8c872;
  box-shadow: 0 0 10px rgba(232,200,114,.6);
}
html body #tab-activity .item-card > * { position: relative; }
html body #tab-activity .item-card > .d-flex,
html body #tab-activity .item-card > p,
html body #tab-activity .item-card > .text-muted { margin-left: 0; }
html body #tab-activity .item-card:hover { background: linear-gradient(90deg, rgba(201,165,76,.07), transparent 70%) !important; }
html body #tab-activity .item-card:nth-of-type(4n+1)::before { border-color: #60a5fa; box-shadow: 0 0 10px rgba(96,165,250,.6); }
html body #tab-activity .item-card:nth-of-type(4n+2)::before { border-color: #34d399; box-shadow: 0 0 10px rgba(52,211,153,.6); }
html body #tab-activity .item-card:nth-of-type(4n+3)::before { border-color: #a78bfa; box-shadow: 0 0 10px rgba(167,139,250,.6); }
html body #tab-activity .item-card:nth-of-type(4n)::before   { border-color: #fb923c; box-shadow: 0 0 10px rgba(251,146,60,.6); }
html body #tab-activity .item-card .text-white.font-weight-bold { font-size: 1rem; }
html body #tab-activity .item-card .badge {
  padding: 3px 9px; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(201,165,76,.14) !important; color: #e8c872 !important; border: 1px solid rgba(201,165,76,.4);
}
html body #tab-activity .item-card p.text-muted { color: #cfc8b8 !important; font-size: .86rem !important; }
html body #tab-activity .item-card > div.text-muted { color: #8f8775 !important; font-size: .76rem !important; }
html body #tab-activity .item-card a.text-danger {
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(248,113,113,.35);
  color: #fca5a5 !important; font-size: .72rem; font-weight: 700; opacity: .7;
}
html body #tab-activity .item-card:hover a.text-danger { opacity: 1; }
 
/* =========================================================
   GENERAL NOTES — pink accent bar, glass panels
   ========================================================= */
html body #tab-general-notes .ws-bar {
  padding: 14px 20px !important;
  border-radius: 16px !important;
  background: linear-gradient(90deg, rgba(244,114,182,.22), rgba(201,165,76,.12)) !important;
  border: 1px solid rgba(244,114,182,.35) !important;
  color: #fbcfe8 !important;
}
html body #tab-general-notes .ws-bar span:first-child { color: #fff !important; font-weight: 800; letter-spacing: .14em; }
html body #tab-general-notes .ws-panel {
  border: 1px solid rgba(244,114,182,.28) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(120% 140px at 0% 0%, rgba(244,114,182,.1), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
  padding: 18px !important;
}
html body #tab-general-notes .ws-panel.ws-empty {
  border-style: dashed !important; color: #8f8775 !important; text-align: center;
}
html body #tab-general-notes label { color: #f9a8d4 !important; font-size: .66rem !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; }
html body #tab-general-notes .form-control,
html body #tab-general-notes textarea,
html body #tab-general-notes select {
  border-radius: 14px !important; background-color: #0b0b0b !important;
  border: 1px solid rgba(244,114,182,.3) !important; color: #f5f1e8 !important;
}
html body #tab-general-notes .btn-primary {
  border: 0 !important; border-radius: 999px !important;
  background: linear-gradient(180deg, #f0d483, #c9a54c) !important; color: #1a1408 !important; font-weight: 800 !important;
}
html body #tab-activity .item-card .badge.badge-secondary { color: #f1d98a !important; background: rgba(201,165,76,.18) !important; }
 
/* =========================================================
   COMPACT AGENT + PREFERENCE ROW
   Assigned Agent, Sub Agent, Save, Enrollment Period, SMS and
   Email preference all sit on ONE slim row (wraps on small screens).
   ========================================================= */
html body .vl-profile-meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin-top: 12px !important;
}
html body .vl-profile-meta .vl-profile-agents {
  display: flex !important;
  flex: 2 1 560px;
  align-items: flex-end;
  gap: 14px;
  margin: 0 !important;
}
html body .vl-profile-meta .vl-agent-form {
  display: flex !important;
  flex: 1 1 auto;
  align-items: flex-end;
  gap: 10px;
  margin: 0 !important;
}
html body .vl-profile-meta .vl-agent-form > div { flex: 1 1 0; min-width: 0; margin: 0 !important; }
html body .vl-profile-meta .vl-agent-form > div.align-self-end { flex: 0 0 auto; }
html body .vl-profile-meta .vl-profile-period {
  flex: 0 0 auto;
  margin: 0 !important;
  text-align: center;
}
html body .vl-profile-meta > .row {
  display: flex !important;
  flex: 1 1 380px;
  gap: 10px;
  margin: 0 !important;
}
html body .vl-profile-meta > .row > [class*="col-"] {
  flex: 1 1 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* slimmer labels + dropdowns */
html body .vl-profile-meta .vl-label {
  margin-bottom: 4px !important;
  font-size: .6rem !important;
  line-height: 1.2;
}
html body .vl-profile-card .vl-profile-meta select.form-control {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 28px 0 12px !important;
  font-size: .8rem !important;
  border-radius: 999px !important;
}
html body .vl-profile-meta .btn.btn-primary {
  height: 32px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  border: 0 !important;
  background: linear-gradient(180deg, #f0d483, #c9a54c) !important;
  color: #1a1408 !important;
}
html body .vl-profile-meta .type-badge { padding: 6px 12px !important; font-size: .72rem !important; }
html body .vl-contact-summary { margin-bottom: 4px !important; }
 
/* Breathing room in the profile block */
html body .vl-profile-card { padding-top: 22px !important; padding-bottom: 22px !important; }
html body .vl-client-name { margin-bottom: 18px !important; }
html body .vl-contact-summary { gap: 14px !important; margin-bottom: 0 !important; }
html body .vl-contact-chip { padding: 12px 16px !important; }
html body .vl-profile-meta {
  margin-top: 20px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(201,165,76,.18);
  gap: 14px 18px;
}
html body .vl-profile-meta .vl-label { margin-bottom: 6px !important; }
 
/* =========================================================
   ENROLLMENT STEPS — more space above, modern card
   (step colors stay the same — only shape and spacing change)
   ========================================================= */
html body .enrollment-tracker {
  margin-top: 34px !important;
  padding: 18px 20px 20px !important;
  border: 1px solid rgba(201,165,76,.3) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(120% 140px at 0% 0%, rgba(201,165,76,.12), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
/* Title row: icon tile + "Enrollment Steps" ... progress pill */
html body .enrollment-tracker .ws-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
}
html body .enrollment-tracker .ws-bar > span:first-child {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff !important; font-size: 1rem !important; font-weight: 800; letter-spacing: .04em; text-transform: none;
}
html body .enrollment-tracker .ws-bar > span:first-child i {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #f0d483, #c9a54c);
  color: #1a1408 !important;
  font-size: 1.15rem;
}
html body .enrollment-tracker .ws-bar > span:last-child {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(52,211,153,.45);
  background: rgba(52,211,153,.12);
  color: #6ee7b7 !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: .08em;
}
/* Step cards */
html body .enrollment-tracker .enrollment-step-grid { gap: 14px !important; }
html body .enrollment-tracker .enrollment-step {
  padding: 14px 14px 12px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .15s;
}
html body .enrollment-tracker .enrollment-step:hover { transform: translateY(-2px); }
html body .enrollment-tracker .enrollment-step label {
  margin-bottom: 6px !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .12em;
}
html body .enrollment-tracker .enrollment-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: .98rem !important;
}
html body .enrollment-tracker .enrollment-step select {
  height: 34px !important;
  border-radius: 999px !important;
  padding: 0 28px 0 12px !important;
  background-color: rgba(0,0,0,.55) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #f3efe6 !important;
  font-size: .8rem !important;
}
/* Space before the tabs */
html body .vl-tab-nav { margin-top: 28px !important; }
html body .enrollment-tracker .enrollment-save-status { margin: 8px 0 0 !important; }
html body .enrollment-tracker .enrollment-save-status:empty { display: none !important; }
html body .enrollment-tracker .enrollment-track-scroll { padding-bottom: 0 !important; margin-bottom: 0 !important; }
 
/* =========================================================
   LIGHTER CARD GLOW (Personal · Contact · Client Details)
   ========================================================= */
html body #tab-contact .vl-section:nth-of-type(2) {
  background:
    linear-gradient(#f97316, #f97316) top / 100% 3px no-repeat,
    radial-gradient(130% 200px at 0% 0%, rgba(251,146,60,.08), transparent 75%),
    linear-gradient(180deg, #161513 0%, #121110 100%) !important;
}
html body #tab-contact .vl-section:nth-of-type(1) {
  background:
    linear-gradient(#3b82f6, #3b82f6) top / 100% 3px no-repeat,
    radial-gradient(130% 200px at 0% 0%, rgba(96,165,250,.08), transparent 75%),
    linear-gradient(180deg, #161513 0%, #121110 100%) !important;
}
html body #tab-contact .vl-section:nth-of-type(3) {
  background:
    linear-gradient(#10b981, #10b981) top / 100% 3px no-repeat,
    radial-gradient(130% 200px at 0% 0%, rgba(52,211,153,.08), transparent 75%),
    linear-gradient(180deg, #161513 0%, #121110 100%) !important;
}
 
/* =========================================================
   GOLD DIVIDER LINES
   1) between the Client Profile box and Enrollment Steps
   2) between Enrollment Steps and the tabs
   ========================================================= */
html body .enrollment-tracker { position: relative; overflow: visible !important; }
html body .enrollment-tracker::before,
html body .enrollment-tracker::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a54c 15%, #f0d483 50%, #c9a54c 85%, transparent);
  box-shadow: 0 0 10px rgba(232,200,114,.35);
  pointer-events: none;
}
html body .enrollment-tracker::before { top: -19px; }
html body .enrollment-tracker::after  { bottom: -20px; }
html body .vl-tab-nav { margin-top: 40px !important; }
 
/* =========================================================
   THICKER GOLD DIVIDERS (profile ▸ enrollment ▸ tabs)
   ========================================================= */
html body .enrollment-tracker { margin-top: 44px !important; }
html body .enrollment-tracker::before,
html body .enrollment-tracker::after {
  height: 4px !important;
  border-radius: 4px;
  background: #c9a54c !important;
  box-shadow: none !important;
}
html body .enrollment-tracker::before { top: -25px !important; }
html body .enrollment-tracker::after  { bottom: -26px !important; }
html body .vl-tab-nav { margin-top: 52px !important; }
 
/* =========================================================
   SUCCESS / INFO MESSAGES ("Contact updated successfully!")
   Dark glass card, colored edge, round icon, soft glow
   ========================================================= */
html body #kt_content .alert {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 18px 12px 66px !important;
  border: 1px solid rgba(52,211,153,.45) !important;
  border-left: 4px solid #10b981 !important;
  border-radius: 14px !important;
  background:
    radial-gradient(120% 120px at 0% 50%, rgba(52,211,153,.18), transparent 70%),
    linear-gradient(180deg, #14171a, #0b0d0e) !important;
  color: #e7fff4 !important;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
html body #kt_content .alert::before {
  content: "";
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 18px no-repeat, linear-gradient(180deg, #6ee7b7, #10b981) !important;
  box-shadow: 0 0 0 4px rgba(16,185,129,.18), 0 0 14px rgba(52,211,153,.5);
}
/* errors and warnings keep their own color */
html body #kt_content .alert.alert-danger {
  border-color: rgba(248,113,113,.45) !important; border-left-color: #ef4444 !important;
  background: radial-gradient(120% 120px at 0% 50%, rgba(248,113,113,.18), transparent 70%), linear-gradient(180deg, #1a1414, #0e0b0b) !important;
  color: #ffe4e4 !important;
}
html body #kt_content .alert.alert-danger::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 18px no-repeat, linear-gradient(180deg, #fca5a5, #ef4444) !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,.18), 0 0 14px rgba(248,113,113,.5);
}
html body #kt_content .alert.alert-warning {
  border-color: rgba(251,146,60,.45) !important; border-left-color: #f97316 !important;
  background: radial-gradient(120% 120px at 0% 50%, rgba(251,146,60,.18), transparent 70%), linear-gradient(180deg, #1a1612, #0e0c0a) !important;
  color: #fff1e6 !important;
}
html body #kt_content .alert.alert-warning::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 18px no-repeat, linear-gradient(180deg, #fdba74, #f97316) !important;
  box-shadow: 0 0 0 4px rgba(249,115,22,.18), 0 0 14px rgba(251,146,60,.5);
}
html body #kt_content .alert .close { margin-left: auto; color: #fff !important; opacity: .6; text-shadow: none; }
 
/* =========================================================
   ENROLLMENT STEPS — clean "stepper" redesign
   Numbered circles on one gold track; each step is a soft card
   hanging from its circle. Circle color shows the step's state
   (uses the page's existing data-tone):
     complete  = green with a check ✓
     attention = amber with the step number
     other     = grey outline with the step number
     Period    = blue calendar
   ========================================================= */
html body .enrollment-tracker .enrollment-step-grid {
  position: relative;
  counter-reset: jmstep;
  gap: 16px !important;
  padding-top: 4px;
}
/* the track line through the circles */
html body .enrollment-tracker .enrollment-step-grid::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 6% !important; right: 6% !important;
  top: 26px !important; bottom: auto !important;
  height: 3px !important;
  border-radius: 3px;
  background: rgba(201,165,76,.45) !important;
  z-index: 0;
}
html body .enrollment-tracker .enrollment-step {
  counter-increment: jmstep;
  position: relative;
  z-index: 1;
  margin-top: 26px !important;
  padding: 34px 16px 16px !important;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-top: 3px solid var(--tone, #64748b) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.35) !important;
  --tone: #64748b;
  --tone-soft: rgba(100,116,139,.18);
}
html body .enrollment-tracker .enrollment-step[data-tone="complete"]  { --tone: #10b981; --tone-soft: rgba(16,185,129,.18); }
html body .enrollment-tracker .enrollment-step[data-tone="attention"] { --tone: #f59e0b; --tone-soft: rgba(245,158,11,.18); }
html body .enrollment-tracker .enrollment-step.enrollment-period      { --tone: #3b82f6; --tone-soft: rgba(59,130,246,.18); }
 
/* the circle */
html body .enrollment-tracker .enrollment-step::before {
  content: counter(jmstep);
  position: absolute;
  top: -26px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--tone);
  background: #0e0d0b;
  color: #e9e3d6;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 0 0 5px #0e0d0b, 0 0 16px var(--tone-soft);
}
html body .enrollment-tracker .enrollment-step[data-tone="complete"]::before {
  content: "";
  background: var(--tone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 22px no-repeat;
}
html body .enrollment-tracker .enrollment-step[data-tone="attention"]::before { background: var(--tone); color: #1a1408; }
html body .enrollment-tracker .enrollment-step.enrollment-period::before {
  content: "";
  background: var(--tone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center / 20px no-repeat;
}
 
/* text */
html body .enrollment-tracker .enrollment-step label {
  display: block;
  margin-bottom: 4px !important;
  color: var(--tone) !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}
html body .enrollment-tracker .enrollment-step strong {
  display: block;
  margin-bottom: 12px;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 800;
}
html body .enrollment-tracker .enrollment-step strong::before { display: none !important; }
html body .enrollment-tracker .enrollment-step select {
  height: 34px !important;
  width: 100%;
  border-radius: 999px !important;
  padding: 0 28px 0 14px !important;
  background-color: #0b0b0b !important;
  border: 1px solid var(--tone-soft) !important;
  color: #f3efe6 !important;
  font-size: .8rem !important;
  text-align: left;
}
html body .enrollment-tracker .enrollment-step select:focus { border-color: var(--tone) !important; box-shadow: 0 0 0 3px var(--tone-soft) !important; }
html body .enrollment-tracker .enrollment-step:hover { transform: translateY(-2px); }
 
/* Stronger color fills: green = done, red = not done yet,
   amber = needs attention, blue = period */
html body .enrollment-tracker .enrollment-step { --tone: #ef4444; --tone-soft: rgba(239,68,68,.22); --tone-rgb: 239,68,68; }
html body .enrollment-tracker .enrollment-step[data-tone="complete"]  { --tone: #10b981; --tone-soft: rgba(16,185,129,.22); --tone-rgb: 16,185,129; }
html body .enrollment-tracker .enrollment-step[data-tone="attention"] { --tone: #f59e0b; --tone-soft: rgba(245,158,11,.22); --tone-rgb: 245,158,11; }
html body .enrollment-tracker .enrollment-step.enrollment-period      { --tone: #3b82f6; --tone-soft: rgba(59,130,246,.22); --tone-rgb: 59,130,246; }
html body .enrollment-tracker .enrollment-step {
  background: linear-gradient(180deg, rgba(var(--tone-rgb),.30), rgba(var(--tone-rgb),.10)) !important;
  border: 1px solid rgba(var(--tone-rgb),.55) !important;
  border-top: 4px solid var(--tone) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 22px rgba(var(--tone-rgb),.15) !important;
}
html body .enrollment-tracker .enrollment-step::before { background: var(--tone); color: #fff; }
html body .enrollment-tracker .enrollment-step label { color: #fff !important; opacity: .85; }
html body .enrollment-tracker .enrollment-step select { border-color: rgba(var(--tone-rgb),.6) !important; background-color: rgba(0,0,0,.55) !important; }
 
/* Match the CRM's own step colors: green = done, gold = waiting, blue = period */
html body .enrollment-tracker .enrollment-step { --tone: #c9a54c; --tone-soft: rgba(201,165,76,.22); --tone-rgb: 201,165,76; }
html body .enrollment-tracker .enrollment-step[data-tone="complete"]  { --tone: #10b981; --tone-soft: rgba(16,185,129,.22); --tone-rgb: 16,185,129; }
html body .enrollment-tracker .enrollment-step[data-tone="attention"] { --tone: #f59e0b; --tone-soft: rgba(245,158,11,.22); --tone-rgb: 245,158,11; }
html body .enrollment-tracker .enrollment-step.enrollment-period      { --tone: #3b82f6; --tone-soft: rgba(59,130,246,.22); --tone-rgb: 59,130,246; }
html body .enrollment-tracker .enrollment-step:not([data-tone="complete"]):not(.enrollment-period)::before { color: #1a1408; }
 
/* COMPACT size — smaller section, same look */
html body .enrollment-tracker { padding: 12px 16px 14px !important; }
html body .enrollment-tracker .ws-bar { margin-bottom: 8px !important; }
html body .enrollment-tracker .ws-bar > span:first-child { font-size: .88rem !important; gap: 10px; }
html body .enrollment-tracker .ws-bar > span:first-child i { width: 28px; height: 28px; border-radius: 9px; font-size: .9rem; }
html body .enrollment-tracker .ws-bar > span:last-child { padding: 4px 10px; font-size: .64rem !important; }
html body .enrollment-tracker .enrollment-step-grid { gap: 10px !important; padding-top: 0; }
html body .enrollment-tracker .enrollment-step-grid::before { top: 17px !important; height: 2px !important; }
html body .enrollment-tracker .enrollment-step {
  margin-top: 17px !important;
  padding: 22px 10px 10px !important;
  border-radius: 12px !important;
  border-top-width: 3px !important;
}
html body .enrollment-tracker .enrollment-step::before {
  top: -17px;
  width: 32px; height: 32px;
  border-width: 2px;
  font-size: .8rem;
  box-shadow: 0 0 0 4px #0e0d0b, 0 0 10px var(--tone-soft);
}
html body .enrollment-tracker .enrollment-step[data-tone="complete"]::before { background-size: 16px; }
html body .enrollment-tracker .enrollment-step.enrollment-period::before { background-size: 15px; }
html body .enrollment-tracker .enrollment-step label { font-size: .56rem !important; margin-bottom: 2px !important; }
html body .enrollment-tracker .enrollment-step strong { font-size: .86rem !important; margin-bottom: 7px; }
html body .enrollment-tracker .enrollment-step select { height: 28px !important; font-size: .74rem !important; padding: 0 24px 0 10px !important; }
html body .enrollment-tracker { margin-top: 36px !important; }
html body .enrollment-tracker::before { top: -20px !important; }
html body .enrollment-tracker::after { bottom: -20px !important; }
html body .vl-tab-nav { margin-top: 42px !important; }
 
/* =========================================================
   EXTRA-SLIM ENROLLMENT STEPS
   Each step = one compact colored tile: icon circle on the left,
   step name + status, dropdown underneath. No track line.
   ========================================================= */
html body .enrollment-tracker { padding: 10px 14px 12px !important; margin-top: 30px !important; }
html body .enrollment-tracker .ws-bar { margin-bottom: 8px !important; }
html body .enrollment-tracker .enrollment-step-grid::before { display: none !important; }
html body .enrollment-tracker .enrollment-step {
  display: grid !important;
  grid-template-columns: 26px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 9px;
  align-items: center;
  margin-top: 0 !important;
  padding: 8px 10px !important;
  text-align: left;
  border-top-width: 1px !important;
  border-left: 3px solid var(--tone) !important;
  border-radius: 10px !important;
}
html body .enrollment-tracker .enrollment-step::before {
  position: static !important;
  transform: none !important;
  grid-column: 1; grid-row: 1 / 3;
  width: 26px !important; height: 26px !important;
  border-width: 2px !important;
  font-size: .7rem !important;
  box-shadow: 0 0 8px var(--tone-soft) !important;
}
html body .enrollment-tracker .enrollment-step[data-tone="complete"]::before { background-size: 13px !important; }
html body .enrollment-tracker .enrollment-step.enrollment-period::before { background-size: 12px !important; }
html body .enrollment-tracker .enrollment-step label { grid-column: 2; margin: 0 !important; font-size: .54rem !important; line-height: 1.2; }
html body .enrollment-tracker .enrollment-step strong { grid-column: 2; margin: 0 !important; font-size: .8rem !important; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .enrollment-tracker .enrollment-step select { grid-column: 1 / -1; margin-top: 6px; height: 26px !important; font-size: .7rem !important; }
html body .enrollment-tracker::before { top: -16px !important; }
html body .enrollment-tracker::after { bottom: -16px !important; }
html body .vl-tab-nav { margin-top: 34px !important; }
 
/* =========================================================
   AGENT + PREFERENCES as slim "label | value" pills
   Label sits inside the pill, dropdown blends in — one thin row.
   ========================================================= */
html body .vl-profile-meta { margin-top: 14px !important; padding-top: 12px !important; gap: 8px 10px !important; align-items: center !important; }
html body .vl-profile-meta .vl-profile-agents { gap: 10px !important; align-items: center !important; }
html body .vl-profile-meta .vl-agent-form { gap: 8px !important; align-items: center !important; }
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-meta > .row > [class*="col-"],
html body .vl-profile-meta .vl-profile-period {
  display: flex !important;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 4px 0 12px !important;
  border: 1px solid rgba(201,165,76,.3) !important;
  border-radius: 999px !important;
  background: #121110 !important;
}
html body .vl-profile-meta .vl-profile-period { padding: 0 6px 0 12px !important; }
html body .vl-profile-meta .vl-label {
  flex: 0 0 auto;
  margin: 0 !important;
  font-size: .56rem !important;
  white-space: nowrap;
  color: #c9a54c !important;
}
html body .vl-profile-card .vl-profile-meta select.form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 24px 0 6px !important;
  border: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-size: .78rem !important;
  font-weight: 600;
}
html body .vl-profile-meta .btn.btn-primary { height: 32px !important; }
html body .vl-profile-meta .type-badge { padding: 3px 10px !important; font-size: .68rem !important; }
html body .vl-profile-meta > .row > [class*="col-"]:focus-within,
html body .vl-profile-meta .vl-agent-form > div:focus-within { border-color: #e8c872 !important; }
 
/* =========================================================
   "CLIENT PROFILE" HEADER — icon tile, bold title, subtitle,
   soft gold glow across the header bar
   ========================================================= */
html body .vl-profile-header {
  min-height: 78px !important;
  padding: 14px 24px !important;
  border-bottom: 3px solid #c9a54c !important;
  background:
    radial-gradient(60% 140px at 0% 0%, rgba(201,165,76,.16), transparent 70%),
    linear-gradient(180deg, #15130f, #0d0c0a) !important;
}
html body .vl-profile-header .kt-portlet__head-label { display: flex; align-items: center; }
html body .vl-profile-header .kt-portlet__head-title {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding-left: 62px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  line-height: 1.15;
}
/* gold icon tile (person + ID card) */
html body .vl-profile-header .kt-portlet__head-title::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1408' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2.2'/%3E%3Cpath d='M15 9h3M15 13h3M5.5 16.5c.6-1.6 1.9-2.3 3.5-2.3s2.9.7 3.5 2.3'/%3E%3C/svg%3E") center / 26px no-repeat,
    linear-gradient(180deg, #f0d483, #b38e3a);
  box-shadow: 0 8px 18px rgba(201,165,76,.3), inset 0 1px 0 rgba(255,255,255,.4);
}
/* subtitle under the title */
html body .vl-profile-header .kt-portlet__head-title::after {
  content: "Book of Business  ›  Client record";
  white-space: pre;
  margin-top: 4px;
  color: #b8964a;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
 
/* =========================================================
   HEADER ACTIONS — one sleek action bar
   Back (gold) · Edit (glass) · Merge duplicate (blue) · Mark as Deceased (red)
   All the same height, each with a round icon, inside one dark pill.
   ========================================================= */
html body .vl-profile-header .vl-profile-actions {
  display: inline-flex !important;
  align-items: center;
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid rgba(201,165,76,.3);
  border-radius: 999px;
  background: linear-gradient(180deg, #17150f, #0d0c0a);
  box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn {
  height: 36px !important;
  margin: 0 !important;
  padding: 0 14px 0 5px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  border-radius: 999px !important;
  font-size: .8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .15s, color .15s, border-color .15s;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn i {
  width: 26px !important; height: 26px !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  border-radius: 50% !important;
  font-size: .85rem !important;
}
html body .vl-profile-header .vl-profile-actions > .btn::before { display: none !important; }
 
/* Back — gold */
html body .vl-profile-header .vl-profile-actions > .btn.btn-primary {
  border: 0 !important;
  background: linear-gradient(180deg, #f0d483, #c9a54c) !important;
  color: #1a1408 !important;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn-primary i { background: rgba(26,20,8,.16) !important; color: #1a1408 !important; }
html body .vl-profile-header .vl-profile-actions > .btn.btn-primary:hover { background: linear-gradient(180deg, #f7df9a, #d4b05a) !important; }
 
/* Edit — glass with gold icon */
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary:has(.la-edit) {
  border: 1px solid rgba(201,165,76,.45) !important;
  background: rgba(255,255,255,.04) !important;
  color: #f7f3ea !important;
}
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary:has(.la-edit) i { background: linear-gradient(180deg, #e8c872, #c9a54c) !important; color: #1a1408 !important; }
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary:has(.la-edit):hover { background: rgba(201,165,76,.14) !important; border-color: #e8c872 !important; }
 
/* Merge duplicate — blue */
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary {
  border: 1px solid rgba(96,165,250,.45) !important;
  background: rgba(96,165,250,.12) !important;
  color: #bfdbfe !important;
}
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary i { background: #3b82f6 !important; color: #fff !important; }
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary:hover { background: rgba(96,165,250,.24) !important; color: #fff !important; }
 
/* Mark as Deceased — red */
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary:has(.la-ban) {
  margin-left: 0 !important;
  border: 1px solid rgba(239,68,68,.45) !important;
  background: rgba(239,68,68,.10) !important;
  color: #fecaca !important;
}
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary:has(.la-ban) i { background: #ef4444 !important; color: #fff !important; }
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary:has(.la-ban):hover { background: rgba(239,68,68,.22) !important; color: #fff !important; }
 
/* =========================================================
   CONTACT INFO FIELDS — modern tiles
   Every field (Gender, Date of Birth, SSN, Email, Phone, Address,
   County …) becomes its own soft tile with a colored icon square,
   a small label and a bold value. 3 tiles per row.
   ========================================================= */
html body #tab-contact .vl-section {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
  padding: 84px 20px 20px !important;
}
html body #tab-contact .vl-section:nth-of-type(2) { --tone: #f97316; --tone-rgb: 249,115,22; }
html body #tab-contact .vl-section:nth-of-type(1) { --tone: #3b82f6; --tone-rgb: 59,130,246; }
html body #tab-contact .vl-section:nth-of-type(3) { --tone: #10b981; --tone-rgb: 16,185,129; }
html body #tab-contact .vl-section > [class*="col-"] {
  position: relative;
  max-width: none !important;
  width: auto !important;
  flex: none !important;
  min-height: 70px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px 12px 66px !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important;
  background-size: auto !important;
  transition: border-color .15s, transform .15s, background .15s;
}
html body #tab-contact .vl-section > [class*="col-"]:hover {
  border-color: rgba(var(--tone-rgb),.55) !important;
  background-image: linear-gradient(180deg, rgba(var(--tone-rgb),.10), rgba(var(--tone-rgb),.03)) !important;
  transform: translateY(-1px);
}
/* icon square */
html body #tab-contact .vl-section > [class*="col-"]::before {
  content: "";
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(var(--tone-rgb),.16);
  border: 1px solid rgba(var(--tone-rgb),.35);
}
html body #tab-contact .vl-section > [class*="col-"]::after {
  content: "";
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  background: var(--tone);
  -webkit-mask: var(--ic) center / contain no-repeat;
          mask: var(--ic) center / contain no-repeat;
}
html body #tab-contact .vl-section .vl-label { margin: 0 0 3px !important; padding: 0 !important; font-size: .6rem !important; color: #9a917f !important; letter-spacing: .14em; }
html body #tab-contact .vl-section .vl-label::before { display: none !important; }
html body #tab-contact .vl-section .vl-value { padding-left: 0 !important; font-size: 1rem !important; font-weight: 700 !important; color: #fff !important; }
html body #tab-contact .vl-section select.form-control { margin-left: 0 !important; height: 32px !important; max-width: 100% !important; }
html body #tab-contact .vl-section-split > :nth-child(5) .vl-value { margin-left: 0 !important; }
/* wide tiles */
html body #tab-contact .vl-section:nth-of-type(2) > :nth-child(5) { grid-column: span 2; }  /* Emergency contact */
html body #tab-contact .vl-section:nth-of-type(1) > :nth-child(7) { grid-column: span 2; }  /* Mailing address */
html body #tab-contact .vl-section-split > :nth-child(7) { grid-column: span 2; }           /* Employer */
 
html body #tab-contact .vl-section:nth-of-type(2) > :nth-child(1) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(2) > :nth-child(2) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(2) > :nth-child(3) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M14 10h4M14 14h4M6 16c.5-1.3 1.6-2 3-2s2.5.7 3 2'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(2) > :nth-child(4) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(2) > :nth-child(5) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 8.6a5 5 0 0 0-8.8-3.2A5 5 0 0 0 3.2 8.6c0 5.4 8.8 10.4 8.8 10.4s8.8-5 8.8-10.4z'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(1) > :nth-child(1) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m21 7-9 6-9-6'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(1) > :nth-child(2) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(1) > :nth-child(3) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m21 7-9 6-9-6'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(1) > :nth-child(4) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(1) > :nth-child(5) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.3 7-12a7 7 0 0 0-14 0c0 5.7 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(1) > :nth-child(6) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(1) > :nth-child(7) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.5 5h13L22 12v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6z'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(3) > :nth-child(1) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c.8-3.4 3.6-5 7-5s6.2 1.6 7 5'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M22 20c-.5-2.4-2-3.9-4-4.6'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(3) > :nth-child(2) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.6 5.6 12.8 12.8'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(3) > :nth-child(3) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(3) > :nth-child(4) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M17 6H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(3) > :nth-child(5) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(3) > :nth-child(6) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 10 5-10 5L2 7z'/%3E%3Cpath d='m2 12 10 5 10-5M2 17l10 5 10-5'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(3) > :nth-child(7) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2M2 13h20'/%3E%3C/svg%3E"); }
html body #tab-contact .vl-section:nth-of-type(3) > :nth-child(8) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.3 8 11 4.6-1.7 8-6 8-11V5z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
 
/* Thicker solid gold dividers */
html body .enrollment-tracker::before,
html body .enrollment-tracker::after { height: 8px !important; border-radius: 8px !important; background: #c9a54c !important; }
html body .enrollment-tracker::before { top: -22px !important; }
html body .enrollment-tracker::after  { bottom: -22px !important; }
html body .enrollment-tracker { margin-top: 38px !important; }
html body .vl-tab-nav { margin-top: 42px !important; }
@media (max-width: 1100px) { html body #tab-contact .vl-section { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { html body #tab-contact .vl-section { grid-template-columns: 1fr; } html body #tab-contact .vl-section > [class*="col-"] { grid-column: auto !important; } }
html body #tab-contact .vl-section-split > :nth-child(5) .vl-value { align-self: flex-start; width: max-content; padding: 2px 12px !important; }
html body #tab-contact .vl-section-split > :nth-child(5) .vl-value, html body #tab-contact .vl-section-split > :nth-child(5) .vl-value * { color: #e8c872 !important; }
 
/* =========================================================
   TOBACCO USE — red "no smoking" icon + status badge
   No  → red circle with a crossed-out cigarette + "NO TOBACCO" badge
   Yes → amber cigarette icon + "TOBACCO USER" badge
   (reads the dropdown's selected value — no code changes)
   ========================================================= */
html body #tab-contact .vl-section-split > :nth-child(2) {
  --tone: #ef4444; --tone-rgb: 239,68,68;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M4.9 4.9l14.2 14.2'/%3E%3Crect x='5' y='11' width='11' height='3' rx='.6'/%3E%3Cpath d='M16.5 11v3M18.5 11v3'/%3E%3C/svg%3E") !important;
}
html body #tab-contact .vl-section-split > :nth-child(2)::before {
  background: rgba(239,68,68,.18) !important;
  border-color: rgba(239,68,68,.55) !important;
  border-radius: 50% !important;
}
html body #tab-contact .vl-section-split > :nth-child(2) .vl-label::after {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .1em;
}
html body #tab-contact .vl-section-split > :nth-child(2):has(option[value="No"]:checked) .vl-label::after {
  content: "NO TOBACCO";
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.55);
  color: #fca5a5;
}
html body #tab-contact .vl-section-split > :nth-child(2):has(option[value="Yes"]:checked) {
  --tone: #f59e0b; --tone-rgb: 245,158,11;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='13' width='15' height='4' rx='.8'/%3E%3Cpath d='M19 13v4M21.5 13v4M18 9c0-2 2-2 2-4M21 9c0-2-1.5-2.5-1.5-4.5'/%3E%3C/svg%3E") !important;
}
html body #tab-contact .vl-section-split > :nth-child(2):has(option[value="Yes"]:checked)::before {
  background: rgba(245,158,11,.18) !important; border-color: rgba(245,158,11,.55) !important;
}
html body #tab-contact .vl-section-split > :nth-child(2):has(option[value="Yes"]:checked) .vl-label::after {
  content: "TOBACCO USER";
  background: rgba(245,158,11,.18);
  border: 1px solid rgba(245,158,11,.55);
  color: #fcd34d;
}
 
/* =========================================================
   EXTRA-THICK GOLD DIVIDER BARS
   ========================================================= */
html body .enrollment-tracker::before,
html body .enrollment-tracker::after {
  height: 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f0d483, #c9a54c 55%, #a98632) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4) !important;
}
html body .enrollment-tracker { margin-top: 48px !important; }
html body .enrollment-tracker::before { top: -32px !important; }
html body .enrollment-tracker::after  { bottom: -32px !important; }
html body .vl-tab-nav { margin-top: 54px !important; }
html body #tab-contact .vl-section-split > :nth-child(2)::after { width: 26px !important; height: 26px !important; left: 20px !important; }
html body #tab-contact .vl-section-split > :nth-child(2)::before { width: 40px !important; height: 40px !important; left: 13px !important; }
 
/* =========================================================
   CLIENT DETAILS ORDER
   Row 1: Referral Source · Tobacco Use · Client Since
   Row 2: Monthly Premium · Lines of Business · Insured Status
   Row 3: Household Income · Employer Name (wide)
   ========================================================= */
html body #tab-contact .vl-section-split > :nth-child(1) { order: 0 !important; }
html body #tab-contact .vl-section-split > :nth-child(2) { order: 1 !important; }
html body #tab-contact .vl-section-split > :nth-child(3) { order: 2 !important; }
html body #tab-contact .vl-section-split > :nth-child(5) { order: 3 !important; }  /* Monthly Premium */
html body #tab-contact .vl-section-split > :nth-child(6) { order: 4 !important; }  /* Lines of Business */
html body #tab-contact .vl-section-split > :nth-child(8) { order: 5 !important; }  /* Insured Status */
html body #tab-contact .vl-section-split > :nth-child(4) { order: 6 !important; }  /* Household Income */
html body #tab-contact .vl-section-split > :nth-child(7) { order: 7 !important; grid-column: span 2; } /* Employer */
 
/* =========================================================
   SMALLER Merge duplicate + Mark as Deceased (rarely used)
   Back and Edit stay full size.
   ========================================================= */
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) {
  height: 24px !important;
  padding: 0 9px 0 3px !important;
  gap: 4px !important;
  font-size: .62rem !important;
  font-weight: 600 !important;
  opacity: .85;
}
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn i,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) i {
  width: 18px !important; height: 18px !important; font-size: .64rem !important;
}
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn:hover,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban):hover { opacity: 1; }
 
/* =========================================================
   BACK + EDIT — bigger, modern
   Back: dark glass with a gold gradient ring, arrow chip slides on hover
   Edit: solid gold gradient with a light shine sweep on hover
   ========================================================= */
html body .vl-profile-header .vl-profile-actions { padding: 6px !important; gap: 8px !important; }
 
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn.btn-primary,
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit) {
  position: relative;
  overflow: hidden;
  height: 44px !important;
  padding: 0 22px 0 6px !important;
  gap: 10px !important;
  font-size: .92rem !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  border-radius: 999px !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn.btn-primary i,
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit) i {
  width: 32px !important; height: 32px !important;
  font-size: 1rem !important;
  transition: transform .18s ease;
}
 
/* Back — dark glass + gold gradient ring */
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn.btn-primary {
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(180deg, #1b1913, #0f0e0b) padding-box,
    linear-gradient(135deg, #f7df9a, #c9a54c 45%, #7d6326) border-box !important;
  color: #f7f3ea !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn.btn-primary i {
  background: linear-gradient(180deg, #f0d483, #c9a54c) !important;
  color: #1a1408 !important;
  box-shadow: 0 2px 8px rgba(201,165,76,.4);
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 0 3px rgba(201,165,76,.15) !important;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn.btn-primary:hover i { transform: translateX(-3px); }
 
/* Edit — solid gold with shine */
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit) {
  border: 0 !important;
  background: linear-gradient(180deg, #f7df9a 0%, #e2bf63 45%, #c9a54c 100%) !important;
  color: #1a1408 !important;
  box-shadow: 0 8px 22px rgba(201,165,76,.35), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.12) !important;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit) i {
  background: #1a1408 !important;
  color: #f0d483 !important;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit)::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
  pointer-events: none;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit):hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #fbe7ad 0%, #e8c872 45%, #d1ad55 100%) !important;
  box-shadow: 0 12px 28px rgba(201,165,76,.45), inset 0 1px 0 rgba(255,255,255,.6) !important;
}
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit):hover::after { left: 120%; }
html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit):hover i { transform: rotate(-8deg); }
 
/* =========================================================
   MOVE Merge duplicate + Mark as Deceased
   out of the top bar and into the empty space on the right of
   the client's name row (next to "Intake: In Progress").
   Back + Edit stay alone in the header.
   NOTE for developer: positioned with CSS; if the profile header
   or blue status bar ever changes height, adjust "top" below.
   ========================================================= */
html body .kt-portlet:has(> .vl-profile-header) { position: relative !important; }
 
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) {
  position: absolute !important;
  top: 211px;
  z-index: 5;
  height: 28px !important;
  padding: 0 12px 0 4px !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  opacity: 1;
  backdrop-filter: blur(4px);
}
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { right: 44px; }
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn       { right: 172px; }
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn i,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) i { width: 20px !important; height: 20px !important; font-size: .7rem !important; }
 
/* make room: Intake status shifts left of the two buttons */
html body .vl-client-name .vl-intake-status { margin-right: 262px !important; }
 
/* header action bar now only holds Back + Edit */
html body .vl-profile-header .vl-profile-actions { padding: 6px !important; }
 
/* =========================================================
   AGENT + PREFERENCES — icon pills with live status color
   Assigned Agent (gold) · Sub Agent (purple) · SMS · Email
   SMS / Email turn GREEN when "Opted In" and RED when "Opted Out".
   Agent pills turn grey-dashed when "Unassigned".
   ========================================================= */
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-meta > .row > [class*="col-"] {
  position: relative;
  height: 40px !important;
  padding: 0 6px 0 46px !important;
  border-width: 1.5px !important;
  background: linear-gradient(180deg, #17150f, #0f0e0b) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  --pill: #c9a54c; --pill-rgb: 201,165,76;
  border-color: rgba(var(--pill-rgb),.45) !important;
  transition: border-color .15s, box-shadow .15s;
}
/* icon circle */
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::before,
html body .vl-profile-meta > .row > [class*="col-"]::before {
  content: "";
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(var(--pill-rgb),.18);
  border: 1px solid rgba(var(--pill-rgb),.5);
}
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::after,
html body .vl-profile-meta > .row > [class*="col-"]::after {
  content: "";
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--pill);
  -webkit-mask: var(--pic) center / contain no-repeat;
          mask: var(--pic) center / contain no-repeat;
}
html body .vl-profile-meta .vl-label { font-size: .58rem !important; color: rgba(var(--pill-rgb),1) !important; }
html body .vl-profile-card .vl-profile-meta select.form-control { font-size: .82rem !important; font-weight: 700 !important; color: #fff !important; }
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end):hover,
html body .vl-profile-meta > .row > [class*="col-"]:hover { box-shadow: 0 0 0 3px rgba(var(--pill-rgb),.15); }
 
/* Assigned Agent — gold */
html body .vl-profile-meta .vl-agent-form > div:has(#profileAgent) {
  --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
}
/* Sub Agent — purple */
html body .vl-profile-meta .vl-agent-form > div:has(#profileSubAgent) {
  --pill: #a78bfa; --pill-rgb: 167,139,250;
  --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20c.8-3.4 3.6-5 7-5s6.2 1.6 7 5'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M22 20c-.5-2.4-2-3.9-4-4.6'/%3E%3C/svg%3E");
}
/* Unassigned = grey dashed */
html body .vl-profile-meta .vl-agent-form > div:has(#profileAgent option[value=""]:checked),
html body .vl-profile-meta .vl-agent-form > div:has(#profileSubAgent option[value=""]:checked) {
  --pill: #8f8775; --pill-rgb: 143,135,117;
  border-style: dashed !important;
}
html body .vl-profile-meta .vl-agent-form > div:has(option[value=""]:checked) select { color: #8f8775 !important; font-style: italic; }
 
/* SMS + Email */
html body .vl-profile-meta > .row > [class*="col-"]:nth-child(1) {
  --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 21l1.9-5.4A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01'/%3E%3C/svg%3E");
}
html body .vl-profile-meta > .row > [class*="col-"]:nth-child(2) {
  --pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m21 7-9 6-9-6'/%3E%3C/svg%3E");
}
html body .vl-profile-meta > .row > [class*="col-"]:has(option[value="In"]:checked)  { --pill: #10b981; --pill-rgb: 16,185,129; }
html body .vl-profile-meta > .row > [class*="col-"]:has(option[value="Out"]:checked) { --pill: #ef4444; --pill-rgb: 239,68,68; }
html body .vl-profile-meta > .row > [class*="col-"]:has(option[value="In"]:checked) select  { color: #6ee7b7 !important; }
html body .vl-profile-meta > .row > [class*="col-"]:has(option[value="Out"]:checked) select { color: #fca5a5 !important; }
 
/* Save agents + Enrollment period to match height */
html body .vl-profile-meta .btn.btn-primary { height: 40px !important; padding: 0 16px !important; font-size: .78rem !important; box-shadow: 0 6px 14px rgba(201,165,76,.25); }
html body .vl-profile-meta .vl-profile-period { height: 40px !important; border-width: 1.5px !important; border-color: rgba(59,130,246,.5) !important; }
html body .vl-profile-meta .vl-profile-period .vl-label { color: #93c5fd !important; }
html body .vl-profile-meta .vl-profile-period .type-badge { background: #3b82f6 !important; color: #fff !important; }
 
/* =========================================================
   TIGHTER PROFILE BLOCK — same look, much less height
   ========================================================= */
html body .vl-profile-card { padding-top: 12px !important; padding-bottom: 12px !important; }
html body .vl-client-name { font-size: 1.35rem !important; margin-bottom: 10px !important; gap: 12px !important; }
html body .vl-client-name::before { width: 40px !important; height: 40px !important; flex: 0 0 40px !important; background-size: 20px !important; box-shadow: 0 0 0 3px rgba(201,165,76,.15) !important; }
html body .vl-client-name .vl-intake-status { font-size: .66rem !important; }
 
/* contact chips: one slim line each — small icon, label and value side by side */
html body .vl-contact-summary { gap: 8px !important; }
html body .vl-contact-chip { padding: 6px 12px 6px 6px !important; border-radius: 999px !important; min-height: 0 !important; }
html body .vl-contact-chip i { width: 26px !important; height: 26px !important; flex: 0 0 26px !important; border-radius: 50% !important; font-size: .8rem !important; }
html body .vl-contact-chip > *:not(i) { display: flex !important; align-items: baseline; gap: 8px; line-height: 1.2; }
html body .vl-contact-chip small, html body .vl-contact-chip span:not(:last-child) { font-size: .58rem !important; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
 
/* agent / preference pills: slimmer */
html body .vl-profile-meta { margin-top: 10px !important; padding-top: 10px !important; gap: 6px 8px !important; }
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-meta > .row > [class*="col-"],
html body .vl-profile-meta .vl-profile-period,
html body .vl-profile-meta .btn.btn-primary { height: 34px !important; }
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-meta > .row > [class*="col-"] { padding-left: 38px !important; }
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::before,
html body .vl-profile-meta > .row > [class*="col-"]::before { width: 24px !important; height: 24px !important; left: 5px !important; }
html body .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::after,
html body .vl-profile-meta > .row > [class*="col-"]::after { width: 13px !important; height: 13px !important; left: 10.5px !important; }
html body .vl-profile-card .vl-profile-meta select.form-control { height: 28px !important; font-size: .78rem !important; }
 
/* Merge / Deceased follow the shorter name row */
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: 192px; height: 26px !important; }
 
/* =========================================================
   RESTRUCTURE — one bigger Client Profile panel
   Layout (CSS grid, no code changes):
     ┌ blue status bar ─────────────────────────────────────┐
     │ Nancy Romero …… Intake status · Merge · Deceased     │
     │ Phone · Email · DOB · Address                         │
     │ ┌ Enrollment Steps ────────────┐ ┌ Assignment & Prefs┐│
     │ │ 5 step tiles                 │ │ Agent  | Sub agent││
     │ │                              │ │ Save   | Period   ││
     │ │                              │ │ SMS    | Email    ││
     │ └──────────────────────────────┘ └───────────────────┘│
     └───────────────────────────────────────────────────────┘
     ═════════ gold bar ═════════
     tabs …
   ========================================================= */
html body .kt-portlet__body:has(> .vl-profile-card) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 34%);
  column-gap: 14px;
  row-gap: 0;
  position: relative;
}
/* No z-index here or on the card below: it would trap their pop-ups (modals) under the dark backdrop. */
html body .kt-portlet__body:has(> .vl-profile-card) > * { min-width: 0; position: relative; }
 
/* the big panel behind name, contacts, steps and assignments */
html body .kt-portlet__body:has(> .vl-profile-card)::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 2 / 5;
  z-index: 0;
  border: 1px solid rgba(201,165,76,.45);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background:
    radial-gradient(80% 200px at 0% 0%, rgba(201,165,76,.10), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
}
html body .kt-portlet__body:has(> .vl-profile-card) > .vl-status-banner { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0 !important; border-radius: 18px 18px 0 0 !important; }
html body .kt-portlet__body > .vl-profile-card { display: contents !important; }
 
html body .vl-profile-card > .vl-client-name   { grid-column: 1 / -1; grid-row: 2; padding: 14px 20px 8px !important; margin: 0 !important; }
html body .vl-profile-card > .vl-contact-summary { grid-column: 1 / -1; grid-row: 3; padding: 0 20px 14px !important; margin: 0 !important; }
 
/* Enrollment steps: left column inside the panel */
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker {
  grid-column: 1; grid-row: 4;
  margin: 0 0 18px 20px !important;
  align-self: stretch;
}
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker::before,
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker::after { display: none !important; }
 
/* Assignment & Preferences: right column card, 2 × 3 grid */
html body .vl-profile-card > .vl-profile-meta {
  grid-column: 2; grid-row: 4;
  margin: 0 20px 18px 0 !important;
  padding: 12px 14px 14px !important;
  border: 1px solid rgba(201,165,76,.3) !important;
  border-top: 1px solid rgba(201,165,76,.3) !important;
  border-radius: 20px;
  background:
    radial-gradient(120% 140px at 0% 0%, rgba(201,165,76,.12), transparent 70%),
    linear-gradient(180deg, #121110, #0a0a0a);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px !important;
  align-content: start;
}
html body .vl-profile-card > .vl-profile-meta::before {
  content: "Assignment & Preferences";
  grid-column: 1 / -1;
  display: flex; align-items: center;
  height: 28px;
  padding-left: 38px;
  margin-bottom: 4px;
  color: #fff; font-size: .88rem; font-weight: 800;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%23c9a54c'/%3E%3Cg fill='none' stroke='%231a1408' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='17' cy='15' r='4.5'/%3E%3Cpath d='M9 29c1.2-4 4.4-6 8-6M26 22v8M22 26h8'/%3E%3C/g%3E%3C/svg%3E") left center / 28px no-repeat;
}
html body .vl-profile-card > .vl-profile-meta .vl-profile-agents,
html body .vl-profile-card > .vl-profile-meta .vl-agent-form,
html body .vl-profile-card > .vl-profile-meta > .row { display: contents !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div,
html body .vl-profile-card > .vl-profile-meta .vl-profile-period,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"] { width: auto !important; min-width: 0 !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div.align-self-end { display: flex; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div.align-self-end .btn { width: 100%; justify-content: center; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period { justify-content: space-between; }
 
/* gold bar now sits above the tabs only */
html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav { grid-column: 1 / -1; margin-top: 46px !important; }
html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav::before {
  content: "" !important;
  position: absolute;
  left: 0; right: 0; top: -30px;
  height: 14px; border-radius: 14px;
  background: linear-gradient(180deg, #f0d483, #c9a54c 55%, #a98632);
  box-shadow: 0 4px 12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4);
  -webkit-mask: none !important; mask: none !important;
  width: auto !important; flex: none !important;
}
html body .kt-portlet__body:has(> .vl-profile-card) > .tab-content { grid-column: 1 / -1; }
 
/* Merge / Deceased: new spot on the name row */
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: var(--jm-rare-top, 192px); }
 
@media (max-width: 1200px) {
  html body .kt-portlet__body:has(> .vl-profile-card) { grid-template-columns: 1fr; }
  html body .kt-portlet__body:has(> .vl-profile-card)::before { grid-row: 2 / 6; }
  html body .vl-profile-card > .vl-profile-meta { grid-column: 1; grid-row: 5; margin: 0 20px 18px !important; }
  html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker { margin: 0 20px 12px !important; }
}
html body .kt-portlet__body > .vl-profile-card > * { position: relative; }
html body .kt-portlet__body:has(> .vl-profile-card) { grid-template-columns: minmax(0, 1fr) minmax(420px, 36%) !important; }
html body .vl-profile-card > .vl-profile-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
html body .vl-profile-card > .vl-profile-meta select.form-control { width: 100% !important; max-width: 100% !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"] { overflow: hidden; }
 
/* =========================================================
   MORE BREATHING ROOM inside the Client Profile panel
   ========================================================= */
html body .kt-portlet__body:has(> .vl-profile-card) { column-gap: 20px !important; grid-template-columns: minmax(0, 1fr) minmax(440px, 38%) !important; }
html body .vl-profile-card > .vl-client-name { padding: 22px 28px 14px !important; font-size: 1.45rem !important; }
html body .vl-profile-card > .vl-contact-summary { padding: 0 28px 22px !important; gap: 12px !important; }
html body .vl-contact-chip { padding: 9px 16px 9px 8px !important; }
html body .vl-contact-chip i { width: 30px !important; height: 30px !important; flex: 0 0 30px !important; }
 
/* thin divider between the contact row and the two cards */
html body .vl-profile-card > .vl-contact-summary::after {
  content: "";
  position: absolute; left: 28px; right: 28px; bottom: 0;
  height: 1px;
  background: rgba(201,165,76,.22);
}
 
/* the two cards */
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker { margin: 22px 0 26px 28px !important; padding: 18px 18px 18px !important; }
html body .vl-profile-card > .vl-profile-meta { margin: 22px 28px 26px 0 !important; padding: 18px 18px 18px !important; gap: 12px !important; }
html body .vl-profile-card > .vl-profile-meta::before { margin-bottom: 6px; }
html body .enrollment-tracker .ws-bar { margin-bottom: 14px !important; }
html body .enrollment-tracker .enrollment-step-grid { gap: 12px !important; }
html body .enrollment-tracker .enrollment-step { padding: 12px 12px !important; row-gap: 2px; }
html body .enrollment-tracker .enrollment-step select { margin-top: 10px !important; height: 30px !important; }
html body .enrollment-tracker .enrollment-save-status { margin-top: 10px !important; }
 
/* pills a little taller */
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"],
html body .vl-profile-card > .vl-profile-meta .vl-profile-period,
html body .vl-profile-card > .vl-profile-meta .btn.btn-primary { height: 40px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"] { padding-left: 44px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::before,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]::before { width: 30px !important; height: 30px !important; left: 6px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::after,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]::after { width: 15px !important; height: 15px !important; left: 13.5px !important; }
/* labels sit above the value inside the pill so names don't get cut off */
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"] {
  height: 46px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center;
  gap: 0 !important;
  border-radius: 14px !important;
}
html body .vl-profile-card > .vl-profile-meta .vl-label { font-size: .54rem !important; line-height: 1; margin-top: 2px !important; }
html body .vl-profile-card .vl-profile-meta select.form-control { height: 22px !important; min-height: 22px !important; padding-left: 0 !important; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period,
html body .vl-profile-card > .vl-profile-meta .btn.btn-primary { height: 46px !important; border-radius: 14px !important; }
 
/* tabs bar spacing */
html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav { margin-top: 52px !important; }
 
/* Merge / Deceased follow the roomier name row */
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: 204px !important; }
html body .vl-client-name .vl-intake-status { margin-right: 270px !important; }
/* steps fill the card height so both cards line up */
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker { display: flex !important; flex-direction: column; }
html body .enrollment-tracker .enrollment-track-scroll { flex: 1; display: flex; }
html body .enrollment-tracker .enrollment-step-grid { flex: 1; align-items: stretch; }
html body .enrollment-tracker .enrollment-step { align-content: space-between; }
 
/* =========================================================
   TABS MOVED TO THE TOP — right under the "Client Profile" header,
   above the blue status bar. The gold bar now separates the
   profile panel from the tab content below it.
   ========================================================= */
html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav {
  grid-row: 1 !important;
  margin: 0 0 18px !important;
  padding: 8px !important;
  border: 1px solid rgba(201,165,76,.3) !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #15130f, #0c0b09);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  flex-wrap: wrap;
  justify-content: center;
}
html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav::before { display: none !important; }
html body .kt-portlet__body:has(> .vl-profile-card) > .vl-status-banner { grid-row: 2 !important; }
html body .vl-profile-card > .vl-client-name   { grid-row: 3 !important; }
html body .vl-profile-card > .vl-contact-summary { grid-row: 4 !important; }
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker,
html body .vl-profile-card > .vl-profile-meta { grid-row: 5 !important; }
html body .kt-portlet__body:has(> .vl-profile-card)::before { grid-row: 3 / 6 !important; }
html body .kt-portlet__body:has(> .vl-profile-card) > .tab-content {
  grid-row: 6 !important;
  margin-top: 46px !important;
}
html body .kt-portlet__body:has(> .vl-profile-card) > .tab-content::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -30px;
  height: 14px; border-radius: 14px;
  background: linear-gradient(180deg, #f0d483, #c9a54c 55%, #a98632);
  box-shadow: 0 4px 12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4);
}
/* Merge / Deceased follow the name row (now lower) */
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: 285px !important; }
 
/* =========================================================
   ROOMIER PANEL
   Enrollment Steps gets the full width on its own row.
   Assignment & Preferences sits under it, full width,
   3 per row:  Agent | Sub Agent | Save agents
               Enrollment Period | SMS | Email
   ========================================================= */
html body .kt-portlet__body:has(> .vl-profile-card) { grid-template-columns: minmax(0, 1fr) !important; }
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker {
  grid-column: 1 !important; grid-row: 5 !important;
  margin: 22px 28px 0 !important;
}
html body .vl-profile-card > .vl-profile-meta {
  grid-column: 1 !important; grid-row: 6 !important;
  margin: 18px 28px 28px !important;
  padding: 18px 20px 20px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 16px !important;
  row-gap: 14px !important;
}
html body .kt-portlet__body:has(> .vl-profile-card)::before { grid-row: 3 / 7 !important; }
html body .kt-portlet__body:has(> .vl-profile-card) > .tab-content { grid-row: 7 !important; }
 
/* pills: comfortable size, label above value */
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"],
html body .vl-profile-card > .vl-profile-meta .vl-profile-period,
html body .vl-profile-card > .vl-profile-meta .btn.btn-primary { height: 54px !important; border-radius: 16px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"] { padding: 0 12px 0 56px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::before,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]::before { width: 36px !important; height: 36px !important; left: 10px !important; border-radius: 11px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::after,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]::after { width: 17px !important; height: 17px !important; left: 19.5px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-label { font-size: .58rem !important; margin: 0 0 2px !important; }
html body .vl-profile-card .vl-profile-meta select.form-control { height: 24px !important; min-height: 24px !important; font-size: .9rem !important; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period { padding: 0 14px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period .type-badge { padding: 5px 14px !important; font-size: .78rem !important; }
html body .vl-profile-card > .vl-profile-meta .btn.btn-primary { font-size: .88rem !important; }
html body .vl-profile-card > .vl-profile-meta::before { margin-bottom: 4px; font-size: .95rem; }
 
/* order: Agent, Sub agent, Save | Period, SMS, Email */
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:has(#profileAgent)    { order: 1; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:has(#profileSubAgent) { order: 2; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div.align-self-end         { order: 3; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period                         { order: 4; }
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]:nth-child(1)      { order: 5; }
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]:nth-child(2)      { order: 6; }
 
@media (max-width: 1100px) {
  html body .vl-profile-card > .vl-profile-meta { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
html body .vl-profile-card > .vl-profile-meta select.form-control.form-control-sm,
html body .vl-profile-card > .vl-profile-meta select.form-control {
  height: 24px !important; min-height: 24px !important; max-height: 24px !important;
  padding-top: 0 !important; padding-bottom: 0 !important; line-height: 24px !important;
}
 
/* =========================================================
   READY FOR 2 NEW TOP PILLS: Gender + SSN (masked)
   (developer adds the two small HTML pills — see
    client-profile-gender-ssn-pills.html — the colors below
    apply automatically)
   ========================================================= */
html body .vl-contact-summary > .vl-contact-chip:nth-child(5) i { background: linear-gradient(180deg, #f9a8d4, #ec4899) !important; color: #fff !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(5) { border-color: rgba(244,114,182,.35) !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(6) i { background: linear-gradient(180deg, #fca5a5, #ef4444) !important; color: #fff !important; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(6) { border-color: rgba(248,113,113,.35) !important; }
html body .vl-contact-summary .vl-contact-chip .ssn-toggle { margin-left: 6px; color: #e8c872 !important; cursor: pointer; }
/* 6 pills in 2 neat rows of 3:  Phone · Email · Address  /  DOB · Gender · SSN */
html body .vl-contact-summary:has(> .vl-contact-chip:nth-child(5)) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
}
html body .vl-contact-summary > .vl-contact-chip:nth-child(1) { order: 1; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(2) { order: 2; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(4) { order: 3; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(3) { order: 4; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(5) { order: 5; }
html body .vl-contact-summary > .vl-contact-chip:nth-child(6) { order: 6; }
html body .vl-contact-summary > .vl-contact-chip { min-width: 0; }
html body .vl-contact-summary > .vl-contact-chip b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the eye icon inside the SSN pill stays a small plain icon */
html body .vl-contact-summary > .vl-contact-chip:nth-child(n) .ssn-toggle i,
html body .vl-contact-summary > .vl-contact-chip:nth-child(n) b i {
  width: auto !important; height: auto !important; flex: none !important;
  background: none !important; color: #e8c872 !important; font-size: .95rem !important; border-radius: 0 !important;
}
 
/* =========================================================
   GENDER COLOR: blue for Male, pink for Female
   (needs data-gender on the Gender pill — included in the HTML snippet)
   ========================================================= */
html body .vl-contact-summary > .vl-contact-chip[data-gender] i { color: #fff !important; }
html body .vl-contact-summary > .vl-contact-chip[data-gender="female" i] i { background: linear-gradient(180deg, #f9a8d4, #ec4899) !important; }
html body .vl-contact-summary > .vl-contact-chip[data-gender="female" i] { border-color: rgba(244,114,182,.45) !important; }
html body .vl-contact-summary > .vl-contact-chip[data-gender="male" i] i { background: linear-gradient(180deg, #93c5fd, #3b82f6) !important; }
html body .vl-contact-summary > .vl-contact-chip[data-gender="male" i] { border-color: rgba(96,165,250,.45) !important; }
 
 
/* =========================================================
   ASSIGNMENT & PREFERENCES — compact, one row
   Agent · Sub Agent · Save · Period · SMS · Email
   ========================================================= */
html body .vl-profile-card > .vl-profile-meta {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) auto auto minmax(0, 1fr) minmax(0, 1fr) !important;
  column-gap: 10px !important;
  row-gap: 10px !important;
  padding: 14px 16px !important;
  align-items: center;
}
html body .vl-profile-card > .vl-profile-meta::before { margin-bottom: 0 !important; font-size: .86rem !important; height: 24px !important; background-size: 24px !important; padding-left: 32px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"],
html body .vl-profile-card > .vl-profile-meta .vl-profile-period,
html body .vl-profile-card > .vl-profile-meta .btn.btn-primary { height: 44px !important; border-radius: 12px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"] { padding: 0 10px 0 46px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::before,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]::before { width: 30px !important; height: 30px !important; left: 8px !important; border-radius: 9px !important; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end)::after,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]::after { width: 15px !important; height: 15px !important; left: 15.5px !important; }
html body .vl-profile-card .vl-profile-meta select.form-control { font-size: .8rem !important; }
html body .vl-profile-card > .vl-profile-meta .btn.btn-primary { padding: 0 16px !important; font-size: .78rem !important; white-space: nowrap; }
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div.align-self-end .btn { width: auto !important; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period { padding: 0 10px 0 12px !important; gap: 10px; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period .type-badge { padding: 4px 10px !important; font-size: .7rem !important; }
@media (max-width: 1300px) {
  html body .vl-profile-card > .vl-profile-meta { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
 
/* =========================================================
   TAB MENU — modern full-width segmented bar
   Tabs share the width evenly; colored icon above each label;
   the active tab glows gold with an underline bar.
   ========================================================= */
html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px !important;
  padding: 6px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(201,165,76,.3) !important;
  background: linear-gradient(180deg, #16140f, #0b0a08) !important;
}
html body .vl-tab-nav .nav-item { margin: 0 !important; }
html body .vl-tab-nav .nav-link {
  position: relative;
  width: 100%;
  height: 64px !important;
  padding: 6px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: #b9b0a0 !important;
  font-size: .76rem !important;
  font-weight: 700 !important;
  text-align: center;
  box-shadow: none !important;
  transition: background .15s, color .15s, border-color .15s;
}
html body .vl-tab-nav .nav-link::before { width: 20px !important; height: 20px !important; flex: 0 0 20px !important; }
html body .vl-tab-nav .nav-link:hover {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(201,165,76,.25) !important;
  color: #fff !important;
}
html body .vl-tab-nav .nav-link.active {
  background: linear-gradient(180deg, rgba(232,200,114,.22), rgba(201,165,76,.06)) !important;
  border-color: rgba(232,200,114,.6) !important;
  color: #fff !important;
}
html body .vl-tab-nav .nav-link.active::before { background: #f0d483 !important; }
html body .vl-tab-nav .nav-link.active::after {
  content: "";
  position: absolute; left: 22%; right: 22%; bottom: -1px;
  height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #f0d483, #c9a54c);
  box-shadow: 0 0 10px rgba(232,200,114,.7);
}
html body .vl-tab-nav .nav-link .badge {
  position: absolute; top: 6px; right: 10px;
  min-width: 18px; height: 18px; padding: 0 5px !important;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px !important;
  background: #ec4899 !important; color: #fff !important;
  font-size: .62rem !important;
}
@media (max-width: 1100px) {
  html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Merge / Deceased line up with the name row under the new tab menu */
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: 303px !important; }
 
/* =========================================================
   CALM & READABLE — profile panel (under the blue status bar)
   One accent (gold) for icons; color is used ONLY where it
   carries meaning: step status, opt-in/out, gender dot.
   Neutral borders, muted labels, bright values.
   ========================================================= */
/* contact pills: neutral with gold icons */
html body .vl-contact-summary > .vl-contact-chip,
html body .vl-contact-summary > .vl-contact-chip:nth-child(n) {
  border: 1px solid rgba(255,255,255,.09) !important;
  background: rgba(255,255,255,.025) !important;
}
html body .vl-contact-summary > .vl-contact-chip:nth-child(n) > i {
  background: rgba(201,165,76,.14) !important;
  color: #e8c872 !important;
  border: 1px solid rgba(201,165,76,.35);
}
html body .vl-contact-chip small { color: #8a8273 !important; opacity: 1 !important; }
html body .vl-contact-chip b { color: #f5f1e8 !important; font-weight: 700; }
/* gender keeps a hint of color on the icon only */
html body .vl-contact-summary > .vl-contact-chip[data-gender="male" i] > i   { color: #93c5fd !important; background: rgba(96,165,250,.12) !important; border-color: rgba(96,165,250,.35); }
html body .vl-contact-summary > .vl-contact-chip[data-gender="female" i] > i { color: #f9a8d4 !important; background: rgba(244,114,182,.12) !important; border-color: rgba(244,114,182,.35); }
html body .vl-contact-summary > .vl-contact-chip[data-gender] { border-color: rgba(255,255,255,.09) !important; }
 
/* enrollment steps: neutral cards, status shown by left bar + circle + small label */
html body .enrollment-tracker .enrollment-step {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-left: 4px solid var(--tone) !important;
  box-shadow: none !important;
}
html body .enrollment-tracker .enrollment-step label { color: var(--tone) !important; opacity: 1 !important; }
html body .enrollment-tracker .enrollment-step strong { color: #f5f1e8 !important; }
html body .enrollment-tracker .enrollment-step select { border-color: rgba(255,255,255,.12) !important; background-color: #0c0b09 !important; }
html body .enrollment-tracker .enrollment-step::before { box-shadow: none !important; }
 
/* assignment & preferences: neutral pills, gold icons; status only in text color */
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"],
html body .vl-profile-card > .vl-profile-meta .vl-profile-period {
  border: 1px solid rgba(255,255,255,.1) !important;
  border-style: solid !important;
  background: rgba(255,255,255,.025) !important;
  --pill: #e8c872 !important; --pill-rgb: 201,165,76 !important;
}
html body .vl-profile-card > .vl-profile-meta .vl-label { color: #8a8273 !important; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period .vl-label { color: #8a8273 !important; }
html body .vl-profile-card > .vl-profile-meta .vl-profile-period .type-badge { background: rgba(201,165,76,.18) !important; color: #f0d483 !important; border: 1px solid rgba(201,165,76,.45); }
html body .vl-profile-meta > .row > [class*="col-"]:has(option[value="In"]:checked) select  { color: #6ee7b7 !important; }
html body .vl-profile-meta > .row > [class*="col-"]:has(option[value="Out"]:checked) select { color: #fca5a5 !important; }
html body .vl-profile-meta .vl-agent-form > div:has(#profileSubAgent option[value=""]:checked) select,
html body .vl-profile-meta .vl-agent-form > div:has(#profileAgent option[value=""]:checked) select { color: #8a8273 !important; }
 
/* inner cards: quieter frames */
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker,
html body .vl-profile-card > .vl-profile-meta {
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.02) !important;
  box-shadow: none !important;
}
html body .enrollment-tracker .ws-bar > span:last-child { border-color: rgba(255,255,255,.12) !important; background: rgba(255,255,255,.04) !important; color: #6ee7b7 !important; }
 
/* =========================================================
   GOLD BORDERS — contact pills + assignment pills stand out
   ========================================================= */
html body .vl-contact-summary > .vl-contact-chip,
html body .vl-contact-summary > .vl-contact-chip:nth-child(n),
html body .vl-contact-summary > .vl-contact-chip[data-gender],
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"],
html body .vl-profile-card > .vl-profile-meta .vl-profile-period {
  border: 1.5px solid #9c7c2e !important;
  box-shadow: inset 0 0 0 1px rgba(201,165,76,.08);
}
html body .vl-contact-summary > .vl-contact-chip:hover,
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end):hover,
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"]:hover { border-color: #c9a54c !important; }
 
/* =========================================================
   STATUS BANNER — taller, richer, and colored by status
   Application Processing = blue · Enrolled = green
   In progress = amber · Cancelled = red (striped) · none = slate
   (reads the banner's own status dropdown — no code changes)
   ========================================================= */
html body #clientStatusBanner.vl-status-banner {
  position: relative;
  min-height: 74px;
  padding: 16px 24px 16px 80px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border: 0 !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 10px 26px rgba(0,0,0,.35);
  overflow: hidden;
  --b1: #1e40af; --b2: #2563eb; --b3: #60a5fa;
  --bic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpath d='M21 4v5h-5'/%3E%3C/svg%3E");
  background:
    radial-gradient(120% 160px at 0% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(100deg, var(--b1), var(--b2) 55%, var(--b3)) !important;
}
/* status icon circle */
html body #clientStatusBanner.vl-status-banner::before {
  content: "";
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.18) var(--bic) center / 22px no-repeat;
  border: 2px solid rgba(255,255,255,.45);
  box-shadow: 0 0 0 5px rgba(255,255,255,.08);
}
html body #clientStatusBanner.vl-status-banner > div:first-child { font-size: 1.05rem !important; letter-spacing: .06em; }
html body #clientStatusBanner.vl-status-banner > div:first-child * { color: #fff !important; }
html body #clientStatusBanner.vl-status-banner select.form-control {
  height: 38px !important;
  min-width: 220px;
  border-radius: 999px !important;
  border: 1.5px solid rgba(255,255,255,.55) !important;
  background-color: rgba(0,0,0,.35) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 0 32px 0 16px !important;
}
 
/* Enrolled — green, check icon */
html body #clientStatusBanner.vl-status-banner:has(option[value="Enrolled"]:checked) {
  --b1: #065f46; --b2: #059669; --b3: #34d399;
  --bic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
/* In progress — amber, clock icon */
html body #clientStatusBanner.vl-status-banner:has(option[value=""]:checked) {
  --b1: #92400e; --b2: #d97706; --b3: #fbbf24;
  --bic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
/* Cancelled — red with soft stripes, X icon */
html body #clientStatusBanner.vl-status-banner:has(option[value="Cancelled"]:checked) {
  --b1: #7f1d1d; --b2: #dc2626; --b3: #f87171;
  --bic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.10) 0 14px, transparent 14px 28px),
    linear-gradient(100deg, var(--b1), var(--b2) 55%, var(--b3)) !important;
}
/* No status chosen — slate */
html body #clientStatusBanner.vl-status-banner:has(option[value="choose-status"]:checked) {
  --b1: #1e293b; --b2: #334155; --b3: #64748b;
}
 
/* Enrollment step boxes: full color border all the way around */
html body .enrollment-tracker .enrollment-step {
  border: 2px solid var(--tone) !important;
  border-left-width: 2px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 14px -4px var(--tone) !important;
}
/* every other box gets a darker gold frame */
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker,
html body .vl-profile-card > .vl-profile-meta,
html body .kt-portlet__body:has(> .vl-profile-card)::before { border: 1.5px solid #9c7c2e !important; }
html body .kt-portlet__body:has(> .vl-profile-card)::before { border-top: 0 !important; }
html body .enrollment-tracker .ws-bar > span:last-child { border-color: #9c7c2e !important; }
/* Merge / Deceased line up with the name row under the taller banner */
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: 317px !important; }
 
/* =========================================================
   SOFTER — less color: thinner frames, no glow
   ========================================================= */
html body .enrollment-tracker .enrollment-step {
  border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent) !important;
  box-shadow: none !important;
}
html body .enrollment-tracker .enrollment-step label { color: #9a917f !important; }
html body .enrollment-tracker .enrollment-step::before { background-color: color-mix(in srgb, var(--tone) 80%, #000) !important; border-color: transparent !important; }
 
html body .vl-contact-summary > .vl-contact-chip,
html body .vl-contact-summary > .vl-contact-chip:nth-child(n),
html body .vl-contact-summary > .vl-contact-chip[data-gender],
html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div:not(.align-self-end),
html body .vl-profile-card > .vl-profile-meta > .row > [class*="col-"],
html body .vl-profile-card > .vl-profile-meta .vl-profile-period {
  border: 1px solid rgba(156,124,46,.75) !important;
  box-shadow: none !important;
}
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker,
html body .vl-profile-card > .vl-profile-meta { border: 1px solid rgba(156,124,46,.6) !important; }
 
/* banner: same status colors, calmer finish */
html body #clientStatusBanner.vl-status-banner { box-shadow: none !important; background: linear-gradient(100deg, var(--b1), var(--b2)) !important; min-height: 100px !important; padding-top: 26px !important; padding-bottom: 26px !important; }
html body #clientStatusBanner.vl-status-banner > div:first-child { font-size: 1.2rem !important; }
html body #clientStatusBanner.vl-status-banner::before { width: 50px !important; height: 50px !important; background-size: 26px !important; }
html body #clientStatusBanner.vl-status-banner:has(option[value="Cancelled"]:checked) { background: linear-gradient(100deg, var(--b1), var(--b2)) !important; }
html body #clientStatusBanner.vl-status-banner::before { box-shadow: none !important; border-width: 1.5px; }
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: 343px !important; }
 
/* Blue status banner: a bit taller */
html body #clientStatusBanner.vl-status-banner { min-height: 130px !important; padding-top: 40px !important; padding-bottom: 40px !important; }
 
/* Thick gold bar between the contact pills and Enrollment Steps
   (same style as the bar above the tab content) */
html body .vl-profile-card > .vl-contact-summary { padding-bottom: 34px !important; }
html body .vl-profile-card > .vl-contact-summary::after {
  left: 28px !important; right: 28px !important; bottom: 4px !important;
  height: 14px !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0d483, #c9a54c 55%, #a98632) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4);
}
html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker { margin-top: 26px !important; }
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: 373px !important; }
/* banner a tad shorter */
html body #clientStatusBanner.vl-status-banner { min-height: 110px !important; padding-top: 30px !important; padding-bottom: 30px !important; }
html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) { top: 353px !important; }
 
/* =====================================================================
   PHONE & SMALL TABLET LAYOUT  (screens 768px wide and smaller)
   Everything stacks into one clean column; tabs scroll sideways.
   ===================================================================== */
@media (max-width: 768px) {
 
  /* header: title on top, Back / Edit underneath */
  html body .vl-profile-header { flex-wrap: wrap !important; gap: 10px; padding: 12px 14px !important; min-height: 0 !important; }
  html body .vl-profile-header .kt-portlet__head-title { font-size: 1.15rem !important; padding-left: 54px !important; }
  html body .vl-profile-header .kt-portlet__head-title::before { width: 42px; height: 42px; }
  html body .vl-profile-header .kt-portlet__head-title::after { font-size: .58rem; }
  html body .vl-profile-header .vl-profile-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  html body .vl-profile-header .vl-profile-actions > .btn.btn.btn.btn-primary,
  html body .vl-profile-header .vl-profile-actions > .btn.btn.btn:has(.la-edit) { height: 40px !important; font-size: .85rem !important; }
 
  /* Merge / Deceased: back to normal flow, small chips in the header */
  html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
  html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) {
    position: static !important; top: auto !important; right: auto !important;
    height: 30px !important;
  }
  html body .vl-client-name .vl-intake-status { margin-right: 0 !important; }
 
  /* page body: one column */
  html body .kt-portlet__body:has(> .vl-profile-card) {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 12px !important;
  }
 
  /* tabs: one row you swipe sideways */
  html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 16px !important;
  }
  html body .vl-tab-nav .nav-item { flex: 0 0 auto; scroll-snap-align: start; }
  html body .vl-tab-nav .nav-link { width: 92px !important; height: 60px !important; font-size: .68rem !important; white-space: normal; line-height: 1.15; }
  html body .kt-portlet__body:has(> .vl-profile-card) > .vl-tab-nav::-webkit-scrollbar { height: 0; }
 
  /* status banner */
  html body #clientStatusBanner.vl-status-banner {
    flex-wrap: wrap !important;
    gap: 10px;
    min-height: 0 !important;
    padding: 16px 14px 16px 66px !important;
  }
  html body #clientStatusBanner.vl-status-banner::before { left: 12px !important; width: 40px !important; height: 40px !important; background-size: 20px !important; top: 34px !important; }
  html body #clientStatusBanner.vl-status-banner > div:first-child { font-size: .9rem !important; }
  html body #clientStatusBanner.vl-status-banner select.form-control { width: 100% !important; min-width: 0 !important; }
 
  /* name row */
  html body .vl-profile-card > .vl-client-name { padding: 14px 14px 8px !important; font-size: 1.2rem !important; flex-wrap: wrap; }
 
  /* client info pills: one per line */
  html body .vl-profile-card > .vl-contact-summary,
  html body .vl-contact-summary:has(> .vl-contact-chip:nth-child(5)) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 0 14px 30px !important;
  }
  html body .vl-profile-card > .vl-contact-summary::after { left: 14px !important; right: 14px !important; height: 10px !important; }
  html body .vl-contact-chip b { white-space: normal !important; overflow-wrap: anywhere; }
 
  /* enrollment steps: stacked */
  html body .kt-portlet__body:has(> .vl-profile-card) > .enrollment-tracker { margin: 18px 14px 0 !important; padding: 12px !important; }
  html body .enrollment-tracker .ws-bar { flex-wrap: wrap; gap: 8px; }
  html body .enrollment-tracker .enrollment-track-scroll { overflow: visible !important; }
  html body .enrollment-tracker .enrollment-step-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
 
  /* assignment & preferences: one per line */
  html body .vl-profile-card > .vl-profile-meta {
    grid-template-columns: minmax(0, 1fr) !important;
    margin: 14px 14px 18px !important;
    padding: 12px !important;
  }
  html body .vl-profile-card > .vl-profile-meta .vl-agent-form > div.align-self-end .btn { width: 100% !important; }
 
  /* gold bar above the tab content */
  html body .kt-portlet__body:has(> .vl-profile-card) > .tab-content { margin-top: 34px !important; }
  html body .kt-portlet__body:has(> .vl-profile-card) > .tab-content::before { height: 10px; top: -22px; }
 
  /* Contact Info tab: fields one per line */
  html body #tab-contact .vl-section { grid-template-columns: minmax(0, 1fr) !important; padding: 78px 12px 12px !important; }
  html body #tab-contact .vl-section > [class*="col-"] { grid-column: auto !important; }
  html body #tab-contact .vl-section::before { left: 14px !important; }
  html body #tab-contact .vl-section::after { left: 70px !important; }
 
  /* Client Files: folders on top, files below; each file stacks */
  html body #tab-client-files .ws-files { display: flex !important; flex-direction: column; }
  html body #tab-client-files .ws-folders { width: 100% !important; }
  html body #tab-client-files .ws-folder-heading { flex-wrap: wrap; gap: 10px; }
  html body #tab-client-files table.ws-table tbody tr { grid-template-columns: minmax(0, 1fr) auto !important; row-gap: 8px; }
  html body #tab-client-files table.ws-table tbody td:nth-child(1) { grid-column: 1 / -1; }
 
  /* other tabs: comfortable padding */
  html body :is(#tab-compliance,#tab-policies,#tab-payments,#tab-general-notes,#tab-activity) > .vl-card { padding: 16px 14px !important; }
  html body #tab-general-notes .ws-grid { display: flex !important; flex-direction: column; gap: 12px; }
  html body #tab-activity .item-card { margin-left: 10px !important; }
  html body .tab-content .table-responsive, html body .tab-content .dataTables_wrapper { overflow-x: auto; }
 
  /* success / error message */
  html body #kt_content .alert { padding-left: 58px !important; font-size: .85rem; }
}

/* ---------- Local fixes ---------- */
/* contact pill labels ("Address") must not break mid-word */
html body .vl-contact-summary > .vl-contact-chip small { white-space: nowrap; flex: 0 0 auto; }

/* Merge duplicate / Mark as Deceased use a fixed "top" offset. Below 1240px the tab bar wraps onto two
   rows and they land on the status banner, so keep them in the header at these widths. */
@media (min-width: 769px) and (max-width: 1239px) {
  html body .vl-profile-header .vl-profile-actions > button.btn.btn-secondary.btn,
  html body .vl-profile-header .vl-profile-actions > a.btn.btn-secondary.btn:has(.la-ban) {
    position: static !important; top: auto !important; right: auto !important;
  }
  html body .vl-client-name .vl-intake-status { margin-right: 0 !important; }
}

/* =========================================================
   CLIENT PROFILE UPDATES (client request, 4 Dec 2026)
   ========================================================= */
/* 1. SSN in the profile header: larger, bold, gold */
html body .vl-contact-chip .ssn-secure .ssn-value {
  font-size: 14px !important; font-weight: 700 !important; letter-spacing: 1px !important;
  color: #f5d27a !important; opacity: 1 !important; text-transform: none !important;
}
/* 4. Update messages pinned to the top centre of the screen */
html body .jm-flash {
  position: fixed !important; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 18000 !important; width: max-content; max-width: min(560px, calc(100vw - 24px));
  margin: 0 !important; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
/* 5. Intake status badge: a little bigger; green with a tick when Completed, otherwise gold with a dot */
html body .vl-client-name .vl-intake-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .6px;
  border-color: #f5d27a !important; color: #f5d27a !important; background: rgba(245,210,122,.12) !important;
  box-shadow: 0 0 14px rgba(245,210,122,.25);
}
html body .vl-client-name .vl-intake-status::before { content: "\25CF"; }
html body .vl-client-name .vl-intake-status[data-status="Completed"] {
  border-color: #34d399 !important; color: #34d399 !important; background: rgba(52,211,153,.12) !important;
  box-shadow: 0 0 14px rgba(52,211,153,.3);
}
html body .vl-client-name .vl-intake-status[data-status="Completed"]::before { content: "\2713"; }
