:root {
  --navy: #1E3A5F;
  --navy-dark: #132840;
  --ink: #1B2430;
  --ink-soft: #5B6B7C;
  --line: #E3E8EE;
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --accent: #2E86AB;
  --green: #1B998B;
  --amber: #C77700;
  --red: #C1121F;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
}

.app {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 55;
  border: 1px solid #D8E1EB;
  background: #fff;
  color: #1E3A5F;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow);
}

.mobile-overlay {
  display: none;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3E6E9E, #1E3A5F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .25);
}

.brand-name {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: .3px;
}

.brand-tag {
  font-size: 10.5px;
  color: #B9C7D8;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13.6px;
  font-weight: 600;
  color: #CFDBEA;
  text-decoration: none;
}

.side-link-icon {
  width: 18px;
  text-align: center;
  opacity: .95;
}

.side-link:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.side-link.active {
  background: #fff;
  color: var(--navy);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 10.5px;
  color: #7F92AA;
  padding: 10px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 62px;
  flex-shrink: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
}

.topbar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  flex: 1;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-nav__user {
  color: #32475D;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.auth-nav__user:hover {
  text-decoration: underline;
}

.auth-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-nav__btn--outline {
  border: 1px solid #CAD6E3;
  color: #2C445E;
  background: #fff;
}

.auth-nav__btn--solid {
  border: 1px solid #1E3A5F;
  color: #fff;
  background: #1E3A5F;
}

.bell-wrap {
  position: relative;
  color: var(--ink-soft);
  font-size: 18px;
}

.badge-dot {
  position: absolute;
  top: -7px;
  right: -10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .03em;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .15s, box-shadow .15s;
  user-select: none;
}
.avatar:hover, .av-trigger:hover  { opacity: .88; box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 79,70,229),.2); }
.avatar:focus-visible              { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Avatar wrapper + dropdown ────────────────────────────────────────── */
.av-wrap {
  position: relative;
}
.av-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 999;
  overflow: hidden;
  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.av-wrap.open .av-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.av-dropdown__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  background: var(--surface, #f8f9fb);
  border-bottom: 1px solid var(--border);
}
.av-dropdown__initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .03em;
  flex-shrink: 0;
}
.av-dropdown__info   { min-width: 0; }
.av-dropdown__name   { font-size: .8125rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; text-transform: capitalize; }
.av-dropdown__email  { font-size: .72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: .1rem 0 0; }
.av-dropdown__menu   { list-style: none; margin: 0; padding: .375rem 0; }
.av-dropdown__item {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  padding: .5rem 1rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .12s;
  text-align: left;
}
.av-dropdown__item svg { width: 1rem; height: 1rem; color: var(--text-secondary); flex-shrink: 0; }
.av-dropdown__item:hover { background: var(--surface, #f8f9fb); }
.av-dropdown__item--logout { color: #dc2626; }
.av-dropdown__item--logout svg { color: #dc2626; }
.av-dropdown__item--logout:hover { background: #fef2f2; }
.av-dropdown__sep  { height: 1px; background: var(--border); margin: .375rem 0; }
.av-dropdown__form { margin: 0; padding: 0; }


.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;   /* prevent horizontal scroll caused by grid overflow */
  min-width: 0;         /* flex child must be able to shrink */
}

.content-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 28px 60px;
  min-width: 0;         /* prevent flex blowout */
}

/* Prevent any child grid from breaking out of the content column */
.module-index-page {
  overflow-x: hidden;
}

.card,
.portal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.tag,
.portal-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.tag-urgent,
.portal-tag.urgent {
  background: #FDE7E7;
  color: var(--red);
}

.tag-important,
.portal-tag.important {
  background: #FFF1DC;
  color: var(--amber);
}

.tag-normal,
.portal-tag.normal {
  background: #E9EEF3;
  color: var(--ink-soft);
}

.portal-toast-wrap {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 1030;
  display: grid;
  gap: 8px;
}

.portal-toast {
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  min-width: 260px;
}

.portal-toast.success {
  background: var(--green);
}

.portal-toast.error {
  background: var(--red);
}

.landing-shell {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 28px auto;
}

.landing-hero {
  background: linear-gradient(140deg, #FFFFFF 0%, #F4F8FC 58%, #EAF2FB 100%);
  border-color: #D9E4F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 26px;
}

.landing-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.landing-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #D7E0EA;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(22, 42, 68, .10);
}

.landing-kicker {
  margin: 0 0 3px;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-size: 11px;
  color: #4F6782;
  font-weight: 700;
}

.landing-hero h1 {
  margin: 0 0 5px;
  font-size: 34px;
  letter-spacing: .3px;
  color: #102842;
}

.landing-subtitle {
  margin: 0;
  color: #41566E;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.55;
}

.landing-auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-feature h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.landing-feature p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.landing-feature ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.landing-feature li {
  color: #3B4E63;
}

.landing-feature a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.landing-feature a:hover {
  text-decoration: underline;
}

.landing-role-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.landing-role-panel h3 {
  margin: 0;
  font-size: 18px;
}

.landing-role-panel p {
  margin: 6px 0 0;
  color: #4C6077;
}

.home-dashboard {
  display: grid;
  gap: 14px;
}

.home-dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-dashboard__header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}

.home-dashboard__header p {
  margin: 4px 0 0;
  color: #6A7A8C;
  font-size: 14px;
}

.home-dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #C8D6E6;
  background: #FFFFFF;
  color: #1E3A5F;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  white-space: nowrap;
}

.home-dashboard-btn:hover {
  background: #F3F7FC;
}

.home-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.home-stat-card__value {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #1D3552;
}

.home-stat-card__label {
  margin-top: 6px;
  color: #5E7185;
  font-weight: 600;
}

.home-dashboard__grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 14px;
  align-items: start;
}

.home-dashboard__main,
.home-dashboard__side {
  display: grid;
  gap: 14px;
}

.home-section-card {
  padding: 14px 16px;
}

.home-section-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-section-card__head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #1E334B;
}

.home-section-card__head a {
  color: #2B7AA3;
  text-decoration: none;
  font-weight: 700;
}

.home-section-card__head a:hover {
  text-decoration: underline;
}

.home-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.home-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #EDF1F5;
}

.home-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-list--tight li {
  padding: 8px 0;
}

.home-list--stacked li {
  display: block;
}

.home-list__title {
  text-decoration: none;
  color: #1A2C42;
  font-weight: 700;
}

.home-list__title:hover {
  text-decoration: underline;
}

.home-list__meta {
  margin-top: 2px;
  color: #6B7A8A;
  font-size: 12px;
}

.home-inline-action {
  font-size: 12px;
  color: #1E3A5F;
  border: 1px solid #DDE5EE;
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  font-weight: 700;
}

.home-inline-action:hover {
  background: #F4F8FC;
}

.home-status-tag {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: #FFF1DC;
  color: #B36C00;
  padding: 5px 10px;
}

.home-official-tag {
  margin-top: 6px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: #E7FAF5;
  color: #0E766A;
  padding: 4px 9px;
}

.home-empty {
  margin: 8px 0 0;
  color: #738395;
}

.module-index-page {
  display: grid;
  gap: 16px;
}

.module-index-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.module-index-hero--stacked {
  flex-direction: column;
  align-items: stretch;
}

.module-index-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2B7AA3;
}

.module-index-hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #1E334B;
}

.module-index-hero__summary {
  margin: 8px 0 0;
  color: #5E7185;
}

.module-index-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  background: #1E3A5F;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0 16px;
  white-space: nowrap;
}

.module-index-action:hover {
  background: #162B46;
}

.module-index-search input {
  width: 100%;
  border: 1px solid #D7E0EA;
  border-radius: 12px;
  background: #F7FAFD;
  color: #1A2C42;
  padding: 12px 14px;
  font-size: 14px;
}

.module-index-search input:focus {
  outline: 2px solid rgba(43, 122, 163, .18);
  border-color: #2B7AA3;
  background: #FFFFFF;
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.module-card-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.module-item-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.module-item-card__head,
.module-item-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.module-item-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.module-item-card h2 a {
  color: #1A2C42;
  text-decoration: none;
}

.module-item-card h2 a:hover,
.module-item-card__link:hover {
  text-decoration: underline;
}

.module-item-card p {
  margin: 0;
  color: #5E7185;
  line-height: 1.6;
}

.module-item-card__meta {
  color: #6A7A8C;
  font-size: 12px;
  font-weight: 700;
}

.module-item-card__link {
  color: #2B7AA3;
  text-decoration: none;
  font-weight: 700;
}

.module-empty-state {
  padding: 20px 22px;
}

.module-empty-state h2 {
  margin: 0;
  font-size: 22px;
  color: #1E334B;
}

.module-empty-state p {
  margin: 8px 0 0;
  color: #5E7185;
}

.emp-profile {
  display: grid;
  gap: 14px;
}

.emp-profile__back {
  color: #51667F;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.emp-profile__back:hover {
  text-decoration: underline;
}

.emp-profile__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
}

.emp-id-card {
  background: linear-gradient(160deg, #213D61, #162B46);
  color: #F3F7FD;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 74px;
}

.emp-id-card__head {
  font-weight: 700;
  letter-spacing: .4px;
  font-size: 13px;
  color: #C4D8EE;
}

.emp-id-card__avatar {
  margin-top: 14px;
  margin-left: auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 2px solid rgba(255, 255, 255, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
}

.emp-id-card h2 {
  margin: 18px 0 4px;
  font-size: 36px;
}

.emp-id-card p {
  margin: 0;
  color: #C9D9EB;
}

.emp-id-card__meta {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.emp-id-card__meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 10px;
}

.emp-id-card__meta dt {
  color: #B6CADF;
}

.emp-id-card__meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.emp-id-card__qr {
  margin-top: 8px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: #1E3A5F;
  text-decoration: none;
  font-weight: 800;
}

.emp-id-card__note {
  margin-top: 10px;
  color: #99AFC8;
  text-align: center;
  font-size: 12px;
}

.emp-profile__content {
  display: grid;
  gap: 14px;
}

.emp-section {
  padding: 20px 24px;
}

.emp-section h3 {
  margin: 0;
  font-size: 31px;
}

.emp-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.emp-badge {
  border-radius: 999px;
  background: #EDF3FA;
  color: #556D86;
  font-weight: 700;
  padding: 6px 12px;
  font-size: 11px;
}

.emp-info-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.emp-info-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emp-info-grid span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 11px;
  color: #6B8099;
}

.emp-info-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  color: #1C3048;
}

.emp-reports {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.emp-reports li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #ECF1F5;
}

.emp-reports li:first-child {
  border-top: 0;
  padding-top: 0;
}

.emp-reports__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #244772;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.emp-reports__text a {
  display: block;
  color: #1A2C42;
  text-decoration: none;
  font-weight: 700;
}

.emp-reports__text span {
  display: block;
  color: #70839A;
  font-size: 13px;
}

.emp-muted {
  margin: 14px 0 0;
  color: #6E8197;
}

.module-table-card {
  padding: 18px;
}

.module-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.module-toolbar--searchable {
  align-items: end;
}

.module-toolbar__group {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.module-toolbar__group--grow {
  flex: 1 1 320px;
}

.module-toolbar__group--compact {
  min-width: 100px;
}

.module-toolbar__group label {
  font-size: 12px;
  font-weight: 700;
  color: #5E7185;
}

.module-toolbar__group input,
.module-toolbar__group select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #D7E0EA;
  border-radius: 10px;
  background: #FFFFFF;
  color: #1A2C42;
  padding: 0 12px;
}

.module-toolbar__group input:focus,
.module-toolbar__group select:focus {
  outline: 2px solid rgba(43, 122, 163, .18);
  border-color: #2B7AA3;
}

.module-toolbar__submit {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #1E3A5F;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0 16px;
}

.module-table-wrap {
  overflow-x: auto;
  border: 1px solid #E7EDF4;
  border-radius: 14px;
}

.module-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
}

.module-table th,
.module-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #ECF1F5;
  vertical-align: middle;
}

.module-table th {
  background: #F8FBFE;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5C728A;
}

.module-table th a,
.module-table td a {
  color: #1A2C42;
  text-decoration: none;
  font-weight: 700;
}

.module-table th a:hover,
.module-table td a:hover {
  text-decoration: underline;
}

.module-table tbody tr:hover {
  background: #FBFDFF;
}

.module-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #EDF3FA;
  color: #26486F;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.module-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.module-pagination__summary {
  color: #5E7185;
  font-size: 14px;
}

.module-pagination__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.module-pagination__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #D7E0EA;
  border-radius: 10px;
  background: #FFFFFF;
  color: #1A2C42;
  text-decoration: none;
  font-weight: 700;
}

.module-pagination__links a.active,
.module-pagination__links a:hover {
  background: #1E3A5F;
  border-color: #1E3A5F;
  color: #FFFFFF;
}

.module-empty-state--table {
  padding: 12px 4px 4px;
}

@media (max-width: 980px) {
  .emp-profile__grid {
    grid-template-columns: 1fr;
  }

  .emp-id-card {
    position: static;
  }

  .emp-section h3 {
    font-size: 22px;
  }

  .emp-info-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-dashboard__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dashboard__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-dashboard__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .home-section-card__head h2 {
    font-size: 17px;
  }

  .home-stat-card__value {
    font-size: 28px;
  }

  .sidebar {
    width: 220px;
  }

  .landing-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-role-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-logo {
    width: 78px;
    height: 78px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-tag {
    font-size: 10px;
  }

  .side-link {
    min-height: 38px;
    font-size: 13px;
  }

  .content-inner {
    padding: 16px 14px 50px;
  }

  .topbar {
    padding: 0 14px;
  }

  .module-index-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .module-toolbar__group,
  .module-toolbar__group--compact {
    min-width: 100%;
  }

  .module-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .home-dashboard__stats {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 60;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  .app.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  .app.mobile-nav-open .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 25, 37, .44);
  }

  .topbar {
    padding-left: 58px;
  }

  .topbar-search {
    display: none;
  }

  .auth-nav__user {
    display: none;
  }

  .module-table,
  .module-table thead,
  .module-table tbody,
  .module-table th,
  .module-table td,
  .module-table tr {
    display: block;
  }

  .module-table thead {
    display: none;
  }

  .module-table tbody tr {
    padding: 12px 14px;
    border-bottom: 1px solid #ECF1F5;
  }

  .module-table td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 0;
  }

  .module-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5C728A;
  }
}

/* ============================================================
   ANNOUNCEMENT FILTER TABS
   ============================================================ */
.ann-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ann-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.ann-tab:hover {
  color: var(--ink);
}

.ann-tab--active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.ann-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink-soft);
}

.ann-tab__badge--urgent {
  background: #FDE7E7;
  color: var(--red);
}

.ann-tab__badge--important {
  background: #FFF1DC;
  color: var(--amber);
}

.ann-tab__badge--unread {
  background: #DBEAFE;
  color: var(--blue);
}

/* ============================================================
   ANNOUNCEMENT MODAL
   ============================================================ */
.ann-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

.ann-modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  animation: ann-slide-in .18s ease;
}

@keyframes ann-slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ann-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.ann-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.ann-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
}

.ann-modal__close:hover {
  background: var(--surface);
  color: var(--ink);
}

.ann-modal__body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}

.ann-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0 0 12px 12px;
}

/* Form fields */
.ann-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ann-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ann-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ann-required {
  color: var(--red);
  margin-left: 2px;
}

.ann-hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.ann-hint-inline {
  font-size: 12px;
  color: var(--ink-soft);
}

.ann-input,
.ann-select,
.ann-textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}

.ann-input:focus,
.ann-select:focus,
.ann-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.ann-textarea {
  resize: vertical;
  min-height: 110px;
}

.ann-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C728A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
  cursor: pointer;
}

.ann-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ann-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

.ann-check-label {
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.5;
}

.ann-file-drop {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ann-file-drop:hover {
  border-color: var(--blue);
  background: rgba(37,99,235,.03);
}

.ann-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.ann-file-drop__icon {
  width: 36px;
  height: 36px;
  color: var(--ink-soft);
}

.ann-file-drop__label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  pointer-events: none;
}

.ann-form-errors {
  background: #FDE7E7;
  border: 1px solid #FECACA;
  border-radius: 7px;
  color: var(--red);
  font-size: 13px;
  padding: 10px 14px;
  line-height: 1.6;
}

/* Buttons */
.ann-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, opacity .15s;
}

.ann-btn--primary {
  background: var(--blue) !important;
  color: #fff !important;
}

.ann-btn--primary:hover:not(:disabled) {
  background: #1d4ed8 !important;
}

.ann-btn--primary:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.ann-btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink) !important;
}

.ann-btn--ghost:hover {
  background: var(--surface);
}

.ann-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ann-spin .6s linear infinite;
}

@keyframes ann-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .ann-row {
    grid-template-columns: 1fr;
  }

  .ann-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .ann-modal {
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
  }

  .ann-modal__body {
    max-height: calc(90vh - 160px);
  }
}

/* datetime-local needs explicit width to show the time portion */
.ann-input[type="datetime-local"] {
  min-width: 220px;
}

/* ============================================================
   ANNOUNCEMENT DETAIL — two-panel layout
   ============================================================ */
.ann-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .ann-detail-layout {
    grid-template-columns: 1fr;
  }
}

.ann-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ann-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}

.ann-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .14s;
}

.ann-back-link:hover {
  color: var(--ink);
}

.ann-back-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ann-detail-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ann-detail-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ann-detail-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: auto;
}

.ann-detail-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.ann-detail-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.ann-detail-body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
}

/* Attachments */
.ann-attachments {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ann-attachments__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.ann-attachments__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ann-attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.ann-attachment-item__icon {
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.ann-attachment-item a {
  color: var(--blue);
  text-decoration: none;
}

.ann-attachment-item a:hover {
  text-decoration: underline;
}

/* Acknowledgment banner */
.ann-ack-banner {
  padding: 14px 16px;
  border-radius: 8px;
  background: #FFF8DC;
  border: 1px solid #FDE68A;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ann-ack-banner--done {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.ann-ack-banner--done .ann-ack-banner__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #059669;
}

.ann-ack-banner__text {
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 10px;
}

/* ann-btn small variant */
.ann-btn--sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ── Comments card ── */
.ann-comments-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ann-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.ann-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ann-comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ann-comment__body {
  flex: 1;
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
}

.ann-comment__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.ann-comment__meta strong {
  color: var(--ink);
  font-size: 13px;
}

.ann-comment__text {
  font-size: 13.5px;
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
}

.ann-empty-comments {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.ann-comment-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ann-comment-form__submit {
  align-self: flex-end;
}

/* ── Avatar chips ── */
.ann-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: .02em;
  width: 32px;
  height: 32px;
}

.ann-avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.ann-avatar--unread {
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  font-size: 10px;
}

/* ── Readership card ── */
.ann-readership-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* SVG ring */
.ann-read-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 100px;
  height: 100px;
}

.ann-read-ring {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.ann-read-ring__track {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}

.ann-read-ring__fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray .5s ease;
}

.ann-read-ring-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.ann-read-ring-pct {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.ann-read-ring-sub {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Stat chips */
.ann-stat-row {
  display: flex;
  gap: 8px;
}

.ann-stat-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 4px;
  gap: 2px;
}

.ann-stat-chip__value {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.ann-stat-chip__label {
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ann-stat-chip--read .ann-stat-chip__value {
  color: #059669;
}

.ann-stat-chip--unread .ann-stat-chip__value {
  color: var(--red);
}

/* Employee list */
.ann-readership-section__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.ann-employee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
}

.ann-employee-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ann-employee-item__name {
  font-size: 13px;
  color: var(--ink);
}

.ann-hint--center {
  text-align: center;
}

/* ============================================================
   POLICY-SPECIFIC STYLES
   ============================================================ */

/* Category badge (pill on cards and detail) */
.pol-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  background: #EEF2FF;
  color: #4338CA;
  white-space: nowrap;
}

/* Quiz badge */
.pol-quiz-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #FFF1DC;
  color: #92400E;
}

/* Reference line in card grid */
.module-item-card__ref {
  font-size: 12px;
  color: var(--ink-soft);
  margin: -4px 0 0;
}

/* pol-flags-row */
.pol-flags-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Policy detail metadata grid */
.pol-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.pol-meta-item dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.pol-meta-item dd {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* Download button */
.pol-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background .14s, border-color .14s;
}

.pol-download-btn:hover {
  background: #E8EDF2;
  border-color: #B0BEC5;
}

.pol-download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Section cards (summary, FAQs) */
.pol-section-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Summary points list */
.pol-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pol-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
}

.pol-summary-item__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #059669;
  margin-top: 2px;
}

/* FAQ accordion */
.pol-faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pol-faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.pol-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  background: var(--surface);
  transition: background .12s;
}

.pol-faq-question::-webkit-details-marker { display: none; }

.pol-faq-question:hover { background: #EEF2F7; }

.pol-faq-item[open] .pol-faq-question { background: #EEF2F7; }

.pol-faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform .2s;
}

.pol-faq-item[open] .pol-faq-chevron {
  transform: rotate(180deg);
}

.pol-faq-answer {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.65;
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* Quiz stat (compliance panel) */
.pol-quiz-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 7px;
  padding: 8px 12px;
}

.pol-quiz-stat svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #059669;
}

/* Employee status card (non-admin detail sidebar) */
.pol-status-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pol-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
}

.pol-status-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pol-status-item--done {
  background: #ECFDF5;
  color: #065F46;
}

.pol-status-item--done svg { color: #059669; }

.pol-status-item--pending {
  background: #FFF8DC;
  color: #92400E;
}

.pol-status-item--pending svg { color: #D97706; }

/* ============================================================
   POLICY RICH TEXT — Quill editor in modal
   ============================================================ */

/* Wrapper that houses the Quill toolbar + editing area */
.pol-quill-editor {
  border: 1px solid var(--line);
  border-radius: 0 0 7px 7px;
  min-height: 200px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}

/* Ensure Quill's snow theme toolbar matches the portal's look */
.ql-toolbar.ql-snow {
  border: 1px solid var(--line);
  border-radius: 7px 7px 0 0;
  background: var(--surface);
  padding: 6px 8px;
}

/* Remove Quill's default bottom border on editor so combined border looks correct */
.ql-container.ql-snow {
  border: none;
  border-top: 1px solid var(--line);
}

.ql-editor {
  min-height: 180px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.65;
  color: var(--ink);
}

.ql-editor.ql-blank::before {
  color: var(--ink-soft);
  font-style: normal;
}

/* ============================================================
   POLICY RICH TEXT — rendered content in Detail view
   ============================================================ */
.pol-rich-content {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
}

.pol-rich-content h1,
.pol-rich-content h2,
.pol-rich-content h3 {
  font-weight: 700;
  color: var(--ink);
  margin: 1.2em 0 .4em;
  line-height: 1.3;
}

.pol-rich-content h1 { font-size: 20px; }
.pol-rich-content h2 { font-size: 17px; }
.pol-rich-content h3 { font-size: 15px; }

.pol-rich-content p {
  margin: 0 0 .9em;
}

.pol-rich-content ul,
.pol-rich-content ol {
  padding-left: 24px;
  margin: 0 0 .9em;
}

.pol-rich-content li {
  margin-bottom: .3em;
}

.pol-rich-content blockquote {
  border-left: 3px solid var(--blue);
  margin: 1em 0;
  padding: 8px 16px;
  background: rgba(37,99,235,.04);
  color: var(--ink-soft);
  border-radius: 0 6px 6px 0;
}

.pol-rich-content code {
  background: var(--surface);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
  color: #be185d;
}

.pol-rich-content pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 7px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  margin: .9em 0;
}

.pol-rich-content a {
  color: var(--blue);
  text-decoration: underline;
}

.pol-rich-content strong { font-weight: 700; }
.pol-rich-content em     { font-style: italic; }
.pol-rich-content s      { text-decoration: line-through; }

/* ============================================================
   POLICY MODAL — wider variant
   ============================================================ */
.pol-modal-wide { max-width: 780px; }

/* ============================================================
   POLICY MODAL — auto-ref badge + mono inputs
   ============================================================ */
.pol-auto-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(37,99,235,.1);
  color: var(--blue);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}

.pol-input-mono {
  font-family: ui-monospace, monospace;
  letter-spacing: .04em;
}

/* ============================================================
   POLICY MODAL — content toolbar (label + scaffold buttons)
   ============================================================ */
.pol-content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pol-scaffold-btns {
  display: flex;
  gap: 6px;
}

.pol-scaffold-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37,99,235,.07);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 5px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.pol-scaffold-btn:hover {
  background: rgba(37,99,235,.14);
}

/* ============================================================
   POLICY MODAL — quiz builder
   ============================================================ */
.pol-quiz-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  margin-top: 12px;
}

.pol-quiz-builder-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

#pol-quiz-questions {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pol-quiz-q-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pol-quiz-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pol-quiz-q-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pol-quiz-q-remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  border-radius: 4px;
  transition: color .15s;
}
.pol-quiz-q-remove:hover { color: #dc2626; }

.pol-quiz-q-text {
  font-weight: 600;
}

.pol-quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pol-quiz-opt-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pol-quiz-opt-radio-lbl {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.pol-quiz-opt-radio-lbl input[type="radio"] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
}

.pol-quiz-opt-radio-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
}

.pol-quiz-opt-text {
  flex: 1;
  font-size: 13px;
}

.pol-quiz-add-opt {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11px;
  padding: 2px 8px;
}

/* ============================================================
   POLICY INDEX — card flag badges
   ============================================================ */
.pol-card-flags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.pol-flag-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 7px;
  letter-spacing: .01em;
}

.pol-flag-badge--ack {
  background: rgba(37,99,235,.08);
  color: var(--blue);
  border: 1px solid rgba(37,99,235,.2);
}

.pol-flag-badge--quiz {
  background: rgba(124,58,237,.08);
  color: #7c3aed;
  border: 1px solid rgba(124,58,237,.22);
}

/* ============================================================
   POLICY DETAIL — quiz CTA and runner
   ============================================================ */
.pol-quiz-section {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.pol-quiz-cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: rgba(124,58,237,.05);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 10px;
  padding: 16px 18px;
}

.pol-quiz-cta__info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pol-quiz-cta__info svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #7c3aed;
  margin-top: 2px;
}

.pol-quiz-cta__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 3px;
}

.pol-quiz-cta__sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.pol-quiz-passed-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(22,163,74,.07);
  border: 1px solid rgba(22,163,74,.25);
  border-radius: 9px;
  padding: 14px 16px;
  color: #15803d;
  font-size: 14px;
  font-weight: 600;
}

.pol-quiz-passed-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pol-quiz-fail-banner {
  background: rgba(220,38,38,.06);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: 9px;
  padding: 14px 16px;
  font-size: 14px;
  color: #991b1b;
}

/* Quiz runner */
.pol-qr-progress {
  margin-bottom: 14px;
}

.pol-qr-progress__text {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 5px;
}

.pol-qr-progress__bar {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.pol-qr-progress__fill {
  height: 100%;
  background: #7c3aed;
  border-radius: 4px;
  transition: width .35s ease;
}

.pol-qr-question {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.4;
}

.pol-qr-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.pol-qr-opt {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.pol-qr-opt:hover {
  border-color: #7c3aed;
  background: rgba(124,58,237,.05);
}

.pol-qr-opt--selected {
  border-color: #7c3aed;
  background: rgba(124,58,237,.1);
  font-weight: 600;
  color: #5b21b6;
}

.pol-qr-footer {
  display: flex;
  justify-content: flex-end;
}

.pol-qr-loading {
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

/* ============================================================
   POLICY COMPLIANCE AUDIT TRAIL
============================================================ */

/* Summary stat cards */
.pol-audit-summary-card {
  padding: 20px;
  margin-bottom: 14px;
}

.pol-audit-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pol-audit-stat {
  flex: 1 1 0;
  min-width: 60px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.pol-audit-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.pol-audit-stat__label {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pol-audit-stat--opened  { border-color: #93c5fd; }
.pol-audit-stat--opened  .pol-audit-stat__value { color: #2563eb; }
.pol-audit-stat--done    { border-color: #6ee7b7; }
.pol-audit-stat--done    .pol-audit-stat__value { color: #059669; }
.pol-audit-stat--pending { border-color: #fca5a5; }
.pol-audit-stat--pending .pol-audit-stat__value { color: #dc2626; }
.pol-audit-stat--quiz    { border-color: #c4b5fd; }
.pol-audit-stat--quiz    .pol-audit-stat__value { color: #7c3aed; }

/* Audit trail card */
.pol-audit-card {
  padding: 0;
  overflow: hidden;
}

.pol-audit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.pol-audit-updated {
  font-size: 12px;
  color: var(--ink-soft);
}

/* Filter tabs */
.pol-audit-filter {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.pol-audit-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .13s, color .13s;
}

.pol-audit-filter-btn:hover {
  background: var(--line);
  color: var(--ink);
}

.pol-audit-filter-btn--active {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.pol-audit-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--line);
  font-size: 11px;
  font-weight: 700;
}

.pol-audit-count--red   { background: #fee2e2; color: #dc2626; }
.pol-audit-count--green { background: #d1fae5; color: #059669; }

/* Table */
.pol-audit-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 520px;
}

.pol-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pol-audit-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  padding: 9px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.pol-audit-table tbody .pol-audit-row td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.pol-audit-table tbody .pol-audit-row:last-child td {
  border-bottom: none;
}

.pol-audit-table tbody .pol-audit-row:hover td {
  background: var(--surface);
}

/* Employee cell */
.pol-audit-emp {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pol-audit-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.pol-audit-avatar--done    { background: #059669; }
.pol-audit-avatar--opened  { background: #2563eb; }
.pol-audit-avatar--pending { background: #9ca3af; }

.pol-audit-emp__name {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

.pol-audit-emp__dept {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
}

/* Icon cells */
.pol-audit-icon-cell {
  text-align: center;
}

.pol-audit-icon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pol-audit-icon--yes {
  color: #059669;
}

.pol-audit-icon--yes svg {
  width: 15px;
  height: 15px;
}

.pol-audit-icon--no {
  color: #d1d5db;
  font-size: 16px;
  font-weight: 700;
}

.pol-audit-icon small {
  font-size: 10px;
  font-weight: 700;
}

.pol-audit-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 24px !important;
  font-size: 13px;
}

/* ============================================================
   TICKETS / REQUESTS — INDEX STATUS + PRIORITY CHIPS
============================================================ */

.tkt-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tkt-status-pill.tkt-pill--submitted   { background: #eff6ff; color: #2563eb; }
.tkt-status-pill.tkt-pill--review      { background: #f5f3ff; color: #7c3aed; }
.tkt-status-pill.tkt-pill--approval    { background: #fffbeb; color: #d97706; }
.tkt-status-pill.tkt-pill--progress    { background: #ecfeff; color: #0891b2; }
.tkt-status-pill.tkt-pill--done        { background: #f0fdf4; color: #059669; }
.tkt-status-pill.tkt-pill--closed      { background: #f9fafb; color: #6b7280; }

.tkt-priority-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

.tkt-priority-dot.tkt-priority--urgent    { background: #dc2626; }
.tkt-priority-dot.tkt-priority--important { background: #d97706; }
.tkt-priority-dot.tkt-priority--normal    { background: #9ca3af; }

.tkt-category-chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ============================================================
   TICKETS / REQUESTS — DETAIL PAGE
============================================================ */

.tkt-detail-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.tkt-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .tkt-detail-layout {
    grid-template-columns: 1fr;
  }
}

.tkt-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tkt-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 80px;
}

/* ── Header card ── */
.tkt-header-card {
  padding: 24px;
}

.tkt-header-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tkt-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tkt-ref-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: #eef2ff;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
}

.tkt-urgent-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 3px 9px;
  border-radius: 20px;
}

.tkt-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}

.tkt-detail-submitter {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.tkt-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.tkt-status-badge.tkt-status-badge--sm {
  font-size: 12px;
  padding: 3px 10px;
}

/* ── Progress timeline ── */
.tkt-timeline {
  display: flex;
  align-items: center;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tkt-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tkt-timeline__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--ink-soft);
  transition: background .15s, border-color .15s;
}

.tkt-timeline__step--done .tkt-timeline__dot {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.tkt-timeline__step--active .tkt-timeline__dot {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,.18);
  color: #fff;
}

.tkt-timeline__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tkt-timeline__step--done .tkt-timeline__label,
.tkt-timeline__step--active .tkt-timeline__label {
  color: var(--ink);
}

.tkt-timeline__line {
  flex: 1;
  height: 2px;
  background: var(--line);
  min-width: 20px;
  margin-bottom: 18px;
}

.tkt-timeline__line--done {
  background: #059669;
}

.tkt-closed-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── Section card ── */
.tkt-section-card {
  padding: 24px;
}

.tkt-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tkt-section-title svg {
  width: 15px;
  height: 15px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.tkt-description {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ── Comments ── */
.tkt-comment-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.tkt-comment-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.tkt-comment {
  display: flex;
  gap: 12px;
}

.tkt-comment--internal {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
}

.tkt-comment__avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.tkt-comment__body {
  flex: 1;
  min-width: 0;
}

.tkt-comment__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.tkt-comment__author {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.tkt-comment__time {
  font-size: 12px;
  color: var(--ink-soft);
}

.tkt-internal-badge {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fde68a;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
}

.tkt-comment__text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.tkt-add-comment {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tkt-internal-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

/* ── Sidebar ── */
.tkt-sidebar-card {
  padding: 18px 20px;
}

.tkt-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tkt-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
}

.tkt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.tkt-meta-row:last-child {
  border-bottom: none;
}

.tkt-meta-row dt {
  color: var(--ink-soft);
  font-weight: 500;
  flex-shrink: 0;
}

.tkt-meta-row dd {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.tkt-status-update {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tkt-person-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tkt-person-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.tkt-person-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.tkt-person-dept {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Star rating ── */
.tkt-star-row {
  display: flex;
  gap: 4px;
}

.tkt-star {
  font-size: 26px;
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .1s;
}

.tkt-star-row--readonly .tkt-star--on  { color: #f59e0b; }
.tkt-star-row--readonly .tkt-star--off { color: #d1d5db; }

/* ── Form error ── */
.ann-form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
}

/* ============================================================
   TICKET ATTACHMENT — UPLOAD ZONE (modal) + LIST (detail)
============================================================ */

/* Upload drop zone */
.tkt-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 22px 16px;
  cursor: pointer;
  background: var(--bg);
  transition: border-color .15s, background .15s;
  text-align: center;
}

.tkt-upload-zone:hover,
.tkt-upload-zone--drag {
  border-color: var(--accent);
  background: #f0f9ff;
}

/* File list in modal */
.tkt-file-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tkt-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
}

.tkt-file-item__name {
  flex: 1;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.tkt-file-item__size {
  font-size: 12px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.tkt-file-item__remove {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  padding: 0;
}

.tkt-file-item__remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Attachment list in detail view */
.tkt-attachment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tkt-attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .13s;
}

.tkt-attachment-item:hover {
  border-color: var(--accent);
}

.tkt-att-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tkt-att-icon svg {
  width: 18px;
  height: 18px;
}

.tkt-att-icon--pdf     { background: #dc2626; }
.tkt-att-icon--word    { background: #2563eb; }
.tkt-att-icon--excel   { background: #059669; }
.tkt-att-icon--image   { background: #7c3aed; }
.tkt-att-icon--generic { background: #6b7280; }

.tkt-att-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tkt-att-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkt-att-meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.tkt-att-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ============================================================
   DOCUMENT DETAIL PAGE
============================================================ */

.doc-detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Two-column layout */
.doc-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.doc-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Header card */
.doc-header-card {
  padding: 24px 28px;
}

.doc-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.doc-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.doc-cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.doc-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: #fef9c3;
  color: #854d0e;
}

.doc-archived-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
}

.doc-active-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f0fdf4;
  color: #059669;
}

.doc-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}

.doc-detail-description {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* Document type icon (large, in header) */
.doc-type-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.doc-type-icon svg {
  width: 22px;
  height: 22px;
}

/* Section titles */
.doc-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}

/* File action card */
.doc-file-card {
  padding: 20px 24px;
}

.doc-file-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.doc-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-file-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.doc-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doc-file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-file-type {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.doc-file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Small button modifier */
.ann-btn--sm {
  padding: 6px 14px;
  font-size: 13px;
  gap: 5px;
}

/* Secondary outline button */
.ann-btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.ann-btn--secondary:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Inline image preview */
.doc-image-preview {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.doc-image-preview img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

/* No-file placeholder card */
.doc-no-file-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Sidebar metadata card */
.doc-meta-card {
  padding: 20px 22px;
}

.doc-meta-card__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.doc-meta-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
}

.doc-meta-list dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  padding-top: 2px;
  white-space: nowrap;
}

.doc-meta-list dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.doc-version-badge {
  display: inline-block;
  padding: 2px 9px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.doc-type-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.doc-owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-owner-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Actions card */
.doc-actions-card {
  padding: 20px 22px;
}

.doc-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-action-btn {
  width: 100%;
  justify-content: flex-start;
}

/* Create modal toggle label */
.doc-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.doc-toggle-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 860px) {
  .doc-detail-layout {
    grid-template-columns: 1fr;
  }
  .doc-detail-sidebar {
    order: -1;
  }
  .doc-header-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .doc-type-icon {
    width: 40px;
    height: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   EVENTS — Index cards & filter bar
═══════════════════════════════════════════════════════════════ */
.module-index-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.evt-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.evt-filter-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--surface);
  transition: all .15s;
}

.evt-filter-pill:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.evt-filter-pill--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.evt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.evt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
}

.evt-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.evt-card__type-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eff6ff;
  color: #1d4ed8;
}

.evt-card__virtual-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: #f0fdf4;
  color: #15803d;
}

.evt-card__full-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: #fef2f2;
  color: #b91c1c;
}

.evt-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.evt-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.evt-card__title a:hover { color: var(--accent); }

.evt-card__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.evt-card__meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.evt-card__meta-row svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.evt-card__capacity { color: var(--ink); }

.evt-card__spots {
  font-size: 11.5px;
  color: #059669;
  font-weight: 600;
}

.evt-card__footer {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════
   EVENTS — Detail page
═══════════════════════════════════════════════════════════════ */
.evt-detail-header {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evt-detail-header__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.evt-detail-past-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: #f3f4f6;
  color: var(--ink-soft);
}

.evt-detail-header__title {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.evt-detail-header__desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
  max-width: 680px;
}

.evt-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.evt-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.evt-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.evt-detail-card {
  padding: 22px 24px;
}

.evt-detail-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.evt-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.evt-info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.evt-info-row dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.evt-info-row dt svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.evt-info-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  padding-left: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.evt-info-row dd a {
  color: var(--accent);
  text-decoration: none;
}

.evt-spots-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.evt-spots-badge--open  { background: #d1fae5; color: #065f46; }
.evt-spots-badge--full  { background: #fef2f2; color: #b91c1c; }

.evt-attachment-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Registration sidebar card */
.evt-reg-card {
  padding: 24px;
}

.evt-reg-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.evt-reg-card__desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.55;
}

.evt-reg-card__spots {
  margin: 0 0 16px;
}

.evt-reg-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 8px 0;
}

.evt-reg-status__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.evt-reg-status__desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.evt-reg-status--registered .evt-reg-status__title { color: #059669; }

@media (max-width: 768px) {
  .evt-card-grid     { grid-template-columns: 1fr; }
  .evt-detail-layout { grid-template-columns: 1fr; }
  .evt-detail-header { padding: 20px; }
  .evt-card__footer  { flex-direction: column; }
}

.svc-search-hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: -8px 0 12px;
}

.svc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.svc-dept-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.svc-dept-card__badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-dept-card__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}

.svc-dept-card__status--active {
  background: #d1fae5;
  color: #065f46;
}

.svc-dept-card__status--inactive {
  background: #f3f4f6;
  color: var(--ink-soft);
}

.svc-dept-card__name {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.svc-dept-card__name a {
  color: var(--ink);
  text-decoration: none;
}

.svc-dept-card__name a:hover {
  color: var(--accent);
}

.svc-dept-card__desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.svc-dept-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}

.svc-dept-card__meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.svc-dept-card__meta-row svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.svc-dept-card__meta-row a {
  color: var(--accent);
  text-decoration: none;
}

.svc-dept-card__meta-row--response {
  color: var(--ink);
}

.svc-dept-card__footer {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.ann-btn--sm {
  padding: 5px 14px;
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICE DIRECTORY — Detail page
═══════════════════════════════════════════════════════════════ */
.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.svc-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.svc-breadcrumb a:hover {
  text-decoration: underline;
}

.svc-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
}

.svc-detail-header__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-detail-header__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  align-self: flex-start;
}

.svc-detail-header__name {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: var(--ink);
}

.svc-detail-header__desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 620px;
  line-height: 1.6;
}

.svc-detail-header__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.svc-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.svc-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.svc-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.svc-detail-card {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.svc-contact-card {
  padding: 22px 24px;
}

.svc-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.svc-contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.svc-contact-row dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.svc-contact-row dt svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.svc-contact-row dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 18px;
}

.svc-contact-row dd a {
  color: var(--accent);
  text-decoration: none;
}

.svc-contact-row--highlight dd {
  color: var(--accent);
}

/* FAQ accordion */
.svc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.svc-faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.svc-faq-item__q {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  user-select: none;
}

.svc-faq-item__q::-webkit-details-marker { display: none; }

.svc-faq-item[open] .svc-faq-item__q {
  background: var(--surface-hover);
}

.svc-faq-item__a {
  padding: 10px 16px 14px;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .svc-card-grid {
    grid-template-columns: 1fr;
  }
  .svc-detail-layout {
    grid-template-columns: 1fr;
  }
  .svc-detail-header {
    flex-direction: column;
    gap: 16px;
  }
  .svc-dept-card__footer {
    flex-direction: column;
  }
}


/* ════════════════════════════════════════════
   FEEDBACK & EMPLOYEE VOICE
   ════════════════════════════════════════════ */

/* Two-column layout */
.fbk-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* Success banner */
.fbk-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.fbk-banner--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* LEFT — Form card */
.fbk-form-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fbk-form-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* Confidential notice strip */
.fbk-confidential-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: #78350f;
  margin-bottom: 12px;
}

/* Anonymous checkbox row */
.fbk-anon-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 6px;
  cursor: pointer;
  user-select: none;
}
.fbk-anon-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.fbk-anon-label__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.fbk-anon-label__hint {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* Form footer */
.fbk-form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.fbk-form-footer__note {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

/* RIGHT — Sidebar */
.fbk-sidebar {
  position: sticky;
  top: 20px;
}
.fbk-recent-card {
  padding: 20px 0 0;
}
.fbk-recent-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--border);
}
.fbk-recent-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.fbk-recent-card__count {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* Recent list */
.fbk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fbk-list-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.fbk-list-item:last-child {
  border-bottom: none;
}
.fbk-list-item:hover {
  background: var(--surface-hover, #f8f9fc);
}
.fbk-list-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.fbk-list-item__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.fbk-list-item__sender {
  font-weight: 600;
  color: var(--ink);
}
.fbk-list-item__dot {
  color: var(--ink-soft);
}
.fbk-list-item__type {
  color: var(--ink-soft);
  font-size: 0.75rem;
}
.fbk-list-item__subject {
  font-size: 0.8125rem;
  color: var(--ink);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fbk-list-item__date {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

/* Status chips */
.fbk-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.fbk-status--received {
  background: #eff6ff;
  color: #1e40af;
}
.fbk-status--review {
  background: #fef9c3;
  color: #854d0e;
}
.fbk-status--escalated {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.fbk-status--resolved {
  background: #ecfdf5;
  color: #065f46;
}
.fbk-status--closed {
  background: #f3f4f6;
  color: #6b7280;
}

/* Empty state */
.fbk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 900px) {
  .fbk-layout {
    grid-template-columns: 1fr;
  }
  .fbk-sidebar {
    position: static;
  }
}


/* ════════════════════════════════════════════
   MANAGEMENT DASHBOARD
   ════════════════════════════════════════════ */

/* Hero trailing info */
.dash-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.dash-as-of {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* KPI stat cards — auto-fit so they never overflow */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 14px;
}

.dash-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  min-width: 0;
}
.dash-kpi-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.dash-kpi-card__icon svg {
  width: 20px;
  height: 20px;
}
.dash-kpi-card__icon--blue   { background: #dbeafe; color: #1d4ed8; }
.dash-kpi-card__icon--amber  { background: #fef3c7; color: #d97706; }
.dash-kpi-card__icon--red    { background: #fee2e2; color: #dc2626; }
.dash-kpi-card__icon--teal   { background: #ccfbf1; color: #0d9488; }
.dash-kpi-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.dash-kpi-card__icon--green  { background: #dcfce7; color: #16a34a; }

.dash-kpi-card__body {
  min-width: 0;
  flex: 1;
}
.dash-kpi-card__label {
  font-size: 0.68rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-kpi-card__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}
.dash-kpi-card__sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.dash-kpi-card__na {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Main two-column grid — collapses at 860px */
.dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .dash-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dash-col-main,
.dash-col-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Panel */
.dash-panel {
  padding: 0;
}
.dash-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.dash-panel__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.dash-panel__link {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.dash-panel__link:hover { text-decoration: underline; }
.dash-panel__total {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.dash-empty {
  padding: 20px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
}

/* Ticket list */
.dash-tkt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-tkt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
  min-width: 0;
}
.dash-tkt-item:last-child { border-bottom: none; }
.dash-tkt-item:hover { background: var(--surface-hover, #f8f9fc); }

.dash-priority {
  width: 6px;
  height: 36px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dash-priority--urgent    { background: #ef4444; }
.dash-priority--important { background: #f59e0b; }
.dash-priority--normal    { background: #d1d5db; }

.dash-tkt-item__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.dash-tkt-item__title {
  font-size: 0.8375rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-tkt-item__meta {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Status badges */
.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-badge--submitted  { background: #eff6ff; color: #1d4ed8; }
.dash-badge--review     { background: #fef9c3; color: #854d0e; }
.dash-badge--approval   { background: #fce7f3; color: #9d174d; }
.dash-badge--progress   { background: #ecfdf5; color: #065f46; }
.dash-badge--done       { background: #f0fdf4; color: #15803d; }
.dash-badge--closed     { background: #f3f4f6; color: #6b7280; }

/* Feedback list */
.dash-fbk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-fbk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
  min-width: 0;
}
.dash-fbk-item:last-child { border-bottom: none; }
.dash-fbk-item:hover { background: var(--surface-hover, #f8f9fc); }
.dash-fbk-item__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.dash-fbk-item__title {
  font-size: 0.8375rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-fbk-item__meta {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0;
}
.dash-fbk-item__type {
  font-style: italic;
}

/* Breakdown bars */
.dash-bar-list {
  list-style: none;
  margin: 0;
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-bar-item__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.dash-bar-item__count {
  font-weight: 600;
  color: var(--ink-soft);
}
.dash-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}
/* Reuse badge colours for bar fills */
.dash-bar-fill.dash-badge--submitted  { background: #3b82f6; }
.dash-bar-fill.dash-badge--review     { background: #f59e0b; }
.dash-bar-fill.dash-badge--approval   { background: #ec4899; }
.dash-bar-fill.dash-badge--progress   { background: #10b981; }
.dash-bar-fill.dash-badge--done       { background: #22c55e; }
.dash-bar-fill.dash-badge--closed     { background: #9ca3af; }
.dash-bar-fill--bu                    { background: var(--accent); }
.dash-bar-fill--dept                  { background: #8b5cf6; }
.dash-bar-fill--cat                   { background: #0ea5e9; }

/* ── Spotlight stat cards (row 1) ───────────────────────────────────────── */
.dash-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.dash-spotlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.375rem;
}
.dash-spotlight-card__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-spotlight-card__icon svg { width: 1.375rem; height: 1.375rem; }
.dash-spotlight-card--blue  .dash-spotlight-card__icon { background: #eff6ff; color: #2563eb; }
.dash-spotlight-card--red   .dash-spotlight-card__icon { background: #fef2f2; color: #dc2626; }
.dash-spotlight-card--amber .dash-spotlight-card__icon { background: #fffbeb; color: #d97706; }
.dash-spotlight-card--green .dash-spotlight-card__icon { background: #f0fdf4; color: #16a34a; }
.dash-spotlight-card__body  { flex: 1; min-width: 0; }
.dash-spotlight-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: .15rem;
}
.dash-spotlight-card__unit  { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.dash-spotlight-card__label { font-size: .8125rem; font-weight: 600; color: var(--text-secondary); margin-top: .25rem; }
.dash-spotlight-card__sub   { font-size: .75rem; color: var(--text-muted, #9ca3af); margin-top: .125rem; }
.dash-spotlight-pct-bar     { height: 4px; background: #e5e7eb; border-radius: 99px; margin-top: .5rem; overflow: hidden; }
.dash-spotlight-pct-fill    { height: 100%; border-radius: 99px; transition: width .4s ease; }
.dash-spotlight-pct-fill--amber { background: #f59e0b; }
.dash-spotlight-pct-fill--green { background: #22c55e; }

/* ── 2-column equal grid ─────────────────────────────────────────────────── */
.dash-two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 860px) {
    .dash-two-col-grid { grid-template-columns: 1fr; }
}

/* ── Panel helpers ─────────────────────────────────────────────────────── */
.dash-panel__badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .175rem .6rem;
    border-radius: 99px;
    white-space: nowrap;
}
.dash-panel__badge--red  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.dash-panel__alert-dot {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #ef4444;
    margin-right: .375rem;
    flex-shrink: 0;
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.75); }
}
.dash-panel__link {
    font-size: .8125rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.dash-panel__link:hover { text-decoration: underline; }

/* ── Overdue acknowledgements table ──────────────────────────────────── */
.dash-overdue-table-wrap { overflow-x: auto; }
.dash-overdue-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
}
.dash-overdue-table th {
    text-align: left;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-secondary);
    padding: .4rem .5rem;
    border-bottom: 1px solid var(--border);
}
.dash-overdue-table td {
    padding: .5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}
.dash-overdue-table tbody tr:last-child td { border-bottom: none; }
.dash-overdue-table tbody tr:hover td { background: var(--surface-hover, #f9fafb); }
.dash-overdue-table__dept, .dash-overdue-table__bu { color: var(--text-secondary); }
.dash-num { text-align: right; }
.dash-overdue-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.dash-overdue-link:hover { text-decoration: underline; }
.dash-overdue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .4rem;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 700;
}
.dash-empty--success { color: #16a34a; font-weight: 500; }

/* ── Upcoming events list ─────────────────────────────────────────────── */
.dash-event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.dash-event-item {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
}
.dash-event-item:last-child { border-bottom: none; }
.dash-event-item__date {
    flex-shrink: 0;
    width: 2.75rem;
    text-align: center;
    background: var(--surface, #f8f9fb);
    border: 1px solid var(--border);
    border-radius: .5rem;
    padding: .25rem .375rem;
}
.dash-event-item__month { display: block; font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.dash-event-item__day   { display: block; font-size: 1.125rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.dash-event-item__body  { flex: 1; min-width: 0; }
.dash-event-item__title { font-size: .875rem; font-weight: 600; color: var(--text-primary); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-event-item__title a { color: inherit; text-decoration: none; }
.dash-event-item__title a:hover { color: var(--accent); }
.dash-event-item__meta  { font-size: .75rem; color: var(--text-secondary); margin: .125rem 0 0; }
.dash-event-item__spots { flex-shrink: 0; }
.dash-event-badge {
    font-size: .72rem;
    font-weight: 600;
    padding: .175rem .55rem;
    border-radius: 99px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}
.dash-event-badge--full { background: #fef2f2; color: #dc2626; border-color: #fecaca; }







