/* LSEA UI template adaptation layer. Source reference: UI-Design/. */
:root {
  --ui-bg: #f6f8fb;
  --ui-panel: #ffffff;
  --ui-panel-soft: #f8fafc;
  --ui-text: var(--lsea-text);
  --ui-heading: #172033;
  --ui-muted: #667085;
  --ui-primary: var(--lsea-primary);
  --ui-primary-2: var(--lsea-blue);
  --ui-accent: var(--lsea-accent);
  --ui-border: #e5e7eb;
  --ui-border-strong: #d8dee8;
  --ui-sidebar: #ffffff;
  --ui-text-soft: #94a3b8;
  --ui-success: #166534;
  --ui-success-soft: #dcfce7;
  --ui-warning: #92400e;
  --ui-warning-soft: #fef3c7;
  --ui-danger: #991b1b;
  --ui-danger-soft: #fee2e2;
  --ui-info: #1e40af;
  --ui-info-soft: #dbeafe;
  --ui-shadow-sm: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.06);
  --ui-shadow-md: 0 1rem 2.25rem rgba(15, 23, 42, 0.1);
  --ui-radius: 0.5rem;
  --ui-radius-sm: 0.375rem;
  --ui-sidebar-width: 16.25rem;
  --ui-sidebar-collapsed: 4.75rem;
  --ui-topbar-height: 4rem;
  --ui-font-ui: "Inter", "Noto Sans Myanmar", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-font-display: "Inter", "Noto Sans Myanmar", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

body {
  color: var(--ui-text);
  background: var(--ui-bg);
  font-family: var(--ui-font-ui);
  letter-spacing: 0;
}

code,
kbd,
samp,
pre,
.font-monospace {
  font-family: var(--ui-font-mono);
}

a {
  color: var(--ui-primary);
  text-decoration: none;
}

a:hover {
  color: var(--ui-primary-2);
}

.btn,
.form-control,
.form-select,
.card,
.dropdown-menu,
.alert {
  border-radius: var(--ui-radius-sm);
}

.btn {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
}

.btn-primary,
.bg-primary {
  background-color: var(--ui-primary) !important;
  border-color: var(--ui-primary) !important;
}

.text-primary,
.link-primary {
  color: var(--ui-primary) !important;
}

.border-primary {
  border-color: rgba(2, 78, 140, 0.28) !important;
}

.bg-primary.bg-opacity-10,
.bg-primary-subtle {
  background-color: rgba(2, 78, 140, 0.1) !important;
}

.lsea-app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(2, 78, 140, 0.05), rgba(2, 78, 140, 0) 18rem),
    var(--ui-bg);
}

.lsea-main {
  min-height: 100vh;
  transition: margin-left 180ms ease;
}

.lsea-content {
  width: 100%;
  padding: 5.25rem 1rem 1.25rem;
}

.admin-shell .lsea-main {
  margin-left: var(--ui-sidebar-width);
}

.admin-shell.sidebar-collapsed .lsea-main {
  margin-left: var(--ui-sidebar-collapsed);
}

.admin-shell .lsea-content {
  padding: 5.25rem 1rem 1.5rem;
}

.member-shell .lsea-content {
  max-width: 1360px;
  margin: 0 auto;
}

.lsea-overlay {
  position: fixed;
  inset: 0;
  z-index: 1029;
  display: none;
  background: rgba(15, 23, 42, 0.48);
}

.lsea-overlay.show {
  display: block;
}

.lsea-topbar,
.portal-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1030;
  min-height: var(--ui-topbar-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: 0 0.35rem 1.2rem rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
}

.lsea-topbar {
  left: var(--ui-sidebar-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  transition: left 180ms ease;
}

.admin-shell.sidebar-collapsed .lsea-topbar {
  left: var(--ui-sidebar-collapsed);
}

.portal-header {
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
}

.topbar-left,
.topbar-actions,
.portal-actions,
.portal-nav,
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-title {
  min-width: 0;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ui-heading);
  text-decoration: none;
  min-width: 0;
}

.topbar-brand .brand-logo {
  width: 2.2rem;
  height: 2.2rem;
}

.topbar-brand-text {
  display: block;
  color: var(--ui-heading);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
}

.topbar-title span,
.page-kicker,
.side-nav-label {
  display: block;
  color: var(--ui-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-title strong {
  display: block;
  color: var(--ui-heading);
  font-size: 0.95rem;
  line-height: 1.1;
}

.icon-button,
.notification-button,
.topbar-toggle,
.row-icon-action,
.table-pager button {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel);
  color: var(--ui-heading);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover,
.notification-button:hover,
.topbar-toggle:hover,
.row-icon-action:hover,
.table-pager button:hover:not(:disabled) {
  border-color: rgba(2, 78, 140, 0.24);
  background: rgba(2, 78, 140, 0.08);
  color: var(--ui-primary);
}

.topbar-toggle {
  cursor: pointer;
}

.mobile-toggle {
  display: inline-flex;
}

.desktop-toggle {
  display: none;
}

.admin-search {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-width: 15rem;
  max-width: 24rem;
  flex: 1;
  height: 2.5rem;
  padding: 0 0.8rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel-soft);
  color: var(--ui-muted);
}

.admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ui-heading);
  font: inherit;
  font-size: 0.86rem;
}

.profile-chip,
.admin-profile-button {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.55rem 0.25rem 0.3rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel);
  color: var(--ui-heading);
}

.profile-chip:hover,
.admin-profile-button:hover {
  border-color: rgba(2, 78, 140, 0.24);
  color: var(--ui-primary);
}

.profile-avatar,
.table-avatar,
.avatar {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ui-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.profile-copy {
  display: none;
  line-height: 1.1;
}

.profile-copy strong,
.admin-user strong {
  display: block;
  color: var(--ui-heading);
  font-size: 0.8rem;
}

.profile-copy small,
.admin-user small {
  color: var(--ui-muted);
  font-size: 0.68rem;
}

.notification-button {
  position: relative;
}

.notification-button span {
  position: absolute;
  top: -0.35rem;
  right: -0.3rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--lsea-danger);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.05rem;
}

.notification-menu {
  width: min(21rem, calc(100vw - 2rem));
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-md);
}

.notification-menu .dropdown-header {
  color: var(--ui-heading);
  font-weight: 800;
}

.notification-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--ui-border);
}

.notification-item p {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.84rem;
  font-weight: 700;
}

.notification-item small {
  color: var(--ui-muted);
}

.lsea-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1031;
  width: var(--ui-sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--ui-sidebar);
  border-right: 1px solid var(--ui-border);
  transform: translateX(-100%);
  transition: width 180ms ease, transform 180ms ease;
}

.lsea-sidebar.mobile-show {
  transform: translateX(0);
  box-shadow: var(--ui-shadow-md);
}

.admin-shell.sidebar-collapsed .lsea-sidebar {
  width: var(--ui-sidebar-collapsed);
}

.logo-area,
.admin-brand {
  min-height: var(--ui-topbar-height);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-heading);
}

.logo-area img,
.admin-brand img,
.portal-brand img {
  display: block;
  max-width: 100%;
}

.logo-text,
.admin-brand-text {
  min-width: 0;
}

.admin-brand-text strong,
.portal-brand-text strong {
  display: block;
  color: var(--ui-heading);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.admin-brand-text small,
.portal-brand-text small {
  display: block;
  color: var(--ui-muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.admin-side-nav {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

.admin-side-nav a,
.portal-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ui-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-side-nav a {
  min-height: 2.6rem;
  margin-bottom: 0.2rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--ui-radius-sm);
}

.admin-side-nav a i {
  width: 1.1rem;
  text-align: center;
  color: inherit;
}

.admin-side-nav a:hover,
.admin-side-nav a.active,
.portal-nav a:hover,
.portal-nav a.active {
  background: rgba(2, 78, 140, 0.09);
  color: var(--ui-primary);
}

.admin-side-nav a.active {
  box-shadow: inset 3px 0 0 var(--ui-accent);
}

.admin-side-nav em {
  margin-left: auto;
  min-width: 1.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(2, 78, 140, 0.1);
  color: var(--ui-primary);
  font-size: 0.65rem;
  font-style: normal;
  text-align: center;
}

.admin-side-nav em.danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--lsea-danger);
}

.side-nav-label {
  padding: 1rem 0.7rem 0.4rem;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem;
  padding: 0.7rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-panel-soft);
}

.admin-shell.sidebar-collapsed .admin-brand-text,
.admin-shell.sidebar-collapsed .side-nav-label,
.admin-shell.sidebar-collapsed .admin-side-nav span,
.admin-shell.sidebar-collapsed .admin-side-nav em,
.admin-shell.sidebar-collapsed .admin-user span,
.admin-shell.sidebar-collapsed .admin-user > i,
.admin-shell.sidebar-collapsed .logo-text {
  display: none;
}

.admin-shell.sidebar-collapsed .admin-side-nav a {
  justify-content: center;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ui-heading);
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-primary);
  color: #ffffff;
  font-weight: 900;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ui-accent);
}

.portal-nav {
  display: none;
  margin-left: 0.5rem;
}

.portal-nav a {
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--ui-radius-sm);
}

.portal-header-spacer {
  flex: 1;
}

.portal-actions .btn {
  display: none;
}

.work-surface,
.portal-panel,
.admin-panel,
.license-card,
.metric-card,
.lsea-card {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow-sm);
}

.work-surface,
.portal-panel,
.admin-panel,
.lsea-card {
  padding: 1rem;
}

.work-surface.narrow {
  max-width: 42rem;
  margin-inline: auto;
}

.page-shell,
.admin-dashboard,
.portal-page {
  display: grid;
  gap: 1rem;
}

.page-header,
.admin-page-header,
.portal-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow-sm);
}

.page-header h1,
.admin-page-header h1,
.portal-hero h1 {
  margin: 0.2rem 0;
  color: var(--ui-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}

.page-header p,
.admin-page-header p,
.portal-hero p,
.surface-header p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 0.9rem;
}

.admin-toolbar,
.portal-hero-actions,
.page-actions,
.admin-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-metric-grid,
.dashboard-grid,
.member-status-strip,
.quick-action-grid,
.ops-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.metric-card,
.member-status-strip article,
.ops-card {
  min-height: 7rem;
  padding: 1rem;
}

.metric-card {
  display: grid;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.25rem;
  background: var(--ui-primary);
}

.metric-card.accent::before {
  background: var(--ui-accent);
}

.metric-card span,
.member-status-strip span,
.ops-card span {
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--ui-heading);
  font-size: 1.6rem;
  font-weight: 900;
}

.metric-card small,
.ops-card small {
  color: var(--ui-muted);
}

.metric-card i {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(2, 78, 140, 0.2);
  font-size: 1.5rem;
}

.admin-grid,
.member-dashboard-grid,
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.member-main-stack,
.member-side-stack,
.admin-side-stack,
.stack {
  display: grid;
  gap: 1rem;
}

.surface-header,
.admin-table-toolbar,
.side-panel-title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.surface-header h2,
.side-panel-title h2,
.work-surface h2 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 850;
}

.filter-chip,
.status-badge,
.badge-primary {
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-panel-soft);
  color: var(--ui-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover,
.badge-primary {
  border-color: rgba(2, 78, 140, 0.24);
  background: rgba(2, 78, 140, 0.1);
  color: var(--ui-primary);
}

.status-badge i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.active,
.status-badge.success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--lsea-success);
}

.status-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--lsea-warning);
}

.status-badge.danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--lsea-danger);
}

.status-badge.draft {
  background: rgba(102, 112, 133, 0.1);
  color: var(--ui-muted);
}

.admin-table-wrap,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--ui-radius-sm);
}

.admin-table,
.table {
  margin-bottom: 0;
  min-width: 46rem;
  color: var(--ui-text);
}

.admin-table thead th,
.table thead th {
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-panel-soft);
  color: var(--ui-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-table tbody td,
.table tbody td {
  border-color: var(--ui-border);
  font-size: 0.86rem;
  vertical-align: middle;
}

.applicant-cell,
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.applicant-cell strong,
.admin-table td strong,
.table td strong {
  display: block;
  color: var(--ui-heading);
  font-size: 0.86rem;
}

.applicant-cell small,
.admin-table td small,
.table td small,
.admin-table td span,
.table td span {
  display: block;
  color: var(--ui-muted);
  font-size: 0.76rem;
}

.table-avatar.success {
  background: var(--lsea-success);
}

.table-avatar.danger {
  background: var(--lsea-danger);
}

.table-avatar.muted {
  background: var(--ui-muted);
}

.table-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--ui-muted);
  font-size: 0.82rem;
}

.table-pager {
  display: flex;
  gap: 0.35rem;
}

.table-pager button {
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  font-size: 0.8rem;
}

.table-pager button.active {
  background: var(--ui-primary);
  color: #ffffff;
}

.license-card {
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 12%, rgba(239, 183, 3, 0.35), transparent 13rem),
    linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
}

.license-card-top,
.license-facts,
.event-list article,
.renewal-list article,
.announcement-list article,
.timeline-list div,
.doc-dropzone,
.ops-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.license-card-top {
  justify-content: space-between;
  padding: 1rem;
}

.license-card h2,
.license-card p {
  margin: 0;
}

.license-card span,
.license-card dt {
  color: rgba(255, 255, 255, 0.76);
}

.license-facts {
  align-items: stretch;
  justify-content: space-between;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.license-facts dl,
.license-facts div {
  margin: 0;
}

.license-facts dt {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.license-facts dd {
  margin: 0.2rem 0 0;
  color: #ffffff;
  font-weight: 800;
}

.qr-mock {
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.16rem;
  padding: 0.4rem;
  border-radius: var(--ui-radius-sm);
  background: #ffffff;
}

.qr-mock span {
  border-radius: 1px;
  background: rgba(2, 78, 140, 0.12);
}

.qr-mock span.filled {
  background: var(--ui-primary);
}

.quick-action-grid {
  grid-template-columns: 1fr;
}

.quick-action,
.ops-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  color: var(--ui-heading);
  box-shadow: var(--ui-shadow-sm);
}

.quick-action:hover,
.ops-card:hover {
  border-color: rgba(2, 78, 140, 0.24);
  color: var(--ui-primary);
}

.quick-action.primary {
  background: var(--ui-primary);
  color: #ffffff;
}

.quick-action.primary span,
.quick-action.primary i {
  color: rgba(255, 255, 255, 0.78);
}

.quick-action i,
.side-panel-title i,
.ops-card i {
  color: var(--ui-primary);
  font-size: 1.15rem;
}

.member-status-strip article {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow-sm);
}

.member-status-strip i {
  color: var(--ui-primary);
}

.member-status-strip strong {
  color: var(--ui-heading);
}

.cpd-value strong {
  color: var(--ui-heading);
  font-size: 2rem;
}

.progress-track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ui-border);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ui-primary), var(--ui-accent));
}

.progress-meta,
.event-list article,
.announcement-list article,
.timeline-list div,
.renewal-list article {
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ui-border);
}

.event-list time {
  width: 3rem;
  min-width: 3rem;
  padding: 0.35rem;
  border-radius: var(--ui-radius-sm);
  background: rgba(2, 78, 140, 0.1);
  color: var(--ui-primary);
  text-align: center;
}

.event-list time span,
.event-list time strong {
  display: block;
}

.timeline-list i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--ui-primary);
}

.timeline-list i.success {
  background: var(--lsea-success);
}

.timeline-list i.accent {
  background: var(--ui-accent);
}

.lsea-auth-body {
  min-height: 100vh;
  background: #eef3f8;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, rgba(2, 78, 140, 0.12) 0 25%, transparent 25% 100%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.auth-backdrop-panel {
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-content: start;
  min-height: 17rem;
  padding: 1.25rem;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(1, 85, 155, 0.92), rgba(2, 78, 140, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5rem);
}

.auth-backdrop-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 68%;
  height: 42%;
  background: linear-gradient(135deg, transparent 0 48%, rgba(239, 183, 3, 0.92) 48% 100%);
  opacity: 0.95;
}

.auth-shell-brand {
  position: relative;
  z-index: 1;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
}

.auth-shell-brand:hover {
  color: #ffffff;
}

.auth-shell-brand .brand-mark {
  background: #ffffff;
  color: var(--ui-primary);
  width: 2.7rem;
  height: 2.7rem;
  min-width: 2.7rem;
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  font-weight: 800;
}

.auth-shell-brand strong,
.auth-shell-brand small {
  display: block;
  color: inherit;
  line-height: 1.1;
}

.auth-shell-brand small {
  font-size: 0.72rem;
  opacity: 0.78;
}

.auth-backdrop-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  align-self: end;
}

.auth-backdrop-copy .page-kicker {
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.05em;
}

.auth-backdrop-copy h1 {
  margin: 0.35rem 0 0.75rem;
  color: #ffffff;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-backdrop-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.6;
}

.auth-backdrop-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-self: end;
}

.auth-backdrop-strip span {
  min-height: 2.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--ui-radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-page {
  width: min(100%, 28rem);
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  padding: 2rem;
  border: 1px solid rgba(2,78,140,0.12);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(2,78,140,0.08);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.auth-card h1 {
  margin-bottom: 0.75rem;
  color: var(--ui-heading);
  font-size: 1.75rem;
  font-weight: 800;
  text-align: left;
}

.auth-form-intro {
  margin: 0 0 1.75rem;
  color: #556980;
  font-size: 1rem;
  line-height: 1.6;
}

.auth-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 1.5rem;
  color: var(--ui-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-card-footer a {
  color: #024E8C;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 2.65rem;
  border-color: var(--ui-border-strong);
  color: var(--ui-heading);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 0.18rem rgba(2, 78, 140, 0.15);
}

.form-label {
  color: var(--ui-heading);
  font-size: 0.8rem;
  font-weight: 800;
}

.doc-dropzone {
  min-height: 8rem;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px dashed rgba(2, 78, 140, 0.35);
  border-radius: var(--ui-radius);
  background: rgba(2, 78, 140, 0.05);
  text-align: center;
}

.doc-dropzone i {
  color: var(--ui-primary);
  font-size: 1.5rem;
}

.error-code {
  color: var(--ui-primary);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.system-error-page {
  width: 100%;
  min-height: calc(100dvh - var(--ui-topbar-height) - 3rem);
  display: grid;
  place-items: center;
  padding-block: 0.75rem;
}

.system-error-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 42rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--ui-border);
  border-radius: 1rem;
  background: var(--ui-panel);
  box-shadow: 0 1rem 2.5rem rgba(18, 55, 86, 0.09);
}

.system-error-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 0.2rem;
  background: linear-gradient(90deg, var(--ui-primary), #2f8ac4);
  content: "";
}

.system-error-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.5rem;
  color: var(--ui-primary);
}

.system-error-code {
  font-size: clamp(3.25rem, 18vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.system-error-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(2, 78, 140, 0.14);
  border-radius: 50%;
  background: rgba(2, 78, 140, 0.07);
  font-size: 1rem;
}

.system-error-content {
  min-width: 0;
  padding: 0.75rem 1.25rem 1.25rem;
}

.system-error-kicker {
  margin: 0 0 0.35rem;
  color: var(--ui-primary);
  font-size: max(0.75rem, 14px);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.system-error-content h1 {
  margin: 0;
  color: var(--ui-heading);
  font-size: clamp(1.35rem, 6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.system-error-message {
  max-width: 44ch;
  margin: 0.65rem 0 0;
  color: var(--ui-muted);
  font-size: max(1rem, 16px);
  line-height: 1.55;
}

.system-error-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.system-error-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1rem;
  font-size: max(0.82rem, 14px);
  font-weight: 700;
}

.system-error-reference {
  margin: 1rem 0 0;
  color: var(--ui-muted);
  font-size: max(0.75rem, 14px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.system-error-reference code {
  color: inherit;
  font-size: inherit;
}

@media (min-width: 576px) {
  .system-error-card {
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .system-error-status {
    min-height: 14rem;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    border-right: 1px solid var(--ui-border);
    background: linear-gradient(155deg, rgba(2, 78, 140, 0.08), rgba(47, 138, 196, 0.025));
  }

  .system-error-content {
    align-self: center;
    padding: 1.75rem;
  }

  .system-error-code {
    font-size: 4rem;
  }

  .system-error-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

.registration-reference-page {
  display: grid;
  gap: 1rem;
}

.registration-reference-topbar,
.registration-reference-panel,
.registration-card {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow-sm);
}

.registration-reference-topbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.registration-reference-topbar h1 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 1.1rem;
  font-weight: 850;
}

.registration-ref {
  align-self: flex-start;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(2, 78, 140, 0.1);
  color: var(--ui-primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.registration-reference-panel {
  padding: 0.75rem;
}

.tab-nav.compact-tabs {
  gap: 0.4rem;
  padding: 0.6rem;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-panel-soft);
}

.tab-btn {
  min-height: 2.5rem;
  border-radius: var(--ui-radius-sm);
}

.tab-panel.compact-tab-panel {
  padding: 1rem;
}

.form-row-grid {
  gap: 0.8rem;
}

.choice-group label,
.radio-line label {
  min-height: 2.45rem;
  border-radius: var(--ui-radius-sm);
}

.form-step-actions,
.registration-form-toolbar {
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .profile-copy {
    display: block;
  }

  .portal-actions .btn {
    display: inline-flex;
  }

  .admin-metric-grid,
  .dashboard-grid,
  .member-status-strip,
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .surface-header,
  .admin-table-toolbar,
  .side-panel-title,
  .table-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .lsea-content,
  .admin-shell .lsea-content {
    padding-inline: 1.5rem;
  }

  .page-header,
  .admin-page-header,
  .portal-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
  }

  .portal-nav {
    display: flex;
  }

  .portal-header {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 992px) {
  .auth-shell {
    grid-template-columns: minmax(24rem, 0.82fr) minmax(0, 1fr);
  }

  .auth-backdrop-panel {
    min-height: 100vh;
    padding: 2rem;
  }

  .auth-form-panel {
    padding: 2rem;
  }

  .auth-card {
    padding: 1.75rem;
  }

  .lsea-sidebar {
    transform: translateX(0);
  }

  .lsea-overlay.show {
    display: none;
  }

  .desktop-toggle {
    display: inline-flex;
  }

  .mobile-toggle {
    display: none;
  }

  .admin-search {
    display: flex;
  }

  .admin-metric-grid,
  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .member-dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
  }

  .two-column-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

@media (max-width: 991.98px) {
  .admin-shell .lsea-main,
  .admin-shell.sidebar-collapsed .lsea-main {
    margin-left: 0;
  }

  .lsea-topbar,
  .admin-shell.sidebar-collapsed .lsea-topbar {
    left: 0;
  }
}

@media (max-width: 575.98px) {
  .auth-backdrop-panel {
    min-height: 14rem;
  }

  .auth-backdrop-copy h1 {
    font-size: 1.7rem;
  }

  .auth-form-panel {
    padding: 1rem;
  }

  .portal-brand-text,
  .admin-profile-button span,
  .topbar-title span {
    display: none;
  }

  .topbar-actions .btn-primary {
    width: 2.5rem;
    padding-inline: 0;
  }

  .topbar-actions .btn-primary span {
    display: none;
  }

  .license-facts {
    flex-direction: column;
  }

  .event-list article,
  .renewal-list article,
  .announcement-list article,
  .timeline-list div,
  .ops-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Admin dashboard fit corrections for sidebar-constrained tablet/laptop widths. */
.admin-dashboard,
.admin-grid,
.admin-metric-grid,
.admin-grid > *,
.admin-metric-grid > *,
.admin-panel,
.admin-stat {
  min-width: 0;
}

.admin-dashboard {
  max-width: 100%;
  overflow-x: clip;
}

.admin-dashboard .admin-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.admin-dashboard .metric-card {
  max-width: 100%;
  overflow: hidden;
}

.admin-dashboard .metric-card div,
.admin-dashboard .metric-card small,
.admin-dashboard .metric-card strong,
.admin-dashboard .metric-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .admin-dashboard .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard .admin-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .admin-dashboard .admin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  }
}

/* Compatibility override: the previous dashboard template made .admin-shell a CSS grid.
   The new UI shell uses fixed sidebar/topbar positioning, so grid layout must not apply. */
.lsea-app-shell.admin-shell {
  display: block;
  grid-template-columns: none;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.lsea-app-shell.admin-shell .lsea-main {
  display: block;
  min-width: 0;
  width: auto;
}

.lsea-app-shell.admin-shell .lsea-content {
  min-width: 0;
  max-width: 100%;
}

/* Unified member/admin shell cleanup. */
.unified-shell .lsea-content {
  width: 100%;
  max-width: none;
}

.unified-shell .admin-topbar .topbar-title strong {
  max-width: min(42vw, 32rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-shell .admin-side-nav a[data-permission] {
  scroll-margin: 0.5rem;
}

.unified-shell .admin-side-nav a[data-permission] span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-shell .admin-side-nav a[data-permission]:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}

.unified-shell .auth-page {
  min-height: calc(100vh - var(--ui-topbar-height) - 3rem);
}

.unified-shell .registration-reference-page,
.unified-shell .page-shell,
.unified-shell .portal-page,
.unified-shell .admin-dashboard {
  margin-inline: auto;
  width: min(100%, 1440px);
}

@media (max-width: 575.98px) {
  .unified-shell .admin-search {
    display: none;
  }

  .unified-shell .admin-topbar .topbar-title strong {
    max-width: 38vw;
  }
}

/* Simple CRUD workflow: compact list/form/detail pages inspired by the Cuscen master-data flow. */
.simple-crud-page {
  gap: 0.85rem;
}

.simple-crud-header h1 {
  font-size: 1.25rem;
}

.simple-crud-surface {
  padding: 0.9rem;
}

.simple-crud-toolbar {
  align-items: stretch;
}

.simple-crud-search {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel-soft);
  color: var(--ui-muted);
}

.simple-crud-search input {
  width: 100%;
  min-width: 12rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ui-heading);
  font: inherit;
  font-size: 0.86rem;
}

.simple-crud-table {
  min-width: 44rem;
}

.simple-crud-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.simple-crud-actions form {
  margin: 0;
}

.row-icon-action.danger {
  color: var(--lsea-danger);
}

.row-icon-action.danger:hover {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(220, 38, 38, 0.08);
  color: var(--lsea-danger);
}

.simple-crud-form {
  display: grid;
  gap: 0.85rem;
}

.simple-choice-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.simple-choice-group label {
  margin: 0;
}

.simple-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.simple-upload-grid .upload-card {
  padding: 0.8rem;
}

.simple-upload-grid .upload-card h4 {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.simple-crud-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(10px);
}

.simple-detail-list {
  display: grid;
  gap: 0.75rem;
}

.simple-detail-list div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ui-border);
}

.simple-detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.simple-detail-list span {
  color: var(--ui-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.simple-detail-list strong {
  color: var(--ui-heading);
  font-size: 0.95rem;
}

.detail-highlight-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.detail-highlight-card {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel-soft);
}

.detail-highlight-label {
  display: block;
  color: var(--ui-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-highlight-card strong {
  display: block;
  margin-top: 0.3rem;
}

.detail-highlight-card p {
  margin: 0.35rem 0 0;
  color: var(--ui-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (min-width: 576px) {
  .simple-choice-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .detail-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .simple-crud-page {
    width: min(100%, 1180px);
    margin-inline: auto;
  }

  .simple-upload-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Bilingual read-only membership display */
.bilingual-stack {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.bilingual-stack.compact strong,
.bilingual-stack.compact small,
.bilingual-detail-item small {
  display: block;
}

.bilingual-stack.compact strong,
.bilingual-detail-item strong {
  color: var(--ui-heading);
  line-height: 1.25;
}

.bilingual-stack.compact small,
.bilingual-detail-item small {
  color: var(--ui-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.simple-detail-list .bilingual-detail-item {
  gap: 0.28rem;
}
.brand-logo {
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: block;
  object-fit: contain;
}

.auth-brand .brand-logo,
.auth-shell-brand .brand-logo {
  flex-basis: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
}
/* LSEA auth UI redesign */
.lsea-auth-body {
  min-height: 100vh;
  background: #F3F3F3;
  color: #024E8C;
  font-family: var(--ui-font-ui);
}

.lsea-auth-body *,
.lsea-auth-body *::before,
.lsea-auth-body *::after {
  border-radius: 4px;
}

.lsea-auth-body .auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: #F3F3F3;
  font-family: var(--ui-font-ui);
}

.lsea-auth-body .auth-backdrop-panel {
  position: relative;
  min-height: 24rem;
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(2,78,140,0.9) 0%, rgba(1,85,155,0.9) 100%), url('/images/AuthBg1.png');
  background-size: cover;
  background-position: center center;
  color: #FFFFFF;
}

.lsea-auth-body .auth-backdrop-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(239,183,3,0.16), transparent 60%);
  pointer-events: none;
}

.lsea-auth-body .auth-shell-brand,
.lsea-auth-body .auth-backdrop-copy,
.lsea-auth-body .auth-feature-pills,
.lsea-auth-body .auth-brand-footer {
  position: relative;
  z-index: 1;
}

.lsea-auth-body .auth-shell-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFFFFF;
  text-decoration: none;
}

.lsea-auth-body .auth-shell-brand:hover {
  color: #FFFFFF;
}

.lsea-auth-body .auth-shell-brand strong,
.lsea-auth-body .auth-shell-brand small,
.lsea-auth-body .auth-brand strong,
.lsea-auth-body .auth-brand small {
  display: block;
  color: inherit;
  line-height: 1.15;
}

.lsea-auth-body .auth-shell-brand strong,
.lsea-auth-body .auth-brand strong {
  font-size: 1rem;
  font-weight: 700;
}

.lsea-auth-body .auth-shell-brand small,
.lsea-auth-body .auth-brand small {
  font-size: 0.875rem;
  font-weight: 400;
}

.lsea-auth-body .auth-backdrop-copy {
  max-width: 42rem;
  align-self: center;
}

.lsea-auth-body .auth-backdrop-copy .page-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  background: #EFB703;
  color: #024E8C;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lsea-auth-body .auth-backdrop-copy h1 {
  max-width: 13ch;
  margin: 1rem 0 0.75rem;
  color: #FFFFFF;
  font-family: var(--ui-font-display);
  font-size: 2.625rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.lsea-auth-body .auth-backdrop-copy p {
  max-width: 37rem;
  margin: 0;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.lsea-auth-body .auth-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lsea-auth-body .auth-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.lsea-auth-body .auth-feature-pills span {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
}

.lsea-auth-body .auth-brand-footer {
  margin: 0;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 400;
}

.lsea-auth-body .auth-brand-footer a {
  color: #FFFFFF;
  text-decoration: underline;
}

.lsea-auth-body .auth-form-panel {
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #F3F3F3;
  min-height: 100vh;
}

.lsea-auth-body .auth-page {
  width: min(100%, 24rem);
  max-width: 34rem;
}

.lsea-auth-body .auth-card {
  width: 100%;
  max-width: 36rem;
  padding: 1.75rem;
  border: 1px solid #EEEEEE;
  background: #FFFFFF;
  box-shadow: none;
}

.lsea-auth-body .auth-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #024E8C;
}

.lsea-auth-body .brand-logo {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.lsea-auth-body .auth-card h1 {
  margin: 0 0 1.25rem;
  color: #024E8C;
  font-family: var(--ui-font-display);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  letter-spacing: 0;
}

.lsea-auth-body .auth-form-intro {
  margin: 0 0 1.75rem;
  color: #556980;
  font-size: 0.98rem;
  line-height: 1.55;
}

.lsea-auth-body .form-label,
.lsea-auth-body .form-check-label,
.lsea-auth-body .auth-card-footer {
  color: #024E8C;
  font-size: 1rem;
}

.lsea-auth-body .form-label {
  font-weight: 600;
}

.lsea-auth-body .form-control,
.lsea-auth-body .form-select {
  min-height: 46px;
  height: 46px;
  border: 1px solid #E7E7E7;
  background-color: #FFFFFF;
  color: #024E8C;
  font-family: var(--ui-font-ui);
  font-size: 1rem;
  font-weight: 400;
}

.lsea-auth-body .form-control::placeholder {
  color: #01559B;
}

.lsea-auth-body .form-control:focus,
.lsea-auth-body .form-select:focus {
  border-color: #024E8C;
  box-shadow: 0 0 0 0.2rem rgba(2,78,140,0.15);
}

.lsea-auth-body .form-check-input {
  border-color: #E7E7E7;
}

.lsea-auth-body .form-check-input:checked {
  border-color: #024E8C;
  background-color: #024E8C;
}

.lsea-auth-body .btn-primary {
  min-height: 46px;
  border-color: #024E8C;
  background: #024E8C;
  color: #FFFFFF;
  font-family: var(--ui-font-ui);
  font-size: 1rem;
  font-weight: 700;
}

.lsea-auth-body .btn-primary:hover,
.lsea-auth-body .btn-primary:focus {
  border-color: #01559B;
  background: #01559B;
  color: #FFFFFF;
}

.lsea-auth-body a,
.lsea-auth-body .link-primary,
.lsea-auth-body .auth-card-footer a {
  color: #024E8C;
  font-weight: 700;
}

.lsea-auth-body .auth-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 400;
}

@media (min-width: 992px) {
  .lsea-auth-body .auth-shell {
    grid-template-columns: 1fr 1fr;
  }

  .lsea-auth-body .auth-backdrop-panel {
    min-height: 100vh;
    padding: 4rem;
  }

  .lsea-auth-body .auth-form-panel {
    min-height: 100vh;
    padding: 2rem;
    justify-items: center;
  }

  .lsea-auth-body .auth-page {
    width: min(100%, 32rem);
  }

  .lsea-auth-body .auth-card {
    max-width: 34rem;
  }
}

@media (max-width: 575.98px) {
  .lsea-auth-body .auth-backdrop-panel {
    min-height: 19rem;
    padding: 1.25rem;
  }

  .lsea-auth-body .auth-backdrop-copy h1 {
    max-width: 14ch;
    font-size: 2rem;
  }

  .lsea-auth-body .auth-feature-pills {
    gap: 0.5rem;
  }

  .lsea-auth-body .auth-feature-pills span {
    min-height: 2.5rem;
    font-size: 0.875rem;
  }

  .lsea-auth-body .auth-brand-footer {
    display: none;
  }

  .lsea-auth-body .auth-form-panel {
    padding: 1rem;
  }

  .lsea-auth-body .auth-card {
    padding: 1.15rem;
  }
}
/* auth validation palette */
.lsea-auth-body .invalid-feedback {
  color: #01559B;
}

.lsea-auth-body .was-validated .form-control:invalid,
.lsea-auth-body .form-control.is-invalid {
  border-color: #EFB703;
}

.lsea-auth-body .was-validated .form-control:invalid:focus,
.lsea-auth-body .form-control.is-invalid:focus {
  border-color: #EFB703;
  box-shadow: 0 0 0 0.2rem rgba(239,183,3,0.15);
}

/* Auth split layout repair: photo-only left panel, form-only right panel. */
.lsea-auth-body .auth-backdrop-panel {
  display: block;
  min-height: 15rem;
  padding: 0;
  overflow: hidden;
  background: #024E8C;
  color: inherit;
}

.lsea-auth-body .auth-backdrop-panel::after {
  display: none;
}

.lsea-auth-body .auth-backdrop-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center;
}

.lsea-auth-body .auth-form-panel {
  min-height: auto;
  padding: 1.25rem;
}

@media (min-width: 992px) {
  .lsea-auth-body .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .lsea-auth-body .auth-backdrop-panel,
  .lsea-auth-body .auth-form-panel {
    min-height: 100vh;
  }
}

@media (max-width: 575.98px) {
  .lsea-auth-body .auth-backdrop-panel {
    min-height: 12rem;
  }
}
.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.workflow-actions .simple-inline-form {
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
}

.workflow-actions .btn {
  white-space: nowrap;
}
.manual-payment-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.payment-review-table td small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
}

.review-note-cell {
  max-width: 16rem;
  white-space: normal;
}

.payment-review-actions {
  min-width: 18rem;
}

.payment-review-actions .simple-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.1rem 0;
}

.reject-payment-form .form-control {
  width: 9rem;
}


/* Topbar account placement */
.topbar-actions .account-menu,
.admin-topbar-actions .account-menu,
.portal-actions .account-menu {
  margin-left: 0.15rem;
}

.topbar-account-chip {
  min-width: 8.75rem;
  justify-content: flex-start;
}

.topbar-account-chip .profile-copy {
  min-width: 0;
  text-align: left;
}

.topbar-account-chip .profile-copy strong,
.topbar-account-chip .profile-copy small {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu form {
  margin: 0;
}

.account-menu .dropdown-item {
  width: 100%;
}

@media (max-width: 575.98px) {
  .topbar-account-chip {
    width: 2.75rem;
    min-width: 2.75rem;
    padding-inline: 0;
    justify-content: center;
  }

  .topbar-account-chip .profile-copy,
  .topbar-account-chip > i {
    display: none;
  }
}
/* Clean data grid binding and compact queue tables */
.simple-crud-surface .table-responsive,
.work-surface .table-responsive {
  width: 100%;
}

.simple-crud-table,
.payment-review-table {
  margin-bottom: 0;
  font-size: 0.92rem;
  vertical-align: middle;
}

.simple-crud-table thead th,
.payment-review-table thead th {
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #475569;
  background: #F8FAFC;
  border-bottom-color: #D8DEE8;
}

.simple-crud-table tbody td,
.payment-review-table tbody td {
  vertical-align: middle;
  color: #1F2937;
}

.simple-crud-table td strong,
.payment-review-table td strong {
  display: block;
  color: #0F172A;
  font-weight: 700;
}

.simple-crud-table td small,
.payment-review-table td small {
  display: block;
  margin-top: 0.2rem;
  color: #64748B;
  line-height: 1.35;
}

.lsea-grid-controls,
.lsea-grid-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.75rem 0;
}

.lsea-grid-controls {
  padding-top: 0;
}

.lsea-grid-length label,
.lsea-grid-search label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
}

.lsea-grid-length select,
.lsea-grid-search input,
.dt-input {
  min-height: 2.5rem;
  border: 1px solid #D8DEE8;
  border-radius: 0.5rem;
  color: #0F172A;
  background-color: #FFFFFF;
}

.lsea-grid-search input {
  width: min(100%, 18rem);
  padding: 0.5rem 0.75rem;
}

.lsea-grid-scroll,
.dt-scroll-body {
  width: 100%;
}

.dt-container,
.dt-scroll,
.dt-scroll-head,
.dt-scroll-body {
  max-width: 100%;
  box-sizing: border-box;
}

.dt-scroll-headInner {
  max-width: none;
}

.dt-scroll-head,
.dt-scroll-body {
  border-color: rgba(1, 85, 155, 0.1);
}

.dt-scroll-headInner table,
.dt-scroll-body table {
  margin: 0 !important;
  border-collapse: collapse;
}

.dt-scroll-headInner table thead th,
.dt-scroll-body table tbody td {
  box-sizing: border-box;
}

.lsea-grid-info,
.dt-info {
  color: #64748B;
  font-size: 0.875rem;
}

.lsea-grid-pages .pagination,
.dt-paging .pagination {
  margin: 0;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.lsea-grid-pages .page-link,
.dt-paging .page-link {
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
}

.row-icon-action {
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.simple-crud-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.simple-crud-actions form {
  margin: 0;
}

.dataTables_empty,
.dt-empty,
.empty-table-cell {
  padding: 1.5rem !important;
  color: #64748B !important;
  text-align: center !important;
  background: #F8FAFC !important;
}

@media (min-width: 768px) {
  .lsea-grid-controls,
  .lsea-grid-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .lsea-grid-search label {
    justify-content: flex-end;
  }
}

@media (max-width: 575.98px) {
  .simple-crud-header,
  .surface-header.simple-crud-toolbar {
    align-items: stretch;
  }

  .simple-crud-header .page-actions,
  .surface-header.simple-crud-toolbar .page-actions {
    width: 100%;
  }

  .simple-crud-header .btn,
  .surface-header.simple-crud-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .simple-crud-table,
  .payment-review-table {
    font-size: 0.875rem;
  }

  .payment-review-actions {
    min-width: 15rem;
  }

  .payment-review-actions .simple-inline-form,
  .reject-payment-form .form-control {
    width: 100%;
  }
}
/* Clickable dashboard metric cards */
.metric-link {
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.metric-link:hover,
.metric-link:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(2, 78, 140, 0.28);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.08);
}

.metric-link:focus-visible {
  outline: 3px solid rgba(2, 78, 140, 0.18);
  outline-offset: 3px;
}

/* Blue theme refinement layer */
:root {
  --ui-bg: #f5f7fa;
  --ui-panel: #ffffff;
  --ui-panel-soft: #eaf3fa;
  --ui-text: #1f2937;
  --ui-heading: #1f2937;
  --ui-muted: #6b7280;
  --ui-primary: #01559b;
  --ui-primary-2: #01559b;
  --ui-primary-dark: #013b6b;
  --ui-accent: #efb703;
  --ui-border: #d9e2ec;
  --ui-border-strong: #c7d6e5;
  --ui-sidebar: #013b6b;
  --ui-shadow-sm: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
  --ui-shadow-md: 0 1rem 2.5rem rgba(1, 59, 105, 0.14);
  --ui-focus-ring: 0 0 0 0.2rem rgba(1, 85, 155, 0.16);
}

body {
  background:
    linear-gradient(180deg, rgba(1, 85, 155, 0.07) 0, rgba(1, 85, 155, 0.02) 18rem, rgba(245, 247, 250, 0) 32rem),
    var(--ui-bg);
}

.lsea-app-shell {
  background:
    linear-gradient(135deg, rgba(1, 85, 155, 0.08), rgba(234, 243, 250, 0.72) 42%, transparent 68%),
    var(--ui-bg);
}

.lsea-topbar {
  min-height: 3.75rem;
  border-bottom-color: rgba(2, 78, 140, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.75rem 1.75rem rgba(1, 59, 105, 0.07);
}

.topbar-title strong {
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 800;
}

.admin-search {
  height: 2.45rem;
  border-color: rgba(2, 78, 140, 0.13);
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.admin-search:focus-within {
  border-color: rgba(2, 78, 140, 0.35);
  box-shadow: var(--ui-focus-ring);
}

.lsea-sidebar {
  border-right-color: rgba(1, 59, 107, 0.88);
  background:
    linear-gradient(180deg, #013b6b 0, #01497f 48%, #01345f 100%);
  box-shadow: 0.75rem 0 1.75rem rgba(1, 59, 105, 0.18);
}

.logo-area,
.admin-brand {
  min-height: 3.75rem;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.brand-logo {
  width: 2.45rem;
  height: 2.45rem;
  object-fit: contain;
}

.admin-brand-text strong {
    color: #024e8c;
    letter-spacing: 0;
}

.admin-brand-text small {
  color: #024e8c;
}

.admin-side-nav {
  padding: 0.85rem 0.65rem 1rem;
}

.side-nav-label {
  display: block;
  padding: 0.95rem 0.65rem 0.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-side-nav a {
  min-height: 2.45rem;
  margin-bottom: 0.12rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.82);
}

.admin-side-nav a:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.admin-side-nav a.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: #01559b;
  color: #ffffff;
  box-shadow: inset 3px 0 0 #eaf3fa, 0 0.45rem 1rem rgba(0, 0, 0, 0.16);
}

.icon-button,
.notification-button,
.topbar-toggle,
.row-icon-action,
.table-pager button {
  border-color: rgba(2, 78, 140, 0.13);
  background: #ffffff;
  color: #455a72;
}

.icon-button:hover,
.notification-button:hover,
.topbar-toggle:hover,
.row-icon-action:hover,
.table-pager button:hover:not(:disabled) {
  border-color: rgba(2, 78, 140, 0.26);
  background: #eef6fd;
  color: var(--ui-primary);
}

.lsea-content,
.admin-shell .lsea-content {
  padding-top: 4.85rem;
}

.work-surface,
.portal-panel,
.admin-panel,
.license-card,
.metric-card,
.lsea-card,
.page-header,
.admin-page-header,
.portal-hero {
  border-color: rgba(2, 78, 140, 0.12);
  box-shadow: var(--ui-shadow-sm);
}

.work-surface,
.portal-panel,
.admin-panel,
.lsea-card {
  padding: 1.05rem;
}

.btn-primary {
  background: linear-gradient(180deg, var(--ui-primary-2), var(--ui-primary)) !important;
  border-color: var(--ui-primary) !important;
  box-shadow: 0 0.5rem 1rem rgba(2, 78, 140, 0.16);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, #0864ad, var(--ui-primary-dark)) !important;
  border-color: var(--ui-primary-dark) !important;
}

.btn-outline-secondary,
.btn-outline-primary {
  border-color: rgba(2, 78, 140, 0.18);
  color: var(--ui-primary);
  background: #ffffff;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover {
  border-color: var(--ui-primary);
  background: #eef6fd;
  color: var(--ui-primary-dark);
}

.form-control,
.form-select {
  border-color: var(--ui-border-strong);
  background-color: #ffffff;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--ui-primary);
  box-shadow: var(--ui-focus-ring);
}

.form-check-input:checked {
  background-color: var(--ui-primary);
  border-color: var(--ui-primary);
}

.table thead th,
.admin-table thead th {
  background: #f2f7fc;
  color: #506279;
}

.table-hover tbody tr:hover > * {
  background-color: rgba(2, 78, 140, 0.035);
}

.permission-matrix-page {
  display: grid;
  gap: 1rem;
}

.permission-matrix-header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ui-border);
}

.permission-group-stack {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.permission-group-card {
  overflow: hidden;
  border: 1px solid rgba(2, 78, 140, 0.13);
  border-radius: var(--ui-radius);
  background: #ffffff;
  box-shadow: 0 0.45rem 1.1rem rgba(1, 59, 105, 0.055);
}

.permission-group-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--ui-border);
  background:
    linear-gradient(90deg, rgba(2, 78, 140, 0.08), rgba(2, 78, 140, 0.015)),
    #f8fbff;
}

.permission-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.permission-group-icon {
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--ui-primary);
  color: #ffffff;
}

.permission-group-title h3 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.95rem;
  font-weight: 800;
}

.permission-group-title p {
  margin: 0.1rem 0 0;
  color: var(--ui-muted);
  font-size: 0.78rem;
}

.permission-count {
  align-self: flex-start;
  min-height: 1.85rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(2, 78, 140, 0.16);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: #ffffff;
  color: var(--ui-primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.permission-table-wrap {
  border-radius: 0;
}

.permission-table {
  min-width: 42rem;
  margin-bottom: 0;
}

.permission-table thead th {
  white-space: nowrap;
}

.permission-table td:first-child {
  min-width: 12rem;
}

.permission-check {
  display: inline-flex;
  justify-content: center;
}

.permission-check .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  cursor: pointer;
}

.permission-unavailable {
  color: #9aa8b8;
  font-weight: 800;
}

.permission-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
  justify-content: flex-end;
}

.permission-actions .btn {
  width: 100%;
}

@media (min-width: 576px) {
  .permission-group-head,
  .permission-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .permission-count {
    align-self: center;
  }

  .permission-actions .btn {
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .lsea-content,
  .admin-shell .lsea-content {
    padding-inline: 0.75rem;
  }

  .work-surface,
  .portal-panel,
  .admin-panel,
  .lsea-card {
    padding: 0.85rem;
  }

  .permission-matrix-header .btn {
    width: 100%;
  }
}

/* Compact density: gives the app the working space of roughly 80% browser zoom without CSS zoom. */
:root {
  --ui-sidebar-width: 13.25rem;
  --ui-sidebar-collapsed: 4rem;
  --ui-topbar-height: 3.25rem;
  --ui-radius: 0.45rem;
  --ui-radius-sm: 0.32rem;
}

body {
  font-size: 0.875rem;
}

.lsea-topbar {
  min-height: var(--ui-topbar-height);
  padding: 0.42rem 0.8rem;
}

.topbar-title strong {
  font-size: 0.92rem;
}

.admin-search {
  height: 2.15rem;
  min-width: 13rem;
  padding: 0 0.65rem;
  font-size: 0.82rem;
}

.icon-button,
.notification-button,
.topbar-toggle,
.row-icon-action,
.table-pager button {
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  font-size: 0.82rem;
}

.logo-area,
.admin-brand {
  min-height: var(--ui-topbar-height);
  gap: 0.5rem;
  padding: 0 0.8rem;
}

.brand-logo {
  width: 2.1rem;
  height: 2.1rem;
}

.admin-brand-text strong {
  font-size: 0.82rem;
}

.admin-brand-text small {
  font-size: 0.58rem;
}

.admin-side-nav {
  padding: 0.65rem 0.55rem 0.85rem;
}

.side-nav-label {
  padding: 0.75rem 0.55rem 0.28rem;
  font-size: 0.62rem;
}

.admin-side-nav a {
  min-height: 2.15rem;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.admin-side-nav a i {
  width: 0.95rem;
  font-size: 0.86rem;
}

.lsea-content,
.admin-shell .lsea-content {
  padding: 3.9rem 0.85rem 1rem;
}

.unified-shell .registration-reference-page,
.unified-shell .page-shell,
.unified-shell .portal-page,
.unified-shell .admin-dashboard {
  width: min(100%, 1400px);
}

.work-surface,
.portal-panel,
.admin-panel,
.lsea-card {
  padding: 0.78rem;
}

.page-shell,
.admin-dashboard,
.portal-page,
.permission-matrix-page,
.permission-group-stack {
  gap: 0.75rem;
}

.page-header,
.admin-page-header,
.portal-hero {
  gap: 0.65rem;
  padding: 0.78rem;
}

.page-header h1,
.admin-page-header h1,
.portal-hero h1 {
  font-size: 1.2rem;
}

.surface-header,
.admin-table-toolbar,
.side-panel-title {
  gap: 0.5rem;
}

.surface-header h2,
.side-panel-title h2,
.work-surface h2 {
  font-size: 0.92rem;
}

.surface-header p,
.page-header p,
.admin-page-header p,
.portal-hero p {
  font-size: 0.8rem;
}

.btn {
  min-height: 2.1rem;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
}

.btn-sm {
  min-height: 1.9rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.76rem;
}

.form-control,
.form-select {
  min-height: 2.2rem;
  padding-block: 0.32rem;
  font-size: 0.84rem;
}

.form-label {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.table,
.admin-table,
.simple-crud-table,
.payment-review-table {
  font-size: 0.8rem;
}

.table thead th,
.admin-table thead th,
.simple-crud-table thead th,
.payment-review-table thead th {
  padding: 0.45rem 0.55rem;
  font-size: 0.66rem;
}

.table tbody td,
.admin-table tbody td,
.simple-crud-table tbody td,
.payment-review-table tbody td {
  padding: 0.42rem 0.55rem;
}

.status-badge,
.badge-primary,
.filter-chip {
  min-height: 1.55rem;
  padding: 0.18rem 0.48rem;
  font-size: 0.7rem;
}

.permission-matrix-header {
  padding-bottom: 0.6rem;
}

.permission-group-head {
  gap: 0.55rem;
  padding: 0.65rem 0.78rem;
}

.permission-group-icon {
  width: 1.9rem;
  min-width: 1.9rem;
  height: 1.9rem;
  font-size: 0.8rem;
}

.permission-group-title h3 {
  font-size: 0.85rem;
}

.permission-group-title p,
.permission-count {
  font-size: 0.7rem;
}

.permission-count {
  min-height: 1.55rem;
  padding: 0.16rem 0.52rem;
}

.permission-table {
  min-width: 36rem;
}

.permission-table td:first-child {
  min-width: 10rem;
}

.permission-check .form-check-input {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 575.98px) {
  :root {
    --ui-topbar-height: 3.75rem;
  }

  body {
    font-size: 0.9375rem;
  }

  .icon-button,
  .notification-button,
  .topbar-toggle {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 2.75rem;
  }
}

/* Auth viewport fit: keeps login/register usable at 100% zoom on 1366x768. */
.lsea-auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.lsea-auth-body .auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.lsea-auth-body .auth-form-panel {
  padding: clamp(0.75rem, 2vh, 1.25rem);
}

.lsea-auth-body .auth-page {
  width: min(100%, 27rem);
}

.lsea-auth-body .auth-card {
  max-width: 29rem;
  padding: clamp(1rem, 2.3vh, 1.35rem);
  border-color: rgba(1, 85, 155, 0.12);
}

.lsea-auth-body .auth-brand {
  margin-bottom: 0.7rem;
}

.lsea-auth-body .brand-logo {
  flex-basis: 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
}

.lsea-auth-body .portal-brand-text strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.lsea-auth-body .auth-card h1 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.lsea-auth-body .auth-card .mb-3 {
  margin-bottom: 0.65rem !important;
}

.lsea-auth-body .auth-card .mb-4 {
  margin-bottom: 0.8rem !important;
}

.lsea-auth-body .auth-card .btn.mb-3 {
  margin-bottom: 0.65rem !important;
}

.lsea-auth-body .auth-card-footer,
.lsea-auth-body .auth-card-footer.mt-4 {
  margin-top: 0.75rem !important;
  font-size: 0.88rem;
}

.lsea-auth-body .form-label,
.lsea-auth-body .form-check-label {
  font-size: 0.86rem;
}

.lsea-auth-body .form-control,
.lsea-auth-body .form-select {
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
}

.lsea-auth-body .btn-primary {
  min-height: 2.35rem;
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  .lsea-auth-body {
    overflow: hidden;
  }

  .lsea-auth-body .auth-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(23rem, 0.92fr);
    overflow: hidden;
  }

  .lsea-auth-body .auth-backdrop-panel,
  .lsea-auth-body .auth-form-panel {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .lsea-auth-body .auth-backdrop-image {
    min-height: 0;
  }

  .lsea-auth-body .auth-form-panel {
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .lsea-auth-body .auth-card {
    max-height: calc(100dvh - 1.5rem);
  }
}

@media (max-width: 991.98px) {
  .lsea-auth-body .auth-shell {
    align-content: start;
  }

  .lsea-auth-body .auth-backdrop-panel {
    min-height: 8rem;
    max-height: 22vh;
  }

  .lsea-auth-body .auth-form-panel {
    min-height: calc(100vh - 8rem);
    min-height: calc(100dvh - 8rem);
  }
}

@media (max-width: 575.98px) {
  .lsea-auth-body .auth-backdrop-panel {
    min-height: 5.5rem;
    max-height: 5.5rem;
  }

  .lsea-auth-body .auth-form-panel {
    min-height: calc(100vh - 5.5rem);
    min-height: calc(100dvh - 5.5rem);
    padding: 0.75rem;
  }

  .lsea-auth-body .auth-card {
    padding: 0.9rem;
  }

  .lsea-auth-body .auth-brand {
    margin-bottom: 0.5rem;
  }

  .lsea-auth-body .brand-logo {
    flex-basis: 2rem;
    width: 2rem;
    height: 2rem;
  }

  .lsea-auth-body .portal-brand-text strong {
    font-size: 0.8rem;
  }

  .lsea-auth-body .auth-card h1 {
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
  }

  .lsea-auth-body .auth-card .mb-3 {
    margin-bottom: 0.55rem !important;
  }

  .lsea-auth-body .form-control,
  .lsea-auth-body .form-select,
  .lsea-auth-body .btn-primary {
    min-height: 2.25rem;
    height: 2.25rem;
  }
}

/* Screen-fit density layer for dashboards, queues, forms, and detail views. */
:root {
  --ui-sidebar-width: 12.5rem;
  --ui-sidebar-collapsed: 3.65rem;
  --ui-topbar-height: 3rem;
  --ui-radius: 0.38rem;
  --ui-radius-sm: 0.28rem;
  --ui-density-gap: 0.6rem;
}

body:not(.lsea-auth-body) {
  font-size: 0.85rem;
  line-height: 1.42;
}

.unified-shell .lsea-content,
.unified-shell.admin-shell .lsea-content {
  padding: 3.45rem 0.72rem 0.8rem;
}

.unified-shell .page-shell,
.unified-shell .portal-page,
.unified-shell .admin-dashboard,
.unified-shell .registration-reference-page {
  width: min(100%, 1360px);
  gap: var(--ui-density-gap);
}

.lsea-topbar {
  min-height: var(--ui-topbar-height);
  padding: 0.32rem 0.68rem;
}

.topbar-title strong {
  font-size: 0.86rem;
}

.topbar-title span,
.admin-brand-text small,
.portal-brand-text small {
  font-size: 0.62rem;
}

.admin-search {
  height: 1.95rem;
  min-width: 11rem;
  padding: 0 0.55rem;
}

.icon-button,
.notification-button,
.topbar-toggle,
.row-icon-action,
.table-pager button {
  width: 1.95rem;
  min-width: 1.95rem;
  height: 1.95rem;
}

.logo-area,
.admin-brand {
  min-height: var(--ui-topbar-height);
  padding: 0 0.65rem;
}

.brand-logo {
  width: 1.9rem;
  height: 1.9rem;
}

.admin-brand-text strong,
.portal-brand-text strong {
  font-size: 0.76rem;
}

.admin-side-nav {
  padding: 0.5rem 0.45rem 0.7rem;
}

.side-nav-label {
  padding: 0.6rem 0.45rem 0.22rem;
  font-size: 0.58rem;
}

.admin-side-nav a {
  min-height: 1.9rem;
  gap: 0.45rem;
  padding: 0.28rem 0.45rem;
  font-size: 0.74rem;
}

.admin-side-nav a i {
  width: 0.9rem;
  font-size: 0.78rem;
}

.work-surface,
.portal-panel,
.admin-panel,
.lsea-card,
.simple-crud-surface,
.registration-card,
.detail-highlight-card,
.upload-card {
  padding: 0.65rem;
  border-radius: var(--ui-radius);
  box-shadow: 0 0.18rem 0.65rem rgba(15, 23, 42, 0.055);
}

.work-surface.narrow {
  max-width: 44rem;
}

.page-header,
.admin-page-header,
.portal-hero {
  gap: 0.55rem;
  padding: 0.65rem;
  border-radius: var(--ui-radius);
}

.portal-hero.compact-portal-hero {
  min-height: auto;
}

.page-kicker {
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0;
}

.page-header h1,
.admin-page-header h1,
.portal-hero h1,
.simple-crud-header h1 {
  margin-bottom: 0.12rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

.page-header p,
.admin-page-header p,
.portal-hero p,
.surface-header p,
.side-panel-title p,
.work-surface p {
  margin-bottom: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.page-actions,
.portal-hero-actions,
.surface-header,
.admin-table-toolbar,
.side-panel-title,
.simple-crud-toolbar {
  gap: 0.42rem;
}

.surface-header,
.side-panel-title,
.simple-crud-toolbar {
  margin-bottom: 0.55rem;
}

.surface-header h2,
.side-panel-title h2,
.work-surface h2,
.section-title {
  margin-bottom: 0.1rem;
  font-size: 0.86rem;
  line-height: 1.25;
}

.dashboard-grid,
.admin-metric-grid,
.quick-action-grid,
.member-status-strip,
.detail-highlight-grid,
.preview-grid,
.compact-upload-grid,
.document-upload-grid,
.form-row-grid {
  gap: 0.55rem;
}

.dashboard-grid,
.admin-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}

.member-dashboard-grid,
.two-column-grid,
.admin-grid {
  gap: 0.65rem;
}

.metric-card,
.admin-dashboard .metric-card {
  min-height: auto;
  padding: 0.68rem;
}

.metric-card span {
  font-size: 0.66rem;
}

.metric-card strong {
  margin: 0.12rem 0;
  font-size: 1.35rem;
  line-height: 1.05;
}

.metric-card small {
  font-size: 0.7rem;
  line-height: 1.25;
}

.metric-card > i {
  right: 0.65rem;
  bottom: 0.55rem;
  font-size: 1rem;
}

.member-status-strip article,
.ops-card,
.quick-action,
.event-list article,
.announcement-list article,
.timeline-list div,
.admin-action-list a,
.license-facts div,
.detail-highlight-card {
  padding: 0.55rem;
}

.member-status-strip article {
  min-height: 3.1rem;
}

.member-status-strip i,
.quick-action i,
.ops-card i {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.78rem;
}

.quick-action {
  gap: 0.45rem;
  min-height: 4.2rem;
}

.quick-action strong,
.event-list h3,
.announcement-list strong,
.timeline-list strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.quick-action span,
.event-list p,
.announcement-list small,
.timeline-list span,
.ops-card small {
  font-size: 0.72rem;
  line-height: 1.3;
}

.license-card-top {
  gap: 0.65rem;
}

.license-card-top h2 {
  font-size: 1rem;
}

.license-facts {
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.license-facts dt {
  font-size: 0.62rem;
}

.license-facts dd {
  font-size: 0.78rem;
}

.btn {
  min-height: 1.95rem;
  gap: 0.3rem;
  padding: 0.25rem 0.52rem;
  font-size: 0.78rem;
  line-height: 1.15;
}

.btn-sm {
  min-height: 1.65rem;
  padding: 0.18rem 0.42rem;
  font-size: 0.7rem;
}

.form-row-grid,
.simple-crud-form,
.manual-payment-form,
.simple-inline-form,
.registration-card .business-entry-list,
.registration-reference-page .business-entry-list {
  gap: 0.55rem;
}

.form-group {
  margin-bottom: 0.55rem;
}

.form-label {
  margin-bottom: 0.18rem;
  font-size: 0.74rem;
  line-height: 1.25;
}

.form-control,
.form-select,
.simple-crud-search,
.lsea-grid-length select,
.lsea-grid-search input,
.dt-input {
  min-height: 1.95rem;
  padding: 0.26rem 0.55rem;
  font-size: 0.78rem;
  border-radius: var(--ui-radius-sm);
}

textarea.form-control,
.registration-card textarea.form-control,
.registration-reference-page textarea.form-control {
  min-height: 4.25rem;
}

.registration-card,
.registration-reference-page {
  gap: 0.65rem;
}

.compact-toolbar,
.registration-form-toolbar {
  gap: 0.5rem;
  padding: 0.55rem;
}

.registration-card .upload-card,
.registration-reference-page .upload-card {
  padding: 0.55rem;
}

.registration-card .upload-card h4,
.registration-reference-page .upload-card h4 {
  margin-bottom: 0.28rem;
  font-size: 0.78rem;
}

.registration-card .upload-card p,
.registration-reference-page .upload-card p {
  font-size: 0.7rem;
}

.registration-card .business-entry-row,
.registration-reference-page .business-entry-row {
  gap: 0.45rem;
  padding: 0.5rem;
}

.table-responsive,
.admin-table-wrap,
.simple-crud-surface .table-responsive,
.work-surface .table-responsive {
  border-radius: var(--ui-radius-sm);
}

.table,
.admin-table,
.simple-crud-table,
.payment-review-table,
.permission-table {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.table thead th,
.admin-table thead th,
.simple-crud-table thead th,
.payment-review-table thead th,
.permission-table thead th {
  padding: 0.32rem 0.42rem;
  font-size: 0.58rem;
  line-height: 1.2;
}

.table tbody td,
.admin-table tbody td,
.simple-crud-table tbody td,
.payment-review-table tbody td,
.permission-table tbody td {
  padding: 0.32rem 0.42rem;
}

.simple-crud-table td small,
.payment-review-table td small {
  margin-top: 0.08rem;
  font-size: 0.68rem;
}

.table-avatar {
  width: 1.8rem;
  height: 1.8rem;
  font-size: 0.68rem;
}

.status-badge,
.badge-primary,
.filter-chip,
.permission-count {
  min-height: 1.35rem;
  padding: 0.12rem 0.38rem;
  font-size: 0.64rem;
}

.admin-filter-group,
.lsea-grid-controls,
.lsea-grid-footer,
.table-footer {
  gap: 0.45rem;
  padding: 0.45rem 0;
}

.lsea-grid-length label,
.lsea-grid-search label,
.lsea-grid-info,
.dt-info {
  font-size: 0.72rem;
}

.lsea-grid-pages .page-link,
.dt-paging .page-link {
  min-width: 1.85rem;
  min-height: 1.85rem;
  padding: 0.15rem 0.35rem;
  font-size: 0.72rem;
}

.row-icon-action {
  min-width: 1.85rem;
  min-height: 1.85rem;
}

.simple-crud-footer {
  gap: 0.38rem;
  padding: 0.48rem;
}

.simple-detail-list,
.timeline-list,
.announcement-list,
.event-list,
.admin-action-list {
  gap: 0.45rem;
}

.detail-highlight-grid {
  margin-bottom: 0.6rem;
}

.detail-highlight-card p {
  font-size: 0.7rem;
}

.permission-group-stack {
  gap: 0.55rem;
}

.permission-group-head {
  padding: 0.5rem 0.62rem;
}

.permission-group-icon {
  width: 1.65rem;
  min-width: 1.65rem;
  height: 1.65rem;
}

.permission-group-title h3 {
  font-size: 0.78rem;
}

.permission-group-title p {
  font-size: 0.66rem;
}

@media (min-width: 992px) {
  .member-dashboard-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.75fr);
  }

  .two-column-grid,
  .admin-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.75fr);
  }

  .member-main-stack,
  .member-side-stack,
  .admin-side-stack,
  .stack {
    gap: 0.5rem;
  }

  .member-status-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .member-status-strip article {
    min-height: 2.75rem;
    grid-template-columns: 1.55rem minmax(0, 1fr);
    gap: 0.28rem 0.45rem;
    padding: 0.42rem;
  }

  .member-status-strip i {
    width: 1.55rem;
    height: 1.55rem;
  }

  .license-card,
  .compact-license-card {
    padding: 0.62rem;
  }

  .license-card-top {
    padding: 0;
    align-items: center;
  }

  .license-card-top p {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .license-card-status {
    gap: 0.35rem;
  }

  .license-facts {
    margin-top: 0.45rem;
    padding: 0.45rem 0 0;
  }

  .quick-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .quick-action {
    min-height: 3.25rem;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .quick-action span {
    display: none;
  }

  .event-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .event-list article {
    align-items: center;
  }

  .event-list p,
  .announcement-list small,
  .timeline-list span {
    display: none;
  }

  .event-list time {
    width: 2.75rem;
    min-width: 2.75rem;
    padding: 0.32rem;
  }

  .announcement-list article,
  .timeline-list div,
  .admin-action-list a {
    min-height: auto;
  }

  .member-side-stack .work-surface {
    padding: 0.45rem;
  }

  .member-side-stack .surface-header,
  .member-side-stack .side-panel-title {
    gap: 0.3rem;
    margin-bottom: 0.32rem;
  }

  .member-side-stack h2,
  .member-side-stack .surface-header h2,
  .member-side-stack .side-panel-title h2 {
    font-size: 0.78rem;
  }

  .member-side-stack .timeline-list div,
  .member-side-stack .announcement-list article,
  .member-side-stack .admin-action-list a {
    padding: 0.35rem;
  }

  .member-side-stack .timeline-list strong,
  .member-side-stack .announcement-list strong,
  .member-side-stack .admin-action-list a {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .member-side-stack .admin-action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  :root {
    --ui-topbar-height: 3.5rem;
  }

  body:not(.lsea-auth-body) {
    font-size: 0.92rem;
  }

  .unified-shell .lsea-content,
  .unified-shell.admin-shell .lsea-content {
    padding: 4rem 0.6rem 0.75rem;
  }

  .work-surface,
  .portal-panel,
  .admin-panel,
  .lsea-card,
  .simple-crud-surface,
  .registration-card {
    padding: 0.58rem;
  }

  .page-header,
  .admin-page-header,
  .portal-hero {
    padding: 0.58rem;
  }

  .btn,
  .form-control,
  .form-select,
  .simple-crud-search,
  .lsea-grid-length select,
  .lsea-grid-search input,
  .dt-input {
    min-height: 2.55rem;
  }

  .icon-button,
  .notification-button,
  .topbar-toggle,
  .row-icon-action {
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
  }

  .dashboard-grid,
  .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    padding: 0.58rem;
  }

  .metric-card strong {
    font-size: 1.15rem;
  }

  .quick-action,
  .event-list article,
  .timeline-list div,
  .announcement-list article,
  .admin-action-list a {
    padding: 0.5rem;
  }
}

/* Dashboard UI/UX layer: command-first dashboards for member and operations work. */
.member-dashboard-page,
.ops-dashboard-page {
  display: grid;
  gap: 0.58rem;
}

.dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.72rem;
  border: 1px solid rgba(1, 85, 155, 0.14);
  border-radius: var(--ui-radius);
  background:
    linear-gradient(135deg, rgba(1, 85, 155, 0.1), rgba(234, 243, 250, 0.9) 48%, #ffffff 100%);
  box-shadow: 0 0.35rem 1rem rgba(1, 59, 105, 0.07);
}

.dashboard-hero-main {
  min-width: min(100%, 20rem);
}

.dashboard-hero-main h1 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 1.12rem;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
}

.dashboard-hero-main p {
  max-width: 56rem;
  margin: 0.18rem 0 0;
  color: var(--ui-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-stage-strip {
  position: relative;
}

.dashboard-stage-strip::before {
  content: "";
  position: absolute;
  left: 2.1rem;
  right: 2.1rem;
  top: 50%;
  height: 1px;
  background: rgba(1, 85, 155, 0.16);
}

.dashboard-stage-strip article {
  position: relative;
  z-index: 1;
  border-color: rgba(1, 85, 155, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.dashboard-stage-strip article.active {
  border-color: rgba(1, 85, 155, 0.35);
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(1, 85, 155, 0.08);
}

.dashboard-stage-strip article.active i {
  background: var(--ui-primary);
  color: #ffffff;
}

.dashboard-workbench,
.ops-dashboard-grid {
  align-items: start;
}

.dashboard-focus-card {
  border: 0;
  background:
    linear-gradient(135deg, #013b6b 0%, #01559b 68%, #1d7bbd 100%);
  box-shadow: 0 0.6rem 1.4rem rgba(1, 59, 105, 0.18);
}

.dashboard-focus-card .license-card-top span,
.dashboard-focus-card .license-facts dt {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-focus-card .license-facts {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.dashboard-focus-card .license-facts div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-action-grid .quick-action,
.ops-command-panel .admin-action-list a {
  border-color: rgba(1, 85, 155, 0.12);
  box-shadow: none;
}

.dashboard-action-grid .quick-action:hover,
.ops-command-panel .admin-action-list a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.35rem 0.85rem rgba(1, 59, 105, 0.09);
}

.dashboard-task-board,
.dashboard-side-panel,
.ops-queue-board,
.ops-command-panel {
  border-color: rgba(1, 85, 155, 0.12);
}

.dashboard-task-board .event-list article {
  border: 1px solid rgba(1, 85, 155, 0.1);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
}

.dashboard-task-board .event-list time {
  border: 1px solid rgba(1, 85, 155, 0.12);
  background: #eaf3fa;
}

.dashboard-side-panel .timeline-list div,
.dashboard-side-panel .announcement-list article {
  border-bottom: 1px solid rgba(1, 85, 155, 0.09);
}

.dashboard-side-panel .timeline-list div:last-child,
.dashboard-side-panel .announcement-list article:last-child {
  border-bottom: 0;
}

.ops-dashboard-page {
  gap: 0.65rem;
}

.ops-dashboard-hero {
  background:
    linear-gradient(135deg, rgba(1, 59, 107, 0.98), rgba(1, 85, 155, 0.9)),
    #013b6b;
  color: #ffffff;
}

.ops-dashboard-hero .page-kicker,
.ops-dashboard-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.ops-dashboard-hero h1 {
  color: #ffffff;
}

.ops-dashboard-hero .btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.ops-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(11.2rem, 1fr));
}

.ops-metric-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(1, 85, 155, 0.12);
  background: #ffffff;
}

.ops-metric-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--ui-primary);
  opacity: 0.8;
}

.ops-metric-card.accent::after {
  background: var(--ui-accent);
}

.ops-metric-card:hover {
  transform: translateY(-1px);
}

.ops-queue-board .simple-crud-table td:first-child strong {
  font-size: 0.78rem;
}

.ops-command-stack {
  gap: 0.55rem;
}

.ops-command-panel .admin-action-list {
  grid-template-columns: 1fr;
}

.ops-command-panel .timeline-list div {
  border: 1px solid rgba(1, 85, 155, 0.08);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
}

@media (min-width: 992px) {
  .member-dashboard-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-hero {
    min-height: 4.2rem;
  }

  .ops-dashboard-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(14.5rem, 0.65fr);
  }

  .ops-command-panel .admin-action-list a {
    min-height: 2.1rem;
  }
}

@media (max-width: 575.98px) {
  .dashboard-hero {
    align-items: stretch;
  }

  .dashboard-hero-actions,
  .dashboard-hero-actions .btn {
    width: 100%;
  }

  .dashboard-stage-strip::before {
    display: none;
  }

  .ops-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Surface-first page headers: compact page titles live inside the first card. */
.work-surface > .surface-header:first-child .page-kicker {
  margin-bottom: 0.12rem;
}

.work-surface > .surface-header:first-child > div:first-child {
  min-width: 0;
}

.surface-header .page-actions {
  align-items: center;
  justify-content: flex-start;
  margin-left: auto;
}

.surface-header .page-actions .btn {
  padding: 0.3rem 0.6rem;
}

.surface-header .page-actions .status-badge {
  min-height: 1.95rem;
}

@media (max-width: 575.98px) {
  .surface-header .page-actions {
    width: 100%;
    margin-left: 0;
  }

  .surface-header .page-actions .btn {
    flex: 1 1 auto;
    min-width: 8rem;
    justify-content: center;
  }
}

/* Compact registration reference topbar. */
.registration-reference-page {
  gap: 0.5rem;
}

.registration-reference-topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--ui-radius-sm);
}

.registration-reference-topbar h1 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.15;
}

.registration-reference-topbar h1 i {
  font-size: 0.82rem;
}

.registration-reference-topbar p {
  display: none;
}

.registration-reference-topbar .registration-ref {
  align-self: center;
  flex: 0 0 auto;
  padding: 0.28rem 0.48rem;
  border-radius: var(--ui-radius-sm);
  font-size: 0.68rem;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .registration-reference-topbar {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    padding: 0.55rem;
  }

  .registration-reference-topbar h1 {
    font-size: 0.86rem;
  }

  .registration-reference-topbar .registration-ref {
    align-self: flex-start;
  }
}

/* Global compact surface headers for dense workflow pages. */
.surface-header,
.surface-header.compact,
.surface-header.simple-crud-toolbar,
.surface-header.admin-table-toolbar,
.surface-header.compact-payment-header {
  align-items: center;
  gap: 0.35rem 0.6rem;
  min-height: 0;
  margin-bottom: 0.42rem;
}

.surface-header > div:first-child {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.surface-header h2,
.work-surface .surface-header h2 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.15;
}

.surface-header .page-kicker {
  margin-bottom: 0;
  font-size: 0.58rem;
  line-height: 1;
}

.surface-header p,
.work-surface .surface-header p,
.side-panel-title p {
  max-width: 64ch;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.25;
}

.surface-header .page-actions,
.surface-header .admin-filter-group {
  gap: 0.34rem;
  margin-left: auto;
}

.surface-header .btn,
.surface-header .filter-chip,
.surface-header .status-badge {
  min-height: 1.85rem;
  padding-top: 0.22rem;
  padding-bottom: 0.22rem;
  font-size: 0.7rem;
  line-height: 1.1;
}

.surface-header .row-icon-action {
  width: 1.9rem;
  height: 1.9rem;
}

@media (max-width: 767.98px) {
  .surface-header,
  .surface-header.compact,
  .surface-header.simple-crud-toolbar,
  .surface-header.admin-table-toolbar,
  .surface-header.compact-payment-header {
    align-items: stretch;
    flex-direction: column;
  }

  .surface-header .page-actions,
  .surface-header .admin-filter-group {
    width: 100%;
    margin-left: 0;
  }
}

/* Compact finance summary: keep four payment cards in one desktop row. */
.payment-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.payment-summary-grid .ops-card {
  position: relative;
  min-height: 4.35rem;
  gap: 0.18rem;
  padding: 0.52rem 0.62rem;
  border-radius: var(--ui-radius-sm);
}

.payment-summary-grid .ops-card i {
  position: absolute;
  top: 0.48rem;
  right: 0.52rem;
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.7rem;
  opacity: 0.85;
}

.payment-summary-grid .ops-card span {
  padding-right: 1.8rem;
  font-size: 0.58rem;
  line-height: 1;
}

.payment-summary-grid .ops-card strong {
  color: var(--ui-heading);
  font-size: 1.18rem;
  line-height: 1.05;
}

.payment-summary-grid .ops-card small {
  max-width: 15ch;
  font-size: 0.62rem;
  line-height: 1.15;
}

.payment-review-surface .payment-table-wrap {
  max-height: calc(100vh - 16.5rem);
  overflow: auto;
}

.payment-review-surface .payment-review-table {
  min-width: 58rem;
}

.payment-review-surface .payment-review-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
}

@media (max-width: 991.98px) {
  .payment-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .payment-summary-grid {
    grid-template-columns: 1fr;
  }

  .payment-review-surface .payment-table-wrap {
    max-height: calc(100vh - 14rem);
  }
}

/* Slightly wider navigation rail for clearer labels. */
:root {
  --ui-sidebar-width: 13.75rem;
}

.ops-dashboard-title {
  padding: 0.62rem 0.72rem;
}

/* Compact admin identity surfaces: users, roles, and operations queues. */
.admin-identity-page {
  gap: 0.55rem;
}

.admin-identity-surface,
.work-surface.simple-crud-surface.ops-queue-board,
.work-surface.simple-crud-surface.permission-matrix-page {
  padding: 0.62rem 0.72rem;
  border-radius: var(--ui-radius-sm);
}

.admin-identity-surface .surface-header,
.ops-queue-board .surface-header,
.permission-matrix-page .surface-header {
  margin-bottom: 0.46rem;
}

.admin-identity-surface .compact-alert {
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
}

.admin-identity-table,
.ops-queue-board .simple-crud-table {
  min-width: 40rem;
  font-size: 0.78rem;
}

.admin-identity-table thead th,
.ops-queue-board .simple-crud-table thead th {
  padding: 0.46rem 0.55rem;
  font-size: 0.66rem;
}

.admin-identity-table tbody td,
.ops-queue-board .simple-crud-table tbody td {
  padding: 0.44rem 0.55rem;
}

.admin-identity-table td strong,
.ops-queue-board .simple-crud-table td:first-child strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.admin-identity-table td .small,
.ops-queue-board .simple-crud-table td small {
  margin-top: 0.08rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.admin-identity-table td:last-child {
  white-space: nowrap;
}

.admin-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  align-items: center;
}

.badge.admin-badge,
.simple-crud-surface .status-badge {
  min-height: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.14rem 0.42rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.simple-crud-surface .status-badge i {
  width: 0.34rem;
  height: 0.34rem;
}

.badge-role {
  border-color: rgba(2, 78, 140, 0.16);
  background: rgba(2, 78, 140, 0.08);
  color: var(--ui-primary);
}

.badge-success {
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.badge-warning {
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.badge-danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.badge-muted {
  border-color: rgba(100, 116, 139, 0.18);
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.admin-identity-table .admin-badge {
  margin: 0.08rem 0.16rem 0.08rem 0;
}

.row-icon-action.primary {
  border-color: rgba(2, 78, 140, 0.16);
  color: var(--ui-primary);
}

.payment-grid-review-link {
  background: rgba(2, 78, 140, 0.07);
  box-shadow: 0 4px 10px rgba(2, 78, 140, 0.1);
}

.admin-identity-table .row-icon-action,
.ops-queue-board .row-icon-action {
  width: 1.75rem;
  min-width: 1.75rem;
  height: 1.75rem;
  font-size: 0.72rem;
}

.admin-inline-create {
  margin-bottom: 0.58rem;
  padding: 0.5rem;
  border: 1px solid rgba(2, 78, 140, 0.1);
  border-radius: var(--ui-radius-sm);
  background: #f8fbff;
}

.admin-inline-create .form-label {
  margin-bottom: 0.18rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ui-muted);
}

.admin-inline-create .form-control {
  min-height: 2.1rem;
  padding: 0.36rem 0.5rem;
  font-size: 0.78rem;
}

.admin-role-form {
  gap: 0.55rem;
}

.admin-role-choice {
  min-height: 2.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.46rem 0.55rem 0.46rem 2.15rem;
  border: 1px solid rgba(2, 78, 140, 0.12);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
}

.admin-role-choice .form-check-input {
  margin-top: 0;
  margin-left: -1.45rem;
}

.admin-role-choice .form-check-label {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--ui-heading);
}

.preview-grid {
  gap: 0.45rem;
}

.preview-item {
  padding: 0.52rem 0.62rem;
  border-radius: var(--ui-radius-sm);
}

.preview-label {
  margin-bottom: 0.1rem;
  font-size: 0.62rem;
}

.preview-value {
  font-size: 0.78rem;
  line-height: 1.25;
}

.user-email-edit-item {
  grid-column: 1 / -1;
}

.section-divider {
  margin: 0.65rem 0;
}

.admin-identity-surface .section-title {
  margin-bottom: 0.25rem;
}

.permission-matrix-page {
  gap: 0.6rem;
}

.permission-matrix-header {
  padding-bottom: 0.45rem;
}

.permission-group-stack {
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.permission-group-card {
  border-radius: var(--ui-radius-sm);
  box-shadow: none;
}

.permission-group-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.48rem 0.58rem;
}

.permission-group-icon {
  width: 1.75rem;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--ui-radius-sm);
  font-size: 0.72rem;
}

.permission-group-title {
  gap: 0.5rem;
}

.permission-group-title h3 {
  font-size: 0.78rem;
}

.permission-group-title p {
  font-size: 0.64rem;
}

.permission-count {
  align-self: center;
}

.permission-table {
  margin-bottom: 0;
  font-size: 0.74rem;
}

.permission-table thead th,
.permission-table tbody td {
  padding: 0.38rem 0.48rem;
}

.permission-table td strong {
  font-size: 0.75rem;
}

.permission-table .small {
  font-size: 0.64rem;
}

.permission-actions {
  gap: 0.35rem;
}

@media (max-width: 575.98px) {
  .admin-identity-surface,
  .work-surface.simple-crud-surface.ops-queue-board,
  .work-surface.simple-crud-surface.permission-matrix-page {
    padding: 0.56rem;
  }

  .admin-identity-table,
  .ops-queue-board .simple-crud-table {
    min-width: 34rem;
  }

  .permission-group-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Actor-separated member workspace screens. */
.actor-work-page {
  gap: 0.55rem;
}

.actor-work-surface {
  padding: 0.68rem 0.78rem;
}

.actor-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.actor-action-card {
  min-height: 4.2rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.12rem 0.55rem;
  align-items: center;
  padding: 0.62rem;
  border: 1px solid rgba(2, 78, 140, 0.12);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
  color: var(--ui-heading);
}

.actor-action-card:hover {
  border-color: rgba(2, 78, 140, 0.24);
  background: rgba(2, 78, 140, 0.06);
  color: var(--ui-heading);
}

.actor-action-card > i {
  grid-row: 1 / span 2;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ui-radius-sm);
  background: rgba(2, 78, 140, 0.1);
  color: var(--ui-primary);
  font-size: 0.86rem;
}

.actor-action-card strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.2;
}

.actor-action-card span {
  min-width: 0;
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.actor-notification-list {
  display: grid;
  gap: 0.45rem;
}

.actor-notification-list article {
  border: 1px solid rgba(2, 78, 140, 0.1);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
}

.actor-notification-list article.is-unread {
  border-color: rgba(2, 78, 140, 0.22);
  background: #f4f9ff;
}

.actor-notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.actor-notification-actions form {
  margin: 0;
}

/* Notification queues use the same compact data-grid pattern as workflow pages. */
.notification-grid-surface {
  padding: 0.64rem 0.74rem;
}

.notification-table-wrap {
  overflow-x: auto;
}

.notification-table {
  min-width: 52rem;
}

.notification-message-cell {
  max-width: 32rem;
}

.notification-message-cell strong,
.notification-message-cell small {
  display: block;
  min-width: 0;
}

.notification-message-cell strong {
  color: var(--ui-heading);
  font-size: 0.78rem;
  line-height: 1.2;
}

.notification-message-cell small {
  margin-top: 0.08rem;
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.notification-row-unread .notification-message-cell strong {
  color: var(--ui-primary);
}

.notification-row-actions {
  justify-content: flex-end;
}

.notification-row-actions form,
.notification-grid-surface .page-actions form {
  margin: 0;
}

/* Responsive report layout: header card, filter card, and independently scrolling data card. */
.report-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.report-header-surface,
.report-filter-surface,
.report-table-surface {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.report-results-shell {
  display: block;
  min-height: calc(100dvh - 12rem);
  padding: 1.45rem 1.6rem 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
}

.report-combined-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e9eef4;
  margin-bottom: 0.75rem;
}

.report-header-left {
  display: flex;
  flex: 1 1 22rem;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
  min-width: 0;
}

.report-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: #eef4ff;
  color: #2563eb;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.report-header-title {
  margin: 0;
  color: #0b1a33;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.report-header-badge,
.report-header-rowcount {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem 0.7rem;
  border-radius: 999px;
  background: #f0f3f8;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

.report-header-badge i,
.report-header-rowcount i {
  font-size: 0.62rem;
  color: #2563eb;
}

.report-header-desc {
  flex: 1 1 100%;
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.4;
}

.report-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.report-header-actions .btn {
  color: var(--ui-heading, #0f172a);
}

.report-header-actions .btn i {
  color: var(--ui-muted, #475569);
}

.report-export-divider {
  width: 1px;
  height: 1.5rem;
  background: #e2e8f0;
  margin: 0 0.1rem;
}

.report-results-shell .report-table-wrapper {
  max-height: max(30rem, calc(100dvh - 16rem));
  margin-top: 0.2rem;
  border: 1px solid #edf2f8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.01);
}

.report-results-shell .table-responsive,
.report-results-shell .report-table-wrapper .dataTables_scrollBody {
  max-height: max(30rem, calc(100dvh - 16rem));
  overflow-y: auto;
}

.report-results-shell .report-table {
  width: 100%;
  margin-bottom: 0;
  min-width: 0;
  table-layout: auto;
}

.report-results-shell .report-table thead th {
  background: #f9fbfd;
  color: #1a2639;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 1px solid #e6ecf3;
}

.report-results-shell .report-table tbody td {
  color: #1a2639;
  font-size: 0.84rem;
  vertical-align: middle;
  border-bottom: 1px solid #eff3f9;
}

.report-results-shell .report-table .report-row-number {
  box-sizing: border-box;
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}

.report-results-shell .report-table tbody td,
.report-results-shell .report-table tbody td * {
  overflow-wrap: anywhere;
}

.report-results-shell .compact-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .report-results-shell {
    padding: 1rem 1.1rem 0.9rem;
  }

  .report-combined-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .report-header-desc {
    flex-basis: auto;
  }
}

.report-card-header.surface-header {
  margin-bottom: 0.35rem;
}

.report-filter-toggle {
  min-width: 8.25rem;
  justify-content: center;
}

.report-filter-collapse {
  margin-top: 0.35rem;
}

.report-filter-form {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.report-filter-grid.form-row-grid.four {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.48rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.report-filter-grid .form-group {
  min-width: 0;
  margin-bottom: 0;
}

.report-filter-grid .form-label {
  margin-bottom: 0.12rem;
  font-size: 0.66rem;
  line-height: 1.15;
}

.report-filter-grid .form-control,
.report-filter-grid .form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 1.82rem;
  padding: 0.22rem 0.46rem;
  font-size: 0.74rem;
}

.report-filter-actions.simple-crud-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0;
  padding-top: 0.08rem;
}

.report-filter-actions .btn {
  min-height: 1.78rem;
  padding: 0.22rem 0.52rem;
  font-size: 0.72rem;
}

.report-table-surface {
  padding: 0.64rem 0.74rem;
}

.report-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(1, 85, 155, 0.1);
  border-radius: var(--ui-radius-sm);
}

.report-table-wrapper .dt-container,
.report-table-wrapper .dataTables_wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.report-table-wrapper .lsea-grid-scroll,
.report-table-wrapper .dt-scroll,
.report-table-wrapper .dt-scroll-body {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.report-table-wrapper .lsea-grid-controls,
.report-table-wrapper .lsea-grid-footer {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

/* Compact DataTables length control. */
.lsea-grid-length,
.dt-length {
  min-width: 0;
}

.lsea-grid-length .dt-length,
.dt-container .dt-length {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: fit-content;
  max-width: 100%;
  min-height: 1.85rem;
  padding: 0.16rem 0.22rem 0.16rem 0.5rem;
  border: 1px solid rgba(1, 85, 155, 0.14);
  border-radius: var(--ui-radius-sm);
  background: #f8fbff;
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.lsea-grid-length label,
.dt-container .dt-length label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.lsea-grid-length select,
.dt-container .dt-length select,
.dt-length .dt-input {
  width: auto;
  min-width: 3.2rem;
  max-width: 4.6rem;
  min-height: 1.48rem;
  margin: 0;
  padding: 0.12rem 1.45rem 0.12rem 0.42rem;
  border: 1px solid rgba(1, 85, 155, 0.18);
  border-radius: 0.3rem;
  background-color: #ffffff;
  color: var(--ui-heading);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.lsea-grid-length select:focus,
.dt-container .dt-length select:focus,
.dt-length .dt-input:focus {
  border-color: rgba(1, 85, 155, 0.45);
  box-shadow: 0 0 0 0.12rem rgba(1, 85, 155, 0.1);
}

.report-table {
  width: 100%;
  margin-bottom: 0;
  table-layout: auto;
}

.membership-report-table {
  min-width: 72rem;
}

.license-report-table {
  min-width: 132rem;
}

.report-table thead th {
  white-space: nowrap;
  color: #01559b;
  font-size: 0.68rem;
}

.report-table tbody td {
  vertical-align: top;
}

.report-table tbody td,
.report-table tbody td * {
  overflow-wrap: anywhere;
}

/* Shared compact grid shell used by master-data and report result pages. */
.compact-grid-page {
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.compact-grid-surface {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem;
  overflow: hidden;
}

.compact-grid-header.surface-header {
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.compact-grid-header-copy {
  flex: 1 1 22rem;
  min-width: 0;
}

.compact-grid-header-copy > p,
.compact-grid-table-header p {
  max-width: 68rem;
  margin-top: 0.12rem;
  font-size: 0.74rem;
  line-height: 1.35;
}

.compact-grid-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.compact-grid-actions .btn,
.report-header-actions .btn,
.report-category-filters .btn,
.report-export-actions .btn,
.template-report-page .report-filter-toggle,
.template-report-page .report-filter-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 2.1rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ui-heading, #0f172a);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.compact-grid-actions .btn i,
.report-header-actions .btn i,
.report-category-filters .btn i,
.report-export-actions .btn i,
.template-report-page .report-filter-toggle i,
.template-report-page .report-filter-actions .btn i {
  font-size: 0.72rem;
}

.compact-filter-count {
  display: inline-grid;
  min-width: 1.15rem;
  min-height: 1.15rem;
  padding-inline: 0.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ui-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.compact-filter-trigger:hover .compact-filter-count,
.compact-filter-trigger:focus-visible .compact-filter-count {
  background: #fff;
  color: var(--ui-primary);
}

.compact-grid-surface .compact-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--ui-radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
}

.compact-grid-summary {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ui-border);
}

.compact-grid-table-header.surface-header {
  align-items: baseline;
  min-height: 0;
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
}

.compact-grid-table-header h2 {
  font-size: 0.95rem;
}

.compact-filter-offcanvas {
  width: min(23rem, calc(100vw - 1rem)) !important;
  border-left: 1px solid var(--ui-border);
  background: #fff;
  box-shadow: -1rem 0 2.5rem rgba(15, 23, 42, 0.14);
}

.compact-filter-offcanvas .offcanvas-header {
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid var(--ui-border);
}

.compact-filter-offcanvas .page-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ui-primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-filter-offcanvas .offcanvas-title {
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 800;
}

.compact-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.compact-filter-fields {
  display: grid;
  gap: 0.85rem;
}

.compact-filter-fields .form-group {
  min-width: 0;
  margin: 0;
}

.compact-filter-fields .form-label {
  margin-bottom: 0.3rem;
  color: var(--ui-heading);
  font-size: 0.78rem;
  font-weight: 800;
}

.compact-filter-fields .form-control,
.compact-filter-fields .form-select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
}

.compact-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ui-border);
}

.compact-filter-actions .btn {
  display: inline-flex;
  flex: 1 1 calc(50% - 0.275rem);
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 420px) {
  .compact-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compact-filter-actions .btn {
    flex-basis: 100%;
    width: 100%;
  }
}

.compact-server-grid-scroll {
  width: 100%;
  max-height: max(18rem, calc(100dvh - 18rem));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.compact-server-grid-scroll .template-report-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f6f9;
}

@media (max-width: 575.98px) {
  .compact-grid-page {
    margin-top: 2.25rem;
  }

  .compact-grid-header-copy {
    flex-basis: 100%;
  }

  .compact-grid-page .surface-header .compact-grid-actions {
    width: 100%;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .compact-grid-page .surface-header .compact-grid-actions > .btn,
  .compact-grid-page .surface-header .compact-grid-actions > form,
  .compact-grid-page .surface-header .compact-grid-actions > form > label.btn {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0.5rem;
  }

  .compact-grid-page .surface-header .compact-grid-actions > form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 !important;
  }

  .compact-grid-page .surface-header .compact-grid-actions .btn > span:not(.compact-filter-count),
  .compact-grid-page .surface-header .compact-grid-actions label.btn > span:not(.compact-filter-count) {
    display: none;
  }

  .compact-filter-offcanvas {
    width: 100vw !important;
  }
}

@media (max-width: 991.98px) {
  .compact-grid-page .simple-crud-actions .row-icon-action,
  .compact-grid-page .lsea-grid-tools .dt-button,
  .compact-grid-page .lsea-grid-tools .btn,
  .compact-grid-page .lsea-grid-search .dt-input,
  .compact-grid-page .lsea-grid-search input[type="search"],
  .compact-grid-page .lsea-grid-pages .page-link,
  .compact-filter-offcanvas .compact-filter-fields .form-control,
  .compact-filter-offcanvas .compact-filter-fields .form-select,
  .compact-filter-offcanvas .compact-filter-actions .btn,
  .report-center-page .report-catalog-search .form-control,
  .report-center-page .report-category-filters .btn {
    min-height: 44px;
  }

  .compact-grid-page .simple-crud-actions .row-icon-action,
  .compact-grid-page .lsea-grid-pages .page-link {
    min-width: 44px;
  }

  .compact-grid-page .simple-crud-actions .row-icon-action {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

@media (min-width: 768px) {
  .compact-filter-fields .form-control,
  .compact-filter-fields .form-select,
  .compact-filter-actions .btn {
    min-height: 2.4rem;
  }
}

/* Existing-member batch import: compact, workflow-first upload surface. */
.existing-member-import-page {
  align-content: start;
}

.existing-import-header-surface,
.existing-import-surface,
.existing-import-rules-surface {
  border-color: color-mix(in srgb, var(--ui-border) 88%, var(--ui-primary));
}

.existing-import-alert.existing-import-error {
  align-items: flex-start;
}

.existing-import-alert > i {
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

.existing-import-error-list,
.existing-import-validation ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  font-weight: 500;
}

.existing-import-validation:empty {
  display: none;
}

.existing-import-rules-collapse {
  width: 100%;
}

.existing-import-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ui-border);
}

.existing-import-section-heading > div:first-child {
  min-width: 0;
}

.existing-import-section-heading .page-kicker {
  display: block;
  margin-bottom: 0.12rem;
}

.existing-import-section-heading h2 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.95rem;
  line-height: 1.25;
}

.existing-import-section-heading p {
  margin: 0.12rem 0 0;
  color: var(--ui-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.existing-import-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.existing-import-chip,
.existing-import-rule-count {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--ui-primary) 24%, var(--ui-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--ui-primary) 7%, #fff);
  color: var(--ui-primary);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.existing-import-form {
  margin-top: 0.65rem;
}

.existing-import-file-row {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #f8fafc;
}

.existing-import-file-copy {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.existing-import-file-icon {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  place-items: center;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--ui-radius-sm);
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
  font-size: 1rem;
}

.existing-import-file-copy strong,
.existing-import-file-copy span,
.existing-import-rule strong,
.existing-import-rule span {
  display: block;
}

.existing-import-file-copy strong {
  color: var(--ui-heading);
  font-size: 0.8rem;
  line-height: 1.3;
}

.existing-import-file-copy div > span {
  margin-top: 0.12rem;
  color: var(--ui-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.existing-import-file-field {
  min-width: 0;
}

.existing-import-file-field .form-label {
  margin-bottom: 0.28rem;
  color: var(--ui-heading);
  font-size: 0.75rem;
  font-weight: 800;
}

.existing-import-file-field .form-control {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.3rem;
  background: #fff;
  font-size: 0.76rem;
}

.existing-import-file-field .form-control::file-selector-button {
  min-height: 2rem;
  margin: -0.3rem 0.65rem -0.3rem -0.3rem;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-right: 1px solid var(--ui-border);
  background: #eef2f7;
  color: var(--ui-heading);
  font-weight: 800;
  cursor: pointer;
}

.existing-import-file-field .form-text,
.existing-import-file-status {
  display: block;
  margin-top: 0.24rem;
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.existing-import-file-status {
  font-weight: 700;
}

.existing-import-file-status.is-ready {
  color: #15803d;
}

.existing-import-file-status.is-error {
  color: var(--bs-danger, #dc3545);
}

.existing-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin-top: 0.65rem;
}

.existing-import-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 11rem;
}

.existing-import-actions .btn.is-loading {
  cursor: wait;
}

.existing-import-safety-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ui-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.existing-import-safety-note i {
  color: var(--ui-primary);
}

.existing-import-rule-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.existing-import-rule {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.existing-import-rule > i {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--ui-primary) 8%, #fff);
  color: var(--ui-primary);
  font-size: 0.7rem;
}

.existing-import-rule strong {
  color: var(--ui-heading);
  font-size: 0.72rem;
  line-height: 1.25;
}

.existing-import-rule span {
  margin-top: 0.08rem;
  color: var(--ui-muted);
  font-size: 0.67rem;
  line-height: 1.35;
}

.existing-import-permission-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  margin-top: 0.65rem;
  padding: 0.65rem;
  text-align: left;
}

.existing-import-permission-note i {
  color: var(--ui-primary);
}

@media (min-width: 768px) {
  .existing-import-file-row {
    grid-template-columns: minmax(13rem, 0.75fr) minmax(20rem, 1.25fr);
    align-items: center;
  }

  .existing-import-rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .existing-import-rule-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .existing-import-section-heading {
    align-items: stretch;
  }

  .existing-import-meta {
    justify-content: flex-start;
  }

  .existing-import-file-copy {
    align-items: flex-start;
  }

  .existing-import-actions {
    align-items: stretch;
  }

  .existing-import-actions .btn {
    width: 100%;
  }
}

.membership-report-table th:nth-child(1),
.membership-report-table td:nth-child(1) {
  min-width: 7.5rem;
}

.membership-report-table th:nth-child(2),
.membership-report-table td:nth-child(2) {
  min-width: 6.25rem;
}

.membership-report-table th:nth-child(3),
.membership-report-table td:nth-child(3),
.membership-report-table th:nth-child(4),
.membership-report-table td:nth-child(4) {
  min-width: 11.25rem;
}

.membership-report-table th:nth-child(5),
.membership-report-table td:nth-child(5) {
  min-width: 8.75rem;
}

.membership-report-table th:nth-child(6),
.membership-report-table td:nth-child(6),
.membership-report-table th:nth-child(7),
.membership-report-table td:nth-child(7) {
  min-width: 6.9rem;
}

.membership-report-table th:nth-child(8),
.membership-report-table td:nth-child(8) {
  min-width: 6.25rem;
}

.membership-report-table th:nth-child(9),
.membership-report-table td:nth-child(9) {
  min-width: 8.75rem;
}

.membership-report-table th:nth-child(10),
.membership-report-table td:nth-child(10) {
  min-width: 7.5rem;
}

.membership-report-table th:nth-child(11),
.membership-report-table td:nth-child(11) {
  min-width: 12rem;
}

.license-report-table th,
.license-report-table td {
  min-width: 8rem;
}

.license-report-table th:nth-child(1),
.license-report-table td:nth-child(1),
.license-report-table th:nth-child(2),
.license-report-table td:nth-child(2),
.license-report-table th:nth-child(9),
.license-report-table td:nth-child(9) {
  min-width: 12rem;
}

.license-report-table th:nth-child(14),
.license-report-table td:nth-child(14),
.license-report-table th:nth-child(15),
.license-report-table td:nth-child(15),
.license-report-table th:nth-child(19),
.license-report-table td:nth-child(19) {
  min-width: 10rem;
}

@media (min-width: 768px) {
  .report-filter-grid.form-row-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actor-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .report-filter-grid.form-row-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .actor-work-surface {
    padding: 0.58rem;
  }

  .notification-grid-surface {
    padding: 0.56rem;
  }

  .notification-table {
    min-width: 44rem;
  }

  .report-filter-surface {
    padding: 0.56rem;
  }

  .report-table-surface,
  .report-header-surface {
    padding: 0.56rem;
  }

  .report-filter-actions .btn {
    flex: 1 1 7rem;
    justify-content: center;
  }

  .lsea-grid-length .dt-length,
  .dt-container .dt-length {
    width: 100%;
    justify-content: space-between;
  }

  .membership-report-table {
    min-width: 60rem;
  }

  .license-report-table {
    min-width: 110rem;
  }
}

/* System typography refresh: clean UI font with Myanmar-safe fallback. */
html,
body,
button,
input,
select,
textarea,
.btn,
.dropdown-menu,
.form-control,
.form-select,
.table,
.dataTable,
.dt-container,
.lsea-app-shell,
.lsea-auth-body {
  font-family: var(--ui-font-ui);
  font-kerning: normal;
  font-variant-ligatures: contextual common-ligatures;
  text-rendering: optimizeLegibility;
}

body {
  font-weight: 500;
  line-height: 1.45;
}

h1,
h2,
h3,
h4,
h5,
h6,
.topbar-title strong,
.admin-brand strong,
.auth-card h1,
.auth-backdrop-copy h1,
.surface-header h2,
.dashboard-hero-main h1,
.metric-card strong,
.ops-card strong {
  font-family: var(--ui-font-display);
  font-weight: 800;
  letter-spacing: 0;
}

.page-kicker,
.form-label,
.table thead th,
.simple-crud-table thead th,
.payment-review-table thead th,
.permission-table thead th,
.status-badge,
.badge,
.filter-chip,
.btn,
.side-nav-label,
.admin-side-nav a,
.portal-nav a {
  font-weight: 750;
  letter-spacing: 0;
}

.table tbody td,
.simple-crud-table tbody td,
.payment-review-table tbody td,
.form-control,
.form-select,
.dt-input,
.lsea-grid-search input {
  font-weight: 500;
}

.bilingual-stack,
.bilingual-detail-item,
[lang="my"],
[lang="mm"] {
  font-family: Arial, sans-serif;
  line-height: 1.55;
}

/* Member dashboard simplification: state-based onboarding, not an admin workflow board. */
.member-onboarding-dashboard {
  display: grid;
  gap: 0.7rem;
}

.member-onboarding-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid rgba(1, 85, 155, 0.14);
  border-radius: var(--ui-radius);
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 58%, #eaf3fa 100%);
  box-shadow: 0 0.45rem 1.1rem rgba(1, 59, 107, 0.07);
}

.member-onboarding-copy {
  min-width: 0;
}

.member-onboarding-copy h1 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 1.18rem;
  line-height: 1.15;
  font-weight: 850;
}

.member-onboarding-copy p {
  max-width: 54rem;
  margin: 0.18rem 0 0;
  color: var(--ui-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.member-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.member-onboarding-grid {
  display: grid;
  gap: 0.7rem;
}

.member-status-card,
.member-quick-access,
.member-progress-card,
.member-active-actions {
  border-color: rgba(1, 85, 155, 0.12);
  box-shadow: none;
}

.member-status-body {
  display: grid;
  gap: 0.65rem;
  padding: 0.2rem 0 0.65rem;
}

.member-status-body h3 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 820;
}

.member-status-body p {
  margin: 0.18rem 0 0;
  color: var(--ui-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.member-application-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.member-application-summary div {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid rgba(1, 85, 155, 0.1);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
}

.member-application-summary dt {
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-application-summary dd {
  margin: 0.12rem 0 0;
  overflow: hidden;
  color: var(--ui-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-next-step {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(239, 183, 3, 0.35);
  border-radius: var(--ui-radius-sm);
  background: #fffbea;
}

.member-next-step span {
  color: #8a6a00;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.member-next-step strong {
  color: #4f3d00;
  font-size: 0.86rem;
  font-weight: 850;
}

.member-quick-list,
.member-service-grid {
  display: grid;
  gap: 0.45rem;
}

.member-quick-list a,
.member-service-grid a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0.55rem;
  border: 1px solid rgba(1, 85, 155, 0.12);
  border-radius: var(--ui-radius-sm);
  background: #ffffff;
  color: var(--ui-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.member-quick-list a:hover,
.member-service-grid a:hover {
  border-color: rgba(1, 85, 155, 0.28);
  color: var(--ui-primary);
  transform: translateY(-1px);
  box-shadow: 0 0.35rem 0.85rem rgba(1, 59, 107, 0.08);
}

.member-quick-list i,
.member-service-grid i {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.member-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.member-progress-steps div {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid rgba(1, 85, 155, 0.1);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
  color: var(--ui-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.member-progress-steps i {
  display: grid;
  place-items: center;
  flex: 0 0 1.55rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 0.64rem;
}

.member-progress-steps .done {
  color: var(--ui-primary);
}

.member-progress-steps .done i {
  background: var(--ui-primary);
  color: #ffffff;
}

.member-progress-steps .current {
  border-color: rgba(239, 183, 3, 0.42);
  background: #fffbea;
  color: #ffffff;
}

.member-progress-steps .current i {
  background: var(--ui-accent);
  color: #1f2937;
}

.member-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-service-grid a {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 7rem;
}

.member-service-grid a.primary {
  border-color: rgba(1, 85, 155, 0.28);
  background: linear-gradient(135deg, #01559b, #0a6fc2);
  color: #ffffff;
}

.member-service-grid a.primary i {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.member-service-grid strong {
  font-size: 0.84rem;
  font-weight: 850;
}

.member-service-grid span {
  color: inherit;
  opacity: 0.72;
  font-size: 0.72rem;
  line-height: 1.35;
}

@media (min-width: 992px) {
  .member-onboarding-grid {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.36fr);
  }
}

@media (max-width: 767.98px) {
  .member-onboarding-hero,
  .member-next-step {
    grid-template-columns: 1fr;
  }

  .member-onboarding-hero {
    align-items: stretch;
  }

  .member-onboarding-actions,
  .member-onboarding-actions .btn,
  .member-next-step .btn {
    width: 100%;
  }

  .member-application-summary,
  .member-progress-steps,
  .member-service-grid {
    grid-template-columns: 1fr;
  }
}

/* Global textbox rhythm: keep all text inputs visually consistent. */
input.form-control,
textarea.form-control,
select.form-select,
.form-control,
.form-select,
.dt-input,
.simple-crud-search input,
.lsea-grid-search input,
.report-filter-grid .form-control,
.report-filter-grid .form-select,
.registration-card .form-control,
.registration-card .form-select,
.registration-reference-page .form-control,
.registration-reference-page .form-select,
.license-field-page .form-control,
.admin-inline-create .form-control {
  line-height: 2;
}

/* Application details: dense reviewer/auditor read view. */
.application-detail-page {
  gap: 0.65rem;
  width: min(100%, 1120px);
}

/* PPRD code master: mobile-first header/detail editing with template-aligned product rows. */
.pprd-code-page,
.pprd-code-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.pprd-code-page {
  overflow-x: hidden;
}

.pprd-code-page > .work-surface,
.pprd-code-form > .work-surface {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.pprd-code-page .surface-header {
  flex-wrap: wrap;
}

.pprd-code-page:not(.compact-grid-page) .surface-header > div:first-child {
  flex: 1 1 18rem;
}

.pprd-code-page:not(.compact-grid-page) .surface-header .page-actions {
  flex: 1 1 24rem;
  max-width: 100%;
  justify-content: flex-end;
}

.pprd-filter-grid,
.pprd-header-grid,
.pprd-product-grid,
.pprd-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}

.pprd-filter-form {
  gap: 0.65rem;
}

.pprd-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.pprd-filter-actions .btn,
.pprd-code-page .page-actions .btn,
.pprd-code-form .simple-crud-footer .btn {
  min-height: 2.1rem;
  padding: 0.3rem 0.6rem;
}

.pprd-code-table {
  min-width: 70rem;
}

.pprd-product-table {
  min-width: 64rem;
}

.pprd-table-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(1, 85, 155, 0.1);
  border-radius: var(--ui-radius-sm);
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.pprd-table-wrapper .dt-container,
.pprd-table-wrapper .dataTables_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
}

.pprd-table-wrapper .lsea-grid-controls,
.pprd-table-wrapper .lsea-grid-footer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.pprd-table-wrapper .lsea-grid-scroll,
.pprd-table-wrapper .dt-scroll,
.pprd-table-wrapper .dt-scroll-body {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden;
}

.pprd-table-wrapper .dt-scroll-head,
.pprd-table-wrapper .dt-scroll-headInner {
  max-width: none !important;
}

.pprd-product-list {
  display: grid;
  gap: 0.75rem;
}

.pprd-product-row {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(1, 85, 155, 0.14);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
}

.pprd-product-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  color: var(--ui-heading);
}

.pprd-product-row [data-remove-product] {
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: transparent;
}

.pprd-active-field {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
}

.pprd-detail-grid div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(1, 85, 155, 0.1);
  border-radius: var(--ui-radius-sm);
  background: #fbfdff;
}

.pprd-detail-grid span {
  color: var(--ui-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pprd-detail-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ui-heading);
  font-size: 0.86rem;
}

/* Quality Test Result: reuse the compact header/detail language while containing wide data. */
.lab-test-page,
.lab-test-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.lab-test-page {
  gap: 0.625rem;
}

.lab-test-page > .work-surface,
.lab-test-form > .work-surface {
  padding: 0.75rem;
}

.lab-test-page .simple-crud-toolbar {
  gap: 0.625rem;
  padding-bottom: 0.625rem;
}

.lab-test-page .simple-crud-toolbar h2 {
  font-size: 1rem;
  line-height: 1.25;
}

.lab-test-page .simple-crud-toolbar p {
  max-width: 62ch;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
}

.lab-test-page .form-group {
  gap: 0.25rem;
}

.lab-test-page .form-label {
  margin-bottom: 0.25rem;
  color: var(--ui-heading);
  font-size: 0.75rem;
  font-weight: 700;
}

.lab-test-page .form-control,
.lab-test-page .form-select {
  min-width: 0;
  min-height: 2.75rem;
  padding-block: 0.45rem;
  font-size: 0.875rem;
}

.lab-test-count {
  display: inline-flex;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(1, 85, 155, 0.14);
  border-radius: 999px;
  background: var(--ui-primary-soft);
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.lab-test-count strong {
  color: var(--ui-primary);
  font-size: 0.875rem;
}

.lab-test-list-table {
  min-width: 54rem;
}

.lab-test-item-table {
  min-width: 66rem;
}

.lab-test-list-table thead th,
.lab-test-item-table thead th {
  padding: 0.5rem 0.625rem;
  font-size: 0.7rem;
}

.lab-test-list-table tbody td,
.lab-test-item-table tbody td {
  padding: 0.3rem 0.3rem;
  font-size: 0.7125rem;
  line-height: 1.35;
}

.lab-test-item-table th {
  white-space: normal;
}

.lab-test-item-table th small {
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.78;
}

.lab-test-page .pprd-product-list {
  gap: 0.5rem;
}

.lab-test-page .pprd-product-row {
  padding: 0.625rem;
}

.lab-test-page .pprd-product-row-heading {
  margin-bottom: 0.5rem;
}

.lab-test-page [data-remove-item] {
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: transparent;
}

.lab-test-item-sequence {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.75rem;
}

.lab-test-item-sequence span {
  color: var(--ui-muted);
  font-weight: 700;
}

.lab-test-item-sequence b {
  color: var(--ui-primary);
  font-size: 0.95rem;
}

.lab-test-item-grid .form-label {
  min-height: 0;
  line-height: 1.2;
}

.lab-test-item-grid .form-label span,
.lab-test-item-grid .form-label small {
  display: block;
}

.lab-test-item-grid .form-label small {
  margin-top: 0.15rem;
  color: var(--ui-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.lab-test-item-grid .form-label .required {
  display: inline;
  font-style: normal;
}

.lab-test-page .simple-crud-actions {
  flex-wrap: nowrap;
}

@media (min-width: 768px) {
  .pprd-detail-grid.lab-test-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lab-test-item-grid .lab-test-standard-field {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .lab-test-page > .work-surface,
  .lab-test-form > .work-surface {
    padding: 0.75rem 0.875rem;
  }

  .lab-test-page .form-control,
  .lab-test-page .form-select,
  .pprd-code-page.lab-test-page .surface-header .page-actions .btn,
  .lab-test-form .simple-crud-footer .btn {
    min-height: 2.375rem;
  }

  .lab-test-page [data-remove-item] {
    min-width: 2.375rem;
    min-height: 2.375rem;
  }

  .lab-test-page .pprd-header-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.625rem;
  }
}

@media (min-width: 1200px) {
  .lab-test-page .pprd-product-row {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.625rem;
    align-items: stretch;
    padding: 0.5rem 0.625rem;
  }

  .lab-test-page .pprd-product-row-heading {
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding-right: 0.625rem;
    border-right: 1px solid rgba(1, 85, 155, 0.12);
  }

  .lab-test-item-sequence {
    display: grid;
    justify-items: center;
    gap: 0;
  }

  .pprd-product-grid.lab-test-item-grid {
    grid-template-columns:
      minmax(0, 1.35fr)
      minmax(0, 0.65fr)
      minmax(0, 1.8fr)
      minmax(0, 0.9fr)
      minmax(0, 1.1fr);
    gap: 0.5rem;
    align-items: end;
  }

  .lab-test-item-grid .lab-test-standard-field {
    grid-column: auto;
  }

  .lab-test-item-grid .form-label {
    display: grid;
    min-height: 2.65rem;
    align-content: end;
  }

  .pprd-detail-grid.lab-test-detail-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .lab-test-detail-grid div {
    padding: 0.5rem 0.625rem;
  }
}

@media (min-width: 1200px) {
  .pprd-filter-grid.lab-test-filter-grid {
    grid-template-columns: minmax(16rem, 1.4fr) minmax(14rem, 1fr);
  }
}

@media (max-width: 767.98px) {
  .lab-test-count {
    margin-left: auto;
  }

  .lab-test-page .simple-crud-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lab-test-page .simple-crud-footer .btn {
    width: 100%;
  }
}

.report-center-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.report-center-count {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0.35rem;
  margin-left: auto;
  color: var(--ui-primary);
}

.report-center-count strong {
  font-size: 1.2rem;
  line-height: 1;
}

.report-center-count span {
  color: var(--ui-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.report-center-grid,
.report-planned-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.report-catalog-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  min-width: 0;
}

.report-catalog-columns .report-center-grid {
  grid-template-columns: minmax(0, 1fr);
}

.report-center-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  min-height: 3.625rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(1, 85, 155, 0.14);
  border-radius: var(--ui-radius);
  background: #fff;
  color: var(--ui-heading);
  text-decoration: none;
  box-shadow: var(--ui-shadow-sm);
}

.report-center-card:hover {
  border-color: rgba(1, 85, 155, 0.32);
  color: var(--ui-primary);
  transform: translateY(-1px);
}

.report-center-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.report-center-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.report-center-copy strong {
  font-size: 0.82rem;
}

.report-planned-grid div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
  padding: 0.65rem;
  border: 1px dashed rgba(100, 116, 139, 0.3);
  border-radius: var(--ui-radius-sm);
  background: #f8fafc;
}

.report-planned-grid i {
  color: var(--ui-muted);
}

.report-planned-grid strong {
  min-width: 0;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.report-planned-grid span {
  color: var(--ui-muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .report-catalog-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .pprd-filter-grid,
  .pprd-header-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pprd-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pprd-product-remark {
    grid-column: 1 / -1;
  }

  .pprd-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-center-grid,
  .report-planned-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 1200px) {
  .report-catalog-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .pprd-filter-grid {
    grid-template-columns: minmax(16rem, 1.4fr) minmax(13rem, 1fr) minmax(10rem, 0.65fr);
  }

  .pprd-header-grid {
    grid-template-columns: minmax(16rem, 1.2fr) minmax(14rem, 1fr) minmax(12rem, 0.9fr) minmax(12rem, 0.7fr);
  }

  .pprd-product-grid {
    grid-template-columns:
      minmax(16rem, 1.7fr)
      minmax(8rem, 0.7fr)
      minmax(12rem, 1fr)
      minmax(9rem, 0.8fr)
      minmax(12rem, 1fr);
  }

  .pprd-product-remark {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .pprd-code-page:not(.compact-grid-page) .surface-header .page-actions,
  .pprd-filter-actions {
    flex: 1 1 100%;
    width: 100%;
    justify-content: stretch;
  }

  .pprd-code-page:not(.compact-grid-page) .surface-header .page-actions .btn,
  .pprd-filter-actions .btn {
    flex: 1 1 10rem;
    justify-content: center;
  }
}

.application-detail-page .work-surface {
  padding: 0.72rem;
}

.payment-request-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  place-items: center;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(3px);
}

.payment-request-loading-overlay.is-visible {
  display: grid !important;
}

.payment-request-loading-box {
  min-width: 280px;
  max-width: 360px;
  padding: 24px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.payment-request-loading-box span {
  color: #64748b;
  font-size: 0.92rem;
}

.application-detail-hero .detail-highlight-grid {
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.application-detail-hero .detail-highlight-card {
  display: grid;
  gap: 0.18rem;
  min-height: 0;
  padding: 0.55rem 0.65rem;
}

.application-detail-hero .detail-highlight-card p {
  display: none;
}

.application-detail-hero .detail-highlight-card strong {
  margin-top: 0;
  font-size: 0.82rem;
}

.review-metric-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ui-border);
}

.review-metric-strip div,
.application-detail-page .simple-detail-list div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: rgba(248, 250, 252, 0.78);
}

.review-metric-strip span,
.application-detail-page .simple-detail-list span {
  color: var(--ui-muted);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.review-metric-strip strong,
.application-detail-page .simple-detail-list strong {
  min-width: 0;
  color: var(--ui-heading);
  font-size: 0.78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.application-detail-page .simple-detail-list {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.application-detail-page .simple-detail-list .admin-inline-edit-item,
.application-detail-page .simple-detail-list .admin-inline-edit-item div {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.application-detail-page .simple-detail-list .admin-inline-edit-item {
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: rgba(248, 250, 252, 0.78);
}

.application-detail-page .bilingual-detail-item small {
  color: var(--ui-muted);
  font-size: 0.7rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.application-decision-surface .manual-payment-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.application-decision-surface .simple-crud-footer {
  position: static;
  justify-content: flex-end;
  margin-top: 0.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-review-surface {
  overflow: hidden;
  padding: 0 !important;
  border-color: rgba(2, 78, 140, 0.18);
}

.admin-review-header {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  border-bottom: 1px solid var(--ui-border);
  background:
    linear-gradient(135deg, rgba(2, 78, 140, 0.075), transparent 52%),
    #fff;
}

.admin-review-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.admin-review-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.45rem;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(2, 78, 140, 0.16);
  border-radius: 0.7rem;
  background: rgba(2, 78, 140, 0.09);
  color: var(--ui-primary);
}

.admin-review-heading h2 {
  margin: 0.12rem 0 0;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.admin-review-heading p {
  max-width: 48rem;
  margin: 0.2rem 0 0;
  color: var(--ui-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.admin-review-current-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.48rem 0.55rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: rgba(255, 255, 255, 0.82);
}

.admin-review-current-state > span {
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-review-current-state .status-badge {
  max-width: 100%;
  white-space: normal;
}

.admin-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem;
  background: #f8fafc;
}

.admin-review-lane {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: #fff;
}

.admin-review-lane-header {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(217, 226, 236, 0.82);
}

.admin-review-lane-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(2, 78, 140, 0.085);
  color: var(--ui-primary);
  font-size: 0.72rem;
}

.admin-review-followup-lane .admin-review-lane-icon {
  background: rgba(217, 119, 6, 0.09);
  color: #a65f05;
}

.admin-review-lane-header > div {
  min-width: 0;
}

.admin-review-lane-header > div > span {
  color: var(--ui-primary);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.admin-review-followup-lane .admin-review-lane-header > div > span {
  color: #9a5a08;
}

.admin-review-lane-header h3 {
  margin: 0.08rem 0 0;
  color: var(--ui-heading);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.admin-review-lane-header p {
  margin: 0.15rem 0 0;
  color: var(--ui-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.admin-review-action-list {
  display: grid;
  gap: 0;
  margin-top: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.admin-review-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-bottom: 1px solid rgba(217, 226, 236, 0.82);
  border-left: 2px solid var(--ui-primary);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.admin-review-action-list > :last-child {
  border-bottom: 0;
}

.admin-review-action-card:focus-within {
  background: rgba(248, 250, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(2, 78, 140, 0.08);
}

.admin-review-action-card.success {
  border-left-color: var(--lsea-success);
  background: rgba(240, 253, 244, 0.24);
}

.admin-review-action-card.warning {
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.24);
}

.admin-review-action-card.danger {
  border-left-color: var(--lsea-danger);
  background: rgba(254, 242, 242, 0.22);
}

.admin-review-decision-toggle {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-review-decision-toggle legend {
  width: 100%;
  margin-bottom: 0.35rem;
  color: var(--ui-heading);
  font-size: 0.7rem;
  font-weight: 850;
}

.admin-review-toggle-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
}

.admin-review-toggle-option {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.admin-review-toggle-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-review-toggle-option > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.48rem 0.55rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  color: var(--ui-muted);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.admin-review-toggle-option > span > i {
  display: grid;
  place-items: center;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.09);
  font-size: 0.7rem;
}

.admin-review-toggle-option > span > span {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.admin-review-toggle-option strong {
  color: var(--ui-heading);
  font-size: 0.72rem;
  line-height: 1.2;
}

.admin-review-toggle-option small {
  color: var(--ui-muted);
  font-size: 0.62rem;
  line-height: 1.25;
}

.admin-review-toggle-option > input:checked + span {
  border-color: rgba(2, 78, 140, 0.42);
  background: rgba(2, 78, 140, 0.065);
  color: var(--ui-primary);
  box-shadow: 0 0 0 2px rgba(2, 78, 140, 0.07);
}

.admin-review-toggle-option.reject-option > input:checked + span {
  border-color: rgba(206, 56, 68, 0.4);
  background: rgba(206, 56, 68, 0.055);
  color: var(--lsea-danger);
  box-shadow: 0 0 0 2px rgba(206, 56, 68, 0.06);
}

.admin-review-toggle-option > input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--ui-primary) 34%, transparent);
  outline-offset: 2px;
}

.admin-review-action-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.48rem;
  background: rgba(2, 78, 140, 0.09);
  color: var(--ui-primary);
  font-size: 0.7rem;
}

.admin-review-action-card.success .admin-review-action-icon {
  background: rgba(22, 142, 93, 0.11);
  color: var(--lsea-success);
}

.admin-review-action-card.warning .admin-review-action-icon {
  background: rgba(217, 119, 6, 0.11);
  color: #a65f05;
}

.admin-review-action-card.danger .admin-review-action-icon {
  background: rgba(206, 56, 68, 0.1);
  color: var(--lsea-danger);
}

.admin-review-action-copy {
  min-width: 0;
}

.admin-review-action-copy h4 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.25;
}

.admin-review-note-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.25rem;
}

.admin-review-note-field label {
  color: var(--ui-heading);
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-review-note-field label span {
  color: var(--lsea-danger);
}

.admin-review-note-field .form-control {
  width: 100%;
  min-height: 5.2rem;
  padding: 0.55rem 0.62rem;
  line-height: 1.4;
  resize: vertical;
}

.admin-review-note-field small {
  color: var(--ui-muted);
  font-size: 0.66rem;
  line-height: 1.3;
}

.admin-review-action-card > .btn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.admin-review-no-forward-action {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 0;
  border-left: 2px solid rgba(100, 116, 139, 0.38);
  border-radius: 0;
  background: #f8fafc;
  color: var(--ui-muted);
}

.admin-review-no-forward-action > i {
  margin-top: 0.12rem;
  color: var(--ui-primary);
}

.admin-review-no-forward-action div {
  display: grid;
  gap: 0.15rem;
}

.admin-review-no-forward-action strong {
  color: var(--ui-heading);
  font-size: 0.76rem;
}

.admin-review-no-forward-action span {
  font-size: 0.7rem;
  line-height: 1.35;
}

.admin-review-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--ui-border);
  background: #fff;
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.admin-review-footnote i {
  margin-top: 0.08rem;
  color: var(--ui-primary);
}

@media (min-width: 768px) {
  .admin-review-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.85rem 0.9rem;
  }

  .admin-review-current-state {
    min-width: 12rem;
  }

  .admin-review-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .admin-review-toggle-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-review-decision-toggle.single-option .admin-review-toggle-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-review-action-card {
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    padding: 0.48rem 0.55rem;
  }

  .admin-review-action-card > .btn {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    min-height: 44px;
    justify-self: end;
    align-self: center;
    white-space: nowrap;
  }

  .admin-review-action-card:has(.admin-review-decision-toggle) > .btn,
  .admin-review-action-card:has(> .license-review-inline-field) > .btn {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    justify-self: stretch;
  }
}

@media (min-width: 992px) {
  .admin-review-action-card > .btn {
    min-height: 2.35rem;
  }

  .admin-review-action-card:has(> .license-review-inline-field) > .license-review-inline-field {
    grid-column: 2;
    grid-row: 2;
  }

  .admin-review-action-card:has(> .license-review-inline-field) > .btn {
    grid-column: 3;
    grid-row: 2;
    width: auto;
    justify-self: end;
    align-self: end;
  }
}

.document-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.document-review-card {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid var(--ui-border);
  border-left: 3px solid var(--ui-primary);
  border-radius: var(--ui-radius-sm);
  background: rgba(248, 250, 252, 0.78);
}

.document-review-card.missing {
  border-left-color: var(--lsea-danger);
  background: rgba(254, 242, 242, 0.58);
}

.document-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}

.document-review-head span {
  min-width: 0;
  color: var(--ui-muted);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.document-review-head em {
  flex: 0 0 auto;
  padding: 0.1rem 0.3rem;
  border: 1px solid rgba(1, 85, 155, 0.18);
  border-radius: 999px;
  color: var(--ui-primary);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.document-review-card strong {
  color: var(--ui-heading);
  font-size: 0.8rem;
  line-height: 1.2;
}

.document-review-card p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 0.72rem;
}

.document-file-list {
  display: grid;
  gap: 0.35rem;
}

.document-file-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  min-width: 0;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(217, 226, 236, 0.8);
}

.document-file-row > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  color: var(--ui-heading);
  font-size: 0.74rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.document-file-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.payment-submission-surface {
  border-color: rgba(1, 85, 155, 0.18);
}

.submitted-payment-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding: 0.65rem;
  border: 1px solid var(--ui-border);
  border-left: 3px solid var(--ui-primary);
  border-radius: var(--ui-radius-sm);
  background: rgba(248, 250, 252, 0.82);
}

.submitted-payment-card.warning {
  border-left-color: #d97706;
  background: rgba(255, 251, 235, 0.72);
}

.submitted-payment-card.danger {
  border-left-color: var(--lsea-danger);
  background: rgba(254, 242, 242, 0.62);
}

.submitted-payment-card.active {
  border-left-color: var(--lsea-success);
  background: rgba(240, 253, 244, 0.62);
}

.submitted-payment-main {
  display: grid;
  gap: 0.25rem;
}

.submitted-payment-main strong {
  color: var(--ui-heading);
  font-size: 1rem;
  line-height: 1.2;
}

.submitted-payment-main small {
  color: var(--ui-muted);
  font-size: 0.72rem;
}

.submitted-payment-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.submitted-payment-facts div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(217, 226, 236, 0.8);
  border-radius: var(--ui-radius-sm);
  background: rgba(255, 255, 255, 0.76);
}

.submitted-payment-facts span {
  color: var(--ui-muted);
  font-size: 0.6rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.submitted-payment-facts strong {
  min-width: 0;
  color: var(--ui-heading);
  font-size: 0.76rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.submitted-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.payment-review-page {
  width: min(100%, 1280px);
}

.payment-review-page .payment-summary-grid {
  margin-bottom: 0.55rem;
}

.payment-review-surface {
  padding: 0.75rem;
}

.payment-review-table.clean-payment-grid {
  min-width: 68rem;
  border-collapse: separate;
  border-spacing: 0;
}

.payment-review-table.clean-payment-grid thead th {
  border-bottom: 1px solid var(--ui-border);
  background: #f8fafc;
  color: var(--ui-muted);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.payment-review-table.clean-payment-grid tbody td {
  border-bottom: 1px solid rgba(217, 226, 236, 0.75);
  vertical-align: middle;
}

.payment-review-table.clean-payment-grid tbody tr:hover td {
  background: rgba(234, 243, 250, 0.42);
}

.payment-review-table tbody tr.payment-focus-row > td {
  background: rgba(2, 78, 140, 0.08) !important;
}

.payment-review-table tbody tr.payment-focus-row > td:first-child {
  box-shadow: inset 3px 0 0 var(--ui-primary);
}

.payment-ref-cell,
.payment-applicant-cell {
  min-width: 10rem;
}

.payment-ref-cell strong,
.payment-applicant-cell strong {
  display: block;
  color: var(--ui-heading);
  font-size: 0.78rem;
  line-height: 1.2;
}

.payment-review-table td small,
.payment-ref-cell small,
.payment-applicant-cell small {
  display: block;
  margin-top: 0.12rem;
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.payment-slip-link {
  min-width: 3.4rem;
  justify-content: center;
}

.payment-review-actions {
  min-width: 7rem;
}

.payment-review-open {
  min-width: 6.4rem;
  justify-content: center;
}

.payment-review-modal .modal-content {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.18);
}

.payment-review-modal .modal-header {
  align-items: flex-start;
  padding: 0.95rem 1rem 0.75rem;
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

.payment-review-modal .modal-title {
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 800;
}

.payment-review-modal .modal-body {
  padding: 0.9rem 1rem;
}

.payment-modal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.payment-modal-summary > div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.55rem;
  background: rgba(248, 250, 252, 0.72);
}

.payment-modal-summary span,
.payment-modal-summary small,
.payment-modal-facts dt,
.payment-review-note small {
  display: block;
  color: var(--ui-muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.payment-modal-summary strong {
  display: block;
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
  color: var(--ui-heading);
  font-size: 0.9rem;
  line-height: 1.25;
}

.payment-modal-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 0.8rem;
}

.payment-modal-facts div {
  min-width: 0;
}

.payment-modal-facts dd {
  margin: 0.12rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ui-heading);
  font-size: 0.78rem;
  font-weight: 800;
}

.payment-modal-facts a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--ui-primary);
  text-decoration: none;
}

.payment-review-note .form-label {
  margin-bottom: 0.28rem;
  color: var(--ui-heading);
  font-size: 0.78rem;
  font-weight: 800;
}

.payment-review-note textarea {
  resize: vertical;
}

.payment-modal-actions {
  gap: 0.45rem;
  padding: 0.75rem 1rem 0.9rem;
  border-top-color: rgba(148, 163, 184, 0.22);
}

.payment-reviewed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.65rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .review-metric-strip,
  .application-detail-page .simple-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .application-detail-hero .detail-highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-metric-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .application-detail-page .simple-detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .application-detail-page .simple-detail-list .bilingual-detail-item {
    grid-column: span 2;
  }

  .document-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-file-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .submitted-payment-card {
    grid-template-columns: minmax(10rem, 0.28fr) minmax(0, 1fr);
    align-items: start;
  }

  .submitted-payment-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submitted-payment-actions {
    grid-column: 2;
  }
}

@media (min-width: 1200px) {
  .application-detail-page .simple-detail-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .document-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .submitted-payment-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .payment-modal-summary,
  .payment-modal-facts {
    grid-template-columns: 1fr;
  }

  .payment-modal-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Payment review: follow the shared DataTable style; keep only workflow-specific actions/modal fixes. */
.payment-review-surface .payment-table-wrap {
  max-height: none;
  overflow: visible;
}

.payment-review-surface .payment-review-table {
  min-width: 0;
}

.payment-review-actions {
  min-width: 0;
}

.payment-review-open {
  min-width: 0;
  min-height: 2rem;
  padding-inline: 0.45rem;
  white-space: nowrap;
}

.payment-slip-link {
  min-width: 0;
  min-height: 2rem;
  padding-inline: 0.35rem;
}

.payment-review-modal {
  z-index: 1095 !important;
}

.payment-review-modal.show {
  display: block;
}

.payment-review-modal .modal-dialog {
  z-index: 1096;
  width: min(96vw, 34rem);
  margin-inline: auto;
  pointer-events: auto;
}

.modal-backdrop {
  z-index: 1085 !important;
}

.modal-backdrop.show {
  opacity: 0.28;
  background-color: rgba(15, 23, 42, 0.62);
  backdrop-filter: none;
}

/* Endorsement review: refined old-member decision desk. */
.endorsement-review-page {
  width: min(100%, 1180px);
  gap: 0.6rem;
}

.endorsement-review-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.75rem;
  color: var(--ui-muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.endorsement-review-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ui-primary);
  font-weight: 800;
  text-decoration: none;
}

.endorsement-review-nav a:hover,
.endorsement-review-nav a:focus-visible {
  text-decoration: underline;
}

.endorsement-review-nav strong {
  color: var(--ui-heading);
  font-weight: 800;
}

.endorsement-review-surface {
  overflow: hidden;
  padding: 0;
}

.endorsement-review-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(71, 161, 255, 0.22), transparent 38%),
    #123d64;
  color: #fff;
}

.endorsement-review-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.endorsement-review-mark {
  width: 2.7rem;
  min-width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

.endorsement-review-heading .page-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.endorsement-review-heading h1 {
  margin: 0.12rem 0 0;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
}

.endorsement-review-heading p {
  max-width: 44rem;
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  line-height: 1.4;
}

.endorsement-review-status {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.endorsement-review-context {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.7rem 0.8rem 0;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(2, 78, 140, 0.15);
  border-radius: var(--ui-radius-sm);
  background: rgba(2, 78, 140, 0.055);
  color: var(--ui-primary);
}

.endorsement-review-context > i {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(2, 78, 140, 0.1);
}

.endorsement-review-context div {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.endorsement-review-context strong {
  color: var(--ui-heading);
  font-size: 0.78rem;
  line-height: 1.25;
}

.endorsement-review-context span {
  color: var(--ui-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.endorsement-review-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.8rem;
}

.endorsement-review-main {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.endorsement-evidence-card,
.endorsement-message-card,
.endorsement-history-card,
.endorsement-decision-panel {
  min-width: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: #fff;
}

.endorsement-evidence-card,
.endorsement-message-card,
.endorsement-history-card {
  padding: 0.78rem;
}

.endorsement-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.endorsement-section-heading > div {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.endorsement-section-heading > div > span {
  color: var(--ui-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
}

.endorsement-section-heading h2 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.25;
}

.endorsement-request-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  color: var(--ui-muted);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
}

.endorsement-applicant-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.62rem;
  border: 1px solid rgba(2, 78, 140, 0.12);
  border-radius: var(--ui-radius-sm);
  background: rgba(2, 78, 140, 0.04);
}

.endorsement-applicant-avatar {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.68rem;
  background: var(--ui-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.endorsement-applicant-identity > div {
  display: grid;
  gap: 0.06rem;
  min-width: 0;
}

.endorsement-applicant-identity span:not(.endorsement-applicant-avatar) {
  color: var(--ui-muted);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.endorsement-applicant-identity strong {
  color: var(--ui-heading);
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.endorsement-applicant-identity small {
  color: var(--ui-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.endorsement-fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  margin: 0;
}

.endorsement-fact-grid > div {
  min-width: 0;
  padding: 0.52rem 0.58rem;
  border: 1px solid rgba(217, 226, 236, 0.82);
  border-radius: var(--ui-radius-sm);
  background: #fbfcfe;
}

.endorsement-fact-grid dt,
.endorsement-fact-grid dd,
.endorsement-history-card dt,
.endorsement-history-card dd {
  min-width: 0;
  margin: 0;
}

.endorsement-fact-grid dt {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--ui-muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
}

.endorsement-fact-grid dt i {
  width: 0.9rem;
  color: var(--ui-primary);
  text-align: center;
}

.endorsement-fact-grid dd {
  margin-top: 0.18rem;
  color: var(--ui-heading);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.endorsement-message-card {
  border-left: 3px solid #d49a21;
  background: #fffdf8;
}

.endorsement-message-card .endorsement-section-heading > i {
  color: rgba(212, 154, 33, 0.42);
  font-size: 1.15rem;
}

.endorsement-message-card > p {
  margin: 0;
  color: var(--ui-text);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.endorsement-history-card dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  margin: 0;
}

.endorsement-history-card dl > div {
  padding: 0.55rem 0.6rem;
  border-radius: var(--ui-radius-sm);
  background: #f8fafc;
}

.endorsement-history-card dt {
  color: var(--ui-muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.endorsement-history-card dd {
  margin-top: 0.18rem;
  color: var(--ui-heading);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
}

.endorsement-decision-panel {
  display: grid;
  align-self: start;
  gap: 0.7rem;
  padding: 0.78rem;
  border-top: 3px solid var(--ui-primary);
  box-shadow: 0 0.65rem 1.5rem rgba(15, 42, 65, 0.08);
}

.endorsement-decision-head {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
}

.endorsement-decision-icon {
  width: 2.2rem;
  min-width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.62rem;
  background: rgba(2, 78, 140, 0.09);
  color: var(--ui-primary);
}

.endorsement-decision-head > div {
  min-width: 0;
}

.endorsement-decision-head h2,
.endorsement-processed-state h2 {
  margin: 0.08rem 0 0;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.endorsement-decision-head p,
.endorsement-processed-state p {
  margin: 0.22rem 0 0;
  color: var(--ui-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.endorsement-decision-form {
  display: grid;
  gap: 0.68rem;
}

.endorsement-decision-form .form-label {
  margin-bottom: 0.3rem;
  color: var(--ui-heading);
  font-size: 0.72rem;
  font-weight: 850;
}

.endorsement-decision-form textarea {
  min-height: 7.25rem;
  border-color: #cbd8e5;
  background: #fbfcfe;
  font-size: 0.78rem;
  line-height: 1.45;
  resize: vertical;
}

.endorsement-decision-form textarea:focus {
  border-color: var(--ui-primary);
  background: #fff;
  box-shadow: 0 0 0 0.18rem rgba(2, 78, 140, 0.1);
}

.endorsement-note-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.28rem;
}

.endorsement-note-meta small {
  color: var(--ui-muted);
  font-size: 0.64rem;
  line-height: 1.3;
}

.endorsement-note-meta small:last-child {
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
}

.endorsement-impact-list {
  display: grid;
  gap: 0.36rem;
}

.endorsement-impact-list > div {
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: start;
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.endorsement-impact-list i {
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 142, 93, 0.1);
  color: var(--lsea-success);
  font-size: 0.58rem;
}

.endorsement-impact-list > div:last-child i {
  background: rgba(206, 56, 68, 0.09);
  color: var(--lsea-danger);
}

.endorsement-impact-list strong {
  color: var(--ui-heading);
}

.endorsement-decision-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
}

.endorsement-decision-actions .btn {
  min-height: 2.65rem;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 850;
}

.endorsement-approve-button {
  box-shadow: 0 0.45rem 0.9rem rgba(22, 142, 93, 0.15);
}

.endorsement-decision-footnote {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.endorsement-processed-state {
  display: grid;
  justify-items: start;
  gap: 0.18rem;
}

.endorsement-processed-icon {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: rgba(22, 142, 93, 0.1);
  color: var(--lsea-success);
  font-size: 1.08rem;
}

.endorsement-processed-state.rejected .endorsement-processed-icon {
  background: rgba(206, 56, 68, 0.09);
  color: var(--lsea-danger);
}

.endorsement-processed-state .btn {
  margin-top: 0.55rem;
}

@media (min-width: 576px) {
  .endorsement-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .endorsement-history-card dl {
    grid-template-columns: minmax(9rem, 0.34fr) minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .endorsement-review-layout {
    grid-template-columns: minmax(0, 1fr) minmax(19.5rem, 0.42fr);
    align-items: start;
  }

  .endorsement-decision-panel {
    position: sticky;
    top: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .endorsement-review-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
  }

  .endorsement-review-heading {
    gap: 0.55rem;
  }

  .endorsement-review-mark {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
  }

  .endorsement-review-status {
    align-self: flex-start;
  }

  .endorsement-review-context,
  .endorsement-review-layout {
    margin-inline: 0;
  }

  .endorsement-review-layout {
    padding: 0.65rem;
  }

  .endorsement-section-heading {
    display: grid;
  }

  .endorsement-request-date {
    white-space: normal;
  }

  .endorsement-decision-actions .btn {
    width: 100%;
    min-height: 2.85rem;
  }
}

/* Account profile: compact read-only member snapshot. */
.account-profile-page {
  width: min(100%, 1120px);
  gap: 0.65rem;
}

.account-profile-surface {
  padding: 0.75rem;
}

.account-profile-header {
  align-items: start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.account-profile-header h2 {
  margin-top: 0.1rem;
}

.account-profile-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.account-profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.account-profile-identity,
.account-profile-section {
  min-width: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: rgba(248, 250, 252, 0.82);
}

.account-profile-identity {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.65rem;
  border-left: 3px solid var(--ui-primary);
}

.account-profile-avatar {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ui-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 850;
}

.account-profile-person {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.account-profile-person strong {
  min-width: 0;
  color: var(--ui-heading);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-profile-person span {
  min-width: 0;
  color: var(--ui-muted);
  font-size: 0.78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-profile-mini {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.account-profile-mini div,
.account-profile-detail-grid div {
  min-width: 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(217, 226, 236, 0.82);
  border-radius: var(--ui-radius-sm);
  background: rgba(255, 255, 255, 0.82);
}

.account-profile-mini dt,
.account-profile-detail-grid span {
  color: var(--ui-muted);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.account-profile-mini dd,
.account-profile-detail-grid strong {
  display: block;
  min-width: 0;
  margin: 0.12rem 0 0;
  color: var(--ui-heading);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-profile-sections {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.account-profile-section {
  display: grid;
  gap: 0.5rem;
  padding: 0.6rem;
}

.account-profile-section h3 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.2;
}

.account-profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.account-profile-detail-grid small {
  display: block;
  margin-top: 0.12rem;
  color: var(--ui-muted);
  font-size: 0.7rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-profile-note {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
}

@media (min-width: 576px) {
  .account-profile-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-profile-detail-grid .wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .account-profile-layout {
    grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
    align-items: start;
  }

  .account-profile-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-profile-detail-grid .wide {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .account-profile-header .page-actions,
  .account-profile-header .btn {
    width: 100%;
  }
}

/* License item template preview: compact editable grid. */
.item-template-validation {
  display: block;
  margin: -0.1rem 0 0.4rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

.license-import-success {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.52rem 0.62rem;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--ui-radius-sm);
  background: rgba(240, 253, 244, 0.88);
  color: #166534;
}

.license-import-success:focus {
  outline: 2px solid rgba(22, 163, 74, 0.25);
  outline-offset: 2px;
}

.license-import-success-icon {
  display: inline-flex;
  flex: 0 0 1.65rem;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.7rem;
}

.license-import-success strong,
.license-import-success small {
  display: block;
}

.license-import-success strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.license-import-success small {
  margin-top: 0.08rem;
  color: #3f7350;
  font-size: 0.7rem;
  line-height: 1.25;
}

.item-template-modal {
  z-index: 1095 !important;
}

.item-template-modal.show {
  display: block;
}

.item-template-modal .modal-dialog {
  z-index: 1096;
  pointer-events: auto;
}

.item-template-modal .modal-content {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-lg);
}

.item-template-modal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem 0.65rem;
}

.item-template-modal .modal-title {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.2;
}

.item-template-modal small {
  display: block;
  margin-top: 0.12rem;
  color: var(--ui-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.item-template-modal .modal-body {
  padding: 0.85rem 0.95rem;
}

.item-template-modal .modal-footer {
  gap: 0.45rem;
  padding: 0.75rem 0.95rem 0.9rem;
}

.item-template-modal .file-control {
  min-height: 2.35rem;
}

.license-item-grid-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  scrollbar-gutter: stable;
}

.readonly-license-item-table {
  min-width: 92rem;
  margin-bottom: 0;
  table-layout: fixed;
}

.readonly-license-item-table th,
.readonly-license-item-table td {
  padding: 0.4rem 0.45rem;
  vertical-align: top;
}

.readonly-license-item-table th {
  height: 4.15rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0;
  vertical-align: middle;
}

.readonly-license-item-table .item-header-en,
.readonly-license-item-table .item-header-mm {
  display: block;
}

.readonly-license-item-table .item-header-mm {
  margin-top: 0.15rem;
  color: var(--ui-muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.readonly-license-item-table td {
  font-size: 0.76rem;
}

.readonly-license-item-table th:nth-child(1),
.readonly-license-item-table td:nth-child(1) {
  width: 3.1rem;
}

.readonly-license-item-table th:nth-child(2),
.readonly-license-item-table td:nth-child(2) {
  width: 14.5rem;
}

.readonly-license-item-table th:nth-child(3),
.readonly-license-item-table td:nth-child(3) {
  width: 7rem;
}

.readonly-license-item-table th:nth-child(4),
.readonly-license-item-table td:nth-child(4) {
  width: 15rem;
}

.readonly-license-item-table th:nth-child(5),
.readonly-license-item-table td:nth-child(5) {
  width: 8rem;
}

.readonly-license-item-table th:nth-child(6),
.readonly-license-item-table td:nth-child(6) {
  width: 8.75rem;
}

.readonly-license-item-table th:nth-child(7),
.readonly-license-item-table td:nth-child(7) {
  width: 7.6rem;
}

.readonly-license-item-table th:nth-child(8),
.readonly-license-item-table td:nth-child(8) {
  width: 8.6rem;
}

.readonly-license-item-table th:nth-child(9),
.readonly-license-item-table td:nth-child(9) {
  width: 8.5rem;
}

.readonly-license-item-table th:nth-child(10),
.readonly-license-item-table td:nth-child(10) {
  width: 9rem;
}

.readonly-license-item-table th:last-child,
.readonly-license-item-table td:last-child {
  width: 3.6rem;
}

.item-grid-input {
  width: 100%;
  min-width: 0;
  min-height: 2.15rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

.item-grid-input.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.license-item-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--ui-border);
  border-top: 0;
  border-radius: 0 0 var(--ui-radius-sm) var(--ui-radius-sm);
  background: rgba(248, 250, 252, 0.88);
}

.license-item-summary div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(217, 226, 236, 0.85);
  border-radius: var(--ui-radius-sm);
  background: #ffffff;
}

.license-item-summary span {
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

.license-item-summary strong {
  color: var(--ui-heading);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.readonly-cell {
  display: block;
  min-height: 1.35rem;
  color: var(--ui-heading);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.readonly-cell.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.readonly-license-item-table .text-danger {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.68rem;
  line-height: 1.15;
}

/* License create/edit form: compact workflow layout that stays inside the viewport. */
.license-form-page,
.unified-shell .license-form-page {
  width: min(100%, 1440px);
  max-width: 100%;
  min-width: 0;
  gap: 0.55rem;
  overflow-x: hidden;
}

.license-form {
  min-width: 0;
  gap: 0.55rem;
}

.license-form [data-license-validation-summary].validation-summary-valid {
  display: none;
}

.license-form [data-license-validation-summary].validation-summary-errors {
  display: block;
}

.license-guided-section {
  scroll-margin-top: calc(var(--topbar-height, 4.25rem) + 0.75rem);
}

.license-guided-section:focus {
  outline: none;
}

.license-form-section-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-width: 0;
}

.license-form .simple-crud-surface {
  min-width: 0;
  padding: 0.72rem;
}

.license-form .surface-header,
.license-form .surface-header.simple-crud-toolbar {
  gap: 0.5rem;
}

.license-form .surface-header h2,
.license-form .work-surface .surface-header h2 {
  font-size: 0.95rem;
  line-height: 1.15;
}

.license-form .surface-header p,
.license-form .work-surface .surface-header p {
  margin-top: 0.12rem;
  font-size: 0.75rem;
  line-height: 1.25;
}

.license-form .bank-mode-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--ui-border);
  border-radius: 0.5rem;
  background: var(--ui-panel-soft);
}

.license-form .bank-mode-label,
.license-form .bank-mode-switch .form-check-label {
  color: var(--ui-text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.license-form .bank-mode-switch {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  margin: 0;
  padding-left: 2.85rem;
}

.license-form .bank-mode-switch .form-check-input {
  width: 2.4rem;
  height: 1.25rem;
  margin-top: 0;
  margin-left: -2.85rem;
  cursor: pointer;
}

.license-form .bank-mode-switch .form-check-label {
  margin-left: 0.35rem;
}

.license-form .bank-field-grid {
  margin-bottom: 0;
}

.license-form .bank-field-grid[hidden] {
  display: none;
}

.license-form .form-row-grid {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.license-form .form-group {
  min-width: 0;
  margin-bottom: 0.35rem;
}

.license-form .form-label {
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.15;
}

.license-form span.required {
  color: var(--lsea-danger);
  font-weight: 800;
}

.license-form .form-control,
.license-form .form-select,
.license-form .file-control {
  min-width: 0;
  min-height: 2rem;
  padding: 0.26rem 0.45rem;
  font-size: 0.875rem;
  line-height: 1.2;
}

.license-form .license-category-field,
.license-form .license-category-dropdown {
  position: relative;
  min-width: 0;
  width: 100%;
}

.license-form .form-control.license-category-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  text-align: left;
  cursor: pointer;
}

.license-form .license-category-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-form .license-category-trigger > i {
  flex: 0 0 auto;
  color: var(--ui-muted);
  font-size: 0.68rem;
  transition: transform 150ms ease;
}

.license-form .license-category-trigger[aria-expanded="true"] > i {
  transform: rotate(180deg);
}

.license-form .license-category-menu {
  width: 100%;
  max-width: 100%;
  margin-top: 0.2rem !important;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.14);
}

.license-form .license-category-search-row {
  position: relative;
  padding: 0.55rem;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-panel-soft);
}

.license-form .license-category-search-row > i {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 1;
  color: var(--ui-muted);
  font-size: 0.72rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.license-form .license-category-search-row .form-control {
  min-height: 44px;
  padding-left: 2rem;
  background: #fff;
}

.license-form .license-category-menu-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.32rem 0.55rem;
  border-bottom: 1px solid var(--ui-border);
}

.license-form .license-category-menu-actions > span {
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.license-form .license-category-menu-actions > div {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.license-form .license-category-menu-actions .btn-link {
  min-height: 44px;
  padding: 0.25rem 0.42rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.license-form .license-category-options {
  max-height: min(18rem, 52dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.license-form .license-category-panel {
  display: grid;
  padding: 0.32rem;
}

.license-form .license-category-panel[hidden],
.license-form .license-category-option[hidden],
.license-form .license-category-search-row[hidden],
.license-form .license-category-menu-actions[hidden],
.license-form .license-category-pending[hidden],
.license-form .license-category-no-results[hidden] {
  display: none !important;
}

.license-form .license-category-option {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 0.42rem;
  color: var(--ui-heading);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.license-form .license-category-option:hover,
.license-form .license-category-option:focus-within {
  background: rgba(2, 78, 140, 0.06);
}

.license-form .license-category-option > input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--ui-primary);
}

.license-form .license-category-option > input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ui-primary) 38%, transparent);
  outline-offset: 2px;
}

.license-form .license-category-option small {
  display: inline-block;
  margin-left: 0.25rem;
  color: #a15c05;
  font-size: 0.62rem;
  font-weight: 800;
}

.license-form .license-category-pending,
.license-form .license-category-no-results {
  padding: 0.8rem;
  color: var(--ui-muted);
  font-size: 0.75rem;
}

.license-form .license-category-pending {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.license-form .license-category-pending > i {
  margin-top: 0.12rem;
  color: var(--ui-primary);
}

.license-form .license-category-pending strong,
.license-form .license-category-pending span {
  display: block;
}

.license-form .license-category-pending strong {
  color: var(--ui-heading);
  font-size: 0.78rem;
}

.license-form .license-category-pending span {
  margin-top: 0.12rem;
  line-height: 1.35;
}

.license-form .license-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 0;
  margin-top: 0.32rem;
}

.license-form .license-category-chips:empty {
  display: none;
}

.license-form .license-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 44px;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(2, 78, 140, 0.22);
  border-radius: 999px;
  background: rgba(2, 78, 140, 0.065);
  color: var(--ui-primary);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
}

.license-form .license-category-chip.is-legacy {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(217, 119, 6, 0.07);
  color: #92560a;
}

.license-form .license-category-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.license-form .license-category-chip > i {
  flex: 0 0 auto;
}

.license-form .license-category-chip:hover,
.license-form .license-category-chip:focus-visible {
  border-color: var(--ui-primary);
  background: rgba(2, 78, 140, 0.12);
  outline: none;
}

.license-detail-category-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.license-detail-category-list > span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.6rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(2, 78, 140, 0.18);
  border-radius: 999px;
  background: rgba(2, 78, 140, 0.055);
  color: var(--ui-primary);
  font-size: 0.67rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  .license-form .form-control.license-category-trigger,
  .license-form .license-category-search-row .form-control {
    min-height: 2rem;
  }

  .license-form .license-category-menu-actions .btn-link,
  .license-form .license-category-option {
    min-height: 2.15rem;
  }

  .license-form .license-category-chip {
    min-height: 1.75rem;
  }
}

.license-form textarea.form-control {
  min-height: 2.8rem;
}

.license-form .license-item-grid-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.license-form .readonly-license-item-table {
  min-width: 82rem;
  font-size: 0.875rem;
}

.license-form .readonly-license-item-table th,
.license-form .readonly-license-item-table td {
  padding: 0.34rem 0.38rem;
}

.license-form .readonly-license-item-table th {
  height: 3.75rem;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.license-form .readonly-license-item-table td {
  font-size: 0.875rem;
}

.license-form .readonly-cell {
  min-height: 1.05rem;
  line-height: 1.15;
}

.license-form .document-upload-grid.simple-upload-grid {
  gap: 0.45rem;
}

.license-form .license-document-upload-grid .upload-card {
  min-width: 0;
}

.license-form .license-document-upload-grid .upload-card.required {
  border-left: 0.2rem solid var(--lsea-danger);
}

.license-form .simple-upload-grid .upload-card {
  padding: 0.55rem;
}

.license-form .simple-upload-grid .upload-card h4 {
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.15;
}

.license-form .license-document-file-control {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.18rem;
  overflow: hidden;
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-form .license-document-file-control::file-selector-button {
  min-height: 2.35rem;
  margin: -0.18rem 0.45rem -0.18rem -0.18rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-right: 1px solid var(--ui-border);
  border-radius: 0.35rem 0 0 0.35rem;
  background: var(--ui-panel-soft);
  color: var(--ui-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.license-form .license-document-file-control:hover::file-selector-button {
  background: color-mix(in srgb, var(--ui-primary) 10%, var(--ui-panel-soft));
}

.license-form .license-document-file-control:focus-visible {
  outline: 0.14rem solid color-mix(in srgb, var(--ui-primary) 34%, transparent);
  outline-offset: 0.08rem;
}

.license-form .license-document-status {
  display: block;
  margin-top: 0.25rem;
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.license-form .license-document-status::before {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.license-form .license-document-status.is-uploaded {
  color: #157347;
}

.license-form .license-document-status.is-missing {
  color: #9a6700;
}

.license-form .license-document-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

/* Membership MC review */
.membership-mc-queue-page,
.membership-mc-summary,
.membership-mc-decision-surface {
  min-width: 0;
}

.membership-mc-queue-page .data-grid-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.membership-mc-queue-page .operational-data-grid {
  min-width: 44rem;
}

.membership-mc-queue-page .data-grid-row-number {
  box-sizing: border-box;
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  text-align: center;
  white-space: nowrap;
}

.membership-mc-queue-page .data-grid-actions {
  white-space: nowrap;
}

.membership-mc-queue-page .data-grid-action-button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.mc-review-grid-primary,
.mc-review-grid-decision {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.mc-review-grid-primary strong,
.mc-review-grid-decision small {
  overflow-wrap: anywhere;
}

.mc-review-grid-primary small,
.mc-review-grid-decision small {
  color: var(--ui-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.mc-review-grid-decision {
  justify-items: start;
}

.mc-review-quick-open {
  width: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.membership-mc-review-modal {
  z-index: 1095 !important;
}

.membership-mc-review-modal.show {
  display: block;
}

.membership-mc-review-modal .modal-dialog {
  z-index: 1096;
  width: min(calc(100% - 1rem), 36rem);
  max-width: 36rem;
  margin: 0.5rem auto;
  pointer-events: auto;
}

.membership-mc-review-modal .modal-content {
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: 0 1.25rem 3rem rgba(15, 42, 65, 0.2);
}

.membership-mc-review-modal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-bottom-color: var(--ui-border);
  background: linear-gradient(135deg, rgba(2, 78, 140, 0.08), transparent 62%), #fff;
}

.membership-mc-modal-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.membership-mc-modal-heading > div {
  min-width: 0;
}

.membership-mc-modal-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.3rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.6rem;
  background: rgba(2, 78, 140, 0.1);
  color: var(--ui-primary);
}

.membership-mc-modal-heading h2 {
  margin: 0.08rem 0 0;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 850;
}

.membership-mc-modal-heading p {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ui-muted);
  font-size: 0.74rem;
}

.membership-mc-review-modal .modal-body {
  display: grid;
  gap: 0.7rem;
  min-height: 0;
  padding: 0.8rem 0.9rem;
  overflow-y: auto;
  background: #f8fafc;
}

.membership-mc-modal-summary,
.membership-mc-modal-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.membership-mc-modal-summary > div,
.membership-mc-modal-facts > div,
.membership-mc-modal-note {
  min-width: 0;
  padding: 0.58rem 0.65rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.membership-mc-modal-summary span,
.membership-mc-modal-facts dt,
.membership-mc-modal-note > span {
  display: block;
  color: var(--ui-muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.membership-mc-modal-summary strong,
.membership-mc-modal-facts dd {
  display: block;
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ui-heading);
  font-size: 0.8rem;
  font-weight: 800;
}

.membership-mc-modal-note p {
  margin: 0.28rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ui-heading);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Metadata-driven report catalogue and compact report results. */
.report-catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.55rem;
}

.report-catalog-search {
  position: relative;
  min-width: 0;
}

.report-catalog-search i {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  z-index: 1;
  color: var(--ui-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.report-catalog-search .form-control {
  min-height: 2.75rem;
  padding-left: 2.35rem;
  font-size: 0.875rem;
}

.report-category-filters {
  display: flex;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.report-category-filters .btn {
  flex: 0 0 auto;
  min-height: 2.1rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--ui-muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-category-filters .btn.active {
  border-color: var(--ui-primary);
  background: var(--ui-primary-soft);
  color: var(--ui-primary);
}

.report-catalog-group {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.report-catalog-panel {
  padding: 0.8rem;
  border: 1px solid rgba(1, 85, 155, 0.12);
  border-radius: var(--ui-radius-lg, 0.9rem);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.report-catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.report-catalog-heading h2 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.9rem;
}

.report-catalog-heading span,
.report-card-id {
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.report-card-id {
  color: var(--ui-primary) !important;
  letter-spacing: 0.04em;
}

.template-report-page,
.template-report-page > *,
.template-report-table-wrapper {
  min-width: 0;
  max-width: 100%;
}

.template-report-page .report-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.template-report-page .report-filter-grid .form-group {
  min-width: 0;
  margin: 0;
}

.template-report-page .report-filter-grid .form-label {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.8rem;
  font-weight: 750;
}

.template-report-page .report-filter-grid .form-control,
.template-report-page .report-filter-grid .form-select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
}

.compact-report-alert {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
}

.template-report-table-wrapper {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: auto;
  -webkit-overflow-scrolling: touch;
}

.template-report-table {
  width: 100% !important;
  min-width: 92rem;
  table-layout: fixed;
  border-collapse: collapse;
}

.template-report-table th,
.template-report-table td {
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #d8e2ef;
}

.template-report-table td {
  font-size: 0.8rem;
}

.template-report-table th:last-child,
.template-report-table td:last-child {
  border-right: 0;
}

.template-report-table .report-row-number {
  box-sizing: border-box;
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  text-align: center;
  white-space: nowrap;
}

.template-report-table .status-badge {
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  line-height: 1.2;
}

.report-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
}

.report-sort-link i {
  color: #94a3b8;
  font-size: 0.68rem;
}

.report-sort-link.active,
.report-sort-link.active i {
  color: var(--ui-primary);
}

.report-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.report-export-actions .btn,
.template-report-page .report-filter-toggle,
.template-report-page .report-filter-actions .btn {
  min-height: 2.1rem;
}

@media (min-width: 768px) {
  .report-catalog-tools {
    grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
  }

  .report-catalog-search .form-control,
  .report-category-filters .btn {
    min-height: 2.4rem;
  }

  .template-report-page .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .report-center-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .template-report-page .report-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-catalog-search .form-control,
  .report-category-filters .btn,
  .template-report-page .report-filter-grid .form-control,
  .template-report-page .report-filter-grid .form-select,
  .report-export-actions .btn,
  .template-report-page .report-filter-toggle,
  .template-report-page .report-filter-actions .btn {
    min-height: 2.1rem;
  }
}

@media (min-width: 1200px) {
  .report-center-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.membership-mc-modal-review-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.membership-mc-modal-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.65rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.membership-mc-modal-review-item > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.membership-mc-modal-review-item strong,
.membership-mc-modal-review-item small,
.membership-mc-modal-review-item p,
.membership-mc-modal-review-item time {
  overflow-wrap: anywhere;
}

.membership-mc-modal-review-item strong {
  color: var(--ui-heading);
  font-size: 0.875rem;
}

.membership-mc-modal-review-item small,
.membership-mc-modal-review-item time {
  color: var(--ui-muted);
  font-size: 0.875rem;
}

.membership-mc-modal-review-item p,
.membership-mc-modal-review-item time {
  grid-column: 1 / -1;
}

.membership-mc-modal-review-item p {
  margin: 0.15rem 0 0;
  color: var(--ui-heading);
  font-size: 0.875rem;
  line-height: 1.45;
}

.membership-mc-review-modal .modal-footer {
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-top-color: var(--ui-border);
}

.membership-mc-review-modal .modal-footer .btn {
  min-height: 2.75rem;
  justify-content: center;
}

@media (min-width: 576px) {
  .membership-mc-review-modal .modal-dialog {
    width: min(calc(100% - 2rem), 36rem);
    margin: 1rem auto;
  }

  .membership-mc-review-modal .modal-content {
    max-height: calc(100dvh - 2rem);
  }

  .membership-mc-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-mc-modal-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-height: 680px) {
  .membership-mc-review-modal .modal-header,
  .membership-mc-review-modal .modal-footer {
    padding-block: 0.62rem;
  }

  .membership-mc-review-modal .modal-body {
    gap: 0.5rem;
    padding-block: 0.62rem;
  }
}

.membership-mc-summary-grid,
.membership-mc-decision-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem;
}

.membership-mc-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.8rem 1rem 0;
}

.membership-mc-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.membership-mc-totals span {
  color: var(--ui-muted);
  font-size: 0.875rem;
  font-weight: 750;
}

.membership-mc-totals strong {
  color: var(--ui-heading);
  font-size: 1rem;
}

.membership-mc-totals .approved strong {
  color: var(--lsea-success);
}

.membership-mc-totals .rejected strong {
  color: var(--lsea-danger);
}

.membership-mc-totals .pending strong {
  color: #9a6700;
}

.membership-mc-review-records {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.8rem 1rem 1rem;
}

.membership-mc-review-record {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.membership-mc-review-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.membership-mc-review-record-head > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.membership-mc-review-record-head strong,
.membership-mc-review-record-head small,
.membership-mc-review-record p {
  overflow-wrap: anywhere;
}

.membership-mc-review-record-head strong {
  color: var(--ui-heading);
  font-size: 0.875rem;
}

.membership-mc-review-record-head small,
.membership-mc-review-record-meta {
  color: var(--ui-muted);
  font-size: 0.875rem;
}

.membership-mc-review-record p {
  margin: 0;
  color: var(--ui-heading);
  font-size: 0.875rem;
  line-height: 1.45;
}

.membership-mc-summary-grid .membership-mc-note {
  min-width: 0;
}

.membership-mc-summary-grid .membership-mc-note strong {
  overflow-wrap: anywhere;
}

.membership-mc-decision-form {
  padding: 1rem;
}

.membership-mc-decision-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.membership-mc-decision-footer > span {
  color: var(--lsea-text-muted, #64748b);
  font-size: 0.875rem;
}

.membership-mc-decision-footer .btn {
  min-height: 2.75rem;
}

@media (min-width: 768px) {
  .membership-mc-totals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .membership-mc-review-records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-mc-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-mc-summary-grid .membership-mc-note {
    grid-column: 1 / -1;
  }

  .membership-mc-decision-form {
    padding: 1.25rem;
  }

  .membership-mc-decision-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.license-form .license-document-template-link {
  display: inline-flex;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0;
  max-width: 100%;
  white-space: nowrap;
}

.license-form .simple-crud-footer {
  padding: 0.5rem;
}

@media (min-width: 576px) {
  .license-form .form-row-grid.two,
  .license-form .form-row-grid.three,
  .license-form .form-row-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-item-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .license-form .form-row-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .license-form .form-row-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .license-form .surface-header.simple-crud-toolbar .page-actions,
  .license-form .surface-header.simple-crud-toolbar .btn,
  .license-form .simple-crud-footer .btn {
    width: 100%;
  }

  .license-form .license-item-grid-wrap {
    overflow: visible;
  }

  .license-form .readonly-license-item-table,
  .license-form .readonly-license-item-table tbody,
  .license-form .readonly-license-item-table tr,
  .license-form .readonly-license-item-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .license-form .readonly-license-item-table {
    margin: 0;
  }

  .license-form .readonly-license-item-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .license-form .readonly-license-item-table tr[data-license-item-row] {
    margin-bottom: 0.75rem;
    padding: 0.7rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    background: #fff;
    box-shadow: 0 0.35rem 1rem rgba(15, 42, 65, 0.06);
  }

  .license-form .readonly-license-item-table td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.4rem 0;
    border: 0;
  }

  .license-form .readonly-license-item-table td::before {
    content: attr(data-label);
    align-self: start;
    padding-top: 0.55rem;
    color: var(--ui-muted);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .license-form .readonly-license-item-table td[data-label="Item"] {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 0 0.45rem;
    border-bottom: 1px solid var(--ui-border);
    color: var(--ui-primary);
    font-weight: 800;
  }

  .license-form .readonly-license-item-table td[data-label="Item"]::before {
    content: "Product row";
    padding: 0;
  }

  .license-form .readonly-license-item-table td[data-label="Actions"] {
    grid-template-columns: 1fr auto;
    padding-bottom: 0;
  }

  .license-form .readonly-license-item-table td[data-label="Actions"] .btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .license-form .readonly-license-item-table tr[data-empty-license-items] td {
    display: block;
    padding: 1rem;
    text-align: center;
  }

  .license-form .readonly-license-item-table tr[data-empty-license-items] td::before {
    content: none;
  }
}

/* My Documents: compact member document list. */
.document-center-page,
.unified-shell .document-center-page {
  width: min(100%, 1320px);
  max-width: 100%;
  min-width: 0;
  gap: 0.55rem;
}

.document-center-surface {
  min-width: 0;
  padding: 0.72rem;
}

.document-center-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  min-width: min(100%, 22rem);
}

.document-center-metrics div {
  min-width: 0;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: rgba(248, 250, 252, 0.9);
}

.document-center-metrics span {
  display: block;
  color: var(--ui-muted);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.document-center-metrics strong {
  display: block;
  margin-top: 0.1rem;
  color: var(--ui-heading);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.document-center-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  scrollbar-gutter: stable;
}

.document-center-table {
  min-width: 68rem;
  margin-bottom: 0;
  table-layout: fixed;
}

.document-center-table th,
.document-center-table td {
  padding: 0.42rem 0.5rem;
  vertical-align: middle;
}

.document-center-table th {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.68rem;
  line-height: 1.15;
}

.document-center-table td {
  font-size: 0.74rem;
}

.document-center-table th:nth-child(1),
.document-center-table td:nth-child(1) {
  width: 17rem;
}

.document-center-table th:nth-child(2),
.document-center-table td:nth-child(2) {
  width: 15rem;
}

.document-center-table th:nth-child(3),
.document-center-table td:nth-child(3) {
  width: 8rem;
}

.document-center-table th:nth-child(4),
.document-center-table td:nth-child(4),
.document-center-table th:nth-child(5),
.document-center-table td:nth-child(5),
.document-center-table th:nth-child(6),
.document-center-table td:nth-child(6) {
  width: 7rem;
}

.document-center-table th:last-child,
.document-center-table td:last-child {
  width: 11.5rem;
}

.document-title-cell,
.document-owner-cell {
  min-width: 0;
}

.document-title-cell strong,
.document-owner-cell strong {
  display: block;
  min-width: 0;
  color: var(--ui-heading);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.document-title-cell small,
.document-owner-cell small,
.document-title-cell span {
  display: block;
  min-width: 0;
  margin-top: 0.1rem;
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-title-cell span {
  color: var(--ui-primary);
  font-weight: 800;
}

.document-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid rgba(1, 85, 155, 0.18);
  border-radius: 999px;
  background: rgba(234, 243, 250, 0.9);
  color: var(--ui-primary);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.1;
}

.document-actions {
  justify-content: flex-end;
  gap: 0.35rem;
}

.document-action-cell {
  white-space: nowrap;
}

.document-action-icon {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 0.82rem;
}

.document-action-icon.primary {
  border-color: rgba(1, 85, 155, 0.22);
  color: var(--ui-primary);
}

.document-action-icon.primary:hover {
  border-color: rgba(1, 85, 155, 0.36);
  background: rgba(1, 85, 155, 0.08);
}

@media (min-width: 768px) {
  .document-center-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .document-center-surface .surface-header.simple-crud-toolbar {
    align-items: stretch;
  }

  .document-center-metrics {
    min-width: 0;
  }
}

/* Member-owned workspaces: one next step per record with mobile card reading order. */
.member-workspace-page,
.unified-shell .member-workspace-page {
  width: min(100%, 1440px);
  max-width: 100%;
  min-width: 0;
}

.member-workspace-surface {
  min-width: 0;
}

.member-workspace-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.member-workspace-metrics > div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel-soft);
}

.member-workspace-metrics > div.needs-action {
  border-color: rgba(180, 83, 9, 0.35);
  background: #fff8e8;
}

.member-workspace-metrics span,
.member-workspace-metrics strong {
  display: block;
}

.member-workspace-metrics span {
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
}

.member-workspace-metrics strong {
  margin-top: 0.15rem;
  color: var(--ui-heading);
  font-size: 1.1rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.member-work-table-wrap {
  max-width: 100%;
  overflow: visible;
  border: 0;
}

.responsive-summary-table,
.responsive-summary-table tbody,
.responsive-summary-table tr,
.responsive-summary-table td {
  display: block;
  width: 100%;
  min-width: 0;
}

.responsive-summary-table {
  margin: 0;
  table-layout: auto;
}

.responsive-summary-table.document-center-table {
  min-width: 0;
}

.responsive-summary-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.responsive-summary-table tbody tr {
  margin-bottom: 0.75rem;
  padding: 0.7rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: #fff;
  box-shadow: 0 0.35rem 1rem rgba(15, 42, 65, 0.06);
}

.responsive-summary-table tbody td {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  color: var(--ui-text);
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: left !important;
  overflow-wrap: anywhere;
}

.responsive-summary-table tbody td + td {
  border-top: 1px solid rgba(217, 226, 236, 0.75);
}

.responsive-summary-table tbody td::before {
  content: attr(data-label);
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.3;
}

.responsive-summary-table tbody td strong,
.responsive-summary-table tbody td small {
  display: block;
}

.responsive-summary-table tbody td small {
  margin-top: 0.15rem;
  color: var(--ui-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.responsive-summary-table tbody td[data-label="Action"] {
  grid-template-columns: 1fr;
  padding-bottom: 0;
}

.responsive-summary-table tbody td[data-label="Action"]::before {
  margin-bottom: -0.15rem;
}

.responsive-summary-table tbody td[data-label="Action"] .btn:not(.row-icon-action),
.responsive-summary-table tbody td[data-label="Action"] .member-next-action:not(.row-icon-action) {
  width: 100%;
  min-height: 2.75rem;
}

.responsive-summary-table tbody .empty-table-cell {
  display: block;
  min-height: 0;
  padding: 1rem;
  color: var(--ui-muted);
  text-align: center !important;
}

.responsive-summary-table tbody .empty-table-cell::before {
  content: none;
}

.member-next-action {
  white-space: normal;
}

.operational-data-grid thead th,
.dt-scroll-head thead th {
  background: #f4f8fb;
  color: var(--ui-heading);
  font-size: 0.75rem;
  line-height: 1.25;
}

.dt-scroll-body {
  max-width: 100%;
  /* DataTables already measures and compensates for the vertical scrollbar.
     Reserving a stable gutter here subtracts the scrollbar twice and makes
     cloned header columns narrower than the body cells. */
  scrollbar-gutter: auto;
}

@media (min-width: 768px) {
  .member-workspace-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .member-work-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
    scrollbar-gutter: stable;
  }

  .responsive-summary-table {
    display: table;
    width: 100%;
    min-width: 68rem;
    margin-bottom: 0;
    table-layout: auto;
  }

  .responsive-summary-table.document-center-table {
    min-width: 68rem;
  }

  .responsive-summary-table thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .responsive-summary-table tbody {
    display: table-row-group;
  }

  .responsive-summary-table tbody tr {
    display: table-row;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .responsive-summary-table tbody td {
    display: table-cell;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0.55rem;
    border-top: 1px solid var(--ui-border);
    font-size: 0.875rem;
    text-align: inherit !important;
    vertical-align: middle;
  }

  .responsive-summary-table tbody td::before {
    content: none;
  }

  .responsive-summary-table tbody td[data-label="Action"] {
    display: table-cell;
    white-space: nowrap;
  }

  .responsive-summary-table tbody td[data-label="Action"] .btn,
  .responsive-summary-table tbody td[data-label="Action"] .member-next-action {
    width: auto;
    min-height: 2.25rem;
  }

  .responsive-summary-table tbody .empty-table-cell {
    display: table-cell;
    padding: 1.25rem;
  }
}

.shared-confirmation-modal {
  z-index: 1095 !important;
}

.shared-confirmation-modal.show {
  display: block;
}

.shared-confirmation-modal .modal-dialog {
  z-index: 1096;
  width: min(calc(100% - 1.5rem), 31rem);
  max-width: 31rem;
  margin-inline: auto;
  pointer-events: auto;
}

.shared-confirmation-modal .modal-content {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: 0 1.25rem 3rem rgba(15, 42, 65, 0.2);
}

.shared-confirmation-modal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.shared-confirmation-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.shared-confirmation-icon {
  width: 2.4rem;
  min-width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 0.68rem;
  background: rgba(2, 78, 140, 0.09);
  color: var(--ui-primary);
}

.shared-confirmation-modal[data-confirm-tone="success"] .shared-confirmation-icon {
  background: rgba(22, 142, 93, 0.1);
  color: var(--lsea-success);
}

.shared-confirmation-modal[data-confirm-tone="warning"] .shared-confirmation-icon {
  background: rgba(212, 154, 33, 0.12);
  color: #a86f00;
}

.shared-confirmation-modal[data-confirm-tone="danger"] .shared-confirmation-icon {
  background: rgba(206, 56, 68, 0.09);
  color: var(--lsea-danger);
}

.shared-confirmation-modal .modal-title {
  margin: 0;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.shared-confirmation-modal .modal-body {
  padding: 1rem;
}

.shared-confirmation-modal .modal-body p {
  margin: 0;
  color: var(--ui-text);
  font-size: 0.875rem;
  line-height: 1.5;
}

.shared-confirmation-loading {
  min-height: 118px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.65rem;
  text-align: center;
}

.shared-confirmation-loading .spinner-border {
  width: 2.25rem;
  height: 2.25rem;
}

.shared-confirmation-loading strong {
  color: #14532d;
}

.shared-confirmation-loading > span:last-child {
  color: #64748b;
  font-size: 0.9rem;
}

.shared-confirmation-note {
  margin-top: 0.75rem;
  padding: 0.62rem 0.68rem;
  border: 1px solid var(--ui-border);
  border-left: 3px solid var(--ui-primary);
  border-radius: var(--ui-radius-sm);
  background: #f8fafc;
}

.shared-confirmation-modal[data-confirm-tone="success"] .shared-confirmation-note {
  border-left-color: var(--lsea-success);
}

.shared-confirmation-modal[data-confirm-tone="danger"] .shared-confirmation-note {
  border-left-color: var(--lsea-danger);
}

.shared-confirmation-note > span {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--ui-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shared-confirmation-note p {
  max-height: 7rem;
  overflow-y: auto;
  color: var(--ui-heading) !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  white-space: pre-wrap;
}

.shared-confirmation-modal .modal-footer {
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top-color: var(--ui-border);
  background: #fbfcfe;
}

.shared-confirmation-modal .modal-footer .btn {
  min-height: 2.35rem;
  font-size: 0.75rem;
  font-weight: 850;
}

@media (max-width: 575.98px) {
  .shared-confirmation-modal .modal-dialog {
    width: calc(100% - 1rem);
    margin: 0.5rem;
  }

  .shared-confirmation-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shared-confirmation-modal .modal-footer .btn {
    width: 100%;
    min-height: 2.75rem;
  }
}

/* Release A: trustworthy shared-shell behavior and accessible navigation. */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 0.9rem;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-heading);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

body.lsea-drawer-open {
  overflow: hidden;
}

.lsea-content:focus {
  outline: none;
}

.notification-menu .dropdown-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.notification-menu .dropdown-header small {
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.notification-item {
  align-items: flex-start;
}

.notification-item > span:last-child {
  min-width: 0;
}

.notification-item strong,
.notification-item small {
  display: block;
}

.notification-item strong {
  color: var(--ui-heading);
  font-size: 0.875rem;
  line-height: 1.3;
}

.notification-item small {
  margin-top: 0.2rem;
  color: var(--ui-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notification-item.unread {
  background: rgba(2, 78, 140, 0.06);
}

.notification-item-icon {
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ui-primary);
  color: #fff;
}

.notification-empty {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  color: var(--ui-muted);
  text-align: center;
}

.notification-empty i {
  font-size: 1.25rem;
}

.notification-empty strong {
  color: var(--ui-heading);
  font-size: 0.875rem;
}

.notification-empty span {
  font-size: 0.75rem;
}

.admin-search[hidden] {
  display: none !important;
}

@media (max-width: 991.98px) {
  .topbar-toggle,
  .icon-button,
  .notification-button,
  .topbar-account-chip {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .admin-side-nav a {
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .lsea-sidebar,
  .lsea-topbar,
  .lsea-main,
  .btn,
  .icon-button,
  .notification-button,
  .topbar-toggle {
    transition: none !important;
  }
}

/* Tracker and document grids: compact ledger layout without nested scrollers. */
.tracker-grid-wrap,
.document-member-grid-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tracker-data-grid,
.document-center-page .responsive-summary-table.document-data-grid {
  min-width: 0;
  table-layout: auto;
}

.document-center-page .responsive-summary-table.document-data-grid tbody td {
  width: 100%;
  max-width: none;
}

.data-grid-cell-stack {
  min-width: 0;
}

.tracker-reference-cell small,
.tracker-owner-cell small {
  color: var(--ui-muted);
  font-size: 0.8125rem;
}

.tracker-progress-cell .status-badge {
  max-width: 100%;
  white-space: normal;
}

.tracker-next-step-cell .data-grid-cell-stack > span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.tracker-next-step-cell .data-grid-cell-stack > strong {
  font-size: 0.875rem;
  line-height: 1.35;
}

.document-reference-cell a {
  color: var(--ui-primary);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.document-reference-cell a:hover,
.document-reference-cell a:focus-visible {
  text-decoration: underline;
}

.document-context-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.document-context-stack .status-badge,
.document-context-stack .document-type-badge {
  max-width: 100%;
  white-space: normal;
}

.document-center-datatable-host {
  max-width: 100%;
  overflow: visible;
  border: 0;
}

.document-center-datatable-host .dt-container,
.document-center-datatable-host .dt-layout-row,
.document-center-datatable-host .dt-layout-cell {
  min-width: 0;
  max-width: 100%;
}

.document-center-datatable-host .dt-scroll {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
}

.document-center-datatable-host .document-data-grid {
  width: 100%;
  min-width: 76rem;
  table-layout: auto;
}

.document-center-datatable-host .document-data-grid th,
.document-center-datatable-host .document-data-grid td {
  width: auto;
  padding: 0.6rem;
  font-size: 0.7125rem;
}

.document-center-datatable-host .document-data-grid th {
  font-size: 0.75rem;
  line-height: 1.25;
}

.document-center-datatable-host .document-data-grid th:nth-child(1),
.document-center-datatable-host .document-data-grid td:nth-child(1) {
  width: 4rem;
}

.document-center-datatable-host .document-data-grid th:nth-child(2),
.document-center-datatable-host .document-data-grid td:nth-child(2) {
  width: 17rem;
}

.document-center-datatable-host .document-data-grid th:nth-child(3),
.document-center-datatable-host .document-data-grid td:nth-child(3) {
  width: 14rem;
}

.document-center-datatable-host .document-data-grid th:nth-child(4),
.document-center-datatable-host .document-data-grid td:nth-child(4) {
  width: 11rem;
}

.document-center-datatable-host .document-data-grid th:nth-child(5),
.document-center-datatable-host .document-data-grid td:nth-child(5) {
  width: 12rem;
}

.document-center-datatable-host .document-data-grid th:nth-child(6),
.document-center-datatable-host .document-data-grid td:nth-child(6) {
  width: 9rem;
}

.document-center-datatable-host .document-data-grid th:nth-child(7),
.document-center-datatable-host .document-data-grid td:nth-child(7) {
  width: 9rem;
}

@media (min-width: 768px) {
  .tracker-grid-wrap,
  .document-member-grid-wrap {
    overflow-x: auto;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
    scrollbar-gutter: stable;
  }

  .tracker-data-grid {
    width: 100%;
    min-width: 56rem;
    table-layout: fixed;
  }

  .tracker-data-grid thead th,
  .document-center-page .responsive-summary-table.document-data-grid thead th {
    padding: 0.65rem;
    color: var(--ui-heading);
    font-size: 0.75rem;
    line-height: 1.25;
    white-space: normal;
  }

  .tracker-data-grid tbody td,
  .document-center-page .responsive-summary-table.document-data-grid tbody td {
    padding: 0.65rem;
    font-size: 0.875rem;
  }

  .tracker-data-grid .tracker-reference-column,
  .tracker-data-grid .tracker-reference-cell {
    width: 16%;
  }

  .tracker-data-grid .tracker-owner-column,
  .tracker-data-grid .tracker-owner-cell {
    width: 26%;
  }

  .tracker-data-grid .tracker-progress-column,
  .tracker-data-grid .tracker-progress-cell {
    width: 15%;
  }

  .tracker-data-grid .tracker-next-step-column,
  .tracker-data-grid .tracker-next-step-cell {
    width: 23%;
  }

  .tracker-data-grid .tracker-action-column,
  .tracker-data-grid .lsea-action-column {
    width: 13%;
  }

  .document-center-page .responsive-summary-table.document-data-grid {
    width: 100%;
    min-width: 60rem;
    table-layout: fixed;
  }

  .document-center-page .responsive-summary-table.document-data-grid th,
  .document-center-page .responsive-summary-table.document-data-grid td {
    width: auto;
  }

  .document-center-page .responsive-summary-table.document-data-grid th:nth-child(1),
  .document-center-page .responsive-summary-table.document-data-grid td:nth-child(1) {
    width: 24%;
  }

  .document-center-page .responsive-summary-table.document-data-grid th:nth-child(2),
  .document-center-page .responsive-summary-table.document-data-grid td:nth-child(2) {
    width: 20%;
  }

  .document-center-page .responsive-summary-table.document-data-grid th:nth-child(3),
  .document-center-page .responsive-summary-table.document-data-grid td:nth-child(3) {
    width: 12%;
  }

  .document-center-page .responsive-summary-table.document-data-grid th:nth-child(4),
  .document-center-page .responsive-summary-table.document-data-grid td:nth-child(4) {
    width: 15%;
  }

  .document-center-page .responsive-summary-table.document-data-grid th:nth-child(5),
  .document-center-page .responsive-summary-table.document-data-grid td:nth-child(5) {
    width: 11%;
  }

  .document-center-page .responsive-summary-table.document-data-grid th:nth-child(6),
  .document-center-page .responsive-summary-table.document-data-grid td:nth-child(6) {
    width: 18%;
  }

  .document-data-grid .document-actions {
    flex-wrap: nowrap;
  }
}

@media (min-width: 1200px) {
  .tracker-data-grid,
  .document-center-page .responsive-summary-table.document-data-grid {
    min-width: 0;
  }
}

/* Applicant, member, and operations actors share the same stable DataTables grid. */
.workflow-datatable-host {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  border: 0;
}

.workflow-datatable-host .dt-container,
.workflow-datatable-host .dt-layout-row,
.workflow-datatable-host .dt-layout-cell,
.workflow-datatable-host .dt-scroll,
.workflow-datatable-host .dt-scroll-head,
.workflow-datatable-host .dt-scroll-body {
  min-width: 0;
  max-width: 100%;
}

.workflow-datatable-host .dt-scroll {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.workflow-datatable-host .dt-scroll-body {
  overflow-x: auto !important;
  overscroll-behavior-inline: contain;
}

.workflow-datatable-host .tracker-data-grid {
  width: 100%;
  min-width: 56rem;
  table-layout: fixed;
}

.workflow-datatable-host .document-data-grid {
  width: 100%;
  min-width: 64rem;
  table-layout: auto;
}

.workflow-datatable-host .tracker-data-grid thead th,
.workflow-datatable-host .document-data-grid thead th {
  padding: 0.65rem;
  color: var(--ui-heading);
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: normal;
}

.workflow-datatable-host .tracker-data-grid tbody td,
.workflow-datatable-host .document-data-grid tbody td {
  padding: 0.65rem;
  font-size: 0.875rem;
  vertical-align: middle;
}

.workflow-datatable-host .tracker-data-grid tbody tr:hover,
.workflow-datatable-host .document-data-grid tbody tr:hover {
  background: rgba(2, 78, 140, 0.035);
}

@media (max-width: 767.98px) {
  .workflow-datatable-host .lsea-grid-controls,
  .workflow-datatable-host .lsea-grid-footer {
    align-items: stretch;
  }

  .workflow-datatable-host .lsea-grid-footer {
    gap: 0.65rem;
  }

  .workflow-datatable-host .document-actions {
    flex-wrap: nowrap;
  }

  .workflow-datatable-host .document-actions .btn,
  .workflow-datatable-host .document-action-icon,
  .workflow-datatable-host .member-next-action {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

/* License details: compact membership-review visual language. */
.license-detail-page {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

.license-detail-page > *,
.license-detail-page .work-surface,
.license-detail-page .surface-header,
.license-detail-page .detail-highlight-grid,
.license-detail-page .review-metric-strip,
.license-detail-page .simple-detail-list,
.license-detail-page .document-review-grid,
.license-detail-page .document-review-card,
.license-detail-page .document-file-list,
.license-detail-page .document-file-row,
.license-detail-page .admin-review-surface,
.license-detail-page .admin-review-layout,
.license-detail-page .admin-review-lane,
.license-detail-page .admin-review-action-list,
.license-detail-page .admin-review-action-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.license-detail-page .surface-header > *,
.license-detail-page .admin-review-header > *,
.license-detail-page .admin-review-heading > div {
  min-width: 0;
  max-width: 100%;
}

.license-detail-page .surface-header h2,
.license-detail-page .surface-header p,
.license-detail-page .admin-review-header h2,
.license-detail-page .admin-review-header p {
  overflow-wrap: anywhere;
}

.license-detail-page .surface-header {
  margin-bottom: 0.55rem;
}

.license-detail-page .license-detail-note {
  align-content: start;
}

.license-detail-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.license-detail-items-table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
}

.license-detail-items-table thead {
  display: none;
}

.license-detail-items-table tbody {
  display: grid;
  gap: 0.55rem;
}

.license-detail-items-table tbody tr {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  box-shadow: 0 0.2rem 0.6rem rgba(15, 23, 42, 0.035);
}

.license-detail-items-table tbody td {
  display: grid !important;
  grid-template-columns: minmax(7.4rem, 0.42fr) minmax(0, 1fr);
  gap: 0.55rem;
  min-width: 0;
  padding: 0.48rem 0.55rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(217, 226, 236, 0.74) !important;
  color: var(--ui-heading);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left !important;
  overflow-wrap: anywhere;
}

.license-detail-items-table tbody td:last-child {
  border-bottom: 0 !important;
}

.license-detail-items-table tbody td::before {
  content: attr(data-label);
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.license-detail-items-table .license-detail-empty-row td {
  display: block !important;
  padding: 1rem !important;
  text-align: center !important;
}

.license-detail-items-table .license-detail-empty-row td::before {
  display: none;
}

.license-review-inline-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.28rem;
  min-width: 0;
}

.license-review-inline-field label {
  color: var(--ui-heading);
  font-size: 0.7rem;
  font-weight: 800;
}

.license-review-inline-field label small {
  color: var(--ui-muted);
  font-size: 0.65rem;
  font-weight: 650;
}

.license-review-inline-field label > span {
  color: var(--lsea-danger);
}

.license-review-inline-field .form-control {
  width: 100%;
  min-height: 2.75rem;
}

.license-detail-page .page-actions .btn,
.license-detail-page .document-file-row .btn {
  max-width: 100%;
  min-height: 2.75rem;
  justify-content: center;
  white-space: normal;
}

.license-detail-page .document-file-row > span,
.license-detail-page .admin-review-action-copy,
.license-detail-page .admin-review-action-copy h4,
.license-detail-page .admin-review-action-copy p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.license-detail-page .document-file-row > div {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.license-detail-page .admin-review-action-card > .btn {
  max-width: 100%;
  white-space: normal;
}

.license-detail-page .admin-review-layout.single-lane {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- License detail documents: compact review states ---------- */
.license-detail-page .application-documents-surface .surface-header {
  margin-bottom: 0.45rem;
}

.license-detail-page .application-documents-surface .document-review-grid {
  gap: 0.4rem;
}

.license-detail-page .application-documents-surface .document-review-card {
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-left-width: 3px;
}

.license-detail-page .application-documents-surface .document-review-head {
  align-items: center;
}

.license-detail-page .application-documents-surface .document-review-head > span {
  color: var(--ui-heading);
  font-size: 0.72rem;
  line-height: 1.2;
  text-transform: none;
}

.license-detail-page .application-documents-surface .document-review-status {
  flex: 0 0 auto;
  min-height: 1.35rem;
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.05;
}

.license-detail-page .application-documents-surface .document-review-status.uploaded {
  color: #166534;
  background: #dcfce7;
}

.license-detail-page .application-documents-surface .document-review-status.missing {
  color: #991b1b;
  background: #fee2e2;
}

.license-detail-page .application-documents-surface .document-file-list {
  gap: 0.25rem;
}

.license-detail-page .application-documents-surface .document-file-row {
  gap: 0.3rem;
  padding-top: 0.4rem;
}

.license-detail-page .application-documents-surface .document-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.license-detail-page .application-documents-surface .document-file-action {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0.35rem;
}

@media (min-width: 768px) {
  .license-detail-page .application-documents-surface .document-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- License master-data comparison ---------- */
.license-master-check-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.license-master-check-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: rgba(248, 250, 252, 0.88);
}

.license-master-check-summary span {
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.license-master-check-summary strong {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.license-master-check-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.license-master-check-table {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
}

.license-master-check-table thead {
  display: none;
}

.license-master-check-table tbody {
  display: grid;
  gap: 0.55rem;
}

.license-master-check-table tbody tr {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.license-master-check-table tbody td {
  display: grid !important;
  grid-template-columns: minmax(7.8rem, 0.42fr) minmax(0, 1fr);
  gap: 0.55rem;
  min-width: 0;
  padding: 0.5rem 0.6rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(217, 226, 236, 0.74) !important;
  color: var(--ui-heading);
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.license-master-check-table tbody td:last-child {
  border-bottom: 0 !important;
}

.license-master-check-table tbody td::before {
  content: attr(data-label);
  color: var(--ui-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.license-master-check-table strong,
.license-master-check-table small {
  display: block;
}

.license-master-check-table strong {
  color: var(--ui-heading);
  font-size: 0.82rem;
  font-weight: 800;
}

.license-master-check-table small {
  margin-top: 0.2rem;
  color: var(--ui-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.master-data-check-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.master-data-check-badge.matched {
  color: #166534;
  background: #dcfce7;
}

.master-data-check-badge.partial {
  color: #92400e;
  background: #fef3c7;
}

.master-data-check-badge.missing {
  color: #991b1b;
  background: #fee2e2;
}

@media (min-width: 576px) {
  .license-detail-page .simple-detail-list .license-detail-note {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .license-detail-table-wrap {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
  }

  .license-detail-items-table {
    display: table;
    min-width: 70rem;
    border-collapse: collapse;
    table-layout: auto;
  }

  .license-detail-items-table thead {
    display: table-header-group;
  }

  .license-detail-items-table tbody {
    display: table-row-group;
  }

  .license-detail-items-table tbody tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .license-detail-items-table tbody td {
    display: table-cell !important;
    padding: 0.48rem 0.55rem !important;
    border-bottom: 1px solid var(--ui-border) !important;
    font-size: 0.75rem;
    vertical-align: middle;
  }

  .license-detail-items-table tbody td::before {
    display: none;
  }

  .license-detail-items-table .license-detail-product-name {
    min-width: 11rem;
  }

  .license-detail-items-table .license-detail-number {
    font-variant-numeric: tabular-nums;
    text-align: right !important;
    white-space: nowrap;
  }

  .license-detail-items-table .license-detail-empty-row td {
    display: table-cell !important;
  }

  .license-master-check-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .license-master-check-table-wrap {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
  }

  .license-master-check-table {
    display: table;
    min-width: 68rem;
    border-collapse: collapse;
  }

  .license-master-check-table thead {
    display: table-header-group;
  }

  .license-master-check-table tbody {
    display: table-row-group;
  }

  .license-master-check-table tbody tr {
    display: table-row;
    border: 0;
    border-radius: 0;
  }

  .license-master-check-table tbody td {
    display: table-cell !important;
    padding: 0.5rem 0.55rem !important;
    border-bottom: 1px solid var(--ui-border) !important;
    font-size: 0.75rem;
    vertical-align: top;
  }

  .license-master-check-table tbody td::before {
    display: none;
  }

  .license-detail-page .simple-detail-list .license-detail-note {
    grid-column: span 3;
  }
}

@media (min-width: 1200px) {
  .license-detail-page .simple-detail-list .license-detail-note {
    grid-column: span 2;
  }
}

/* MC and Admin license decisions: one compact grid action, one focused modal. */
.license-decision-queue-page,
.license-decision-queue-page .work-surface,
.license-decision-queue-page .table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.license-decision-queue-page .table-responsive {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.license-decision-queue-page .operational-data-grid {
  min-width: 58rem;
}

.license-decision-queue-page .mc-decision-action-cell {
  width: 1%;
  min-width: 7.5rem;
  text-align: right;
  white-space: nowrap;
}

.mc-decision-trigger {
  min-width: 6.8rem;
  min-height: 2.75rem;
  justify-content: center;
}

.license-decision-modal {
  z-index: 1095 !important;
}

.license-decision-modal.show {
  display: block;
}

.license-decision-modal .modal-dialog {
  z-index: 1096;
  width: min(calc(100% - 1rem), 34rem);
  max-width: 34rem;
  margin: 0.5rem auto;
  pointer-events: auto;
}

.license-decision-modal .modal-content {
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: 0 1.35rem 3.4rem rgba(15, 42, 65, 0.22);
}

.license-decision-modal form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.license-decision-modal .modal-header,
.license-decision-modal .modal-body,
.license-decision-modal .modal-footer {
  min-width: 0;
}

.license-decision-modal .modal-header {
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.82rem 0.9rem;
  border-bottom-color: var(--ui-border);
  background:
    linear-gradient(135deg, rgba(2, 78, 140, 0.08), transparent 58%),
    #fff;
}

.license-decision-modal-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.license-decision-modal-heading > div {
  min-width: 0;
}

.license-decision-modal-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.3rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.68rem;
  background: rgba(2, 78, 140, 0.1);
  color: var(--ui-primary);
}

.license-decision-modal-heading h2 {
  margin: 0.08rem 0 0;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.license-decision-modal-heading p {
  margin: 0.18rem 0 0;
  color: var(--ui-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.license-decision-modal .modal-body {
  display: grid;
  gap: 0.58rem;
  min-height: 0;
  padding: 0.72rem 0.8rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f8fafc;
}

.license-decision-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.38rem;
}

.license-decision-context-grid > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.48rem 0.55rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.license-decision-context-grid span {
  color: var(--ui-muted);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.license-decision-context-grid strong {
  min-width: 0;
  color: var(--ui-heading);
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.license-decision-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  min-height: 2.75rem;
  color: var(--ui-primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.license-decision-detail-link:hover {
  color: var(--ui-primary-dark);
  text-decoration: underline;
}

.license-decision-toggle {
  padding: 0.62rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
}

.license-decision-selected-state {
  display: grid;
  gap: 0.12rem;
  padding: 0.52rem 0.58rem;
  border-left: 3px solid var(--lsea-success);
  border-radius: 0 var(--ui-radius-sm) var(--ui-radius-sm) 0;
  background: rgba(240, 253, 244, 0.72);
}

.license-decision-modal[data-decision-tone="danger"] .license-decision-selected-state {
  border-left-color: var(--lsea-danger);
  background: rgba(254, 242, 242, 0.76);
}

.license-decision-modal[data-decision-tone="danger"] .license-decision-modal-icon {
  background: rgba(206, 56, 68, 0.1);
  color: var(--lsea-danger);
}

.license-decision-selected-state > span {
  color: var(--ui-heading);
  font-size: 0.76rem;
  font-weight: 850;
}

.license-decision-selected-state p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.license-decision-note-field {
  display: grid;
  gap: 0.3rem;
}

.license-decision-note-field label {
  color: var(--ui-heading);
  font-size: 0.74rem;
  font-weight: 850;
}

.license-decision-note-field label strong {
  color: var(--lsea-danger);
}

.license-decision-note-field textarea {
  width: 100%;
  min-height: 4.75rem;
  max-height: 10rem;
  border-color: #cbd8e5;
  background: #fff;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}

.license-decision-note-field small {
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.license-decision-modal .modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-top-color: var(--ui-border);
  background: #fff;
}

.license-decision-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  color: var(--ui-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.license-decision-footnote i {
  margin-top: 0.1rem;
  color: var(--ui-primary);
}

.license-decision-modal .modal-footer .btn {
  flex: 1 1 8rem;
  min-height: 2.75rem;
  justify-content: center;
}

@media (min-width: 576px) {
  .license-decision-modal .modal-dialog {
    width: min(calc(100% - 2rem), 34rem);
    margin: 1rem auto;
  }

  .license-decision-modal .modal-content {
    max-height: calc(100dvh - 2rem);
  }

  .license-decision-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-decision-context-grid .license-decision-context-wide {
    grid-column: 1 / -1;
  }

  .license-decision-footnote {
    width: auto;
    flex: 1 1 14rem;
    margin-right: auto;
  }

  .license-decision-modal .modal-footer .btn {
    flex: 0 0 auto;
  }
}

@media (max-height: 680px) {
  .license-decision-modal .modal-header {
    padding-block: 0.65rem;
  }

  .license-decision-modal-heading p {
    display: none;
  }

  .license-decision-modal .modal-body {
    gap: 0.45rem;
    padding-block: 0.58rem;
  }

  .license-decision-context-grid > div {
    padding-block: 0.38rem;
  }

  .license-decision-detail-link {
    min-height: 2.25rem;
  }

  .license-decision-note-field textarea {
    min-height: 4rem;
  }

  .license-decision-modal .modal-footer {
    padding-block: 0.58rem;
  }
}

/* Global UI normalization for Admin, Member, and MC work areas. */
:root {
  --lsea-radius: 0.5rem;
  --ui-radius: 0.5rem;
  --ui-radius-sm: 0.375rem;
  --ui-space-xs: 0.35rem;
  --ui-space-sm: 0.55rem;
  --ui-space-md: 0.85rem;
  --ui-space-lg: 1.15rem;
  --ui-content-max: 92rem;
}

html,
body,
button,
input,
select,
textarea,
.btn,
.form-control,
.form-select,
.dropdown-menu,
.modal,
.tooltip,
.popover,
.font-display,
.font-monospace {
  font-family: Arial, sans-serif !important;
  letter-spacing: 0;
}

body {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.surface-header h1,
.surface-header h2,
.admin-page-header h1,
.registration-reference-topbar h1 {
  margin-block: 0;
  color: var(--ui-heading);
  font-family: Arial, sans-serif !important;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

h1,
.registration-reference-topbar h1,
.admin-page-header h1 {
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.75rem);
}

h2,
.surface-header h2,
.section-title {
  font-size: clamp(1.02rem, 0.96rem + 0.22vw, 1.18rem);
}

h3,
.upload-card h4,
.document-review-card strong {
  font-size: 0.92rem;
}

.page-kicker,
.surface-header p,
.admin-page-header p,
.registration-reference-topbar p,
.registration-hero-card p,
.license-card p,
.member-service-grid a span,
.validation-summary-card li,
.form-text,
.helper-text,
.text-muted.small,
small.form-text {
  font-size: 0.72rem;
  line-height: 1.35;
}

.surface-header p,
.admin-page-header p,
.registration-reference-topbar p,
.registration-hero-card p,
.member-service-grid a span,
.license-card p {
  display: none;
}

.page-shell,
.admin-dashboard,
.member-onboarding-dashboard,
.registration-reference-page,
.license-field-page,
.document-center-page {
  width: min(100%, var(--ui-content-max));
  margin-inline: auto;
}

.lsea-content,
.admin-content {
  padding: clamp(0.75rem, 1vw, 1.2rem);
}

.work-surface,
.metric-card,
.license-card,
.detail-card,
.document-review-card,
.upload-card,
.registration-card,
.compact-registration-card,
.simple-crud-surface,
.admin-panel,
.member-status-card,
.member-quick-access,
.member-progress-card,
.member-active-actions,
.payment-method-card,
.license-document-upload-grid .upload-card {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: none;
}

.work-surface,
.simple-crud-surface,
.admin-panel,
.member-status-card,
.member-quick-access,
.member-progress-card,
.member-active-actions,
.registration-card,
.compact-registration-card {
  padding: clamp(0.85rem, 1vw, 1.15rem);
}

.surface-header,
.simple-crud-toolbar,
.admin-table-toolbar,
.license-card-top,
.member-next-step,
.form-step-actions,
.compact-actions,
.submitted-payment-actions {
  gap: var(--ui-space-sm);
  margin-bottom: var(--ui-space-md);
}

.surface-header.compact,
.simple-crud-toolbar,
.admin-table-toolbar {
  align-items: center;
}

.btn,
.compact-action,
.row-icon-action,
.file-picker-button,
button[type="submit"],
button[type="button"] {
  min-height: 2.35rem;
  border-radius: var(--ui-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.btn-sm,
.compact-action.small,
.row-icon-action {
  min-height: 2rem;
  font-size: 0.76rem;
}

.btn i,
.compact-action i,
.row-icon-action i {
  font-size: 0.95em;
}

.form-control,
.form-select,
textarea.form-control,
.registration-reference-page .form-control,
.license-form .form-control,
.license-form .form-select,
.admin-search input {
  min-height: 2.35rem;
  border-radius: var(--ui-radius-sm);
  border-color: var(--ui-border-strong);
  font-size: 0.84rem;
  line-height: 1.35;
}

textarea.form-control {
  min-height: 5rem;
}

.form-label,
.license-decision-note-field label,
.upload-card h4,
.registration-card .form-label {
  margin-bottom: 0.28rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.form-group,
.license-decision-note-field,
.upload-card,
.detail-card,
.document-review-card,
.member-service-grid a,
.member-quick-list a,
.admin-action-list a {
  gap: var(--ui-space-xs);
}

.form-row-grid,
.preview-grid,
.document-upload-grid,
.document-review-grid,
.member-service-grid,
.admin-metric-grid,
.member-progress-steps {
  gap: var(--ui-space-md);
}

.status-badge,
.badge,
.document-type-badge {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.table,
.simple-crud-table,
.admin-table,
.document-data-grid {
  font-size: 0.82rem;
}

.table th,
.simple-crud-table th,
.admin-table th,
.document-data-grid th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.table td,
.simple-crud-table td,
.admin-table td,
.document-data-grid td {
  vertical-align: middle;
}

.bilingual-stack.compact,
.document-context-stack,
.submitted-payment-main,
.license-card-status {
  gap: 0.18rem;
}

.bilingual-stack small,
.document-context-stack small,
.preview-label,
.metric-card small,
.admin-stat small {
  font-size: 0.72rem;
}

.tab-nav,
.compact-tabs,
.choice-group,
.form-submit-group,
.simple-crud-actions,
.page-actions,
.admin-topbar-actions,
.topbar-actions {
  gap: var(--ui-space-sm);
}

.tab-btn,
.compact-tabs .tab-btn {
  min-height: 2.5rem;
  border-radius: var(--ui-radius-sm);
  font-size: 0.78rem;
}

.alert,
.compact-alert,
.validation-summary-card,
.rule-box,
.referral-status-box {
  border-radius: var(--ui-radius-sm);
  font-size: 0.8rem;
  line-height: 1.35;
}

.validation-summary-card,
.compact-summary-card {
  display: none;
}

@media (max-width: 992px) {
  .lsea-content,
  .admin-content {
    padding: 0.75rem;
  }

  .surface-header,
  .simple-crud-toolbar,
  .admin-table-toolbar,
  .license-card-top,
  .member-next-step {
    align-items: stretch;
  }

  .surface-header,
  .simple-crud-toolbar,
  .admin-table-toolbar,
  .page-actions,
  .form-submit-group,
  .form-step-actions,
  .compact-actions {
    flex-wrap: wrap;
  }

  .page-actions,
  .form-submit-group,
  .form-step-actions .btn,
  .compact-actions .btn,
  .compact-action {
    width: 100%;
  }

  .form-row-grid,
  .form-row-grid.two,
  .form-row-grid.three,
  .preview-grid,
  .document-upload-grid,
  .document-review-grid,
  .member-service-grid,
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  .table-responsive,
  .admin-table-wrap,
  .document-member-grid-wrap,
  .document-center-datatable-host .dt-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table,
  .simple-crud-table,
  .admin-table,
  .document-data-grid {
    min-width: 76rem;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 0.88rem;
  }

  .work-surface,
  .simple-crud-surface,
  .admin-panel,
  .registration-card,
  .compact-registration-card {
    padding: 0.75rem;
  }

  .btn,
  .compact-action,
  .form-control,
  .form-select {
    width: 100%;
  }

  .status-badge,
  .badge {
    white-space: normal;
  }
}

/* Home dashboard typography polish. */
.member-onboarding-dashboard {
  gap: 0.85rem;
}

.member-onboarding-hero {
  min-height: auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: #ffffff;
  box-shadow: none;
}

.member-onboarding-copy h1 {
  color: var(--ui-heading);
  font-size: clamp(1.18rem, 1rem + 0.45vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
}

.member-status-card .surface-header h2,
.member-quick-access .surface-header h2,
.member-progress-card .surface-header h2,
.member-active-actions .surface-header h2 {
  font-size: 1rem;
  font-weight: 600;
}

.member-status-card .status-badge,
.member-next-step span,
.member-application-summary dt,
.member-progress-steps span,
.member-quick-list span,
.member-service-grid strong {
  font-weight: 600;
}

.member-next-step strong {
  color: var(--ui-heading);
  font-size: 0.95rem;
  font-weight: 500;
}

.member-application-summary dd {
  font-weight: 500;
}

.member-quick-list a,
.member-service-grid a,
.member-progress-steps div {
  border-color: var(--ui-border);
  box-shadow: none;
}

.member-quick-list a,
.member-service-grid a {
  min-height: 3rem;
  padding: 0.7rem 0.78rem;
}

.member-quick-list i,
.member-service-grid i {
  width: 2rem;
  height: 2rem;
  font-size: 0.88rem;
}

.member-progress-steps div {
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
}

.member-progress-steps .current,
.member-service-grid a.primary {
  background: #01559b;
}

/* Membership application index table polish. */
.applications-index-toolbar {
  margin-bottom: 0.75rem;
}

.applications-index-table {
  width: 100% !important;
  min-width: 72rem;
  max-width: none;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.applications-index-page .table-responsive {
  overflow-x: auto !important;
  overflow-y: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  scrollbar-gutter: auto;
  -webkit-overflow-scrolling: touch;
}

.applications-index-page .dt-scroll-body {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 0.35rem;
  scrollbar-gutter: auto;
  -webkit-overflow-scrolling: touch;
}

.applications-index-page .dt-scroll-body::-webkit-scrollbar {
  height: 0.7rem;
}

.applications-index-page .dt-scroll-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.45);
}

.applications-index-page .dt-scroll-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.applications-index-page .dt-container,
.applications-index-page .dt-scroll,
.applications-index-page .dt-scroll-head,
.applications-index-page .dt-scroll-body {
  width: 100% !important;
  max-width: 100% !important;
}

.applications-index-page .dt-scroll-headInner {
  max-width: none !important;
}

.applications-index-page .dt-scroll-headInner table,
.applications-index-page .dt-scroll-body table {
  width: 72rem !important;
  min-width: 72rem !important;
  max-width: none !important;
  table-layout: fixed;
}

.applications-index-table col.applications-number-col {
  width: 4rem;
}

.applications-index-table col.applications-reference-col {
  width: 17%;
}

.applications-index-table col.applications-applicant-col {
  width: 15%;
}

.applications-index-table col.applications-company-col {
  width: 22%;
}

.applications-index-table col.applications-referral-col {
  width: 11%;
}

.applications-index-table col.applications-workflow-col {
  width: 15%;
}

.applications-index-table col.applications-payment-col {
  width: 15%;
}

.applications-index-table col.applications-actions-col {
  width: 7rem;
}

.applications-index-table thead th {
  padding: 0.58rem 0.65rem;
  border-bottom: 1px solid var(--ui-border-strong);
  background: #f8fafc;
  color: var(--ui-muted);
  font-size: 0.72rem;
}

.applications-index-table tbody td {
  padding: 0.62rem 0.65rem;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-text);
  overflow: visible;
  text-overflow: clip;
}

.applications-index-table th:nth-child(1),
.applications-index-table td:nth-child(1) {
  width: 4rem !important;
  min-width: 4rem;
  max-width: 4rem;
}

.applications-index-table th:nth-child(2),
.applications-index-table td:nth-child(2) {
  width: 17% !important;
  min-width: 13rem;
}

.applications-index-table th:nth-child(3),
.applications-index-table td:nth-child(3) {
  width: 15% !important;
  min-width: 11rem;
}

.applications-index-table th:nth-child(4),
.applications-index-table td:nth-child(4) {
  width: 22% !important;
  min-width: 16rem;
}

.applications-index-table th:nth-child(5),
.applications-index-table td:nth-child(5) {
  width: 11% !important;
  min-width: 9.5rem;
}

.applications-index-table th:nth-child(6),
.applications-index-table td:nth-child(6) {
  width: 15% !important;
  min-width: 13rem;
}

.applications-index-table th:nth-child(7),
.applications-index-table td:nth-child(7) {
  width: 15% !important;
  min-width: 13rem;
}

.applications-index-table th:nth-child(8),
.applications-index-table td:nth-child(8) {
  width: 7rem !important;
  min-width: 7rem;
  max-width: 7rem;
}

.applications-index-table tbody tr:hover td {
  background: #f9fbfd;
}

.application-primary-cell,
.application-status-stack {
  display: grid;
  gap: 0.18rem;
  justify-items: start;
  min-width: 0;
}

.application-reference-cell {
  min-width: 0;
}

.applications-index-table .status-badge {
  width: fit-content;
  max-width: 100%;
  padding-inline: 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
}

.applications-index-table thead th {
  white-space: nowrap;
}

.application-reference-cell strong,
.application-primary-cell strong {
  color: var(--ui-heading);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.application-reference-cell strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.application-reference-cell small,
.application-primary-cell small {
  display: block;
  color: var(--ui-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.application-person-cell,
.application-company-cell {
  max-width: 14rem;
}

.application-primary-cell strong,
.application-primary-cell small {
  overflow-wrap: anywhere;
}

.application-action-cell {
  text-align: left;
  overflow: visible;
}

.applications-row-actions {
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.applications-row-actions form {
  margin: 0;
}

.applications-row-actions .row-icon-action {
  width: 2.1rem;
  height: 2.1rem;
  min-height: 2.1rem;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  background: #ffffff;
  color: var(--ui-heading);
}

.applications-row-actions .row-icon-action.primary {
  border-color: rgba(2, 78, 140, 0.24);
  background: var(--lsea-primary-soft);
  color: var(--lsea-primary);
}

.applications-row-actions .row-icon-action.danger {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 242, 242, 0.92);
  color: var(--lsea-danger);
}

.applications-row-actions .row-icon-action:hover,
.applications-row-actions .row-icon-action:focus-visible {
  transform: none;
  border-color: currentColor;
  box-shadow: 0 0 0 0.15rem rgba(2, 78, 140, 0.08);
}

@media (max-width: 992px) {
  .applications-index-table {
    min-width: 72rem !important;
  }

  .application-person-cell,
  .application-company-cell {
    max-width: 12rem;
  }
}

/* License tracker table polish. */
.license-tracker-toolbar {
  margin-bottom: 0.75rem;
}

.license-tracker-table {
  /* Eight tracker fields total 86rem and DataTables prepends a 4rem row
     number column. Keep the table width equal to that full column contract
     so the action cell cannot overflow beyond the cloned header table. */
  width: 90rem !important;
  min-width: 90rem !important;
  max-width: none !important;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.license-tracker-page .table-responsive {
  overflow-x: hidden !important;
}

.license-tracker-page .dt-scroll-body {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 0.35rem;
  scrollbar-gutter: auto;
  -webkit-overflow-scrolling: touch;
}

.license-tracker-page .dt-scroll-body::-webkit-scrollbar {
  height: 0.7rem;
}

.license-tracker-page .dt-scroll-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.45);
}

.license-tracker-page .dt-scroll-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.license-tracker-page .dt-container,
.license-tracker-page .dt-scroll,
.license-tracker-page .dt-scroll-head,
.license-tracker-page .dt-scroll-body {
  width: 100% !important;
  max-width: 100% !important;
}

.license-tracker-page .dt-scroll-headInner {
  max-width: none !important;
}

.license-tracker-page .dt-scroll-headInner table,
.license-tracker-page .dt-scroll-body table {
  width: 90rem !important;
  min-width: 90rem !important;
  max-width: none !important;
}

.license-tracker-table thead th {
  padding: 0.58rem 0.65rem;
  border-bottom: 1px solid var(--ui-border-strong);
  background: #f8fafc;
  color: var(--ui-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.license-tracker-table tbody td {
  padding: 0.62rem 0.65rem;
  border-bottom: 1px solid var(--ui-border);
  color: var(--ui-text);
  vertical-align: middle;
}

.license-tracker-table tbody tr:hover td {
  background: #f9fbfd;
}

.license-tracker-table th:nth-child(2),
.license-tracker-table td:nth-child(2) {
  min-width: 12rem;
}

.license-tracker-table th:nth-child(3),
.license-tracker-table td:nth-child(3) {
  min-width: 13rem;
}

.license-tracker-table th:nth-child(4),
.license-tracker-table td:nth-child(4),
.license-tracker-table th:nth-child(5),
.license-tracker-table td:nth-child(5) {
  min-width: 10rem;
}

.license-tracker-table th:nth-child(6),
.license-tracker-table td:nth-child(6),
.license-tracker-table th:nth-child(7),
.license-tracker-table td:nth-child(7) {
  min-width: 9rem;
}

.license-tracker-table th:nth-child(8),
.license-tracker-table td:nth-child(8) {
  min-width: 13rem;
}

.license-tracker-table th:nth-child(9),
.license-tracker-table td:nth-child(9) {
  min-width: 10rem;
}

.license-tracker-reference-cell,
.license-tracker-company-cell {
  display: grid;
  gap: 0.18rem;
}

.license-tracker-reference-cell strong,
.license-tracker-company-cell strong {
  color: var(--ui-heading);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.license-tracker-reference-cell small {
  color: var(--ui-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.license-tracker-next-cell {
  color: var(--ui-heading);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.license-tracker-table .status-badge {
  width: fit-content;
  max-width: 100%;
  padding-inline: 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
}

.license-tracker-action-cell {
  overflow: visible;
}

.license-tracker-action {
  min-height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(2, 78, 140, 0.24);
  border-radius: var(--ui-radius-sm);
  color: var(--lsea-primary);
  background: var(--lsea-primary-soft);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.license-tracker-action.primary {
  color: #ffffff;
  background: var(--lsea-primary);
  border-color: var(--lsea-primary);
}

.license-tracker-action:hover,
.license-tracker-action:focus-visible {
  border-color: currentColor;
  box-shadow: 0 0 0 0.15rem rgba(2, 78, 140, 0.08);
}

@media (max-width: 992px) {
  .license-tracker-table {
    width: 90rem !important;
    min-width: 90rem !important;
  }
}

/* Hide the desktop sidebar fully when collapsed, while keeping page/table scrolling usable. */
@media (min-width: 992px) {
  .admin-shell.sidebar-collapsed .lsea-sidebar {
    width: var(--ui-sidebar-width);
    transform: translateX(-100%);
    pointer-events: none;
    box-shadow: none;
  }

  .admin-shell.sidebar-collapsed .lsea-main {
    margin-left: 0;
  }

  .admin-shell.sidebar-collapsed .lsea-topbar {
    left: 0;
  }
}

.admin-shell.sidebar-collapsed .lsea-content {
  overflow-x: auto;
}

/* Endorsement review: compact review layout with only decision-critical information. */
.endorsement-review-page {
  max-width: 72rem;
}

.endorsement-review-surface {
  padding: 1rem;
  overflow: visible;
  box-shadow: var(--ui-shadow-sm);
}

.endorsement-review-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid var(--ui-border);
  background: transparent;
  color: var(--ui-heading);
}

.endorsement-review-heading h1 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
}

.endorsement-review-status {
  width: fit-content;
  flex: 0 0 auto;
  font-weight: 500;
}

.endorsement-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 23rem);
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding: 0;
}

.endorsement-review-main {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.endorsement-evidence-card,
.endorsement-message-card,
.endorsement-history-card,
.endorsement-decision-panel {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: none;
}

.endorsement-evidence-card,
.endorsement-message-card,
.endorsement-history-card {
  padding: 0.9rem;
}

.endorsement-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.endorsement-section-heading h2,
.endorsement-decision-panel h2,
.endorsement-processed-state h2 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.endorsement-section-heading > i {
  color: var(--ui-muted);
  font-size: 0.95rem;
}

.endorsement-request-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ui-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.endorsement-applicant-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel-soft);
}

.endorsement-applicant-avatar {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lsea-primary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
}

.endorsement-applicant-identity span,
.endorsement-applicant-identity small,
.endorsement-fact-grid dt,
.endorsement-history-card dt,
.endorsement-note-meta small {
  color: var(--ui-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.endorsement-applicant-identity strong,
.endorsement-fact-grid dd,
.endorsement-history-card dd {
  color: var(--ui-heading);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.endorsement-fact-grid,
.endorsement-history-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.85rem 0 0;
}

.endorsement-fact-grid div,
.endorsement-history-card dl div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: #ffffff;
}

.endorsement-fact-grid dt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.endorsement-fact-grid dd,
.endorsement-history-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.endorsement-message-card p {
  margin: 0;
  color: var(--ui-text);
  font-size: 0.86rem;
  line-height: 1.55;
}

.endorsement-decision-panel {
  align-self: start;
  padding: 0.9rem;
}

.endorsement-decision-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.endorsement-decision-icon,
.endorsement-processed-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lsea-primary-soft);
  color: var(--lsea-primary);
}

.endorsement-decision-form {
  display: grid;
  gap: 0.85rem;
}

.endorsement-decision-form .form-label {
  margin-bottom: 0.35rem;
  color: var(--ui-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

.endorsement-decision-form .form-control {
  min-height: 8rem;
  resize: vertical;
}

.endorsement-note-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.endorsement-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.endorsement-decision-actions .btn {
  min-height: 2.35rem;
  padding-inline: 0.85rem;
  font-weight: 600;
}

.endorsement-processed-state {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  .endorsement-review-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .endorsement-fact-grid,
  .endorsement-history-card dl {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .endorsement-review-surface {
    padding: 0.8rem;
  }

  .endorsement-review-hero,
  .endorsement-section-heading,
  .endorsement-note-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .endorsement-request-date {
    white-space: normal;
  }

  .endorsement-decision-actions .btn {
    width: 100%;
  }
}

/* Operations dashboard approval path alignment. */
.ops-approval-panel {
  padding: 0.9rem;
}

.ops-approval-panel h2 {
  margin: 0 0 0.7rem;
  color: var(--ui-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.ops-approval-path {
  display: grid;
  gap: 0.5rem;
}

.ops-approval-path div {
  display: grid;
  grid-template-columns: 0.85rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0.58rem 0.65rem;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel-soft);
}

.ops-approval-path i {
  position: static;
  width: 0.72rem;
  height: 0.72rem;
  display: block;
  border-radius: 999px;
  background: var(--lsea-primary);
}

.ops-approval-path i.success {
  background: #16a34a;
}

.ops-approval-path i.accent {
  background: #eab308;
}

.ops-approval-path strong {
  min-width: 0;
  color: var(--ui-heading);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ops-approval-path span {
  display: none;
}

/* Compact enterprise data grids and semantic status colors. */
.dt-container {
  width: 100%;
  min-width: 0;
  color: var(--ui-text);
  font-family: var(--ui-font-ui);
}

.lsea-grid-scroll {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
}

.dt-scroll-head,
.dt-scroll-body {
  background: var(--ui-panel);
}

.dt-scroll-body {
  overflow-x: auto !important;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.operational-data-grid,
.dt-scroll-head table.operational-data-grid,
.dt-scroll-body table.operational-data-grid {
  margin: 0 !important;
  color: var(--ui-text);
  font-family: var(--ui-font-ui);
  font-size: 0.7125rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.operational-data-grid thead th,
.dt-scroll-head table.operational-data-grid thead th {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--ui-border-strong);
  background: var(--ui-panel-soft);
  color: var(--ui-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.operational-data-grid tbody td,
.dt-scroll-body table.operational-data-grid tbody td {
  padding: 0.6875rem 0.75rem;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-panel);
  color: var(--ui-text);
  font-size: 0.7125rem;
  font-weight: 400;
  vertical-align: middle;
}

.operational-data-grid tbody tr:last-child td {
  border-bottom: 0;
}

.operational-data-grid tbody tr:hover td {
  background: var(--lsea-primary-soft);
}

.operational-data-grid td strong {
  color: var(--ui-heading);
  font-size: 0.7125rem;
  font-weight: 600;
}

.operational-data-grid td small {
  color: var(--ui-muted);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.lsea-grid-controls,
.lsea-grid-footer {
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.lsea-grid-length label,
.lsea-grid-search label,
.lsea-grid-info,
.dt-info {
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.lsea-grid-length select,
.lsea-grid-search input,
.dt-input {
  min-height: 2.375rem;
  border-color: var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-text);
  background: var(--ui-panel);
  font-size: 0.7125rem;
}

.lsea-grid-length select:focus-visible,
.lsea-grid-search input:focus-visible,
.dt-input:focus-visible {
  border-color: var(--ui-primary);
  outline: 0;
  box-shadow: 0 0 0 0.1875rem rgba(2, 78, 140, 0.12);
}

.lsea-grid-pages .page-link,
.dt-paging .page-link {
  min-width: 2.125rem;
  min-height: 2.125rem;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-muted);
  background: var(--ui-panel);
  font-size: 0.75rem;
  font-weight: 600;
}

.lsea-grid-pages .active > .page-link,
.dt-paging .active > .page-link {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: #ffffff;
}

.status-badge,
.admin-table .status-badge,
.operational-data-grid .status-badge {
  min-height: 1.625rem;
  padding: 0.1875rem 0.5625rem;
  gap: 0.3125rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ui-font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.status-badge i {
  width: 0.375rem;
  height: 0.375rem;
  flex: 0 0 auto;
  background: currentColor;
}

.status-badge.active,
.status-badge.success {
  border-color: #bbf7d0;
  background: var(--ui-success-soft);
  color: var(--ui-success);
}

.status-badge.warning {
  border-color: #fde68a;
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
}

.status-badge.danger {
  border-color: #fecaca;
  background: var(--ui-danger-soft);
  color: var(--ui-danger);
}

.status-badge.info,
.status-badge.primary {
  border-color: #bfdbfe;
  background: var(--ui-info-soft);
  color: var(--ui-info);
}

.status-badge.draft,
.status-badge.neutral {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #475569;
}

@media (max-width: 991.98px) {
  .lsea-grid-length select,
  .lsea-grid-search input,
  .dt-input,
  .lsea-grid-pages .page-link,
  .dt-paging .page-link {
    min-height: 2.75rem;
  }

  .lsea-grid-pages .page-link,
  .dt-paging .page-link {
    min-width: 2.75rem;
  }
}

/* DataTables reference adaptation: compact tools, bounded rows, and grid lines. */
.lsea-grid-toolbar {
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border: 1px solid var(--ui-border);
  border-bottom: 0;
  border-radius: var(--ui-radius) var(--ui-radius) 0 0;
  background: var(--ui-panel);
}

.lsea-grid-tools,
.lsea-grid-tools .dt-buttons {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.lsea-grid-tools .dt-button,
.lsea-grid-tools .btn {
  display: inline-flex;
  min-height: 2.125rem;
  margin: 0;
  padding: 0.375rem 0.625rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(2, 78, 140, 0.3);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel);
  color: var(--ui-primary);
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.lsea-grid-tools .dt-button:hover:not(.disabled),
.lsea-grid-tools .dt-button:focus-visible,
.lsea-grid-tools .btn:hover,
.lsea-grid-tools .btn:focus-visible {
  border-color: var(--ui-primary);
  background: var(--lsea-primary-soft);
  color: var(--ui-primary);
}

.lsea-grid-tools .dt-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.1875rem rgba(2, 78, 140, 0.12);
}

.lsea-grid-search,
.lsea-grid-search .dt-search,
.lsea-grid-search label {
  min-width: 0;
  margin: 0;
}

.lsea-grid-search .dt-search {
  display: flex;
  align-items: center;
}

.lsea-grid-search .dt-input,
.lsea-grid-search input[type="search"] {
  width: min(20rem, 34vw);
  min-height: 2.125rem;
  margin: 0;
  padding: 0.375rem 0.7rem;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel);
  color: var(--ui-text);
  font-size: 0.7125rem;
}

.lsea-grid-search .dt-input:focus,
.lsea-grid-search input[type="search"]:focus {
  border-color: var(--ui-primary);
  outline: 0;
  box-shadow: 0 0 0 0.1875rem rgba(2, 78, 140, 0.12);
}

.lsea-grid-scroll {
  border-radius: 0;
}

.lsea-grid-footer {
  margin: 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--ui-border);
  border-top: 0;
  border-radius: 0 0 var(--ui-radius) var(--ui-radius);
  background: var(--ui-panel);
}

.operational-data-grid thead th,
.dt-scroll-head table.operational-data-grid thead th {
  padding: 0.5rem 0.625rem;
  border-right: 1px solid var(--ui-border);
  background: #f3f6f9;
  color: #475569;
  font-size: 0.6875rem;
  font-weight: 700;
}

.operational-data-grid thead th:last-child,
.dt-scroll-head table.operational-data-grid thead th:last-child {
  border-right: 0;
}

.operational-data-grid tbody td,
.dt-scroll-body table.operational-data-grid tbody td {
  padding: 0.3rem 0.3rem;
  border-right: 1px solid var(--ui-border);
  font-size: 0.7125rem;
  line-height: 1.3;
}

.operational-data-grid tbody td:last-child,
.dt-scroll-body table.operational-data-grid tbody td:last-child {
  border-right: 0;
}

.operational-data-grid tbody tr:nth-child(odd) td,
.dt-scroll-body table.operational-data-grid tbody tr:nth-child(odd) td {
  background: #fbfcfe;
}

.operational-data-grid tbody tr:hover td,
.dt-scroll-body table.operational-data-grid tbody tr:hover td {
  background: var(--lsea-primary-soft);
}

.dt-button-collection {
  min-width: 8rem;
  padding: 0.3rem;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius);
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow-md);
}

.dt-button-collection .dt-button {
  display: flex;
  width: 100%;
  min-height: 1.9rem;
  margin: 0;
  padding: 0.3rem 0.5rem;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: var(--ui-text);
  font-size: 0.72rem;
  text-align: left;
}

.dt-button-collection .dt-button:hover,
.dt-button-collection .dt-button:focus-visible {
  background: var(--lsea-primary-soft);
  color: var(--ui-primary);
}

/* Override the Bootstrap DataTables collection defaults for compact Rows menus. */
div.dropdown-menu.dt-button-collection {
  width: auto !important;
  min-width: 6.5rem !important;
  padding: 0.2rem !important;
}

div.dropdown-menu.dt-button-collection.dtb-b1 {
  width: 6.5rem !important;
}

div.dropdown-menu.dt-button-collection .dt-button {
  min-height: 1.75rem !important;
  padding: 0.25rem 0.45rem !important;
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
}

div.dropdown-menu.dt-button-collection .dt-button-active {
  padding-right: 1.8rem !important;
}

.row-icon-action.primary {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: #ffffff;
}

.row-icon-action.primary:hover,
.row-icon-action.primary:focus-visible {
  border-color: var(--ui-primary-2);
  background: var(--ui-primary-2);
  color: #ffffff;
}

.row-icon-action.danger {
  border-color: var(--ui-danger);
  background: var(--ui-danger);
  color: #ffffff;
}

.row-icon-action.danger:hover,
.row-icon-action.danger:focus-visible {
  border-color: #7f1d1d;
  background: #7f1d1d;
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .lsea-grid-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .lsea-grid-tools,
  .lsea-grid-tools .dt-buttons {
    width: 100%;
  }

  .lsea-grid-tools .dt-button,
  .lsea-grid-tools .btn {
    min-height: 2.75rem;
    flex: 1 1 auto;
  }

  .lsea-grid-search,
  .lsea-grid-search .dt-search,
  .lsea-grid-search .dt-input,
  .lsea-grid-search input[type="search"] {
    width: 100%;
  }

  .lsea-grid-search .dt-input,
  .lsea-grid-search input[type="search"] {
    min-height: 2.75rem;
  }

  .lsea-grid-footer {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
}

/* Viewport containment and uniform grid actions. */
html,
body:not(.lsea-auth-body) {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.lsea-app-shell.admin-shell,
.lsea-app-shell.admin-shell .lsea-main,
.lsea-app-shell.admin-shell .lsea-content,
.lsea-content > *,
.unified-shell .page-shell,
.unified-shell .portal-page,
.unified-shell .admin-dashboard,
.unified-shell .registration-reference-page,
.work-surface,
.simple-crud-surface,
.admin-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.lsea-app-shell.admin-shell .lsea-main {
  width: 100%;
}

.lsea-app-shell.admin-shell .lsea-content {
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.table-responsive,
.admin-table-wrap,
.report-table-wrapper,
.pprd-table-wrapper,
.payment-table-wrap,
.notification-table-wrap,
.member-work-table-wrap,
.license-item-grid-wrap,
.document-member-grid-wrap,
.document-center-datatable-host,
.workflow-datatable-host,
.lsea-grid-scroll,
.dt-container,
.dt-scroll,
.dt-scroll-head,
.dt-scroll-body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

/* DataTables writes the measured table width and scrollbar padding here.
   Clamping this element to the viewport prevents the cloned header from
   reaching the body's final scrollbar-width of horizontal travel. */
.dt-scroll-headInner {
  max-width: none !important;
  min-width: 0;
  box-sizing: content-box;
}

/* Apply fixed layout only after DataTables has completed its content-based
   measurement. The shared initializer adds this class, then redraws so the
   identical cloned colgroups produce identical column boundaries. */
.dt-container.lsea-datatable-aligned .dt-scroll-head table.operational-data-grid,
.dt-container.lsea-datatable-aligned .dt-scroll-body table.operational-data-grid {
  table-layout: auto !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.table-responsive,
.admin-table-wrap,
.report-table-wrapper,
.pprd-table-wrapper,
.payment-table-wrap,
.notification-table-wrap,
.member-work-table-wrap,
.license-item-grid-wrap,
.document-member-grid-wrap,
.document-center-datatable-host,
.workflow-datatable-host,
.dt-scroll-body {
  overflow-x: auto !important;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: auto;
  -webkit-overflow-scrolling: touch;
}

.lsea-grid-scroll {
  overflow: hidden;
}

.table-actions,
.simple-crud-actions,
.applications-row-actions,
.payment-review-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  min-width: max-content;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.table-actions form,
.simple-crud-actions form,
.applications-row-actions form,
.payment-review-actions form {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
}

.operational-data-grid .lsea-action-column {
  width: 1%;
  min-width: max-content;
  text-align: right;
  white-space: nowrap;
}

.operational-data-grid .lsea-row-number-column,
.dt-scroll-head table.operational-data-grid .lsea-row-number-column,
.dt-scroll-body table.operational-data-grid .lsea-row-number-column {
  box-sizing: border-box;
  width: 3rem !important;
  min-width: 3rem !important;
  max-width: 3rem !important;
  padding-inline: 0.375rem;
  color: var(--ui-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.operational-data-grid colgroup col:first-child,
.dt-scroll-head table.operational-data-grid colgroup col:first-child,
.dt-scroll-body table.operational-data-grid colgroup col:first-child {
  width: 3rem !important;
  min-width: 3rem !important;
  max-width: 3rem !important;
}

.payment-review-table .lsea-action-column,
.payment-fee-settings-table .lsea-action-column {
  min-width: 5.5rem;
}

.payment-review-table th.lsea-action-column,
.payment-review-table td.lsea-action-column {
  text-align: right;
  vertical-align: middle;
}

.payment-review-table .payment-review-actions {
  justify-content: flex-end;
}

.row-icon-action,
.table-actions .row-icon-action,
.simple-crud-actions .row-icon-action,
.applications-row-actions .row-icon-action,
.payment-review-actions .row-icon-action {
  display: inline-grid;
  width: 2.125rem;
  min-width: 2.125rem;
  height: 2.125rem;
  min-height: 2.125rem;
  padding: 0;
  place-items: center;
  flex: 0 0 2.125rem;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel);
  color: var(--ui-heading);
  line-height: 1;
}

.row-icon-action:hover,
.row-icon-action:focus-visible {
  border-color: rgba(2, 78, 140, 0.32);
  background: var(--lsea-primary-soft);
  color: var(--ui-primary);
}

.row-icon-action.primary {
  border-color: var(--ui-primary);
  background: var(--ui-panel);
  color: var(--ui-primary);
}

.row-icon-action.danger {
  border-color: var(--ui-danger);
  background: var(--ui-panel);
  color: var(--ui-danger);
}

.row-icon-action.primary:hover,
.row-icon-action.primary:focus-visible {
  border-color: var(--ui-primary-2);
  background: rgba(2, 78, 140, 0.08);
  color: var(--ui-primary-2);
}

.row-icon-action.danger:hover,
.row-icon-action.danger:focus-visible {
  border-color: #7f1d1d;
  background: rgba(153, 27, 27, 0.08);
  color: #7f1d1d;
}

.operational-data-grid td:last-child .btn.btn-sm,
.admin-table td:last-child .btn.btn-sm {
  min-height: 2.125rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--ui-radius-sm);
  font-size: 0.75rem;
  line-height: 1.1;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .lsea-app-shell.admin-shell .lsea-main {
    width: calc(100% - var(--ui-sidebar-width));
    max-width: calc(100% - var(--ui-sidebar-width));
    margin-left: var(--ui-sidebar-width);
  }

  .lsea-app-shell.admin-shell.sidebar-collapsed .lsea-main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 991.98px) {
  .lsea-app-shell.admin-shell .lsea-main,
  .lsea-app-shell.admin-shell.sidebar-collapsed .lsea-main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .row-icon-action,
  .table-actions .row-icon-action,
  .simple-crud-actions .row-icon-action,
  .applications-row-actions .row-icon-action,
  .payment-review-actions .row-icon-action {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    flex-basis: 2.75rem;
  }

  .operational-data-grid td:last-child .btn.btn-sm,
  .admin-table td:last-child .btn.btn-sm {
    min-height: 2.75rem;
  }

}

/* Membership tracker: native table layout, no generated DataTables scroll shell. */
.tracker-page .tracker-grid-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  scrollbar-gutter: auto;
  -webkit-overflow-scrolling: touch;
}

.tracker-page .tracker-data-grid {
  width: 100% !important;
  min-width: 58rem;
  margin-bottom: 0;
  table-layout: fixed;
}

.tracker-page .tracker-data-grid th,
.tracker-page .tracker-data-grid td {
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.tracker-page .tracker-data-grid th {
  white-space: nowrap;
}

.tracker-page .tracker-data-grid .lsea-row-number-column {
  width: 3rem !important;
  min-width: 3rem !important;
  max-width: 3rem !important;
  color: var(--ui-muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.tracker-page .tracker-reference-cell strong,
.tracker-page .tracker-owner-cell strong,
.tracker-page .tracker-next-step-cell strong {
  overflow-wrap: anywhere;
}

.tracker-page .tracker-progress-cell .status-badge {
  max-width: 100%;
  white-space: normal;
}

.tracker-page .tracker-action-column,
.tracker-page .tracker-action-cell {
  width: 5.5rem !important;
  text-align: center !important;
}

.tracker-page .tracker-action-cell .member-next-action {
  margin-inline: auto;
}

/* Compact upload cards for membership and license forms. */
.registration-reference-page .compact-upload-grid,
.license-form .license-document-upload-grid {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: stretch;
}

.registration-reference-page .compact-upload-grid .upload-card,
.license-form .license-document-upload-grid .upload-card {
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0.6rem 0.65rem;
  gap: 0.25rem;
  align-content: start;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-panel);
  box-shadow: none;
}

.registration-reference-page .compact-upload-grid .upload-card.required,
.license-form .license-document-upload-grid .upload-card.required {
  border-left-width: 0.2rem;
}

.registration-reference-page .compact-upload-grid .upload-card h4,
.license-form .license-document-upload-grid .upload-card h4 {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.25;
}

.registration-reference-page .compact-upload-grid .upload-card p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
}

.registration-reference-page .compact-upload-grid .upload-card small,
.license-form .license-document-upload-grid .upload-card small {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.registration-reference-page .compact-upload-grid .file-picker-button {
  width: fit-content;
  max-width: 100%;
  min-height: 2.75rem;
  margin-top: 0.1rem;
  padding: 0.45rem 0.75rem;
}

.registration-reference-page .compact-upload-grid .file-limit-note,
.registration-reference-page .compact-upload-grid [data-existing-document],
.license-form .license-document-upload-grid .license-document-status {
  margin-top: 0.1rem !important;
}

.license-form .license-document-upload-grid .license-document-file-control {
  min-height: 2.75rem;
  margin-top: 0.1rem;
}

.license-form .license-document-upload-grid .license-document-title-row {
  min-height: 2rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .registration-reference-page .compact-upload-grid,
  .license-form .license-document-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registration-reference-page .compact-upload-grid .file-picker-button {
    min-height: 2.25rem;
    padding-block: 0.35rem;
  }

  .license-form .license-document-upload-grid .license-document-file-control {
    min-height: 2.4rem;
  }

  .license-form .license-document-upload-grid .license-document-file-control::file-selector-button {
    min-height: 2rem;
    padding-block: 0.35rem;
  }
}

@media (min-width: 1200px) {
  .registration-reference-page .compact-upload-grid,
  .license-form .license-document-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* My Payments compact table. */
.member-workspace-page .surface-header.simple-crud-toolbar p {
  display: none;
}

.my-payments-table {
  width: 100%;
  table-layout: fixed;
}

.my-payments-table th,
.my-payments-table td {
  vertical-align: middle;
  border-right: 1px solid var(--ui-border);
}

.my-payments-table th:last-child,
.my-payments-table td:last-child {
  border-right: 0;
}

.my-payments-table col.payment-col,
.my-payments-table th:nth-child(1),
.my-payments-table td:nth-child(1) {
  width: 20%;
}

.my-payments-table col.request-col,
.my-payments-table th:nth-child(2),
.my-payments-table td:nth-child(2) {
  width: 20%;
}

.my-payments-table col.method-col,
.my-payments-table th:nth-child(3),
.my-payments-table td:nth-child(3) {
  width: 18%;
}

.my-payments-table col.amount-col,
.my-payments-table th:nth-child(4),
.my-payments-table td:nth-child(4) {
  width: 12%;
}

.my-payments-table col.status-col,
.my-payments-table th:nth-child(5),
.my-payments-table td:nth-child(5) {
  width: 18%;
}

.my-payments-table col.action-col,
.my-payments-table th:nth-child(6),
.my-payments-table td:nth-child(6) {
  width: 12%;
}

.my-payments-table td strong,
.my-payments-table td small {
  display: block;
  max-width: 100%;
}

.my-payments-table td strong {
  color: var(--ui-heading);
  font-size: 0.76rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.my-payments-table td small {
  margin-top: 0.05rem;
  color: var(--ui-muted);
  font-size: 0.62rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.my-payments-table td[data-label="Amount"] strong,
.my-payments-table .status-badge {
  white-space: nowrap;
}

.my-payments-table td[data-label="Action"] {
  white-space: nowrap;
}

.my-payments-table td[data-label="Action"] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  margin-left: 0.12rem;
  min-height: 1.85rem;
  padding: 0.22rem 0.36rem;
  font-size: 0.68rem;
}

@media (min-width: 768px) {
  .member-workspace-page {
    padding-top: 0.35rem;
  }

  .member-workspace-page .simple-crud-toolbar {
    margin-bottom: 0.65rem;
  }

  .member-workspace-metrics {
    gap: 0.7rem;
    margin-bottom: 0.7rem;
  }

  .member-workspace-metrics > div {
    padding: 0.55rem 0.65rem;
  }

  .member-workspace-metrics strong {
    font-size: 1rem;
  }

  .my-payments-table {
    width: 100%;
    min-width: 68rem;
    table-layout: fixed;
  }

  .my-payments-table colgroup {
    display: table-column-group;
  }

  .my-payments-table col {
    display: table-column;
  }

  .my-payments-table thead tr {
    display: table-row;
    width: auto;
  }

  .my-payments-table thead th {
    display: table-cell;
    padding: 0.26rem 0.34rem;
    color: var(--ui-muted);
    font-size: 0.62rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .my-payments-table tbody td {
    padding: 0.32rem 0.34rem;
  }
}

@media (max-width: 767.98px) {
  .my-payments-table {
    table-layout: auto;
  }

  .my-payments-table th,
  .my-payments-table td {
    width: auto !important;
  }

  .my-payments-table td[data-label="Amount"] strong,
  .my-payments-table td[data-label="Action"],
  .my-payments-table .status-badge {
    white-space: normal;
  }

  .my-payments-table td[data-label="Action"] .btn {
    margin: 0.2rem 0 0;
  }
}

/* Membership certificate collection */
.membership-certificate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.membership-certificate-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--ui-border);
  border-radius: 0.65rem;
  background: var(--ui-surface, #fff);
}

.membership-certificate-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.membership-certificate-card > header span:first-child,
.membership-certificate-card dt {
  color: var(--ui-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.membership-certificate-card h3 {
  margin: 0.15rem 0 0;
  font-size: 1rem;
}

.membership-certificate-card dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  margin: 0;
}

.membership-certificate-card dd {
  overflow-wrap: anywhere;
  margin: 0.12rem 0 0;
  color: var(--ui-ink);
  font-size: 0.875rem;
  line-height: 1.4;
}

.membership-certificate-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: auto;
}

.membership-certificate-actions .btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.membership-certificate-unavailable {
  display: flex;
  gap: 0.4rem;
  margin: auto 0 0;
  color: var(--ui-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (min-width: 576px) {
  .membership-certificate-card dl,
  .membership-certificate-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .membership-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .membership-certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Membership referral request feedback */
.registration-reference-page .referral-request-toast {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 1090;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--ui-radius-sm);
  background: #f0fdf4;
  color: #166534;
  box-shadow: var(--ui-shadow-md);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.registration-reference-page .referral-request-toast[hidden] {
  display: none;
}

.registration-reference-page .referral-request-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.registration-reference-page .referral-request-toast[data-state="danger"] {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fef2f2;
  color: #991b1b;
}

.registration-reference-page .referral-request-toast > i {
  margin-top: 0.1rem;
  font-size: 1.2rem;
}

.registration-reference-page .referral-request-toast > div {
  min-width: 0;
}

.registration-reference-page .referral-request-toast strong,
.registration-reference-page .referral-request-toast span {
  display: block;
}

.registration-reference-page .referral-request-toast strong {
  margin-bottom: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.registration-reference-page .referral-request-toast span {
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.registration-reference-page [data-send-referral-approval][data-state="sent"],
.registration-reference-page [data-send-referral-approval][data-state="approved"] {
  border-color: rgba(22, 163, 74, 0.45);
  background: #f0fdf4;
  color: #166534;
  opacity: 1;
}

@media (min-width: 768px) {
  .registration-reference-page .referral-request-toast {
    inset: auto 1.5rem 1.5rem auto;
    width: min(22rem, calc(100vw - 3rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .registration-reference-page .referral-request-toast {
    transition: none;
  }
}

/* Operations dashboard: compact, role-aware command centre. */
.ops-dashboard-page {
  --ops-dashboard-border: #dce5ee;
  --ops-dashboard-soft: #f6f9fc;
  --ops-dashboard-ink: #102a43;
  --ops-dashboard-muted: #60758a;
  display: grid;
  gap: 0.65rem;
}

.ops-dashboard-page .ops-dashboard-title {
  padding: 0;
  border: 0;
  background: transparent;
}

.ops-dashboard-page .ops-dashboard-title .surface-header {
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ops-dashboard-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  box-shadow: none;
}

.ops-dashboard-page .dashboard-title-copy {
  min-width: 0;
}

.ops-dashboard-page .ops-dashboard-title h1 {
  margin: 0.12rem 0 0;
  color: var(--ops-dashboard-ink);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.ops-dashboard-page .ops-dashboard-title p {
  display: block;
  margin: 0.25rem 0 0;
  color: var(--ops-dashboard-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ops-dashboard-page .page-kicker {
  margin: 0;
  color: var(--ui-primary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ops-dashboard-page .ops-dashboard-title .page-actions,
.ops-dashboard-page .ops-dashboard-title .page-actions .btn {
  width: 100%;
}

.ops-dashboard-page .ops-dashboard-title .page-actions .btn {
  min-height: 2.75rem;
  justify-content: center;
}

.ops-dashboard-page .ops-metric-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
}

.ops-dashboard-page .ops-metric-card {
  --metric-tone: var(--ui-primary);
  min-width: 0;
  min-height: 7rem;
  gap: 0.12rem;
  padding: 0.72rem 0.82rem 0.7rem 0.95rem;
  border: 1px solid var(--ops-dashboard-border);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  box-shadow: none;
}

.ops-dashboard-page .ops-metric-card::before {
  width: 0.22rem;
  background: var(--metric-tone);
}

.ops-dashboard-page .ops-metric-card--success {
  --metric-tone: #15803d;
}

.ops-dashboard-page .ops-metric-card--warning {
  --metric-tone: #b7791f;
}

.ops-dashboard-page .ops-metric-card--licensing {
  --metric-tone: #0369a1;
}

.ops-dashboard-page .ops-metric-card--finance {
  --metric-tone: #0f766e;
}

.ops-dashboard-page .ops-metric-card > span {
  padding-right: 1.7rem;
  color: var(--ops-dashboard-muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.ops-dashboard-page .ops-metric-card > strong,
.ops-dashboard-page .ops-metric-card.accent > strong {
  margin: 0.25rem 0 0.18rem;
  color: var(--ops-dashboard-ink);
  font-size: clamp(1.45rem, 1.25rem + 0.6vw, 1.8rem);
  font-variant-numeric: tabular-nums;
}

.ops-dashboard-page .ops-metric-card > small {
  color: var(--ops-dashboard-muted);
  font-size: 0.72rem;
}

.ops-dashboard-page .ops-metric-card > i {
  top: 0.75rem;
  right: 0.78rem;
  color: color-mix(in srgb, var(--metric-tone) 34%, transparent);
  font-size: 0.92rem;
}

.ops-dashboard-page .ops-metric-card:hover,
.ops-dashboard-page .ops-metric-card:focus-visible {
  border-color: color-mix(in srgb, var(--metric-tone) 40%, var(--ops-dashboard-border));
  box-shadow: 0 0.45rem 1.2rem -1rem rgba(15, 42, 67, 0.75);
}

.ops-dashboard-page .ops-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.ops-dashboard-page .ops-queue-board,
.ops-dashboard-page .ops-command-panel {
  padding: 0.72rem;
  border-color: var(--ops-dashboard-border);
  border-radius: var(--ui-radius-sm);
}

.ops-dashboard-page .ops-queue-board .surface-header,
.ops-dashboard-page .ops-command-panel .surface-header.compact {
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ops-dashboard-border);
}

.ops-dashboard-page .ops-queue-board .surface-header > div > h2,
.ops-dashboard-page .ops-command-panel .surface-header.compact h2,
.ops-dashboard-page .ops-approval-panel > h2 {
  color: var(--ops-dashboard-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.ops-dashboard-page .ops-queue-board .surface-header > div > p,
.ops-dashboard-page .ops-command-panel .surface-header.compact p {
  display: block;
  color: var(--ops-dashboard-muted);
  font-size: 0.7rem;
}

.ops-dashboard-page .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ops-dashboard-page .operational-data-grid {
  width: 100%;
  min-width: 27rem;
  margin: 0;
}

.ops-dashboard-page .operational-data-grid thead th,
.ops-dashboard-page .operational-data-grid tbody td {
  padding: 0.48rem 0.55rem;
}

.ops-dashboard-page .operational-data-grid thead th {
  color: var(--ops-dashboard-muted);
  background: var(--ops-dashboard-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ops-dashboard-page .operational-data-grid td strong {
  color: var(--ops-dashboard-ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.ops-dashboard-page .ops-count-column {
  width: 4rem;
}

.ops-dashboard-page .ops-action-column {
  width: 3rem;
}

.ops-dashboard-page .ops-queue-board .row-icon-action {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.ops-dashboard-page .compact-admin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;
}

.ops-dashboard-page .compact-admin-actions a {
  min-height: 2.75rem;
  border: 1px solid transparent;
}

.ops-dashboard-page .compact-admin-actions a:focus-visible,
.ops-dashboard-page .ops-queue-board .row-icon-action:focus-visible {
  outline: 0.15rem solid rgba(1, 85, 155, 0.24);
  outline-offset: 0.1rem;
}

.ops-dashboard-page .ops-approval-panel > h2 {
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-color: var(--ops-dashboard-border);
}

.ops-dashboard-page .ops-approval-path > li {
  padding-bottom: 0.7rem;
}

.ops-dashboard-page .ops-approval-path > li > strong {
  font-size: 0.77rem;
  font-weight: 600;
}

.ops-dashboard-page .ops-approval-path > li > span {
  color: var(--ops-dashboard-muted);
  font-size: 0.7rem;
}

@media (min-width: 576px) {
  .ops-dashboard-page .ops-metric-grid,
  .ops-dashboard-page .compact-admin-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .ops-dashboard-page .ops-dashboard-title .surface-header {
    flex-wrap: nowrap;
  }

  .ops-dashboard-page .ops-dashboard-title .page-actions,
  .ops-dashboard-page .ops-dashboard-title .page-actions .btn {
    width: auto;
  }

  .ops-dashboard-page .ops-dashboard-title .page-actions .btn {
    min-height: 2.25rem;
  }

  .ops-dashboard-page .ops-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  }
}

@media (min-width: 992px) {
  .ops-dashboard-page .ops-dashboard-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(15.5rem, 0.75fr);
  }

  .ops-dashboard-page .compact-admin-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-dashboard-page .ops-queue-board .row-icon-action {
    min-width: 2rem;
    min-height: 2rem;
  }
}

@media (max-width: 575.98px) {
  .ops-dashboard-page .ops-owner-column {
    display: none;
  }

  .ops-dashboard-page .operational-data-grid {
    min-width: 23rem;
  }
}

/* 🌐 WebKit Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 6px;               /* slim scrollbar */
}

::-webkit-scrollbar-track {
  background: #f4f6f8;        /* light neutral track */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #013b6b;  /* accent color (blue) */
  border-radius: 10px;        /* rounded thumb */
  border: 2px solid #f4f6f8;  /* spacing around thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #1565c0;  /* darker on hover */
}

/* 🦊 Firefox */
html {
  scrollbar-width: thin;                     /* slim scrollbar */
  scrollbar-color: #013b6b #f4f6f8;          /* thumb color, track color */
}
