/* ============================================================
   GLC Retailer Licensing – Global Styles
   Theme: measured from galottery.com (local site copy), not
          approximated: green #30842A, blue #057CB8, red #DB3A1B,
          ink #171414, muted #6A6969, Open Sans 14px, 3px radii.
   ------------------------------------------------------------
   The whole application (wizard, admin, forms, grids) is driven
   by these tokens, so the brand lives in one place. Header,
   footer and home-page components are in glc-theme.css.
   ============================================================ */

:root {
  --primary:       #30842a;
  --primary-dark:  #24631f;
  --primary-mid:   #2c7827;
  --primary-light: #4aa343;
  --primary-pale:  #eaf4e9;
  --accent:        #db3a1b;
  --accent-light:  #ef5b3c;
  --text:          #171414;
  --text-muted:    #6a6969;
  --border:        #cccccc;
  --bg-light:      #faf9fa;
  --danger:        #db3a1b;

  /* Secondary brand blue — galottery uses it for the register CTA
     and the "latest results" tab. */
  --brand-blue:      #057cb8;
  --brand-blue-dark: #0e5c90;
  --brand-ink:       #232323;
  --brand-overlay:   rgba(0, 0, 0, .5);

  /* Design-handoff extensions (docs/design_handoff_retailer_portal) */
  --hairline:      #eceaea;
  --pale-border:   #bfddbc;
  --warn-text:     #8f2712;
  --warn-bg:       #fcf0ed;
  --warn-border:   rgba(219, 58, 27, .4);
  /* The logo's peach oranges, darkened until white text clears WCAG AA across
     the whole ramp. The bright sampled stops (#e9463b → #f27d2c → #f99c20)
     measured 3.89 → 2.71 → 2.14 against white, so headings and body copy on
     every band failed; these measure 4.79 → 4.94 → 5.01, with headroom rather than sitting on the line. Same hue, and they sit
     in the same family as the #7f2f02 utility strip.

     Every band reads from this one token — home hero, CTA band, page hero,
     wizard card headers, the step-nav head and the SelectLicense banner. */
  --hero-gradient: linear-gradient(108deg, #cf3c33 0%, #ad581e 52%, #9c6212 100%);
  --hero-burst:    repeating-conic-gradient(from -12deg at 82% -10%,
                     rgba(255, 255, 255, .045) 0deg 7deg, rgba(255, 255, 255, 0) 7deg 15deg);
  --shadow-sm:     0 1px 3px rgba(0,0,0,.10);
  --shadow-md:     0 4px 16px rgba(0,0,0,.12);
  --radius:        3px;   /* galottery uses tight 3px radii throughout */
  --radius-lg:     4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* galottery.com runs 14px at every breakpoint — no desktop bump. */

main[role="main"] { flex: 1; }

h1,h2,h3,h4,h5,h6 { font-weight: 600; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Admin detail tabs ──────────────────────────────
   Bootstrap's .nav-tabs draws boxed tabs with their own borders and radii,
   which sat inside a card that already has a border and read as a second,
   competing frame. These sit on one hairline and mark the active tab the same
   way the main nav does — a 2px rule in the brand colour. */
.adm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}
.adm-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;              /* sit the rule on the hairline, not above it */
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.adm-tab:hover { color: var(--text); background: var(--bg-light); }
.adm-tab .bi { font-size: 14px; opacity: .8; }
.adm-tab.active {
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom-color: var(--primary);
  background: none;
}
.adm-tab.active .bi { opacity: 1; }
/* Count pill — pale green, not Bootstrap's grey .badge */
.adm-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 18px; padding: 0 6px;
  border-radius: 999px;
  background: var(--hairline); color: var(--text-muted);
  font-size: 11px; font-weight: 700;
}
.adm-tab.active .adm-tab-count { background: var(--primary-pale); color: var(--primary-dark); }
@media (max-width: 575px) {
  .adm-tab { padding: 10px 12px; font-size: 13px; }
  .adm-tab .bi { display: none; }   /* labels before icons when space is tight */
}

/* ── Prose floor for Bootstrap's small utilities ────
   .small, <small> and .form-text are all 0.875em, so they inherit their way
   under the 13px floor: 12.25px in a 14px context, 11.375px inside a 13px grid
   cell. That is where the email-template descriptions and the field help text
   ended up. Pin them to the floor; uppercase micro-labels and badges set their
   own size in their own rules and are unaffected. */
.small, small, .form-text { font-size: 13px; }

/* ── Skip link ──────────────────────────────────────
   Off-screen rather than display:none, so it stays in the tab order and
   the first Tab on any page reveals it. */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 3000;
  transform: translateY(-120%);
  background: var(--primary-dark); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
  font-size: 14px; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); color: #fff; outline: 2px solid #fff; outline-offset: -4px; }
main[role="main"]:focus { outline: none; }   /* focused only as a skip target */

/* ── Keyboard focus ─────────────────────────────────
   Several components below set `outline: none` to replace the browser ring
   with their own; anything that does NOT is left with whatever the UA draws,
   which on a green button is close to invisible. This gives every interactive
   element one consistent ring. :focus-visible, not :focus, so a mouse click
   does not leave a ring behind. Inputs opt out — their green border plus glow
   is already the indicator, and doubling up looks like an error state. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius);
}
/* On the dark green header and hero the primary green has too little contrast. */
.glc-utility a:focus-visible,
.site-header .top-bar a:focus-visible,
.wiz-hero a:focus-visible,
.wiz-hero button:focus-visible,
.gh-hero a:focus-visible,
.gh-hero button:focus-visible {
  outline-color: #fff;
}

/* ── Header (redesign — matches home-v2 language) ──── */
.site-header { box-shadow: 0 6px 22px -16px rgba(20,60,26,.5); position: sticky; top: 0; z-index: 100; }

.top-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 52%, var(--primary-light) 100%);
  height: 4px;
}
.btn-topbar {
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 96px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .2px;
  padding: 9px 17px;
  border-radius: 11px;
  color: #fff !important;
  text-shadow: 0 -1px 0 rgba(0,0,0,.28);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-topbar i {
  font-size: 13px;
  vertical-align: -1px;
}
.btn-topbar:hover { transform: translateY(-1px); }
.btn-topbar.btn-outline-light {
  background: linear-gradient(135deg, #43b24d 0%, #2e8d37 55%, #1f7a28 100%);
  border: 1px solid #1f7a28;
  box-shadow: 0 10px 20px -10px rgba(46,125,50,.6);
}
.btn-topbar.btn-outline-light:hover,
.btn-topbar.btn-outline-light:focus {
  background: linear-gradient(135deg, #4cc257 0%, #339a3f 55%, #23862c 100%);
  box-shadow: 0 14px 26px -10px rgba(46,125,50,.68);
}
.btn-topbar.btn-accent {
  background: linear-gradient(135deg, #ff9d4d 0%, #f4731a 55%, #e65100 100%);
  border: 1px solid #d9620f;
  box-shadow: 0 10px 20px -10px rgba(230,81,0,.62);
}
.btn-topbar.btn-accent:hover,
.btn-topbar.btn-accent:focus {
  background: linear-gradient(135deg, #ffac63 0%, #fb7e22 55%, #f25a08 100%);
  box-shadow: 0 14px 26px -10px rgba(230,81,0,.7);
}
.btn-accent { background: var(--accent); color: #fff !important; border: none; }
.btn-accent:hover { background: var(--accent-light); }

.navbar-main {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e7eae8;
  padding: 9px 0;
}
/* Logo + DESIGN stay pinned to the far-left gutter; the menu items and the
   auth items (Admin / user chip) align to the same 1180px content column as
   the page body, so the links line up with the main section below. */
.nav-brand-group { display: flex; align-items: center; }
.navbar-main .navbar-toggler { margin-left: auto; }
@media (min-width: 992px) {
  .navbar-main > .container-fluid { position: relative; }
  .nav-brand-group {
    position: absolute; left: 24px; top: 50%; transform: translateY(-50%); z-index: 3;
  }
  .navbar-main .navbar-collapse {
    flex-grow: 0; width: 100%; max-width: 1180px; margin-inline: auto;
  }
  /* The brand group (logo + Design Themes button, ~360px wide) floats above the
     centered menu column; on narrower desktops push the menu right so
     Home/Documents/FAQs never hide underneath it. */
  .navbar-main .navbar-collapse .navbar-nav.me-auto {
    margin-left: clamp(0px, calc(370px - (100vw - 1180px) / 2), 430px);
  }
  /* Username chip pinned to the far-right gutter, mirroring the logo on the
     left. Admin stays in the menu group (in the content column) to its left. */
  .nav-auth-group {
    position: absolute; right: 24px; top: 50%; transform: translateY(-50%); z-index: 3;
  }
}
.brand-logo { display: flex; align-items: center; gap: 11px; }
.logo-icon {
  position: relative;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 19px; flex-shrink: 0;
  box-shadow: 0 9px 18px -8px rgba(46,125,50,.6),
              inset 0 0 0 1.5px rgba(255,255,255,.22);
}
/* subtle top sheen so the mark reads as a polished badge */
.logo-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, transparent 55%);
  pointer-events: none;
}
.logo-icon i { position: relative; z-index: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-top    { font-size: 17px; font-weight: 800; color: var(--primary-dark); letter-spacing: .2px; }
.logo-bottom { font-size: 9px; font-weight: 700; letter-spacing: 3px; color: var(--primary); text-transform: uppercase; }
.navbar-main .nav-link {
  font-size: 14px; font-weight: 500; letter-spacing: 0;
  color: #45524b !important; padding: 8px 13px !important;
  border-radius: 8px; transition: color .15s;
}
.navbar-main .nav-link:hover { color: var(--primary) !important; background: transparent; }
.navbar-main .nav-link.active {
  color: var(--primary) !important; background: transparent; font-weight: 700;
}
.navbar-main .nav-auth-item {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

/* User chip (right side) — matches the theme mockups */
.nav-user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px 4px 5px;
  color: var(--text) !important; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.nav-user-chip:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.nav-user-chip.dropdown-toggle::after { margin-left: 2px; color: var(--text-muted); border-top-color: currentColor; }
.nav-user-avatar {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff; font-size: 12px; font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25);
}
.nav-user-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.nav-user-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-email {
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 400; color: var(--text-muted);
}
.nav-admin-link {
  color: var(--accent) !important;
  font-weight: 700 !important;
  border-left: 2px solid var(--accent);
  margin-left: 8px; padding-left: 12px !important;
}
.nav-admin-link:hover { background: #fff3e0 !important; }

/* .page-hero removed — all pages now use .page-card-header */

/* ── Forms ───────────────────────────────────────── */
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.req { color: var(--danger); }

/* galottery inputs: 35px tall, 1px #ccc, 3px radius */
.form-control, .form-select {
  border: 1px solid #ccc; border-radius: var(--radius);
  font-size: 14px; padding: 6px 12px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(48,132,42,.16);
  outline: none;
}
.form-control.input-validation-error,
.form-select.input-validation-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(198,40,40,.14);
}
.field-validation-error  { color: var(--danger); font-size: 13px; display: block; margin-top: 3px; }
.field-validation-valid  { display: none; }
.field-available         { color: var(--primary-dark); font-size: 13px; display: block; margin-top: 3px; }
.field-unavailable       { color: var(--danger); font-size: 13px; display: block; margin-top: 3px; }

.form-section            { margin-bottom: 30px; }
.form-section-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 7px; margin-bottom: 18px;
}

/* ── Password strength ───────────────────────────── */
.pw-requirements { list-style: none; padding: 0; margin: 10px 0 0; }
.pw-requirements li {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 3px;
}
.pw-requirements li .req-icon { color: var(--danger); font-weight: 700; width: 14px; }
.pw-requirements li.valid     { color: var(--primary-dark); }
.pw-requirements li.valid .req-icon { color: var(--primary-dark); }

/* ── Buttons ─────────────────────────────────────── */
/* Handoff button language: UPPERCASE 12px/700, .06em, 5px radius. */
.btn { font-weight: 700; font-size: 12px; letter-spacing: .06em; border-radius: 5px; text-transform: uppercase; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--primary); border-color: var(--primary); }
.btn-success:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-cancel { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-cancel:hover { background: var(--accent-light); border-color: var(--accent-light); color: #fff; }
/* Secondary actions (add contact / owner) follow their blue CTA, not the red. */
.btn-sm-add {
  background: var(--brand-blue); color: #fff; border: none;
  padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: 5px; text-transform: uppercase;
}
.btn-sm-add:hover { background: var(--brand-blue-dark); color: #fff; }

/* ── App info bar ────────────────────────────────── */
.app-info-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 7px 16px; margin-bottom: 12px;
}
.app-info-pair { white-space: nowrap; }
.app-info-sep { color: var(--border); }
.app-info-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.app-info-value { font-size: 13px; font-weight: 700; color: var(--text); }

/* ── Wizard layout ───────────────────────────────── */
.wizard-outer {
  padding: 24px 16px 48px;
  max-width: 1180px; margin: 0 auto;
}
@media (min-width: 768px) { .wizard-outer { padding: 28px 24px 56px; } }

.wizard-layout {
  display: flex; flex-direction: column; align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────── */
.wizard-sidebar {
  width: 256px; min-width: 220px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: #fff;
}
.wizard-sidebar-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 14px 18px;
  border-bottom: none;
}
.sidebar-title {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; margin: 0;
}
.wizard-steps-list { list-style: none; padding: 8px 0; margin: 0; }
.wizard-step-item  { position: relative; }

.wizard-step-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-left: 3px solid transparent;
  text-decoration: none !important;
  transition: background .15s;
}
a.wizard-step-link:hover { background: var(--primary-pale); }

/* Step circle */
.step-circle {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* Pending */
.wizard-step-link.pending .step-circle {
  border: 2px solid #ccc; color: #bbb; background: #fff;
}
.wizard-step-link.pending .step-label { color: #bbb; font-size: 12.5px; }

/* Completed */
.wizard-step-link.completed .step-circle {
  background: var(--primary-pale); border: 2px solid var(--primary-light); color: var(--primary);
}
.wizard-step-link.completed .step-label { color: var(--text-muted); font-size: 12.5px; }

/* Active */
.wizard-step-link.active {
  background: var(--primary-pale);
  border-left-color: var(--primary);
}
.wizard-step-link.active .step-circle {
  background: var(--primary); border: 2px solid var(--primary);
  color: #fff; box-shadow: 0 2px 8px rgba(46,125,50,.32);
}
.wizard-step-link.active .step-label {
  color: var(--primary-dark); font-size: 12.5px; font-weight: 700;
}

/* ── Wizard content ──────────────────────────────── */
.wizard-content { flex: 1; padding: 14px 30px 26px; min-width: 0; }

.wizard-page-title {
  font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.wizard-page-sub {
  font-size: 13px; color: var(--text-muted); margin-bottom: 22px;
}

/* ── Wizard footer ───────────────────────────────── */
.wizard-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
}
.wizard-footer-right { display: flex; gap: 10px; }

/* ── Tables ──────────────────────────────────────── */
.tbl-wizard { font-size: 13px; }
.tbl-wizard thead th {
  background: #37474f; color: #fff;
  font-weight: 600; font-size: 12px; padding: 10px 13px; vertical-align: middle;
}
.tbl-wizard tbody td { padding: 9px 13px; vertical-align: middle; }
.tbl-wizard tbody tr:hover { background: var(--primary-pale); }
.tbl-action-btn { font-size: 12px; font-weight: 600; cursor: pointer; }
.tbl-action-btn.edit-btn { color: var(--primary); }
.tbl-action-btn.del-btn  { color: var(--danger); }

/* ── License type cards ──────────────────────────── */
.license-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px; margin-top: 14px;
}
.license-card {
  border: 1.5px solid #e6e8ec; border-radius: var(--radius-lg);
  padding: 16px; cursor: pointer; transition: all .18s ease; background: #fff;
  position: relative; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.license-card:hover { border-color: var(--primary-light); box-shadow: 0 3px 10px rgba(46,125,50,.10); }
.license-card.selected {
  border-color: var(--primary); background: var(--primary-pale);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
/* check badge on the selected card (matches the wizard's selectable cards) */
.license-card.selected::after {
  content: "\2713"; position: absolute; top: 9px; right: 11px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.license-card.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.license-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.license-card-icon   { font-size: 20px; color: var(--primary); }
.license-card.selected .license-card-icon { color: var(--primary-dark); }
.license-card-name   { font-weight: 700; font-size: 14px; }
.license-card.selected .license-card-name { color: var(--primary-dark); }
.license-card-desc   { font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* ── Pricing sidebar (aligned with the wizard helper rail) ── */
.pricing-sidebar {
  background: #fff; border: 1px solid #e6e8ec;
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  position: sticky; top: 16px;
}
.pricing-sidebar h5 {
  font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.pricing-type-title { font-weight: 700; font-size: 13px; margin-top: 12px; margin-bottom: 2px; }
.pricing-type-sub   { font-size: 13px; color: var(--text-muted); }

/* ── Accordion (review) ──────────────────────────── */
.review-accordion .accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 8px; overflow: hidden;
}
.review-accordion .accordion-button {
  background: var(--bg-light); font-weight: 600; font-size: 14px; color: var(--text);
}
.review-accordion .accordion-button:not(.collapsed) {
  background: var(--primary-pale); color: var(--primary-dark); box-shadow: none;
}

/* ── Cart / payment ──────────────────────────────── */
.cart-table thead th { background: #37474f; color: #fff; font-size: 13px; }
.total-row td { font-weight: 700; background: var(--primary-pale); font-size: 14px; }

.payment-type-card {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px 18px; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.payment-type-card.selected { border-color: var(--primary); background: var(--primary-pale); }
.payment-type-card label { cursor: pointer; margin: 0; font-weight: 600; }

/* Savebar with no title — push actions to the right */
.bx-savebar-compact { justify-content: flex-end; }

/* Top bar: app info line (left) + pinned actions (right) on one row */
.wizard-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.wizard-topbar .app-info-bar { flex: 1 1 320px; margin-bottom: 0; }
.wizard-topbar .bx-savebar-actions { flex: 0 0 auto; }
@media (max-width: 575.98px) {
  .wizard-topbar .bx-savebar-actions { width: 100%; justify-content: flex-start; }
}

/* Slim per-step completion bar (under the sub-tabs) */
.bx-stepbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 0 0 18px; }
.bx-stepbar > .bx-save-pill { grid-column: 2; }
.bx-stepbar-end { grid-column: 3; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bx-stepbar-track { flex: 0 0 70px; height: 7px; background: #eceff1; border-radius: 4px; overflow: hidden; }
.bx-stepbar-fill { display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width .35s ease; }
.bx-stepbar-text { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.bx-stepbar-text strong { color: var(--text); }

/* Application Review — Review mode field (label stacked above value) */
.review-field { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.review-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.review-value { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-word; }

/* Application Review — Preview document */
.ar-doc { max-width: 860px; margin: 0 auto; color: var(--text); }
.ar-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  border-bottom: 3px solid var(--primary); padding-bottom: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ar-doc-title { font-size: 20px; font-weight: 800; color: var(--primary-dark); }
.ar-doc-sub { font-size: 13px; color: var(--text-muted); }
.ar-doc-meta { text-align: right; font-size: 13px; }
.ar-doc-meta div { margin-bottom: 2px; }
.ar-doc-meta span { color: var(--text-muted); margin-right: 6px; }
.ar-doc-section { font-size: 14px; font-weight: 700; color: var(--primary-dark); text-transform: uppercase;
  letter-spacing: .04em; margin: 22px 0 8px; border-bottom: 1px solid #e6e8ec; padding-bottom: 4px;
  display: flex; align-items: center; gap: 10px; }
.ar-doc-edit { margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #cfe3d3; border-radius: 7px; padding: 2px 9px; background: #fff; }
.ar-doc-edit:hover { background: var(--primary-pale); color: var(--primary-dark); }
.ar-doc-text { font-size: 13.5px; line-height: 1.6; margin: 0 0 4px; }
.ar-doc-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.ar-doc-kv td { padding: 5px 8px; vertical-align: top; }
.ar-doc-kv td:nth-child(odd) { color: var(--text-muted); width: 18%; white-space: nowrap; }
.ar-doc-kv td:nth-child(even) { font-weight: 600; width: 32%; }
.ar-doc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.ar-doc-table th { text-align: left; background: var(--primary-pale); color: var(--primary-dark);
  padding: 7px 9px; border: 1px solid #d9e6db; font-weight: 700; }
.ar-doc-table td { padding: 7px 9px; border: 1px solid #e6e8ec; }
.ar-doc-table tfoot td { font-weight: 700; background: #fafafa; }

/* Print: show only the rendered preview document */
@media print {
  .wizard-topbar, .wp, .ar-toolbar, .wizard-footer, #reviewView, .bx-rail,
  .lic1-side, .lic1-mob-trigger, .ar-doc-edit, .alert,
  .modal, .navbar, header.site-header, footer { display: none !important; }
  #previewView { display: block !important; }
  .wizard-outer, .wizard-layout, .wizard-content { margin: 0 !important; padding: 0 !important;
    box-shadow: none !important; border: 0 !important; background: #fff !important; }
  body { background: #fff !important; }

  /* Invoice receipt: print clean, full width, and keep its background colours */
  .invoice-wrap { box-shadow: none !important; border: 0 !important; padding: 0 !important;
    margin: 0 auto !important; max-width: 100% !important; }
  .invoice-wrap *, .invoice-wrap .table-dark th, .invoice-wrap .badge {
    -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .invoice-wrap .table { page-break-inside: avoid; }
}

/* ZIP-first address hint */
/* Normal text flow, not flex. As a flex container every text node and every
   <strong> inside became its own flex item, so the Owners hint — which has two
   bold runs mid-sentence — rendered as six columns instead of one sentence:
   "Complete a profile for | each owner, shareholder, member and officer | of the
   business — | 10 owners | per application." */
.bx-hint { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.bx-hint i { color: var(--primary); margin-right: 6px; vertical-align: -1px; }

/* Notes modal — read-only notes left by other parties */
.note-readonly { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: #fafafa; }
.note-readonly-head { font-size: 13px; margin-bottom: 6px; }
.note-readonly-head i { color: var(--primary); }
.note-readonly-body { font-size: 14px; color: var(--text); word-break: break-word; }
.note-readonly-body p:last-child { margin-bottom: 0; }

/* Support assistant — floating Telerik Chat launcher (site-wide) */
.support-assistant { position: fixed; right: 20px; bottom: 20px; z-index: 1080; }
.support-launcher {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  box-shadow: var(--shadow-md); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.support-launcher:hover { background: var(--primary-dark); transform: translateY(-1px); }
.support-launcher.open { background: var(--primary-dark); }
.support-panel {
  position: absolute; right: 0; bottom: 70px;
  width: 360px; max-width: calc(100vw - 40px);
  height: 500px; max-height: calc(100vh - 120px);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; overflow: hidden;
}
.support-head {
  background: var(--primary); color: #fff;
  padding: 10px 14px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.support-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.support-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Message list */
.support-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.support-msg {
  max-width: 85%; padding: 9px 12px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.support-msg.bot  { align-self: flex-start; background: var(--primary-pale); color: var(--text); border-bottom-left-radius: 4px; }
.support-msg.user { align-self: flex-end;   background: var(--primary);      color: #fff;        border-bottom-right-radius: 4px; }
.support-msg.typing { color: var(--text-muted); font-style: italic; }

/* Suggested-question chips — always-visible compact bar above the composer */
.support-suggest { padding: 8px 12px 9px; border-top: 1px dashed var(--border); }
.support-suggest-label {
  font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
/* Single-row chip bar with a slim, subtle horizontal scrollbar. */
.support-suggest-row {
  display: flex; flex-wrap: nowrap; gap: 8px;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}
.support-suggest-row::-webkit-scrollbar { height: 6px; }
.support-suggest-row::-webkit-scrollbar-track { background: transparent; }
.support-suggest-row::-webkit-scrollbar-thumb {
  background: var(--primary-light); border-radius: 6px;
}
.support-suggest-row::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.support-chip {
  font-size: 12.5px; padding: 6px 11px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--primary-light); color: var(--primary-dark); background: #fff;
  white-space: nowrap; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.support-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Composer (no upload / no voice — just text + send) */
.support-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.support-input input {
  flex: 1; border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 14px; font-size: 13.5px; outline: none;
}
.support-input input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 2px var(--primary-pale); }
.support-send {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.support-send:hover { background: var(--primary-dark); }
.support-send:disabled { opacity: .5; cursor: default; }

/* Compact segmented payment selector (Cart Review) */
.bx-payseg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bx-payopt {
  position: relative; display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px; margin: 0; cursor: pointer; transition: all .18s ease; background: #fff;
}
.bx-payopt:hover { border-color: #b6c6cf; }
.bx-payopt input { position: absolute; opacity: 0; pointer-events: none; }
.bx-payopt-ic { font-size: 1.6rem; color: var(--text-muted); transition: color .18s; flex-shrink: 0; }
.bx-payopt-main { display: flex; flex-direction: column; line-height: 1.25; }
.bx-payopt-name { font-weight: 600; color: var(--text); }
.bx-payopt-fee { font-size: 13px; color: var(--text-muted); }
.bx-payopt-check { margin-left: auto; font-size: 1.15rem; color: var(--primary); opacity: 0; transform: scale(.6); transition: all .18s; }
.bx-payopt.selected { border-color: var(--primary); background: var(--primary-pale); box-shadow: 0 0 0 1px var(--primary) inset; }
.bx-payopt.selected .bx-payopt-ic { color: var(--primary-dark); }
.bx-payopt.selected .bx-payopt-check { opacity: 1; transform: scale(1); }
@media (max-width: 575.98px) { .bx-payseg { grid-template-columns: 1fr; } }

.delivery-option {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 16px; margin-bottom: 8px;
}
.delivery-option label { font-weight: 600; font-size: 13px; cursor: pointer; }
.delivery-address { font-size: 13px; color: var(--text-muted); margin-top: 4px; padding-left: 24px; }

/* ── Affidavit ───────────────────────────────────── */
.affidavit-option {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 7px; cursor: pointer; transition: all .15s;
}
.affidavit-option:hover { background: var(--primary-pale); }
.affidavit-option.selected {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ── Info alert ──────────────────────────────────── */
.info-alert {
  background: var(--primary-pale); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 13px 16px;
  color: var(--primary-dark); font-size: 13px; margin-bottom: 20px;
}
.info-alert strong { font-weight: 700; }

/* ── Invoice ─────────────────────────────────────── */
.invoice-wrap { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.invoice-hdr { border-bottom: 3px solid var(--primary); margin-bottom: 26px; padding-bottom: 14px; }
.invoice-num { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.invoice-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-pale); color: var(--primary-dark);
  border: 1px solid var(--primary-light); border-radius: 999px;
  padding: 6px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.invoice-badge .bi { font-size: 14px; }

/* ── Page Card (shared shell for ALL pages) ──────── */
/* Every page—home, register, login, wizard steps—sits
   inside .wizard-outer > .page-card                  */
.page-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Coloured header band — the galottery page-hero treatment.
   Uses the shared token so every green band in the app renders the same
   angle and stops; page-level bands carry the burst texture too. */
.page-card-header {
  background: var(--hero-burst), var(--hero-gradient);
  padding: 22px 28px 18px;
  position: relative; overflow: hidden;
}
.page-card-header h1,
.page-card-header h2,
.page-card-header h3,
.page-card-header h4 {
  color: #fff; margin: 0; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
}
.page-card-header h1 { font-size: 1.5rem; }
.page-card-header h4 { font-size: 1.15rem; }
/* Full white, not 78%. Fading text to build hierarchy is what put these
   sub-lines under AA on a coloured band; size and weight do the same job
   without costing contrast. */
.page-card-subtitle {
  color: #fff; font-size: 13px; margin-top: 5px;
}

/* Hero band variant (home page) */
.page-card-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #3d9a35 100%);
  padding: 52px 36px 44px;
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.page-card-hero::before {
  content: '';
  position: absolute; left: -60px; top: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,.09) 0%, transparent 65%);
  pointer-events: none;
}
.page-card-hero::after {
  content: '';
  position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-card-hero h1 {
  font-size: 2.1rem; font-weight: 800; margin-bottom: 12px; position: relative;
}
.page-card-hero p {
  font-size: 1rem; opacity: .9;
  max-width: 540px; margin: 0 auto 24px; position: relative;
}
.page-card-hero .hero-actions { position: relative; }

/* Body area */
.page-card-body {
  padding: 28px 30px;
}
.page-card-body-lg {
  padding: 32px 36px;
}

/* Feature cards on home page */
.feature-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; text-align: center;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon { font-size: 2.4rem; color: var(--primary); margin-bottom: 10px; }

/* Step badge strip on home page */
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(46,125,50,.30);
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: #fff; border-top: 1px solid var(--border);
  padding: 14px 0; margin-top: 40px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 767px) {
  .stepper-step-label { display: none; }
  .stepper-step.active .stepper-step-label { display: block; }
  .wizard-content { padding: 18px 14px; }
  .wizard-page-title { font-size: 1.2rem; }
  .license-type-grid { grid-template-columns: 1fr 1fr; }
  .app-info-bar .app-info-sep { display: none; }
}
@media (max-width: 480px) {
  .license-type-grid { grid-template-columns: 1fr; }
  .page-card-hero h1 { font-size: 1.5rem; }
  .page-card-body, .page-card-body-lg { padding: 16px 14px; }
}

/* ── Horizontal wizard stepper ───────────────────── */
.wizard-stepper {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 18px 28px 14px;
}

.stepper-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stepper-track::-webkit-scrollbar { display: none; }

.stepper-step {
  flex: 1;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Connector line between steps */
.stepper-step + .stepper-step::before {
  content: '';
  position: absolute;
  left: -46%; top: 14px;
  width: 98%; height: 2px;
  background: #dee2e6;
  z-index: -1;
}
.stepper-step.completed + .stepper-step::before { background: var(--primary-light); }
.stepper-step.active + .stepper-step::before {
  background: linear-gradient(to right, var(--primary-light), #dee2e6);
}

/* Circle node */
.stepper-node {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  border: 2px solid #dee2e6;
  background: #fff; color: #bbb;
  transition: all .25s; position: relative; z-index: 1;
  text-decoration: none !important;
}
.stepper-step.completed .stepper-node {
  border-color: var(--primary-light); background: var(--primary-light); color: #fff;
}
.stepper-step.completed .stepper-node:hover {
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(46,125,50,.30);
}
.stepper-step.active .stepper-node {
  border-color: var(--primary); background: var(--primary); color: #fff;
  box-shadow: 0 0 0 4px rgba(46,125,50,.18);
  width: 34px; height: 34px; font-size: 13px;
}

/* Step label below circle */
.stepper-step-label {
  font-size: 9px; font-weight: 500;
  color: var(--text-muted); margin-top: 6px;
  line-height: 1.3; max-width: 66px;
  word-break: break-word; text-align: center;
}
.stepper-step.active .stepper-step-label {
  color: var(--primary-dark); font-weight: 700; font-size: 9.5px;
}
.stepper-step.completed .stepper-step-label { color: #9e9e9e; }

/* Active step title bar below the track */
.stepper-active-title {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--primary-pale);
  font-size: 13px; font-weight: 600; color: var(--primary-dark);
}
.stepper-active-badge {
  background: var(--primary); color: #fff;
  border-radius: 30px; padding: 2px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  flex-shrink: 0;
}

/* ── Wizard content + section cards ─────────────── */
.wizard-content { flex: 1; padding: 26px 30px; min-width: 0; }

.wizard-content-header {
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-pale);
  display: flex; align-items: center; gap: 10px;
}
.wizard-content-header::before {
  content: '';
  display: inline-block; width: 4px; height: 22px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 3px; flex-shrink: 0;
}

.wizard-section {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.wizard-section-title {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--primary-dark); margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--primary-pale);
  display: flex; align-items: center; gap: 8px;
}
.wizard-section-title::before {
  content: '';
  display: inline-block; width: 3px; height: 13px;
  background: var(--primary); border-radius: 2px; flex-shrink: 0;
}

/* ── Admin status badges ──────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  white-space: nowrap;
}
.status-badge-inprogress  { background: #e3f2fd; color: #1565c0; }
.status-badge-submitted   { background: #fff3e0; color: #e65100; }
.status-badge-underreview { background: #fce4ec; color: #ad1457; }
.status-badge-approved    { background: var(--primary-pale); color: var(--primary-dark); }
.status-badge-rejected    { background: #ffebee; color: #c62828; }
.status-badge-applying    { background: #eceff1; color: #455a64; }
.status-badge-new         { background: #fff3e0; color: #e65100; }
.status-badge-paymenteftreview { background: #e0f2f1; color: #00695c; }
.status-badge-compliancereview { background: #e8eaf6; color: #283593; }

/* ── Status totals strip (compact, clickable) ────── */
.status-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: 30px;
  padding: 4px 11px 4px 5px; font-size: 12px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.status-pill b { font-size: 12.5px; }
.status-pill:hover { border-color: var(--primary-light); }
.status-pill.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(46,125,50,.15);
}
.status-pill.pill-all { font-weight: 700; padding: 4px 13px; }

/* ── Status totals — segmented stat bar variant ──── */
/* Segments share the row evenly instead of sizing to their label, so the strip
   reads as one control rather than a ragged wrap. Full width, not inline. */
.status-segbar {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 14px;
}
.status-seg {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1 1 0; gap: 1px; min-width: 86px; padding: 9px 12px 8px;
  background: none; border: none; border-left: 1px solid var(--border);
  cursor: pointer; position: relative; transition: background .15s;
}
.status-seg:first-child { border-left: none; }
.status-seg:hover { background: var(--bg-light); }
.status-seg.active { background: var(--primary-pale); }
.status-seg.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--primary);
}
.status-seg-num {
  font-size: 1.15rem; font-weight: 800; line-height: 1.15; color: var(--text);
}
/* reuse the status-badge colour palette for the number, minus the pill chrome */
.status-seg .status-seg-num.status-badge {
  background: transparent !important; padding: 0; border-radius: 0;
  font-size: 1.15rem; letter-spacing: 0;
}
.status-seg-label {
  font-size: 10.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.status-seg.active .status-seg-label { color: var(--primary-dark); }

/* ── Admin stat cards ────────────────────────────── */
.admin-stat-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 18px 20px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s;
  border-top: 3px solid transparent;
}
.admin-stat-card:hover { box-shadow: var(--shadow-md); }
.admin-stat-card.stat-inprogress  { border-top-color: #1565c0; }
.admin-stat-card.stat-submitted   { border-top-color: #e65100; }
.admin-stat-card.stat-approved    { border-top-color: var(--primary-dark); }
.admin-stat-card.stat-rejected    { border-top-color: #c62828; }
.admin-stat-value {
  font-size: 2rem; font-weight: 800; line-height: 1;
  margin-bottom: 4px;
}
.admin-stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.admin-stat-icon { font-size: 1.5rem; opacity: .18; }

/* ── DataTable overrides (compact / excel-like) ──── */
.datatable-wrap { overflow-x: auto; }
table.dt-admin {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.dt-admin thead th {
  background: #37474f; color: #fff;
  font-weight: 600; font-size: 11.5px; letter-spacing: .3px;
  padding: 9px 11px; white-space: nowrap;
  border: 1px solid #455a64;
}
table.dt-admin tbody td {
  padding: 6px 11px; vertical-align: middle;
  border: 1px solid #e8eaed;
}
table.dt-admin tbody tr:nth-child(even) { background: #f8f9fa; }
table.dt-admin tbody tr:hover { background: var(--primary-pale) !important; }
.dt-admin .dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid #ccc; border-radius: var(--radius); padding: 5px 10px; font-size: 13px;
}
.dt-admin .dataTables_wrapper .dataTables_length select {
  border: 1.5px solid #ccc; border-radius: var(--radius); padding: 4px 8px;
}

/* ── Admin detail tabs ───────────────────────────── */
.admin-detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.admin-detail-value { font-size: 13px; font-weight: 500; color: var(--text); }
.admin-info-row { padding: 7px 0; border-bottom: 1px solid #f0f0f0; }

/* ── Registration wizard OTP input ───────────────── */
.otp-input-group {
  display: flex; gap: 10px; justify-content: center;
  margin: 22px 0 8px;
}
.otp-digit {
  width: 50px; height: 58px;
  text-align: center; font-size: 24px; font-weight: 700;
  border: 2px solid var(--border); border-radius: var(--radius);
  color: var(--text); background: #fff;
  transition: border-color .2s, box-shadow .2s, background .15s;
}
.otp-digit:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,.18);
  outline: none;
}
.otp-digit.filled {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary-dark);
}
.otp-digit.otp-error {
  border-color: var(--danger);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(198,40,40,.14);
  animation: otp-shake .38s ease;
}
@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-5px); }
  40%, 80%  { transform: translateX(5px); }
}

/* ── Registration verification card ─────────────── */
.verif-card {
  background: var(--primary-pale);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 460px;
  margin: 4px auto 0;
}
.verif-icon {
  font-size: 3.4rem; color: var(--primary); margin-bottom: 10px;
  display: block;
}
.verif-title {
  font-size: 1.3rem; font-weight: 700; color: var(--primary-dark);
  margin-bottom: 8px;
}
.verif-sub {
  font-size: 13px; color: var(--text-muted); margin-bottom: 0;
  line-height: 1.6;
}
.verif-target { font-weight: 700; color: var(--primary-dark); }
.verif-error {
  color: var(--danger); font-size: 13px;
  margin-top: 8px; font-weight: 500;
}
.verif-success {
  color: var(--primary); font-size: 13px;
  margin-top: 8px; font-weight: 600;
}
.resend-link {
  font-size: 12px; color: var(--primary); cursor: pointer;
  margin-top: 16px; display: inline-block;
  border: 0; background: none; padding: 0;
  text-decoration: none;
}
.resend-link:hover { color: var(--primary-dark); text-decoration: underline; }
.resend-link:disabled { opacity: .45; cursor: not-allowed; text-decoration: none; }
.otp-resend-timer { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

@media (max-width: 480px) {
  .otp-digit { width: 40px; height: 48px; font-size: 20px; gap: 6px; }
  .verif-card { padding: 24px 16px 20px; }
}
.admin-info-row:last-child { border-bottom: none; }

/* ============================================================
   Phased wizard progress (wp-*) — grouped, scannable stepper
   Business · Owners · Locations · Payment + overall bar
   ============================================================ */
.wp { background: #fff; padding: 11px 26px 10px; border-bottom: 1px solid var(--border); }

.wp-track { display: flex; align-items: flex-start; justify-content: flex-start; gap: 0; }
.wp-phase {
  flex: 0 0 auto; padding: 0 26px;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.wp-phase:first-child { padding-left: 0; }
/* vertical divider between phase groups */
.wp-phase + .wp-phase { border-left: 1px solid var(--border); }

.wp-nodes { display: flex; align-items: center; }

.wp-node {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  border: 2px solid #dcdfe3; background: #fff; color: #aeb4ba;
  position: relative; z-index: 1; text-decoration: none !important;
  transition: all .2s;
}
/* connector between adjacent nodes inside the same phase */
.wp-node + .wp-node { margin-left: 28px; }
.wp-node + .wp-node::after {
  content: ''; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  width: 28px; height: 2px; background: #dcdfe3; z-index: 0;
}
.wp-node.done + .wp-node::after,
.wp-node.active + .wp-node::after { background: var(--primary-light); }

.wp-node.done   { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.wp-node.done:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 2px 8px rgba(46,125,50,.3); }
.wp-node.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  width: 30px; height: 30px; font-size: 12.5px;
  box-shadow: 0 0 0 4px rgba(46,125,50,.18);
}
/* Pending steps aren't reachable until their data is entered — non-clickable. */
.wp-node.pending { cursor: not-allowed; }

.wp-phase-label {
  margin-top: 9px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; color: #9aa0a6;
  white-space: nowrap;
}
.wp-phase.active .wp-phase-label { color: var(--primary-dark); }
.wp-phase.done   .wp-phase-label { color: var(--primary); }

.wp-foot { margin-top: 9px; }
.wp-bar { height: 5px; background: #eceff1; border-radius: 3px; overflow: hidden; }
.wp-bar span {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  transition: width .45s ease;
}
.wp-status { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.wp-step-badge {
  background: var(--primary); color: #fff; border-radius: 30px;
  padding: 3px 12px; font-size: 11px; font-weight: 700; letter-spacing: .3px; flex-shrink: 0;
}
.wp-step-name { font-size: 14px; font-weight: 700; color: var(--primary-dark); }
.wp-next { margin-left: auto; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.wp-next strong { color: var(--text); font-weight: 700; }
.wp-next i { transition: transform .2s; }
a.wp-next:hover i { transform: translateX(3px); }
.wp-next-final { color: var(--primary); font-weight: 700; }

@media (max-width: 767px) {
  .wp { padding: 14px 14px 12px; }
  .wp-phase { padding: 0 12px; }
  .wp-node + .wp-node { margin-left: 18px; }
  .wp-node + .wp-node::after { width: 18px; }
  .wp-phase-label { font-size: 9px; letter-spacing: .3px; }
  .wp-next { margin-left: 0; width: 100%; }
}

/* ============================================================
   Business Information — UX showcase (bx-*)
   Same flow/data; redesigned experience: autosave, live
   validation, section completion, contextual helper rail.
   ============================================================ */

/* Sticky save bar */
.bx-savebar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; padding: 14px 0 16px; margin-bottom: 6px;
  border-bottom: 2px solid var(--primary-pale);
}
.bx-savebar-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.bx-save-pill {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 30px;
  border: 1px solid transparent; transition: all .25s;
}
.bx-save-pill i { font-size: 14px; }
.bx-save-pill--sm { font-size: 11px; padding: 3px 9px; gap: 5px; }
.bx-save-pill--sm i { font-size: 11px; }
.bx-save-pill[data-state="idle"],
.bx-save-pill[data-state="saved"]  { background: var(--primary-pale); color: var(--primary-dark); border-color: #bfdebc; }
.bx-save-pill[data-state="dirty"],
.bx-save-pill[data-state="saving"] { background: #fff8e1; color: #b26a00; border-color: #ffe2a8; }
.bx-save-pill[data-state="saving"] i { animation: bx-spin 1s linear infinite; }
.bx-save-pill[data-state="error"] { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-border); }
@keyframes bx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bx-save-pill[data-state="saving"] i { animation: none; }
}

/* ── Error summary above a step ──────────────────────────────
   Built client-side from whatever the server marked invalid, so one long
   step cannot fail with its only clue below the fold. */
.wiz-errsum {
  border: 1px solid var(--danger); border-left: 4px solid var(--danger);
  background: #fff; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 18px;
}
.wiz-errsum:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.wiz-errsum h2 {
  font-size: 15px; font-weight: 700; color: var(--danger); margin: 0 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.wiz-errsum ul { margin: 0; padding-left: 20px; }
.wiz-errsum li { font-size: 13px; line-height: 1.6; }
.wiz-errsum a { color: var(--danger); text-decoration: underline; }

/* Scrollable legal text on the affidavit — was an inline style block with its
   own greys and a 0.375rem radius that matched nothing else. */
.affidavit-legal-text {
  max-height: 180px; overflow-y: auto;
  background: var(--bg-light); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 13px; line-height: 1.65;
}

/* ── Bootstrap contextual classes, re-pointed at our tokens ──
   Bootstrap's success is #198754 and its primary is #0d6efd; ours are #30842a
   and #057cb8. Around thirty call sites across the applicant pages still use
   the Bootstrap names, and each one rendered in the wrong green or blue.

   Re-pointing the classes rather than renaming every call site: the geometry
   of .btn is already overridden here, "primary" genuinely means our green in
   this product, and a rename pass over thirty sites buys nothing but risk. New
   markup should still use .glc-btn.

   alert-danger is deliberately left alone — Bootstrap's red is close enough to
   ours and it is the one context where the colour is already correct. */
.btn-success, .btn-primary {
  background-color: var(--primary); border-color: var(--primary); color: #fff;
}
.btn-success:hover, .btn-primary:hover,
.btn-success:focus, .btn-primary:focus,
.btn-check:checked + .btn-success, .btn-check:checked + .btn-primary {
  background-color: var(--primary-dark); border-color: var(--primary-dark); color: #fff;
}
.btn-outline-primary {
  color: var(--primary); border-color: var(--primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary); border-color: var(--primary); color: #fff;
}
.btn-outline-success { color: var(--primary-dark); border-color: var(--pale-border); }
.btn-outline-success:hover, .btn-outline-success:focus {
  background-color: var(--primary-pale); border-color: var(--primary); color: var(--primary-dark);
}
.text-primary { color: var(--primary-dark) !important; }
.text-success { color: var(--primary-dark) !important; }
.bg-success   { background-color: var(--primary) !important; }
.bg-primary   { background-color: var(--brand-blue) !important; }

.alert-success {
  background-color: var(--primary-pale); border-color: var(--pale-border); color: var(--primary-dark);
}
.alert-info {
  background-color: var(--bg-light); border-color: var(--hairline); color: var(--text);
}
.alert-warning {
  background-color: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text);
}

/* ── Payment total box ───────────────────────────────────────
   Was a Bootstrap alert-success (their green, not ours) with the fee warning
   in a hardcoded #a35a00. */
.pay-total {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--primary-pale); border: 1px solid var(--pale-border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px;
  color: var(--primary-dark);
}
.pay-total > .bi { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.pay-total strong { font-size: 14px; }
.pay-total-amount { font-size: 18px; font-weight: 800; }
.pay-total-sub { font-size: 13px; margin-top: 3px; opacity: .85; }

/* ── Payment outcome panels ──────────────────────────────────
   "Still processing" and "the bank declined it" are different things and
   used to share one Bootstrap alert. Pending takes the warning tokens;
   only an actual failure is red, per the red-is-errors-only rule. */
.pay-panel {
  border: 1px solid; border-left-width: 4px; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 18px;
}
.pay-panel-pending { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.pay-panel-failed  { background: #fff; border-color: var(--danger); color: var(--text); }
.pay-panel-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; margin-bottom: 8px;
}
.pay-panel-failed .pay-panel-head { color: var(--danger); }
.pay-panel-msg { font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.pay-panel-msg:last-child { margin-bottom: 0; }
.pay-panel-msg a { color: inherit; text-decoration: underline; }
.pay-panel-ref {
  font-size: 13px; margin: 10px 0 0; padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.09); opacity: .85;
}

/* ── Attestation block ───────────────────────────────────────
   Pale-green container, not a warning: the applicant is being asked to
   confirm something, not corrected. */
.attest-block {
  border: 1px solid var(--pale-border); background: var(--primary-pale);
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px;
}
.attest-row { display: flex; gap: 10px; align-items: flex-start; margin: 0; cursor: pointer; }
.attest-row > span { font-size: 13px; line-height: 1.6; color: var(--primary-dark); }
.attest-stamp {
  margin: 8px 0 0 28px; font-size: 13px; color: var(--primary-dark); opacity: .8;
  display: flex; align-items: center; gap: 6px;
}

/* ── Cap note ────────────────────────────────────────────────
   Says why an action is unavailable. A disabled control alone does not. */
.cap-note {
  display: flex; gap: 9px; align-items: flex-start;
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 11px 14px; margin: 0 0 12px;
  font-size: 13px; line-height: 1.55; color: var(--text-muted);
}
.cap-note .bi { flex-shrink: 0; margin-top: 2px; }

/* ── Idle warning ────────────────────────────────────────────
   Fires before the session goes, not after. A toast rather than a modal:
   nothing has been lost yet, so it must not take the keyboard. */
.wiz-idle-warn {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 1900; max-width: min(560px, calc(100% - 32px));
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 12px 16px; font-size: 13px; line-height: 1.55; color: var(--warn-text);
}
.wiz-idle-warn .bi { flex-shrink: 0; margin-top: 2px; }

/* ── Signed-out overlay ──────────────────────────────────────
   A pill is too quiet for this: anything typed since the session died exists
   only in the browser, so the page blocks rather than letting someone keep
   typing into nothing. */
.wiz-expired {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(23,20,20,.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.wiz-expired-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  max-width: 460px; padding: 26px 28px;
}
.wiz-expired-card h2 {
  font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 12px;
  display: flex; align-items: center; gap: 9px;
}
.wiz-expired-card h2 .bi { color: var(--warn-text); }
.wiz-expired-card p { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0 0 10px; }
.wiz-expired-actions { margin: 18px 0 0; }
.wiz-expired-note { font-size: 13px !important; color: var(--text-muted) !important; margin: 14px 0 0 !important; }

/* Two-column layout: form + helper rail. Only the standalone design preview
   uses the rail now — inside .lic1-main it was a third column (see below). */
.bx-grid { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.bx-main { min-width: 0; }
/* The wizard already spends 334px on its side nav, so a 290px rail plus the gap
   left the form 412px of a 1140px page: the order table wrapped its description
   over four lines, the two payment tiles wrapped their own labels, and Signed By
   / Title / Prepared Date were too narrow to show a placeholder. One column
   here; the rail's cards render inline instead. */
.lic1-main .bx-grid { grid-template-columns: minmax(0, 1fr); }
.bx-rail-inline { margin-bottom: 18px; }

/* Section cards — headed like galottery's form sections:
   uppercase green heading over a light rule. */
.bx-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px;
  transition: border-color .25s;
}
.bx-card.section-complete { border-color: #bfdebc; }
.bx-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5;
}
.bx-card-title {
  font-size: 16px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .3px;
  display: flex; align-items: center; gap: 8px;
}
.bx-card-title i { color: var(--primary); font-size: 17px; }
.bx-card-badge {
  display: none; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-pale); border-radius: 30px; padding: 3px 10px;
}
.bx-card.section-complete .bx-card-badge { display: inline-flex; }

/* Fields + live validation icon */
.bx-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; display: block; }
.req { color: #b60000; }   /* galottery's required-field red */
.bx-optional { font-size: 11px; font-weight: 500; color: #9aa0a6; }
.bx-input-wrap { position: relative; }
.bx-input { padding-right: 36px; }
.bx-input-icon {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  font-size: 15px; opacity: 0; transition: opacity .2s;
}
.bx-field.is-ok  .bx-input { border-color: var(--primary-light); }
.bx-field.is-ok  .bx-input-icon::before { content: "\F26B"; color: var(--primary-dark); }  /* bi-check-circle-fill */
.bx-field.is-ok  .bx-input-icon { opacity: 1; }
.bx-field.is-bad .bx-input { border-color: var(--danger); }
.bx-field.is-bad .bx-input-icon::before { content: "\F33A"; color: var(--danger); } /* bi-exclamation-circle-fill */
.bx-field.is-bad .bx-input-icon { opacity: 1; }
select.bx-input { padding-right: 30px; }

/* Help dot */
.bx-help-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; border: none;
  background: #d7dbe0; color: #fff; font-size: 10px; font-weight: 800;
  cursor: pointer; vertical-align: middle; margin-left: 3px; line-height: 1;
}
.bx-help-dot:hover { background: var(--primary); }

/* "Same as" toggle */
.bx-toggle {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.bx-toggle:hover { background: var(--primary-pale); border-color: var(--primary-light); }
.bx-toggle span  { font-weight: 600; font-size: 13px; }
.bx-toggle small { grid-column: 2; color: var(--text-muted); font-size: 13px; }

/* Collapsible mailing section */
.bx-collapsible { overflow: hidden; max-height: 800px; transition: max-height .35s ease, opacity .25s; opacity: 1; }
.bx-collapsible.collapsed { max-height: 0; opacity: 0; }

/* Collapsible review accordion (Application Review) */
.bx-acc-head { cursor: pointer; user-select: none; margin-bottom: 0; }
.bx-acc-actions { display: inline-flex; align-items: center; gap: 12px; }
.bx-acc-caret { color: var(--text-muted); transition: transform .25s ease; font-size: .95rem; }
.bx-acc.collapsed .bx-acc-caret { transform: rotate(180deg); }
.bx-acc.collapsed .bx-acc-head { border-bottom-color: transparent; padding-bottom: 0; }
.bx-acc-body { margin-top: 16px; }
.bx-acc-body.collapsed { margin-top: 0; }

/* Helper rail */
.bx-rail { position: sticky; top: 132px; display: flex; flex-direction: column; gap: 14px; }
.bx-rail-card {
  background: #fff; border: 1px solid #e6e8ec; border-radius: var(--radius-lg);
  padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.bx-rail-head { font-size: 12px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.bx-rail-head i { color: var(--primary); }

/* Progress ring */
.bx-rail-progress { position: relative; width: 92px; height: 92px; margin: 2px auto 10px; }
.bx-ring { width: 92px; height: 92px; transform: rotate(-90deg); }
.bx-ring-bg { fill: none; stroke: #eceff1; stroke-width: 3.2; }
.bx-ring-fg { fill: none; stroke: var(--primary); stroke-width: 3.2; stroke-linecap: round;
              stroke-dasharray: 0,100; transition: stroke-dasharray .5s ease; }
.bx-ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
                 font-size: 20px; font-weight: 800; color: var(--primary-dark); transform: rotate(0); }
.bx-rail-progress-text { text-align: center; font-size: 13px; color: var(--text-muted); }
.bx-rail-progress-text strong { color: var(--text); }

/* Summary list */
.bx-summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.bx-summary dt { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.bx-summary dd { font-size: 13px; font-weight: 600; color: var(--text); margin: 0; text-align: right; }

.bx-rail-help { background: var(--primary-pale); border-color: #c8e6c9; }
.bx-rail-help p { font-size: 13px; color: #33691e; margin: 0 0 10px; line-height: 1.55; }
.bx-rail-link { font-size: 12px; font-weight: 700; }
.bx-rail-link i { transition: transform .2s; }
.bx-rail-link:hover i { transform: translateX(3px); }

/* Pinned save-bar actions (Review / Notes) */
.bx-savebar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.bx-pin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  text-decoration: none; cursor: pointer; transition: all .2s;
}
.bx-pin-btn i { font-size: 14px; }
.bx-pin-btn:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-pale); }
.bx-pin-btn.bx-pin-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.bx-pin-btn.bx-pin-primary:hover { background: var(--primary-dark); color: #fff; }

/* Sub-tabs within a step (General / Address / Review) */
.bx-tabs { display: flex; gap: 4px; border-bottom: 2px solid #eef0f2; margin-bottom: 14px; flex-wrap: wrap; }
.bx-tab {
  display: inline-flex; align-items: center; gap: 8px; border: none; background: none;
  padding: 6px 16px 8px; font-size: 13.5px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s; text-decoration: none;
}
.bx-tabs .bx-tab:first-child { padding-left: 0; }
.bx-tab i { font-size: 15px; }
.bx-tab:hover { color: var(--text); }
.bx-tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.bx-tab .bx-tab-check { display: none; color: var(--primary-dark); font-size: 14px; }
.bx-tab.tab-complete .bx-tab-check { display: inline-block; }
.bx-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e6e8ec; color: var(--text-muted); font-size: 11px; font-weight: 800;
}
.bx-tab.active .bx-tab-count { background: var(--primary); color: #fff; }
.bx-tabpanel { display: none; }
.bx-tabpanel.active { display: block; animation: bx-fade .2s ease; }

/* Empty-state inside a card */
.bx-empty { text-align: center; padding: 28px 16px; color: var(--text-muted); }
.bx-empty > i { font-size: 30px; opacity: .4; }   /* decorative icon only — not the button's */
.bx-empty p { margin: 8px 0 14px; font-size: 13.5px; }

/* Inline "add machine" row */
.bx-machine-add { border: 1px dashed var(--primary-light); border-radius: var(--radius); padding: 14px; background: var(--primary-pale); margin-bottom: 8px; }

/* Verify Info rows */
.bx-verify-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; background: #fafbfc;
}
.bx-verify-info { min-width: 0; }
.bx-verify-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.bx-verify-val { font-size: 13.5px; font-weight: 600; color: var(--text); word-break: break-all; }
@keyframes bx-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* This-step Review tab */
.bx-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bx-review-block { background: #fafbfc; border: 1px solid #eef0f2; border-radius: var(--radius); padding: 16px 18px; }
.bx-review-block h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--primary-dark); margin: 0 0 10px; }
.bx-review-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed #eef0f2; }
.bx-review-row:last-child { border-bottom: none; }
.bx-review-row .k { color: var(--text-muted); font-weight: 600; }
.bx-review-row .v { color: var(--text); font-weight: 600; text-align: right; }
.bx-review-empty { color: #9aa0a6; font-style: italic; font-size: 13px; }

/* Responsive: rail drops below the form */
@media (max-width: 991px) {
  .bx-grid { grid-template-columns: 1fr; }
  .bx-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .bx-rail-card { flex: 1 1 200px; }
  .bx-savebar { top: 0; }
  .bx-review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .bx-savebar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bx-savebar-actions { width: 100%; justify-content: flex-start; }
}

/* Same 1140px measure as .glc-shell — the wizard sat 200px wider than every
   other page, so the header and footer visibly stepped in at its edges. */
.lic1-shell {
  display: flex; align-items: flex-start;
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto; padding: 24px 0 48px;
}

/* ── Per-step applicant help popup (button in the top bar; admin-editable) ── */
.wiz-help-btn .bi { color: var(--primary-dark); }
.wiz-help-btn:hover .bi { color: var(--primary-dark); }
.wiz-help-modal .modal-header {
  background: var(--primary-pale); border-bottom: 1px solid #cde9d0; padding: 14px 18px;
}
.wiz-help-modal .modal-title { font-size: 16px; font-weight: 700; color: var(--primary-dark); }
.wiz-help-modal .modal-title .bi { margin-right: 8px; }
.wiz-help-modal .modal-body { font-size: 13.5px; line-height: 1.6; color: #33523a; }
.wiz-help-modal .modal-body p { margin-bottom: 8px; }
.wiz-help-modal .modal-body > :last-child { margin-bottom: 0; }
.wiz-help-modal .modal-body a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.wiz-help-modal .modal-body a:hover { text-decoration: underline; }
.wiz-help-modal .wiz-help-admin { display: flex; gap: 12px; margin-right: auto; }
.wiz-help-modal .wiz-help-admin a { color: var(--primary-dark); font-size: 12.5px; opacity: .75; text-decoration: none; }
.wiz-help-modal .wiz-help-admin a:hover { opacity: 1; }
.wiz-help-cta { margin-top: 10px; }
@media (min-width: 768px) { .lic1-shell { padding: 28px 24px 56px; } }

.lic1-side { width: 290px; flex-shrink: 0; }
.lic1-main {
  flex: 1; min-width: 0; margin-left: 20px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 16px 28px 26px;
}
/* Top bar sits tight to the content; empty validation box never reserves space. */
/* These used to force flex-wrap:nowrap and only relax below 760px, which was the
   wrong trigger. The row overflows whenever the info bar plus the action buttons
   exceed the content column, and .lic1-main is only ~780px wide even on a 1425px
   viewport — so with a long business name it broke on the desktop the applicant
   is actually using: Notes ran 230px past the column and the page scrolled
   sideways. Wrap when it does not fit, stay inline when it does. */
.lic1-main .wizard-topbar { margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
/* min-width:0 lets the info bar shrink below its content width instead of
   forcing the row wider than its parent. */
.lic1-main .wizard-topbar .app-info-bar { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.lic1-main .wizard-topbar .app-info-bar .app-info-sep { display: inline; }
.lic1-main .wizard-topbar .bx-savebar-actions { margin-left: auto; flex-wrap: wrap; }
.lic1-main .validation-summary-valid { display: none; }
@media (max-width: 760px) {
  .lic1-main .wizard-topbar { flex-wrap: wrap; }
  /* The one-line info bar's nowrap min-width exceeds narrow phones and
     stretches the column (horizontal scroll at 375px) — let it wrap. */
  .lic1-main .wizard-topbar .app-info-bar { flex-wrap: wrap; white-space: normal; }
  .lic1-main .wizard-topbar .bx-savebar-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  /* Same phone-width overflow: the step header row (save pill + 220px-min
     progress bar) and the card padding force a 325px minimum. */
  .lic1-stephead { flex-wrap: wrap; }
  .lic1-reqbar { min-width: 0; flex: 1 1 100%; }
  .lic1-main { padding: 14px 16px 22px; }
}
@media (max-width: 900px) {
  /* align-items:flex-start is inherited from the row layout, and once the shell
     turns into a column that sizes both children to their CONTENT width rather
     than the shell's. A wide grid then stretched .lic1-main to 609px inside a
     312px shell and the whole page scrolled sideways. stretch pins it to the
     shell so wide tables scroll inside themselves instead. */
  .lic1-shell { flex-direction: column; align-items: stretch; }
  .lic1-side  { width: 100%; position: sticky; top: 0; z-index: 90; margin-bottom: 0; }
  .lic1-main  { margin-left: 0; margin-top: 12px; min-width: 0; }
  .lic1-nav   { display: none; }
  /* The grid and req-bar overrides for this breakpoint live at the very end of
     the file: .bx-card .k-grid and .lic1-reqbar-text are both declared later
     than this block, and a media query adds no specificity, so they would win
     on source order alone. */
}

/* ── Side-nav card ───────────────────────────────── */
.lic1-nav {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  position: sticky; top: 16px;
}
/* Small card header: same gradient token, no burst — the texture is sized
   for full-width bands and reads as noise at this scale. */
.lic1-nav-head {
  background: var(--hero-gradient);
  padding: 15px 18px;
}
.lic1-nav-head h2 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; margin: 0;
}
.lic1-nav-head p { margin: 3px 0 0; font-size: 13px; color: #fff; }

.lic1-phase { padding: 6px 0 8px; }
.lic1-phase + .lic1-phase { border-top: 1px solid var(--border); }
.lic1-phase-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: var(--text-muted); padding: 9px 18px 3px;
}
.lic1-phase.active .lic1-phase-label { color: var(--text); }
.lic1-phase.done   .lic1-phase-label { color: var(--text); }

/* Step row — circular timeline nodes (no numbers) */
.lic1-step {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px; text-decoration: none !important;
  border-left: 3px solid transparent;
}
a.lic1-step:hover { background: var(--primary-pale); }
.lic1-step .node {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
  border: 2px solid #cfd4d9; background: #fff;
  transition: background .15s, border-color .15s;
}
.lic1-step .lbl { font-size: 13px; color: #9e9e9e; font-weight: 600; }
.lic1-step.completed .node { background: var(--primary); border-color: var(--primary); }
.lic1-step.completed .lbl  { color: var(--text-muted); }
/* Current step: blue (brand secondary) vertical bar + bold label — no background fill.
   The node keeps its traffic-light color so "current" never masks the data state. */
.lic1-step.active {
  border-left: 4px solid var(--brand-blue);
}
.lic1-step.active .lbl { color: var(--primary-dark); font-weight: 800; }

/* Nested sub-tabs (active step only) — smaller circular nodes on a branch line */
.lic1-subs { list-style: none; margin: 2px 0 8px; padding: 0; position: relative; }
.lic1-subs::before {
  content: ""; position: absolute; left: 28px; top: 2px; bottom: 12px; width: 2px; background: var(--border);
}
.lic1-sub {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; text-align: left; cursor: pointer;
  padding: 7px 18px 7px 46px; font-size: 13px; color: var(--text-muted);
  position: relative; text-decoration: none !important;
}
.lic1-sub .subnode {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #cfd4d9; background: #fff;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.lic1-sub:hover { color: var(--primary-dark); }
.lic1-sub.complete .subnode { background: var(--primary); border-color: var(--primary); }
/* Current sub-tab: blue (brand secondary) vertical bar + bold label — no background fill
   (inset shadow avoids a layout shift); the dot keeps its traffic-light state color. */
.lic1-sub.active {
  color: var(--primary-dark); font-weight: 800;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}
.lic1-sub.active.complete .subnode { background: var(--primary); border-color: var(--primary); }

.lic1-step.pending { cursor: not-allowed; }
.lic1-step.pending .node {
  border-color: #cfd4d9; background: #fff;
}
/* Data states: green = all required data valid, amber = started, gray
   outline = nothing entered yet. Red is reserved for errors (handoff rule) —
   a fresh application must not open to a column of red dots. All steps stay
   clickable regardless of state. */
.lic1-step.st-done .node { background: var(--primary); border-color: var(--primary); }
.lic1-step.st-done .lbl  { color: var(--text-muted); }
.lic1-step.st-part .node { background: #f0932b; border-color: #f0932b; }
.lic1-step.st-none .node { background: #fff; border-color: #cfd4d9; }
.lic1-sub.st-done .subnode { background: var(--primary); border-color: var(--primary); }
.lic1-sub.st-part .subnode { background: #f0932b; border-color: #f0932b; }
.lic1-sub.st-none .subnode { background: #fff; border-color: #cfd4d9; }
/* On the active page, the page's own per-section "complete" ticks (JS-managed)
   win over the step-level state color. Placed after the st-* rules on purpose. */
.lic1-sub.complete .subnode { background: var(--primary); border-color: var(--primary); box-shadow: none; }
/* Amber "incomplete" dot for the active page's own tab buttons (JS-managed).
   Excludes st-* dots — those are colored by the traffic-light rules above. */
.lic1-sub:not(.complete):not(.untracked):not(.st-done):not(.st-part):not(.st-none) .subnode {
  border-color: #e0a020; background: #e0a020;
}

/* Staff Messages page: stacked conversation boxes */
.staff-msg-box {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.staff-msg-title { font-size: 14.5px; font-weight: 700; }
.staff-msg-title a { color: var(--primary-dark); text-decoration: none; }
.staff-msg-title a:hover { text-decoration: underline; }
.staff-msg-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.staff-msg-date { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

/* Payment page: ACH / Credit Card method chooser */
.pay-method-option {
  display: inline-flex; align-items: center; cursor: pointer;
  padding: 10px 18px; border: 2px solid #d6dbe0; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: #444; background: #fff;
  transition: border-color .15s, background .15s, color .15s;
}
.pay-method-option:hover { border-color: var(--primary); }
.pay-method-option.selected {
  border-color: var(--primary); background: var(--primary-pale); color: var(--primary-dark);
}
.pay-method-option .form-check-input { margin-top: 0; }

.lic1-nav-foot { padding: 13px 18px 15px; border-top: 1px solid var(--border); }
.lic1-bar { height: 6px; background: #eceff1; border-radius: 3px; overflow: hidden; }
.lic1-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); transition: width .3s; }
.lic1-bar-text { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── Main content step header (slim required-field progress) ─── */
.lic1-stephead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.lic1-stephead > .bx-save-pill { grid-column: 2; }
.lic1-stephead > .lic1-reqbar  { grid-column: 3; justify-self: end; }
.lic1-reqbar { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.lic1-reqbar-track { flex: 1; height: 6px; background: #eceff1; border-radius: 3px; overflow: hidden; }
.lic1-reqbar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); transition: width .3s; }
.lic1-reqbar-text { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.lic1-reqbar-text strong { color: var(--text); }

/* ── Application messages (conversation thread) ── */
.msg-compose { background: #fff; border: 1px solid #e8eaed; border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.msg-sep { border-top: 2px dashed #e0e0e0; }
.msg-item { border: 1px solid #e8eaed; border-radius: var(--radius-lg); margin-bottom: 16px; overflow: hidden; background: #fff; }
.msg-item.msg-mine { border-color: var(--primary-light); }
.msg-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px;
            padding: 8px 14px; background: var(--bg-light); border-bottom: 1px solid #eceff1; }
.msg-item.msg-mine .msg-head { background: var(--primary-pale); }
.msg-author { font-weight: 600; color: var(--text); font-size: 14px; }
.msg-role { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--text-muted);
            background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1px 8px; }
.msg-date { font-size: 13px; color: var(--text-muted); }
.msg-body { padding: 12px 14px; color: var(--text); font-size: 14px; line-height: 1.55; word-wrap: break-word; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-to { padding: 0 14px 10px; font-size: 13px; color: var(--text-muted); }

/* My Applications grid — kebab row-actions menu */
.row-menu-btn { padding: 2px 8px; line-height: 1; color: var(--text-muted); border: none; background: transparent; border-radius: 6px; }
.row-menu-btn:hover, .row-menu-btn:focus { background: rgba(0,0,0,.06); color: var(--text); }
.row-menu-btn i { font-size: 16px; }
.row-action-menu { position: fixed; z-index: 1080; min-width: 168px; padding: 6px; display: none; }
.row-action-menu.show { display: block; }
.row-action-menu .dropdown-item { display: flex; align-items: center; border-radius: 6px; padding: 7px 10px; font-size: 13.5px; }
.row-action-menu .dropdown-item:active { color: #fff; }

/* ── Applications grid AI smart-search box ───────────────────── */
.ai-smartbox { background: var(--primary-pale); border: 1px solid #c8e6c9; border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px; }
.ai-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ai-chips-label { font-size: 12px; font-weight: 600; color: var(--primary-dark); margin-right: 2px; }
.ai-chip { border: 1px solid var(--primary-light); background: #fff; color: var(--primary-dark); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; transition: background .15s, color .15s; }
.ai-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ai-input-row { display: flex; align-items: center; gap: 8px; position: relative; }
.ai-input-row .ai-input-icon { position: absolute; left: 12px; color: var(--primary); font-size: 15px; pointer-events: none; z-index: 1; }
.ai-input-row input { flex: 1 1 auto; min-width: 0; padding-left: 34px; }
.ai-input-row .btn { flex: 0 0 auto; white-space: nowrap; }
.ai-status { margin-top: 8px; font-size: 12.5px; font-weight: 500; }
.ai-status.ok   { color: var(--primary-dark); }
.ai-status.warn { color: var(--danger); }
.ai-status.busy { color: var(--text-muted); }
.ai-note { margin-top: 8px; font-size: 13px; color: var(--text-muted); }

/* AI smartbox mode toggle (Smart Filter / Semantic) */
.ai-modes { display: inline-flex; gap: 4px; background: #fff; border: 1px solid #c8e6c9; border-radius: 999px; padding: 3px; margin-bottom: 12px; }
.ai-mode-btn { border: none; background: transparent; color: var(--text-muted); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ai-mode-btn:hover { color: var(--primary-dark); }
.ai-mode-btn.active { background: var(--primary); color: #fff; }
.ai-mode-sub { font-weight: 400; opacity: .8; font-size: 11px; }

/* ── Telerik Kendo Grid — site-wide CSS overrides ─────────────────────────
   Goals: readable 13 px body text, compact rows, consistent with site font.
   Tag/badge columns keep their own styles — we only touch base grid chrome.
   ──────────────────────────────────────────────────────────────────────── */

/* Base font for ALL grid cells. --font-main was never defined anywhere, so this
   silently resolved to the Inter fallback and every grid in the product rendered
   in a different typeface from the rest of the app. Name the real face. */
.k-grid,
.k-grid .k-table-td,
.k-grid .k-table-th,
.k-grid .k-grid-content,
.k-grid .k-grid-header {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
}

/* Header row. The Kendo theme paints this in brand orange with white text,
   which measures 3.50:1 — under the 4.5 AA needs for text this size, on the
   densest screen in the product. A saturated bar also competes with the status
   badges in the rows beneath it, which are the column that actually carries
   meaning. Neutral header, ink text, hairline rule: ~17:1 and the badges read. */
.k-grid .k-table-th,
.k-grid .k-grid-header .k-table-th,
.k-grid .k-grid-header {
    background: var(--bg-light);
    color: var(--text);
}
.k-grid .k-table-th,
.k-grid .k-grid-header .k-table-th {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--border);
}
.k-grid .k-grid-header .k-sort-icon { color: var(--primary); opacity: 1; }

/* Sort icon alignment */
.k-grid .k-sort-icon { font-size: 11px; opacity: .65; }

/* Cell padding — compact but not cramped */
.k-grid .k-table-td  { padding: 3px 5px; line-height: 1.45; vertical-align: middle; }
.k-grid .k-table-th  { padding: 7px 10px; line-height: 1.4;  vertical-align: middle; }

/* Small-size variant tightens further */
.k-grid.k-grid-sm .k-table-td { padding: 3px 5px; }
.k-grid.k-grid-sm .k-table-th { padding: 5px 9px; }

/* Alternating row tint */
.k-grid .k-table-row:hover > .k-table-td { background: #f0f7f0; }

/* Monospace fields (App #, IP, Txn) — inherit grid font-size, just fix family */
.k-grid .font-monospace { font-size: inherit; }

/* Action button column */
.k-grid .row-menu-btn {
    padding: 2px 7px;
    font-size: 13px;
    line-height: 1.4;
}

/* Progress bar inside grid */
.k-grid .progress { margin: 0; height: 6px; }

/* Pager */
.k-grid .k-pager,
.k-grid .k-pager-wrap {
    font-size: 12.5px;
    padding: 5px 8px;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}
.k-grid .k-pager .k-pager-info { font-size: 12px; color: #718096; }

/* No-records placeholder */
.k-grid .k-grid-norecords td { font-size: 13px; color: #718096; padding: 24px 12px; }

/* Scrollable grid — match site card border */
.k-grid { border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.k-grid .k-grid-header { border-bottom: none; }

/* Inside wizard bx-card the card already provides the border */
.bx-card .k-grid { border: none; border-radius: 0; overflow: visible; }

/* ── Navbar design switcher dropdown ──────────────────────────────────────── */
.nav-ds-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(46,125,50,0.18) 0%, rgba(27,94,32,0.25) 100%);
  border: 1px solid rgba(76,175,80,0.55);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  color: var(--primary-dark);
  cursor: pointer; white-space: nowrap;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px -2px rgba(46,125,50,0.20), inset 0 1px 0 rgba(255,255,255,0.40);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.nav-ds-toggle:hover,
.nav-ds-toggle:focus,
.nav-ds-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(46,125,50,0.30) 0%, rgba(27,94,32,0.40) 100%);
  border-color: rgba(76,175,80,0.80);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px -4px rgba(46,125,50,0.35), inset 0 1px 0 rgba(255,255,255,0.45);
}
.nav-ds-toggle::after { display: none; } /* hide default Bootstrap caret */
.nav-ds-toggle .bi-caret-down-fill {
  font-size: 8px; opacity: .7;
  transition: transform .2s ease;
}
.nav-ds-toggle[aria-expanded="true"] .bi-caret-down-fill { transform: rotate(180deg); }

.nav-ds-menu {
  min-width: 150px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.20);
  margin-top: 6px !important;
}
.nav-ds-menu .dropdown-item {
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  padding: 8px 12px;
  display: flex; align-items: center;
  color: var(--text);
  transition: background .12s, color .12s;
}
.nav-ds-menu .dropdown-item i { color: var(--primary); }
.nav-ds-menu .dropdown-item:hover { background: var(--primary-pale); color: var(--primary-dark); }
.nav-ds-menu .dropdown-item.active {
  background: linear-gradient(135deg, #1f9d4a, #e8631a);
  color: #fff;
}
.nav-ds-menu .dropdown-item.active i { color: rgba(255,255,255,.85); }
.ds-check { margin-left: auto; font-size: 14px; font-weight: 800; }
.nav-ds-label { display: none; } /* kept for fallback compat */

/* ── Mobile wizard side-nav ──────────────────────────────────────────── */
/* Trigger bar: hidden on desktop, activated by mobile media query */
.lic1-mob-trigger { display: none; }

/* Overlay panel lives in DOM at all times; shown only when open */
.lic1-mob-panel {
  display: none;
  position: fixed; inset: 0;
  z-index: 1050;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}
.lic1-mob-panel.lic1-mob-panel--open { display: flex; pointer-events: auto; }

body.lic1-nav-open { overflow: hidden; max-width: 100vw; }

/* Semi-transparent backdrop */
.lic1-mob-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.50);
  border: none; padding: 0; cursor: pointer;
  animation: licMobFadeIn .22s ease;
}

/* Drawer pane — slides down from top */
.lic1-mob-pane {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  max-height: 82vh; overflow: hidden;
  margin-top: 85px;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,.28);
  animation: licMobSlideDown .26s ease;
}

@keyframes licMobFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes licMobSlideDown {
  from { transform: translateY(-18px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Drawer header (gradient, same as desktop nav head) */
.lic1-mob-pane-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.lic1-mob-pane-title {
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
}
.lic1-mob-pane-close {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  background: #fff; border: none;
  border-radius: 8px; color: var(--primary-dark); font-size: 16px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: background .15s;
}
.lic1-mob-pane-close:hover { background: #f0f4ff; }

/* Scrollable body — reuses .lic1-phase / .lic1-step / .lic1-subs styles */
.lic1-mob-pane-body { flex: 1; overflow-y: auto; padding: 6px 0 4px; }

/* Drawer footer — progress bar */
.lic1-mob-pane-foot {
  flex-shrink: 0;
  padding: 11px 18px 13px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

/* Mobile trigger bar (visible only on ≤ 900px) */
@media (max-width: 900px) {
  .lic1-mob-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 16px -4px rgba(0,0,0,.28);
    -webkit-tap-highlight-color: transparent;
  }
  .lic1-mob-trigger:active { filter: brightness(.92); }
  .lic1-mob-info { flex: 1; min-width: 0; }
  .lic1-mob-stepname {
    display: block;
    font-size: 13px; font-weight: 700; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .lic1-mob-stepcount { display: block; font-size: 13px; color: #fff; margin-top: 2px; }
  .lic1-mob-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .lic1-mob-minibar {
    width: 56px; height: 4px; background: rgba(255,255,255,.3);
    border-radius: 2px; overflow: hidden;
  }
  .lic1-mob-minibar > span { display: block; height: 100%; background: rgba(255,255,255,.9); border-radius: 2px; }
  .lic1-mob-right > .bi { font-size: 15px; opacity: .85; }
}

/* ── Placeholder / hint text ─────────────────────────────────────────── */
/* Hints must be clearly lighter than entered values, so an empty field never
   reads as filled-in data. Overrides the Kendo theme's #666 placeholders. */
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.k-input::placeholder,
.k-picker::placeholder,
.k-input-inner::placeholder {
  color: #b8bfc6;
  opacity: 1;
}

/* Selects have no real placeholder — while the empty "-- Select … --" option is
   chosen, tint the whole control like a hint; typed-in look returns on choose.
   The dropdown list itself keeps normal text color. */
select.form-select:has(option[value=""]:checked),
select.form-control:has(option[value=""]:checked) {
  color: #b8bfc6;
}
select.form-select option,
select.form-control option {
  color: var(--text, #212529);
}

/* ── Mobile touch targets ────────────────────────────────────
   Below the tablet breakpoint every control an applicant taps must clear
   44px. The wizard's icon-only row buttons and the compact pills were the
   worst offenders — a 28px trash icon next to a 28px pencil icon is a
   mis-tap waiting to happen, and the mis-tap here deletes an owner.

   Height only: min-width would stretch full-width buttons' siblings and
   break the footer rows. Where padding already clears 44px this is a no-op. */
@media (max-width: 767px) {
  .btn,
  .glc-btn,
  .bx-pin-btn,
  .lic1-step,
  .lic1-sub,
  .tbl-action-btn,
  .row-menu-btn,
  .glc-nav a,
  .glc-utility-links a,
  .glc-utility-links button,
  .glc-navtoggle,
  .glc-footer a,
  .k-grid .k-button,
  .wizard-footer .btn {
    min-height: 44px;
  }

  /* min-height does nothing on a non-replaced inline element, which is what the
     utility-strip and footer links are. Make them inline-flex or the rule above
     is silently a no-op — the footer links measured 20px tall with it applied. */
  .btn, .glc-btn, .bx-pin-btn, .tbl-action-btn, .row-menu-btn, .k-grid .k-button,
  .glc-nav a, .glc-utility-links a, .glc-utility-links button,
  .glc-navtoggle, .glc-footer a {
    display: inline-flex; align-items: center; justify-content: center;
  }

  /* Icon-only buttons are square, so they need the width as well. */
  .row-menu-btn,
  .k-grid .k-button.k-icon-button,
  .bx-review-block .btn-sm.btn-outline-primary,
  .bx-review-block .btn-sm.btn-outline-danger { min-width: 44px; }

  /* Checkboxes and radios in the wizard: the label is the tap target, but the
     box itself is what people aim at. */
  .form-check-input { width: 20px; height: 20px; }
  .attest-row, .form-check { min-height: 44px; }
}

/* ── Wizard, narrow screens: last word on horizontal overflow ────────────────
   These belong to the max-width:900px block further up, but they have to sit at
   the end of the file. `.bx-card .k-grid { overflow: visible }` and
   `.lic1-reqbar-text { white-space: nowrap }` are both declared after that
   block, and a media query contributes no specificity — so wherever the rules
   tie, source order decides, and up there they lose. */
@media (max-width: 900px) {
  /* Kendo sizes .k-grid-table to its columns and nothing in the chain scrolled,
     so a 531px table spilled out of a correctly-sized 234px grid and took the
     page with it. Wide tables keep their own horizontal scroll here (E-D6),
     rather than turning into cards. */
  .lic1-main .k-grid,
  .lic1-main .bx-card .k-grid { max-width: 100%; overflow-x: auto; }
  /* The required-fields readout is nowrap with a 220px floor, which outlives
     the column on a phone and pushes the page sideways. */
  .lic1-main .lic1-reqbar { min-width: 0; }
  .lic1-main .lic1-reqbar-text { white-space: normal; }
}

/* Application Review on a phone: the key/value table runs label,value,label,value
   across four columns, and the odd cells are nowrap with an 18% floor — 416px of
   table in a 360px viewport. Stack each row into label/value pairs instead of
   scrolling a document sideways. .ar-doc-table (line items, owners) keeps its
   own scroll; those are real tables and squashing them loses the comparison. */
@media (max-width: 575.98px) {
  .ar-doc-kv, .ar-doc-kv tbody, .ar-doc-kv tr { display: block; width: 100%; }
  .ar-doc-kv tr { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .ar-doc-kv td { display: block; width: auto !important; padding: 4px 0; }
  .ar-doc-kv td:nth-child(odd) { white-space: normal; }
  .ar-doc-wrap { overflow-x: auto; }
}
