:root {
  --bs-body-font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --header-h: 70px;
  --bg-0: #f4f7f5;
  --bg-1: #ffffff;
  --ink-0: #13201a;
  --ink-1: #3c4d44;
  --line: #d6e1d9;
  --line-soft: #e5ece7;
  --brand-0: #0f8a5f;
  --brand-1: #066847;
  --warn: #f6a400;
  --danger: #d33b32;
  --radius: 16px;
  --surface-hero:
    radial-gradient(120% 140% at 90% 0%, rgba(60, 76, 92, 0.12) 0%, rgba(60, 76, 92, 0) 62%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  --shadow-soft: 0 10px 26px rgba(15, 29, 22, 0.07);
  --shadow-pop: 0 14px 30px rgba(15, 29, 22, 0.12);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.app-shell {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink-0);
  background:
    radial-gradient(1200px 500px at 95% -10%, rgba(15, 138, 95, 0.1), transparent 55%),
    radial-gradient(900px 440px at -10% 0%, rgba(6, 104, 71, 0.07), transparent 58%),
    var(--bg-0);
}

.app-inline-icon {
  display: inline-block;
  vertical-align: -0.12em;
  line-height: 1;
  flex: 0 0 auto;
  color: inherit;
}

.app-inline-icon-plus {
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url('/assets/icon/plus.svg') center / contain no-repeat;
  mask: url('/assets/icon/plus.svg') center / contain no-repeat;
}

.app-inline-icon-back {
  vertical-align: middle;
}

.app-btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.app-btn-with-icon .app-inline-icon-back {
  flex: 0 0 auto;
  margin-top: 1px;
}

.app-settings-tabs-wrap {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
  z-index: 1015;
}

.app-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.app-settings-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-1);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-settings-tab:hover,
.app-settings-tab:focus-visible {
  color: var(--ink-0);
  background: rgba(15, 138, 95, 0.08);
  text-decoration: none;
}

.app-settings-tab.is-active {
  background: linear-gradient(180deg, #1c8e64 0%, #0f7a55 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 138, 95, 0.22);
}

.app-settings-count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 138, 95, 0.1);
  color: var(--brand-1);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-nav {
  min-height: var(--header-h);
  background:
    radial-gradient(120% 220% at 100% 0%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(90deg, #1a3a2b 0%, #23523b 100%);
  box-shadow: 0 10px 20px rgba(12, 21, 17, 0.16);
}

.app-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.app-nav-btn {
  border-color: rgba(255, 255, 255, 0.45);
}

.app-nav-actions {
  min-height: 32px;
}

.app-nav-btn-attention {
  animation: app-notification-ring 1.8s ease-in-out infinite;
}

@keyframes app-notification-ring {
  0%, 100% {
    transform: rotate(0deg);
  }
  8% {
    transform: rotate(10deg);
  }
  16% {
    transform: rotate(-8deg);
  }
  24% {
    transform: rotate(6deg);
  }
  32% {
    transform: rotate(-4deg);
  }
  40% {
    transform: rotate(0deg);
  }
}

.app-nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  height: 32px;
}

.app-nav-logout-form {
  display: flex;
  align-items: center;
}

.app-main {
  min-height: calc(100vh - var(--header-h));
}

.app-layout {
  position: relative;
  display: flex;
  max-width: none;
  min-height: calc(100vh - var(--header-h));
  padding-left: 0;
  padding-right: 0;
}

.app-sidebar-col {
  width: 260px;
  min-width: 260px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(130% 100% at 0% 0%, rgba(15, 138, 95, 0.06) 0%, rgba(15, 138, 95, 0) 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(243, 250, 246, 0.92) 100%);
  transition: width 0.24s ease, min-width 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
  z-index: 1035;
}

.app-sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans", "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.app-sidebar-main {
  flex: 1 1 auto;
}

.app-sidebar-footer {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.app-sidebar-profile-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding-left: 0.72rem;
  padding-right: 0.72rem;
  padding-top: 0.58rem;
  padding-bottom: 0.58rem;
}

.app-sidebar-profile-avatar,
.app-sidebar-profile-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
}

.app-sidebar-profile-avatar-stack {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-sidebar-profile-avatar {
  object-fit: cover;
  border: 1px solid #d5e4db;
}

.app-sidebar-profile-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eef5f1;
  color: #254739;
  border: 1px solid #d5e4db;
}

.app-sidebar-profile-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  font-weight: 600;
}

.app-sidebar-backdrop {
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  border: 0;
  background: rgba(9, 18, 14, 0.42);
  z-index: 1030;
}

.notification-panel-col {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(360px, calc(100vw - 1rem));
  height: calc(100vh - var(--header-h));
  transform: translateX(100%);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  z-index: 1042;
  pointer-events: none;
}

.notification-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  padding: 1rem 1rem 0.85rem;
}

.notification-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.notification-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-top: 0.75rem;
}

.notification-panel-foot {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.notification-panel-backdrop {
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  border: 0;
  background: rgba(9, 18, 14, 0.24);
  z-index: 1041;
}

.app-feedback-modal {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 29, 22, 0.18);
}

.app-feedback-modal-success {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(15, 138, 95, 0.14) 0%, rgba(15, 138, 95, 0) 48%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
}

.app-feedback-modal-danger {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(211, 59, 50, 0.12) 0%, rgba(211, 59, 50, 0) 48%),
    linear-gradient(180deg, #ffffff 0%, #fdf8f8 100%);
}

.app-feedback-modal .modal-header,
.app-feedback-modal .modal-body,
.app-feedback-modal .modal-footer {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.app-feedback-modal-eyebrow {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-bottom: 0.35rem;
}

.app-toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: 16px;
  z-index: 1080;
  width: min(420px, calc(100vw - 32px));
}

.app-flash-toast {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 29, 22, 0.14);
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: app-flash-toast-in 0.24s ease;
}

.app-flash-toast.is-hiding {
  animation: app-flash-toast-out 0.22s ease forwards;
}

.app-flash-toast-accent {
  width: 8px;
  flex: 0 0 8px;
}

.app-flash-toast-success .app-flash-toast-accent {
  background: linear-gradient(180deg, #0f8a5f 0%, #37b57f 100%);
}

.app-flash-toast-danger .app-flash-toast-accent {
  background: linear-gradient(180deg, #d33b32 0%, #ef746b 100%);
}

.app-flash-toast-warning .app-flash-toast-accent {
  background: linear-gradient(180deg, #f6a400 0%, #ffca55 100%);
}

.app-flash-toast-body {
  flex: 1 1 auto;
  padding: 0.95rem 0.95rem 1rem 1rem;
}

.app-flash-toast-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-bottom: 0.28rem;
}

.app-flash-toast-message {
  color: var(--ink-0);
  line-height: 1.45;
  font-weight: 600;
}

.app-flash-toast-close {
  margin: 0.8rem 0.8rem 0 0;
  opacity: 0.55;
}

@keyframes app-flash-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-flash-toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@media (max-width: 991.98px) {
  .app-toast-stack {
    top: 14px;
  }
}

body.notifications-open .notification-panel-col {
  transform: translateX(0);
  pointer-events: auto;
}

body.notifications-open .notification-panel-backdrop {
  display: block;
}

.app-sidebar-toggle {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-user-avatar-link {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-user-avatar-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-user-avatar-img.is-hidden,
.app-user-avatar-fallback.is-hidden,
.app-sidebar-profile-avatar.is-hidden,
.app-sidebar-profile-initial.is-hidden,
.profile-avatar-img.is-hidden,
.profile-avatar-placeholder.is-hidden {
  display: none;
}

.app-sidebar-section + .app-sidebar-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.app-sidebar-title {
  padding: 0 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
  font-weight: 700;
}

.app-sidebar-link {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 9px;
  color: var(--ink-0);
  text-decoration: none;
  font-weight: 600;
}

.app-sidebar-link:hover {
  background: #eef7f2;
}

.app-sidebar-link.is-active {
  background: linear-gradient(90deg, rgba(15, 138, 95, 0.16), rgba(15, 138, 95, 0.06));
  color: #0e5c40;
}

.app-sidebar-parent {
  padding: 0.45rem 0.55rem 0.25rem;
  color: var(--ink-1);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-sidebar-parent.is-active {
  color: #0e5c40;
}

.app-sidebar-sub {
  margin: 0 0 0.25rem 0.4rem;
  padding-left: 0.35rem;
  border-left: 2px solid #d8e7de;
}

.app-sidebar-sub-link {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  color: var(--ink-0);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.app-sidebar-sub-link:hover {
  background: #eef7f2;
}

.app-sidebar-sub-link.is-active {
  background: linear-gradient(90deg, rgba(15, 138, 95, 0.16), rgba(15, 138, 95, 0.06));
  color: #0e5c40;
}

.app-main-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: calc(100vh - var(--header-h));
  transition: padding-left 0.2s ease;
}

body.sidebar-collapsed .app-sidebar-col {
  width: 0;
  min-width: 0;
  border-right-color: transparent;
  overflow: hidden;
}

body.sidebar-collapsed .app-sidebar {
  opacity: 0;
  pointer-events: none;
}

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft) !important;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.app-main-content .card:hover {
  border-color: #cfdad3;
  box-shadow: var(--shadow-pop) !important;
}

.card .card-body {
  color: var(--ink-0);
}

.login-wrap {
  min-height: calc(100vh - 170px);
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.login-card {
  overflow: hidden;
}

.login-panel {
  background:
    radial-gradient(330px 200px at 20% -20%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(145deg, #0f8a5f 0%, #0a6f4d 100%);
  color: #ffffff;
}

.login-panel .text-muted {
  color: rgba(255, 255, 255, 0.82) !important;
}

.login-panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.login-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  width: fit-content;
}

.login-form-wrap {
  max-width: 420px;
}

.login-form .form-label {
  font-weight: 600;
  color: var(--ink-1);
}

.login-form .form-control,
.login-form .form-control:focus,
.login-form .btn,
.login-form button,
.login-form input {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink-0);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
}

.table {
  --bs-table-bg: transparent;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  border-bottom-width: 1px;
  border-color: var(--line);
  color: var(--ink-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.table > :not(caption) > * > * {
  border-color: var(--line);
  padding: 0.75rem 0.9rem;
  vertical-align: middle;
}

.table > tbody > tr:nth-child(even) > * {
  background: rgba(255, 255, 255, 0.66);
}

.table.table-sm > :not(caption) > * > * {
  padding: 0.62rem 0.8rem;
}

.table-hover > tbody > tr:hover > * {
  background-color: #f0f7f3;
}

.table-responsive {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

/* When a table sits directly inside a card, the card owns the top corners. */
.card > .table-responsive {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
}

.btn-primary {
  --bs-btn-bg: var(--brand-0);
  --bs-btn-border-color: var(--brand-0);
  --bs-btn-hover-bg: var(--brand-1);
  --bs-btn-hover-border-color: var(--brand-1);
  --bs-btn-active-bg: var(--brand-1);
  --bs-btn-active-border-color: var(--brand-1);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-outline-primary {
  --bs-btn-color: var(--brand-0);
  --bs-btn-border-color: var(--brand-0);
  --bs-btn-hover-bg: var(--brand-0);
  --bs-btn-hover-border-color: var(--brand-0);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-outline-secondary,
.btn-outline-danger {
  border-radius: 12px;
}

.btn {
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.form-control,
.form-select,
textarea.form-control {
  border-color: var(--line);
  border-radius: 12px;
  background: #fbfdfc;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: #7ec4aa;
  box-shadow: 0 0 0 0.2rem rgba(15, 138, 95, 0.16);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.alert {
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 29, 22, 0.05);
}

.alert-success {
  border-color: #bde4d0;
  background-color: #eaf8f0;
  color: #12553a;
}

.alert-danger {
  border-color: #efc5c2;
  background-color: #fbeeee;
  color: #6e201b;
}

.alert-info {
  border-color: #cde6ef;
  background-color: #edf8fc;
  color: #1e4e61;
}

.progress {
  background-color: #deebe4;
  border-radius: 999px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--brand-0) 0%, #26b580 100%);
}

.dash-hero {
  background: var(--surface-hero);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
}

.page-hero {
  background: var(--surface-hero);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
}

.dash-actions {
  max-width: 48%;
}

.dash-quick-bar {
  background: var(--surface-hero);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
}

.dash-cta-row .dash-cta-btn {
  border-radius: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.72rem;
}

.dash-cta-primary {
  box-shadow: 0 8px 16px rgba(15, 138, 95, 0.26);
}

.dash-cta-secondary {
  border-width: 1px;
  background: #ffffff;
}

.dash-cta-row .dash-cta-btn:hover {
  transform: translateY(-1px);
}

.dash-stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}

.dash-stat-card .h3 {
  font-weight: 700;
}

.dash-need-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.dash-link {
  color: var(--ink-0);
  text-decoration: none;
  font-weight: 600;
}

.dash-link:hover {
  text-decoration: underline;
}

.dash-detail-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-soft);
}

.dash-detail-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.dash-detail-item:last-child {
  padding-bottom: 0;
}

.dash-detail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: #eef2ef;
  color: var(--ink-1);
}

.dash-detail-chip.is-success {
  background: rgba(15, 138, 95, 0.12);
  color: var(--brand-1);
}

.dash-detail-chip.is-warning {
  background: rgba(246, 164, 0, 0.18);
  color: #7b5600;
}

.dash-detail-chip.is-danger {
  background: rgba(211, 59, 50, 0.12);
  color: #97271f;
}

.dash-empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 1rem;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.72);
}

.x-small {
  font-size: 0.72rem;
}

.admin-users-hero {
  background: var(--surface-hero);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
}

.admin-users-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-users-stat-chip {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #dbe4de;
  background: #f4f8f6;
  font-size: 0.78rem;
  color: var(--ink-1);
}

.admin-users-table-head {
  background: linear-gradient(90deg, rgba(247, 252, 249, 1), rgba(241, 250, 245, 1));
}

.admin-users-actions .btn {
  margin-left: 0.35rem;
}

.manufacturers-hero {
  background: var(--surface-hero);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
}

.manufacturers-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.manufacturers-stat-chip {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #dbe4de;
  background: #f4f8f6;
  font-size: 0.78rem;
  color: var(--ink-1);
}

.manufacturers-table-head {
  background: linear-gradient(90deg, rgba(247, 252, 249, 1), rgba(241, 250, 245, 1));
}

.manufacturers-actions .btn {
  margin-left: 0.3rem;
  border-radius: 999px;
}

.manufacturers-tools .btn {
  border-radius: 999px;
}

.manufacturers-website {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.health-hero {
  background: var(--surface-hero);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.08rem;
}

.manufacturers-card {
  border-radius: 16px;
  border-color: var(--line-soft);
}

.manufacturers-card-body {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 252, 251, 0.95) 100%);
}

.manufacturers-name {
  letter-spacing: 0.01em;
}

.manufacturers-meta-line {
  font-size: 0.78rem;
}

.manufacturers-empty {
  border-radius: 14px;
  border: 1px dashed #d4dde6;
  background: #fbfdff;
}

.health-stat-card .h3 {
  font-weight: 700;
}

.health-key {
  width: 280px;
}

.health-value-text {
  font-weight: 500;
}

.health-value-ok {
  color: #166247;
}

.health-value-warn {
  color: #7a5a00;
}

.health-value-fail {
  color: #8a1e17;
}

.health-log-card {
  overflow: hidden;
}

.health-log-pre {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbf9;
  white-space: pre-wrap;
  max-height: 360px;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.4;
}

.intake-sub-shell {
  max-width: 1120px;
}

.intake-sub-hero h1 {
  letter-spacing: 0.01em;
}

.intake-history-form {
  margin-top: 0.55rem;
}

.intake-history-select {
  min-width: 320px;
}

.intake-group-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.intake-group-title {
  letter-spacing: 0.01em;
}

.intake-count-badge {
  font-weight: 700;
}

.intake-group-head {
  background: linear-gradient(90deg, rgba(247, 252, 249, 1), rgba(241, 250, 245, 1));
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  padding: 0.82rem 1.1rem !important;
}

.intake-sub-table > :not(caption) > * > * {
  padding: 0.82rem 1.2rem;
}

.intake-sub-table > :not(caption) > * > *:first-child {
  padding-left: 1.3rem;
}

.intake-sub-table > :not(caption) > * > *:last-child {
  padding-right: 1.3rem;
}

.intake-sub-field-cell {
  width: 340px;
}

.intake-sub-note {
  opacity: 0.88;
}

.stage-dropzone {
  min-height: 220px;
  padding: 0.45rem;
  border: 1px dashed #bfd4c8;
  border-radius: 12px;
  background: #f8fcfa;
  gap: 0.45rem;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-content: flex-start;
}

.stage-item {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  border: 1px solid #cde2d6;
  border-radius: 999px !important;
  background: #ffffff;
  color: var(--ink-0);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.3rem 0.65rem;
  margin: 0;
  user-select: none;
  cursor: grab;
}

.stage-dropzone .stage-item.list-group-item {
  width: auto;
  border-radius: 999px !important;
}

.stage-item:hover {
  border-color: #a8cdb9;
  background: #f3faf6;
}

.stage-item:active {
  cursor: grabbing;
}

tbody[data-reorder-url] tr[data-question-id] {
  cursor: move;
}

.questions-key-cell code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.q-col-handle {
  width: 44px;
}

.q-col-order {
  width: 70px;
}

.q-col-key {
  width: 120px;
}

.q-col-audience {
  width: 280px;
}

.q-col-type {
  width: 120px;
}

.q-col-short {
  width: 90px;
}

.q-col-vendor {
  width: 120px;
}

.q-col-actions {
  width: 220px;
}

.tag-chip {
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  display: inline-block;
  font-weight: 600;
}

.tag-chip-p0 {
  background-color: #e8f7ee;
  color: #145a32;
  border: 1px solid #8fd0a5;
}

.tag-chip-p1 {
  background-color: #eaf2ff;
  color: #1b4f9a;
  border: 1px solid #9ebff7;
}

.tag-chip-p2 {
  background-color: #fff2e6;
  color: #8a4b08;
  border: 1px solid #f1bf8d;
}

.tag-chip-p3 {
  background-color: #f4ebff;
  color: #5b2c83;
  border: 1px solid #c8a8f2;
}

.tag-chip-p4 {
  background-color: #e8f6fb;
  color: #0f4c5c;
  border: 1px solid #8ecfdf;
}

.tag-chip-p5 {
  background-color: #fff6dd;
  color: #7a5a00;
  border: 1px solid #e4ce87;
}

.is-hidden {
  display: none !important;
}

.tags-col-order {
  width: 90px;
}

.tags-col-key {
  width: 220px;
}

.tags-col-count {
  width: 120px;
}

.tags-col-status {
  width: 120px;
}

.tags-col-actions {
  width: 260px;
}

.users-col-role {
  width: 140px;
}

.users-col-status {
  width: 140px;
}

.users-col-actions {
  width: 460px;
}

.taxonomy-col-order {
  width: 100px;
}

.taxonomy-col-categories {
  width: 130px;
}

.taxonomy-col-status {
  width: 120px;
}

.taxonomy-col-action {
  width: 140px;
}

.taxonomy-col-section {
  width: 260px;
}

.stages-col-handle {
  width: 30px;
  padding-left: 0.45rem !important;
  padding-right: 0.45rem !important;
}

.stages-col-id {
  width: 80px;
}

.stages-col-key {
  width: 180px;
}

.stages-col-label {
  width: 220px;
}

.stages-col-status {
  width: 120px;
}

.stages-col-usage {
  width: 100px;
}

.stages-col-created {
  width: 180px;
}

.stages-col-updated {
  width: 180px;
}

.stages-col-actions {
  width: 250px;
}

.intake-public-shell {
  max-width: 860px;
}

.intake-public-group-head {
  padding: 0.45rem 0.2rem 0.35rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-soft);
}

.intake-public-group-title {
  letter-spacing: 0.01em;
}

.intake-public-group-body {
  padding: 0.2rem 0.2rem 0.1rem;
}

.eval-readonly-label {
  width: 35%;
}

.eval-exec-recipient-select {
  width: 280px;
}

.evaluation-hero {
  padding: 1.1rem 1.15rem;
}

.evaluation-hero-meta {
  margin-top: 0.2rem;
}

.evaluation-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #f5f7f5;
  border: 1px solid #dce7df;
  color: #51605a;
}

.evaluation-meta-pill strong {
  color: #18392b;
}

.evaluation-meta-pill-stage {
  background: #e8f2ec;
  border-color: #c9ddd0;
}

.evaluation-shell-card,
.evaluation-workspace-card {
  border-color: #dde7e0;
  overflow: hidden;
}

.evaluation-shell-body,
.evaluation-workspace-body {
  padding: 1.15rem 1.2rem;
}

.evaluation-workspace-head {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #ebf0ec;
}

.evaluation-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.evaluation-mode-btn {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.evaluation-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.evaluation-filter-card {
  padding: 0.9rem 1rem;
  border: 1px solid #e7eeea;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(249, 251, 249, 0.98) 0%, rgba(244, 247, 245, 0.94) 100%);
}

.evaluation-section-tabs {
  border-bottom: none;
  gap: 0.45rem;
}

.evaluation-section-tabs .nav-link {
  border: 1px solid #dbe7df;
  border-radius: 999px;
  color: #415148;
  background: #fff;
  padding: 0.42rem 0.85rem;
}

.evaluation-section-tabs .nav-link.active,
.evaluation-section-tabs .nav-link:hover {
  border-color: #153f2d;
  background: #153f2d;
  color: #fff;
}

.evaluation-category-pills .btn {
  border-radius: 999px;
}

.workflow-steps {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.workflow-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.42rem 1.2rem 0.42rem 1.45rem;
  border: none;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  color: #212529;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 0.28rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.workflow-step:first-child {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-left: 1.2rem;
}

.workflow-step:last-child {
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 10px 50%);
}

.workflow-step:hover {
  background: linear-gradient(180deg, #f1f3f5 0%, #dee2e6 100%);
  color: #212529;
}

.workflow-step.is-active {
  background: linear-gradient(180deg, #343a40 0%, #212529 100%);
  color: #fff;
}

.audit-nav-shell {
  border: 1px solid #dce5df;
  border-radius: 12px;
  background: #fff;
  padding: 0.48rem 0.64rem;
}

.audit-nav-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.audit-summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  border: 1px solid #dbe7e0;
  background: #f5faf7;
  color: #345347;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.audit-table.table-sm > :not(caption) > * > * {
  padding: 0.46rem 0.62rem;
}

.audit-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.audit-table {
  width: max-content;
  min-width: 860px;
}

.audit-mobile-scroll-hint {
  padding-inline: 0.2rem;
}

.audit-pagination .pagination {
  gap: 0.22rem;
}

.audit-pagination .page-link {
  border-radius: 8px;
  border: 1px solid #d7e4dd;
  color: #1e4f3b;
  background: #fff;
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
  padding: 0.24rem 0.52rem;
  line-height: 1.2;
}

.audit-pagination .page-item.active .page-link {
  background: #0f8a5f;
  border-color: #0f8a5f;
  color: #fff;
  box-shadow: none;
}

.audit-pagination .page-item.disabled .page-link {
  color: #7d8f86;
  background: #f8fbf9;
  border-color: #e1e9e4;
}

.audit-col-id {
  width: 74px;
}

.audit-col-event {
  width: 200px;
}

.audit-col-user {
  width: 78px;
}

.audit-col-ip {
  width: 130px;
}

.audit-col-email {
  width: 190px;
}

.audit-col-at {
  width: 160px;
}

.onboarding-progress-track {
  height: 10px;
}

.print-exec-page {
  font-family: Arial, sans-serif;
  margin: 24px;
  color: #111;
  background: #fff;
}

.print-exec-page h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.print-exec-page h2 {
  margin: 18px 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.print-exec-meta {
  font-size: 13px;
}

.print-exec-muted {
  color: #666;
  font-size: 12px;
}

.print-exec-box {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  background: #fafafa;
  white-space: pre-wrap;
}

.print-exec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.print-exec-history {
  border-left: 3px solid #ddd;
  padding-left: 10px;
  margin: 10px 0;
}

.print-exec-page hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 14px 0;
}

.print-exec-actions {
  margin-bottom: 14px;
}

.print-exec-btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  font-size: 13px;
}

.profile-meta-item + .profile-meta-item {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
}

.profile-hero {
  padding: 1.05rem 1.1rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.23rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #dbe7e0;
  background: #f5faf7;
  color: #2b4f41;
  font-size: 0.78rem;
  font-weight: 600;
}

.profile-card .card-body {
  padding: 1rem 1.05rem;
}

.profile-card-title {
  letter-spacing: 0.01em;
}

.profile-block + .profile-block {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.85rem;
}

.profile-block-title {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 0.45rem;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
}

.profile-toggle-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  min-height: 100%;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
}

.profile-toggle-card .form-check-input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.profile-toggle-title {
  display: block;
  font-weight: 700;
  color: var(--ink-0);
  margin-bottom: 0.12rem;
}

.profile-toggle-help {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-1);
}

.profile-activity-list {
  display: grid;
  gap: 0.7rem;
}

.profile-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fbfdfc;
}

.profile-activity-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-0);
}

.profile-activity-value {
  text-align: right;
  font-size: 0.84rem;
  color: var(--ink-1);
}

.profile-password-tools .btn {
  min-width: 92px;
}

.profile-avatar-wrap {
  width: 96px;
  height: 96px;
  position: relative;
}

.profile-avatar-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #dce7e1;
  display: block;
}

.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid #dce7e1;
  color: #214436;
  background: linear-gradient(180deg, #f7fbf9 0%, #eef6f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-avatar-form {
  width: fit-content;
}

.profile-avatar-trigger {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #c8d8cf;
  background: #ffffff;
  color: #1f4a39;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(16, 34, 26, 0.16);
}

.profile-avatar-trigger:hover {
  background: #f3faf6;
}

@media (max-width: 768px) {
  .app-nav .btn {
    padding-inline: 0.45rem;
  }

  .app-main {
    min-height: auto;
  }

  .app-main-content {
    min-height: auto;
  }

  .profile-activity-item {
    flex-direction: column;
    gap: 0.35rem;
  }

  .profile-activity-value {
    text-align: left;
  }

  .table > :not(caption) > * > * {
    padding: 0.6rem 0.7rem;
  }

  .audit-table-wrap {
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
  }

  .audit-table {
    min-width: 980px;
  }

  .dash-hero {
    flex-direction: column;
    gap: 0.75rem;
  }

  .dash-actions {
    max-width: 100%;
    text-align: left !important;
  }

  .dash-quick-bar {
    padding: 1rem 0.95rem;
  }

  .admin-users-hero {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.65rem;
  }

  .admin-users-actions .btn {
    margin-top: 0.35rem;
  }

  .admin-users-stats {
    gap: 0.35rem;
  }

  .manufacturers-hero {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.65rem;
  }

  .manufacturers-stats {
    gap: 0.35rem;
  }

  .manufacturers-actions .btn {
    margin-top: 0.35rem;
  }

  .manufacturers-tools {
    width: 100%;
  }

  .manufacturers-website {
    max-width: 180px;
  }

  .health-hero {
    padding: 0.8rem 0.9rem;
  }

  .health-key {
    width: auto;
  }

  .intake-history-select {
    min-width: 0;
    width: 100%;
    max-width: none !important;
  }

  .workflow-steps {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .evaluation-filter-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    justify-content: flex-start;
    width: 100%;
    clip-path: none;
    border-radius: 0.35rem;
    padding-left: 1rem;
  }

  .intake-history-form .btn {
    width: 100%;
  }

  .intake-public-group-head,
  .intake-public-group-body {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }

  .login-wrap {
    min-height: auto;
    padding-top: 0.6rem;
    padding-bottom: 0;
  }

  .login-form-wrap {
    max-width: none;
  }
}

@media print {
  .print-exec-actions {
    display: none;
  }

  .print-exec-page {
    margin: 0.5in;
  }
}

@media (max-width: 991.98px) {
  .app-layout {
    display: block;
    min-height: auto;
  }

  .app-sidebar-col {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(300px, 84vw);
    min-width: min(300px, 84vw);
    transform: translateX(-100%);
    box-shadow: none;
  }

  .app-main-content {
    min-height: auto;
  }

  body.sidebar-collapsed .app-sidebar-col {
    width: min(300px, 84vw);
    min-width: min(300px, 84vw);
    border-right-color: var(--line);
    overflow: visible;
  }

  body.sidebar-collapsed .app-sidebar {
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-open .app-sidebar-col {
    transform: translateX(0);
    box-shadow: 18px 0 36px rgba(14, 27, 20, 0.22);
  }

  body.sidebar-open .app-sidebar-backdrop {
    display: block;
  }
}
