:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --ink: #18202a;
  --muted: #667085;
  --line: #d9dee7;
  --line-strong: #c9d1dc;
  --brand: #1f7a6d;
  --brand-strong: #126156;
  --blue: #3563d8;
  --amber: #b46b12;
  --rose: #c33a56;
  --green: #268650;
  --purple: #6b4fc4;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  --header-bg: rgba(244, 246, 248, 0.94);
  --radius: 8px;
  --sidebar: #15231f;
  --sidebar-ink: #f6fbf9;
  --sidebar-muted: #a8bbb4;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121619;
  --panel: #1b2126;
  --panel-soft: #20282e;
  --ink: #eef2f4;
  --muted: #a8b3bd;
  --line: #303a44;
  --line-strong: #45515d;
  --brand: #48b6a4;
  --brand-strong: #74d3c3;
  --blue: #7fa0ff;
  --amber: #f0b25e;
  --rose: #ff7890;
  --green: #75cc96;
  --purple: #b4a3ff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  --header-bg: rgba(18, 22, 25, 0.94);
  --sidebar: #0c1114;
  --sidebar-ink: #f5faf8;
  --sidebar-muted: #9faeab;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: start center;
  overflow-y: auto;
  padding: 16px;
  background: #101815;
}

.auth-overlay.open {
  display: grid;
}

.auth-shell {
  width: min(1280px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 32px));
  min-height: 0;
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 0.9fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-visual {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #1b1410;
}

.auth-slider {
  position: absolute;
  inset: 0;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 1100ms ease;
}

.auth-slide.active {
  opacity: 1;
  transform: scale(1);
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 16, 14, 0.62), rgba(11, 16, 14, 0.22) 48%, rgba(11, 16, 14, 0.12)),
    linear-gradient(180deg, rgba(11, 16, 14, 0.08), rgba(11, 16, 14, 0.68));
}

.auth-visual-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  display: grid;
  gap: 14px;
  color: #fff;
}

.auth-visual-copy h1 {
  max-width: 680px;
  font-size: 32px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.auth-slide-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-visual-copy .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.auth-visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-visual-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(9, 13, 12, 0.34);
  font-size: 13px;
  font-weight: 800;
}

.auth-visual-meta svg {
  width: 16px;
  height: 16px;
}

.auth-slide-dots {
  display: flex;
  gap: 7px;
}

.auth-slide-dots button {
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.auth-slide-dots button.active {
  width: 42px;
  background: #f4c44f;
}

.auth-card {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  background: var(--panel);
  overflow-y: auto;
  scrollbar-width: thin;
}

.auth-brand {
  color: var(--ink);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.auth-panel {
  display: none;
  gap: 18px;
}

.auth-panel.active {
  display: grid;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.mfa-help {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.signup-form {
  grid-template-columns: 1fr 1fr;
}

.signup-form .full {
  grid-column: 1 / -1;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.auth-create-strip {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 122, 109, 0.2);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 5%, var(--panel-soft));
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.auth-create-strip:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.auth-create-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-strong);
}

.auth-create-cta svg {
  width: 16px;
  height: 16px;
}

.recovery-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.recovery-note strong,
.recovery-note small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.recovery-note small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signup-consent {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(31, 122, 109, 0.2);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 5%, var(--panel-soft));
}

.signup-consent .check-row {
  align-items: start;
  color: var(--ink);
  line-height: 1.35;
}

.signup-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.policy-link-row {
  display: flex;
  justify-content: flex-start;
  margin-top: -2px;
}

.signup-payment-card,
.signup-trial-card,
.human-test-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.signup-trial-card {
  border-color: rgba(38, 134, 80, 0.26);
  background: color-mix(in srgb, var(--green) 5%, var(--panel-soft));
}

.signup-trial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.signup-trial-grid span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.signup-trial-grid svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.signup-trial-grid strong,
.signup-trial-grid small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.signup-trial-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.signup-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.signup-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.signup-option input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.signup-option strong,
.signup-option small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.signup-option small,
.human-test-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compact-field {
  max-width: 260px;
}

.human-test-card {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.32fr) auto;
  align-items: end;
  border-color: rgba(53, 99, 216, 0.22);
  background: color-mix(in srgb, var(--blue) 4%, var(--panel-soft));
}

.human-test-card > div,
.human-test-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-error {
  min-height: 20px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  background: var(--panel);
}

.google-auth-btn,
.mfa-form .text-btn {
  width: 100%;
  justify-content: center;
}

.auth-helper,
.mfa-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.demo-logins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-logins .eyebrow {
  flex: 1 0 100%;
}

.demo-logins button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
  font-weight: 700;
}

.employee-login-test {
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px;
  border: 1px solid rgba(31, 122, 109, 0.22);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 5%, var(--panel-soft));
}

.employee-login-test button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
}

.employee-login-test button > span,
.employee-login-test strong,
.employee-login-test small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee-login-test small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.employee-login-test button.loading svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.nav-item[hidden],
[data-role-hidden="true"] {
  display: none !important;
}

button,
select,
input,
textarea {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 122, 109, 0.24);
  outline-offset: 2px;
}

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 18px;
  color: var(--sidebar-ink);
  background: var(--sidebar);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #f0bd4f;
  color: #172018;
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.sidebar-panel small {
  color: var(--sidebar-muted);
}

.main-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  scrollbar-width: thin;
}

.main-nav::-webkit-scrollbar,
.workspace::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.main-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.workspace::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--line-strong);
}

.nav-item {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-muted);
  cursor: pointer;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--sidebar-ink);
}

.nav-item.active {
  box-shadow: inset 3px 0 #f0bd4f;
  background: linear-gradient(90deg, rgba(240, 189, 79, 0.18), rgba(255, 255, 255, 0.09));
}

.nav-section-label {
  margin: 14px 10px 3px;
  color: color-mix(in srgb, var(--sidebar-muted) 78%, #ffffff);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-section-label::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(240, 189, 79, 0.5);
}

.nav-badge {
  min-width: 22px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(240, 189, 79, 0.18);
  color: #ffd980;
  font-size: 11px;
  font-weight: 900;
}

.nav-badge[hidden] {
  display: none;
}

.nav-item svg,
.icon-btn svg,
.action-btn svg,
.text-btn svg,
.search-field svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sidebar-panel {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-panel strong,
.sidebar-panel small {
  display: block;
}

.workspace {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 0 24px 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  margin: 0 -24px 24px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(14px);
}

.topbar-title {
  min-width: min(320px, 100%);
  flex: 0 0 clamp(260px, 24vw, 360px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title > div {
  min-width: 0;
}

.topbar-title-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.topbar-title-icon svg {
  width: 19px;
  height: 19px;
}

.topbar h1 {
  font-size: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
}

h3 {
  font-size: 16px;
  line-height: 1.35;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-actions {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 250px;
  width: min(390px, 32vw);
  min-width: 210px;
  max-width: 420px;
}

.role-switcher {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 142px;
}

.pdf-style-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.pdf-style-picker select {
  min-width: 154px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  outline: 0;
}

.user-badge,
.sync-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.user-badge svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
}

.sync-status.saved {
  color: var(--green);
}

.sync-status.error {
  color: var(--rose);
}

.search-field svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
}

.role-switcher svg {
  position: absolute;
  left: 10px;
  width: 17px;
  height: 17px;
  color: var(--brand);
  pointer-events: none;
}

.search-field input,
.role-switcher select,
.filters select,
.inline-form input,
.inline-form select,
.settings-form input,
.settings-form select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search-field input {
  padding: 0 12px 0 40px;
}

.role-switcher select {
  padding: 0 10px 0 34px;
}

.topbar .search-field input,
.topbar .role-switcher select,
.topbar .user-badge,
.topbar .sync-status,
.topbar .action-btn {
  min-height: 38px;
}

.topbar .icon-btn {
  width: 38px;
  height: 38px;
}

.topbar .action-btn {
  padding: 0 12px;
}

.notification-shell {
  position: relative;
  flex: 0 0 auto;
}

.notification-bell {
  position: relative;
}

.notification-bell.has-alerts {
  color: var(--rose);
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--header-bg);
  border-radius: 999px;
  background: var(--rose);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.notification-badge[hidden] {
  display: none;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: min(390px, 92vw);
  max-height: min(620px, calc(100vh - 110px));
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-head,
.notification-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.notification-panel-head strong,
.notification-panel-head small {
  display: block;
}

.notification-panel-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notification-panel-list {
  display: grid;
  gap: 8px;
  padding: 10px 0;
}

.notification-panel-actions {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.notification-panel-actions .outline-btn,
.notification-panel-actions .action-btn {
  flex: 1 1 0;
}

.filters select,
.inline-form input,
.inline-form select,
.settings-form input,
.settings-form select,
.import-form input,
.import-form select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 0 12px;
}

.form-grid textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

.icon-btn,
.action-btn,
.text-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.icon-btn:hover,
.text-btn:hover,
.mini-btn:hover {
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

.action-btn {
  min-height: 42px;
  padding: 0 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.action-btn:hover {
  background: var(--brand-strong);
}

.text-btn {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 700;
}

.text-btn.compact {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  white-space: normal;
}

.link-btn:hover {
  color: var(--brand);
}

.mini-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.mini-btn svg {
  width: 16px;
  height: 16px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dashboard-friendly-brief {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.dashboard-friendly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.68fr) minmax(230px, 0.56fr);
  gap: 14px;
  align-items: stretch;
}

.dashboard-friendly-main {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.dashboard-friendly-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dashboard-friendly-meta > span:not(.role-pill) {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dashboard-friendly-meta svg {
  width: 15px;
  height: 15px;
}

.dashboard-friendly-main h2 {
  max-width: 760px;
  font-size: 28px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.dashboard-friendly-main p {
  max-width: 840px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.dashboard-friendly-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dashboard-friendly-actions .action-btn,
.dashboard-friendly-actions .outline-btn {
  min-height: 42px;
}

.dashboard-premium-pulse {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dashboard-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.dashboard-pulse-card {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
  text-align: left;
}

.dashboard-pulse-card:hover {
  border-color: rgba(31, 122, 109, 0.36);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.dashboard-pulse-card.ready {
  border-color: rgba(38, 134, 80, 0.24);
  background: color-mix(in srgb, var(--green) 8%, var(--panel-soft));
}

.dashboard-pulse-card.watch {
  border-color: rgba(180, 107, 18, 0.28);
  background: color-mix(in srgb, var(--amber) 8%, var(--panel-soft));
}

.dashboard-pulse-card span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-pulse-card strong,
.dashboard-pulse-card small,
.dashboard-pulse-card b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-pulse-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-pulse-card b {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.dashboard-command-board {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 109, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 122, 109, 0.08), rgba(250, 184, 64, 0.08)),
    var(--panel);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.dashboard-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-command-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.dashboard-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.dashboard-command-card {
  min-width: 0;
  min-height: 122px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.dashboard-command-card:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 109, 0.35);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
}

.dashboard-command-card.ready {
  border-color: rgba(38, 134, 80, 0.28);
  background: color-mix(in srgb, var(--green) 7%, var(--panel));
}

.dashboard-command-card.watch {
  border-color: rgba(180, 107, 18, 0.32);
  background: color-mix(in srgb, var(--amber) 8%, var(--panel));
}

.dashboard-command-card.risk {
  border-color: rgba(190, 18, 60, 0.28);
  background: color-mix(in srgb, var(--red) 7%, var(--panel));
}

.dashboard-command-card span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-command-card small,
.dashboard-command-card strong,
.dashboard-command-card em,
.dashboard-command-card b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-command-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-command-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.dashboard-command-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-command-card b {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.dashboard-action-drawer {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 109, 0.24);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.dashboard-action-drawer[hidden] {
  display: none;
}

.dashboard-drawer-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dashboard-drawer-head h2,
.dashboard-drawer-head small,
.dashboard-drawer-row strong,
.dashboard-drawer-row small,
.dashboard-drawer-row b,
.dashboard-drawer-metric strong,
.dashboard-drawer-metric small,
.dashboard-drawer-metric em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-drawer-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.dashboard-drawer-head small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-drawer-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.dashboard-drawer-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.dashboard-drawer-metric.ready {
  border-color: rgba(38, 134, 80, 0.24);
  background: color-mix(in srgb, var(--green) 7%, var(--panel-soft));
}

.dashboard-drawer-metric.watch {
  border-color: rgba(180, 107, 18, 0.28);
  background: color-mix(in srgb, var(--amber) 8%, var(--panel-soft));
}

.dashboard-drawer-metric.risk {
  border-color: rgba(190, 18, 60, 0.28);
  background: color-mix(in srgb, var(--red) 7%, var(--panel-soft));
}

.dashboard-drawer-metric > svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.dashboard-drawer-metric span {
  display: grid;
  gap: 2px;
}

.dashboard-drawer-metric small,
.dashboard-drawer-metric em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.dashboard-drawer-metric strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
}

.dashboard-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dashboard-drawer-actions .action-btn,
.dashboard-drawer-actions .outline-btn,
.dashboard-drawer-actions .text-btn {
  min-height: 40px;
}

.dashboard-drawer-body {
  display: grid;
  gap: 8px;
}

.dashboard-drawer-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.dashboard-drawer-row.watch {
  border-color: rgba(180, 107, 18, 0.24);
}

.dashboard-drawer-row.risk {
  border-color: rgba(190, 18, 60, 0.28);
}

.dashboard-drawer-row strong,
.dashboard-drawer-row small {
  display: block;
}

.dashboard-drawer-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-drawer-row b {
  font-size: 13px;
}

.dashboard-drawer-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.my-hr-dashboard {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.my-hr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 14px;
  align-items: stretch;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.my-hr-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.my-hr-identity h2,
.my-hr-identity small,
.my-hr-identity span,
.my-hr-panel-head strong,
.my-hr-row strong,
.my-hr-row small,
.my-hr-metric strong,
.my-hr-metric small,
.my-hr-metric em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-hr-identity h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.my-hr-identity small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.my-hr-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.my-hr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.my-hr-actions .action-btn,
.my-hr-actions .outline-btn {
  width: 100%;
  min-width: 0;
}

.my-hr-profile-nudge {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(31, 122, 109, 0.22);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 5%, var(--panel));
}

.my-hr-profile-nudge strong,
.my-hr-profile-nudge small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-hr-profile-nudge small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.my-hr-metrics,
.my-hr-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.my-hr-metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.my-hr-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.my-hr-metric,
.my-hr-panel,
.my-hr-row,
.my-hr-empty {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.my-hr-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.my-hr-metric small,
.my-hr-metric em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.my-hr-metric strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.my-hr-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--panel);
}

.my-hr-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.my-hr-list {
  display: grid;
  gap: 8px;
}

.my-hr-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.my-hr-row-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 122, 109, 0.1);
  color: var(--brand);
}

.my-hr-row-icon svg {
  width: 16px;
  height: 16px;
}

.my-hr-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.my-hr-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.my-hr-empty.compact {
  display: block;
  padding: 12px;
  text-align: center;
}

.platform-saas-dashboard {
  display: grid;
  margin-bottom: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.platform-saas-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.platform-saas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.platform-saas-hero h2,
.platform-saas-hero p,
.platform-saas-hero strong,
.platform-saas-hero small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.platform-saas-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.12;
}

.platform-saas-hero p {
  max-width: 780px;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.platform-saas-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.platform-saas-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.platform-saas-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 12px;
  align-items: start;
}

.platform-saas-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.platform-trial-list,
.platform-customer-list {
  display: grid;
  gap: 10px;
}

.platform-trial-row,
.platform-customer-card {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.platform-trial-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.platform-customer-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.platform-trial-row.warning {
  border-color: rgba(180, 107, 18, 0.34);
  background: color-mix(in srgb, var(--amber) 7%, var(--panel));
}

.platform-trial-row.expired {
  border-color: rgba(195, 58, 86, 0.34);
  background: color-mix(in srgb, var(--rose) 7%, var(--panel));
}

.platform-trial-row strong,
.platform-trial-row small,
.platform-customer-card strong,
.platform-customer-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.platform-trial-row small,
.platform-customer-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.platform-customer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.platform-customer-meta > span:not(.status-pill) {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.dashboard-priority-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.dashboard-priority-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.dashboard-priority-card.priority-high {
  border-color: rgba(195, 58, 86, 0.34);
  background: rgba(195, 58, 86, 0.05);
}

.dashboard-priority-card.priority-ready {
  border-color: rgba(38, 134, 80, 0.26);
  background: rgba(38, 134, 80, 0.05);
}

.dashboard-priority-card span,
.dashboard-priority-card strong,
.dashboard-priority-card small,
.dashboard-priority-card em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-priority-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-priority-card strong {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.dashboard-priority-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.dashboard-priority-card .priority-pill {
  grid-column: 1 / -1;
  justify-self: start;
}

.dashboard-priority-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--panel);
  color: var(--brand);
}

.dashboard-priority-icon svg {
  width: 19px;
  height: 19px;
}

.dashboard-soft-stats {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.dashboard-soft-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.dashboard-soft-stat span,
.dashboard-soft-stat strong,
.dashboard-soft-stat small,
.dashboard-soft-stat em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-soft-stat small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-soft-stat strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.15;
}

.dashboard-soft-stat em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.metric-card {
  min-height: 128px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--brand);
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.metric-trend {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-grid,
.reports-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 22px;
}

.suite-section {
  margin-top: 26px;
}

.daily-board-section {
  margin-bottom: 22px;
}

.daily-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 12px;
}

.daily-board-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-width: 0;
  min-height: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.daily-board-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.daily-board-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.daily-board-head strong,
.daily-board-head small,
.daily-board-row strong,
.daily-board-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.daily-board-head small,
.daily-board-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.daily-board-value {
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}

.daily-board-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.daily-board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.daily-board-row b {
  max-width: 110px;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: right;
}

.suite-grid,
.leave-grid,
.document-grid,
.review-list,
.goal-list,
.automation-list,
.balance-list,
.user-role-list,
.attendance-list,
.shift-list,
.pay-profile-list,
.payroll-run-list,
.sales-lead-list,
.marketing-audience-list,
.marketing-broadcast-list,
.quote-list,
.activity-list,
.approval-list,
.invoice-list,
.vendor-bill-list,
.expense-list,
.ledger-list,
.travel-client-list,
.package-grid,
.vendor-grid,
.payment-list,
.case-list,
.ops-request-list,
.asset-grid,
.itinerary-list,
.customer-ledger-list,
.fulfillment-list,
.communication-list,
.client-communication-timeline,
.work-queue-list,
.customer360-client-list,
.customer360-list,
.customer360-grid,
.customer360-timeline {
  display: grid;
  gap: 12px;
}

.suite-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.compact-metrics {
  margin-bottom: 20px;
}

.branch-access-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.branch-access-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.branch-access-copy strong,
.branch-access-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.branch-access-copy span {
  color: var(--muted);
  font-size: 12px;
}

.branch-access-bar select {
  min-width: 240px;
  max-width: 320px;
}

.gst-compliance-panel {
  margin-bottom: 22px;
}

.gst-report-grid {
  display: grid;
  gap: 14px;
}

.gst-report-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
}

.gst-report-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.report-mini-head strong,
.report-mini-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gst-summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.gst-summary-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.accounts-dashboard-panel {
  margin-bottom: 22px;
}

.accounts-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
}

.accounts-dashboard-grid > .accounts-dashboard-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.receivables-panel {
  grid-row: span 2;
}

.accounts-aging-list,
.accounts-unpaid-list,
.accounts-followup-list {
  display: grid;
  gap: 8px;
}

.accounts-aging-row,
.accounts-invoice-row,
.accounts-followup-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.accounts-aging-row {
  grid-template-columns: minmax(105px, 0.7fr) minmax(120px, 1fr) auto;
}

.accounts-aging-row span,
.accounts-aging-row strong,
.accounts-invoice-row span,
.accounts-invoice-row strong,
.accounts-followup-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.accounts-aging-row small,
.accounts-invoice-row small,
.accounts-followup-row small,
.accounts-branch-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.accounts-followup-row small.accounts-reminder-status {
  color: var(--accent);
}

.reminder-schedule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reminder-schedule-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.reminder-schedule-strip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.accounts-aging-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.accounts-aging-meter span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--brand);
}

.accounts-mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounts-branch-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.accounts-branch-row > span:last-child {
  text-align: right;
}

.accounts-invoice-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.accounts-invoice-row .approval-actions {
  grid-column: 1 / -1;
}

.accounts-followup-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.call-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(280px, 0.38fr) minmax(320px, 0.5fr);
  gap: 18px;
  align-items: start;
}

.call-layout .detail-pane {
  grid-column: 3;
  grid-row: 2 / span 2;
}

.call-dialer-panel {
  align-self: stretch;
}

.call-provider-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  margin: -6px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.call-provider-status.ready {
  border-color: rgba(38, 134, 80, 0.34);
}

.call-provider-status.pending {
  border-color: rgba(180, 107, 18, 0.34);
}

.call-provider-status strong,
.call-provider-status span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.call-provider-status div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compact-form .full {
  grid-column: 1 / -1;
}

.call-supervisor-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(100%, 420px);
}

.call-supervisor-controls input,
.call-supervisor-controls select {
  min-height: 38px;
}

.call-supervisor-controls input {
  min-width: 180px;
}

.call-card-list {
  display: grid;
  gap: 10px;
}

.call-live-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.call-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.call-card.live {
  border-color: rgba(53, 99, 216, 0.28);
  background:
    linear-gradient(180deg, rgba(53, 99, 216, 0.06), transparent 58%),
    var(--panel);
}

.call-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.call-card strong,
.call-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.call-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.call-mini-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.call-mini-grid span,
.call-mini-grid strong {
  display: block;
}

.call-mini-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.call-audit-list,
.call-report-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.call-report-stack > strong {
  margin-top: 2px;
  font-size: 13px;
}

.compact-table table {
  min-width: 900px;
}

.compact-table th,
.compact-table td {
  padding: 10px;
  font-size: 12px;
}

.work-queue-section {
  margin-bottom: 22px;
}

.work-queue-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.work-queue-stat {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.work-queue-stat span,
.work-queue-stat strong {
  display: block;
}

.work-queue-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.work-queue-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.work-queue-card.High {
  border-color: rgba(195, 58, 86, 0.34);
}

.work-queue-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--brand);
}

.work-queue-copy,
.work-queue-copy small,
.work-queue-copy strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.work-queue-copy small {
  color: var(--muted);
}

.work-queue-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.role-command-center {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.dashboard-ease-panel {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.dashboard-ease-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-ease-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 10px;
}

.dashboard-ease-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.dashboard-ease-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.dashboard-ease-card span,
.dashboard-ease-card strong,
.dashboard-ease-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-ease-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-ease-card b {
  max-width: 120px;
  overflow-wrap: anywhere;
  text-align: right;
}

.go-live-workspace {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.go-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.go-live-workspace-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
}

.go-live-step {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.go-live-step.ready {
  border-color: rgba(38, 134, 80, 0.28);
}

.go-live-step span,
.go-live-step strong,
.go-live-step small,
.go-live-step b {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.go-live-step small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.go-live-step b {
  grid-column: 1 / -1;
  padding-top: 4px;
  font-size: 18px;
}

.go-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-portal-dashboard {
  display: grid;
  margin-bottom: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.customer-portal-shell {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.customer-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  gap: 16px;
  align-items: stretch;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.customer-trial-banner {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(53, 99, 216, 0.22);
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 5%, var(--panel-soft));
}

.customer-trial-banner.active {
  border-color: rgba(38, 134, 80, 0.28);
  background: color-mix(in srgb, var(--green) 5%, var(--panel-soft));
}

.customer-trial-banner.expired {
  border-color: rgba(195, 58, 86, 0.32);
  background: color-mix(in srgb, var(--rose) 7%, var(--panel-soft));
}

.customer-trial-banner span,
.customer-trial-banner strong,
.customer-trial-banner small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-trial-banner small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.customer-flow-strip {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(53, 99, 216, 0.2);
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 4%, var(--panel-soft));
}

.customer-flow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.customer-flow-head strong,
.customer-flow-head small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-flow-head strong {
  color: var(--ink);
  font-size: 20px;
}

.customer-flow-head small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

.customer-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.customer-flow-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.customer-flow-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 99, 216, 0.08);
}

.customer-flow-card.ready {
  border-color: rgba(38, 134, 80, 0.28);
}

.customer-flow-card small,
.customer-flow-card strong,
.customer-flow-card em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-flow-card small,
.customer-flow-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.customer-flow-card strong {
  margin-top: 1px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.customer-flow-card > svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.customer-start-strip {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(31, 122, 109, 0.2);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 4%, var(--panel-soft));
}

.customer-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.customer-start-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.customer-start-card.primary {
  border-color: rgba(31, 122, 109, 0.36);
  background: color-mix(in srgb, var(--brand) 7%, var(--panel));
}

.customer-start-card.ready {
  border-color: rgba(38, 134, 80, 0.28);
}

.customer-start-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.customer-start-card strong,
.customer-start-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-start-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-start-card > svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.customer-portal-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.customer-portal-copy h2 {
  max-width: 980px;
  font-size: 26px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.customer-portal-copy p {
  max-width: 880px;
  color: var(--muted);
}

.customer-portal-tags,
.customer-portal-module-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-portal-tags span,
.customer-portal-module-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.customer-portal-tags svg,
.customer-portal-module-strip svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.customer-portal-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.customer-portal-score {
  width: 100%;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(31, 122, 109, 0.22);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 7%, var(--panel-soft));
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.customer-portal-score:hover,
.customer-portal-mini-status:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.customer-portal-score span,
.customer-portal-score small,
.customer-portal-mini-status span,
.customer-portal-mini-status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.customer-portal-score strong,
.customer-portal-mini-status strong {
  font-size: 38px;
  line-height: 1;
}

.customer-portal-mini-status {
  width: 100%;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.customer-portal-mini-status.ready {
  border-color: rgba(38, 134, 80, 0.32);
  background: color-mix(in srgb, var(--green) 7%, var(--panel-soft));
}

.customer-portal-mini-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.customer-portal-mini-status svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.customer-portal-metrics,
.customer-portal-focus-grid,
.customer-portal-actions,
.customer-portal-checklist,
.policy-trust-list {
  display: grid;
  gap: 10px;
}

.customer-portal-metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.customer-portal-focus-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.86fr) minmax(260px, 0.86fr);
  align-items: start;
}

.customer-portal-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.customer-portal-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-portal-check,
.customer-portal-action,
.policy-trust-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.customer-portal-check,
.policy-trust-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.customer-portal-action {
  grid-template-columns: auto minmax(0, 1fr);
}

.customer-portal-check:hover,
.customer-portal-action:hover,
.policy-trust-row:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.customer-portal-check.ready,
.policy-trust-row.ready {
  border-color: rgba(38, 134, 80, 0.28);
}

.customer-portal-action.primary {
  border-color: rgba(31, 122, 109, 0.32);
  background: color-mix(in srgb, var(--brand) 6%, var(--panel));
}

.customer-portal-check strong,
.customer-portal-check small,
.customer-portal-action strong,
.customer-portal-action small,
.policy-trust-row strong,
.policy-trust-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-portal-check small,
.customer-portal-action small,
.policy-trust-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.policy-trust-row > svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.role-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.role-command-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.role-command-copy h2 {
  font-size: 22px;
  line-height: 1.1;
}

.role-command-copy p {
  max-width: 820px;
  color: var(--muted);
}

.role-pill,
.role-command-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-pill {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(31, 122, 109, 0.22);
  border-radius: 999px;
  background: rgba(31, 122, 109, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.role-pill svg,
.role-command-meta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.role-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.role-command-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
}

.role-command-actions .action-btn,
.role-command-actions .outline-btn {
  min-width: 118px;
}

.role-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 14px;
  margin-top: 14px;
}

.role-focus-panel,
.role-alert-panel {
  min-width: 0;
}

.role-focus-list,
.role-alert-list {
  display: grid;
  gap: 8px;
}

.role-focus-card,
.role-alert-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.role-focus-card:hover,
.role-alert-item:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.role-alert-item.High {
  border-color: rgba(195, 58, 86, 0.34);
}

.role-focus-card span,
.role-focus-card strong,
.role-focus-card small,
.role-alert-item span,
.role-alert-item strong,
.role-alert-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-focus-card small,
.role-alert-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.role-focus-card b {
  max-width: 140px;
  overflow-wrap: anywhere;
  text-align: right;
}

.hr-command-dashboard {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.hr-command-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.28fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hr-command-head h2 {
  font-size: 22px;
  line-height: 1.1;
}

.hr-command-head small,
.hr-readiness-card span,
.hr-readiness-card strong,
.hr-readiness-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hr-command-head small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
}

.hr-readiness-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(31, 122, 109, 0.24);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 5%, var(--panel-soft));
}

.hr-readiness-card.watch {
  border-color: rgba(245, 184, 71, 0.34);
  background: color-mix(in srgb, var(--gold) 8%, var(--panel-soft));
}

.hr-readiness-card.risk {
  border-color: rgba(195, 58, 86, 0.32);
  background: color-mix(in srgb, var(--rose) 7%, var(--panel-soft));
}

.hr-readiness-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hr-readiness-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.hr-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-command-actions .action-btn,
.hr-command-actions .outline-btn {
  min-width: 132px;
}

.hr-command-metrics,
.hr-lifecycle-grid,
.hr-followup-grid {
  display: grid;
  gap: 10px;
}

.hr-command-metrics {
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.hr-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.hr-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.hr-panel.wide {
  grid-row: span 2;
}

.hr-lifecycle-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.hr-followup-grid {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

.hr-command-metric,
.hr-lifecycle-card,
.hr-action-row,
.hr-followup-card {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.hr-command-metric,
.hr-followup-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.hr-lifecycle-card,
.hr-action-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.hr-command-metric:hover,
.hr-lifecycle-card:hover,
.hr-action-row:hover,
.hr-followup-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.hr-command-metric.ready,
.hr-lifecycle-card.ready,
.hr-followup-card.ready {
  border-color: rgba(38, 134, 80, 0.28);
  background: color-mix(in srgb, var(--green) 5%, var(--panel));
}

.hr-command-metric.watch,
.hr-lifecycle-card.watch {
  border-color: rgba(245, 184, 71, 0.34);
}

.hr-command-metric.risk,
.hr-lifecycle-card.risk,
.hr-action-row.High {
  border-color: rgba(195, 58, 86, 0.32);
}

.hr-command-metric small,
.hr-command-metric strong,
.hr-command-metric em,
.hr-lifecycle-card small,
.hr-lifecycle-card strong,
.hr-lifecycle-card em,
.hr-action-row strong,
.hr-action-row small,
.hr-followup-card small,
.hr-followup-card strong,
.hr-followup-card em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hr-command-metric small,
.hr-lifecycle-card small,
.hr-followup-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hr-command-metric strong,
.hr-lifecycle-card strong,
.hr-followup-card strong {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1;
}

.hr-command-metric em,
.hr-lifecycle-card em,
.hr-followup-card em,
.hr-action-row small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.hr-action-list {
  display: grid;
  gap: 8px;
}

.hr-action-row b {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
}

.notification-center {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.notification-center-heading {
  margin-bottom: 12px;
}

.notification-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.notification-stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.hr-approval-section,
.hr-approval-inline,
.hr-approval-desk {
  min-width: 0;
}

.hr-panel.hr-approval-desk {
  grid-column: 1 / -1;
  grid-row: auto;
}

.hr-approval-inline {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 122, 109, 0.18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 4%, var(--panel-soft));
}

.compact-heading {
  gap: 12px;
  margin-bottom: 12px;
}

.hr-approval-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
  min-width: 0;
}

.hr-approval-summary span {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  text-align: center;
}

.hr-approval-summary strong,
.hr-approval-summary small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hr-approval-summary strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.hr-approval-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hr-approval-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  min-width: 0;
}

.hr-approval-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hr-approval-card.leave {
  border-color: rgba(31, 122, 109, 0.2);
}

.hr-approval-card.attendance {
  border-color: rgba(53, 99, 216, 0.2);
}

.hr-approval-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.hr-approval-card-head span,
.hr-approval-card-head strong,
.hr-approval-card-head small,
.hr-approval-card-detail span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hr-approval-card-head strong,
.hr-approval-card-head small {
  display: block;
}

.hr-approval-card-head small,
.hr-approval-card-detail {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.hr-approval-card-detail {
  display: grid;
  gap: 4px;
}

.hr-approval-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hr-approval-metrics span {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.hr-approval-metrics small,
.hr-approval-metrics strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hr-approval-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hr-approval-metrics strong {
  margin-top: 2px;
  color: var(--ink);
}

.employee-service-section {
  display: grid;
  gap: 14px;
}

.employee-service-command-grid,
.employee-service-list {
  display: grid;
  gap: 10px;
}

.employee-service-command-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.employee-service-command-card,
.employee-service-request-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.employee-service-command-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.employee-service-command-card span,
.employee-service-command-card strong,
.employee-service-command-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee-service-command-card small {
  color: var(--muted);
  font-size: 12px;
}

.employee-service-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.notification-stat-card strong,
.notification-stat-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.notification-stat-card strong {
  font-size: 20px;
  line-height: 1;
}

.notification-stat-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notification-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.notification-work-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.notification-work-panel.activity-panel {
  grid-column: 1 / -1;
}

.notification-list,
.follow-up-status-list,
.activity-feed-list {
  display: grid;
  gap: 8px;
}

.follow-up-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.follow-up-dashboard-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  align-content: start;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.follow-up-dashboard-card .metric-icon {
  width: 34px;
  height: 34px;
}

.follow-up-dashboard-card.ready {
  border-color: rgba(38, 134, 80, 0.3);
  background: color-mix(in srgb, var(--green) 6%, var(--panel));
}

.follow-up-dashboard-card.hr {
  border-color: rgba(31, 122, 109, 0.26);
  background: color-mix(in srgb, var(--brand) 5%, var(--panel));
}

.follow-up-dashboard-card.money {
  border-color: rgba(245, 184, 71, 0.34);
  background: color-mix(in srgb, var(--gold) 8%, var(--panel));
}

.follow-up-dashboard-card.travel {
  border-color: rgba(53, 99, 216, 0.24);
}

.follow-up-dashboard-card.protected {
  background: var(--panel-soft);
}

.follow-up-dashboard-card small,
.follow-up-dashboard-card strong,
.follow-up-dashboard-card em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.follow-up-dashboard-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.follow-up-dashboard-card strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1;
}

.follow-up-dashboard-card em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.notification-item.compact {
  grid-template-columns: auto minmax(0, 1fr);
}

.notification-item.High {
  border-color: rgba(195, 58, 86, 0.34);
}

.notification-item:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.notification-item span,
.notification-item strong,
.notification-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.notification-item small,
.notification-item-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notification-item-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
  max-width: 140px;
}

.notification-item.compact .notification-item-meta {
  grid-column: 1 / -1;
  justify-self: end;
}

.follow-up-status-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.follow-up-status-row.ready {
  border-color: rgba(38, 134, 80, 0.28);
  background: color-mix(in srgb, var(--green) 4%, var(--panel));
}

.follow-up-status-row.hr,
.follow-up-status-row.payroll,
.follow-up-status-row.documents {
  border-left: 4px solid var(--brand);
}

.follow-up-status-row span,
.follow-up-status-row strong,
.follow-up-status-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.follow-up-status-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.follow-up-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.follow-up-mini-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.follow-up-mini-metrics b {
  color: var(--ink);
}

.activity-feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.activity-feed-row span,
.activity-feed-row strong,
.activity-feed-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.activity-feed-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-block {
  min-width: 0;
}

.section-block.wide {
  grid-column: 1 / -1;
}

.section-heading,
.control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.control-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.filters select {
  min-width: 160px;
}

.compact-board,
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pipeline-board {
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  align-items: start;
}

.stage-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.stage-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stage-count {
  min-width: 28px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stage-list {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 12px;
}

.candidate-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-quick-actions button {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.candidate-quick-actions button:hover {
  border-color: rgba(31, 122, 109, 0.34);
  color: var(--brand);
}

.candidate-quick-actions button.danger {
  color: var(--red);
}

.candidate-quick-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.candidate-card,
.task-item,
.timeline-item,
.onboarding-item,
.employee-mini,
.requisition-card,
.suite-card,
.leave-card,
.attendance-card,
.shift-card,
.pay-profile-card,
.payroll-run-card,
.sales-deal-card,
.sales-lead-card,
.marketing-campaign-card,
.marketing-audience-card,
.marketing-broadcast-card,
.quote-card,
.activity-card,
.approval-card,
.invoice-card,
.vendor-bill-card,
.expense-card,
.ledger-card,
.customer-ledger-card,
.fulfillment-card,
.communication-card,
.travel-booking-card,
.travel-client-card,
.package-card,
.vendor-card,
.payment-card,
.service-case-card,
.ops-request-card,
.asset-card,
.itinerary-card,
.review-card,
.goal-card,
.document-card,
.automation-card,
.balance-card,
.user-role-card,
.subscription-panel,
.compliance-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.suite-card,
.leave-card,
.attendance-card,
.shift-card,
.pay-profile-card,
.payroll-run-card,
.sales-deal-card,
.sales-lead-card,
.marketing-campaign-card,
.marketing-audience-card,
.marketing-broadcast-card,
.quote-card,
.activity-card,
.approval-card,
.invoice-card,
.vendor-bill-card,
.expense-card,
.ledger-card,
.customer-ledger-card,
.fulfillment-card,
.communication-card,
.travel-booking-card,
.travel-client-card,
.package-card,
.vendor-card,
.payment-card,
.service-case-card,
.ops-request-card,
.asset-card,
.itinerary-card,
.review-card,
.goal-card,
.document-card,
.automation-card,
.balance-card,
.user-role-card,
.compliance-item {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.suite-card-head,
.record-row,
.automation-head,
.document-head,
.attendance-head,
.travel-booking-head,
.leave-head,
.review-head,
.goal-head,
.user-role-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.suite-card-head strong,
.record-row strong,
.automation-head strong,
.document-head strong,
.attendance-head strong,
.travel-booking-head strong,
.leave-head strong,
.review-head strong,
.goal-head strong,
.user-role-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.candidate-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.hiring-source-panel {
  margin-bottom: 18px;
}

.hiring-source-grid,
.hiring-source-list {
  display: grid;
  gap: 10px;
}

.hiring-source-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  margin-top: 12px;
}

.hiring-source-card,
.hiring-source-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.hiring-source-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.hiring-source-card .status-pill {
  grid-column: 1 / -1;
  justify-self: start;
}

.hiring-source-board {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hiring-source-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.hiring-source-card strong,
.hiring-source-card small,
.hiring-source-row strong,
.hiring-source-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hiring-source-card small,
.hiring-source-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.candidate-head,
.person-line,
.employee-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-soft);
}

.avatar.large {
  width: 62px;
  height: 62px;
}

.person-copy {
  min-width: 0;
}

.person-copy strong,
.person-copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-copy span,
.card-meta,
.small-muted {
  color: var(--muted);
  font-size: 13px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.candidate-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.status-pill,
.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tag {
  background: rgba(31, 122, 109, 0.1);
  color: var(--brand-strong);
}

.status-pill {
  background: var(--panel-soft);
  color: var(--muted);
}

.status-pill.success {
  background: rgba(38, 134, 80, 0.12);
  color: var(--green);
}

.status-pill.warning {
  background: rgba(180, 107, 18, 0.14);
  color: var(--amber);
}

.status-pill.danger {
  background: rgba(195, 58, 86, 0.12);
  color: var(--rose);
}

.priority-pill.High {
  background: rgba(195, 58, 86, 0.12);
  color: var(--rose);
}

.priority-pill.Medium {
  background: rgba(180, 107, 18, 0.14);
  color: var(--amber);
}

.priority-pill.Low {
  background: rgba(38, 134, 80, 0.12);
  color: var(--green);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compact-board .card-actions {
  flex-wrap: wrap;
}

.compact-board .candidate-card {
  padding: 10px;
}

.card-actions .move-actions {
  display: flex;
  gap: 6px;
}

.task-list,
.timeline,
.onboarding-list {
  display: grid;
  gap: 10px;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.task-check {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.task-item.done .task-title {
  color: var(--muted);
  text-decoration: line-through;
}

.task-title {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.task-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 12px;
}

.timeline-time {
  color: var(--brand-strong);
  font-weight: 800;
}

.timeline-item strong,
.timeline-item span {
  display: block;
  overflow-wrap: anywhere;
}

.interview-timeline-item {
  align-items: start;
}

.interview-timeline-item .mini-btn {
  margin-top: 8px;
}

.candidate-lifecycle {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.candidate-lifecycle-list {
  display: grid;
  gap: 8px;
}

.candidate-lifecycle-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.candidate-lifecycle-item.ready {
  border-color: rgba(31, 122, 109, 0.35);
}

.candidate-lifecycle-item.watch {
  border-color: rgba(198, 142, 42, 0.35);
}

.candidate-lifecycle-item.risk {
  border-color: rgba(195, 58, 86, 0.35);
}

.candidate-lifecycle-item small,
.candidate-lifecycle-item em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.control-bar {
  align-items: flex-start;
}

.employee-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.6fr);
  gap: 22px;
  align-items: start;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: var(--panel-soft);
}

.meter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meter .progress-track {
  width: 90px;
}

.detail-pane {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-stat {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.detail-stat strong,
.detail-stat span {
  display: block;
}

.detail-stat span {
  color: var(--muted);
  font-size: 12px;
}

.employee360 {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.employee360-hero,
.employee360-readiness,
.employee360-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.employee360-hero {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(31, 122, 109, 0.08), rgba(53, 99, 216, 0.05)),
    var(--panel-soft);
}

.employee360-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.employee360-chip-row,
.employee360-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.employee360-chip-row {
  margin-top: 8px;
}

.employee360-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee360-action-btn {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}

.employee360-action-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee360-stats,
.employee360-check-grid,
.employee360-packet-grid,
.employee360-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.employee360-stats,
.employee360-check-grid,
.employee360-packet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.employee360-stat,
.employee360-check,
.employee360-packet-item,
.employee360-mini-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.employee360-mini-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.employee360-stat-icon,
.employee360-mini-icon,
.employee360-check > svg {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 122, 109, 0.1);
  color: var(--brand);
}

.employee360-check.ready > svg {
  background: rgba(38, 134, 80, 0.12);
  color: var(--green);
}

.employee360-packet-item.ready {
  border-color: rgba(38, 134, 80, 0.28);
  background: color-mix(in srgb, var(--green) 5%, var(--panel));
}

.employee360-packet-item.attention {
  border-color: rgba(195, 58, 86, 0.26);
  background: color-mix(in srgb, var(--rose) 5%, var(--panel));
}

.employee360-check.attention > svg {
  background: rgba(195, 58, 86, 0.1);
  color: var(--rose);
}

.employee360-stat span,
.employee360-stat small,
.employee360-stat strong,
.employee360-stat em,
.employee360-check span,
.employee360-check strong,
.employee360-check small,
.employee360-packet-item span,
.employee360-packet-item strong,
.employee360-packet-item small,
.employee360-packet-item em,
.employee360-mini-row span,
.employee360-mini-row strong,
.employee360-mini-row small,
.employee360-section-head span,
.employee360-section-head strong,
.employee360-section-head small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee360-stat small,
.employee360-stat em,
.employee360-check small,
.employee360-packet-item small,
.employee360-packet-item em,
.employee360-mini-row small,
.employee360-section-head small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.employee360-packet-item small {
  text-transform: uppercase;
}

.employee360-packet-item strong {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.2;
}

.employee360-packet-item em {
  display: block;
  margin-top: 2px;
}

.employee360-stat strong {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.15;
}

.employee360-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.employee360-panel {
  display: grid;
  gap: 10px;
}

.employee360-mini-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.employee360-mini-row .status-pill {
  justify-self: end;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.employee360-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.employee360-balance,
.employee360-payroll-card > span,
.employee360-empty {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.employee360-balance span,
.employee360-balance strong,
.employee360-payroll-card small,
.employee360-payroll-card strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee360-balance span,
.employee360-payroll-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.employee360-balance strong,
.employee360-payroll-card strong {
  margin-top: 2px;
  font-size: 18px;
}

.employee360-payroll-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.employee360-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.employee360-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.jobs-layout,
.operations-layout,
.travel-layout,
.leave-layout,
.attendance-layout,
.payroll-layout,
.sales-layout,
.marketing-layout,
.accounts-layout,
.performance-grid,
.documents-layout,
.automation-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 22px;
  align-items: start;
}

.settings-layout {
  grid-template-columns: minmax(210px, 0.22fr) minmax(0, 1fr);
}

.settings-layout > .section-block:not(.settings-side-nav) {
  grid-column: 2;
}

.settings-layout .wide {
  grid-column: 2;
}

.settings-side-nav {
  position: sticky;
  top: 96px;
  z-index: 5;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

#settingsView .section-block {
  scroll-margin-top: 96px;
}

.settings-side-head {
  display: grid;
  gap: 2px;
  margin-bottom: 4px;
}

.settings-side-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.settings-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.settings-action-btn {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  text-align: center;
}

.settings-action-btn:hover {
  border-color: rgba(31, 122, 109, 0.34);
  background: color-mix(in srgb, var(--brand) 6%, var(--panel));
}

.settings-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.settings-action-btn.primary {
  border-color: rgba(31, 122, 109, 0.38);
  background: var(--brand);
  color: #fff;
}

.settings-action-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.settings-action-btn span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.settings-nav-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.settings-nav-item:hover,
.settings-nav-item.active {
  border-color: rgba(31, 122, 109, 0.32);
  background: color-mix(in srgb, var(--brand) 8%, var(--panel));
}

.settings-nav-item.active {
  box-shadow: inset 3px 0 var(--brand);
}

.settings-nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.settings-nav-item span,
.settings-nav-item strong,
.settings-nav-item small {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
}

.settings-nav-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.role-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.role-test-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.role-test-card strong,
.role-test-card small,
.role-test-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-test-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-test-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.leave-layout .wide {
  grid-column: 1 / -1;
}

.travel-layout {
  grid-template-columns: minmax(0, 0.95fr) 320px;
}

.customer360-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(320px, 0.55fr);
  gap: 22px;
  align-items: start;
}

.sales-layout,
.marketing-layout,
.accounts-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.48fr) 320px;
}

.operations-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr) 320px;
}

.operations-command-panel {
  margin-bottom: 20px;
}

.operations-command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.operations-command-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.operations-command-card > i {
  color: var(--brand);
}

.operations-command-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.operations-command-card strong {
  color: var(--ink);
  font-size: 20px;
}

.operations-command-card small,
.operations-command-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.customer360-layout .wide {
  grid-column: 1 / -1;
}

.customer360-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.customer360-card,
.customer360-client-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.customer360-client-card {
  cursor: pointer;
}

.customer360-client-card:hover,
.customer360-client-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.1);
}

.customer360-profile {
  top: 24px;
}

.customer360-mini-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.customer360-mini-row small {
  display: block;
  color: var(--muted);
}

.customer360-timeline-item {
  grid-template-columns: 90px minmax(0, 1fr) auto;
}

.sales-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(230px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lead-journey-panel {
  display: grid;
  gap: 14px;
}

.lead-journey-summary,
.lead-journey-steps,
.lead-journey-actions {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.lead-journey-summary {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.lead-journey-steps {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.lead-journey-actions {
  grid-template-columns: repeat(5, minmax(120px, max-content));
  align-items: center;
}

.lead-journey-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.lead-journey-step.ready {
  border-color: rgba(38, 134, 80, 0.34);
  background: color-mix(in srgb, var(--green) 6%, var(--panel));
}

.lead-journey-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--brand);
  background: var(--panel);
}

.lead-journey-step strong,
.lead-journey-step small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lead-journey-step small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sales-stage-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.itinerary-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.travel-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(230px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.travel-stage-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.travel-booking-card,
.sales-deal-card,
.travel-client-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.fulfillment-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.fulfillment-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.fulfillment-checks,
.supplier-confirmation-list {
  display: grid;
  gap: 8px;
}

.fulfillment-check-row,
.supplier-confirmation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.fulfillment-check-row span,
.supplier-confirmation-row span,
.supplier-confirmation-row small {
  display: block;
  overflow-wrap: anywhere;
}

.supplier-confirmation-row small {
  color: var(--muted);
  font-size: 12px;
}

.communication-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.communication-card {
  min-width: 0;
}

.communication-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.travel-client-card,
.sales-lead-card {
  cursor: pointer;
}

.travel-client-card:hover,
.travel-client-card.selected,
.sales-lead-card:hover,
.sales-lead-card.selected,
.marketing-campaign-card:hover,
.marketing-campaign-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.1);
}

.marketing-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.marketing-stage-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.marketing-campaign-card {
  cursor: pointer;
}

.marketing-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 8px;
}

.marketing-channel-grid div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.marketing-channel-grid span,
.marketing-channel-grid strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.marketing-channel-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.marketing-broadcast-card .goal-head strong {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.travel-booking-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.package-grid,
.vendor-grid,
.travel-queue-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.travel-queue-grid {
  display: grid;
  gap: 14px;
}

.attendance-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr) 320px;
}

.payroll-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
}

.payroll-command-center {
  margin-bottom: 20px;
}

.payroll-step-grid,
.payroll-alert-grid,
.payroll-slip-grid {
  display: grid;
  gap: 12px;
}

.payroll-step-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  margin-top: 14px;
}

.payroll-alert-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-top: 12px;
}

.payroll-slip-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.payroll-step-card,
.payroll-alert-tile,
.payroll-slip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.payroll-step-card.ready {
  border-color: rgba(31, 122, 109, 0.36);
  background: rgba(31, 122, 109, 0.08);
}

.payroll-step-card.watch {
  border-color: rgba(198, 142, 42, 0.38);
  background: rgba(198, 142, 42, 0.09);
}

.payroll-step-card span:last-child,
.payroll-alert-tile span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.payroll-step-card small,
.payroll-alert-tile small,
.payroll-step-card em,
.payroll-alert-tile em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.payroll-step-card strong,
.payroll-alert-tile strong {
  color: var(--ink);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.payroll-action-strip,
.payroll-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payroll-close-checklist {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.payroll-close-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.payroll-close-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.payroll-close-step.ready {
  border-color: rgba(31, 122, 109, 0.35);
  background: rgba(31, 122, 109, 0.07);
}

.payroll-close-step.watch {
  border-color: rgba(198, 142, 42, 0.34);
  background: rgba(198, 142, 42, 0.08);
}

.payroll-close-step span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.payroll-close-step small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.payroll-history-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.payroll-history-list {
  display: grid;
  gap: 8px;
}

.payroll-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.payroll-history-item > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.payroll-history-item small,
.payroll-history-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.payroll-action-strip {
  margin-top: 14px;
}

.payroll-action-strip.compact {
  margin-top: 0;
}

.payroll-run-actions {
  margin-top: 12px;
}

.payroll-slip-card {
  justify-content: space-between;
}

.my-hr-slip-btn {
  width: 100%;
  margin-top: 10px;
}

.payroll-payout-panel,
.payroll-statutory-panel,
.payroll-adjustments-panel {
  margin-bottom: 20px;
}

.payroll-payout-summary,
.payroll-statutory-summary,
.payroll-statutory-grid,
.payroll-adjustment-summary {
  display: grid;
  gap: 12px;
}

.payroll-payout-summary,
.payroll-statutory-summary,
.payroll-adjustment-summary {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-top: 12px;
}

.payroll-statutory-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  margin-top: 14px;
}

.payroll-adjustment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.payroll-adjustment-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.payroll-adjustment-card.settlement {
  border-color: rgba(31, 122, 109, 0.28);
  background: color-mix(in srgb, var(--brand) 7%, var(--panel-soft));
}

.payroll-adjustment-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.payroll-adjustment-card strong,
.payroll-adjustment-card small,
.payroll-adjustment-card em,
.payroll-adjustment-card b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payroll-adjustment-card small,
.payroll-adjustment-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.payroll-adjustment-card b {
  color: var(--ink);
  font-size: 18px;
}

.settlement-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.settlement-breakdown span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.settlement-breakdown small,
.settlement-breakdown strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.settlement-breakdown small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payroll-statutory-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.payroll-compliance-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--amber) 8%, var(--panel));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.payroll-compliance-note svg {
  width: 16px;
  min-width: 16px;
  color: var(--amber);
}

.statutory-row {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}

.statutory-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.statutory-row small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.statutory-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.payroll-register-table .small-muted {
  display: block;
  margin-top: 2px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr) 130px 148px auto;
  gap: 10px;
  margin-bottom: 16px;
}

.task-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 12px;
}

.task-layout .onboarding-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.task-column {
  min-width: 0;
}

.task-column h3 {
  margin-bottom: 10px;
}

.onboarding-item {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.checklist {
  display: grid;
  gap: 8px;
}

.option-stack {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.report-bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr 44px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.bar-value {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.data-exchange {
  display: grid;
  gap: 12px;
}

.export-panel,
.import-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.import-form select,
.file-input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.file-input {
  max-width: 280px;
  padding: 8px 10px;
}

.import-overview {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.import-overview-head,
.import-required {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.import-overview-head span,
.import-overview-head strong,
.import-overview-head small,
.import-required strong,
.import-required span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.import-overview-head strong,
.import-overview-head small {
  display: block;
}

.import-overview-head small,
.import-required span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.import-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.import-type-chip {
  min-height: 58px;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.import-type-chip.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.import-type-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.import-summary {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.import-summary.success {
  color: var(--green);
}

.import-summary.error {
  color: var(--rose);
}

.requisition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 12px;
}

.requisition-grid.expanded {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.requisition-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.requisition-card.closed {
  opacity: 0.75;
}

.req-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.req-metric,
.small-table-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.req-metric span,
.req-metric strong {
  display: block;
}

.req-metric span {
  color: var(--muted);
  font-size: 12px;
}

.small-table {
  display: grid;
  gap: 8px;
}

.small-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.leave-grid,
.document-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.leave-dates {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.attendance-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.attendance-times span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow-wrap: anywhere;
}

.attendance-times svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--brand);
}

.attendance-evidence,
.attendance-location-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.attendance-evidence .status-pill {
  max-width: 100%;
  gap: 6px;
  overflow-wrap: anywhere;
}

.attendance-evidence .status-pill svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.attendance-location-tools {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.attendance-evidence-view {
  display: grid;
  gap: 16px;
}

.attendance-evidence-view img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
}

.attendance-camera-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.attendance-camera-box video,
.attendance-camera-box img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
}

.attendance-camera-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.approval-actions,
.automation-actions,
.document-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vault-mini-list {
  display: grid;
  gap: 8px;
}

.vault-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.vault-mini-row strong,
.vault-mini-row small {
  display: block;
  overflow-wrap: anywhere;
}

.vault-mini-row small {
  color: var(--muted);
}

.document-alert,
.trip-document-row {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(195, 58, 86, 0.24);
  border-radius: 8px;
  background: rgba(195, 58, 86, 0.08);
  color: var(--ink);
}

.document-alert.ready,
.trip-document-row.done {
  border-color: rgba(38, 134, 80, 0.26);
  background: rgba(38, 134, 80, 0.08);
}

.document-alert strong,
.document-alert span,
.trip-document-row span,
.trip-document-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.document-alert span,
.trip-document-row strong {
  color: var(--muted);
  font-size: 12px;
}

.trip-document-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.outline-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.outline-btn,
.mini-btn {
  text-decoration: none;
}

.outline-btn:hover {
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

.outline-btn.danger {
  color: var(--rose);
}

.outline-btn.success {
  color: var(--green);
}

.review-score {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.document-card.locked {
  border-color: rgba(195, 58, 86, 0.34);
}

.acknowledgement-form,
.acknowledgement-audit,
.ack-history {
  display: grid;
  gap: 12px;
}

.ack-option {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  cursor: pointer;
}

.ack-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.ack-option strong,
.ack-option small,
.ack-history-row strong,
.ack-history-row span,
.ack-history-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ack-option small,
.ack-history-row span,
.ack-history-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ack-history-row {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.document-vault-command,
.employee-document-vault,
.hr-case-panel,
.hr-letter-panel,
.document-kyc-panel {
  margin-bottom: 20px;
}

.document-status-board,
.employee-doc-grid,
.document-action-list,
.employee-doc-requirements,
.employee-doc-mini-coverage,
.kyc-status-grid,
.kyc-queue-list {
  display: grid;
  gap: 12px;
}

.document-status-board,
.kyc-status-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-top: 12px;
}

.employee-doc-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.document-summary-tile,
.document-action-row,
.employee-doc-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.document-summary-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.document-summary-tile.ready {
  border-color: rgba(38, 134, 80, 0.32);
  background: rgba(38, 134, 80, 0.08);
}

.document-summary-tile.watch {
  border-color: rgba(180, 107, 18, 0.34);
  background: rgba(180, 107, 18, 0.08);
}

.document-summary-tile.risk {
  border-color: rgba(195, 58, 86, 0.34);
  background: rgba(195, 58, 86, 0.08);
}

.document-summary-tile span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.document-summary-tile small,
.document-summary-tile em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.document-summary-tile strong {
  color: var(--ink);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.document-action-list {
  margin-top: 14px;
}

.kyc-provider-note {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(31, 122, 109, 0.22);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 6%, var(--panel-soft));
}

.kyc-provider-note.full {
  grid-column: 1 / -1;
}

.kyc-provider-note span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.kyc-provider-note strong,
.kyc-provider-note small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kyc-provider-note small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.kyc-queue-list {
  margin-top: 12px;
}

.kyc-queue-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.kyc-queue-card.missing {
  border-color: rgba(195, 58, 86, 0.24);
  background: color-mix(in srgb, var(--rose) 6%, var(--panel-soft));
}

.kyc-queue-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.kyc-queue-card strong,
.kyc-queue-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kyc-queue-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.kyc-queue-card .approval-actions {
  justify-content: flex-end;
}

.document-action-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.document-action-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.document-action-row small {
  color: var(--muted);
}

.employee-doc-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.hr-letter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 12px;
}

.hr-letter-form,
.hr-letter-preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
}

.hr-letter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hr-letter-form .payroll-action-strip {
  grid-column: 1 / -1;
}

.hr-letter-preview {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hr-letter-preview > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hr-letter-preview strong,
.hr-letter-preview small {
  overflow-wrap: anywhere;
}

.hr-case-metrics {
  margin-top: 12px;
}

.hr-case-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.hr-case-form,
.hr-case-list,
.hr-case-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.hr-case-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.hr-case-form .full,
.hr-letter-case-note {
  grid-column: 1 / -1;
}

.hr-case-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.hr-case-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.hr-case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hr-case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.hr-case-meta span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hr-case-meta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--brand);
}

.hr-letter-case-note {
  margin-top: 12px;
}

.hr-case-timeline {
  display: grid;
  gap: 8px;
  max-height: min(54vh, 520px);
  overflow: auto;
}

.hr-case-timeline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.hr-case-timeline-row > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hr-case-timeline-row strong,
.hr-case-timeline-row small,
.hr-case-timeline-row p,
.hr-case-timeline-row em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hr-case-timeline-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hr-case-timeline-row p,
.hr-case-timeline-row em {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.employee-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.employee-doc-requirements,
.employee-doc-mini-coverage {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.employee-doc-requirements span,
.employee-doc-mini-coverage span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.employee-doc-requirements svg,
.employee-doc-mini-coverage svg {
  width: 14px;
  min-width: 14px;
}

.employee-doc-requirements .ready,
.employee-doc-mini-coverage .ready {
  color: var(--green);
  border-color: rgba(38, 134, 80, 0.28);
  background: rgba(38, 134, 80, 0.08);
}

.employee-doc-requirements .missing,
.employee-doc-mini-coverage .missing {
  color: var(--rose);
  border-color: rgba(195, 58, 86, 0.24);
  background: rgba(195, 58, 86, 0.07);
}

.document-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.compliance-list {
  display: grid;
  gap: 10px;
}

.compliance-item {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.compliance-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--brand);
}

.automation-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.12);
}

.automation-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.automation-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
}

.automation-status.on::before {
  background: var(--green);
}

.reminder-rule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.follow-up-status-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.follow-up-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.follow-up-status-card.ready {
  border-color: rgba(38, 134, 80, 0.28);
  background: color-mix(in srgb, var(--green) 6%, var(--panel));
}

.follow-up-status-card.money {
  border-color: rgba(245, 184, 71, 0.34);
  background: color-mix(in srgb, var(--gold) 8%, var(--panel));
}

.follow-up-status-card.travel {
  border-color: rgba(17, 125, 117, 0.26);
}

.follow-up-status-card.hr {
  border-color: rgba(31, 122, 109, 0.28);
  background: color-mix(in srgb, var(--brand) 5%, var(--panel));
}

.follow-up-status-card.protected {
  background: var(--panel-soft);
}

.follow-up-status-card small,
.follow-up-status-card strong,
.follow-up-status-card em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.follow-up-status-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.follow-up-status-card strong {
  margin-top: 2px;
  font-size: 26px;
  line-height: 1;
}

.follow-up-status-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.reminder-rule-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.reminder-rule-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.reminder-rule-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reminder-preview-list {
  display: grid;
  gap: 8px;
}

.reminder-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.reminder-preview-row strong,
.reminder-preview-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.reminder-preview-row small {
  color: var(--muted);
}

.settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.go-live-panel {
  display: grid;
  gap: 16px;
}

.go-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.go-live-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.7fr);
  gap: 12px;
  align-items: start;
}

.go-live-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.go-live-item,
.go-live-next,
.go-live-summary {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.go-live-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.go-live-item.ready {
  border-color: rgba(38, 134, 80, 0.34);
  background: color-mix(in srgb, var(--green) 6%, var(--panel));
}

.go-live-check {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--brand);
}

.go-live-item strong,
.go-live-item small,
.go-live-next strong,
.go-live-next small,
.go-live-summary strong,
.go-live-summary small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.go-live-item small,
.go-live-next small,
.go-live-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.go-live-summary strong {
  font-size: 36px;
  line-height: 1;
}

.admin-control-center {
  display: grid;
  gap: 16px;
}

.saas-company-panel {
  display: grid;
  gap: 16px;
}

.saas-company-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.saas-company-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.saas-company-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.saas-billing-panel,
.saas-support-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.saas-billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.saas-billing-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.saas-billing-card.ready {
  border-color: rgba(31, 132, 87, 0.28);
}

.saas-billing-card.pending {
  border-color: rgba(210, 68, 91, 0.24);
}

.saas-billing-card strong,
.saas-billing-card small,
.saas-plan-strip strong,
.saas-plan-strip small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.saas-billing-card small,
.saas-plan-strip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.saas-plan-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.saas-plan-strip span {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.saas-support-list {
  display: grid;
  gap: 8px;
}

.saas-support-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.saas-support-row strong,
.saas-support-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.saas-support-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.saas-company-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.saas-company-head,
.saas-company-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.saas-company-head strong,
.saas-company-head small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.saas-company-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.saas-company-controls select,
.saas-company-controls input,
.saas-company-controls button {
  min-width: 0;
  min-height: 38px;
}

.saas-company-controls input {
  max-width: 92px;
}

.saas-company-controls button {
  white-space: nowrap;
}

.admin-control-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.admin-control-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.staff-access-section {
  display: grid;
  gap: 14px;
}

.staff-access-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.staff-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.staff-access-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.staff-checklist,
.permission-matrix-list,
.permission-scope-grid,
.permission-history-list,
.staff-user-readiness {
  display: grid;
  gap: 8px;
}

.staff-check-row,
.permission-matrix-row,
.permission-role-card,
.permission-history-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.staff-check-row,
.permission-history-row {
  grid-template-columns: auto minmax(0, 1fr);
}

.permission-matrix-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.permission-role-card {
  align-items: stretch;
  background: var(--panel);
}

.permission-role-head,
.permission-history-row,
.permission-matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.permission-role-head {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.permission-matrix-row {
  padding: 8px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.permission-matrix-row strong {
  display: flex;
  align-items: center;
  gap: 7px;
}

.permission-matrix-row strong svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.permission-checks {
  display: flex !important;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.permission-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.permission-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.permission-history-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.permission-history-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.permission-history-row {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.staff-check-row.ready {
  border-color: rgba(38, 134, 80, 0.28);
}

.staff-check-row span,
.staff-check-row strong,
.staff-check-row small,
.permission-matrix-row span,
.permission-role-card span,
.permission-history-row span,
.permission-matrix-row strong,
.permission-role-card strong,
.permission-history-row strong,
.permission-matrix-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.staff-check-row small,
.permission-matrix-row small,
.permission-role-card small,
.permission-history-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-control-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.85fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-control-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel-title,
.admin-mini-row,
.admin-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.panel-title strong,
.admin-mini-row strong,
.admin-access-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-mini-stack,
.admin-access-list {
  display: grid;
  gap: 8px;
}

.admin-mini-row,
.admin-access-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.admin-mini-row:last-child,
.admin-access-row:last-child {
  border-bottom: 0;
}

.admin-mini-row span,
.admin-access-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.2fr) 140px auto;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-form textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.bulk-user-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.bulk-user-form textarea {
  min-height: 108px;
}

.bulk-user-form button {
  align-self: start;
  min-height: 42px;
}

.staff-access-section #inviteUserForm {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
}

.staff-access-section #inviteUserForm .action-btn {
  min-height: 42px;
}

.staff-user-card {
  display: grid;
  gap: 10px;
}

.staff-user-summary,
.staff-user-controls {
  display: grid;
  gap: 8px;
}

.staff-user-summary {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.staff-user-summary span {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.staff-user-summary b,
.staff-user-summary small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.staff-user-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.staff-user-controls {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.staff-user-controls select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.staff-user-readiness {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.staff-user-readiness span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.staff-user-readiness span.ready {
  color: var(--green);
}

.staff-user-readiness svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.staff-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-user-actions .reset-password-form {
  flex: 1 1 320px;
}

.first-login-setup-form {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-readiness-panel,
.first-login-prompt {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.profile-readiness-panel {
  padding: 12px;
  border: 1px solid rgba(53, 99, 216, 0.18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 4%, var(--panel-soft));
}

.profile-readiness-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-readiness-head span,
.profile-readiness-head strong,
.profile-readiness-head small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-readiness-head strong,
.profile-readiness-head small {
  display: block;
}

.profile-readiness-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-readiness-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
}

.profile-readiness-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-readiness-item.ready {
  border-color: rgba(38, 134, 80, 0.28);
}

.profile-readiness-item svg {
  grid-row: span 2;
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.profile-readiness-item.ready svg {
  color: var(--green);
}

.profile-readiness-item b,
.profile-readiness-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-readiness-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-intro h3 {
  margin-top: -2px;
}

.settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.settings-form .full {
  grid-column: 1 / -1;
}

.approval-policy-note {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.handoff-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.handoff-step {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.handoff-step span,
.handoff-step strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.handoff-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.branch-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.branch-form input,
.branch-form select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.branch-default {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.branch-default input {
  width: 16px;
  min-height: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.checkbox-label input {
  width: 16px;
  min-height: 16px;
}

.branch-list {
  display: grid;
  gap: 10px;
}

.branch-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.branch-card.inactive {
  opacity: 0.68;
}

.branch-card strong,
.branch-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reset-password-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
}

.reset-password-form input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.subscription-panel {
  display: grid;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
}

.billing-summary,
.billing-seat-panel,
.billing-plan-card,
.billing-gateway-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.billing-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 0.6fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.billing-summary h2,
.billing-price strong,
.billing-trial strong,
.billing-plan-price strong {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.billing-price,
.billing-trial {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.billing-price strong {
  font-size: 30px;
  line-height: 1.05;
}

.billing-price span,
.billing-trial span,
.billing-trial small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-trial {
  justify-items: start;
  padding: 10px;
  border: 1px solid rgba(31, 132, 87, 0.24);
  border-radius: 8px;
  background: rgba(31, 132, 87, 0.06);
}

.billing-trial.active {
  border-color: rgba(247, 181, 56, 0.34);
  background: rgba(247, 181, 56, 0.08);
}

.billing-trial.expired {
  border-color: rgba(195, 58, 86, 0.34);
  background: rgba(195, 58, 86, 0.08);
}

.trial-lock-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(195, 58, 86, 0.28);
  border-radius: 8px;
  background: color-mix(in srgb, var(--rose) 7%, var(--panel-soft));
}

.trial-lock-panel strong,
.trial-lock-panel small {
  display: block;
  min-width: 0;
}

.trial-lock-panel strong {
  color: var(--text);
}

.trial-lock-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.billing-seat-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.billing-setup-flow {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(53, 99, 216, 0.24);
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 4%, var(--panel-soft));
}

.billing-setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-setup-step {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.billing-setup-step.ready {
  border-color: rgba(38, 134, 80, 0.26);
}

.billing-setup-step span,
.billing-setup-step strong,
.billing-setup-step small,
.billing-setup-step em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.billing-setup-step small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-setup-step strong {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.15;
}

.billing-setup-step em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.billing-setup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.billing-seat-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.billing-seat-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.billing-seat-stats strong,
.billing-seat-stats small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.billing-seat-stats small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-plan-grid,
.billing-gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.billing-plan-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.billing-plan-card > .action-btn,
.billing-plan-card > .outline-btn {
  justify-content: center;
}

.billing-plan-card.current {
  border-color: rgba(25, 123, 108, 0.34);
  box-shadow: inset 0 0 0 1px rgba(25, 123, 108, 0.12);
}

.billing-plan-head,
.billing-plan-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.billing-plan-head strong,
.billing-plan-head small,
.billing-plan-price strong,
.billing-plan-price span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.billing-plan-head small,
.billing-plan-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-module-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.billing-module-strip span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  background: var(--panel);
}

.billing-gateway-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.billing-gateway-card.ready {
  border-color: rgba(31, 132, 87, 0.28);
}

.billing-gateway-card.pending {
  border-color: rgba(210, 68, 91, 0.24);
}

.billing-gateway-card strong,
.billing-gateway-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.billing-gateway-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-link-list {
  display: grid;
  gap: 8px;
}

.billing-checkout-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.billing-checkout-intro strong,
.billing-checkout-intro small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.billing-checkout-intro strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.billing-checkout-intro small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-mandate-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.billing-mandate-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-mandate-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.billing-mandate-summary svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.billing-mandate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.billing-mandate-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.billing-mandate-card:hover,
.billing-mandate-card.current {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.08);
}

.billing-mandate-card strong,
.billing-mandate-card small,
.billing-mandate-card b {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.billing-mandate-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.billing-mandate-card b {
  color: var(--brand-strong);
  font-size: 12px;
  text-align: right;
}

.payment-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.payment-link-row strong,
.payment-link-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-link-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-subscription-row {
  border-color: rgba(31, 122, 109, 0.24);
  background: var(--panel-soft);
}

.billing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-link-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.payment-link-result strong,
.payment-link-result small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-link-result small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-checkout-result {
  border-color: rgba(31, 122, 109, 0.24);
  background: var(--panel-soft);
}

.email-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.email-log-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.email-log-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.email-log-head,
.email-log-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.email-attachment-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.email-attachment-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-attachment-row svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.email-log-item p {
  max-height: 72px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-line;
}

.pdf-preview-modal {
  display: grid;
  gap: 12px;
}

.pdf-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.pdf-preview-head strong,
.pdf-preview-head small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pdf-preview-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pdf-preview-frame {
  width: 100%;
  min-height: min(66vh, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pdf-preview-actions {
  justify-content: flex-end;
}

.audit-list {
  max-height: 430px;
  overflow: auto;
}

.req-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.req-top strong {
  overflow-wrap: anywhere;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(12, 17, 20, 0.54);
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: transparent;
}

.modal-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.modal-body {
  padding: 18px;
}

.policy-modal {
  display: grid;
  gap: 14px;
}

.policy-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(31, 122, 109, 0.22);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 6%, var(--panel-soft));
}

.policy-modal-head strong,
.policy-modal-head small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.policy-modal-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.policy-consent-summary,
.policy-data-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-consent-summary span,
.policy-data-scopes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.policy-consent-summary svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.policy-document-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.policy-document-nav button {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.policy-document-nav button.active,
.policy-document-nav button:hover {
  border-color: rgba(31, 122, 109, 0.35);
  background: color-mix(in srgb, var(--brand) 7%, var(--panel));
}

.policy-document-nav strong,
.policy-document-nav small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.policy-document-nav small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.policy-documents {
  display: grid;
  gap: 12px;
}

.policy-document {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.policy-document h3 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.policy-section-list {
  display: grid;
  gap: 8px;
}

.policy-section-list section {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.policy-section-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.policy-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(180, 107, 18, 0.28);
  border-radius: 8px;
  background: color-mix(in srgb, var(--amber) 7%, var(--panel-soft));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.policy-note strong {
  color: var(--ink);
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.setup-wizard-form {
  align-items: start;
}

.setup-step {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.setup-step legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.setup-step legend span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
}

.setup-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  min-width: 0;
}

.setup-step-grid .full {
  grid-column: 1 / -1;
}

.customer-onboarding-form {
  grid-template-columns: 1fr;
}

.customer-wizard-banner,
.trial-first-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 122, 109, 0.24);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 6%, var(--panel-soft));
}

.customer-wizard-banner strong,
.customer-wizard-banner small,
.trial-first-panel strong,
.trial-first-panel small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-wizard-banner strong,
.trial-first-panel strong {
  color: var(--ink);
  font-size: 15px;
}

.customer-wizard-banner small,
.trial-first-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.customer-onboarding-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.customer-onboarding-progress span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-onboarding-progress b {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
}

.customer-member-grid,
.module-choice-grid,
.plan-snapshot-grid {
  display: grid;
  gap: 10px;
}

.customer-member-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.2fr) minmax(120px, 0.75fr);
  gap: 10px;
}

.module-choice-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.module-choice {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
}

.module-choice input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.module-choice strong,
.module-choice small,
.plan-snapshot-grid strong,
.plan-snapshot-grid small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.module-choice small,
.plan-snapshot-grid small {
  color: var(--muted);
  font-size: 12px;
}

.plan-snapshot-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  align-items: stretch;
}

.plan-snapshot-grid > span,
.plan-snapshot-grid > label {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.wizard-helper-grid,
.billing-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.wizard-helper-grid span,
.billing-option-card {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.wizard-helper-grid strong,
.wizard-helper-grid small,
.billing-option-card strong,
.billing-option-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wizard-helper-grid small,
.billing-option-card small,
.setup-step label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.wizard-textarea {
  min-height: 108px;
  resize: vertical;
}

.billing-option-grid.compact {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.billing-option-card {
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  cursor: pointer;
}

.billing-option-card input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
}

.billing-option-card.selected {
  border-color: rgba(31, 122, 109, 0.42);
  background: color-mix(in srgb, var(--brand) 7%, var(--panel));
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.candidate-decision-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.candidate-decision-actions .outline-btn,
.candidate-decision-actions .action-btn {
  width: 100%;
}

.record-summary {
  display: grid;
  gap: 16px;
}

.record-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.record-cell {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.record-cell span,
.record-cell strong {
  display: block;
  overflow-wrap: anywhere;
}

.record-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: minmax(340px, 0.9fr) minmax(380px, 1fr);
  }

  .auth-visual-copy h1 {
    font-size: 30px;
  }

  .topbar-title {
    flex-basis: 235px;
    min-width: 220px;
  }

  .search-field {
    min-width: 190px;
  }

  .dashboard-friendly-grid {
    grid-template-columns: 1fr;
  }

  .my-hr-hero,
  .my-hr-grid {
    grid-template-columns: 1fr;
  }

  .my-hr-metrics {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .dashboard-soft-stats,
  .dashboard-pulse-grid,
  .dashboard-command-grid,
  .dashboard-drawer-metrics {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .metric-grid,
  .work-queue-summary,
  .requisition-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .dashboard-grid,
  .role-command-grid,
  .hr-command-head,
  .hr-command-grid,
  .hr-approval-list,
  .notification-center-grid,
  .staff-access-grid,
  .reports-grid,
  .task-layout,
  .employee-layout,
  .jobs-layout,
  .operations-layout,
  .travel-layout,
  .customer360-layout,
  .sales-layout,
  .marketing-layout,
  .accounts-layout,
  .call-layout,
  .leave-layout,
  .attendance-layout,
  .payroll-layout,
  .performance-grid,
  .documents-layout,
  .hr-case-workbench,
  .hr-letter-grid,
  .automation-layout,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-layout > .section-block:not(.settings-side-nav),
  .settings-layout .wide {
    grid-column: 1;
  }

  .settings-side-nav {
    position: static;
    max-height: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .settings-side-head {
    grid-column: 1 / -1;
  }

  .settings-quick-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .suite-grid,
  .daily-board-grid,
  .dashboard-ease-grid,
  .signup-trial-grid,
  .platform-saas-metrics,
  .customer-flow-grid,
  .customer-start-grid,
  .customer-portal-metrics,
  .customer-portal-status-grid,
  .customer-portal-actions,
  .go-live-workspace-grid,
  .notification-stat-grid,
  .hr-command-metrics,
  .hr-lifecycle-grid,
  .hiring-source-grid,
  .payroll-step-grid,
  .payroll-alert-grid,
  .payroll-slip-grid,
  .payroll-adjustment-summary,
  .payroll-payout-summary,
  .payroll-statutory-summary,
  .payroll-statutory-grid,
  .document-status-board,
  .kyc-status-grid,
  .employee-doc-grid,
  .follow-up-dashboard-cards,
  .staff-access-metrics,
  .staff-user-summary,
  .staff-user-controls,
  .staff-user-readiness,
  .profile-readiness-list,
  .go-live-metrics,
  .lead-journey-summary,
  .lead-journey-steps,
  .marketing-channel-grid,
  .saas-company-metrics,
  .admin-control-metrics {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .go-live-grid,
  .customer-portal-focus-grid,
  .platform-saas-grid,
  .go-live-workspace-grid,
  .saas-company-form,
  .admin-control-grid,
  .admin-control-form,
  .staff-access-section #inviteUserForm,
  .handoff-preview {
    grid-template-columns: 1fr 1fr;
  }

  .policy-trust-panel {
    grid-column: 1 / -1;
  }

  .customer-portal-status-grid {
    grid-template-columns: 1fr;
  }

  .accounts-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .role-command-hero {
    grid-template-columns: 1fr;
  }

  .role-command-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .follow-up-status-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .follow-up-mini-metrics {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .call-layout .detail-pane {
    grid-column: auto;
    grid-row: auto;
  }

  .call-live-list {
    grid-template-columns: 1fr 1fr;
  }

  .receivables-panel {
    grid-row: auto;
  }

  .gst-report-summary {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .gst-report-columns {
    grid-template-columns: 1fr;
  }

  .detail-pane {
    position: static;
  }

  .inline-form {
    grid-template-columns: 1fr 1fr;
  }

  .customer-onboarding-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .billing-option-grid.compact,
  .wizard-helper-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .plan-snapshot-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 860px) {
  .auth-overlay {
    padding: 14px;
  }

  .auth-shell {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-visual {
    height: auto;
    min-height: 320px;
  }

  .auth-card {
    overflow: visible;
    padding: 20px;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .profile-readiness-list {
    grid-template-columns: 1fr;
  }

  .my-hr-profile-nudge {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .my-hr-profile-nudge .outline-btn {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    max-width: 100vw;
    overflow: visible;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
    padding: 14px;
    min-width: 0;
    max-width: 100vw;
    overflow: visible;
  }

  .main-nav {
    display: flex;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
  }

  .nav-item {
    justify-content: center;
    flex: 0 0 54px;
  }

  .nav-item span {
    display: none;
  }

  .sidebar-panel {
    display: none;
  }

  .workspace {
    min-width: 0;
    height: auto;
    max-width: 100vw;
    overflow: visible;
    padding: 0 14px 34px;
  }

  .topbar {
    top: 0;
    min-height: 0;
    margin: 0 -14px 20px;
    padding: 14px;
  }

  .topbar,
  .control-bar,
  .section-heading,
  .branch-access-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .control-actions,
  .filters {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: stretch;
  }

  .topbar-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .topbar-actions > * {
    flex: 0 0 auto;
  }

  .topbar-actions .search-field {
    width: min(260px, 72vw);
    min-width: 220px;
    max-width: 260px;
  }

  .topbar-title {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .work-queue-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .role-focus-card,
  .role-alert-item,
  .hr-lifecycle-card,
  .hr-action-row,
  .hr-approval-card-head,
  .dashboard-ease-card,
  .notification-item,
  .follow-up-status-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .role-focus-card b,
  .role-alert-item .priority-pill,
  .hr-lifecycle-card > svg,
  .hr-action-row b,
  .hr-approval-card-head .status-pill,
  .dashboard-ease-card b,
  .notification-item-meta,
  .follow-up-status-row .outline-btn,
  .follow-up-status-row .priority-pill {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .notification-panel {
    left: auto;
    right: -8px;
    width: min(360px, calc(100vw - 28px));
  }

  .work-queue-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .customer360-timeline-item,
  .customer360-mini-row,
  .hiring-source-row,
  .permission-role-head,
  .permission-history-row,
  .permission-matrix-row {
    grid-template-columns: 1fr;
  }

  .search-field {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .branch-access-bar select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .filters select,
  .topbar-actions .action-btn,
  .control-actions .action-btn,
  .control-actions .text-btn,
  .export-panel .outline-btn,
  .import-form select,
  .import-form .action-btn,
  .file-input,
  .role-switcher,
  .user-badge,
  .sync-status {
    flex: 1 1 160px;
  }

  .topbar-actions .role-switcher,
  .topbar-actions .user-badge,
  .topbar-actions .sync-status,
  .topbar-actions .action-btn {
    flex: 0 0 auto;
  }

  .dashboard-friendly-brief {
    padding: 14px;
  }

  .dashboard-friendly-main h2 {
    font-size: 24px;
  }

  .dashboard-friendly-actions .action-btn,
  .dashboard-friendly-actions .outline-btn {
    flex: 1 1 180px;
  }

  .platform-saas-hero,
  .platform-saas-grid,
  .platform-saas-metrics,
  .customer-flow-head,
  .customer-flow-grid,
  .payroll-step-grid,
  .payroll-alert-grid,
  .payroll-slip-grid,
  .payroll-adjustment-summary,
  .payroll-payout-summary,
  .payroll-statutory-summary,
  .payroll-statutory-grid,
  .document-status-board,
  .kyc-status-grid,
  .employee-doc-grid,
  .hr-case-workbench,
  .hr-case-form,
  .hr-case-meta,
  .hr-letter-grid,
  .hr-letter-form {
    grid-template-columns: 1fr;
  }

  .document-action-row,
  .payroll-adjustment-card,
  .kyc-queue-card {
    grid-template-columns: 1fr;
  }

  .platform-saas-actions {
    justify-content: stretch;
  }

  .platform-saas-actions .action-btn,
  .platform-saas-actions .outline-btn,
  .customer-flow-head .action-btn {
    width: 100%;
    justify-content: center;
  }

  .platform-customer-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .platform-customer-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .dashboard-soft-stats,
  .dashboard-pulse-grid,
  .dashboard-command-grid,
  .dashboard-drawer-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-drawer-head,
  .dashboard-drawer-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-drawer-head .icon-btn,
  .dashboard-drawer-row b,
  .dashboard-drawer-row .mini-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .customer-trial-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .customer-trial-banner .outline-btn {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .metric-grid,
  .work-queue-summary,
  .dashboard-ease-grid,
  .customer-flow-grid,
  .customer-start-grid,
  .customer-portal-hero,
  .customer-portal-metrics,
  .customer-portal-status-grid,
  .customer-portal-focus-grid,
  .customer-portal-actions,
  .go-live-workspace-grid,
  .notification-stat-grid,
  .hr-command-head,
  .hr-command-metrics,
  .hr-command-grid,
  .hr-lifecycle-grid,
  .hiring-source-grid,
  .hr-followup-grid,
  .follow-up-dashboard-cards,
  .staff-access-metrics,
  .staff-access-grid,
  .staff-user-summary,
  .staff-user-controls,
  .staff-user-readiness,
  .task-columns,
  .requisition-grid,
  .requisition-grid.expanded,
  .lead-journey-summary,
  .lead-journey-steps,
  .lead-journey-actions,
  .email-status-grid,
  .leave-grid,
  .reminder-rule-list,
  .document-grid,
  .daily-board-grid,
  .suite-grid,
  .go-live-metrics,
  .go-live-workspace-grid,
  .go-live-grid,
  .platform-saas-grid,
  .platform-saas-metrics,
  .saas-company-metrics,
  .saas-company-form,
  .saas-company-list,
  .admin-control-metrics,
  .admin-control-grid,
  .handoff-preview,
  .accounts-dashboard-grid,
  .accounts-mini-stats,
  .accounts-aging-row,
  .accounts-invoice-row,
  .accounts-followup-row,
  .call-live-list,
  .call-mini-grid,
  .gst-report-summary,
  .gst-report-columns,
  .settings-form,
  .staff-access-section #inviteUserForm,
  .branch-form,
  .admin-form,
  .reset-password-form,
  .attendance-times {
    grid-template-columns: 1fr;
  }

  .billing-summary,
  .billing-seat-stats,
  .billing-setup-steps,
  .billing-plan-grid,
  .billing-gateway-grid,
  .saas-billing-grid,
  .saas-plan-strip {
    grid-template-columns: 1fr;
  }

  .billing-actions {
    justify-content: stretch;
  }

  .billing-actions .outline-btn,
  .billing-actions .action-btn,
  .billing-setup-actions .outline-btn,
  .billing-setup-actions .action-btn,
  .trial-lock-panel .action-btn {
    flex: 1 1 180px;
  }

  .trial-lock-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .customer-onboarding-progress,
  .module-choice-grid,
  .plan-snapshot-grid,
  .wizard-helper-grid,
  .billing-option-grid,
  .billing-option-grid.compact,
  .customer-member-row,
  .signup-option-grid,
  .signup-trial-grid,
  .my-hr-metrics,
  .employee360-stats,
  .employee360-check-grid,
  .employee360-packet-grid,
  .employee360-balance-grid,
  .employee360-payroll-card,
  .human-test-card {
    grid-template-columns: 1fr;
  }

  .employee360-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee360-mini-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .my-hr-row,
  .my-hr-empty {
    grid-template-columns: 1fr;
  }

  .employee360-mini-row .status-pill {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
  }

  .go-live-item,
  .saas-support-row,
  .import-overview-head,
  .import-required {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .go-live-item {
    display: grid;
  }

  .import-overview-head,
  .import-required {
    flex-direction: column;
  }

  .saas-company-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .saas-company-controls input {
    max-width: none;
  }

  .compact-board,
  .pipeline-board {
    grid-template-columns: repeat(5, minmax(240px, 82vw));
  }

  .travel-board {
    grid-template-columns: repeat(6, minmax(240px, 82vw));
  }

  .sales-board {
    grid-template-columns: repeat(6, minmax(240px, 82vw));
  }

  .inline-form,
  .form-grid,
  .setup-step-grid,
  .compact-form,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .call-supervisor-controls {
    width: 100%;
    min-width: 0;
    justify-content: stretch;
  }

  .call-supervisor-controls input,
  .call-supervisor-controls select {
    min-width: 0;
    flex: 1 1 160px;
  }
}

@media (max-width: 520px) {
  .dashboard-friendly-brief {
    padding: 12px;
  }

  .dashboard-friendly-main h2 {
    font-size: 22px;
  }

  .dashboard-priority-card {
    grid-template-columns: 1fr;
  }

  .dashboard-priority-icon {
    width: 36px;
    height: 36px;
  }

  .auth-visual {
    min-height: 260px;
  }

  .auth-visual-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .auth-visual-copy h1 {
    font-size: 24px;
  }

  .auth-form-tools {
    justify-content: flex-start;
  }

  .hr-approval-summary,
  .hr-approval-metrics {
    grid-template-columns: 1fr;
  }

  .profile-readiness-head {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .auth-visual-meta span {
    width: 100%;
  }

  h1 {
    font-size: 24px;
  }

  .topbar-actions {
    flex-wrap: nowrap;
  }

  .topbar-actions .icon-btn {
    flex: 0 0 38px;
  }

  .action-btn {
    flex: 1 1 auto;
  }

  .topbar .action-btn {
    flex: 0 0 auto;
  }

  .employee360-identity,
  .employee360-actions {
    grid-template-columns: 1fr;
  }

  .employee360-identity .avatar {
    justify-self: start;
  }

  .bar-row {
    grid-template-columns: 1fr 42px;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .reminder-preview-row {
    grid-template-columns: 1fr;
  }

  .billing-gateway-card,
  .saas-billing-card,
  .billing-checkout-intro,
  .payment-link-row,
  .payment-link-result {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
