* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --ink: #12131a;
  --ink-soft: #617189;
  --command: #0d0d73;
  --command-deep: #070735;
  --signal: #f1c40f;
  --line: #d8e1ef;
  --surface:
    linear-gradient(145deg, #ffffff 0%, #f7f9fd 56%, #eef3fb 100%);
  --surface-hover:
    linear-gradient(145deg, #ffffff 0%, #fbfcff 54%, #f1f5fc 100%);
  --surface-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(10, 10, 99, 0.05),
    0 10px 30px rgba(18, 19, 26, 0.09);
  --command-surface:
    linear-gradient(145deg, #10108a 0%, #0a0a63 44%, #070735 100%),
    linear-gradient(245deg, rgba(241, 196, 15, 0.18), transparent 58%);
  --dark-surface:
    linear-gradient(145deg, #0d0d73 0%, #070735 62%, #050529 100%);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(241, 196, 15, 0.14), transparent 30rem),
    linear-gradient(135deg, #fbfcff 0%, #eef2f7 50%, #f8fafc 100%);
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.app-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 16px;
  color: #fff;
  background: var(--dark-surface);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 14px 44px rgba(7, 7, 53, 0.24);
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 10px 24px rgba(241, 196, 15, 0.22);
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13, 13, 115, 0.56);
}

.sidebar .eyebrow {
  color: var(--signal);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
}

.nav-caption {
  padding: 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateX(1px);
}

.nav-link.active {
  background: linear-gradient(145deg, #ffffff, #eef3fb);
  color: #070735;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(10, 10, 99, 0.06),
    0 6px 16px rgba(18, 19, 26, 0.07);
}

.nav-link,
.nav-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-group {
  display: grid;
  gap: 7px;
}

.nav-group-summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 44px;
}

.nav-group-summary::-webkit-details-marker {
  display: none;
}

.nav-group-summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  font-weight: 900;
}

.nav-group[open] .nav-group-summary::after {
  content: "-";
}

.nav-submenu {
  display: grid;
  gap: 6px;
  padding-left: 10px;
}

.nav-sublink {
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  border-left: 2px solid rgba(241, 196, 15, 0.22);
}

.nav-sublink:hover,
.nav-sublink.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--signal);
}

.nav-alert-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(127, 29, 29, 0.28);
  flex: 0 0 auto;
}

.nav-group-summary .nav-alert-badge {
  margin-right: 18px;
}

.nav-nested-group {
  gap: 5px;
}

.nav-nested-summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.nav-nested-summary::-webkit-details-marker {
  display: none;
}

.nav-nested-summary::after {
  content: "+";
  position: absolute;
  right: 10px;
  font-weight: 900;
}

.nav-nested-group[open] .nav-nested-summary::after {
  content: "-";
}

.nav-nested-submenu {
  display: grid;
  gap: 5px;
  padding-left: 10px;
}

.nav-nested-link {
  font-size: 11px;
  padding: 8px 10px;
  opacity: 0.94;
}

.sidebar-footer {
  margin-top: auto;
  padding: 10px 8px 2px;
}

.sidebar-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.56);
}

.workspace {
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  align-self: start;
}

.workspace-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: var(--surface-shadow);
  position: sticky;
  top: 12px;
  z-index: 5;
  min-width: 0;
  max-width: 100%;
}

.topbar-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 320px;
}

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

.topbar-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.topbar-stat {
  min-width: 74px;
  padding: 5px 8px 4px;
  border-radius: 11px;
  border: 1px solid #dbe4f1;
  background: linear-gradient(145deg, #ffffff, #f7faff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: left;
}

.topbar-stat strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(8, 8, 111, 0.72);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-stat span {
  display: block;
  color: var(--command);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.topbar h1 {
  margin: 1px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.topbar-note {
  margin: 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.userbox {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
}

.notificationbox {
  position: relative;
  flex: 0 0 auto;
}

.notificationbox-trigger {
  min-width: 54px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 16px;
  padding: 0 12px;
  background: linear-gradient(145deg, #ffffff, #f6f9ff);
  color: var(--command);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(10, 10, 99, 0.06),
    0 10px 26px rgba(18, 19, 26, 0.08);
  cursor: pointer;
  border: 1px solid #dbe4f1;
  position: relative;
}

.notificationbox-icon {
  font-size: 16px;
  line-height: 1;
}

.notificationbox-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--command);
}

.notificationbox-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(127, 29, 29, 0.22);
}

.notificationbox-count.is-hidden {
  display: none;
}

.notificationbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 18px;
  border: 1px solid rgba(19, 41, 113, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  z-index: 45;
}

.notificationbox-dropdown[hidden] {
  display: none !important;
}

.notificationbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f6f9fe);
  border: 1px solid #e1e8f2;
}

.notificationbox-head strong {
  font-size: 12px;
  color: var(--command);
}

.notificationbox-head span {
  font-size: 11px;
  color: var(--ink-soft);
}

.notificationbox-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.notificationbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6ecf5;
  background: linear-gradient(145deg, #ffffff, #fbfcff);
}

.notificationbox-item:hover {
  background: linear-gradient(145deg, #fff9e8, #fffef8);
  border-color: rgba(241, 196, 15, 0.26);
}

.notificationbox-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notificationbox-item-link {
  color: inherit;
}

.notificationbox-item-copy strong {
  font-size: 12px;
  color: var(--command);
  line-height: 1.35;
}

.notificationbox-item-copy small {
  font-size: 10px;
  color: var(--ink-soft);
}

.notificationbox-item-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.notificationbox-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.notificationbox-clear {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.notificationbox-clear:hover {
  color: #0f172a;
}

.notificationbox-empty {
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px dashed #d8e1ef;
  background: #f8fbff;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.live-approval-popups {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
  max-width: 340px;
}

.live-approval-popup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #dbe4f1;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.live-approval-popup-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.live-approval-popup-copy strong {
  color: var(--command);
  font-size: 12px;
  line-height: 1.35;
}

.live-approval-popup-copy span {
  color: var(--ink-soft);
  font-size: 11px;
}

.live-approval-popup-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.userbox-trigger {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: linear-gradient(160deg, #111980, #0a0a63 72%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 12px 34px rgba(10, 10, 99, 0.2);
  cursor: pointer;
  text-align: left;
}

.avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(30, 58, 138, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.avatar-badge-large {
  width: 48px;
  height: 48px;
  font-size: 16px;
  border-width: 3px;
}

.user-meta,
.muted,
.small {
  color: var(--ink-soft);
}

.userbox-caret {
  position: absolute;
  right: 4px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--command);
  font-size: 9px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(10, 10, 99, 0.18);
}

.userbox-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 248px;
  display: grid;
  gap: 8px;
  padding: 11px;
  border-radius: 18px;
  border: 1px solid rgba(19, 41, 113, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  z-index: 40;
}

.userbox-dropdown[hidden] {
  display: none !important;
}

.userbox-dropdown-head {
  display: grid;
  gap: 0;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f6f9fe);
  border: 1px solid #e1e8f2;
}

.userbox-dropdown-identity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.userbox-dropdown-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.userbox-dropdown-head strong {
  font-size: 12px;
  color: var(--command);
  line-height: 1.25;
}

.userbox-dropdown-head span {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.userbox-dropdown-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--command);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.userbox-dropdown-link:hover {
  background: linear-gradient(145deg, #fff7de, #fffcef);
  border-color: rgba(241, 196, 15, 0.22);
}

.card,
.login-panel,
.form-section,
.audit-card,
.media-card,
.record-form {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  box-shadow: var(--surface-shadow);
}

.card,
.login-panel {
  padding: 18px;
  min-width: 0;
}

.card.compact {
  padding: 14px 16px;
}

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

.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.18), transparent 70%);
  pointer-events: none;
}

.stat-card .stat {
  margin: 8px 0 6px;
  font-size: 32px;
  font-weight: 900;
  color: #0d0d73;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.hero-card {
  min-height: 180px;
}

.hero-card-tight {
  min-height: 0;
  padding: 14px 16px;
}

.hero-card h2 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.12;
}

.compact-hero .hero-card h2 {
  margin: 6px 0 8px;
  font-size: 20px;
}

.hero-card p {
  margin: 0;
  max-width: 60ch;
  font-size: 13px;
}

.feature-list,
.summary-list {
  display: grid;
  gap: 10px;
}

.summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-strip-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 280px;
}

.summary-strip-copy h2,
.summary-strip-copy h3 {
  margin: 0;
  font-size: 14px;
}

.summary-strip .summary-list {
  flex: 0 1 auto;
  grid-template-columns: repeat(4, minmax(84px, 104px));
  gap: 8px;
}

.summary-strip .summary-item {
  min-height: 0;
  padding: 7px 10px;
  border-radius: 12px;
}

.summary-strip .summary-item strong {
  font-size: 10px;
}

.summary-strip .summary-item span {
  font-size: 14px;
}

.feature-item,
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f5f8fd);
  border: 1px solid #dce4f0;
}

.feature-item strong,
.summary-item strong {
  display: block;
  font-size: 13px;
}

.feature-item span,
.summary-item span {
  font-size: 12px;
  color: var(--ink-soft);
}

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

.dashboard-command-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-bottom: 14px;
}

.dashboard-command-hero,
.dashboard-focus-card,
.dashboard-side-card,
.dashboard-activity-card {
  min-width: 0;
}

.dashboard-command-hero {
  background:
    linear-gradient(135deg, rgba(13, 13, 115, 0.96), rgba(20, 60, 128, 0.94)),
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 44px rgba(10, 20, 68, 0.28);
}

.dashboard-command-hero .eyebrow,
.dashboard-command-hero .dashboard-command-intro,
.dashboard-command-hero .dashboard-signal-label {
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-command-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-command-title {
  margin: 6px 0 0;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.dashboard-command-intro {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.6;
}

.dashboard-command-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-command-surface {
  margin-bottom: 14px;
}

.dashboard-command-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 208, 64, 0.18), transparent 30%),
    linear-gradient(135deg, #08153b 0%, #0d2870 52%, #11388f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 52px rgba(7, 15, 46, 0.3);
}

.dashboard-command-hero-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-width: 0;
}

.dashboard-director-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.dashboard-director-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 208px;
  height: 208px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(160deg, #0aa0cf 0%, #0f6fb2 48%, #083987 100%);
  border: 7px solid rgba(244, 246, 251, 0.92);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 28px 44px rgba(5, 10, 34, 0.34);
}

.dashboard-director-photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(246, 201, 74, 0.38);
}

.dashboard-director-photo span {
  font-size: 80px;
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0;
}

.dashboard-director-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.dashboard-command-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
  color: #fff;
  justify-items: center;
  text-align: center;
}

.dashboard-command-rule {
  width: 132px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4c740 0%, #fff0af 100%);
  box-shadow: 0 8px 18px rgba(244, 199, 64, 0.28);
}

.dashboard-command-heading {
  margin: 0;
  font-size: 2.08rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #fffef8;
}

.dashboard-command-welcome {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.dashboard-command-quote {
  margin: 0;
  max-width: 58ch;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 240, 190, 0.92);
  font-style: italic;
}

.dashboard-command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-command-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.dashboard-command-tag.is-green {
  color: #dfffe9;
  background: rgba(32, 159, 98, 0.22);
  border-color: rgba(114, 226, 171, 0.28);
}

.dashboard-command-tag.is-blue {
  color: #e3f2ff;
  background: rgba(93, 163, 255, 0.18);
  border-color: rgba(148, 197, 255, 0.26);
}

.dashboard-command-tag.is-gold {
  color: #fff4c6;
  background: rgba(244, 199, 64, 0.18);
  border-color: rgba(255, 230, 143, 0.26);
}

.dashboard-command-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-director-name {
  max-width: 220px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff1b5;
  text-transform: uppercase;
}

.dashboard-command-lower {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.dashboard-mission-card,
.dashboard-reminder-card,
.dashboard-updates-bar {
  min-width: 0;
  color: #fff;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-mission-card,
.dashboard-reminder-card {
  padding: 16px 18px;
}

.dashboard-mission-card h3,
.dashboard-reminder-card h3 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: #ffe9a6;
}

.dashboard-mission-list,
.dashboard-reminder-list {
  display: grid;
  gap: 10px;
}

.dashboard-mission-item,
.dashboard-reminder-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.dashboard-mission-dot {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.dashboard-mission-dot-0 { background: #f4c740; }
.dashboard-mission-dot-1 { background: #34c98f; }
.dashboard-mission-dot-2 { background: #61b3ff; }
.dashboard-mission-dot-3 { background: #ff8a55; }

.dashboard-mission-item strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.dashboard-mission-item span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
}

.dashboard-reminder-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(244, 199, 64, 0.18);
  border: 1px solid rgba(255, 231, 159, 0.22);
  color: #fff2b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dashboard-reminder-text {
  display: block;
  padding-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-updates-bar {
  display: grid;
  gap: 6px;
  padding: 14px 18px;
}

.dashboard-updates-bar strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ffe7a0;
}

.dashboard-updates-marquee {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.dashboard-post-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.dashboard-activity-stack {
  display: grid;
  gap: 14px;
}

.dashboard-side-stack-rich {
  align-content: start;
}

.dashboard-signals-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,255,0.98));
}

.dashboard-signal-grid-compact {
  margin-top: 0;
}

.dashboard-command-hero .role-badge,
.dashboard-command-hero .soft-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dashboard-signal-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.dashboard-signal-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-signal-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-signal-value {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}

.dashboard-metric-strip {
  margin-bottom: 14px;
}

.dashboard-main-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
}

.dashboard-side-stack {
  display: grid;
  gap: 14px;
}

.dashboard-section-head {
  margin-bottom: 12px;
}

.dashboard-mini-list,
.dashboard-role-stack {
  display: grid;
  gap: 8px;
}

.dashboard-mini-row,
.dashboard-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e1eaf6;
}

.dashboard-mini-row span,
.dashboard-role-row span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-mini-row strong,
.dashboard-role-row strong {
  color: #10233f;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-activity-card .dense-table th,
.dashboard-activity-card .dense-table td {
  padding-right: 8px;
}

.metric-tile {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--surface-shadow);
}

.metric-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
  color: #0d0d73;
}

.metric-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.panel-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.15fr 0.85fr;
}

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

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  min-width: 0;
}

.section-head > div {
  min-width: 0;
}

.section-head h2,
.section-head h3 {
  margin: 6px 0 0;
}

.eyebrow-subtle {
  font-size: 12px;
  color: var(--ink-soft);
}

.dense-table {
  width: 100%;
  border-collapse: collapse;
}

.dense-table th {
  padding: 0 0 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--command);
  border-bottom: 1px solid #d9e2ef;
}

.dense-table td {
  padding: 12px 0;
  border-bottom: 1px solid #edf2f8;
  font-size: 13px;
  vertical-align: top;
}

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

.table-primary {
  font-weight: 800;
}

.table-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
}

.status-badge,
.role-badge,
.soft-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-badge {
  color: #174898;
  background: #edf3ff;
  border: 1px solid #d0def8;
}

.status-badge.training {
  color: #805200;
  background: #fff7db;
  border-color: #f1de9e;
}

.status-badge.active {
  color: #0d5d46;
  background: #e8f8f0;
  border-color: #bde5d4;
}

.status-badge.pending {
  color: #8b5e00;
  background: #fff7db;
  border-color: #efd594;
}

.status-badge.disposed,
.status-badge.deposited {
  color: #0d5d46;
  background: #e8f8f0;
  border-color: #bde5d4;
}

.status-badge.repaired {
  color: #174898;
  background: #edf3ff;
  border-color: #d0def8;
}

.status-badge.disabled,
.status-badge.terminated {
  color: #842b2b;
  background: #fff0f0;
  border-color: #efcccc;
}

.status-badge.store-badge {
  color: #4a5568;
  background: #f7fafc;
  border-color: #e2e8f0;
}

.role-badge {
  color: #0d0d73;
  background: #eff3ff;
  border: 1px solid #d6dff9;
}

.soft-badge {
  color: var(--ink-soft);
  background: #f3f6fb;
  border: 1px solid #e0e7f1;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1 1 480px;
}

.profiles-filters {
  display: grid;
  align-items: end;
  gap: 8px;
  grid-template-columns: minmax(320px, 2.15fr) minmax(170px, 1fr);
  flex: 1 1 560px;
}

.profiles-filters label {
  display: grid;
  gap: 4px;
}

.profiles-filters label span {
  line-height: 1;
}

.profiles-filters input,
.profiles-filters select {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.profiles-section-head {
  align-items: center;
  gap: 12px;
}

.profiles-section-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.profiles-filters-inline {
  display: flex;
  align-items: center;
  grid-template-columns: minmax(300px, 2.2fr) minmax(170px, 1fr);
  gap: 8px;
  flex: 0 1 auto;
}

.profiles-filters-inline label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  position: relative;
}

.profiles-filters-inline label:first-child {
  min-width: 420px;
}

.profiles-filters-inline label:last-child {
  min-width: 230px;
}

.profiles-filters-inline label span {
  font-size: 11px;
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
}

.profiles-filters-inline input,
.profiles-filters-inline select {
  min-width: 0;
  flex: 1 1 auto;
}

.profiles-search-shell {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.profiles-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  box-shadow: none;
}

.profiles-search-results-list {
  max-height: 286px;
  overflow: auto;
  padding: 7px;
  display: grid;
  gap: 4px;
}

.profiles-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink-soft);
  text-decoration: none;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.profiles-search-result:hover,
.profiles-search-result.keyboard-active {
  border-color: #d8e4f2;
  background: linear-gradient(145deg, #fdfefe, #f2f7fd);
}

.profiles-search-result-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profiles-search-result strong {
  color: var(--command);
  font-size: 12px;
}

.profiles-search-result span {
  color: var(--ink-soft);
  font-size: 10px;
}

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

.profiles-search-result-meta b,
.profiles-search-result-meta i {
  font-style: normal;
  font-weight: 800;
}

.profiles-search-result-meta b {
  color: var(--command);
}

.profiles-search-result small {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4fb;
  white-space: nowrap;
  color: #58708f;
  font-size: 10px;
  font-weight: 800;
}

.profiles-search-results-empty {
  padding: 12px 11px 13px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.deployment-status-card,
.deployment-toolbar-card,
.client-status-card,
.client-toolbar-card {
  margin-bottom: 10px;
}

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

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

.client-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.client-status-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 280px;
}

.client-status-copy h2 {
  margin: 0;
  font-size: 14px;
}

.deployment-filters {
  display: grid;
  align-items: end;
  gap: 10px;
  grid-template-columns: minmax(260px, 1.8fr) minmax(150px, 0.8fr) minmax(170px, 0.9fr) auto;
}

.client-filters {
  display: grid;
  align-items: end;
  gap: 8px;
  grid-template-columns: minmax(280px, 1.95fr) minmax(140px, 0.85fr) minmax(96px, 0.5fr);
  flex: 1 1 640px;
}

.deployment-workspace {
  display: grid;
  align-items: start;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.client-workspace {
  display: grid;
  align-items: start;
  gap: 14px;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
}

.deployment-list-card,
.deployment-editor-card {
  min-width: 0;
}

.client-list-card,
.client-editor-card {
  min-width: 0;
}

.client-filters input,
.client-filters select {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.client-status-card .section-head,
.client-toolbar-card .section-head {
  margin-bottom: 8px;
}

.client-status-card .section-head h2,
.client-toolbar-card .toolbar h2 {
  font-size: 14px;
  margin-top: 4px;
}

.client-status-card .summary-item,
.client-toolbar-card .summary-item {
  padding: 7px 10px;
  min-height: 0;
  border-radius: 12px;
}

.client-status-card .summary-item strong {
  font-size: 10px;
}

.client-status-card .summary-item span {
  font-size: 14px;
}

.client-status-card .client-metrics {
  flex: 0 1 auto;
  grid-template-columns: repeat(4, minmax(84px, 104px));
}

.client-toolbar-card .toolbar {
  gap: 10px;
}

.deployment-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 300px);
  scrollbar-gutter: stable;
}

.deployment-table th,
.deployment-table td {
  white-space: nowrap;
}

.deployment-table tr.selected-row td {
  background: #f7f9ff;
}

.deployment-profile-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #dde6f2;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f5f8fd);
}

.deployment-profile-strip strong,
.deployment-profile-strip span {
  display: block;
}

.deployment-profile-strip span {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
}

.deployment-form {
  display: grid;
  gap: 10px;
}

.compact-action-button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
}

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

.client-row-card {
  min-width: 0;
}

.client-register-head,
.client-register-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(230px, 1.32fr) minmax(145px, 0.84fr) minmax(190px, 1.04fr) minmax(205px, 1.08fr) minmax(220px, 1.14fr) minmax(118px, 0.7fr) minmax(112px, 0.68fr) 52px;
  align-items: start;
  min-width: 1320px;
}

.client-register-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(18, 19, 26, 0.52);
  background: linear-gradient(145deg, #f8fbff, #eef3fb);
  box-shadow: 0 1px 0 #dfe7f2, 0 8px 18px rgba(13, 13, 115, 0.06);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-register-row {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #dfe7f2;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.client-register-serial,
.client-register-status,
.client-register-actions {
  display: flex;
  align-items: center;
}

.client-register-serial {
  justify-content: center;
  color: var(--command);
  font-size: 12px;
  font-weight: 900;
}

.client-register-value {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.34;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.client-register-primary {
  font-weight: 800;
}

.client-register-status {
  justify-content: flex-start;
}

.client-register-actions {
  justify-content: center;
}

.client-profile-hero {
  gap: 5px;
}

.client-profile-titleline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.client-profile-titleline h2 {
  margin: 0;
  line-height: 1.15;
}

.client-profile-unit {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d6dff9;
  background: #eff3ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--command);
}

.client-profile-meta {
  margin: 0;
  line-height: 1.32;
  font-size: 11px;
}

.client-profile-hero .button-row {
  gap: 6px;
}

.client-profile-hero .soft-badge,
.client-profile-hero .status-badge {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 10px;
}

.client-form {
  gap: 14px;
}

.client-field-wide {
  grid-column: span 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.client-rate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-wage-table {
  display: grid;
  gap: 8px;
}

.client-wage-structure-grid {
  margin-bottom: 14px;
}

.client-component-table-shell {
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
  position: relative;
}

.client-component-groups {
  display: grid;
  gap: 14px;
}

.client-component-group {
  display: grid;
  gap: 10px;
}

.client-component-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.client-component-group-head h3 {
  margin: 0 0 3px;
  color: var(--command);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.client-component-group-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.client-component-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 12px;
}

.client-component-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.client-component-table th,
.client-component-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f8;
  vertical-align: middle;
  font-size: 12px;
}

.client-component-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fbff;
  color: var(--command);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-component-table th:nth-child(1),
.client-component-table td:nth-child(1) { width: 22%; }

.client-component-table th:nth-child(2),
.client-component-table td:nth-child(2) { width: 17%; }

.client-component-table th:nth-child(3),
.client-component-table td:nth-child(3) { width: 24%; }

.client-component-table th:nth-child(4),
.client-component-table td:nth-child(4) { width: 24%; }

.client-component-table th:nth-child(5),
.client-component-table td:nth-child(5) { width: 8%; }

.client-component-table th:nth-child(6),
.client-component-table td:nth-child(6) { width: 5%; }

.client-component-row.is-disabled {
  opacity: 0.66;
}

.client-component-row.is-locked {
  background: rgba(21, 68, 139, 0.03);
}

.client-component-row[data-fixed-component="1"] {
  background: linear-gradient(145deg, #fbfcff, #f3f7fd);
}

.client-component-row[data-fixed-component="1"] td {
  border-bottom-color: #e3ebf6;
}

.client-component-row[data-fixed-component="1"] td:first-child {
  box-shadow: inset 3px 0 0 rgba(21, 68, 139, 0.18);
}

.client-component-row[data-fixed-component="1"] .client-component-name strong {
  font-size: 12px;
  font-weight: 800;
}

.client-component-row[data-fixed-component="1"] .client-component-center:empty::after {
  content: "";
  display: inline-block;
  width: 16px;
}

.client-component-center {
  text-align: center;
}

.client-component-name {
  display: grid;
  gap: 2px;
}

.client-component-name strong {
  color: var(--command);
  font-size: 12px;
}

.client-component-name input[type="text"] {
  min-height: 36px;
  border: 1px solid #d8e1ef;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--command);
  background: #fff;
}

.client-component-name small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.client-component-static {
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  padding: 9px 12px;
  border: 1px solid #d8e1ef;
  border-radius: 10px;
  background: linear-gradient(145deg, #f8fbff, #f2f6fc);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.component-value-stack {
  display: grid;
  gap: 8px;
}

.component-category-picker {
  position: relative;
}

.component-category-trigger {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(118px, 148px) minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(19, 41, 113, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f8fd 100%);
  color: #183153;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.component-category-trigger:hover,
.component-category-trigger[aria-expanded="true"] {
  border-color: rgba(19, 41, 113, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 12px 24px rgba(15, 23, 42, 0.08);
}

.component-category-trigger-label {
  color: #15396b;
  font-weight: 800;
}

.component-category-trigger-meta {
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.component-category-trigger-icon {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #315287;
  border-bottom: 1.8px solid #315287;
  transform: rotate(45deg);
  justify-self: end;
  transition: transform 120ms ease;
}

.component-category-trigger[aria-expanded="true"] .component-category-trigger-icon {
  transform: rotate(-135deg);
}

.component-category-panel {
  position: relative;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(19, 41, 113, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

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

.component-category-value-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.component-category-value-field span {
  color: #1b3e7a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.component-category-value-field input {
  min-width: 0;
}

.gross-salary-summary-box {
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  flex: none;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.gross-salary-source-picker {
  position: relative;
  display: block;
  min-width: 0;
}

.gross-salary-source-trigger {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(136px, 176px) minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(19, 41, 113, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f8fd 100%);
  color: #183153;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.gross-salary-source-trigger:hover,
.gross-salary-source-trigger[aria-expanded="true"] {
  border-color: rgba(19, 41, 113, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 12px 24px rgba(15, 23, 42, 0.08);
}

.gross-salary-source-trigger-label {
  color: #15396b;
  font-weight: 800;
}

.gross-salary-source-trigger-meta {
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gross-salary-source-trigger-icon {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #315287;
  border-bottom: 1.8px solid #315287;
  transform: rotate(45deg);
  justify-self: end;
  transition: transform 120ms ease;
}

.gross-salary-source-trigger[aria-expanded="true"] .gross-salary-source-trigger-icon {
  transform: rotate(-135deg);
}

.gross-salary-source-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  left: auto;
  width: min(620px, calc(100vw - 56px));
  min-width: 420px;
  padding: 12px;
  border: 1px solid rgba(19, 41, 113, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  z-index: 5200;
  box-shadow:
    0 18px 30px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.gross-salary-source-panel[hidden] {
  display: none !important;
}

.gross-salary-source-panel-head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.gross-salary-source-panel-head strong {
  color: #15396b;
  font-size: 12px;
  font-weight: 800;
}

.gross-salary-source-panel-head span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.gross-salary-source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  max-height: min(280px, 45vh);
  overflow-y: auto;
  padding-right: 2px;
}

.gross-salary-source-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(19, 41, 113, 0.08);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #183153;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gross-salary-source-option:hover {
  border-color: rgba(19, 41, 113, 0.16);
  background: linear-gradient(180deg, rgba(247, 201, 72, 0.2) 0%, rgba(247, 201, 72, 0.12) 100%);
}

.gross-salary-source-option input {
  margin: 0;
}

@media (max-width: 900px) {
  .gross-salary-source-panel {
    min-width: 320px;
    width: min(460px, calc(100vw - 32px));
  }

  .gross-salary-source-list {
    grid-template-columns: 1fr;
  }
}

.gross-salary-source-empty {
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.client-component-table td:last-child,
.client-component-table th:last-child {
  text-align: center;
  width: 108px;
}

.component-row-error {
  color: #b42318;
  font-size: 10px;
  font-weight: 700;
}

.component-inline-fields {
  display: grid;
  grid-template-columns: 18px minmax(92px, 1fr);
  align-items: center;
  gap: 8px;
}

.client-wage-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.client-wage-head {
  padding: 0 2px 2px;
  color: #1b3e7a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.client-wage-label {
  color: #183153;
  font-size: 13px;
  font-weight: 800;
}

.client-wage-input {
  min-width: 0;
}

.toolbar-actions-end {
  justify-content: flex-end;
}

.inline-form-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(183, 76, 76, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.98) 0%, rgba(255, 249, 249, 0.98) 100%);
  color: #8a2e2e;
  font-size: 13px;
  font-weight: 700;
}

.client-toggle-line {
  min-height: 48px;
  align-self: end;
}

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

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

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #d4dceb;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
button.primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--command-surface);
}

.button.subtle,
button.subtle {
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #eef3fb);
  border-color: #fff;
}

.button.danger,
button.danger {
  color: #fff;
  border-color: rgba(132, 43, 43, 0.22);
  background: linear-gradient(145deg, #b73b3b 0%, #8b2525 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(132, 43, 43, 0.12);
}

.compact-danger-button {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 12px;
}

.inline-delete-form {
  display: inline-flex;
  margin: 0;
}

.confirm-modal-backdrop[hidden] {
  display: none;
}

.confirm-modal .status-modal-message strong {
  color: var(--command);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.onboarding-actions {
  justify-content: flex-end;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.compact {
  gap: 10px;
}

label span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--command);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="number"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  border: 1px solid #cfd9e8;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
  border-color: #bac9de;
}

input:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #9fb2cf;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(159, 178, 207, 0.14);
}

input::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: rgba(97, 113, 137, 0.42);
  font-weight: 500;
}

input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

.enterprise-search {
  display: grid;
  gap: 5px;
  margin: 0;
}

.enterprise-search span {
  margin-bottom: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.enterprise-search input[type="search"] {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  border-color: #d8e1ef;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 6px 14px rgba(13, 13, 115, 0.035);
  font-size: 13px;
}

.enterprise-search input[type="search"]:focus {
  border-color: rgba(13, 13, 115, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 3px rgba(13, 13, 115, 0.08);
}

.split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  min-height: calc(100vh - 130px);
}

.side-list {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}

.record-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 2px;
}

.record {
  display: block;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #dde5f1;
  background: linear-gradient(145deg, #ffffff, #f6f9fe);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.record:hover {
  transform: translateY(-1px);
  border-color: #b9c9e4;
}

.record.active {
  background: linear-gradient(145deg, #ffffff, #ecf2ff);
  border-color: #8aa7de;
  box-shadow: 0 8px 18px rgba(23, 72, 152, 0.08);
}

.record-id {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #174898;
}

.record-name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
}

.record-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.main-form {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  min-width: 0;
}

.onboarding-workspace {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
  gap: 12px;
}

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

.queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.queue-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.info-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f6f9fe);
  border: 1px solid #dfe7f2;
}

.info-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.form-section {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 253, 0.9));
  border: 1px solid #dfe7f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  min-width: 0;
}

.onboarding-workspace .form-section {
  padding: 14px 14px 12px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-section h2,
.card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
}

.onboarding-workspace .form-section h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  min-width: 0;
}

.onboarding-workspace .form-section-head {
  margin-bottom: 12px;
  gap: 12px;
}

.section-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.onboarding-workspace .section-note {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.onboarding-workspace .form-grid {
  gap: 10px;
}

.family-contact-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  margin-top: 14px;
  min-width: 0;
}

.family-contact-field {
  min-width: 0;
}

.field-block {
  display: grid;
  gap: 0;
  min-width: 0;
}

.field-note {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.uin-field-row {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
}

.uin-prefix-box,
.uin-suffix-box {
  width: 64px;
  min-width: 64px;
  min-height: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid rgba(15, 31, 94, 0.18);
  background: linear-gradient(180deg, #f7f9fd 0%, #eaf0f8 100%);
  color: var(--command);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 18px rgba(15, 23, 42, 0.06);
}

.uin-prefix-box {
  background: linear-gradient(180deg, #101a86 0%, #0a0a63 100%);
  border-color: rgba(10, 10, 99, 0.28);
  color: #f8c949;
}

.uin-suffix-box.is-live {
  background: linear-gradient(180deg, #fff6dd 0%, #ffefb9 100%);
  border-color: rgba(214, 174, 47, 0.42);
  color: #0a0a63;
}

.uin-suffix-input {
  width: 64px;
  min-width: 64px;
  min-height: 46px;
  height: 46px;
  padding: 0 8px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
}

.uin-digits-input {
  width: 116px;
  min-width: 116px;
  min-height: 46px;
  height: 46px;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  padding: 0 10px;
}

.onboarding-uin-field {
  grid-column: span 1;
}

.onboarding-name-field {
  grid-column: span 1;
}

.onboarding-gender-field {
  grid-column: span 1;
}

.uin-field-row.is-readonly .uin-suffix-box {
  background: linear-gradient(180deg, #f2f5fa 0%, #edf2f8 100%);
  color: var(--command);
}

.typeahead-field {
  position: relative;
}

.typeahead-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(19, 41, 113, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  max-height: 228px;
  overflow-y: auto;
}

.typeahead-panel[hidden] {
  display: none !important;
}

.typeahead-option {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #183153;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  box-shadow: none;
}

.typeahead-option:hover,
.typeahead-option.is-active {
  border-color: rgba(19, 41, 113, 0.12);
  background: linear-gradient(180deg, rgba(247, 201, 72, 0.18) 0%, rgba(247, 201, 72, 0.1) 100%);
  color: #11275b;
}

.field-block input,
.field-block select,
.field-block textarea {
  font-size: 14px;
  font-weight: 600;
}

.preserve-case-input {
  text-transform: none !important;
}

.typeahead-field .preserve-case-input,
.typeahead-panel .typeahead-option {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.typeahead-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.typeahead-option-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typeahead-option-dismiss {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(24, 49, 83, 0.68);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.typeahead-option-dismiss:hover {
  background: rgba(19, 41, 113, 0.08);
  color: #11275b;
}

.field-block-muted input.readonly-muted {
  color: rgba(18, 19, 26, 0.5);
  background: linear-gradient(180deg, #f2f5fa 0%, #edf2f8 100%);
  border-color: #d9e1ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 4px 12px rgba(15, 23, 42, 0.03);
  cursor: default;
}

.field-block-muted input.readonly-muted:focus {
  border-color: #d9e1ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 4px 12px rgba(15, 23, 42, 0.03);
}

input.readonly-muted,
textarea.readonly-muted {
  color: rgba(18, 19, 26, 0.54);
  background: linear-gradient(180deg, #f2f5fa 0%, #edf2f8 100%);
  border-color: #d9e1ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 4px 12px rgba(15, 23, 42, 0.03);
}

input.readonly-muted:focus,
textarea.readonly-muted:focus {
  border-color: #d9e1ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 4px 12px rgba(15, 23, 42, 0.03);
}

.field-block input.is-valid,
.field-block textarea.is-valid,
.field-block select.is-valid {
  border-color: #87c8af;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(135, 200, 175, 0.16);
}

.field-block input.is-invalid,
.field-block textarea.is-invalid,
.field-block select.is-invalid {
  border-color: #e1a3a3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(225, 163, 163, 0.16);
}

.statutory-compliance-section {
  display: grid;
  gap: 12px;
}

.statutory-compliance-section .form-section-head {
  margin-bottom: 2px;
}

.compliance-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #dce5f1;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
}

.compliance-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4ebf5;
}

.compliance-group-head h3 {
  margin: 4px 0 0;
  color: var(--command);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.compliance-applicability {
  width: min(220px, 100%);
  flex: 0 0 auto;
}

.compliance-fields {
  gap: 12px;
}

.compliance-fields[hidden] {
  display: none !important;
}

.required-mark {
  display: inline-block;
  margin: 0 2px 0 0;
  color: #d63131 !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.profile-compliance-card {
  grid-column: 1 / -1;
}

.profile-compliance-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-compliance-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #dce5f1;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
}

.profile-compliance-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4ebf5;
}

.profile-compliance-title strong {
  color: var(--command);
  font-size: 14px;
}

.profile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 172px;
  align-items: start;
  min-width: 0;
}

.onboarding-workspace .profile-grid {
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 154px;
}

.address-stack {
  display: grid;
  gap: 14px;
}

.onboarding-workspace .address-stack {
  gap: 10px;
}

.address-sync-line {
  padding: 8px 2px 2px;
  font-weight: 700;
}

.onboarding-workspace .address-sync-line {
  padding: 4px 2px 0;
}

.audit-grid,
.media-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audit-card,
.media-card {
  padding: 14px;
}

.passport-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  align-content: start;
  align-self: start;
  justify-self: end;
  width: 172px;
  min-width: 0;
  padding: 10px;
  border-radius: 20px;
  justify-items: stretch;
  overflow: hidden;
}

.onboarding-workspace .passport-card {
  top: 84px;
  width: 154px;
  padding: 8px;
  border-radius: 16px;
  gap: 6px;
}

.passport-frame {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto;
  width: auto;
  align-self: center;
  position: relative;
}

.media-box {
  height: 180px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink-soft);
  background: #fff;
  border: 1px dashed #c7d2e6;
  border-radius: 14px;
}

.media-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.passport-box {
  width: 114px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 6 / 7;
  margin: 0 auto;
  padding: 0;
  border-style: solid;
  border-color: #cfd8e6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.onboarding-workspace .passport-box {
  width: 108px;
}

.passport-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.passport-card .media-box {
  margin: 0;
}

.passport-card .eyebrow {
  text-align: center;
}

.passport-card .checkbox-line,
.signature-panel .checkbox-line {
  min-height: 32px;
  padding: 0;
  width: 100%;
}

.toggle-input-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon-action {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #d7dfeb;
  background: linear-gradient(145deg, #ffffff, #eef3fb);
  color: #8a2e2e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 16px rgba(15, 23, 42, 0.05);
}

.icon-action-corner {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}

.icon-action.is-hidden {
  display: none;
}

.toggle-input-hidden:checked + .icon-action {
  border-color: #e1a3a3;
  background: linear-gradient(145deg, #fff4f4, #ffe7e7);
  color: #9a2f2f;
}

.signature-card {
  display: grid;
  max-width: 560px;
}

.onboarding-workspace .signature-card {
  max-width: 520px;
}

.signature-panel {
  display: grid;
  gap: 12px;
}

.onboarding-workspace .signature-panel {
  gap: 10px;
}

.signature-frame {
  position: relative;
}

.signature-box {
  width: 100%;
  min-height: 128px;
  height: auto;
  aspect-ratio: 4.8 / 1;
  margin: 0;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 22px;
  border-style: solid;
  border-color: #cfd8e6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(15, 23, 42, 0.06);
}

.onboarding-workspace .signature-box {
  min-height: 116px;
  padding: 16px 18px;
}

.onboarding-workspace .field-block > span {
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.onboarding-workspace .field-block input,
.onboarding-workspace .field-block select,
.onboarding-workspace .field-block textarea {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 5px 12px rgba(15, 23, 42, 0.035);
}

.onboarding-workspace .field-block textarea {
  min-height: 84px;
}

.onboarding-workspace .media-box {
  border-radius: 12px;
}

.onboarding-workspace .compliance-group {
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
}

.onboarding-workspace .compliance-group-head {
  gap: 10px;
  padding-bottom: 8px;
}

.onboarding-workspace .compliance-group-head h3 {
  font-size: 13px;
}

.onboarding-workspace .onboarding-actions {
  margin-top: 2px;
}

.onboarding-workspace .button-row .button {
  min-height: 38px;
  padding: 8px 14px;
}

.signature-box img {
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.checkbox-line span {
  margin: 0;
}

.record-form {
  padding: 14px;
}

.user-admin-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.admin-console-shell {
  display: grid;
  gap: 10px;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
}

.admin-tree-pane {
  display: grid;
  gap: 10px;
  padding: 10px;
  position: sticky;
  top: 78px;
}

.admin-tree-head h2 {
  margin: 6px 0 0;
  font-size: 16px;
}

.admin-tree-nav,
.admin-tree-role-list,
.admin-console-workspace {
  display: grid;
  gap: 8px;
}

.admin-tree-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-tree-link:hover {
  border-color: #d8e1ef;
  background: linear-gradient(145deg, #ffffff, #f3f7fd);
  color: var(--command);
}

.admin-tree-link.active {
  border-color: rgba(241, 196, 15, 0.34);
  background: linear-gradient(145deg, #fffef6, #fff6d9);
  color: var(--command);
}

.admin-tree-icon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid #9fb2cf;
  background: linear-gradient(180deg, #ffffff, #eaf0fa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.admin-tree-group {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #e6edf7;
}

.admin-tree-role-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid #e1e8f2;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
}

.admin-tree-role-item strong {
  font-size: 12px;
  color: var(--command);
}

.admin-tree-role-item span {
  font-size: 11px;
  color: var(--ink-soft);
}

.admin-role-grid {
  display: grid;
  gap: 10px;
}

.admin-toolbar-actions {
  align-items: center;
}

.admin-compact-button {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.admin-action-row {
  justify-content: flex-end;
  margin-top: 0;
}

.admin-role-card,
.admin-role-template-card {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #dce4f0;
  background: linear-gradient(145deg, #ffffff, #f6f9fe);
}

.admin-role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-role-card strong,
.admin-user-row strong {
  display: block;
  color: var(--command);
  font-size: 13px;
}

.admin-role-card span,
.admin-user-row span {
  font-size: 11px;
  color: var(--ink-soft);
}

.admin-role-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-item-link {
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.summary-item-link:hover {
  border-color: #b9c9e4;
  transform: translateY(-1px);
}

.admin-inline-toggle {
  min-height: 38px;
  padding-top: 24px;
}

.admin-module-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-role-template-selector {
  display: flex;
  justify-content: flex-start;
}

.admin-role-template-selector label {
  width: min(360px, 100%);
}

.admin-role-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-role-template-copy {
  display: grid;
  gap: 4px;
}

.admin-role-template-copy h3 {
  margin: 0;
  font-size: 16px;
  color: var(--command);
}

.admin-role-template-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-module-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 7px;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
}

.admin-module-pill span {
  margin: 0;
  color: var(--command);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.user-admin-console {
  display: grid;
  gap: 10px;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.admin-user-list,
.admin-user-workspace {
  display: grid;
  gap: 8px;
}

.admin-user-list {
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding-right: 2px;
}

.admin-user-row {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #dce4f0;
  background: linear-gradient(145deg, #ffffff, #f6f9fe);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-user-row:hover {
  border-color: #bccde5;
  transform: translateY(-1px);
}

.admin-user-row.active {
  border-color: rgba(241, 196, 15, 0.44);
  background: linear-gradient(145deg, #fffef8, #fff7de);
  box-shadow: 0 10px 20px rgba(241, 196, 15, 0.08);
}

.admin-user-row-head,
.admin-user-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-row-meta {
  flex-wrap: wrap;
}

.admin-page-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 10px;
}

.admin-page-hero .hero-card,
.admin-page-hero .card.compact {
  min-height: 0;
}

.admin-overview-grid {
  gap: 10px;
}

.admin-console-titlebar {
  padding: 10px 12px;
}

.admin-console-browser {
  display: grid;
  gap: 10px;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.admin-directory-panel,
.admin-detail-panel {
  min-width: 0;
}

.admin-section-head-tight {
  margin-bottom: 6px;
}

.admin-detail-hero {
  padding-bottom: 10px;
}

.admin-object-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e6edf7;
}

.admin-object-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e0e7f1;
  background: linear-gradient(145deg, #ffffff, #f5f8fd);
  font-size: 11px;
  color: var(--ink-soft);
}

.admin-object-strip strong {
  font-size: 11px;
  color: var(--command);
}

.admin-user-workspace > .card,
.admin-user-actions-grid > .card {
  padding: 11px 12px;
}

.admin-user-actions-grid {
  gap: 8px;
}

.admin-user-workspace .section-head {
  margin-bottom: 8px;
}

.admin-user-workspace .form-grid {
  gap: 8px;
}

.admin-console-workspace .field-block span,
.admin-console-workspace label span {
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--command);
}

.admin-user-workspace textarea,
.admin-user-workspace input,
.admin-user-workspace select,
.admin-role-template-card input,
.admin-role-template-card select,
.admin-console-titlebar input,
.admin-console-titlebar select {
  min-height: 36px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 13px;
}

.admin-user-workspace textarea {
  min-height: 88px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.profiles-list {
  display: grid;
  gap: 12px;
}

.profile-row-card {
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 70px minmax(0, 1fr);
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #dce4f0;
  background: linear-gradient(145deg, #ffffff, #f6f9fe);
}

.profile-serial {
  display: flex;
  justify-content: center;
}

.profile-serial span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  background: linear-gradient(145deg, #ffffff, #f2f6fc);
  color: var(--command);
  font-size: 12px;
  font-weight: 900;
}

.profile-row-media {
  display: flex;
  justify-content: center;
}

.profile-thumb {
  width: 56px;
  aspect-ratio: 6 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #d5dfeb;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-row-main {
  display: block;
  min-width: 0;
}

.profile-row-singleline {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1.45fr) minmax(160px, 1.2fr) minmax(112px, 0.85fr) minmax(170px, 1.15fr) minmax(150px, 1fr) minmax(140px, 0.95fr) minmax(102px, 0.75fr) auto;
  align-items: center;
}

.profile-inline-block,
.profile-inline-actions {
  min-width: 0;
}

.profile-inline-block strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 19, 26, 0.48);
}

.profile-inline-block span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.profile-inline-identity .record-name {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-line,
.profile-inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.directory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e9f4;
}

.pagination-meta {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pagination-button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.pagination-button.is-disabled {
  opacity: 0.46;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-number {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #d8e1ef;
  background: linear-gradient(145deg, #ffffff, #f2f6fc);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.pagination-number.active {
  color: var(--command);
  border-color: rgba(241, 196, 15, 0.44);
  background: linear-gradient(145deg, #fffef7, #fff6d8);
}

.serviceability-section-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.serviceability-header-search {
  width: min(280px, 32vw);
  min-width: 210px;
}

.serviceability-header-search input {
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 12px;
}

.serviceability-entries-form {
  margin: 0;
}

.serviceability-entries-form label {
  display: grid;
  gap: 4px;
  min-width: 112px;
}

.serviceability-entries-form span {
  color: var(--command);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.serviceability-entries-form select {
  min-height: 34px;
  padding: 7px 30px 7px 10px;
  border-radius: 10px;
  border: 1px solid #d8e1ef;
  background-color: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.excel-export-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-self: flex-end;
  border-radius: 9px;
  border-color: rgba(16, 124, 65, 0.28);
  background: linear-gradient(145deg, #f3fff8, #dff4e8);
  color: #107c41;
}

.excel-export-button:hover,
.excel-export-button:focus-visible {
  border-color: #107c41;
  background: linear-gradient(145deg, #14894a, #0d6836);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 124, 65, 0.2);
}

.serviceability-pagination {
  margin-top: 12px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #d4dceb;
  background: linear-gradient(145deg, #ffffff, #eef3fb);
  color: #173d8d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(15, 23, 42, 0.04);
}

.icon-button-edit {
  color: var(--command);
  border-color: rgba(13, 13, 115, 0.16);
}

.icon-button-edit:hover {
  border-color: rgba(241, 196, 15, 0.52);
  background: linear-gradient(145deg, #fffef8, #fff6d8);
}

.icon-button-danger {
  min-height: 36px;
  padding: 0;
  color: #9a2f2f;
  border-color: rgba(154, 47, 47, 0.18);
  background: linear-gradient(145deg, #ffffff, #fff1f1);
}

.icon-button-danger:hover {
  color: #fff;
  border-color: rgba(132, 43, 43, 0.22);
  background: linear-gradient(145deg, #b73b3b 0%, #8b2525 100%);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

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

.profile-hero-card {
  padding: 18px;
}

.profile-hero-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) 120px minmax(220px, 0.72fr);
  align-items: start;
}

.profile-hero-main {
  display: grid;
  gap: 12px;
}

.profile-hero-note {
  margin-top: 8px;
  line-height: 1.45;
  word-break: break-word;
}

.profile-hero-uin {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--command);
}

.profile-hero-uin-badge {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--command);
}

.profile-hero-media {
  display: flex;
  justify-content: center;
}

.profile-hero-photo {
  width: 112px;
  aspect-ratio: 6 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d5dfeb;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 22px rgba(15, 23, 42, 0.05);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.profile-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-aside {
  min-width: 0;
}

.summary-item-progress {
  align-items: flex-start;
  flex-direction: column;
}

.summary-item-progress small {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.profile-completion-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfe7f3;
  border: 1px solid #d5e0ef;
}

.profile-completion-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d0d73 0%, #174898 55%, #f1c40f 100%);
}

.profile-view-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-view-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e0e7f1;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
}

.profile-view-item strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #173d8d;
}

.profile-view-item span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.45;
}

.profile-view-item-wide {
  grid-column: 1 / -1;
}

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

.clothing-employee-pane {
  position: sticky;
  top: 78px;
}

.clothing-workspace,
.clothing-employee-list,
.clothing-issue-table,
.clothing-profile-list {
  display: grid;
  gap: 10px;
}

.clothing-employee-list {
  margin-top: 12px;
  max-height: calc(100vh - 360px);
  overflow: auto;
  padding-right: 2px;
}

.clothing-employee-row,
.clothing-profile-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #dce4f0;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
}

.clothing-employee-row.active {
  border-color: rgba(241, 196, 15, 0.44);
  background: linear-gradient(145deg, #fffef8, #fff7de);
}

.clothing-employee-row strong,
.clothing-profile-item strong {
  color: var(--command);
  font-size: 13px;
}

.clothing-employee-row span,
.clothing-profile-item span {
  color: var(--ink-soft);
  font-size: 12px;
}

.clothing-issue-form {
  margin-top: 10px;
}

.clothing-console-tabs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.clothing-console-tab {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dfe7f2;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 32px rgba(13, 13, 115, 0.06);
}

.clothing-console-tab.active {
  border-color: rgba(241, 196, 15, 0.58);
  background: linear-gradient(145deg, #fffdf4, #fff7dc);
}

.clothing-console-tab strong {
  color: var(--command);
  font-size: 13px;
}

.clothing-console-tab span {
  color: var(--ink-soft);
  font-size: 11px;
}

.clothing-master-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1.18fr);
  align-items: start;
}

.clothing-item-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-x: auto;
  overflow-y: visible;
  padding-right: 2px;
  padding-bottom: 112px;
}

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

.clothing-item-master-workspace,
.clothing-item-master-card,
.clothing-item-master-panel {
  min-height: 0;
}

.clothing-item-master-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.clothing-item-master-card > .section-head {
  flex: 0 0 auto;
}

.clothing-item-master-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.clothing-item-master-panel .clothing-register-search {
  flex: 0 0 auto;
}

.clothing-item-master-panel .clothing-item-register {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.clothing-item-master-panel .clothing-item-head {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 #dfe7f2, 0 8px 18px rgba(13, 13, 115, 0.06);
}

.clothing-register-search {
  max-width: 420px;
  margin-bottom: 10px;
}

@media (min-width: 981px) {
  .clothing-item-master-workspace,
  .clothing-stock-workspace {
    height: calc(100dvh - 144px);
    min-height: 520px;
  }

  .clothing-item-master-card,
  .clothing-stock-card {
    height: 100%;
  }
}

.clothing-item-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(90px, 0.55fr) minmax(190px, 1.15fr) minmax(100px, 0.62fr) minmax(78px, 0.46fr) minmax(76px, 0.44fr) minmax(200px, 1.1fr) auto;
  align-items: center;
  min-width: 1000px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #dfe7f2;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.clothing-item-row-clickable {
  cursor: pointer;
}

.clothing-item-row-clickable:hover {
  border-color: rgba(241, 196, 15, 0.32);
  box-shadow: 0 10px 22px rgba(13, 13, 115, 0.06);
}

.clothing-item-head {
  color: rgba(18, 19, 26, 0.52);
  background: linear-gradient(145deg, #f8fbff, #eef3fb);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clothing-item-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.clothing-item-row strong {
  color: var(--command);
  font-size: 14px;
}

.clothing-item-row span {
  color: var(--ink-soft);
  font-size: 12px;
}

.equipment-table-shell {
  overflow: auto;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: linear-gradient(145deg, #fdfefe, #f7faff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.equipment-item-shell,
.equipment-stock-shell,
.equipment-issue-shell {
  max-width: 100%;
}

.equipment-data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.equipment-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 12px;
  border-bottom: 1px solid #d8e2ef;
  background: linear-gradient(145deg, #f7fbff, #edf3fb);
  color: rgba(18, 19, 26, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.equipment-data-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #e7edf6;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
  background: linear-gradient(145deg, #ffffff, #f9fbfe);
}

.equipment-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.equipment-data-row {
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.equipment-data-row:hover td {
  background: linear-gradient(145deg, #ffffff, #f4f8ff);
}

.equipment-data-table tbody strong {
  color: var(--command);
  font-size: 14px;
  font-weight: 900;
}

.equipment-data-table .col-item,
.equipment-data-table .col-type {
  text-align: left;
}

.equipment-data-table .col-no,
.equipment-data-table .col-code,
.equipment-data-table .col-model,
.equipment-data-table .col-auth,
.equipment-data-table .col-life,
.equipment-data-table .col-serial,
.equipment-data-table .col-held,
.equipment-data-table .col-total,
.equipment-data-table .col-issued,
.equipment-data-table .col-balance,
.equipment-data-table .col-defi,
.equipment-data-table .col-surplus,
.equipment-data-table .col-date,
.equipment-data-table .col-remarks,
.equipment-data-table .col-qty {
  text-align: center;
}

.equipment-data-table .col-action {
  text-align: right;
}

.equipment-data-table td.col-item,
.equipment-data-table td.col-type,
.equipment-data-table td.col-model,
.equipment-data-table td.col-serial,
.equipment-data-table td.col-code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.equipment-item-table {
  min-width: 980px;
}

.equipment-item-table .col-no { width: 56px; }
.equipment-item-table .col-code { width: 122px; }
.equipment-item-table .col-item { width: 30%; }
.equipment-item-table .col-model { width: 14%; }
.equipment-item-table .col-type { width: 24%; }
.equipment-item-table .col-auth { width: 74px; }
.equipment-item-table .col-life { width: 70px; }
.equipment-item-table .col-action { width: 82px; }

.equipment-stock-table {
  min-width: 1360px;
}

.equipment-stock-table .col-code { width: 108px; }
.equipment-stock-table .col-item { width: 18%; }
.equipment-stock-table .col-type { width: 14%; }
.equipment-stock-table .col-model { width: 10%; }
.equipment-stock-table .col-serial { width: 11%; }
.equipment-stock-table .col-total,
.equipment-stock-table .col-held,
.equipment-stock-table .col-issued,
.equipment-stock-table .col-balance,
.equipment-stock-table .col-defi,
.equipment-stock-table .col-surplus { width: 72px; }
.equipment-stock-table .col-date { width: 108px; }
.equipment-stock-table .col-remarks { width: 230px; }
.equipment-stock-table .col-action { width: 84px; }

.equipment-stock-table tbody td.col-defi.stock-balance-negative {
  color: #b73b3b;
  font-weight: 900;
}

.equipment-stock-table tbody td.col-surplus.stock-balance-positive {
  color: #1f814c;
  font-weight: 900;
}

.equipment-issue-table {
  min-width: 900px;
}

.equipment-issue-table .col-item { width: 28%; }
.equipment-issue-table .col-type { width: 22%; }
.equipment-issue-table .col-model { width: 15%; }
.equipment-issue-table .col-serial { width: 15%; }
.equipment-issue-table .col-qty { width: 70px; }
.equipment-issue-table .col-date { width: 110px; }
.equipment-issue-table .col-action { width: 86px; }

.inventory-ledger-workspace {
  height: 100%;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.inventory-ledger-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.inventory-ledger-head {
  align-items: center;
  margin-bottom: 10px;
  flex: 0 0 auto;
  width: 100%;
}

.inventory-ledger-head h2 {
  font-size: 17px;
}

.inventory-ledger-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) minmax(150px, 0.85fr) 132px 132px 92px auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
  min-width: 0;
  width: 100%;
}

.inventory-ledger-filters label,
.monthly-summary-filter label {
  min-width: 0;
}

.inventory-ledger-filters label span,
.monthly-summary-filter label span {
  margin-bottom: 4px;
  font-size: 9px;
}

.inventory-ledger-filters input,
.inventory-ledger-filters select,
.monthly-summary-filter input {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 12px;
}

.inventory-ledger-table-shell {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  flex: 1;
  overflow: auto;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
}

.inventory-ledger-table {
  width: 100%;
  min-width: 1420px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.inventory-ledger-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 10px;
  border-bottom: 1px solid #d8e2ef;
  background: #eef3f9;
  color: var(--command);
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.inventory-ledger-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e7edf6;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

.inventory-ledger-table tbody tr:hover td {
  background: #f8faff;
}

.inventory-ledger-table td strong {
  display: block;
  color: var(--command);
  font-size: 12px;
}

.inventory-ledger-table td small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

.inventory-ledger-table tfoot th {
  position: sticky;
  top: auto;
  bottom: 0;
  border-top: 1px solid #ccd8e8;
  border-bottom: 0;
  background: #e9eff8;
}

.inventory-number {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.inventory-positive { color: #187747 !important; }
.inventory-negative { color: #b42d3c !important; }
.inventory-closing { color: var(--command) !important; font-weight: 900 !important; }

.inventory-remarks-cell {
  min-width: 190px;
  max-width: 280px;
  white-space: normal !important;
  line-height: 1.35;
}

.movement-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #d6e0ed;
  border-radius: 7px;
  background: #f3f6fa;
  color: var(--command);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.movement-inward,
.movement-adjustment_in,
.movement-return_serviceable,
.movement-repair_in { color: #187747; background: #eef9f3; border-color: #cfe9da; }
.movement-loss,
.movement-dispose,
.movement-adjustment_out { color: #a9283a; background: #fff1f3; border-color: #f0ccd2; }
.movement-issue,
.movement-repair_out,
.movement-return_unserviceable { color: #8a5b00; background: #fff8e7; border-color: #eadcad; }

.inventory-empty {
  height: 120px;
  color: var(--ink-soft) !important;
  text-align: center;
}

.inventory-ledger-pagination {
  flex: 0 0 auto;
  margin-top: 9px;
  padding-top: 9px;
}

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

.inventory-movement-form input,
.inventory-movement-form select,
.inventory-movement-form textarea {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.inventory-form-wide { grid-column: span 3; }
.monthly-summary-filter { margin: 0; }
.monthly-summary-filter input { width: 160px; }
.monthly-summary-table { min-width: 1280px; }
.monthly-summary-shell { min-height: 360px; }

.inventory-ledger-note {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.deployment-enterprise-workspace {
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 116px);
  min-height: 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.deployment-employee-search-panel,
.deployment-assignment-panel,
.deployment-history-panel,
.placement-records-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  align-self: stretch;
}

.deployment-employee-search-panel {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
}

.deployment-assignment-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.deployment-history-panel {
  grid-column: 1;
  grid-row: 2;
  max-height: 210px;
}

.deployment-employee-search-panel,
.deployment-history-panel {
  display: flex;
  flex-direction: column;
}

.deployment-employee-search-panel {
  padding: 14px;
}

.deployment-employee-search-panel .section-head,
.deployment-assignment-panel .section-head,
.deployment-history-panel .section-head,
.placement-records-head {
  margin-bottom: 9px;
  align-items: center;
}

.deployment-assignment-panel .section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.deployment-assignment-panel .section-head > div {
  min-width: 0;
}

.deployment-employee-search-panel h2,
.deployment-assignment-panel h2,
.deployment-history-panel h2,
.placement-records-head h2 {
  font-size: 16px;
}

.deployment-employee-search-panel { position: relative; }

.deployment-search-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.deployment-employee-results {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  right: auto;
  flex: 0 0 auto;
  min-height: 0;
  margin-top: 8px;
  max-height: 420px;
  background: transparent;
  box-shadow: none;
}

.deployment-employee-results-list {
  height: auto;
  min-height: 0;
  overflow: auto;
  padding: 7px;
  display: grid;
  gap: 4px;
}

.deployment-employee-results[data-results-mode="multiple"] {
  flex: 1 1 auto;
  max-height: none;
}

.deployment-employee-results[data-results-mode="multiple"] .deployment-employee-results-list {
  height: 100%;
}

.deployment-employee-results[data-results-mode="single"] .deployment-employee-results-list,
.deployment-employee-results[data-results-mode="empty"] .deployment-employee-results-list {
  overflow: visible;
}

.deployment-employee-results-empty {
  padding: 12px 11px 13px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.deployment-search-control {
  display: grid;
  gap: 6px;
  margin: 0;
}

.deployment-search-input {
  position: relative;
  display: block !important;
  margin: 0 !important;
}

.deployment-search-input svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: #617189;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.deployment-search-control .deployment-search-input input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px 9px 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d6e0ed;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.025);
}

.deployment-search-control .deployment-search-input input[type="search"]:focus {
  border-color: #1f4f95;
  box-shadow: 0 0 0 3px rgba(31, 79, 149, 0.08);
}

.deployment-employee-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink-soft);
  text-decoration: none;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.deployment-employee-result:hover,
.deployment-employee-result.active,
.deployment-employee-result.keyboard-active { background: #f1f5fb; }
.deployment-employee-result-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.deployment-employee-result:hover,
.deployment-employee-result.active,
.deployment-employee-result.keyboard-active {
  border-color: #d8e4f2;
  background: linear-gradient(145deg, #fdfefe, #f2f7fd);
}
.deployment-employee-result strong { color: var(--command); font-size: 12px; }
.deployment-employee-result span { font-size: 10px; }
.deployment-employee-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.deployment-employee-result-meta b,
.deployment-employee-result-meta i {
  font-style: normal;
  font-weight: 800;
}
.deployment-employee-result-meta b {
  color: var(--command);
}
.deployment-employee-result small {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4fb;
  white-space: nowrap;
  color: #58708f;
  font-size: 10px;
  font-weight: 800;
}

.deployment-selected-employee {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  padding: 10px 11px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #f8faff;
}

.deployment-selected-employee strong,
.deployment-selected-employee span,
.deployment-selected-employee small { display: block; }
.deployment-selected-employee strong { color: var(--command); font-size: 13px; line-height: 1.25; }
.deployment-selected-employee span { margin-top: 3px; font-size: 11px; font-weight: 800; }
.deployment-selected-employee small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }

.deployment-assignment-panel { overflow: hidden; overscroll-behavior: contain; }
.deployment-enterprise-form {
  display: grid;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.deployment-form-section {
  padding: 10px 11px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fbfcff;
}

.deployment-section-title {
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e4ebf4;
}
.deployment-section-title strong { color: var(--command); font-size: 11px; text-transform: uppercase; }
.deployment-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.deployment-form-grid input,
.deployment-form-grid select,
.deployment-form-grid textarea { min-height: 36px; padding: 7px 9px; border-radius: 9px; font-size: 12px; }
.deployment-sac-combined { grid-column: span 2; }
.deployment-remarks-field { grid-column: span 2; }
.deployment-form-actions { display: flex; justify-content: flex-end; }

.deployment-history-list { min-height: 0; overflow: auto; display: grid; gap: 6px; }
.deployment-history-list a { display: grid; gap: 2px; padding: 9px; border: 1px solid #e0e7f1; border-radius: 10px; background: #fbfcff; }
.deployment-history-list strong { color: var(--command); font-size: 11px; }
.deployment-history-list span,
.deployment-history-list small { color: var(--ink-soft); font-size: 10px; }

.deployment-empty-state { min-height: 180px; display: grid; place-content: center; gap: 5px; text-align: center; color: var(--ink-soft); }
.deployment-empty-state strong { color: var(--command); }
.deployment-empty-state.compact { min-height: 80px; }

.placement-records-card {
  height: calc(100vh - 116px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.placement-record-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(130px, .8fr) minmax(130px, .8fr) 140px 86px;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}
.placement-record-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.placement-record-filters.placement-record-filters-exportable {
  flex: 1 1 auto;
  margin-bottom: 0;
  grid-template-columns: minmax(200px, 1.2fr) minmax(128px, .82fr) minmax(128px, .82fr) 132px 82px;
}
.placement-search-tight input {
  max-width: 100%;
}
.placement-export-corner {
  margin-left: auto;
}
.placement-record-filters.four-cols {
  grid-template-columns: minmax(220px, 1.5fr) minmax(130px, 1fr) 140px 86px;
}

.placement-record-filters.billing-register-filters {
  grid-template-columns:
    minmax(260px, 1.9fr)
    minmax(148px, 0.9fr)
    minmax(128px, 0.8fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    92px;
  gap: 10px;
}

.placement-record-filters.billing-register-filters label span {
  margin-bottom: 4px;
}

.placement-record-filters.billing-register-filters input,
.placement-record-filters.billing-register-filters select {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
}
.placement-record-filters > * {
  min-width: 0;
}
.placement-record-filters label span {
  margin-bottom: 6px;
  font-size: 11px;
}
.placement-record-filters input,
.placement-record-filters select {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
}
.placement-table-shell { width: 100%; max-width: 100%; flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #dce5f1; border-radius: 12px; }
.placement-records-table { width: 100%; min-width: 1400px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.placement-records-table th:nth-child(1) { width: 4%; }
.placement-records-table th:nth-child(2) { width: 14%; }
.placement-records-table th:nth-child(3) { width: 11%; }
.placement-records-table th:nth-child(4) { width: 11%; }
.placement-records-table th:nth-child(5) { width: 12%; }
.placement-records-table th:nth-child(6) { width: 8%; }
.placement-records-table th:nth-child(7) { width: 7%; }
.placement-records-table th:nth-child(8) { width: 9%; }
.placement-records-table th:nth-child(9) { width: 11%; }
.placement-records-table th:nth-child(10) { width: 8%; }
.placement-records-table th:nth-child(11) { width: 7%; }
.placement-records-table th:nth-child(12) { width: 5%; }
.placement-records-table th { position: sticky; top: 0; z-index: 2; padding: 12px 10px; border-bottom: 1px solid #d7e1ed; background: #eef3f9; color: var(--command); font-size: 12px; font-weight: 800; text-align: left; text-transform: uppercase; white-space: nowrap; }
.placement-records-table td { padding: 10px 8px; border-bottom: 1px solid #e7edf5; color: var(--ink-soft); font-size: 13px; font-weight: 700; line-height: 1.4; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; }
.placement-records-table tbody tr:hover td { background: #f8faff; }
.placement-records-table td strong,
.placement-records-table td small { display: block; }
.placement-records-table td strong { color: var(--command); font-size: 13px; font-weight: 800; }
.placement-records-table td small { margin-top: 3px; color: var(--command); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.training-batch-register-card {
  min-height: 0;
}

.training-batch-table-shell {
  overflow-x: hidden;
}

.training-batch-records-table {
  min-width: 0;
  table-layout: fixed;
}

.training-batch-records-table th:nth-child(1) { width: 8%; }
.training-batch-records-table th:nth-child(2) { width: 24%; }
.training-batch-records-table th:nth-child(3) { width: 21%; }
.training-batch-records-table th:nth-child(4) { width: 18%; }
.training-batch-records-table th:nth-child(5) { width: 9%; }
.training-batch-records-table th:nth-child(6) { width: 7%; }
.training-batch-records-table th:nth-child(7) { width: 10%; }
.training-batch-records-table th:nth-child(8) { width: 3%; }

.training-batch-records-table th {
  padding: 10px 8px;
  font-size: 11px;
}

.training-batch-records-table td {
  padding: 8px 8px;
  font-size: 12px;
  line-height: 1.16;
}

.training-batch-records-table td strong {
  font-size: 12px;
}

.training-batch-records-table td small {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.08;
}

.training-batch-records-table .status-badge {
  padding: 4px 7px;
  font-size: 9px;
}

.training-batch-records-table .row-action-trigger {
  width: 28px;
  height: 28px;
}
.placement-center { text-align: center; font-variant-numeric: tabular-nums; }
.placement-action-cell { width: 64px; text-align: center; }
.current-placement-label { display: inline-flex !important; width: max-content; margin-top: 3px; padding: 2px 5px; border-radius: 5px; background: #edf8f1; color: #187747; }
.placement-view-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Split Layout for Deployment Profile */
.placement-profile-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.placement-profile-top-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.placement-profile-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 16px !important;
  box-sizing: border-box;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(13, 13, 115, 0.06);
  overflow: hidden;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #eef3fb 0%, #d5e1f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.profile-avatar span {
  font-size: 24px;
  font-weight: 800;
  color: var(--command);
  letter-spacing: 0.05em;
}

.profile-avatar-section h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--command-deep);
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.profile-uin-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.profile-details-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #eef3f9;
  border-bottom: 1px solid #eef3f9;
  padding: 10px 0;
}

.profile-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-detail-item strong {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.profile-detail-item span {
  font-size: 12px;
  font-weight: 700;
  color: var(--command-deep);
}

.profile-actions-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-actions-section .button {
  width: 100%;
  font-size: 12px;
  min-height: 36px;
  padding: 8px 10px;
}

/* Right Content Area Grid */
.placement-profile-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.placement-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
  padding: 2px 0;
}

.placement-details-grid .detail-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border-bottom: none;
  padding: 1px 0;
}

.placement-details-grid .detail-block.full-width {
  grid-column: span 2;
  align-items: flex-start;
}

.placement-details-grid .detail-block span {
  width: 140px;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.placement-details-grid .detail-block strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--command-deep);
  line-height: 1.1;
}

.placement-details-grid .detail-block p {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  background: #f8fafc;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #eef3fb;
  flex-grow: 1;
}

.placement-summary-card,
.placement-ledger-card {
  display: grid;
  gap: 10px;
}

.ledger-per-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.ledger-per-page select {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid #d6e0ed;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.placement-summary-table-shell,
.placement-ledger-shell {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #fff;
}

.placement-summary-table,
.placement-ledger-table {
  width: 100%;
  border-collapse: collapse;
}

.placement-summary-table th,
.placement-summary-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6edf5;
  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
}

.placement-summary-table th {
  width: 11%;
  background: #f5f8fc;
  color: var(--command);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.placement-summary-table td {
  color: var(--ink);
  font-weight: 700;
}

.placement-summary-table tr:last-child th,
.placement-summary-table tr:last-child td {
  border-bottom: 0;
}

.placement-ledger-table {
  min-width: 1320px;
  table-layout: fixed;
}

.placement-ledger-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 10px;
  border-bottom: 1px solid #d7e1ed;
  background: #eef3f9;
  color: var(--command);
  font-size: 10px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.placement-ledger-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e7edf5;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.placement-ledger-table tbody tr:hover td {
  background: #f8faff;
}

.placement-ledger-table th:nth-child(1) { width: 4%; }
.placement-ledger-table th:nth-child(2) { width: 8%; }
.placement-ledger-table th:nth-child(3) { width: 14%; }
.placement-ledger-table th:nth-child(4) { width: 11%; }
.placement-ledger-table th:nth-child(5) { width: 11%; }
.placement-ledger-table th:nth-child(6) { width: 10%; }
.placement-ledger-table th:nth-child(7) { width: 8%; }
.placement-ledger-table th:nth-child(8) { width: 8%; }
.placement-ledger-table th:nth-child(9) { width: 10%; }
.placement-ledger-table th:nth-child(10) { width: 7%; }
.placement-ledger-table th:nth-child(11) { width: 12%; }
.placement-ledger-table th:nth-child(12) { width: 15%; }
.placement-ledger-table th:nth-child(13) { width: 7%; }

.attendance-filter-card {
  display: grid;
  gap: 8px !important;
}

.attendance-filter-card .section-head {
  margin-bottom: 6px !important;
  align-items: center !important;
}

.attendance-filter-card .section-head h2 {
  margin: 2px 0 0 !important;
}

.attendance-entry-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.attendance-entry-card form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.attendance-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(180px, 1fr) 160px auto;
  gap: 8px;
  align-items: end;
}

.attendance-filter-grid .field-block label span,
.attendance-filter-grid .field-block span {
  margin-bottom: 3px !important;
}

.attendance-filter-grid .button {
  min-height: 46px;
  padding: 12px 16px;
}

.attendance-filter-actions {
  display: inline-flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.attendance-meta-grid {
  display: grid;
  grid-template-columns: 140px 160px minmax(240px, 1.1fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 24px;
}

.payroll-section-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f8;
}

.payroll-adjustment-entry-card,
.payroll-adjustment-register-card {
  display: grid;
  gap: 12px;
}

.payroll-adjustment-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

.payroll-adjustment-workspace-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.payroll-adjustment-workspace-form > .field-block,
.payroll-adjustment-workspace-form > .payroll-scope-hint {
  grid-column: span 4;
}

.payroll-adjustment-scope-hint,
.payroll-adjustment-component-hint,
.payroll-adjustment-mode-hint {
  min-height: 46px;
  font-weight: 700;
  color: #21415f;
}

.payroll-adjustment-switches {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 22px;
}

.payroll-adjustment-switches .checkbox-line {
  margin: 0;
}

.payroll-adjustment-reason,
.payroll-adjustment-actions {
  grid-column: 1 / -1;
}

.payroll-adjustment-filter-grid {
  grid-template-columns: minmax(170px, 0.95fr) minmax(220px, 1.15fr) minmax(160px, 0.9fr) minmax(170px, 0.9fr) auto;
}

.payroll-adjustment-page-head {
  align-items: flex-start;
}

.payroll-adjustment-register-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(5, minmax(120px, 0.72fr));
  gap: 12px;
  align-items: end;
}

.payroll-adjustment-register-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 160px)) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.payroll-adjustment-register-meta-card,
.payroll-adjustment-register-meta-note {
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.payroll-adjustment-register-meta-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.payroll-adjustment-register-meta-card strong {
  color: var(--command);
  font-size: 18px;
  font-weight: 800;
}

.payroll-adjustment-register-meta-label {
  color: #6d7f95;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.payroll-adjustment-register-meta-note {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: #4a6583;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.payroll-adjustment-register-shell {
  overflow-x: auto;
  overflow-y: visible;
}

.payroll-increment-form {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.payroll-increment-section {
  display: grid;
  gap: 14px;
  padding: 16px 16px 14px;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.payroll-increment-section-full {
  grid-column: 1 / -1;
}

.payroll-increment-section-head {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebf1f8;
}

.payroll-increment-section-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  color: #0d0d73;
}

.payroll-revision-scope,
.payroll-increment-preview-card,
.payroll-increment-scope-panel,
.payroll-scope-hint {
  grid-column: 1 / -1;
}

.payroll-revision-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payroll-revision-scope-option {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.payroll-revision-scope-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payroll-revision-scope-option.active {
  border-color: rgba(13, 13, 115, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(13, 13, 115, 0.08);
}

.payroll-revision-scope-option .scope-title {
  font-size: 13px;
  font-weight: 800;
  color: #0d0d73;
}

.payroll-revision-scope-option small {
  font-size: 11px;
  line-height: 1.45;
  color: #5e708a;
}

.payroll-increment-scope-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(320px, 1.35fr);
  gap: 14px 16px;
  align-items: stretch;
}

.payroll-increment-target-grid,
.payroll-increment-values-grid,
.payroll-increment-arrear-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 16px;
}

.payroll-increment-target-grid > .field-block,
.payroll-increment-arrear-grid > .field-block,
.payroll-increment-values-grid > .field-block {
  grid-column: span 6;
}

.payroll-scope-hint {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dce6f3;
  background: linear-gradient(145deg, #fdfefe 0%, #f5f8fd 100%);
  color: #50647f;
  font-size: 12px;
  line-height: 1.55;
}

.payroll-scope-hint-strong {
  font-weight: 700;
  color: #21415f;
}

.payroll-scope-matches {
  font-weight: 700;
  color: #0d0d73;
  justify-content: space-between;
  font-size: 13px;
}

.payroll-increment-component-field {
  grid-column: span 6;
}

.payroll-increment-component-summary {
  grid-column: span 6;
  min-height: 48px;
  font-weight: 700;
}

.payroll-increment-diff-field {
  grid-column: span 4;
}

.payroll-diff-box {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f7fbff 0%, #eef5fe 100%);
  border: 1px solid #dae6f3;
}

.payroll-arrear-box {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 11px;
  line-height: 1.45;
}

.payroll-adjustment-switches-card {
  padding: 0;
  gap: 12px;
}

.payroll-adjustment-switches-card .checkbox-line {
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #fbfdff;
}

.payroll-increment-preview-table th,
.payroll-increment-preview-table td {
  white-space: nowrap;
}

.payroll-increment-preview-card {
  gap: 14px;
}

.payroll-increment-preview-card .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.payroll-increment-preview-card .section-head > div:first-child {
  min-width: 0;
}

.payroll-preview-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d9e5f2;
  background: linear-gradient(145deg, #fbfdff 0%, #f3f8ff 100%);
  color: #0d0d73;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.payroll-increment-preview-shell {
  flex: 1;
  min-height: 0;
}

.payroll-increment-preview-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.payroll-increment-preview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 10px;
  background: #eef3f9;
  color: var(--command);
  border-bottom: 1px solid #d7e1ed;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.payroll-increment-preview-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #e7edf5;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: middle;
}

.payroll-increment-preview-table tbody tr:hover td {
  background: #f8faff;
}

.payroll-increment-preview-table td strong {
  color: var(--command);
  font-size: 13px;
  font-weight: 800;
}

.payroll-increment-form .payroll-increment-section:nth-of-type(1),
.payroll-increment-form .payroll-increment-section:nth-of-type(4),
.payroll-increment-form .payroll-increment-section:nth-of-type(5) {
  grid-column: 1 / -1;
}

.payroll-increment-form .payroll-increment-section:nth-of-type(2),
.payroll-increment-form .payroll-increment-section:nth-of-type(3) {
  grid-column: span 6;
}

.payroll-adjustment-register-table th,
.payroll-adjustment-register-table td {
  vertical-align: middle;
}

.payroll-adjustment-register-table {
  min-width: 1220px;
  table-layout: fixed;
}

.payroll-adjustment-col-serial {
  width: 56px;
}

.payroll-adjustment-col-code {
  width: 124px;
}

.payroll-adjustment-col-month,
.payroll-adjustment-col-effective {
  width: 112px;
}

.payroll-adjustment-col-employee {
  width: 220px;
}

.payroll-adjustment-col-unit {
  width: 210px;
}

.payroll-adjustment-col-type {
  width: 120px;
}

.payroll-adjustment-col-component {
  width: 170px;
}

.payroll-adjustment-col-amount {
  width: 110px;
}

.payroll-adjustment-col-reason {
  width: 290px;
}

.payroll-adjustment-col-status {
  width: 108px;
}

.payroll-adjustment-col-created {
  width: 118px;
}

.payroll-adjustment-col-action {
  width: 74px;
}

.payroll-adjustment-register-table th {
  font-size: 11px;
  text-align: left;
}

.payroll-adjustment-register-table td {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 12.5px;
  line-height: 1.35;
}

.payroll-adjustment-code-cell strong,
.payroll-adjustment-employee-cell,
.payroll-adjustment-component-cell {
  color: var(--command);
  font-weight: 800;
}

.payroll-adjustment-month-cell small {
  display: block;
  margin-top: 3px;
  color: #8090a6;
  font-size: 11px;
  font-weight: 700;
}

.payroll-adjustment-unit-cell small {
  display: block;
  margin-top: 3px;
  color: #7c8fa6;
  font-size: 11px;
  font-weight: 700;
}

.payroll-adjustment-register-table th:last-child,
.payroll-adjustment-register-table td:last-child {
  width: 70px;
  text-align: center;
}

.payroll-adjustment-reason-cell {
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
  color: #35506f;
}

.payroll-adjustment-created-cell {
  color: #4f6785;
}

.row-action-option-static {
  color: #7b8ba4;
  cursor: default;
}

.billing-controls-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) minmax(158px, 0.9fr) minmax(138px, 0.8fr) minmax(112px, 0.62fr) minmax(150px, 0.9fr);
  gap: 12px;
  align-items: end;
}

.billing-controls-grid .field-block {
  min-width: 0;
}

.billing-controls-grid .field-block span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  margin-bottom: 6px;
  white-space: nowrap;
  color: var(--command);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.billing-controls-grid input,
.billing-controls-grid select {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.attendance-attachment-field {
  min-width: 0;
  position: relative;
}

.attendance-attachment-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-bottom: 6px;
}

.attendance-attachment-label > span:first-child {
  margin-bottom: 0;
}

.attendance-proof-badge {
  min-height: 22px;
  padding: 2px 8px;
  font-size: 10px;
  color: #0d5d46;
  background: #e8f8f0;
  border: 1px solid #bde5d4;
  flex: 0 0 auto;
}

.attendance-upload-reminder {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d7e2f0;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.attendance-upload-reminder::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid #d7e2f0;
  border-left: 1px solid #d7e2f0;
  transform: rotate(45deg);
}

.attendance-upload-reminder[hidden] {
  display: none;
}

.attendance-attachment-field .field-note {
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.attendance-attachment-field input[type="file"] {
  min-width: 0;
}

.attendance-attachment-field:focus-within .attendance-upload-reminder {
  display: block;
}

.attendance-attachment-field[data-reminder-dismissed="true"] .attendance-upload-reminder {
  display: none;
}

.attendance-attachment-label,
.attendance-attachment-notes {
  align-items: center;
}

.attendance-revision-field {
  min-width: 0;
}

.attendance-table-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #fff;
}

.attendance-sheet-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
  border-collapse: collapse;
}

.attendance-sheet-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 10px;
  background: #eef3f9;
  border-bottom: 1px solid #d7e1ed;
  color: var(--command);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.attendance-sheet-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e7edf5;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}

.attendance-sheet-table td strong {
  display: block;
  color: var(--command);
  font-size: 13px;
  font-weight: 800;
}

.attendance-sheet-table td small {
  display: block;
  margin-top: 3px;
  color: var(--command);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.attendance-sheet-table tbody tr:hover td {
  background: #f8faff;
}

.attendance-sheet-table th:nth-child(1) { width: 56px; } /* S.No */
.attendance-sheet-table th:nth-child(2) { width: 220px; } /* Employee */
.attendance-sheet-table th:nth-child(3) { width: 170px; } /* Designation */
.attendance-sheet-table th:nth-child(4) { width: 120px; } /* Category */
.attendance-sheet-table th:nth-child(5) { width: 110px; } /* Payable Days */
.attendance-sheet-table th:nth-child(6) { width: 126px; } /* Non Payable Days */
.attendance-sheet-table th:nth-child(7) { width: 146px; } /* Billing Status */
.attendance-sheet-table th:nth-child(8) { width: 172px; } /* Remarks */

.attendance-sheet-table td:nth-child(1),
.attendance-sheet-table td:nth-child(5),
.attendance-sheet-table td:nth-child(6) {
  text-align: center;
}

.attendance-number-input {
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #c8d5e9;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.attendance-number-input:not(.readonly-muted):focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.attendance-sheet-table td input[type="text"] {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #c8d5e9;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.attendance-sheet-table td select {
  width: 100%;
  min-height: 38px;
  padding: 6px 34px 6px 10px;
  border-radius: 8px;
  border: 1px solid #c8d5e9;
  background-color: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.attendance-sheet-table td select:not(.readonly-muted):focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.attendance-sheet-table td input[type="text"]:not(.readonly-muted):focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.row-action-form {
  margin: 0;
}

.row-action-form .row-action-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.attendance-action-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid #d7e1ed;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
  box-shadow: 0 10px 24px rgba(18, 56, 112, 0.06);
}

.attendance-action-bar-buttons {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  width: auto;
}

.billing-ledger-shell {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #f8fbff;
}

.billing-ledger-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.billing-ledger-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 10px;
  background: #eef3f9;
  border-bottom: 1px solid #d7e1ed;
  color: var(--command);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.billing-ledger-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e7edf5;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: middle;
  background: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
}

.billing-ledger-table tbody tr:hover td {
  background: #f7fbff;
}

.billing-ledger-table td strong,
.billing-ledger-table td small {
  display: block;
}

.billing-ledger-table td strong {
  color: var(--command);
  font-size: 13px;
  font-weight: 800;
}

.billing-ledger-table td small {
  margin-top: 3px;
  color: var(--command);
  font-size: 12px;
  font-weight: 700;
}

.billing-ledger-center {
  text-align: center;
  vertical-align: middle;
}

.billing-ledger-money {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.billing-ledger-table th.billing-col-serial,
.billing-ledger-table th.billing-col-sac,
.billing-ledger-table th.billing-col-days {
  text-align: center;
}

.billing-ledger-table th.billing-col-money-head {
  text-align: right;
}
.payroll-deduction-cell {
  background-color: #fff5f5 !important;
}
.payroll-deduction-header {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
}
.billing-ledger-table tbody tr:hover td.payroll-deduction-cell {
  background-color: #fee2e2 !important;
}
.payroll-credit-header {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
}
.payroll-credit-cell {
  background-color: #fcfdfe !important;
}
.billing-ledger-table tbody tr:hover td.payroll-credit-cell {
  background-color: #f0f7ff !important;
}

.payroll-ledger-table thead tr:nth-child(2) th {
  top: 38px !important;
  z-index: 2;
}

.billing-col-serial { width: 56px; min-width: 56px; max-width: 56px; }
.billing-col-staff { width: 240px; min-width: 240px; }
.billing-col-designation { width: 176px; min-width: 176px; }
.billing-col-category { width: 136px; min-width: 136px; }
.billing-col-sac { width: 92px; min-width: 92px; max-width: 92px; }
.billing-col-days { width: 104px; min-width: 104px; max-width: 104px; }
.billing-col-rate { width: 120px; min-width: 120px; }
.billing-col-component { width: 118px; min-width: 118px; }
.billing-col-taxable { width: 132px; min-width: 132px; }
.billing-col-deduction { width: 130px; min-width: 130px; }
.billing-col-net { width: 120px; min-width: 120px; }
.billing-col-employer { width: 130px; min-width: 130px; }
.billing-col-ctc { width: 120px; min-width: 120px; }

.billing-summary-ledger {
  margin-top: 14px;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  border: 1px solid #d7e1ed;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fbff;
}

.billing-summary-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.billing-summary-table th,
.billing-summary-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e1e9f3;
  font-size: 13px;
  line-height: 1.35;
  vertical-align: middle;
}

.billing-summary-table th {
  width: 64%;
  color: var(--command);
  font-weight: 800;
  text-align: left;
  background: #f8fbff;
  white-space: nowrap;
}

.billing-summary-table td {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
  background: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.billing-summary-table tr:last-child th,
.billing-summary-table tr:last-child td {
  border-bottom: none;
}

.billing-summary-total th,
.billing-summary-total td {
  background: #eef4ff;
  color: var(--command);
  font-size: 14px;
}

.placement-records-table.attendance-register-table th {
  font-size: 11px;
  font-weight: 800;
  padding: 12px 10px;
  letter-spacing: 0.04em;
}

.placement-records-table.attendance-register-table td {
  font-size: 13px;
  padding: 10px 8px;
}

.attendance-register-table {
  min-width: 1420px;
}

.attendance-register-table th:nth-child(1) { width: 4%; }
.attendance-register-table th:nth-child(2) { width: 8%; }
.attendance-register-table th:nth-child(3) { width: 14%; }
.attendance-register-table th:nth-child(4) { width: 12%; }
.attendance-register-table th:nth-child(5) { width: 11%; }
.attendance-register-table th:nth-child(6) { width: 6%; }
.attendance-register-table th:nth-child(7) { width: 8%; }
.attendance-register-table th:nth-child(8) { width: 8%; }
.attendance-register-table th:nth-child(9) { width: 8%; }
.attendance-register-table th:nth-child(10) { width: 8%; }
.attendance-register-table th:nth-child(11) { width: 7%; }
.attendance-register-table th:nth-child(12) { width: 6%; }

@media (max-width: 1180px) {
  .deployment-enterprise-workspace { grid-template-columns: 280px minmax(0, 1fr); }
  .placement-record-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .attendance-filter-grid,
  .attendance-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-adjustment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-adjustment-workspace-form > .field-block,
  .payroll-adjustment-workspace-form > .payroll-scope-hint { grid-column: 1 / -1; }
  .payroll-revision-scope,
  .payroll-increment-scope-panel,
  .payroll-increment-target-grid,
  .payroll-increment-values-grid,
  .payroll-increment-arrear-grid { grid-template-columns: 1fr; }
  .payroll-increment-target-grid > .field-block,
  .payroll-increment-arrear-grid > .field-block,
  .payroll-increment-values-grid > .field-block,
  .payroll-increment-component-field,
  .payroll-increment-component-summary,
  .payroll-increment-diff-field,
  .payroll-increment-form .payroll-increment-section:nth-of-type(2),
  .payroll-increment-form .payroll-increment-section:nth-of-type(3) { grid-column: 1 / -1; }
  .payroll-increment-preview-card .section-head { flex-direction: column; }
  .payroll-preview-stat { width: 100%; justify-content: flex-start; text-align: left; }
  .billing-controls-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .billing-summary-ledger { max-width: 100%; }
}

@media (max-width: 760px) {
  .deployment-enterprise-workspace { height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto; overflow: visible; }
  .deployment-employee-search-panel,
  .deployment-assignment-panel,
  .deployment-history-panel { grid-column: 1; grid-row: auto; max-height: none; }
  .deployment-assignment-panel { overflow: visible; }
  .placement-records-card { height: auto; min-height: 560px; }
  .deployment-form-grid { grid-template-columns: 1fr; }
  .deployment-sac-combined,
  .deployment-remarks-field { grid-column: auto; }
  .placement-record-filters { grid-template-columns: 1fr; }
  .placement-records-table { min-width: 980px; table-layout: auto; }
  .placement-view-fields { grid-template-columns: 1fr; }
  .placement-profile-top-row { grid-template-columns: 1fr; }
  .placement-details-grid { grid-template-columns: 1fr; gap: 12px; }
  .placement-details-grid .detail-block { flex-direction: column; align-items: flex-start; gap: 2px; border-bottom: none; padding: 0; }
  .placement-details-grid .detail-block span { width: auto; }
  .placement-details-grid .detail-block.full-width { grid-column: auto; }
  .placement-summary-table { min-width: 720px; }
  .placement-ledger-table { min-width: 1180px; }
  .attendance-filter-grid,
  .attendance-meta-grid { grid-template-columns: 1fr; }
  .payroll-adjustment-form,
  .payroll-adjustment-filter-grid { grid-template-columns: 1fr; }
  .payroll-adjustment-workspace-form > .field-block,
  .payroll-adjustment-workspace-form > .payroll-scope-hint { grid-column: 1 / -1; }
  .payroll-revision-scope,
  .payroll-increment-scope-panel,
  .payroll-increment-target-grid,
  .payroll-increment-values-grid,
  .payroll-increment-arrear-grid { grid-template-columns: 1fr; }
  .payroll-increment-target-grid > .field-block,
  .payroll-increment-arrear-grid > .field-block,
  .payroll-increment-values-grid > .field-block,
  .payroll-increment-component-field,
  .payroll-increment-component-summary,
  .payroll-increment-diff-field,
  .payroll-increment-form .payroll-increment-section:nth-of-type(2),
  .payroll-increment-form .payroll-increment-section:nth-of-type(3) { grid-column: 1 / -1; }
  .payroll-increment-preview-card .section-head { flex-direction: column; }
  .payroll-preview-stat { width: 100%; justify-content: flex-start; text-align: left; }
  .payroll-adjustment-switches { padding-top: 0; }
  .billing-controls-grid { grid-template-columns: 1fr; gap: 12px; }
  .attendance-sheet-table { min-width: 1120px; }
  .attendance-action-bar {
    align-items: flex-start;
  }
  .attendance-action-bar-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  .billing-summary-table th,
  .billing-summary-table td { padding: 10px 12px; }
  .billing-ledger-table { min-width: 1480px; }
}

@media (max-width: 1100px) {
  .inventory-ledger-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .inventory-ledger-filters,
  .inventory-movement-form { grid-template-columns: 1fr; }
  .inventory-form-wide { grid-column: auto; }
}

.equipment-item-cell strong,
.equipment-stock-table td.col-item strong,
.equipment-issue-table td.col-item strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-empty-value {
  color: rgba(18, 19, 26, 0.42);
  font-weight: 700;
}

.row-action-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.row-action-trigger {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.row-action-trigger svg {
  width: 16px;
  height: 16px;
}

.row-action-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 156px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  background: linear-gradient(145deg, #ffffff, #f6f9fe);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.row-action-dropdown.is-floating {
  position: fixed;
  z-index: 1000;
}

.row-action-dropdown[hidden] {
  display: none;
}


.row-action-form {
  display: block;
  width: 100%;
}

.row-action-form .row-action-option {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.row-action-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.row-action-option:hover,
.row-action-option:focus-visible {
  outline: none;
  background: linear-gradient(145deg, #fffef7, #fff5d2);
  color: var(--command);
}

.row-action-option-danger {
  color: #9a2f2f;
}

.row-action-option-danger:hover,
.row-action-option-danger:focus-visible {
  background: linear-gradient(145deg, #fff4f4, #ffe5e5);
  color: #8b2525;
}

.row-action-option-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.modal-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 2px 0 14px;
}

.field-inline-note {
  grid-column: 1 / -1;
  margin: -4px 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--command);
}

.field-span-2 {
  grid-column: 1 / -1;
}

.file-upload-field {
  gap: 8px;
}

.upload-field-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: #1f814c;
  font-size: 11px;
  font-weight: 800;
}

.upload-field-status[hidden] {
  display: none !important;
}

.upload-field-tick {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #f1fff7, #daf5e4);
  border: 1px solid rgba(31, 129, 76, 0.24);
  color: #1f814c;
  font-size: 11px;
  line-height: 1;
}

.clothing-issue-table {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 112px;
}

.clothing-stock-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 96px;
}

.clothing-stock-workspace,
.clothing-stock-card {
  min-height: 0;
}

.clothing-stock-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.clothing-stock-card > .section-head,
.clothing-stock-card > .clothing-register-search {
  flex: 0 0 auto;
}

.clothing-stock-register {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.clothing-stock-register > .clothing-issue-head {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 #dfe7f2, 0 8px 18px rgba(13, 13, 115, 0.06);
}

.clothing-stock-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 96px minmax(180px, 1.3fr) 124px 84px 84px 84px 84px 84px 120px minmax(210px, 1.15fr) 56px;
  align-items: center;
  min-width: 1204px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e1e8f2;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.clothing-stock-row > * {
  min-width: 0;
}

.clothing-stock-row-clickable,
.clothing-item-row-clickable {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.clothing-stock-row-clickable:hover,
.clothing-item-row-clickable:hover {
  border-color: rgba(13, 13, 115, 0.14);
  background: linear-gradient(145deg, #ffffff, #f4f8ff);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.clothing-stock-row strong,
.stock-count {
  color: var(--command);
  font-weight: 900;
}

.clothing-stock-row strong {
  font-size: 14px;
}

.clothing-stock-row span {
  font-size: 12px;
}

.clothing-stock-row > * {
  text-align: center;
}

.stock-held,
.stock-total,
.stock-issued,
.stock-balance,
.stock-defi,
.stock-surplus,
.stock-date,
.stock-code {
  font-variant-numeric: tabular-nums;
}

.clothing-issue-head .stock-held,
.clothing-issue-head .stock-total,
.clothing-issue-head .stock-issued,
.clothing-issue-head .stock-balance,
.clothing-issue-head .stock-defi,
.clothing-issue-head .stock-surplus,
.clothing-issue-head .stock-date,
.clothing-issue-head .stock-code,
.clothing-issue-head .stock-item,
.clothing-issue-head .stock-size,
.clothing-issue-head .stock-type,
.clothing-issue-head .stock-model,
.clothing-issue-head .stock-serial,
.clothing-issue-head .stock-status,
.clothing-issue-head .stock-remarks {
  justify-self: center;
  text-align: center;
}

.clothing-issue-head .stock-action {
  justify-self: end;
}

.stock-action,
.clothing-stock-row > .table-action-cell {
  justify-self: end;
  text-align: right;
}

.stock-item-primary,
.clothing-stock-row strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-size,
.stock-type,
.stock-model,
.stock-serial,
.stock-status,
.stock-remarks {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-code,
.stock-held,
.stock-total,
.stock-issued,
.stock-balance,
.stock-defi,
.stock-surplus,
.stock-date {
  white-space: nowrap;
}


.clothing-stock-group-row {
  background: linear-gradient(145deg, rgba(13, 13, 115, 0.06), rgba(241, 196, 15, 0.08));
  border-top: 1px solid rgba(13, 13, 115, 0.12);
  border-bottom: 1px solid rgba(13, 13, 115, 0.1);
}

.clothing-stock-child-row {
  padding-left: 18px;
  background: linear-gradient(145deg, #ffffff, #fbfdff);
}

.clothing-stock-group-row .stock-size,
.clothing-stock-group-row .stock-remarks {
  color: var(--ink);
  font-weight: 700;
}

.stock-placeholder {
  visibility: hidden;
}

.stock-muted {
  color: var(--ink-soft);
  font-weight: 700;
}

.clothing-issue-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 100px minmax(170px, 1.05fr) 110px 64px 110px 120px minmax(170px, 1fr) 130px 56px;
  align-items: center;
  min-width: 1090px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #e1e8f2;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.clothing-issue-head {
  color: var(--command);
  background: linear-gradient(145deg, #f8fbff, #eef3fb);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clothing-issue-row strong {
  color: var(--command);
  font-size: 13px;
}

.clothing-issue-row span {
  font-size: 12px;
}

.table-action-cell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.selected-employee-card {
  padding: 14px;
}

.selected-employee-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.selected-employee-photo {
  width: 92px;
  height: 112px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid #dce4f0;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 18px rgba(15, 23, 42, 0.05);
}

.selected-employee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-employee-photo span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.selected-employee-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.selected-employee-copy h2 {
  margin: 0;
}

.selected-employee-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-employee-actions {
  align-self: start;
}

.clothing-remarks-cell,
.stock-remarks-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-coverage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #d8e1ef;
  background: linear-gradient(145deg, #ffffff, #f2f6fc);
  font-size: 10px;
  font-weight: 900;
  color: var(--ink-soft);
}

.stock-coverage-badge.surplus {
  border-color: rgba(31, 129, 76, 0.18);
  background: linear-gradient(145deg, #f3fff8, #e4f7ea);
  color: #1f814c;
}

.stock-coverage-badge.deficit {
  border-color: rgba(154, 47, 47, 0.18);
  background: linear-gradient(145deg, #fff4f4, #ffe8e8);
  color: #9a2f2f;
}

.stock-coverage-badge.balanced {
  border-color: rgba(13, 13, 115, 0.14);
  background: linear-gradient(145deg, #f4f7ff, #e8eefc);
  color: var(--command);
}

.stock-coverage-badge.manual {
  border-color: rgba(162, 118, 24, 0.2);
  background: linear-gradient(145deg, #fffdf1, #fff5ce);
  color: #8f6a14;
}

.stock-balance-negative {
  color: #b73b3b;
  font-weight: 900;
}

.stock-balance-positive {
  color: #1f814c;
  font-weight: 900;
}

.serviceability-page {
  display: grid;
  gap: 14px;
}

.serviceability-raise-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
}

.serviceability-employee-pane {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.serviceability-search-form {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: 12px;
}

.serviceability-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.empty-workspace-card {
  min-height: 220px;
  display: grid;
  place-items: center;
}

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

.serviceability-summary-card {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.serviceability-summary-card span {
  color: var(--command);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.serviceability-summary-card strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.serviceability-summary-card small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.serviceability-raise-card {
  padding: 24px;
}

.serviceability-raise-card .serviceability-condition-form {
  display: block;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

/* Security Agency Form Sections */
.security-agency-form-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-section-block {
  background: #ffffff;
  border: 1px solid #d0dbe9;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(13, 32, 73, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section-block-header {
  background: linear-gradient(145deg, #f8fbff, #f0f5fc);
  padding: 14px 18px;
  border-bottom: 1px solid #cfd8ea;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-badge {
  background: var(--command);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(8, 6, 111, 0.2);
}

.section-block-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--command);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-block-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.section-block-content label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full-width {
  grid-column: span 1;
}

.security-agency-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #cfd8ea;
  padding-top: 18px;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .security-agency-form-sections {
    grid-template-columns: 1fr;
  }
}

/* Autocomplete results list */
.employee-search-container {
  position: relative;
}

.employee-autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border: 1px solid #d0dbe9;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
}

.autocomplete-result-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5fa;
  display: flex;
  flex-direction: column;
}

.autocomplete-result-item:last-child {
  border-bottom: none;
}

.autocomplete-result-item:hover {
  background-color: #f4f8fd;
}

.autocomplete-result-item strong {
  font-size: 13px;
  color: var(--ink);
}

.autocomplete-result-item span {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.autocomplete-no-results {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* Selected employee preview */
.selected-employee-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #f4f8fd;
  border: 1px dashed var(--command);
  border-radius: 12px;
  font-size: 13px;
}

.selected-employee-preview strong {
  color: var(--command);
}

.selected-employee-preview .delete-action {
  margin-left: auto;
}

.serviceability-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  min-height: 48px;
}

.serviceability-table,
.serviceability-mini-table {
  display: grid;
  gap: 7px;
  overflow-x: auto;
}

.serviceability-mini-table[data-live-list="serviceability-summary"] {
  overflow-x: auto;
  overflow-y: visible;
  max-height: none;
  scrollbar-gutter: auto;
}

.serviceability-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) 125px minmax(160px, 1fr) 92px 56px 76px 104px minmax(170px, 1fr);
  align-items: center;
  min-width: 1080px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #e1e8f2;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.serviceability-clean-table {
  overflow-x: visible;
}

.serviceability-clean-row {
  grid-template-columns:
    minmax(198px, 0.92fr)
    minmax(132px, 0.56fr)
    minmax(232px, 1.04fr)
    96px
    112px
    128px
    116px
    minmax(176px, 0.88fr)
    minmax(180px, 0.9fr)
    74px;
  min-width: 1444px;
  padding: 11px 14px;
  border-radius: 10px;
}

.serviceability-mini-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 104px minmax(160px, 0.9fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(150px, 0.8fr);
  align-items: center;
  min-width: 860px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #e1e8f2;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.serviceability-report-row {
  grid-template-columns: 104px minmax(120px, 0.56fr) minmax(160px, 0.8fr) minmax(170px, 0.92fr) minmax(170px, 0.9fr) 116px 112px minmax(150px, 0.82fr) 68px;
  min-width: 1340px;
}

.serviceability-summary-row {
  grid-template-columns: 110px minmax(240px, 1fr) minmax(200px, 0.88fr) 96px 112px 120px;
  min-width: 920px;
}

.serviceability-damage-row {
  grid-template-columns: 104px minmax(120px, 0.54fr) minmax(150px, 0.75fr) minmax(160px, 0.85fr) 104px minmax(150px, 0.78fr) minmax(160px, 0.82fr) 112px minmax(140px, 0.72fr) 68px;
  min-width: 1480px;
}

.serviceability-head {
  color: var(--command);
  background: linear-gradient(145deg, #f8fbff, #eef3fb);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.serviceability-summary-row.serviceability-head {
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: 0 1px 0 #dfe7f2, 0 8px 18px rgba(13, 13, 115, 0.06);
}

.serviceability-clean-row.serviceability-head {
  align-items: center;
}

.serviceability-clean-row.serviceability-head span {
  color: var(--command);
  white-space: nowrap;
}

.serviceability-row strong,
.serviceability-mini-row strong {
  display: grid;
  gap: 2px;
  color: var(--command);
  font-size: 13px;
}

.serviceability-row span,
.serviceability-mini-row span {
  font-size: 12px;
}

.serviceability-clean-row strong,
.serviceability-clean-row span {
  min-width: 0;
  line-height: 1.3;
}

.serviceability-clean-row b {
  display: block;
  overflow: hidden;
  color: var(--command);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serviceability-clean-row small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.serviceability-clean-row .clothing-remarks-cell {
  color: var(--ink-muted);
  line-height: 1.35;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.serviceability-clean-row .serviceability-action-cell {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

.serviceability-clean-row .serviceability-action-cell .status-badge {
  display: inline-flex;
  margin-bottom: 4px;
}

.serviceability-clean-row > :nth-child(4),
.serviceability-clean-row > :nth-child(5),
.serviceability-clean-row > :nth-child(6),
.serviceability-clean-row > :nth-child(7),
.serviceability-clean-row > :nth-child(10) {
  justify-self: center;
  text-align: center;
}

.serviceability-clean-row > :nth-child(8),
.serviceability-clean-row > :nth-child(9) {
  align-self: stretch;
}

.serviceability-clean-row:not(.serviceability-head):hover {
  border-color: #cad8ea;
  background: linear-gradient(145deg, #ffffff, #f5f8fd);
}

.serviceability-mini-row small {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.serviceability-qty-cell {
  text-align: center;
  font-weight: 900;
  color: var(--command);
}

.serviceability-good {
  color: #1f814c;
}

.serviceability-bad {
  color: #a63535;
}

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

.clothing-profile-item {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
}

.clothing-profile-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.clothing-item-view-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
}

.stock-view-fields {
  padding: 2px 0 14px;
}

.stock-view-actions {
  justify-content: space-between;
}

.clothing-item-view-photo {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #dce4f0;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 24px rgba(15, 23, 42, 0.05);
}

.clothing-item-view-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clothing-item-view-photo-empty {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.invoice-viewer-page {
  display: grid;
  gap: 14px;
}

.invoice-viewer-shell {
  display: grid;
  gap: 14px;
}

.invoice-viewer-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invoice-viewer-canvas {
  min-height: 72vh;
  display: grid;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid #dce4f0;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 34px rgba(15, 23, 42, 0.05);
}

.invoice-viewer-frame,
.invoice-viewer-image {
  width: 100%;
  min-height: 68vh;
  border: 0;
  border-radius: 14px;
  background: #f3f6fb;
}

.invoice-viewer-image {
  object-fit: contain;
}

.inline-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.25fr 0.9fr 1fr auto;
  align-items: end;
}

.settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.05fr 0.95fr;
}

.settings-stack {
  display: grid;
  gap: 14px;
}

.status-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 9, 25, 0.42);
  backdrop-filter: blur(4px);
}

.status-modal {
  width: min(100%, 440px);
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 26px 60px rgba(6, 11, 31, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.status-modal-wide {
  width: min(100%, 780px);
}

.status-modal-assignment {
  width: min(100%, 700px);
}

.status-modal > form {
  display: grid;
  gap: 16px;
}

.assignment-employee-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #dfe7f2;
  background: linear-gradient(145deg, #ffffff, #f7fafe);
}

.assignment-employee-strip strong {
  color: var(--command);
  font-size: 14px;
}

.assignment-employee-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dde6f2;
  background: linear-gradient(145deg, #ffffff, #eef3fb);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.status-modal-success,
.status-modal-warning,
.status-modal-error {
  border-top: 4px solid var(--signal);
}

.status-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status-modal-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-modal-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.status-modal-head h2 {
  margin: 5px 0 0;
  font-size: 20px;
}

.status-modal-close {
  display: none;
}

.status-modal-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.status-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.status-modal-actions .button,
.status-modal-actions button {
  color: #fff !important;
}

.status-modal-actions .button.primary,
.status-modal-actions button.primary {
  color: #fff !important;
}

.status-modal-actions .button.subtle,
.status-modal-actions button.subtle {
  color: var(--command) !important;
}

.login-page {
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(241, 196, 15, 0.2), transparent 26rem),
    radial-gradient(circle at bottom right, rgba(241, 196, 15, 0.12), transparent 22rem),
    linear-gradient(135deg, #fbf7e8 0%, #fffdf5 34%, #f4f6fb 100%);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.login-hero {
  position: relative;
  overflow: hidden;
  min-height: 42rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  color: #fff;
  background: #050529;
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(241, 196, 15, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(10, 10, 99, 0.94), rgba(7, 7, 53, 0.98) 52%, rgba(18, 19, 26, 0.96));
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 38px 0 auto;
  height: 108px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(241, 196, 15, 0.1), rgba(255, 255, 255, 0.04));
}

.login-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
}

.login-brand {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.login-logo-frame {
  position: relative;
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  border: 4px solid var(--signal);
  background: #fff;
  padding: 12px;
  box-shadow:
    0 18px 55px rgba(241, 196, 15, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand-copy {
  display: grid;
  gap: 6px;
  align-content: start;
}

.login-eyebrow,
.login-panel-eyebrow {
  color: var(--signal);
}

.login-brand-name {
  color: var(--signal);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}

.login-title {
  margin-top: 2px;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.08;
}

.login-brand-note,
.login-panel-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.login-brand-note {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.72);
}

.login-role-panel {
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    var(--dark-surface);
  border: 1px solid rgba(241, 196, 15, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 18px 48px rgba(7, 7, 53, 0.3);
}

.login-role-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.login-role-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.2vw, 32px);
}

.login-role-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.shield-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  color: #12131a;
  background: var(--signal);
}

.role-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(241, 196, 15, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.role-card strong {
  color: #fff4bf;
}

.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.login-panel {
  width: 100%;
  max-width: 430px;
  padding: 26px;
  border-radius: 24px;
}

.login-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.login-panel-head h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.06;
  color: var(--command);
}

.login-panel-note {
  color: var(--ink-soft);
}

.login-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.login-linkish {
  color: #9a7600;
  font-weight: 700;
}

.login-submit {
  width: 100%;
}

.login-chips {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.login-chips span {
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #7a6000;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdf2, #fff6d7);
  border: 1px solid rgba(241, 196, 15, 0.32);
  box-shadow: 0 10px 22px rgba(241, 196, 15, 0.12);
}

@media (max-width: 1180px) {
  .dashboard-command-grid,
  .dashboard-main-grid,
  .dashboard-signal-grid,
  .profile-grid,
  .page-hero,
  .panel-grid,
  .metric-strip,
  .toolbar-filters,
  .profiles-filters,
  .client-filters,
  .deployment-filters,
  .client-metrics,
  .deployment-metrics,
  .info-strip,
  .user-admin-grid,
  .user-admin-console,
  .admin-console-shell,
  .admin-console-browser,
  .settings-grid,
  .card-grid,
  .card-grid.two-up,
  .form-grid,
  .family-contact-row,
  .audit-grid,
  .media-grid,
  .profile-view-grid,
  .profile-view-fields,
  .admin-module-grid,
  .clothing-master-grid,
  .clothing-console-tabs,
  .serviceability-summary-grid,
  .serviceability-register-grid,
  .client-workspace,
  .deployment-workspace,
  .profile-hero-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 981px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 284px;
    height: 100vh;
    z-index: 20;
  }

  .workspace {
    margin-left: 284px;
    width: calc(100vw - 284px);
    min-height: 100vh;
  }
}

@media (max-width: 980px) {
  .dashboard-command-grid,
  .dashboard-main-grid,
  .dashboard-signal-grid,
  .app-shell,
  .login-shell,
  .split-layout,
  .profile-grid,
  .page-hero,
  .panel-grid,
  .metric-strip,
  .user-admin-grid,
  .user-admin-console,
  .admin-console-shell,
  .admin-console-browser,
  .settings-grid,
  .card-grid,
  .card-grid.two-up,
  .form-grid,
  .family-contact-row,
  .audit-grid,
  .media-grid,
  .profile-row-card,
  .profile-view-grid,
  .profile-view-fields,
  .clothing-layout,
  .clothing-master-grid,
  .clothing-console-tabs,
  .serviceability-summary-grid,
  .serviceability-register-grid,
  .serviceability-raise-layout,
  .client-workspace,
  .deployment-workspace,
  .profile-hero-layout {
    grid-template-columns: 1fr;
  }

  .toolbar-filters,
  .profiles-filters,
  .client-filters,
  .deployment-filters,
  .client-metrics,
  .deployment-metrics,
  .info-strip,
  .modal-form-grid,
  .inline-form-grid,
  .compliance-group-head,
  .profile-compliance-grid,
  .serviceability-form,
  .serviceability-condition-form,
  .admin-module-grid {
    grid-template-columns: 1fr;
  }

  .serviceability-condition-form .serviceability-field-wide {
    grid-column: span 1;
  }

  .compliance-group-head,
  .profile-compliance-title {
    align-items: stretch;
    flex-direction: column;
  }

  .compliance-applicability {
    width: 100%;
  }

  .profile-row-singleline {
    grid-template-columns: 1fr;
  }

  .profile-hero-media {
    justify-content: flex-start;
  }

  .clothing-employee-pane {
    position: static;
  }

  .serviceability-employee-pane {
    position: static;
    max-height: none;
  }

  .serviceability-clean-table {
    overflow-x: visible;
  }

  .serviceability-clean-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }

  .serviceability-clean-row.serviceability-head {
    display: none;
  }

  .serviceability-clean-row span,
  .serviceability-clean-row strong {
    padding-bottom: 6px;
    border-bottom: 1px solid #edf2f7;
  }

  .serviceability-clean-row span:last-child,
  .serviceability-clean-row strong:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .selected-employee-hero {
    grid-template-columns: 1fr;
  }

  .selected-employee-photo {
    width: 84px;
    height: 102px;
  }

  .selected-employee-actions {
    justify-content: flex-start;
  }

  .passport-card {
    position: static;
  }

  .sidebar {
    position: static;
    top: auto;
    align-self: stretch;
    height: auto;
    overflow-y: visible;
    padding-bottom: 12px;
  }

  .workspace {
    width: auto;
    margin-left: 0;
    height: auto;
    overflow-y: visible;
  }

  .client-field-wide {
    grid-column: span 1;
  }

  .client-rate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .client-register-head {
    display: none;
  }

  .client-register-row {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .client-wage-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .client-wage-head {
    display: none;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-stats {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .login-hero,
  .login-form-wrap {
    min-height: auto;
    padding: 28px 20px;
  }

  .admin-tree-pane {
    position: static;
  }

  .role-list {
    grid-template-columns: 1fr;
  }

  .login-title {
    font-size: 32px;
  }

  .login-role-head h2 {
    font-size: 24px;
  }

  .login-brand-name {
    font-size: 38px;
  }

  .userbox {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .login-shell {
    min-height: auto;
  }

  .login-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-logo-frame {
    width: 112px;
    height: 112px;
  }

  .login-brand-name {
    font-size: 32px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-panel,
  .login-role-panel {
    padding: 20px;
  }

  .login-chips {
    grid-template-columns: 1fr;
  }
}

/* Deployment Ledger Single-Row Header */
.placement-ledger-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2f8;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.ledger-title-inline {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ledger-title-inline h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--command);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ledger-title-inline .ledger-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: normal;
}

.ledger-controls-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.ledger-controls-inline .eyebrow-subtle {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.print-ledger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 12px !important;
  min-height: 32px !important;
  cursor: pointer;
  background: linear-gradient(145deg, #ffffff, #f7faff) !important;
  border: 1px solid #d6e0ed !important;
  color: var(--command) !important;
  border-radius: 8px;
}

.print-ledger-btn:hover {
  background: var(--surface-hover) !important;
  color: var(--command-deep) !important;
  border-color: #b8c9e0 !important;
}

.print-btn-icon {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .placement-ledger-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ledger-controls-inline {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* Print Styles */
.print-only {
  display: none !important;
}

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide UI elements */
  .sidebar,
  .topbar,
  .placement-profile-sidebar,
  .directory-pagination,
  .ledger-controls-inline,
  .status-modal-backdrop,
  .confirm-modal-backdrop,
  .row-action-menu,
  .no-print,
  .placement-summary-card {
    display: none !important;
  }

  /* Reset layout containers */
  .app-shell,
  .workspace,
  .workspace-body,
  .placement-profile-container,
  .placement-profile-top-row,
  .placement-ledger-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Print-only Header styles */
  .print-header {
    display: block !important;
    margin-bottom: 20px;
  }

  .print-header-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

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

  .print-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 1px solid #000;
    padding: 2px;
  }

  .print-co-name {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 0.05em;
    color: #000;
  }

  .print-co-sub {
    font-size: 11px;
    font-weight: 700;
    color: #444;
  }

  .print-security-tag {
    border: 1px solid #000;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.1em;
    background: #f0f0f0;
  }

  .print-divider {
    border: 0;
    border-top: 1px solid #000;
    margin: 10px 0 15px;
  }

  .print-title {
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    margin: 0 0 15px;
    letter-spacing: 0.08em;
  }

  /* Metadata Panel */
  .print-metadata-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px;
    margin-bottom: 20px;
    border: 1px solid #000;
    padding: 10px;
    background: #fcfcfc;
  }

  .print-meta-col {
    font-size: 10px;
    line-height: 1.5;
  }

  .print-meta-col strong {
    font-weight: 700;
  }

  /* Table styling overrides for print */
  .placement-ledger-shell {
    border: none !important;
    background: none !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .placement-ledger-table {
    min-width: 100% !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-size: 9px !important;
  }

  .placement-ledger-table th,
  .placement-ledger-table td {
    border: 1px solid #000 !important;
    padding: 4px 6px !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #000 !important;
    vertical-align: middle !important;
    overflow-wrap: anywhere !important;
  }

  .placement-ledger-table th {
    background: #e6e6e6 !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
  }

  .placement-ledger-table tbody tr:hover td {
    background: none !important;
  }

  /* Status badges on print */
  .placement-ledger-table .status-badge {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    color: #000 !important;
    text-transform: uppercase;
  }

}

/* System Settings Tabbed Layout */
.settings-container {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 10px;
}

.settings-nav-card {
  padding: 12px !important;
}

.settings-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.settings-nav-item:hover {
  background: rgba(13, 13, 115, 0.04);
  color: var(--command);
}

.settings-nav-item.active {
  background: linear-gradient(145deg, #ffffff, #eef3fb);
  border-color: #d6e0ed;
  color: var(--command-deep);
  box-shadow: 
    inset 0 1px 0 #ffffff,
    0 4px 12px rgba(18, 19, 26, 0.04);
}

.settings-nav-item .nav-item-icon {
  font-size: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(13, 13, 115, 0.04);
  flex-shrink: 0;
}

.settings-nav-item.active .nav-item-icon {
  background: var(--command);
  color: #fff;
}

.settings-nav-item .nav-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.settings-nav-item .nav-item-text strong {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.2;
}

.settings-nav-item.active .nav-item-text strong {
  color: var(--command-deep);
}

.settings-nav-item .nav-item-text span {
  font-size: 10px;
  color: var(--ink-soft);
  line-height: 1.2;
}

.settings-content-main {
  display: flex;
  flex-direction: column;
}

.settings-tab-pane {
  display: none;
}

.settings-tab-pane.active {
  display: block;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.settings-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.settings-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding: 4px 0;
}

.spacer-top {
  margin-top: 20px !important;
}

.settings-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: var(--surface-shadow);
}

/* Previews from Spec sheets */
.homeland-corporate-preview-border {
  border: 1.5px solid #000;
  padding: 8px;
  background: #fff;
  margin-top: 8px;
  font-family: Arial, sans-serif;
  color: #000;
}

.homeland-corporate-preview-table {
  width: 100%;
  border-collapse: collapse;
}

.preview-logo-cell {
  width: 72px;
  vertical-align: middle;
  padding-right: 12px;
}

.preview-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1.5px solid #000;
  padding: 2px;
}

.preview-text-cell {
  text-align: center;
  vertical-align: middle;
}

.preview-co-title {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.preview-co-details {
  font-size: 10px;
  line-height: 1.4;
}

.homeland-bank-preview-container {
  margin-top: 8px;
  background: #fff;
}

.homeland-bank-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  color: #000;
}

.homeland-bank-preview-table td {
  border: 1px solid #000;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  text-align: left;
}

.homeland-bank-preview-table td.bank-preview-header {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  background: #f2f2f2;
}

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

/* Enterprise User Access and Roles Console */
.enterprise-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #cfd8ea;
  padding-bottom: 4px;
}

.enterprise-tab-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 12px 12px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -5px;
}

.enterprise-tab-item:hover {
  color: var(--command);
  background: rgba(13, 13, 115, 0.04);
}

.enterprise-tab-item.active {
  color: var(--command);
  background: #ffffff;
  border-color: #cfd8ea;
  box-shadow: 0 -4px 10px rgba(13, 13, 115, 0.03);
  position: relative;
  z-index: 2;
}

/* User details sub tabs */
.user-tab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: #f0f4fa;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid #e1e8f2;
}

.user-tab-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  background: transparent;
}

.user-tab-item:hover {
  color: var(--command);
}

.user-tab-item.active {
  color: var(--command);
  background: #ffffff;
  border-color: #cfd8ea;
  box-shadow: 0 2px 6px rgba(10, 10, 99, 0.05);
}

/* 2 column directory layout */
.directory-workspace-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* 2 column create user layout */
.create-user-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1024px) {
  .directory-workspace-grid,
  .create-user-grid {
    grid-template-columns: 1fr;
  }
}

/* Onboarding Webcam Capture & Cropping Styles */
#camera_feed_container,
#crop_container {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.passport-guide-overlay {
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.4) 70%);
}

#crop_selector {
  transition: box-shadow 0.1s ease;
}

#crop_size_slider {
  accent-color: var(--command);
  height: 6px;
  border-radius: 3px;
  background: #cbd5e1;
  outline: none;
  width: 200px;
  cursor: pointer;
}

.crop-control-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

/* Enterprise Login Redesign & Logo Animations */
.login-logo-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo-glow {
  position: absolute;
  inset: -18px;
  border-radius: 54px;
  background: conic-gradient(from 0deg, transparent 20%, rgba(241, 196, 15, 0.5) 50%, transparent 80%);
  filter: blur(20px);
  animation: rotateGlow 6s linear infinite, pulseGlow 3s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

.login-logo-frame {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  border: 3px solid rgba(241, 196, 15, 0.85) !important;
  outline: 1px solid rgba(241, 196, 15, 0.35) !important;
  outline-offset: -6px;
  border-radius: 38px !important;
  padding: 6px !important;
  box-shadow: 
    0 16px 45px rgba(0, 0, 0, 0.3),
    0 4px 18px rgba(241, 196, 15, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.login-logo-frame:hover {
  transform: scale(1.06) rotate(1deg) !important;
  border-color: rgba(241, 196, 15, 1.0) !important;
}

.login-logo-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: scale(1.23) !important;
  transition: transform 0.4s ease !important;
}

.login-logo-frame:hover img {
  transform: scale(1.35) !important;
}

.login-logo-shine {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.5) 60%,
    transparent
  );
  transform: skewX(-25deg);
  animation: logoShimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* Staggered entrance animations */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

/* Glassmorphism updates for Role console */
.login-role-panel {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(135deg, rgba(25, 26, 41, 0.72) 0%, rgba(13, 13, 26, 0.85) 100%) !important;
  border: 1px solid rgba(241, 196, 15, 0.28) !important;
  box-shadow: 
    0 24px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.login-role-panel:hover {
  border-color: rgba(241, 196, 15, 0.45) !important;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(241, 196, 15, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.role-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.role-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)) !important;
  border-color: rgba(241, 196, 15, 0.35) !important;
}

/* Premium Form panel & focus styling */
.login-panel {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 #ffffff !important;
  border: 1px solid rgba(241, 196, 15, 0.08) !important;
}

.login-panel label input[type="text"],
.login-panel label input[type="password"] {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.login-panel label input[type="text"]:focus,
.login-panel label input[type="password"]:focus {
  border-color: #f1c40f !important;
  box-shadow: 
    0 0 0 4px rgba(241, 196, 15, 0.15),
    0 8px 16px rgba(241, 196, 15, 0.06) !important;
  background: #ffffff !important;
}

.login-submit {
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 10px 20px rgba(241, 196, 15, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.login-submit:active {
  transform: translateY(0);
}

/* Animations declarations */
@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes logoShimmer {
  0% {
    left: -150%;
  }
  45%, 100% {
    left: 150%;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Status Badges for Payroll States */
.status-badge.draft {
  color: #4b5563 !important;
  background: #f3f4f6 !important;
  border-color: #e5e7eb !important;
}
.status-badge.checked {
  color: #1e3a8a !important;
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
}
.status-badge.approved {
  color: #0369a1 !important;
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
}
.status-badge.locked {
  color: #0d5d46 !important;
  background: #e8f8f0 !important;
  border-color: #bde5d4 !important;
}
.status-badge.paid {
  color: #065f46 !important;
  background: #d1fae5 !important;
  border-color: #a7f3d0 !important;
}

/* Custom styles for Enterprise Payroll Register */
.payroll-register-table {
  table-layout: auto !important;
  min-width: 1000px !important;
}
.payroll-register-table th:nth-child(1) { width: 60px !important; text-align: center !important; } /* S.No */
.payroll-register-table th:nth-child(2) { width: 140px !important; text-align: center !important; } /* Month */
.payroll-register-table th:nth-child(3) { width: auto !important; } /* Unit */
.payroll-register-table th:nth-child(4) { width: 200px !important; } /* Sub Unit */
.payroll-register-table th:nth-child(5) { width: 120px !important; text-align: center !important; } /* Status */
.payroll-register-table th:nth-child(6) { width: 140px !important; text-align: right !important; } /* Net Payable */
.payroll-register-table th:nth-child(7) { width: 140px !important; } /* Created By */
.payroll-register-table th:nth-child(8) { width: 80px !important; text-align: center !important; } /* Action */

.payroll-register-table th.billing-col-money-head {
  text-align: right !important;
}

/* Monthly Ledger Management */
.ledger-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ledger-command-card {
  margin-bottom: 16px;
}

.ledger-filter-grid {
  align-items: end;
}

.ledger-filter-grid-extended {
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr) minmax(260px, 1.15fr);
}

.ledger-filter-grid-register {
  grid-template-columns: minmax(240px, 1.25fr) minmax(140px, 0.8fr) minmax(150px, 0.86fr) minmax(200px, 1fr) minmax(200px, 1fr) 112px;
  gap: 10px 12px;
}

.ledger-register-selector-grid {
  grid-template-columns: minmax(170px, 0.95fr) minmax(150px, 0.72fr) minmax(250px, 1.15fr) minmax(250px, 1.15fr) auto;
  gap: 12px;
}

.ledger-entry-shell {
  display: grid;
  grid-template-columns: minmax(0, 1080px);
  justify-content: center;
}

.ledger-entry-card {
  border-radius: 18px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.98) 100%);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.07);
}

.ledger-entry-form {
  display: grid;
  gap: 14px;
}

.ledger-entry-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(150px, 0.74fr) minmax(260px, 1.15fr) minmax(260px, 1.15fr);
  gap: 14px;
  align-items: end;
}

.ledger-entry-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ledger-entry-grid label span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a3b8f;
}

.ledger-entry-grid input,
.ledger-entry-grid select {
  min-height: 42px;
}

.ledger-entry-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.ledger-selector-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.ledger-summary-card,
.ledger-statement-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px 16px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.ledger-summary-card span,
.ledger-statement-card span,
.ledger-strip-stats span {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a3b8f;
}

.ledger-summary-card strong,
.ledger-statement-card strong,
.ledger-strip-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
  color: #0f172a;
}

.ledger-summary-card small,
.ledger-statement-card small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
}

.ledger-strip-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px 0 14px;
}

.ledger-strip-stats-compact {
  padding-top: 4px;
}

.ledger-strip-stats-inline {
  margin-bottom: 12px;
}

.ledger-strip-stats-register {
  padding-top: 6px;
  margin-bottom: 12px;
}

.ledger-strip-stats > div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}

.ledger-register-table {
  min-width: 1120px;
}

.ledger-register-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 14px;
}

.ledger-register-toolbar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ledger-register-toolbar-meta span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a3b8f;
}

.ledger-register-toolbar-meta strong {
  font-size: 15px;
  color: #0f172a;
}

.ledger-register-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ledger-register-toolbar-actions .button[disabled] {
  opacity: 0.48;
  pointer-events: none;
}

.ledger-initiation-table,
.ledger-register-sheet {
  width: 100%;
  min-width: 1480px;
  table-layout: fixed;
}

.ledger-initiation-table thead th,
.ledger-register-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px 6px;
  vertical-align: middle;
  background: linear-gradient(145deg, #f8fbff, #eef3fb);
  color: #173d8d;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  box-shadow: 0 1px 0 #dfe7f2;
}

.ledger-initiation-table td,
.ledger-register-sheet td {
  padding: 8px 6px;
  vertical-align: middle;
  font-size: 11.5px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #334155;
}

.ledger-initiation-table tbody tr:nth-child(even) td,
.ledger-register-sheet tbody tr:nth-child(even) td {
  background: rgba(248, 251, 255, 0.72);
}

.ledger-initiation-table tbody tr:hover td,
.ledger-register-sheet tbody tr:hover td {
  background: #fffdf4;
}

.ledger-initiation-table th:nth-child(1),
.ledger-initiation-table td:nth-child(1) {
  width: 44px;
  text-align: center;
}

.ledger-initiation-table th:nth-child(2),
.ledger-initiation-table td:nth-child(2) {
  width: 56px;
  text-align: center;
}

.ledger-initiation-table th:nth-child(3),
.ledger-initiation-table td:nth-child(3) {
  width: 150px;
}

.ledger-initiation-table th:nth-child(4),
.ledger-initiation-table td:nth-child(4) {
  width: 96px;
  text-align: center;
}

.ledger-initiation-table th:nth-child(5),
.ledger-initiation-table td:nth-child(5) {
  width: 96px;
  text-align: center;
}

.ledger-initiation-table th:nth-child(6),
.ledger-initiation-table td:nth-child(6),
.ledger-initiation-table th:nth-child(7),
.ledger-initiation-table td:nth-child(7),
.ledger-initiation-table th:nth-child(8),
.ledger-initiation-table td:nth-child(8),
.ledger-initiation-table th:nth-child(11),
.ledger-initiation-table td:nth-child(11),
.ledger-initiation-table th:nth-child(13),
.ledger-initiation-table td:nth-child(13),
.ledger-initiation-table th:nth-child(14),
.ledger-initiation-table td:nth-child(14),
.ledger-initiation-table th:nth-child(15),
.ledger-initiation-table td:nth-child(15) {
  width: 118px;
}

.ledger-initiation-table th:nth-child(9),
.ledger-initiation-table td:nth-child(9),
.ledger-initiation-table th:nth-child(10),
.ledger-initiation-table td:nth-child(10),
.ledger-initiation-table th:nth-child(12),
.ledger-initiation-table td:nth-child(12) {
  width: 98px;
  text-align: center;
}

.ledger-initiation-table td.billing-ledger-money {
  text-align: right;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  color: #0f172a;
  font-size: 11.75px;
  font-weight: 800;
}

.ledger-initiation-table td.placement-center {
  white-space: nowrap;
  text-align: center;
}

.ledger-register-sheet {
  min-width: 1360px;
}

.ledger-register-sheet th:nth-child(1),
.ledger-register-sheet td:nth-child(1) {
  width: 56px;
  text-align: center;
}

.ledger-register-sheet th:nth-child(2),
.ledger-register-sheet td:nth-child(2) {
  width: 164px;
}

.ledger-register-sheet th:nth-child(3),
.ledger-register-sheet td:nth-child(3) {
  width: 188px;
}

.ledger-register-sheet th:nth-child(4),
.ledger-register-sheet td:nth-child(4) {
  width: 98px;
  text-align: center;
}

.ledger-register-sheet th:nth-child(5),
.ledger-register-sheet td:nth-child(5),
.ledger-register-sheet th:nth-child(6),
.ledger-register-sheet td:nth-child(6),
.ledger-register-sheet th:nth-child(7),
.ledger-register-sheet td:nth-child(7),
.ledger-register-sheet th:nth-child(8),
.ledger-register-sheet td:nth-child(8),
.ledger-register-sheet th:nth-child(9),
.ledger-register-sheet td:nth-child(9),
.ledger-register-sheet th:nth-child(10),
.ledger-register-sheet td:nth-child(10) {
  width: 108px;
}

.ledger-register-sheet th:nth-child(11),
.ledger-register-sheet td:nth-child(11) {
  width: 92px;
  text-align: center;
}

.ledger-register-sheet th:nth-child(12),
.ledger-register-sheet td:nth-child(12) {
  width: 76px;
  text-align: center;
}

.ledger-register-sheet td.billing-ledger-money {
  text-align: right;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  color: #0f172a;
  font-size: 11.75px;
  font-weight: 800;
}

.ledger-register-sheet td strong {
  color: var(--command);
  font-size: 13px;
}

.ledger-register-sheet td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ledger-register-sheet .status-badge {
  justify-content: center;
  min-width: 78px;
}

.ledger-selectable-row {
  cursor: pointer;
}

.ledger-selectable-row.is-selected td {
  background: #fff9e8 !important;
  box-shadow: inset 0 0 0 1px rgba(200, 151, 38, 0.24);
}

.ledger-selectable-row:focus-visible {
  outline: 2px solid rgba(26, 59, 143, 0.24);
  outline-offset: -2px;
}

.ledger-register-sheet-detailed {
  min-width: 1480px;
}

.ledger-register-sheet-detailed th:nth-child(1),
.ledger-register-sheet-detailed td:nth-child(1) {
  width: 56px;
  text-align: center;
}

.ledger-register-sheet-detailed th:nth-child(2),
.ledger-register-sheet-detailed td:nth-child(2),
.ledger-register-sheet-detailed th:nth-child(5),
.ledger-register-sheet-detailed td:nth-child(5),
.ledger-register-sheet-detailed th:nth-child(6),
.ledger-register-sheet-detailed td:nth-child(6),
.ledger-register-sheet-detailed th:nth-child(7),
.ledger-register-sheet-detailed td:nth-child(7),
.ledger-register-sheet-detailed th:nth-child(8),
.ledger-register-sheet-detailed td:nth-child(8),
.ledger-register-sheet-detailed th:nth-child(10),
.ledger-register-sheet-detailed td:nth-child(10),
.ledger-register-sheet-detailed th:nth-child(12),
.ledger-register-sheet-detailed td:nth-child(12),
.ledger-register-sheet-detailed th:nth-child(13),
.ledger-register-sheet-detailed td:nth-child(13),
.ledger-register-sheet-detailed th:nth-child(14),
.ledger-register-sheet-detailed td:nth-child(14) {
  width: 118px;
}

.ledger-register-sheet-detailed th:nth-child(3),
.ledger-register-sheet-detailed td:nth-child(3),
.ledger-register-sheet-detailed th:nth-child(4),
.ledger-register-sheet-detailed td:nth-child(4),
.ledger-register-sheet-detailed th:nth-child(9),
.ledger-register-sheet-detailed td:nth-child(9),
.ledger-register-sheet-detailed th:nth-child(11),
.ledger-register-sheet-detailed td:nth-child(11) {
  width: 98px;
  text-align: center;
}

@media (max-width: 1200px) {
  .ledger-register-selector-grid,
  .ledger-register-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .ledger-entry-grid {
    grid-template-columns: 1fr;
  }

  .ledger-selector-actions,
  .ledger-register-toolbar-actions,
  .ledger-entry-actions {
    justify-content: flex-start;
  }
}

.ledger-sheet-head-clean {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ledger-sheet-copy,
.ledger-sheet-meta {
  display: grid;
  gap: 4px;
}

.ledger-sheet-title {
  color: var(--command);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ledger-sheet-line {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.ledger-sheet-account {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.ledger-sheet-period {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.ledger-command-card,
.placement-records-card {
  border-radius: 18px;
}

.placement-records-card > form {
  display: grid;
  gap: 0;
}

.placement-records-card .section-head {
  margin-bottom: 10px;
}

.ledger-strip-stats-inline > div {
  min-height: 62px;
  display: grid;
  align-content: center;
}

.ledger-strip-stats-inline span {
  letter-spacing: 0.04em;
}

.ledger-strip-stats-inline strong {
  font-size: 1rem;
}

.ledger-register-extended {
  min-width: 1480px;
}

.ledger-client-table {
  min-width: 1320px;
}

.ledger-register-table td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.ledger-positive {
  color: #15803d;
}

.ledger-negative {
  color: #b91c1c;
}

.ledger-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}

.ledger-form-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ledger-form-span-2 {
  grid-column: span 2;
}

.ledger-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.ledger-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ledger-quad-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ledger-statement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ledger-statement-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ledger-inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ledger-lane-grid {
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .ledger-form-grid,
  .ledger-statement-grid,
  .ledger-dual-grid {
    grid-template-columns: 1fr;
  }

  .ledger-form-span-2 {
    grid-column: span 1;
  }

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

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

  .ledger-sheet-account,
  .ledger-sheet-period {
    text-align: left;
  }
}

/* Training Management */
.training-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(7, 7, 53, 0.98), rgba(13, 13, 115, 0.95)),
    radial-gradient(circle at top right, rgba(241, 196, 15, 0.18), transparent 35%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(7, 7, 53, 0.28);
}

.training-hero-copy h2 {
  margin: 4px 0 8px;
  font-size: 30px;
  line-height: 1.1;
}

.training-hero-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.training-hero .eyebrow {
  color: var(--signal);
}

.training-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.training-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.training-metric-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 15px 16px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.training-metric-card span,
.training-report-row span,
.training-checklist span {
  color: #1a3b8f;
  font-weight: 700;
}

.training-metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
  color: #0f172a;
}

.training-metric-card small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  line-height: 1.45;
}

.training-dashboard-grid,
.training-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.training-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}

.training-span-2 {
  grid-column: span 2;
}

.training-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 10px;
}

.training-inline-form,
.training-inline-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.training-lock-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.training-lock-row {
  display: flex;
  align-items: end;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.training-lock-copy {
  display: grid;
  gap: 3px;
  min-width: 180px;
  flex: 1 1 220px;
}

.training-lock-copy .eyebrow {
  margin-bottom: 0;
}

.training-lock-copy small {
  color: #64748b;
  line-height: 1.35;
}

.training-lock-input {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 280px;
}

.training-lock-input span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #172554;
}

.training-lock-input input {
  min-width: 0;
}

.training-unlock-row .training-lock-copy {
  flex: 0 0 120px;
  min-width: 120px;
}

.training-inline-form select,
.training-inline-form input {
  min-width: 120px;
}

.training-ledger-table {
  min-width: 1180px;
}

.training-ledger-table td small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.training-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.training-checklist span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef3ff;
}

.training-checklist span.ok {
  color: #0f7a4f;
  background: #e8f8f0;
}

.training-checklist span.bad {
  color: #b42318;
  background: #fef3f2;
}

.training-report-stack {
  display: grid;
  gap: 10px;
}

.training-report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.training-report-row strong {
  color: #0f172a;
}

.status-badge.open {
  color: #1e40af !important;
  background: #dbeafe !important;
  border-color: #bfdbfe !important;
}

.status-badge.under-training,
.status-badge.uin-generated,
.status-badge.assessment-eligible {
  color: #7c2d12 !important;
  background: #ffedd5 !important;
  border-color: #fed7aa !important;
}

.status-badge.batch-locked,
.status-badge.locked {
  color: #0d5d46 !important;
  background: #e8f8f0 !important;
  border-color: #bde5d4 !important;
}

.status-badge.certificate-issued,
.status-badge.deployment-eligible,
.status-badge.converted-to-employee {
  color: #0f7a4f !important;
  background: #e8f8f0 !important;
  border-color: #bde5d4 !important;
}

.checkbox-block {
  display: flex;
  align-items: center;
}

@media (max-width: 1180px) {
  .training-dashboard-grid,
  .training-dual-grid,
  .training-form-grid {
    grid-template-columns: 1fr;
  }

  .training-span-2 {
    grid-column: span 1;
  }

  .training-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
