/* =============================================================================
   ISPP Portal — Master Stylesheet
   Consolidated from custom.css + pd_system.css
   =============================================================================

   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────────────────────────
   1.  Google Fonts Import
   2.  CSS Custom Properties
       2a. ISPP Brand & PD System tokens
       2b. TNA System tokens (referenced; defined here for completeness)
   3.  Base / Reset
   4.  Typography helpers
   5.  Form controls (global)
   6.  Links & anchors
   7.  Navbar (.navbar-custom)
   8.  Sidebar — procurement / HR (light theme)
   9.  Home landing page
   10. Error pages (404 / 500)
   11. Sign-in / Google Auth
   12. Staff directory & image lists
   13. Org-chart trees (horizontal)
   14. Genealogy tree
   15. Tooltip (#tooltip / Popper)
   16. Waffle / enrollment table cells (.ritz .waffle)
   17. Quill editor
   18. Bootstrap-table toolbar
   19. Utility / layout helpers
   20. Print styles
   21. TNA Forms — status badges, flash, builder, respond
   22. Procurement layout & sidebar
   23. PD Wizard (multi-step form)
   ── PD System (body.pd-layout / hr-layout / finance-layout …) ──────────────
   24. PD Layout shell & CSS reset
   25. PD Sidebar
   26. PD Main content area & topbar
   27. PD Cards, stat cards, budget hero
   28. PD Status badges & tags
   29. PD Request list, queue items, events list, KV pairs
   30. PD Buttons
   31. PD Layout grids & filter bar
   32. PD HR / Finance / Academics / Utility layout variants
   33. PD Topbar user/quick-links buttons (cross-layout)
   34. PD Form sections
   35. PD Notification dropdown
   36. PD Page header, empty state, role options
   37. PD Activity timeline
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   1. Google Fonts
   ───────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&display=swap');


/* ─────────────────────────────────────────────────────────────────────────────
   2a. ISPP Brand & PD System tokens
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --pd-gap: 15px;

  /* Primary palette */
  --ispp-red:     #ED1C24;
  --ispp-blue:    #003C7E;

  /* Secondary palette (Core Values) */
  --ispp-orange:  #F7941D;
  --ispp-green:   #37937D;
  --ispp-lblue:   #3585C6;
  --ispp-crimson: #AF1F5D;

  /* Sidebar */
  --pd-sb-w:      260px;
  --pd-sb-bg:     #002E62;
  --pd-sb-hover:  rgba(255, 255, 255, 0.07);
  --pd-sb-active: rgba(255, 255, 255, 0.13);
  --pd-sb-txt:    rgba(255, 255, 255, 0.68);
  --pd-sb-txt-on: #ffffff;
  --pd-sb-lbl:    rgba(255, 255, 255, 0.32);
  --pd-sb-border: rgba(255, 255, 255, 0.08);

  /* Layout */
  --pd-page-bg:   #EDF1F7;
  --pd-card-bg:   #ffffff;
  --pd-border:    #DDE3ED;
  --pd-topbar-h:  58px;

  /* Typography */
  --pd-txt:   #0D1B35;
  --pd-txt-2: #536180;
  --pd-txt-3: #95A3BB;

  /* Status colours */
  --pd-s-pending-sup:  #F7941D;
  --pd-s-pending-lead: #3585C6;
  --pd-s-approved:     #37937D;
  --pd-s-declined:     #ED1C24;
  --pd-s-reimb:        #AF1F5D;
  --pd-s-complete:     #37937D;
  --pd-s-draft:        #95A3BB;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2b. TNA System tokens
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Greens */
  --tna-green:       #1D9E75;
  --tna-green-mid:   #9FE1CB;
  --tna-green-light: #E1F5EE;
  --tna-green-dark:  #146B50;

  /* Neutrals */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Accents */
  --blue:       #3B82F6;
  --blue-light: #EFF6FF;
  --amber:      #F59E0B;
  --amber-light: #FEF3C7;
  --red:        #E24B4A;

  /* Radii */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.10);

  /* Transitions */
  --transition: 0.15s ease;

  /* Typography */
  --font-body:    'Onest', sans-serif;
  --font-display: 'Onest', sans-serif;
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. Base / Reset
   ───────────────────────────────────────────────────────────────────────────── */
* {
  font-family: 'Onest', sans-serif;
}

html {
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background-color: #f5f5f5;
  font-family: 'Onest', sans-serif;
}

main {
  display: flex;
  flex-wrap: nowrap;
}

select {
  background-color: white;
}

input[readonly] {
  background-color: white;
}

.tox-statusbar__branding {
  display: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. Typography helpers
   ───────────────────────────────────────────────────────────────────────────── */
label {
  font-weight: 500;
}

.header-h4 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.2rem;
  color: rgb(102, 102, 102);
  white-space: nowrap;
  overflow: hidden;
}

.header-h6 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1rem;
  color: rgb(102, 102, 102);
  white-space: nowrap;
  overflow: hidden;
}

.dotted-underline {
  text-underline-offset: 3px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgb(102, 102, 102);
  border-bottom: 1px dotted rgb(187, 187, 187);
  white-space: nowrap;
  overflow: hidden;
}

.dotted-s-underline {
  text-underline-offset: 3px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.6rem;
  color: rgb(102, 102, 102);
  border-bottom: 1px dotted rgb(187, 187, 187);
  white-space: nowrap;
  overflow: hidden;
}

.label-uppercase {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgb(102, 102, 102);
  overflow: hidden;
}

.label-b-uppercase {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgb(102, 102, 102);
  overflow: hidden;
}

/* Required state overrides */
.label-uppercase.required,
.label-uppercase.is-required,
.dotted-underline.required,
.dotted-underline.is-required {
  color: #000000 !important;
  font-weight: 800 !important;
}

.is-required::after {
  content: '*';
  margin-left: 2px;
}

.more-important {
  font-weight: bold;
  font-size: 14px;
}

.less-important {
  font-size: 14px;
  color: #666;
}

.truncate-ellipsis {
  display: table;
  table-layout: fixed;
  white-space: nowrap;
  color: #000;
}

.my-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--read-more-line-clamp, 4);
}

.w-20         { width: 20% !important; }
.min-w-200px  { min-width: 200px !important; }


/* ─────────────────────────────────────────────────────────────────────────────
   5. Form controls (global)
   ───────────────────────────────────────────────────────────────────────────── */
input.form-control,
textarea.form-control,
trix-editor.form-control,
.select2-container .select2-selection {
  width: 100%;
  padding: 6px 12px;
  font-weight: 400;
  line-height: 1.428571429;
  color: #475467;
  background-color: #fefefe;
  background-image: none;
  border: 1px solid #c1c8d2;
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.datepicker {
  background-color: #fff !important;
}

.transparent {
  background-color: #f5f5f5 !important;
}

.custom-tooltip {
  --bs-tooltip-bg: var(--bs-primary);
}

/* Invalid feedback (Quill / Bootstrap) */
.invalid-feedback {
  color: #dc3545;
  font-size: .775rem;
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. Links & anchors
   ───────────────────────────────────────────────────────────────────────────── */
a {
  text-decoration: none !important;
}

a.link {
  color: #000 !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. Navbar (.navbar-custom)
   ───────────────────────────────────────────────────────────────────────────── */
.navbar-custom {
  background-color: #003C7E;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-text {
  color: #fff;
}

.navbar-custom .nav-user-name {
  color: #fff;
  font-weight: 500;
  margin-right: 0.5rem;
  font-size: 1rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Dropdown trigger */
.navbar-custom .nav-user-dropdown {
  display: inline-flex;
  align-items: center;
  padding: 0 !important;
  margin: 0;
  line-height: 1;
}

.navbar-custom .nav-user-dropdown::after,
.navbar-custom .quick-links-trigger::after {
  display: none !important;
}

.navbar-custom #navbarDropdownMenuLink:hover,
.navbar-custom #navbarDropdownMenuLink:focus {
  background-color: transparent !important;
}

/* Avatars */
.navbar-custom .nav-user-avatar-image,
.navbar-custom .nav-user-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-custom .nav-user-avatar-image {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.navbar-custom .nav-user-avatar-fallback {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* Language toggle */
.navbar-custom .nav-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

.navbar-custom .nav-lang-toggle:hover,
.navbar-custom .nav-lang-toggle:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.65);
}

.navbar-custom .nav-lang-label {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Quick-links */
.navbar-custom .quick-links-menu {
  min-width: 290px;
}

.navbar-custom .quick-links-trigger {
  padding: 0;
  line-height: 1;
  border: 0;
  text-decoration: none;
}

.navbar-custom .quick-links-trigger i {
  font-size: 1.05rem;
}

.navbar-custom .quick-links-bigger-icon {
  font-size: 1.6rem !important;
  vertical-align: middle;
}

.navbar-custom .quick-link-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.6rem 0.9rem;
}

.navbar-custom .quick-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef3fb;
  color: #395a8b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-custom .quick-link-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-custom .quick-link-label {
  font-weight: 600;
  color: #1d2a3a;
}

.navbar-custom .quick-link-description {
  font-size: 0.78rem;
  color: #657387;
}


/* ─────────────────────────────────────────────────────────────────────────────
   8. Sidebar — procurement / HR (light theme)
   ───────────────────────────────────────────────────────────────────────────── */

/* HR sidebar hover feedback */
.hr-sidebar-enhanced .nav-link,
.hr-sidebar-enhanced .nav-group-toggle {
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.hr-sidebar-enhanced .nav-link:hover,
.hr-sidebar-enhanced .nav-group-toggle:hover {
  color: #1b4f86;
}

.hr-sidebar-enhanced .nav-submenu .nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hr-sidebar-enhanced .nav-link:hover i,
.hr-sidebar-enhanced .nav-group-toggle:hover i {
  color: #1b4f86;
}

/* Nav labels */
.nav-label {
  color: #495057;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  transition: opacity 0.3s ease;
  padding: 1rem 1rem 0.75rem 0.75rem;
}

/* Nav links */
.nav-link {
  color: #495057;
  padding: 0.75rem !important;
  border-radius: 0;
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 0.95rem;
  margin: 0;
  width: 100%;
}

.nav-link i {
  min-width: 18px;
  flex-shrink: 0;
}

.nav-link:hover {
  background-color: #f1f3f5;
  color: #212529;
}

.nav-link.active {
  background-color: #395a8b;
  color: #fff;
}

.nav-link.active i {
  color: #fff;
}

/* Nav groups */
.nav-group {
  border-top: 1px solid #eef0f2;
}

.nav-group-toggle {
  padding: 0.75rem;
  font-size: 0.95rem;
  background-color: transparent;
  border: none;
  color: #495057;
  text-decoration: none;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 500;
  margin: 0;
}

.nav-group-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-group-toggle i {
  min-width: 18px;
  margin-right: 0;
  flex-shrink: 0;
}

.nav-group-toggle:hover,
.nav-group-toggle[aria-expanded="true"] {
  background-color: #f1f3f5;
  color: #212529;
}

.nav-group-toggle:focus {
  box-shadow: none !important;
  outline: none;
}

.nav-group-caret {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.nav-group-toggle[aria-expanded="true"] .nav-group-caret {
  transform: rotate(180deg);
}

/* Submenus */
.nav-submenu {
  padding: 0;
}

.nav-submenu .nav-link {
  padding-left: 1.75rem !important;
  font-size: 0.9rem;
}

.nav-submenu .nav-group-toggle {
  padding-left: 1.75rem;
  font-size: 0.9rem;
}

.nav-submenu .nav-submenu .nav-link {
  padding-left: 2.5rem !important;
  font-size: 0.86rem;
}

.nav-submenu .nav-submenu .nav-group-toggle {
  padding-left: 2.5rem;
  font-size: 0.86rem;
}

/* Nav user footer */
.hr-nav-user {
  border-top: 1px solid #eef0f2;
  padding: 0.75rem;
  margin-top: auto;
}

.hr-nav-user-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  background: #f8fafc;
  color: #1f2937;
  text-align: left;
  padding: 0.5rem 0.65rem;
}

.hr-nav-user-trigger:hover,
.hr-nav-user-trigger:focus {
  background: #eef3fb;
  border-color: #cbd5e1;
  color: #1f2937;
}

.hr-nav-user-trigger::after {
  margin-left: auto;
}

.hr-nav-user-avatar-image,
.hr-nav-user-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hr-nav-user-avatar-image {
  object-fit: cover;
  border: 1px solid #dbe3ed;
}

.hr-nav-user-avatar-fallback {
  background: #395a8b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hr-nav-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hr-nav-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hr-nav-user-role {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar toggle button */
.sidebar-toggle-btn {
  position: absolute;
  top: 12px;
  right: 8px;
  z-index: 110;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 14px;
  color: #495057;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.sidebar-toggle-btn:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}


/* ─────────────────────────────────────────────────────────────────────────────
   9. Home landing page
   ───────────────────────────────────────────────────────────────────────────── */
.home-landing {
  padding: 1.5rem 0 1.8rem;
}

.home-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.6rem;
  border-radius: 16px;
  border: 1px solid #dbe7f3;
  background:
    radial-gradient(circle at top right, rgba(255, 201, 107, 0.35), transparent 44%),
    linear-gradient(135deg, #f5fafe 0%, #eef6ff 100%);
  margin-bottom: 1.2rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #0a2f4d;
}

.hero-copy p {
  margin: 0.45rem 0 0;
  color: #31516b;
  max-width: 760px;
  font-size: 1.02rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.56rem 0.92rem;
  border-radius: 999px;
  background: #0f5ea8;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.home-section {
  margin-top: 1.3rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  color: #12395c;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.menu-tile {
  display: flex;
  gap: 0.95rem;
  padding: 1.15rem;
  border: 1px solid #d7e5f4;
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  text-align: left;
  min-height: 110px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.menu-tile:hover {
  transform: translateY(-2px);
  border-color: #9dc3e8;
  box-shadow: 0 10px 22px rgba(15, 71, 122, 0.1);
}

.tile-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d9ecff 0%, #b7dbff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a4f8b;
  font-size: 1.4rem;
  flex: 0 0 50px;
}

.tile-label {
  color: #08375e;
  font-weight: 700;
  line-height: 1.2;
  font-size: 1.1rem;
}

.tile-description {
  color: #4a6883;
  margin-top: 0.24rem;
  font-size: 0.94rem;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .home-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
  }

  .hero-copy h1 {
    font-size: 1.7rem;
  }

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


/* ─────────────────────────────────────────────────────────────────────────────
   10. Error pages (404 / 500)
   ───────────────────────────────────────────────────────────────────────────── */
#notfound {
  position: relative;
  min-height: 400px;
}

#notfound .notfound {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.notfound {
  max-width: 560px;
  width: 100%;
  padding-left: 160px;
  line-height: 1.1;
}

.notfound .notfound-404 {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  width: 140px;
  height: 140px;
  background-image: image-url(/emoji.png);
  background-size: cover;
}

.notfound .notfound-404:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  transform: scale(2.4);
  border-radius: 50%;
  background-color: #f2f5f8;
  z-index: -1;
}

.notfound h1 {
  font-size: 65px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: #151723;
  text-transform: uppercase;
}

.notfound h2 {
  font-size: 21px;
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  color: #151723;
}

.notfound p {
  color: #999fa5;
  font-weight: 400;
}

.notfound a {
  display: inline-block;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  color: #388dbc;
}

#card.card {
  width: 550px;
}

@media only screen and (max-width: 767px) {
  .notfound .notfound-404 {
    width: 110px;
    height: 110px;
  }

  .notfound {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 110px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   11. Sign-in / Google Auth
   ───────────────────────────────────────────────────────────────────────────── */
.flex-container {
  height: 100%;
  flex-direction: column;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ebebec;
}

.flex-item {
  padding: 5px;
  margin: 10px;
  text-align: center;
}

.flex-inline  { display: flex; }
.flex-items   { flex-wrap: wrap; display: flex; }

.googleSignIn {
  background: #3367D6;
  border-radius: 2px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.24), 0 0 1px 0 rgba(0, 0, 0, 0.12);
  border: none;
  display: flex;
  padding: 1px;
  color: #FFF;

  &:hover  { box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12); }
  &:active { background: #3367D6; }
}

.googleSignIn--white {
  background: #FFF;
  color: rgba(0, 0, 0, 0.54);
  &:active { background: #EEEEEE; }
}

.googleSignIn__text {
  padding: 11px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: left;
  white-space: nowrap;
}

.login-with-google-btn {
  transition: background-color 0.3s, box-shadow 0.3s;
  padding: 10px 16px 12px 42px;
  border: 1px solid #dadcde;
  border-radius: 5px;
  box-shadow: 0 -1px 0 rgba(226, 216, 216, 0.04), 0 1px 1px rgba(0, 0, 0, .25);
  color: #757575;
  font-size: 16px;
  font-weight: 600;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
  background-color: white;
  background-repeat: no-repeat;
  background-position: 16px 14px;
}

.login-with-google-btn:hover    { box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25); }
.login-with-google-btn:active   { background-color: #eee; }
.login-with-google-btn:focus    { outline: none; box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25), 0 0 0 3px #c8dafc; }
.login-with-google-btn:disabled { filter: grayscale(100%); background-color: #ebebeb; box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25); cursor: not-allowed; }

/* Divider */
div.hr-or,
div.hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eee;
  text-align: center;
  height: 0;
  line-height: 0;
}

div.hr-or:before { content: 'OR'; background-color: #fff; }
.hr-title        { background-color: #fff; }


/* ─────────────────────────────────────────────────────────────────────────────
   12. Staff directory & image lists
   ───────────────────────────────────────────────────────────────────────────── */
.image-list-small {
  margin: 0 auto;
  text-align: center;
  padding: 0;
}

.image-list-small li {
  display: inline-block;
  width: 180px;
  margin: 0 12px 20px;
}

.image-list-small li > a {
  display: block;
  text-decoration: none;
  background-size: cover;
  background-repeat: no-repeat;
  height: 200px;
  margin: 0;
  padding: 0;
  border: 4px solid #ffffff;
  outline: 1px solid #d0d0d0;
  box-shadow: 0 2px 1px #DDD;
}

.image-list-small .details {
  margin-top: 13px;
}

.image-list-small .details h3 {
  display: block;
  font-size: 12px;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-list-small .details h3 a {
  color: #303030;
  text-decoration: none;
}

.image-list-small .details .image-author {
  display: block;
  color: #717171;
  font-size: 11px;
  font-weight: normal;
  margin: 0;
}

h6.image-author {
  display: block;
  color: #3f3c3c;
  font-size: 12px;
  font-weight: normal;
  margin: 0;
}

p.image-author {
  display: block;
  color: #717171;
  font-size: 11px;
  font-weight: normal;
  margin: 0;
  padding-top: 5px;
}

p.fullname {
  font-weight: 500;
  font-size: 16px;
}

p.position {
  font-weight: 200;
  font-size: 14px;
  margin-top: -15px;
}

/* Card images */
.card-img-top             { object-fit: contain; }
.card-image-container     { height: 180px; overflow: hidden; }
.card-image               { width: 100%; height: 100%; object-fit: cover; }
.card-image-placeholder   { object-fit: contain; background-color: #f8f9fa; }
.card-header.white        { background-color: #fff !important; }
.accordion-header.card-header { background-color: transparent !important; }


/* ─────────────────────────────────────────────────────────────────────────────
   13. Org-chart tree (horizontal)
   ───────────────────────────────────────────────────────────────────────────── */
.tree,
.tree ul {
  position: relative;
  display: table;
  margin: 5px 0 0 0 !important;
  padding: 6px 0 0 0 !important;
  line-height: normal;
  text-align: center;
  word-wrap: break-word;
  word-break: break-all;
}

.tree li {
  position: relative;
  display: table-cell;
}

.tree li:not(:only-child) { padding: 0 .5em; }
.tree li:last-child        { padding-right: 0; }
.tree li:first-child       { padding-left: 0; }

.tree ul:before,
.tree ul li:before,
.tree ul li:after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 50%;
  height: 5px;
  border-right: 1px solid #999;
}

.tree ul:before { top: -4px; }

.tree ul li:not(:only-child):before                             { border-top: 1px solid #999; }
.tree ul li:not(:only-child):first-child:before                 { right: 0; left: auto; border-left: 1px solid #999; border-right: none; }
.tree ul li:not(:only-child):first-child:before,
.tree ul li:not(:only-child):last-child:before                  { width: calc(50% + .5em/2); }
.tree ul li:after                                               { border: none; }
.tree ul li:not(:last-child):not(:first-child):after            { width: 100%; border-top: 1px solid #999; }

/* Accordion without chevron */
.remove.accordion-button::after,
.remove.accordion-button:not(.collapsed)::after {
  background-image: initial;
  width: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   14. Genealogy tree
   ───────────────────────────────────────────────────────────────────────────── */
.genealogy-scroll::-webkit-scrollbar        { width: 5px; height: 8px; }
.genealogy-scroll::-webkit-scrollbar-track  { border-radius: 10px; background-color: #e4e4e4; }
.genealogy-scroll::-webkit-scrollbar-thumb  { background: #212121; border-radius: 10px; }
.genealogy-scroll::-webkit-scrollbar-thumb:hover { background: #d5b14c; }

.genealogy-body {
  white-space: nowrap;
  overflow-y: hidden;
  padding: 10px 50px 50px;
  min-height: 500px;
  text-align: center;
}

.genealogy-tree { display: inline-block; }

.genealogy-tree ul {
  padding-top: 20px;
  position: relative;
  padding-left: 0;
  display: flex;
  justify-content: center;
}

.genealogy-tree li {
  float: left;
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 20px 5px 0;
}

.genealogy-tree li::before,
.genealogy-tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid #ccc;
  width: 50%;
  height: 18px;
}

.genealogy-tree li::after { right: auto; left: 50%; border-left: 2px solid #ccc; }

.genealogy-tree li:only-child::after,
.genealogy-tree li:only-child::before { display: none; }
.genealogy-tree li:only-child         { padding-top: 0; }

.genealogy-tree li:first-child::before,
.genealogy-tree li:last-child::after  { border: 0 none; }

.genealogy-tree li:last-child::before {
  border-right: 2px solid #ccc;
  border-radius: 0 5px 0 0;
}

.genealogy-tree li:first-child::after {
  border-radius: 5px 0 0 0;
}

.genealogy-tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid #ccc;
  width: 0;
  height: 20px;
}

.genealogy-tree li a {
  text-decoration: none;
  color: #666;
  font-size: 11px;
  display: inline-block;
  border-radius: 5px;
}

.genealogy-tree li a:hover+ul li::after,
.genealogy-tree li a:hover+ul li::before,
.genealogy-tree li a:hover+ul::before,
.genealogy-tree li a:hover+ul ul::before {
  border-color: #fbba00;
}

/* Member card */
.member-view-box {
  padding: 0 20px;
  text-align: center;
  border-radius: 4px;
  position: relative;
}

.member-image     { width: 60px; position: relative; }

.member-image img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background-color: #000;
  z-index: 1;
}


/* ─────────────────────────────────────────────────────────────────────────────
   15. Tooltip (#tooltip / Popper)
   ───────────────────────────────────────────────────────────────────────────── */
#tooltip {
  background: #333;
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 8px;
  display: none;
}

#tooltip ul    { margin: 0; padding: 5px; }
#tooltip ul li { list-style: none; }

#arrow,
#arrow::before {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}

#arrow           { visibility: hidden; }
#arrow::before   { visibility: visible; content: ""; transform: rotate(45deg); }

#tooltip[data-popper-placement^="top"]    > #arrow { bottom: -4px; }
#tooltip[data-popper-placement^="bottom"] > #arrow { top: -4px; }
#tooltip[data-popper-placement^="left"]   > #arrow { right: -4px; }
#tooltip[data-popper-placement^="right"]  > #arrow { left: -4px; }
#tooltip[data-show]                                { display: block; }


/* ─────────────────────────────────────────────────────────────────────────────
   16. Waffle / enrollment table cells (.ritz .waffle)
   ───────────────────────────────────────────────────────────────────────────── */
.ritz .waffle a { color: inherit; }

.ritz .waffle {
  .s0 {
    border-bottom: 1px solid #000;
    background-color: #6fa8dc;
    text-align: center;
    font-weight: bold;
    color: #000;
    font-family: 'Onest', Arial;
    font-size: 14pt;
    vertical-align: bottom;
    white-space: nowrap;
    direction: ltr;
    padding: 2px 3px;
  }

  .s1 {
    border: 1px solid #000;
    background-color: #cfe2f3;
    text-align: left;
    font-weight: bold;
    color: #000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: bottom;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }

  /* s2–s9 share common base; only unique properties are listed */
  .s2, .s3, .s4, .s5, .s6, .s7, .s8, .s9 {
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    color: #000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
  }

  .s2 { background-color: #fff; text-align: left; vertical-align: top; padding: 0; height: 100%; }
  .s2 div { width: 200px; height: 100%; }
  .s2 img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left bottom; }

  .s3 { border-left: 1px solid #000; background-color: #fff; text-align: left; vertical-align: top; padding: 2px 3px; }
  .s4 { background-color: #fff; text-align: left; vertical-align: top; padding: 2px 3px; }
  .s5 { background-color: #fff; text-align: left; vertical-align: top; padding: 2px 3px; }
  .s6 { background-color: #fff; text-align: left; vertical-align: top; padding: 2px 3px; }
  .s7 { border-left: 1px solid #000; background-color: #fff; text-align: left; vertical-align: top; padding: 2px 3px; }
  .s8 { background-color: #fff; text-align: center; vertical-align: middle; padding: 2px 3px; }
  .s9 { background-color: #fff; text-align: left; font-weight: bold; font-style: italic; font-size: 7pt; vertical-align: bottom; padding: 2px 3px; }
}

/* Column widths */
#1358672295C0 { width: 80px; }
#1358672295C1 { width: 200px; }
#1358672295C2 { width: 80px; }
#1358672295C3 { width: 200px; }
#1358672295C4 { width: 80px; }
#1358672295C5 { width: 200px; }

.waffle tbody tr    { height: 20px; }
.row-headers-background { height: 20px; }
.row-header-wrapper     { line-height: 20px; }

/* Student/parent photos */
.student-photo-container {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: left;
  justify-content: start;
}

.student-photo {
  max-height: 100px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.parent-photo {
  max-height: 220px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fixed-image-td { width: 125px; }
.fixed-lang-td  { width: 225px; }

/* Barcode containers */
.barcode-container,
.barcode-student-container,
.barcode-parent-container {
  text-align: center;
  margin: 10px;
}

.barcode-value {
  position: absolute;
  margin-top: 305px;
  margin-left: 12px;
  font-size: 12px;
}

.barcode-student-value {
  position: absolute;
  margin-top: 235px;
  margin-left: 150px;
  font-size: 12px;
}

.barcode-parent-value {
  position: absolute;
  margin-top: 110px;
  margin-left: 858px;
  font-size: 12px;
  color: #000;
}


/* ─────────────────────────────────────────────────────────────────────────────
   17. Quill editor
   ───────────────────────────────────────────────────────────────────────────── */
.quill-editor              { border: 1px solid #ced4da; background: #fff; overflow: hidden; }
.quill-editor .ql-toolbar  { border-bottom: 1px solid #ced4da; background: #f8f9fa; }
.quill-editor .ql-container { background: white; }

.quill-editor .ql-editor {
  min-height: inherit;
  line-height: 1.5;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
}

/* Quill error state (field_with_errors) */
.field_with_errors .quill-editor {
  border: 2px solid #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25) !important;
  border-radius: .375rem !important;
}

.field_with_errors .quill-editor .ql-toolbar {
  border-bottom: 1px solid #dc3545 !important;
  background: #fdf5f5 !important;
}

.field_with_errors .quill-editor .ql-container {
  border-top: 1px solid #dc3545 !important;
}

.field_with_errors .quill-editor .ql-editor:focus {
  outline: 2px solid #dc3545 !important;
  outline-offset: -2px !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   18. Bootstrap-table toolbar
   ───────────────────────────────────────────────────────────────────────────── */
.bootstrap-table .fixed-table-toolbar .columns button.no-caret {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background-color: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  color: #495057 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.bootstrap-table .fixed-table-toolbar .columns button.no-caret:hover {
  background-color: #e9ecef !important;
  border-color: #c6c9cc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.bootstrap-table .fixed-table-toolbar .columns button.no-caret:active {
  transform: translateY(0) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.bootstrap-table .fixed-table-toolbar .columns button.no-caret i { font-size: 1.15rem !important; }
.bootstrap-table .fixed-table-toolbar .columns button::after     { display: none !important; }


/* ─────────────────────────────────────────────────────────────────────────────
   19. Utility / layout helpers
   ───────────────────────────────────────────────────────────────────────────── */
.action-btn {
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Misc action helpers */
.procurement-content-tools {
  display: flex;
  justify-content: flex-start;
}

.procurement-content-col {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (max-width: 767.98px) {
  .procurement-content-tools .btn { display: none; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   20. Print styles
   ───────────────────────────────────────────────────────────────────────────── */
@media print {
  @page {
    size: 25cm 35.7cm;
    margin: 5mm;
  }

  nav, footer, #search-form, #action-btn, #breadcrumb {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #filter  { display: none; }
  #head    { visibility: hidden; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   21. TNA Forms — status badges, flash messages, builder, respond page
   ───────────────────────────────────────────────────────────────────────────── */

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

.status-badge--draft     { background: var(--gray-100); color: var(--gray-600); }
.status-badge--published { background: var(--tna-green-light); color: var(--tna-green-dark); }
.status-badge--archived  { background: var(--amber-light); color: #854F0B; }

/* Flash messages */
#flash-container {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.flash-message {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 280px;
  max-width: 420px;
  pointer-events: all;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.flash-message--visible { opacity: 1; transform: translateX(0); }
.flash-message--hiding  { opacity: 0; transform: translateX(20px); }
.flash-inner            { display: flex; align-items: center; gap: 10px; }
.flash-notice .flash-icon::before { content: "✓"; color: var(--tna-green); }
.flash-alert  .flash-icon::before { content: "!"; color: var(--red); }
.flash-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--gray-400); line-height: 1; padding: 2px; }

/* Save status indicator */
.save-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-400); }
.save-dot    { width: 6px; height: 6px; border-radius: 50%; background: var(--tna-green); }
[data-state="unsaved"] .save-dot { background: var(--amber); }
[data-state="error"]   .save-dot { background: var(--red); }
[data-state="saving"]  .save-dot { animation: pulse 1s infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Canvas */
.questions-canvas { flex: 0 0 auto; overflow: visible; padding: 20px; }

.canvas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--gray-400);
  text-align: center;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  margin-top: 20px;
}

.canvas-empty-icon svg { width: 52px; height: 52px; margin-bottom: 12px; }
.canvas-empty-text     { font-size: 14px; }

/* Section divider */
.builder-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gray-400);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 10px;
}

.section-body { flex: 1; min-width: 0; }
.section-label { font-size: 10px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }

.section-title-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  background: transparent;
  border-bottom: 1px dashed transparent;
}

.section-title-input:focus { border-bottom-color: var(--gray-300); }

.builder-section .section-title-input.quill-editor { width: 100%; max-width: 100%; border-radius: var(--radius-md); }
.builder-section .section-title-input .ql-toolbar,
.builder-section .section-title-input .ql-container,
.builder-section .section-title-input .ql-editor { width: 100%; }
.builder-section .section-title-input .ql-editor   { min-height: 56px; font-size: 14px; }

/* Question cards */
.question-card {
  position: relative;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
  padding-left: 8px;
}

.question-card:hover    { border-color: var(--tna-green-mid); box-shadow: var(--shadow-sm); }
.question-card--active  { border-color: var(--tna-green); box-shadow: 0 0 0 3px rgba(29, 158, 117, .12); }

.drag-handle       { color: var(--gray-300); font-size: 18px; cursor: grab; padding: 6px 4px; flex-shrink: 0; }
.drag-handle:active { cursor: grabbing; }

.question-card-inner  { padding: 16px 16px 12px 8px; }
.question-card-top    { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.question-type-badge  { font-size: 11px; padding: 3px 10px; border-radius: var(--radius-full); font-weight: 500; display: flex; align-items: center; gap: 5px; }

.badge--short,
.badge--long       { background: var(--blue-light); color: var(--blue); }
.badge--radio,
.badge--checkbox,
.badge--dropdown   { background: var(--tna-green-light); color: var(--tna-green-dark); }
.badge--scale      { background: #FEF3C7; color: #92400E; }
.badge--matrix     { background: #EDE9FE; color: #5B21B6; }
.badge--date       { background: #DBEAFE; color: #1E40AF; }
.badge--file       { background: var(--gray-100); color: var(--gray-600); }

.required-badge      { font-size: 11px; color: var(--red); margin-left: auto; }
.question-label      { font-size: 15px; color: var(--gray-800); line-height: 1.4; }

.question-label-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--gray-800);
  line-height: 1.4;
  background: transparent;
  font-family: var(--font-body);
  border-bottom: 1px dashed transparent;
}
.question-label-input:focus { border-bottom-color: var(--gray-300); }

.question-card-actions { display: flex; gap: 4px; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid var(--gray-100); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gray-500);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.icon-btn:hover                { background: var(--gray-100); color: var(--gray-700); }
.icon-btn:focus-visible        { outline: none; box-shadow: 0 0 0 3px rgba(29, 158, 117, .15); }
.icon-btn--danger              { color: #B42318; }
.icon-btn--danger:hover        { background: #FEE4E2; color: #912018; }

/* Question previews */
.preview-field               { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; color: var(--gray-400); margin-top: 8px; }
.preview-field--textarea     { min-height: 64px; }
.preview-field--select,
.preview-field--date         { display: flex; align-items: center; justify-content: space-between; }
.preview-option              { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--gray-600); }
.preview-radio               { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--gray-400); flex-shrink: 0; }
.preview-checkbox            { width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid var(--gray-400); flex-shrink: 0; }
.preview-more                { font-size: 12px; color: var(--gray-400); font-style: italic; margin-top: 4px; }
.preview-scale               { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.scale-pills                 { display: flex; gap: 6px; }
.scale-pill                  { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray-500); }
.scale-label-text            { font-size: 12px; color: var(--gray-400); }
.preview-file-drop           { border: 1.5px dashed var(--gray-300); border-radius: var(--radius-md); padding: 20px; text-align: center; margin-top: 8px; color: var(--gray-400); font-size: 13px; }
.matrix-table                { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.matrix-table th             { padding: 6px 10px; color: var(--gray-500); font-weight: 500; text-align: center; }
.matrix-table td             { padding: 5px 10px; }
.matrix-row-label            { color: var(--gray-600); }
.matrix-cell                 { text-align: center; }

/* Inspector panel */
.inspector-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; color: var(--gray-400); font-size: 14px; text-align: center; }
.inspector-field       { margin-bottom: 16px; }
.inspector-label       { display: block; font-size: 12px; font-weight: 600; color: var(--gray-500); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.inspector-input       { width: 100%; padding: 8px 10px; border: 1px solid var(--gray-300); border-radius: var(--radius-md); font-size: 13px; outline: none; }
.inspector-input:focus { border-color: var(--tna-green); box-shadow: 0 0 0 3px rgba(29, 158, 117, .1); }

/* Builder sticky canvas (desktop) */
@media (min-width: 992px) {
  .tna-builder-canvas-scroll {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 10px;
  }

  .tna-builder-inspector-card {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
  }

  .tna-builder-inspector-card .card-body {
    max-height: calc(100vh - 26px);
    overflow-y: auto;
  }
}

/* Public form / respond page */
.form-respond-layout  { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.progress-bar-wrap    { margin-bottom: 24px; }
.progress-bar         { height: 6px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill        { height: 100%; background: var(--tna-green); transition: width 0.4s ease; border-radius: var(--radius-full); }
.progress-text        { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--gray-400); margin-top: 6px; }
.progress-count       { margin-left: auto; }

.form-respond-card   { background: white; border-radius: var(--radius-xl); border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); overflow: hidden; }
.respond-form-header { padding: 28px 32px 20px; border-bottom: 4px solid var(--tna-green); background: white; }
.respond-form-title  { font-family: var(--font-display); font-size: 26px; color: var(--gray-900); margin-bottom: 8px; }
.respond-form-desc   { font-size: 15px; color: var(--gray-500); line-height: 1.6; }

.respond-section-header { padding: 20px 32px 8px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }
.respond-section-title  { font-size: 17px; font-weight: 600; color: var(--gray-800); }
.respond-section-desc   { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

.respond-question { padding: 24px 32px; border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
.respond-question:hover          { background: var(--gray-50); }
.respond-question.question--error { background: #FFF5F5; }

.question-label-row      { margin-bottom: 8px; }
.respond-question-label  { font-size: 15px; font-weight: 500; color: var(--gray-800); line-height: 1.4; }
.required-asterisk       { color: var(--red); font-size: 14px; margin-left: 3px; text-decoration: none; }
.question-hint           { font-size: 13px; color: var(--gray-400); margin-bottom: 12px; margin-top: 4px; }
.question-error          { font-size: 13px; color: var(--red); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.question-error::before  { content: "!"; width: 16px; height: 16px; background: var(--red); color: white; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Form field inputs */
.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #9ca3af;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: white;
  color: var(--gray-800);
}

.field-input:focus    { border-color: #00356d; box-shadow: 0 0 0 3px rgba(29, 158, 117, .12); }
.field-textarea       { resize: vertical; min-height: 100px; line-height: 1.6; }
.field-date           { width: auto; min-width: 200px; }
.field-select-wrap    { position: relative; display: inline-block; width: 100%; }

.field-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  appearance: none;
  background: white;
  cursor: pointer;
}

.field-select:focus  { border-color: var(--tna-green); box-shadow: 0 0 0 3px rgba(29, 158, 117, .12); }
.select-chevron      { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }

/* Option inputs */
.field-options  { display: flex; flex-direction: column; gap: 6px; }
.option-label   { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition); }
.option-label:hover { background: var(--tna-green-light); border-color: var(--tna-green-mid); }
.option-input   { display: none; }
.option-mark    { width: 18px; height: 18px; border: 2px solid var(--gray-400); border-radius: 50%; flex-shrink: 0; transition: all var(--transition); }
.option-mark--checkbox { border-radius: 4px; }
.option-input:checked ~ .option-mark { background: var(--tna-green); border-color: var(--tna-green); }
.option-input:checked ~ .option-mark::after { content: ""; display: block; width: 6px; height: 6px; background: white; border-radius: 50%; margin: 4px auto; }
.option-input[type=checkbox]:checked ~ .option-mark--checkbox::after { content: "✓"; color: white; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0; width: 100%; height: 100%; border-radius: 3px; }
.option-input:checked + * + .option-text { color: var(--tna-green-dark); font-weight: 500; }
.option-label:has(.option-input:checked)  { background: var(--tna-green-light); border-color: var(--tna-green); }
.option-text    { font-size: 14px; color: var(--gray-700); }

/* Scale input */
.field-scale    { margin-top: 4px; }
.scale-row      { display: grid; grid-template-columns: minmax(48px, auto) 1fr minmax(48px, auto); align-items: center; gap: 12px; }
.scale-end-label        { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.scale-end-label:first-child { text-align: left; }
.scale-end-label:last-child  { text-align: right; }
.scale-options          { display: flex; gap: 8px; flex-wrap: nowrap; justify-content: center; }
.scale-label-item       { cursor: pointer; }
.scale-radio            { display: none; }

.scale-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: all var(--transition);
}

.scale-circle:hover            { border-color: #60A5FA; background: #EFF6FF; color: #1D4ED8; }
.scale-radio:checked + .scale-circle { background: #2563EB; border-color: #2563EB; color: white; }
.scale-circle--selected        { background: var(--tna-green); border-color: var(--tna-green); color: white; }
.scale-circle--filled          { background: var(--tna-green-light); border-color: var(--tna-green-mid); color: var(--tna-green-dark); }

@media (max-width: 640px) {
  .scale-row              { grid-template-columns: 1fr; gap: 8px; }
  .scale-options          { justify-content: flex-start; flex-wrap: wrap; }
  .scale-end-label:last-child { text-align: left; }
}

/* Matrix response */
.matrix-response-table                { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix-response-table th,
.matrix-response-table td             { padding: 10px 12px; }
.matrix-col-header                    { text-align: center; font-size: 13px; font-weight: 500; color: var(--gray-500); border-bottom: 2px solid var(--gray-200); }
.matrix-row-label                     { font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.matrix-cell                          { text-align: center; border-bottom: 1px solid var(--gray-100); }
.matrix-check                         { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 24px; }
.matrix-radio                         { position: static; float: none; margin: 0; width: 16px; height: 16px; cursor: pointer; }
.matrix-radio-label                   { cursor: pointer; display: inline-flex; align-items: center; margin: 0; color: var(--gray-700); font-size: 13px; }

/* File upload */
.file-drop-zone        { border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 32px 20px; text-align: center; cursor: pointer; transition: all var(--transition); }
.file-drop-zone:hover,
.file-drop-zone--over  { border-color: var(--tna-green); background: var(--tna-green-light); }
.file-drop-icon        { font-size: 28px; margin-bottom: 8px; }
.file-drop-text        { font-size: 14px; color: var(--gray-600); }
.file-drop-text strong { color: var(--tna-green); }
.file-drop-hint        { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.file-input-hidden     { display: none; }
.file-preview          { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.file-preview-name     { flex: 1; font-size: 13px; color: var(--gray-700); }

/* Submit row */
.respond-submit-row     { padding: 24px 32px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.respondent-email-field { margin-bottom: 20px; }
.field-label            { display: block; font-size: 13px; font-weight: 500; color: var(--gray-600); margin-bottom: 6px; }
.submit-actions         { display: flex; align-items: center; gap: 16px; }
.submit-note            { font-size: 12px; color: var(--gray-400); }

/* Thank you page */
.thankyou-layout  { max-width: 500px; margin: 80px auto; padding: 0 24px; }
.thankyou-card    { background: white; border-radius: var(--radius-xl); border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); padding: 48px 40px; text-align: center; }
.thankyou-icon svg { width: 72px; height: 72px; margin-bottom: 20px; }
.thankyou-title   { font-family: var(--font-display); font-size: 32px; margin-bottom: 12px; }
.thankyou-message { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
.thankyou-actions { display: flex; gap: 12px; justify-content: center; }

/* Responses / Analytics */
.stats-row           { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card           { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px 20px; }
.stat-card-value     { font-family: var(--font-display); font-size: 28px; color: var(--gray-900); }
.stat-card-label     { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.table-card          { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); overflow: hidden; }
.data-table          { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th       { padding: 12px 20px; text-align: left; font-size: 12px; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid var(--gray-200); text-transform: uppercase; letter-spacing: .04em; background: var(--gray-50); }
.data-table td       { padding: 14px 20px; border-bottom: 1px solid var(--gray-100); }
.data-table tr:last-child td { border-bottom: none; }
.text-right          { text-align: right; }
.td-respondent       { display: flex; align-items: center; gap: 10px; }
.respondent-avatar   { width: 32px; height: 32px; border-radius: 50%; background: var(--tna-green-light); color: var(--tna-green-dark); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.respondent-info     { display: flex; flex-direction: column; }
.respondent-name     { font-weight: 500; font-size: 14px; }
.respondent-email    { font-size: 12px; color: var(--gray-500); }

/* Analytics */
.analytics-overview     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.overview-stat          { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.overview-value         { font-family: var(--font-display); font-size: 36px; color: var(--tna-green); }
.overview-label         { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.analytics-questions    { display: flex; flex-direction: column; gap: 16px; }
.analytics-question-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 20px 24px; }
.aq-header              { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.aq-type-badge          { font-size: 11px; padding: 3px 10px; background: var(--gray-100); color: var(--gray-500); border-radius: var(--radius-full); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.aq-label               { flex: 1; font-size: 15px; font-weight: 500; color: var(--gray-800); }
.aq-count               { font-size: 12px; color: var(--gray-400); white-space: nowrap; }
.aq-no-data             { font-size: 14px; color: var(--gray-400); font-style: italic; text-align: center; padding: 20px; }
.bar-chart              { display: flex; flex-direction: column; gap: 10px; }
.bar-row                { display: flex; align-items: center; gap: 12px; }
.bar-label              { width: 160px; font-size: 13px; color: var(--gray-600); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track              { flex: 1; height: 28px; background: var(--gray-100); border-radius: var(--radius-md); overflow: hidden; }
.bar-fill               { height: 100%; background: linear-gradient(90deg, var(--tna-green), var(--tna-green-mid)); border-radius: var(--radius-md); transition: width 0.6s ease; min-width: 2px; }
.bar-count              { font-size: 12px; color: var(--gray-500); width: 80px; text-align: right; flex-shrink: 0; }
.scale-summary          { display: flex; gap: 24px; align-items: flex-start; }
.scale-avg              { text-align: center; background: var(--tna-green-light); border-radius: var(--radius-lg); padding: 16px 24px; }
.scale-avg-value        { font-family: var(--font-display); font-size: 40px; color: var(--tna-green-dark); }
.scale-avg-label        { font-size: 12px; color: var(--tna-green-dark); margin-top: 2px; }
.text-responses         { display: flex; flex-direction: column; gap: 8px; }
.text-response-item     { font-size: 14px; color: var(--gray-700); padding: 10px 14px; background: var(--gray-50); border-left: 3px solid var(--tna-green-mid); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.text-responses-more    { font-size: 13px; color: var(--gray-400); font-style: italic; margin-top: 4px; }

/* Breadcrumb (TNA) */
.breadcrumb       { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-400); margin-bottom: 8px; }
.breadcrumb-link  { color: var(--gray-500); }
.breadcrumb-link:hover { color: var(--tna-green); text-decoration: none; }
.breadcrumb-sep   { color: var(--gray-300); }

/* Site footer */
footer.site-footer { border-top: 1px solid var(--gray-200); background: white; padding: 20px 24px; text-align: center; font-size: 13px; color: var(--gray-400); margin-top: auto; }

/* New form page */
.new-form-page        { min-height: calc(100vh - 56px); background: var(--gray-50); padding: 32px 24px 60px; }
.new-form-container   { max-width: 960px; margin: 0 auto; }
.new-form-page-header { margin-bottom: 24px; }
.new-form-heading     { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--gray-900); margin-top: 10px; }
.new-form-columns     { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }

@media (max-width: 768px) {
  .new-form-columns { grid-template-columns: 1fr; }
}

/* Section cards */
.form-section-card         { background: white; border: 0.5px solid var(--gray-200); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.form-section-card-header  { display: flex; align-items: center; gap: 10px; padding: 16px 20px 14px; border-bottom: 0.5px solid var(--gray-100); }
.form-section-card-icon    { width: 32px; height: 32px; background: var(--tna-green-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--tna-green); flex-shrink: 0; }
.form-section-card-title   { font-size: 15px; font-weight: 600; color: var(--gray-800); width: fit-content; flex: 0 0 auto; }
.form-section-card-note    { font-size: 12px; color: var(--gray-400); }
.form-section-card-body    { padding: 20px; }

/* Stationery 3-column layout */
@media (min-width: 768px) {
  .stationery-three-column-layout {
    --stationery-columns-height: calc(100vh - 200px);
    align-items: stretch;
  }

  .stationery-category-col,
  .stationery-middle-col,
  .stationery-request-col {
    display: flex;
    flex-direction: column;
  }

  .stationery-category-col .card,
  .stationery-middle-card,
  .stationery-request-sticky {
    height: var(--stationery-columns-height);
    margin-bottom: 0;
  }

  .stationery-category-col .card,
  .stationery-middle-card,
  .stationery-request-sticky,
  .stationery-category-col #sidebarMenu,
  .stationery-category-col #sidebarMenu .position-sticky {
    display: flex;
    flex-direction: column;
  }

  .stationery-category-col .card-body,
  .stationery-middle-card .form-section-card-body,
  .stationery-request-sticky .form-section-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .stationery-request-sticky {
    position: sticky;
    top: 12px;
    max-height: var(--stationery-columns-height);
  }
}

/* Field groups */
.field-group            { margin-bottom: 20px; }
.field-group:last-child { margin-bottom: 0; }
.field-label            { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.field-label-optional   { font-size: 12px; font-weight: 400; color: var(--gray-400); margin-left: 4px; }
.required-asterisk      { color: var(--red); font-size: 13px; margin-left: 2px; text-decoration: none; }
.field-hint             { font-size: 12px; color: var(--gray-400); margin-top: 5px; line-height: 1.5; }
.field-error            { font-size: 12px; color: var(--red); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.field-error::before    { content: "!"; width: 14px; height: 14px; background: var(--red); color: white; border-radius: 50%; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.field-input--error     { border-color: var(--red) !important; }
.field-input--error:focus { box-shadow: 0 0 0 3px rgba(226, 75, 74, .12) !important; }

/* Start method options */
.start-method-options { display: flex; flex-direction: column; gap: 8px; }
.start-method-radio   { display: none; }
.start-method-option  { border-radius: 12px; border: 1.5px solid var(--gray-200); transition: border-color .15s, background .15s; cursor: pointer; }
.start-method-option:hover { border-color: var(--tna-green-mid); background: var(--tna-green-light); }
.start-method-option:has(.start-method-radio:checked) { border-color: var(--tna-green); background: var(--tna-green-light); box-shadow: 0 0 0 3px rgba(29, 158, 117, .1); }
.start-method-label   { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; width: 100%; }
.start-method-icon    { width: 44px; height: 44px; border-radius: 10px; background: white; border: 0.5px solid var(--gray-200); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gray-500); }
.start-method-option:has(.start-method-radio:checked) .start-method-icon { border-color: var(--tna-green-mid); color: var(--tna-green); }
.start-method-body    { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.start-method-name    { font-size: 14px; font-weight: 600; color: var(--gray-800); display: flex; align-items: center; gap: 8px; }
.start-method-desc    { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
.template-badge       { background: #FEF3C7; color: #92400E; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; letter-spacing: .03em; text-transform: uppercase; }

/* Settings rows */
.settings-rows     { display: flex; flex-direction: column; gap: 0; }
.setting-row       { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 0.5px solid var(--gray-100); }
.setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.setting-row-text  { display: flex; flex-direction: column; gap: 2px; }
.setting-row-label { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.setting-row-hint  { font-size: 12px; color: var(--gray-400); }

/* Toggle switch */
.toggle-checkbox  { display: none; }
.toggle-label     { width: 40px; height: 22px; background: var(--gray-300); border-radius: 11px; display: flex; align-items: center; padding: 2px; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.toggle-checkbox:checked + .toggle-label { background: var(--tna-green); }
.toggle-thumb     { width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle-checkbox:checked + .toggle-label .toggle-thumb { transform: translateX(18px); }

/* Error summary */
.error-summary        { background: #FFF5F5; border: 1px solid #FECACA; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.error-summary-title  { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 8px; }
.error-list           { margin-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.error-list li        { font-size: 13px; color: #B91C1C; }

/* Submit actions */
.new-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 4px; }

/* Right sidebar */
.new-form-sidebar  { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 72px; }
.help-card         { background: white; border: 0.5px solid var(--gray-200); border-radius: 12px; padding: 16px; }
.help-card-header  { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 14px; }

.help-steps     { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.help-step      { display: flex; align-items: flex-start; gap: 10px; }
.help-step-num  { width: 20px; height: 20px; border-radius: 50%; background: var(--tna-green-light); color: var(--tna-green); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.help-step-text { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

.question-type-list { display: flex; flex-direction: column; gap: 6px; }
.question-type-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); }
.question-type-icon { font-size: 14px; width: 20px; text-align: center; }


/* ─────────────────────────────────────────────────────────────────────────────
   22. Procurement layout & sidebar
   ───────────────────────────────────────────────────────────────────────────── */
.procurement-container {
  padding-left: 0 !important;
  min-height: 100%;
}

.procurement-layout {
  align-items: stretch;
  min-height: 100%;
}

.procurement-sidebar-col,
.procurement-content-col {
  transition: all 0.25s ease;
}

.procurement-sidebar-col {
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  align-self: stretch;
  background: #fff;
}

.procurement-layout.sidebar-hidden .procurement-sidebar-col {
  display: none !important;
}

.procurement-layout.sidebar-hidden .procurement-content-col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.procurement-sidebar {
  height: 100%;
  max-height: none;
  overflow-y: auto;
  transition: all 0.2s ease;
  width: 100%;
  position: relative;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.procurement-sidebar .nav {
  padding-left: 0;
  flex: 1 1 auto;
}


/* ─────────────────────────────────────────────────────────────────────────────
   23. PD Wizard (multi-step form)
   ───────────────────────────────────────────────────────────────────────────── */
.pd-wizard-container { max-width: 860px; margin: 0 auto; }

/* Progress bar */
.pd-wizard-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
  padding: 0 6px;
}

.pd-wizard-progress::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.pd-wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.pd-wizard-dot-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-wizard-dot-label {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 5px;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  max-width: 60px;
}

/* Active step */
.pd-wizard-step-item.is-active .pd-wizard-dot-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.pd-wizard-step-item.is-active .pd-wizard-dot-label {
  color: #2563eb;
  font-weight: 700;
}

/* Completed step */
.pd-wizard-step-item.is-done .pd-wizard-dot-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.pd-wizard-step-item.is-done .pd-wizard-dot-circle .pd-wizard-dot-num { display: none; }

.pd-wizard-step-item.is-done .pd-wizard-dot-circle::before {
  content: '✓';
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.pd-wizard-step-item.is-done .pd-wizard-dot-label { color: #16a34a; }

/* Step panels */
.pd-wizard-step { animation: wz-fade-in 0.2s ease; }

@keyframes wz-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Navigation bar */
.pd-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 32px;
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  gap: 12px;
}

.pd-wizard-nav-center  { flex: 1; text-align: center; }
.pd-wizard-nav-right   { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pd-wizard-step-counter { font-size: 12px; color: #9ca3af; font-weight: 500; }

.pd-wizard-btn {
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.pd-wizard-btn:active        { transform: scale(0.97); }
.pd-wizard-btn-back          { background: #f3f4f6; color: #374151; }
.pd-wizard-btn-back:hover    { background: #e5e7eb; }
.pd-wizard-btn-next          { background: #2563eb; color: #fff; }
.pd-wizard-btn-next:hover    { background: #1d4ed8; }

/* Error message */
.pd-wizard-error {
  display: none;
  align-items: center;
  gap: 7px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 13px;
  color: #dc2626;
  max-width: 320px;
}

/* Review step */
.pd-wizard-review-panel  { padding-bottom: 8px; }
.pd-wizard-review-header { margin-bottom: 20px; }
.pd-wizard-review-header h5 { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.pd-wizard-review-header p  { font-size: 14px; color: #6b7280; margin: 0; }

.pd-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.pd-review-card       { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; }
.pd-review-card-title { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #6b7280; margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid #e5e7eb; }
.pd-review-row        { display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 0; gap: 8px; }
.pd-review-key        { font-size: 12px; color: #6b7280; flex-shrink: 0; }
.pd-review-val        { font-size: 13px; color: #111827; font-weight: 500; text-align: right; word-break: break-word; }
.pd-review-note       { font-size: 13px; color: #6b7280; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 14px; margin: 0; }

@media (max-width: 640px) {
  .pd-wizard-dot-label   { display: none; }
  .pd-review-grid        { grid-template-columns: 1fr; }
  .pd-wizard-progress::before { top: 12px; }
  .pd-wizard-error       { max-width: 100%; }
  .pd-wizard-nav         { flex-wrap: wrap; }
}


/* =============================================================================
   PD SYSTEM — body.pd-layout / body.hr-layout / body.finance-layout …
   All rules below are scoped to their layout body class to prevent collisions.
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   24. PD Layout shell
   ───────────────────────────────────────────────────────────────────────────── */
body.pd-layout {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--pd-page-bg);
  color: var(--pd-txt);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: row !important;
  height: auto !important;
  min-height: 100vh;
}


/* ─────────────────────────────────────────────────────────────────────────────
   25. PD Sidebar
   ───────────────────────────────────────────────────────────────────────────── */
.pd-sidebar {
  width: var(--pd-sb-w);
  min-height: 100vh;
  background: var(--pd-sb-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  transition: transform 0.25s ease;
}

.pd-sidebar.is-collapsed {
  transform: translateX(calc(-1 * var(--pd-sb-w)));
}

/* Brand */
.pd-sb-brand {
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--pd-sb-border);
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.pd-sb-logo {
  width: 34px;
  height: 34px;
  background: var(--ispp-red);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.pd-sb-name {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.pd-sb-sub {
  color: rgba(255, 255, 255, 0.38);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav scroll area */
.pd-sb-nav {
  flex: 1;
  padding: 14px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.pd-sb-nav::-webkit-scrollbar       { width: 4px; }
.pd-sb-nav::-webkit-scrollbar-track { background: transparent; }
.pd-sb-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }

.pd-nav-section { margin-bottom: 4px; }

.pd-nav-label {
  padding: 10px 20px 3px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--pd-sb-lbl);
  user-select: none;
}

.pd-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  color: var(--pd-sb-txt);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.pd-nav-item:hover                  { background: var(--pd-sb-hover); color: var(--pd-sb-txt-on); text-decoration: none; }
.pd-nav-item.active,
.pd-nav-item.pd-nav-active          { background: var(--pd-sb-active); color: var(--pd-sb-txt-on); border-left-color: var(--ispp-red); font-weight: 600; }

.pd-nav-item i.bi {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.12s;
}

.pd-nav-item:hover i.bi,
.pd-nav-item.active i.bi,
.pd-nav-item.pd-nav-active i.bi { opacity: 1; }

.pd-nav-badge {
  margin-left: auto;
  background: var(--ispp-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* User footer */
.pd-sb-user {
  padding: 14px 18px;
  border-top: 1px solid var(--pd-sb-border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pd-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ispp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

.pd-user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-user-role {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  line-height: 1.2;
}

/* Mobile toggle */
.pd-sb-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  display: none;
  width: 36px;
  height: 36px;
  background: var(--ispp-blue);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .pd-sb-toggle  { display: flex; }
  .pd-sidebar    { transform: translateX(calc(-1 * var(--pd-sb-w))); }
  .pd-sidebar.is-open { transform: translateX(0); }
}


/* ─────────────────────────────────────────────────────────────────────────────
   26. PD Main content area & topbar
   ───────────────────────────────────────────────────────────────────────────── */
.pd-main {
  margin-left: var(--pd-sb-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: calc(100% - var(--pd-sb-w));
}

.pd-sidebar.is-collapsed ~ .pd-main { margin-left: 0; max-width: 100%; }

@media (max-width: 768px) {
  .pd-main { margin-left: 0; max-width: 100%; }
}

/* Topbar */
.pd-topbar {
  background: #fff;
  border-bottom: 1px solid var(--pd-border);
  padding: 0 28px;
  height: var(--pd-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.pd-topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--pd-txt);
  letter-spacing: -0.2px;
}

.pd-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-nav-pane-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pd-txt-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.pd-nav-pane-toggle:hover { background: var(--pd-page-bg); color: var(--ispp-blue); }

@media (max-width: 768px) {
  .pd-nav-pane-toggle { display: none; }
}

.pd-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-sy-badge {
  background: var(--pd-page-bg);
  border: 1px solid var(--pd-border);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pd-txt-2);
}

.pd-notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--pd-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pd-txt-2);
  transition: background 0.12s;
}

.pd-notif-btn:hover { background: var(--pd-page-bg); }

/* Simple dot (topbar) */
.pd-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--ispp-red);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Page content */
.pd-content { padding: 26px 28px; flex: 1; }

/* Breadcrumb */
.pd-breadcrumb,
.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--pd-txt-3);
  margin-bottom: 16px;
}

.pd-breadcrumb a,
.portal-breadcrumb a      { color: var(--pd-txt-3); text-decoration: none; }
.pd-breadcrumb a:hover,
.portal-breadcrumb a:hover { color: var(--ispp-blue); }
.pd-breadcrumb .sep,
.portal-breadcrumb .sep   { opacity: 0.5; }
.pd-breadcrumb .current,
.portal-breadcrumb .current { color: var(--pd-txt-2); font-weight: 500; }

/* Page header */
.pd-page-header { margin-bottom: 22px; }

.pd-page-header h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--pd-txt);
  margin: 0 0 3px;
}

.pd-page-header p { color: var(--pd-txt-2); font-size: 13.5px; margin: 0; }

/* Alert wrapper */
.pd-alerts { margin-bottom: 16px; }


/* ─────────────────────────────────────────────────────────────────────────────
   27. PD Cards, stat cards, budget hero
   ───────────────────────────────────────────────────────────────────────────── */
.pd-card {
  background: var(--pd-card-bg);
  border-radius: 12px;
  border: 1px solid var(--pd-border);
  padding: 20px;
}

.pd-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--pd-txt-3);
  margin-bottom: 16px;
}

.pd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pd-card-header .pd-card-title { margin-bottom: 0; }

/* Stat grid */
.pd-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.pd-stat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) { .pd-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pd-stat-grid { grid-template-columns: 1fr; } }

.pd-stat-card { background: var(--pd-card-bg); border-radius: 12px; border: 1px solid var(--pd-border); padding: 18px 20px; }
.pd-stat-lbl  { font-size: 11.5px; font-weight: 500; color: var(--pd-txt-3); margin-bottom: 7px; }
.pd-stat-val  { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 6px; color: var(--pd-txt); }
.pd-stat-sub  { font-size: 11.5px; color: var(--pd-txt-3); display: flex; align-items: center; gap: 5px; }
.pd-dot       { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

/* Budget hero */
.pd-budget-hero {
  background: linear-gradient(140deg, #003C7E 0%, #0056B3 100%);
  border-radius: 12px;
  padding: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pd-budget-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.pd-budget-hero::after {
  content: '';
  position: absolute;
  bottom: -20px; right: 50px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.pd-bh-lbl    { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 5px; }
.pd-bh-amount { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; margin-bottom: 3px; position: relative; z-index: 1; }
.pd-bh-amount sup { font-size: 18px; font-weight: 600; opacity: 0.65; vertical-align: super; }
.pd-bh-of     { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; position: relative; z-index: 1; }
.pd-bh-bar    { background: rgba(255, 255, 255, 0.18); border-radius: 4px; height: 6px; margin-bottom: 7px; position: relative; z-index: 1; }
.pd-bh-fill   { height: 100%; border-radius: 4px; background: var(--ispp-orange); transition: width 0.4s ease; }
.pd-bh-foot   { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255, 255, 255, 0.45); position: relative; z-index: 1; }

/* Budget pool bars */
.pd-pool-bar-wrap       { margin-bottom: 20px; }
.pd-pool-bar-wrap:last-child { margin-bottom: 0; }
.pd-pool-bar-head       { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pd-pool-bar-name       { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.pd-pool-bar-val        { font-size: 14px; font-weight: 800; }
.pd-pool-bar-track      { background: var(--pd-page-bg); border-radius: 5px; height: 8px; margin-bottom: 5px; border: 1px solid var(--pd-border); }
.pd-pool-bar-fill       { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.pd-pool-bar-foot       { font-size: 11px; color: var(--pd-txt-3); }


/* ─────────────────────────────────────────────────────────────────────────────
   28. PD Status badges & tags
   ───────────────────────────────────────────────────────────────────────────── */
.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pd-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.pd-badge.pd-b-draft    { background: rgba(149, 163, 187, 0.12); color: #6B7A95; }
.pd-badge.pd-b-sup      { background: rgba(247, 148, 29, 0.12);  color: #B87010; }
.pd-badge.pd-b-lead     { background: rgba(53, 133, 198, 0.12);  color: #1F65A0; }
.pd-badge.pd-b-approved { background: rgba(55, 147, 125, 0.12);  color: #1E7560; }
.pd-badge.pd-b-declined { background: rgba(237, 28, 36, 0.10);   color: #B8101A; }
.pd-badge.pd-b-reimb    { background: rgba(175, 31, 93, 0.10);   color: #88184A; }
.pd-badge.pd-b-complete { background: rgba(55, 147, 125, 0.12);  color: #1E7560; }
.pd-badge.pd-b-warning  { background: rgba(247, 148, 29, 0.12);  color: #B87010; }
.pd-badge.pd-b-ready    { background: rgba(55, 147, 125, 0.12);  color: #1E7560; }

/* Format tags */
.pd-tag              { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 600; }
.pd-tag.pd-tag-online { background: rgba(53, 133, 198, 0.1);  color: #1F65A0; }
.pd-tag.pd-tag-local  { background: rgba(55, 147, 125, 0.1);  color: #1E7560; }
.pd-tag.pd-tag-travel { background: rgba(175, 31, 93, 0.1);   color: #88184A; }
.pd-tag.pd-tag-fac    { background: rgba(53, 133, 198, 0.1);  color: #1F65A0; }
.pd-tag.pd-tag-all    { background: rgba(55, 147, 125, 0.1);  color: #1E7560; }
.pd-tag.pd-tag-ws     { background: rgba(247, 148, 29, 0.1);  color: #B87010; }

.pd-cap-warning        { font-size: 11.5px; font-weight: 600; color: #B87010; }
.pd-cap-warning.severe { color: #B8101A; }


/* ─────────────────────────────────────────────────────────────────────────────
   29. PD Request list, queue items, events list, KV pairs
   ───────────────────────────────────────────────────────────────────────────── */
.pd-rlist { display: flex; flex-direction: column; }

.pd-ri {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--pd-border);
}

.pd-ri:last-child  { border-bottom: none; padding-bottom: 0; }
.pd-ri:first-child { padding-top: 0; }

.pd-ri-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.pd-ri-info    { flex: 1; min-width: 0; }
.pd-ri-title   { font-size: 13.5px; font-weight: 600; color: var(--pd-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-ri-meta    { font-size: 12px; color: var(--pd-txt-3); margin-top: 2px; }
.pd-ri-right   { text-align: right; flex-shrink: 0; }
.pd-ri-amount  { font-size: 13.5px; font-weight: 700; color: var(--pd-txt); margin-bottom: 5px; }

/* Queue items */
.pd-qi {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  background: var(--pd-page-bg);
  border-radius: 10px;
  border: 1px solid var(--pd-border);
  margin-bottom: 10px;
}

.pd-qi:last-child     { margin-bottom: 0; }
.pd-qi.pd-qi-warning  { border-color: rgba(247, 148, 29, 0.35); background: rgba(247, 148, 29, 0.04); }

.pd-qi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

.pd-qi-info   { flex: 1; min-width: 0; }
.pd-qi-name   { font-size: 13.5px; font-weight: 700; }
.pd-qi-course { font-size: 12.5px; color: var(--pd-txt-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-qi-meta   { font-size: 11.5px; color: var(--pd-txt-3); margin-top: 4px; }
.pd-qi-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: flex-start; padding-top: 2px; }

/* Events list */
.pd-elist { display: flex; flex-direction: column; }

.pd-ei {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pd-border);
}

.pd-ei:last-child  { border-bottom: none; padding-bottom: 0; }
.pd-ei:first-child { padding-top: 0; }

.pd-ei-date  { text-align: center; width: 40px; flex-shrink: 0; padding-top: 2px; }
.pd-ei-day   { font-size: 21px; font-weight: 800; line-height: 1; color: var(--ispp-blue); }
.pd-ei-mon   { font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--pd-txt-3); letter-spacing: 0.5px; }
.pd-ei-info  { flex: 1; }
.pd-ei-title { font-size: 13px; font-weight: 600; }
.pd-ei-sub   { font-size: 11.5px; color: var(--pd-txt-3); margin-top: 2px; }

/* Key-value pairs */
.pd-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--pd-border);
}

.pd-kv:last-child  { border-bottom: none; padding-bottom: 0; }
.pd-kv:first-child { padding-top: 0; }
.pd-kv-k { font-size: 13px; color: var(--pd-txt-2); }
.pd-kv-v { font-size: 13.5px; font-weight: 700; }


/* ─────────────────────────────────────────────────────────────────────────────
   30. PD Buttons
   ───────────────────────────────────────────────────────────────────────────── */
body.pd-layout .pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 17px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Onest', sans-serif;
  text-decoration: none;
  transition: filter 0.12s, background 0.12s;
  line-height: 1.4;
}

body.pd-layout .pd-btn:hover           { filter: brightness(0.92); text-decoration: none; }
body.pd-layout .pd-btn.pd-btn-primary   { background: var(--ispp-red); color: #fff; }
body.pd-layout .pd-btn.pd-btn-secondary { background: var(--pd-card-bg); border: 1px solid var(--pd-border); color: var(--pd-txt-2); }
body.pd-layout .pd-btn.pd-btn-ghost     { background: transparent; color: var(--ispp-blue); font-size: 12.5px; padding: 5px 0; }
body.pd-layout .pd-btn.pd-btn-approve   { background: rgba(55, 147, 125, 0.13); color: #1E7560; border: none; }
body.pd-layout .pd-btn.pd-btn-decline   { background: var(--pd-card-bg); border: 1px solid var(--pd-border); color: var(--pd-txt-2); }
body.pd-layout .pd-btn.pd-btn-sm        { padding: 6px 13px; font-size: 12px; }
body.pd-layout .pd-btn.pd-btn-block     { width: 100%; justify-content: center; }


/* ─────────────────────────────────────────────────────────────────────────────
   31. PD Layout grids & filter bar
   ───────────────────────────────────────────────────────────────────────────── */
.pd-g31 { display: grid; grid-template-columns: 1fr 330px; gap: 16px; }
@media (max-width: 1100px) { .pd-g31 { grid-template-columns: 1fr; } }

.pd-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px)  { .pd-g2  { grid-template-columns: 1fr; } }

.pd-mb    { margin-bottom: 18px; }
.pd-mb-sm { margin-bottom: 12px; }

/* Filter bar */
.pd-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pd-filter-btn {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Onest', sans-serif;
  cursor: pointer;
  border: 1px solid var(--pd-border);
  background: var(--pd-card-bg);
  color: var(--pd-txt-2);
  transition: all 0.12s;
}

.pd-filter-btn.active,
.pd-filter-btn:hover {
  background: var(--ispp-blue);
  color: #fff;
  border-color: var(--ispp-blue);
}

/* Flash / alert override */
body.pd-layout .alert { border-radius: 8px; font-family: 'Onest', sans-serif; }


/* ─────────────────────────────────────────────────────────────────────────────
   32. PD HR / Finance / Academics / Utility layout variants
   ───────────────────────────────────────────────────────────────────────────── */
body.hr-layout       .pd-sb-logo { background: var(--ispp-orange); }
body.finance-layout  .pd-sb-logo { background: var(--ispp-green); }
body.academics-layout .pd-sb-logo { background: var(--ispp-blue); }
body.utility-layout  .pd-sb-logo { background: #6b7280; }

/* Nav group borders */
body.hr-layout .pd-sidebar .nav-group,
body.finance-layout .pd-sidebar .nav-group,
body.academics-layout .pd-sidebar .nav-group,
body.utility-layout .pd-sidebar .nav-group {
  border-top: 0;
}

/* Nav group toggle */
body.hr-layout .pd-sidebar .nav-group-toggle,
body.finance-layout .pd-sidebar .nav-group-toggle,
body.academics-layout .pd-sidebar .nav-group-toggle,
body.utility-layout .pd-sidebar .nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 20px;
  background: transparent;
  color: var(--pd-sb-txt);
  border: none;
  border-left: 3px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}

body.hr-layout .pd-sidebar .nav-group-toggle > span,
body.finance-layout .pd-sidebar .nav-group-toggle > span,
body.academics-layout .pd-sidebar .nav-group-toggle > span,
body.utility-layout .pd-sidebar .nav-group-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.hr-layout .pd-sidebar .nav-group-toggle i,
body.finance-layout .pd-sidebar .nav-group-toggle i,
body.academics-layout .pd-sidebar .nav-group-toggle i,
body.utility-layout .pd-sidebar .nav-group-toggle i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

body.hr-layout .pd-sidebar .nav-group-toggle:hover,
body.hr-layout .pd-sidebar .nav-group-toggle[aria-expanded="true"],
body.finance-layout .pd-sidebar .nav-group-toggle:hover,
body.finance-layout .pd-sidebar .nav-group-toggle[aria-expanded="true"],
body.academics-layout .pd-sidebar .nav-group-toggle:hover,
body.academics-layout .pd-sidebar .nav-group-toggle[aria-expanded="true"],
body.utility-layout .pd-sidebar .nav-group-toggle:hover,
body.utility-layout .pd-sidebar .nav-group-toggle[aria-expanded="true"] {
  background: var(--pd-sb-hover);
  color: var(--pd-sb-txt-on);
}

body.hr-layout .pd-sidebar .nav-group-caret,
body.finance-layout .pd-sidebar .nav-group-caret,
body.academics-layout .pd-sidebar .nav-group-caret,
body.utility-layout .pd-sidebar .nav-group-caret {
  width: auto;
  font-size: 13px;
  transition: transform 0.2s ease;
}

body.hr-layout .pd-sidebar .nav-group-toggle[aria-expanded="true"] .nav-group-caret,
body.finance-layout .pd-sidebar .nav-group-toggle[aria-expanded="true"] .nav-group-caret,
body.academics-layout .pd-sidebar .nav-group-toggle[aria-expanded="true"] .nav-group-caret,
body.utility-layout .pd-sidebar .nav-group-toggle[aria-expanded="true"] .nav-group-caret {
  transform: rotate(180deg);
}

/* Submenu links */
body.hr-layout .pd-sidebar .nav-submenu,
body.finance-layout .pd-sidebar .nav-submenu,
body.academics-layout .pd-sidebar .nav-submenu,
body.utility-layout .pd-sidebar .nav-submenu {
  padding: 0;
}

body.hr-layout .pd-sidebar .nav-submenu .nav-link,
body.finance-layout .pd-sidebar .nav-submenu .nav-link,
body.academics-layout .pd-sidebar .nav-submenu .nav-link,
body.utility-layout .pd-sidebar .nav-submenu .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pd-sb-txt);
  border-left: 3px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 20px 7px 20px !important;
  transition: background 0.12s, color 0.12s;
}

body.hr-layout .pd-sidebar .nav-submenu .nav-link:hover,
body.finance-layout .pd-sidebar .nav-submenu .nav-link:hover,
body.academics-layout .pd-sidebar .nav-submenu .nav-link:hover,
body.utility-layout .pd-sidebar .nav-submenu .nav-link:hover {
  background: var(--pd-sb-hover);
  color: var(--pd-sb-txt-on);
  text-decoration: none;
}

body.hr-layout .pd-sidebar .nav-submenu .nav-link.active,
body.finance-layout .pd-sidebar .nav-submenu .nav-link.active,
body.academics-layout .pd-sidebar .nav-submenu .nav-link.active,
body.utility-layout .pd-sidebar .nav-submenu .nav-link.active {
  background: var(--pd-sb-active);
  color: var(--pd-sb-txt-on);
  border-left-color: var(--ispp-red);
  font-weight: 600;
}

body.hr-layout .pd-sidebar .nav-submenu .nav-group-toggle,
body.finance-layout .pd-sidebar .nav-submenu .nav-group-toggle,
body.academics-layout .pd-sidebar .nav-submenu .nav-group-toggle,
body.utility-layout .pd-sidebar .nav-submenu .nav-group-toggle {
  padding-left: 20px;
}

/* Nav subgroup labels — consolidated from repeated blocks */
body.hr-layout .pd-sidebar .nav-subgroup-label,
body.finance-layout .pd-sidebar .nav-subgroup-label,
body.academics-layout .pd-sidebar .nav-subgroup-label,
body.utility-layout .pd-sidebar .nav-subgroup-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px 7px 20px;
  color: var(--pd-sb-txt);
  font-size: 13px;
  font-weight: 500;
}

body.hr-layout .pd-sidebar .nav-subgroup-label i,
body.finance-layout .pd-sidebar .nav-subgroup-label i,
body.academics-layout .pd-sidebar .nav-subgroup-label i,
body.utility-layout .pd-sidebar .nav-subgroup-label i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.72;
}

/* Top-level active items (group headers — suppress active highlight) */
body.hr-layout .pd-sidebar .pd-nav-section > .pd-nav-item.pd-nav-active,
body.hr-layout .pd-sidebar .pd-nav-section > .pd-nav-item.active,
body.finance-layout .pd-sidebar .pd-nav-section > .pd-nav-item.pd-nav-active,
body.finance-layout .pd-sidebar .pd-nav-section > .pd-nav-item.active,
body.academics-layout .pd-sidebar .pd-nav-section > .pd-nav-item.pd-nav-active,
body.academics-layout .pd-sidebar .pd-nav-section > .pd-nav-item.active,
body.utility-layout .pd-sidebar .pd-nav-section > .pd-nav-item.pd-nav-active,
body.utility-layout .pd-sidebar .pd-nav-section > .pd-nav-item.active {
  background: transparent;
  color: var(--pd-sb-txt);
  border-left-color: transparent;
  font-weight: 500;
}

body.hr-layout .pd-sidebar .pd-nav-section > .pd-nav-item.pd-nav-active i,
body.hr-layout .pd-sidebar .pd-nav-section > .pd-nav-item.active i,
body.finance-layout .pd-sidebar .pd-nav-section > .pd-nav-item.pd-nav-active i,
body.finance-layout .pd-sidebar .pd-nav-section > .pd-nav-item.active i,
body.academics-layout .pd-sidebar .pd-nav-section > .pd-nav-item.pd-nav-active i,
body.academics-layout .pd-sidebar .pd-nav-section > .pd-nav-item.active i,
body.utility-layout .pd-sidebar .pd-nav-section > .pd-nav-item.pd-nav-active i,
body.utility-layout .pd-sidebar .pd-nav-section > .pd-nav-item.active i {
  opacity: 0.72;
}

/* Nested sub-submenu */
body.hr-layout .pd-sidebar .nav-submenu .nav-submenu .nav-link,
body.finance-layout .pd-sidebar .nav-submenu .nav-submenu .nav-link,
body.academics-layout .pd-sidebar .nav-submenu .nav-submenu .nav-link,
body.utility-layout .pd-sidebar .nav-submenu .nav-submenu .nav-link {
  padding-left: 36px !important;
}

body.hr-layout .pd-sidebar .nav-submenu .nav-submenu .nav-group-toggle,
body.finance-layout .pd-sidebar .nav-submenu .nav-submenu .nav-group-toggle,
body.academics-layout .pd-sidebar .nav-submenu .nav-submenu .nav-group-toggle,
body.utility-layout .pd-sidebar .nav-submenu .nav-submenu .nav-group-toggle {
  padding-left: 36px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   33. PD Topbar user / quick-links buttons (shared across layouts)
   ───────────────────────────────────────────────────────────────────────────── */
body.pd-layout .hr-top-user-btn,
body.hr-layout .hr-top-user-btn,
body.finance-layout .hr-top-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pd-border);
  background: #fff;
  border-radius: 10px;
  padding: 4px 10px 4px 6px;
  color: var(--pd-txt);
}

body.pd-layout .hr-top-user-btn:hover,
body.pd-layout .hr-top-user-btn:focus,
body.hr-layout .hr-top-user-btn:hover,
body.hr-layout .hr-top-user-btn:focus,
body.finance-layout .hr-top-user-btn:hover,
body.finance-layout .hr-top-user-btn:focus {
  background: var(--pd-page-bg);
  color: var(--pd-txt);
  border-color: #cbd5e1;
}

body.pd-layout .hr-top-user-btn::after,
body.hr-layout .hr-top-user-btn::after,
body.finance-layout .hr-top-user-btn::after {
  margin-left: 6px;
}

body.pd-layout .hr-top-quick-links-btn,
body.hr-layout .hr-top-quick-links-btn,
body.finance-layout .hr-top-quick-links-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pd-txt-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.pd-layout .hr-top-quick-links-btn:hover,
body.pd-layout .hr-top-quick-links-btn:focus,
body.hr-layout .hr-top-quick-links-btn:hover,
body.hr-layout .hr-top-quick-links-btn:focus,
body.finance-layout .hr-top-quick-links-btn:hover,
body.finance-layout .hr-top-quick-links-btn:focus {
  background: var(--pd-page-bg);
  color: var(--pd-txt);
  border-color: #cbd5e1;
}

body.pd-layout .hr-top-quick-links-btn::after,
body.hr-layout .hr-top-quick-links-btn::after,
body.finance-layout .hr-top-quick-links-btn::after {
  display: none;
}

body.pd-layout .hr-top-quick-links-menu,
body.hr-layout .hr-top-quick-links-menu,
body.finance-layout .hr-top-quick-links-menu {
  min-width: 290px;
}

body.pd-layout .hr-top-quick-links-menu .quick-link-item,
body.hr-layout .hr-top-quick-links-menu .quick-link-item,
body.finance-layout .hr-top-quick-links-menu .quick-link-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.6rem 0.9rem;
}

body.pd-layout .hr-top-quick-links-menu .quick-link-icon,
body.hr-layout .hr-top-quick-links-menu .quick-link-icon,
body.finance-layout .hr-top-quick-links-menu .quick-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef3fb;
  color: #395a8b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.pd-layout .hr-top-quick-links-menu .quick-link-content,
body.hr-layout .hr-top-quick-links-menu .quick-link-content,
body.finance-layout .hr-top-quick-links-menu .quick-link-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

body.pd-layout .hr-top-quick-links-menu .quick-link-label,
body.hr-layout .hr-top-quick-links-menu .quick-link-label,
body.finance-layout .hr-top-quick-links-menu .quick-link-label {
  font-weight: 600;
  color: #1d2a3a;
}

body.pd-layout .hr-top-quick-links-menu .quick-link-description,
body.hr-layout .hr-top-quick-links-menu .quick-link-description,
body.finance-layout .hr-top-quick-links-menu .quick-link-description {
  font-size: 0.78rem;
  color: #657387;
}

/* Avatars (topbar) */
body.pd-layout .hr-top-user-avatar-image,
body.pd-layout .hr-top-user-avatar-fallback,
body.hr-layout .hr-top-user-avatar-image,
body.hr-layout .hr-top-user-avatar-fallback,
body.finance-layout .hr-top-user-avatar-image,
body.finance-layout .hr-top-user-avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.pd-layout .hr-top-user-avatar-image,
body.hr-layout .hr-top-user-avatar-image,
body.finance-layout .hr-top-user-avatar-image {
  object-fit: cover;
  border: 1px solid #dbe3ed;
}

body.pd-layout .hr-top-user-avatar-fallback,
body.hr-layout .hr-top-user-avatar-fallback,
body.finance-layout .hr-top-user-avatar-fallback {
  background: var(--ispp-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

body.pd-layout .hr-top-user-name,
body.hr-layout .hr-top-user-name,
body.finance-layout .hr-top-user-name {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
  font-weight: 600;
}

@media (max-width: 768px) {
  body.hr-layout .hr-top-user-name,
  body.pd-layout .hr-top-user-name,
  body.finance-layout .hr-top-user-name {
    display: none;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   34. PD Form sections
   ───────────────────────────────────────────────────────────────────────────── */
body.pd-layout .pd-form-section {
  background: var(--pd-card-bg);
  border-radius: 12px;
  border: 1px solid var(--pd-border);
  padding: 24px;
  margin-bottom: 18px;
}

body.pd-layout .pd-form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ispp-blue);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pd-border);
}

body.pd-layout .form-control,
body.pd-layout .form-select {
  font-family: 'Onest', sans-serif;
  font-size: 13.5px;
  border-radius: 8px;
  border-color: var(--pd-border);
}

body.pd-layout .form-control:focus,
body.pd-layout .form-select:focus {
  border-color: var(--ispp-blue);
  box-shadow: 0 0 0 3px rgba(0, 60, 126, 0.1);
}

body.pd-layout label {
  font-size: 13px;
  font-weight: 500;
  color: var(--pd-txt-2);
}


/* ─────────────────────────────────────────────────────────────────────────────
   35. PD Notification dropdown
   ───────────────────────────────────────────────────────────────────────────── */
.pd-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--pd-card-bg);
  border-radius: 12px;
  border: 1px solid var(--pd-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 500;
  overflow: hidden;
  display: none;
}

.pd-notif-dropdown.is-open { display: block; }

.pd-notif-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--pd-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-txt);
}

.pd-notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pd-border);
  cursor: pointer;
  transition: background 0.1s;
}

.pd-notif-item:last-child { border-bottom: none; }
.pd-notif-item:hover      { background: var(--pd-page-bg); }
.pd-notif-item.unread     { background: rgba(0, 60, 126, 0.03); }
.pd-notif-msg  { font-size: 13px; color: var(--pd-txt); line-height: 1.4; }
.pd-notif-time { font-size: 11px; color: var(--pd-txt-3); margin-top: 3px; }


/* ─────────────────────────────────────────────────────────────────────────────
   36. PD Page header (flexbox), empty state, role options, notification dot
   ───────────────────────────────────────────────────────────────────────────── */
body.pd-layout .pd-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

body.pd-layout .pd-page-header .pd-page-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--pd-txt);
  margin: 0;
}

body.pd-layout .pd-page-header .pd-page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

body.pd-layout .pd-bc-sep   { opacity: 0.4; margin: 0 2px; }
body.pd-layout .pd-card-body { padding-top: 4px; }

body.pd-layout .pd-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--pd-txt-3);
}

body.pd-layout .pd-empty-state i { display: block; margin-bottom: 12px; }
body.pd-layout .pd-empty-state p  { font-size: 14px; margin: 0; }

body.pd-layout .pd-role-option { transition: border-color 0.15s, background 0.15s; }
body.pd-layout .pd-role-option:has(input:checked) {
  border-color: var(--ispp-blue);
  background: rgba(0, 60, 126, 0.04);
}

/* Notification dot with count (Phase 7) */
body.pd-layout .pd-notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--ispp-red);
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}


/* ─────────────────────────────────────────────────────────────────────────────
   37. PD Activity timeline
   ───────────────────────────────────────────────────────────────────────────── */
.pd-timeline {
  position: relative;
  padding-left: 18px;

  &::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 5px;
    width: 2px;
    background: var(--pd-border);
  }
}

.pd-timeline-item {
  position: relative;
  margin-bottom: 18px;

  &:last-child { margin-bottom: 0; }
}

.pd-timeline-dot {
  position: absolute;
  top: 4px;
  left: -18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ispp-blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--pd-border);
}

.pd-timeline-content { font-size: 13px; }
.pd-timeline-action  { font-weight: 600; color: var(--pd-txt); margin-bottom: 2px; }
.pd-timeline-meta    { font-size: 12px; color: var(--pd-txt-3); margin-bottom: 4px; }

.pd-timeline-notes {
  font-size: 12px;
  color: var(--pd-txt-2);
  background: rgba(0, 0, 0, .03);
  border-left: 3px solid var(--pd-border);
  padding: 6px 10px;
  margin-top: 6px;
  border-radius: 0 4px 4px 0;
}

.pd-timeline-amount {
  font-size: 12px;
  font-weight: 600;
  color: var(--ispp-green);
  margin-top: 4px;
}
