:root {
  --ink: #1a1712;
  --ink-2: #4a4438;
  --faint: #a39d8a;
  --bg: #f7f4ed;
  --surface-2: #fbf9f3;
  --surface-3: #f5f1e7;
  --warning: #9d5f00;
  --warning-bg: #fff5e3;
  --warning-line: #f2ddb6;
  --danger: #b3223d;
  --danger-bg: #fdecef;
  --danger-line: #f6cbd3;
  --info: #1d5fae;
  --info-bg: #eaf2fd;
  --info-line: #cbdefb;

  --violet: #6c2bd9;
  --violet-bg: #f2ecff;
  --violet-line: #ddccfa;
  --indigo: #2f3f9e;
  --indigo-bg: #eaedfc;
  --indigo-line: #ccd3f5;
  --teal: #0a7f6e;
  --teal-bg: #e2f7f2;
  --teal-line: #bce7dc;
  --cyan: #0d7290;
  --cyan-bg: #e1f5fb;
  --cyan-line: #bce6ef;
  --magenta: #a3216b;
  --magenta-bg: #fdebf4;
  --magenta-line: #f6cbe1;
  --olive: #5c7a17;
  --olive-bg: #f2f7df;
  --olive-line: #dbe8ac;
  --coral: #c2410c;
  --coral-bg: #fff1e6;
  --coral-line: #fad3b5;
  --slate: #41536b;
  --slate-bg: #eaeef3;
  --slate-line: #d1dae4;
  --gold: #a97a24;
  --gold-bg: #faf2e0;
  --gold-line: #eeddac;
  --emerald: #0f7a44;
  --emerald-bg: #e6f6ec;
  --emerald-line: #c1e8cf;
  --ruby: #9e1b3d;
  --ruby-bg: #fbeaee;
  --ruby-line: #f2c7d2;
  --sapphire: #1b4f9c;
  --sapphire-bg: #e9f0fc;
  --sapphire-line: #c6d9f6;

  --sh-1: 0 1px 2px rgba(20, 18, 48, 0.05);
  --sh-2: 0 8px 26px rgba(20, 18, 48, 0.07);
  --sh-3: 0 28px 68px rgba(20, 18, 48, 0.18);
  --shadow: var(--sh-2);
  --shadow-sm: var(--sh-1);
  --shadow-lg: var(--sh-3);
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --sidebar: 254px;
  --top: 70px;
  font-family: var(--ui);
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  margin: 0;
  min-height: 100%;
}
body {
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font: inherit;
  color: inherit;
}
button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  cursor: pointer;
}
h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h4:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
a:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--brand);
}
.hidden:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: none !important;
}
.icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  flex: none;
}
.muted:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--muted);
}
.num:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.metric-value:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.summary-tile
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.statline b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.kv b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.money-positive:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
),
.money-danger:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-variant-numeric: tabular-nums;
}
:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *))::selection {
  background: var(--soft);
  color: var(--brand-ink);
}
:focus-visible:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.brand:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #6b4ff0, #4730c6);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(71, 48, 198, 0.28);
  flex: none;
}

.eyebrow:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  content: "";
  width: 14px;
  border-radius: 2px;
  background: var(--brand);
  flex: none;
}
.btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.btn:hover:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--surface-3);
}
.btn:active:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  transform: translateY(1px);
}
.btn.primary:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(169, 122, 36, 0.22);
}
.btn.primary:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.btn.success:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.btn.success:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  filter: brightness(0.94);
}
.btn.danger:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn.danger:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  filter: brightness(0.94);
}
.btn.warning:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--warning);
  border-color: var(--warning);
  color: #fff;
}
.btn.soft:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--soft);
  border-color: var(--soft-line);
  color: var(--brand-ink);
}
.btn.soft:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: #e6e1ff;
}
.btn.ghost:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: transparent;
  border-color: transparent;
}
.btn:disabled:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.sm:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 34px;
  padding: 0 11px;
  font-size: 12px;
}
.link:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  padding: 2px 0;
  text-decoration: none;
  border-bottom: var(--sr-stroke-thin) solid transparent;
}
.link:hover:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-bottom-color: currentColor;
}
.icon-btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  position: relative;
  flex: none;
}
.icon-btn:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--surface-3);
  color: var(--ink);
}
.notification-btn
  .notification-badge:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #f0475c;
  color: #fff;
  box-shadow: 0 0 0 2px var(--surface);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}
.notification-btn.has-unread
  .notification-badge:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: flex;
}
.field:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 0 0 16px;
  min-width: 0;
}
.field label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 0 7px;
}
.field
  label
  .req:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--danger);
  margin-left: 2px;
}
.field input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 100%;
  border: var(--sr-stroke-thin) solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 0 13px;
  height: 44px;
  outline: none;
  font-size: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field
  textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: auto;
  padding: 12px 13px;
  min-height: 96px;
  line-height: 1.5;
  resize: vertical;
}
.field select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d6f86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.field
  input[type="file"]:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  padding: 9px 12px;
  height: auto;
  background: var(--surface-3);
  border-style: dashed;
  cursor: pointer;
}
.field
  input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  )::placeholder,
.search:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  )::placeholder {
  color: var(--faint);
}
.field
  input:focus:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  select:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.field
  textarea:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.search:focus:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(169, 122, 36, 0.12);
}
.field
  input:disabled:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.field
  select:disabled:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
}
.field.is-error
  input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field.is-error
  select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-color: var(--danger);
  background: #fffafb;
}
.field.is-error
  input:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  box-shadow: 0 0 0 4px rgba(194, 53, 74, 0.12);
}
.field-hint:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.form-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  gap: 0 18px;
}
.full:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  grid-column: 1/-1;
}
.feature-icon:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border: var(--sr-stroke-medium) solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 700;
}
.avatar:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--display);
  flex: none;
}
.date-chip:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: var(--sr-stroke-thin) solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 600;
}
.date-chip
  .icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--muted);
}
.section:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-top: 30px;
}
.section-head:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 0;
  letter-spacing: -0.02em;
}
.section-head
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 4px 0 0;
  color: var(--muted);
}
.section-head
  .right:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  gap: 9px;
  align-items: center;
}
.card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--surface);
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-1);
}
.card-title:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.card-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.card-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 0;
}
.card-head p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 4px 0 0;
  color: var(--muted);
}
.grid-2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
  align-items: start;
}
.grid-3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.metric-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric-grid.cols-5:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  --accent: var(--brand);
  --accent-bg: var(--soft);
  --accent-line: var(--soft-line);
  width: 100%;
  padding: 18px 18px 17px;
  border-radius: var(--r);
  background: linear-gradient(168deg, var(--accent-bg) 0%, var(--surface) 60%);
  overflow: hidden;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.metric-card:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
button.metric-card:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
button.metric-card:hover
  .metric-arrow:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: var(--accent);
  transform: translateX(2px);
}
.metric-icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--accent);
}
.metric-arrow:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  color: var(--faint);
  transition:
    color 0.15s,
    transform 0.15s;
}
.metric-label:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 18px;
}
.metric-value:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  margin-top: 6px;
  word-break: break-word;
}
.metric-sub:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
}
.metric-card.success:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--success);
  --accent-bg: var(--success-bg);
  --accent-line: var(--success-line);
}
.metric-card.warning:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--warning);
  --accent-bg: var(--warning-bg);
  --accent-line: var(--warning-line);
}
.metric-card.danger:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--danger);
  --accent-bg: var(--danger-bg);
  --accent-line: var(--danger-line);
}
.metric-card.info:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--info);
  --accent-bg: var(--info-bg);
  --accent-line: var(--info-line);
}
.metric-card.violet:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent-bg: var(--violet-bg);
  --accent-line: var(--violet-line);
}
.metric-card.indigo:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--indigo);
  --accent-bg: var(--indigo-bg);
  --accent-line: var(--indigo-line);
}
.metric-card.teal:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--teal);
  --accent-bg: var(--teal-bg);
  --accent-line: var(--teal-line);
}
.metric-card.cyan:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--cyan);
  --accent-bg: var(--cyan-bg);
  --accent-line: var(--cyan-line);
}
.metric-card.magenta:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--magenta);
  --accent-bg: var(--magenta-bg);
  --accent-line: var(--magenta-line);
}
.metric-card.olive:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--olive);
  --accent-bg: var(--olive-bg);
  --accent-line: var(--olive-line);
}
.metric-card.coral:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--coral);
  --accent-bg: var(--coral-bg);
  --accent-line: var(--coral-line);
}
.metric-card.slate:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--slate);
  --accent-bg: var(--slate-bg);
  --accent-line: var(--slate-line);
}
.metric-card.gold:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--gold);
  --accent-bg: var(--gold-bg);
  --accent-line: var(--gold-line);
}
.metric-card.emerald:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--emerald);
  --accent-bg: var(--emerald-bg);
  --accent-line: var(--emerald-line);
}
.metric-card.ruby:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--ruby);
  --accent-bg: var(--ruby-bg);
  --accent-line: var(--ruby-line);
}
.metric-card.sapphire:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--sapphire);
  --accent-bg: var(--sapphire-bg);
  --accent-line: var(--sapphire-line);
}
.metric-card.wide:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  grid-column: span 2;
}
.metric-card.wide
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  font-size: 36px;
}
.metric-card.wide
  .metric-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.metric-card.lg
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  font-size: 31px;
}
.metric-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  grid-auto-flow: dense;
}
@media (max-width: 720px) {
  .metric-card.wide:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-column: span 1;
  }
  .metric-card.wide
    .metric-value:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    font-size: 27px;
  }
}
@media (max-width: 720px) {
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    min-height: 128px;
    padding: 16px 16px 15px;
    border-radius: 14px;
  }
  .metric-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .metric-label:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 14px;
    letter-spacing: 0.005em;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 23px;
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-top: 5px;
    white-space: normal;
  }
  .metric-sub:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 12px;
    line-height: 1.35;
    margin-top: 6px;
  }
  .metric-top:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    min-height: 42px;
  }
}
@media (max-width: 520px) {
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    min-height: 122px;
    padding: 15px 15px 14px;
  }
  .metric-label:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 13px;
    line-height: 1.3;
    margin-top: 12px;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 22px;
    line-height: 1.2;
  }
  .metric-sub:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 12px;
    line-height: 1.35;
    margin-top: 5px;
  }
}
.summary-row:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 20px;
}
.summary-tile:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  padding: 14px 15px;
  border: var(--sr-stroke-thin) solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
  transition: background 0.15s;
}
.summary-tile:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: rgba(255, 255, 255, 0.14);
}
.summary-tile
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--sr-ink);
  font-size: 12px;
}
.summary-tile
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  margin-top: 6px;
  letter-spacing: -0.03em;
}
.progress:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 8px;
  background: var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius: 999px;
}
.activity:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
}
.activity-row:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: var(--sr-stroke-thin) solid var(--line-2);
}
.activity-row:last-child:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-bottom: 0;
}
.activity-row:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--surface-3);
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
}
.activity-icon:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.activity-row
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13.5px;
  display: block;
}
.activity-row
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.activity-row
  strong:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-left: auto;
  font-family: var(--display);
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.activity-row.is-danger
  .activity-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--danger-bg);
  color: var(--danger);
}
.activity-row.is-danger
  strong:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--danger);
}
.activity-row.is-warning
  .activity-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--warning-bg);
  color: var(--warning);
}
.activity-row.is-success
  .activity-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--success-bg);
  color: var(--success);
}
.metric-grid.cols-3:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.metric-grid.three:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .metric-grid.cols-5:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .metric-grid.cols-5:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
button.activity-row:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
}
@media (max-width: 720px) {
  .metric-grid.cols-3:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ),
  .metric-grid.three:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-template-columns: 1fr;
  }
}
.toolbar:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar-left:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.toolbar-right:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 270px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%239395a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  padding-left: 40px;
}
.select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 44px;
  font-size: 13.5px;
  width: auto;
  min-width: 150px;
}
.table-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 0;
}
.table-wrap:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
.table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 13px 16px;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
  letter-spacing: 0;
}
.table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 14px 16px;
  font-size: 13.5px;
  vertical-align: middle;
}
.table
  tr:last-child
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-bottom: 0;
}

.table
  tfoot
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--ui-table-head);
  border-top: var(--sr-stroke-thin) solid var(--line);
  color: var(--ink);
  font-size: 13px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.entity:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: center;
  gap: 11px;
}
.entity
  .mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--display);
  flex: none;
}
.entity b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13.5px;
  display: block;
}
.entity
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.row-actions:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  flex-wrap: wrap;
}
.row-actions
  .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 32px;
  padding: 0 10px;
}
.empty:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 56px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.empty b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.tabs:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  gap: 2px;
  border-bottom: var(--sr-stroke-thin) solid var(--line);
  margin: 0 0 20px;
  overflow-x: auto;
}
.tabs button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  border-bottom: var(--sr-stroke-medium) solid transparent;
  white-space: nowrap;
}
.tabs
  button:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: var(--ink);
}
.tabs
  button.active:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: var(--brand);
  border-color: var(--brand);
}
.pill:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
  border: var(--sr-stroke-thin) solid transparent;
}
.pill:before:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill.green:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-line);
}
.pill.amber:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-line);
}
.pill.red:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-line);
}
.pill.blue:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-line);
}
.pill.gray:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--surface-3);
  color: var(--muted);
  border-color: var(--line);
}
.detail-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: start;
}
.detail-hero:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.detail-hero
  h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 6px 0 6px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.detail-hero
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.kv-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.kv:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 13px 0;
  border-bottom: var(--sr-stroke-thin) solid var(--line-2);
  min-width: 0;
}
.kv small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.kv b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  word-break: break-word;
}
.statline:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: var(--sr-stroke-thin) solid var(--line-2);
  font-size: 13.5px;
}
.statline:last-child:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-bottom: 0;
}
.statline
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--muted);
}
.statline b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-weight: 700;
  text-align: right;
}
.money-positive:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  color: var(--success);
  font-weight: 700;
}
.money-danger:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  color: var(--danger);
  font-weight: 700;
}
.schedule:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: var(--r);
  overflow: auto;
  margin-top: 14px;
}
.schedule
  table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 640px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 20px 24px;
  border-bottom: var(--sr-stroke-thin) solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.modal-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 0;
  font-size: 17px;
}
.modal-head
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.close:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 20px;
  line-height: 1;
  flex: none;
  display: grid;
  place-items: center;
}
.close:hover:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--surface-3);
  color: var(--ink);
}
.modal-body:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 24px;
}
.modal-foot:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 16px 24px;
  border-top: var(--sr-stroke-thin) solid var(--line);
  display: flex;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}
.notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100001;
  min-width: 290px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 10px;
  color: #fff;
  background: #262046;
  box-shadow: 0 12px 32px rgba(20, 58, 115, 0.2);
  font-size: 13.5px;
  font-weight: 600;
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.notice.ok {
  background: linear-gradient(135deg, #1e5fe7 0%, #7a32e8 52%, #d72fb4 100%) !important;
  color: #fff !important;
}
.notice.err {
  background: #a82b41;
}
.quick:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
  padding: 15px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.3;
  min-height: 84px;
  justify-content: center;
}
.quick .icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--brand);
}
.quick i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
.quick:active:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--surface-3);
}

.print-brand:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: var(--sr-stroke-medium) solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.print-brand
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 18px;
  font-family: var(--display);
}
.print-brand
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.print-summary:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 16px 0;
}
.print-summary
  > div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: var(--r);
  padding: 13px 14px;
  background: var(--surface);
}
.print-summary
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.print-summary
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}
.soa-document:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  background: #fff;
  color: var(--ink);
}
.soa-summary:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin: 16px 0;
}
.soa-summary
  .kv:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 12px 14px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: var(--r);
}
.soa-summary
  .kv
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 15px;
}
.soa-table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 720px;
}
.soa-table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.soa-table
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12.5px;
}
.summary-tile:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font: inherit;
  cursor: pointer;
}
.app-loading:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.loading-card:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 36px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
}
.loading-card
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1280px) {
  :root {
    --sidebar: 228px;
  }
  .metric-grid:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 24px;
  }
  .grid-2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1.3fr 0.7fr;
  }
}
@media (max-width: 1024px) {
  .metric-grid:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .detail-grid:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr;
  }
  .grid-3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 14.5px;
  }
  .metric-grid:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 14px;
  }
  .metric-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 20px;
  }
  .metric-label:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 11.5px;
    margin-top: 14px;
  }
  .metric-sub:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 11px;
  }
  .grid-3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr;
  }
  .summary-row:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr;
  }
  .form-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr;
  }
  .full:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-column: auto;
  }
  .kv-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr;
  }
  .card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    padding: 16px;
    border-radius: var(--r);
  }
  .toolbar-left:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
  .toolbar-right:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: 100%;
  }
  .toolbar-left
    > *:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .toolbar-right
    > *:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    flex: 1 1 auto;
  }
  .search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    min-width: 0;
    width: 100%;
  }
  .select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 100%;
  }

  .modal-body:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 18px;
  }
  .modal-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .modal-foot:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 16px 18px;
  }
  .modal-foot
    .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    flex: 1 1 auto;
  }
  .notice {
    right: 12px;
    left: 12px;
    bottom: 12px;
    min-width: 0;
    max-width: none;
  }

  .field
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 16px;
    height: 46px;
  }

  .table-wrap:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    position: relative;
    overflow-x: auto;
    background:
      linear-gradient(90deg, var(--surface) 30%, rgba(255, 255, 255, 0)),
      linear-gradient(90deg, rgba(255, 255, 255, 0), var(--surface) 70%) 100% 0,
      radial-gradient(
        farthest-side at 0 50%,
        rgba(20, 18, 48, 0.11),
        transparent
      ),
      radial-gradient(
          farthest-side at 100% 50%,
          rgba(20, 18, 48, 0.11),
          transparent
        )
        100% 0;
    background-repeat: no-repeat;
    background-size:
      36px 100%,
      36px 100%,
      14px 100%,
      14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .table
    th:first-child:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ),
  .table
    td:first-child:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    position: sticky;
    left: 0;
    background: var(--surface);
    z-index: 1;
  }
  .table
    th:first-child:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: var(--surface-3);
  }
  .table
    tbody
    tr:hover
    td:first-child:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: var(--ui-row-hover);
  }
  .row-actions
    .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    flex: 0 0 auto;
  }
  .print-summary:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
  .soa-summary:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr 1fr;
  }
  .detail-hero
    h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 21px;
  }
}
@media (max-width: 380px) {
  .metric-grid:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .field
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    height: 52px;
  }
}
@media (max-width: 720px) and (max-height: 620px) {
  .field:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    margin-bottom: 12px;
  }
}
@media print {
  .no-print:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    display: none !important;
  }
  .card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    box-shadow: none;
    border-color: var(--ui-border-strong);
  }
  .print-area:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    display: block !important;
  }
  body {
    background: #fff;
  }

  .modal-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .modal-foot.no-print:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    display: none !important;
  }
  .modal-body:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 0;
  }
  .soa-document:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 10mm;
  }
  .soa-summary:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: repeat(4, 1fr);
  }
  .soa-table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    min-width: 0;
  }
  .soa-table
    thead:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table
    thead:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    display: table-header-group;
  }
  .table tr:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    break-inside: avoid;
  }
  .table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 9pt;
    padding: 6pt;
    border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
    border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
  }
  .print-summary:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: repeat(3, 1fr);
  }
}
:root {
  --bg: #f4f8ff;
  --ink: #102454;
  --ink-2: #33466d;
  --faint: #98a7c2;
  --brand-dark: #0d52c8;
  --brand-ink: #0f3f93;
  --brand2: #7a4dff;
  --soft: #eaf3ff;
  --soft-line: #cfe1ff;
  --rail: #092754;
  --rail-2: #10386f;
  --rail-3: #174a8d;
  --rail-text: #d7e6ff;
  --rail-faint: #8eacd2;
  --violet: #6d45e9;
  --green: #20b77a;
  --orange: #ff9d27;
  --red: #ef4b55;
  --success: #17a66d;
  --success-bg: #e9fbf3;
  --success-line: #c8f0de;
  --warning-bg: #fff5e5;
  --danger: #df3f4b;
  --info: #2469db;
  --sh-1: 0 1px 2px rgba(25, 62, 117, 0.04);
  --sh-2: 0 8px 26px rgba(38, 86, 145, 0.08);
  --sh-3: 0 24px 55px rgba(22, 59, 112, 0.18);
  --r-lg: 12px;
  --ui:
    "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
}
html,
body,
#app {
  background: var(--bg);
  color: var(--ink);
}
h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h4:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--ink);
}
.brand:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 10px;
}
.mark:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #28c59b 0%, #2374e8 55%, #6c48ea 100%);
  font-size: 19px;
  box-shadow: 0 7px 18px rgba(33, 108, 224, 0.25);
}
.eyebrow:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10px;
}
.eyebrow:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: #1f74eb;
}
.date-chip:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 36px;
  border-color: var(--ui-border);
  font-size: 11.5px;
  padding: 0 11px;
}
.btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12px;
}
.btn:hover:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #f4f8fd;
}
.btn.primary:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: linear-gradient(90deg, #1769e8, #6a4df0);
  box-shadow: 0 6px 15px rgba(43, 91, 214, 0.2);
}
.btn.success:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #18b477;
  border-color: #18b477;
}
.btn.danger:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #ef4b55;
  border-color: #ef4b55;
}
.icon-btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 36px;
  height: 36px;
}
.section:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-top: 21px;
}
.section-head:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-bottom: 10px;
}
.section-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 15px;
}
.section-head
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11.5px;
}
.card-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 12px;
}
.card-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 14px;
}
.card-head p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11px;
}
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: linear-gradient(145deg, var(--accent-bg) 0%, #fff 70%);
}
.metric-card:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: none;
}
.metric-arrow:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: none;
}
.metric-value:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  color: var(--accent);
}
.metric-sub:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10px;
  margin-top: 4px;
}
.metric-card.blue:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--blue);
  --accent-bg: #e8f2ff;
  --accent-line: #cfe1ff;
}
.metric-card.violet:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--violet);
  --accent-bg: #f0ebff;
  --accent-line: #ddd1ff;
}
.metric-card.green:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--green);
  --accent-bg: #e7fbf3;
  --accent-line: #c7f0df;
}
.metric-card.orange:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--orange);
  --accent-bg: #fff3df;
  --accent-line: #ffe0b0;
}
.metric-card.red:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--red);
  --accent-bg: #fff0f2;
  --accent-line: #ffd1d6;
}
.top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 12px;
}
.status-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 246px;
}
.chart-area:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  fill: url(#none);
  fill-opacity: 0.12;
  stroke: none;
  fill: #8db9ff;
}
.donut-wrap:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  margin-top: 7px;
}
.donut:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.donut:after:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  content: "";
  position: absolute;
  inset: 22px;
  background: #fff;
  border-radius: 50%;
}
.donut > div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  position: relative;
  z-index: 1;
  text-align: center;
}
.donut b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-family: var(--display);
}
.donut span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--sr-ink);
}
.legend:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
}
.legend div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: grid;
  grid-template-columns: 11px 1fr auto;
  gap: 7px;
  align-items: center;
  font-size: 10.5px;
}
.legend i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-radius: 50%;
}
.legend span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--sr-ink);
}
.legend b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--sr-ink);
}
.three-tables:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}
.table.compact:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  min-width: 640px;
}
.table.compact
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10px;
}
.table.compact
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11px;
}
.table.compact
  .entity:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 7px;
}
.table.compact
  .entity
  .mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 9px;
}
.table.compact
  .entity
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11px;
}
.table.compact
  .entity
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 9px;
}
.table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10.5px;
  padding: 11px 12px;
}
.table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11.5px;
  padding: 11px 12px;
}

.pill:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 4px 8px;
  font-size: 9.5px;
}
.pill:before:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 5px;
  height: 5px;
}
.green-text:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: #13a66d !important;
}
.red-text:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: #df3f4b !important;
}
.search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 38px;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.toolbar:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 11px;
}
.toolbar-left:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.toolbar-right:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  gap: 7px;
}
.metric-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 11px;
}
.form-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 0 15px;
}
.field:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 13px;
}
.field input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 40px;
  border-radius: 7px;
  font-size: 12.5px;
}
.tabs:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 14px;
}
.tabs button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12px;
  padding: 10px 12px;
}

.modal-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 17px 18px;
}
.modal-body:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 18px;
}


.empty:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 40px 18px;
}
@media (max-width: 1180px) {
  .top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1.4fr 1fr;
  }
  .bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-column: 1/-1;
  }
  .three-tables:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr;
  }
  .table-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    overflow: hidden;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 284px;
  }
}
@media (max-width: 720px) {
  .top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr;
  }
  .bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-column: auto;
  }
  .status-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
  .bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    min-height: auto;
  }
  .three-tables:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    min-height: 105px;
    padding: 11px;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 18px;
  }
  .donut-wrap:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 120px 1fr;
  }
  .donut:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 120px;
    height: 120px;
  }
}
:root {
  --surface: #ffffff;
  --surface-3: #eef5fb;
  --ink: #10264d;
  --ink-2: #314a72;
  --faint: #9aaac2;
  --brand: #1769e8;
  --brand-dark: #0d57c9;
  --brand-ink: #104b9d;
  --brand2: #2fb8e8;
  --soft-line: #cfe4fb;
  --rail: #0a3563;
  --rail-2: #0e4278;
  --rail-3: #15528f;
  --rail-text: #d9e9fb;
  --rail-faint: #8fb1d6;
  --blue: #1d73ee;
  --blue-2: #2b8ff0;
  --cyan: #22b8e8;
  --green: #21b97a;
  --orange: #ff9f2f;
  --red: #ef4f55;
  --violet: #4778e8;
  --indigo: #4778e8;
  --violet-bg: #edf5ff;
  --indigo-bg: #edf5ff;
  --violet-line: #cfe2fb;
  --indigo-line: #cfe2fb;
  --success: #18ad73;
  --success-bg: #e9faf3;
  --success-line: #c8efdf;
  --warning: #e48709;
  --warning-bg: #fff4e3;
  --danger: #e84450;
  --info: #2473e8;
  --info-line: #cfe2fb;
  --gold: #2b8ff0;
  --gold-bg: #edf5ff;
  --gold-line: #cfe2fb;
  --emerald: #18ad73;
  --emerald-bg: #e9faf3;
  --emerald-line: #c8efdf;
  --ruby: #e84450;
  --ruby-bg: #fff0f2;
  --ruby-line: #ffd0d5;
  --sapphire: #2473e8;
  --sapphire-bg: #edf5ff;
  --sapphire-line: #cfe2fb;
  --sh-1: 0 1px 2px rgba(25, 66, 118, 0.04);
  --sh-2: 0 7px 22px rgba(35, 88, 145, 0.075);
  --sh-3: 0 22px 52px rgba(20, 60, 112, 0.16);
  --r-lg: 11px;
  --r: 9px;
  --r-sm: 7px;
}
.mark:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: linear-gradient(145deg, #22c7a2 0%, #1d83ed 52%, #1769e8 100%);
  box-shadow: 0 7px 17px rgba(25, 112, 219, 0.24);
}
.eyebrow:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: #1d7bea;
}

.btn.primary:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: linear-gradient(90deg, #1769e8, #268ce9);
  box-shadow: 0 6px 15px rgba(29, 115, 238, 0.2);
}
.card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(33, 78, 133, 0.045);
  padding: 16px;
}
.section-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.card-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--sr-ink);
}
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 114px;
  padding: 13px 14px 12px;
  background: linear-gradient(145deg, var(--accent-bg) 0%, #fff 72%);
  box-shadow: 0 4px 12px rgba(36, 80, 137, 0.045);
}
.metric-card.violet:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.metric-card.indigo:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.metric-card.blue2:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: var(--blue-2);
  --accent-bg: #eaf4ff;
  --accent-line: #cfe3fb;
}
.metric-card.blue:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: #1d73ee;
  --accent-bg: #e8f3ff;
  --accent-line: #cde2fb;
}
.metric-card.green:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.metric-card.success:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: #20b77a;
  --accent-bg: #e8faf3;
  --accent-line: #c8efdf;
}
.metric-card.orange:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.metric-card.warning:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: #ff9f2f;
  --accent-bg: #fff3df;
  --accent-line: #ffe0b0;
}
.metric-card.red:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.metric-card.danger:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: #ef4f55;
  --accent-bg: #fff0f2;
  --accent-line: #ffd0d6;
}
.metric-card.info:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.metric-card.sapphire:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: #2473e8;
  --accent-bg: #edf5ff;
  --accent-line: #cfe2fb;
}
.metric-card.cyan:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.metric-card.teal:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --accent: #20a8c9;
  --accent-bg: #e8f8fc;
  --accent-line: #c8eaf3;
}
.metric-value:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-size: 21px;
}
.top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  grid-template-columns: 1.65fr 0.95fr 1.05fr;
  gap: 12px;
}
.table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-bottom-color: var(--ui-border);
}
.table.compact
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--ui-table-head);
}
.field input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-color: var(--ui-border);
  background: #fff;
  color: var(--sr-ink);
}
.field
  input:focus:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  select:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.field
  textarea:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.search:focus:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  box-shadow: 0 0 0 4px rgba(37, 128, 233, 0.1);
}
@media (max-width: 1180px) {
  .top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1.4fr 1fr;
  }
}
@media (max-width: 720px) {
  .top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr;
  }
}
:root {
  --ref-navy: #0b315d;
  --ref-navy-2: #0d3f74;
  --ref-blue: #176fe8;
  --ref-blue-2: #2b8ff0;
  --ref-cyan: #23b9df;
  --ref-green: #22b878;
  --ref-orange: #ff9f2f;
  --ref-red: #ef5057;
  --ref-purple: #7350e8;
  --ref-ink: #102657;
  --ref-text: #233c69;
  --ref-muted: #7486a4;
  --ref-line: #dbe7f4;
  --ref-bg: #f4f8fd;
  --ref-card: #fff;
  --sidebar: 214px;
  --top: 64px;
}
html,
body,
#app {
  background: var(--ref-bg);
  color: var(--ref-ink);
}
body {
  font-family:
    "Manrope",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
}
button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-family: inherit;
}
h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h4:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-family: "Sora", "Manrope", sans-serif;
  color: var(--ref-ink);
}
.brand:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 9px;
}
.mark:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: linear-gradient(145deg, #20c69d 0%, #1980eb 55%, #1f69d7 100%);
  box-shadow: 0 7px 18px rgba(26, 124, 226, 0.24);
  font-size: 18px;
}

.eyebrow:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.eyebrow:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 13px;
  height: 2px;
  background: #1d77ea;
}
.date-chip:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 34px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: #fff;
  color: var(--sr-ink);
  font-size: 11px;
  padding: 0 10px;
}
.btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 36px;
  border-radius: 7px;
  padding: 0 12px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: #fff;
  color: var(--sr-ink);
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: none;
}
.btn:hover:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #f5f9fd;
  border-color: var(--ui-border);
}
.btn.primary:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #176fe8;
  border-color: #176fe8;
  color: #fff;
  box-shadow: 0 6px 14px rgba(23, 111, 232, 0.18);
}
.btn.primary:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: #0e5ed0;
  border-color: #0e5ed0;
}
.btn.soft:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #edf6ff;
}
.icon-btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  border-color: var(--ui-border);
}
.link:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10.5px;
  color: #176fe8;
}
.card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 14px;
  border-radius: 9px;
  box-shadow: 0 2px 11px rgba(31, 77, 136, 0.045);
}
.card-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 10px;
}
.card-head h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.section-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13.5px;
  color: var(--sr-ink);
}
.card-head p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.section-head
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10.5px;
  color: var(--sr-ink);
}
.section:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-top: 14px;
}
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  position: relative;
  min-height: 116px;
  padding: 14px 15px 12px;
  border-radius: 10px;
  border: var(--sr-stroke-thin) solid var(--accent-line);
  background: linear-gradient(145deg, var(--accent-bg) 0%, #fff 74%);
  box-shadow: 0 4px 12px rgba(36, 80, 137, 0.055);
  text-align: left;
}
.metric-card:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(36, 80, 137, 0.08);
}
.metric-top:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 11px color-mix(in srgb, var(--accent) 25%, transparent);
}
.metric-arrow:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 68%, white);
  color: #fff;
  opacity: 0.95;
}
.metric-label:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-top: 9px;
  font-size: 11px;
  font-weight: 700;
}
.metric-value:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}
.metric-sub:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-top: 5px;
  font-size: 9.5px;
}
.top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  grid-template-columns: 1.62fr 0.92fr 1.03fr;
  margin-bottom: 11px;
}
.status-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 212px;
}
.donut-wrap:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  grid-template-columns: 112px 1fr;
  gap: 12px;
  margin-top: 3px;
}
.donut:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 112px;
  height: 112px;
}
.donut:after:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  inset: 21px;
}
.donut b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 23px;
  color: var(--sr-ink);
}
.donut span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 9px;
}
.legend:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 8px;
}
.legend div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10px;
}
.legend i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 9px;
  height: 9px;
}
.table-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 0;
  overflow: hidden;
}
.table-wrap:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 100%;
  overflow: auto;
}
.table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 34px;
  font-size: 9.5px;
  padding: 8px 10px;
}
.table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 38px;
  font-size: 10.5px;
  padding: 8px 10px;
}
.table.compact:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  min-width: 0;
}
.table.compact
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 9px;
  padding: 7px 8px;
}
.table.compact
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10px;
  padding: 7px 8px;
}
.entity:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 7px;
}
.entity
  .mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #e8f3ff;
  color: #1768c8;
  font-size: 9px;
}
.entity b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10.5px;
}
.entity
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 8.5px;
  color: var(--sr-ink);
}
.pill:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 3px 7px;
  font-size: 8.5px;
  border: 0;
}
.pill.green:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #d9f6e9;
  color: #11915f;
}
.pill.amber:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #fff0d7;
  color: #d87b00;
}
.pill.red:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #ffe1e4;
  color: #d93f49;
}
.pill.blue:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #dcecff;
  color: #216fe1;
}
.pill.gray:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #edf2f7;
  color: var(--sr-ink);
}
.metric-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 10px;
}
.metric-grid
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  min-height: 92px;
  padding: 12px 13px;
}
.metric-grid
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  font-size: 19px;
}
.toolbar:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 0 0 10px;
  gap: 9px;
}
.search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 36px;
  border-color: var(--ui-border);
  border-radius: 7px;
  font-size: 11px;
}
.field label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11px;
  margin-bottom: 5px;
}
.field input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 38px;
  border-radius: 7px;
  font-size: 12px;
}
.field
  textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 82px;
  padding: 10px 11px;
}
.field
  input:focus:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  select:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.field
  textarea:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.search:focus:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  box-shadow: 0 0 0 3px rgba(37, 128, 233, 0.1);
}

.modal-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 15px 17px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
}
.modal-body:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 15px 17px;
}
.modal-foot:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 12px 17px;
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
}
.quick:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: #fff;
  border-radius: 9px;
  padding: 9px 6px;
  color: var(--sr-ink);
  font-size: 9.5px;
}
.quick i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #eaf4ff;
  color: #176fe8;
}

@media (max-width: 1180px) {
  .top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1.4fr 1fr;
  }
  .bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-column: 1/-1;
  }
  .three-tables:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 214px;
  }
}
@media (max-width: 720px) {
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    min-height: 105px;
    padding: 11px 12px;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 18px;
  }
  .top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr;
  }
  .bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-column: auto;
  }
  .card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    padding: 12px;
  }
}
@media (max-width: 520px) {
  .metric-card:nth-child(5):where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-column: 1/-1;
  }
  .donut-wrap:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 108px 1fr;
  }
  .donut:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 108px;
    height: 108px;
  }
  .table.compact:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    min-width: 520px;
  }
}
@media (max-width: 430px) {
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    min-height: 101px;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 17px;
  }
  .metric-sub:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 8.5px;
  }
}
@media print {
  .no-print:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    display: none !important;
  }
  .card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    box-shadow: none;
  }
}
:root {
  --bg: #f3f7fc;
  --surface: #fff;
  --surface-2: #f8fbff;
  --surface-3: #eef4fb;
  --ink: #102a56;
  --ink-2: #30486f;
  --faint: #8da0bc;
  --line: var(--ui-border);
  --line-2: var(--ui-border);
  --brand: #176fe8;
  --brand-dark: #0d55c8;
  --brand-ink: #10488f;
  --brand2: #35baf2;
  --soft: #eaf4ff;
  --soft-line: #cfe2fb;
  --rail: #082b59;
  --rail-2: #0b3d78;
  --rail-3: #14559c;
  --rail-text: #dcecff;
  --rail-faint: #91afd3;
  --gold: #ff9f2f;
  --gold-bg: #fff0d8;
  --gold-line: #ffdfae;
  --violet: #7454e8;
  --violet-bg: #eee9ff;
  --violet-line: #d9cffb;
  --cyan: #17a9d5;
  --cyan-bg: #e4f7fd;
  --cyan-line: #c7eaf5;
  --success: #16a873;
  --success-bg: #e8faf2;
  --success-line: #c8efde;
  --warning: #d97706;
  --warning-bg: #fff4df;
  --warning-line: #ffe0b0;
  --danger: #df414d;
  --danger-bg: #fff0f2;
  --danger-line: #ffd0d5;
  --info: #1b8a5a;
  --info-bg: #edf8f2;
  --info-line: #cce8d9;
  --shadow-sm: 0 2px 8px rgba(27, 70, 125, 0.06);
  --shadow: 0 8px 24px rgba(27, 70, 125, 0.08);
  --shadow-lg: 0 20px 55px rgba(13, 50, 100, 0.18);
  --r-lg: 14px;
  --r: 10px;
  --r-sm: 8px;
  --sidebar: 224px;
  --top: 68px;
}
html {
  background: var(--bg);
}
body {
  font-size: 14px;
  line-height: 1.52;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-weight: 500;
}
h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h4:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  letter-spacing: -0.025em;
  color: var(--sr-ink);
}
.icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  shape-rendering: geometricPrecision;
}
.eyebrow:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--sr-ink);
}
.eyebrow:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: #1b76e9;
}
.date-chip:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 40px;
  border-radius: 8px;
  font-size: 12.5px;
  padding: 0 12px;
}
.btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 750;
  border-color: var(--ui-border);
  box-shadow: 0 1px 2px rgba(25, 65, 115, 0.03);
}
.btn.primary:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: linear-gradient(90deg, #126fe9, #6250ee);
  border-color: transparent;
  box-shadow: 0 7px 17px rgba(43, 91, 214, 0.18);
}
.btn.success:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #16ae77;
  border-color: #16ae77;
}
.btn.danger:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #e84a55;
  border-color: #e84a55;
}
.btn.soft:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #edf5ff;
  border-color: var(--ui-border);
  color: var(--sr-ink);
}
.link:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13px;
}
.icon-btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--ui-border-strong);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 14px;
}
.card-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 16px;
}
.card-head p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12.5px;
}
.section:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-top: 24px;
}
.section-head:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-bottom: 12px;
}
.section-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 17px;
}
.section-head
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12.5px;
}
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 132px;
  padding: 16px 17px 14px;
  border-radius: 12px;
  border-width: var(--sr-stroke-thin);
  box-shadow: 0 5px 16px rgba(31, 77, 136, 0.07);
}
.metric-card:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(31, 77, 136, 0.11);
}
.metric-top:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 40px;
}
.metric-icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.metric-icon
  .icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 20px;
  height: 20px;
}
.metric-arrow:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  width: 35px;
  height: 35px;
}
.metric-label:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-size: 13px;
  margin-top: 11px;
  font-weight: 800;
  color: var(--sr-ink);
}
.metric-value:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-size: 28px;
  margin-top: 4px;
  font-weight: 850;
  color: var(--sr-ink);
  letter-spacing: -0.035em;
}
.metric-sub:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11.5px;
  margin-top: 7px;
  font-weight: 600;
  color: var(--sr-ink);
}
.top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 14px;
  margin-bottom: 14px;
}
.status-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 250px;
}
.donut-wrap:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  grid-template-columns: 128px 1fr;
  gap: 15px;
}
.donut:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 128px;
  height: 128px;
}
.donut:after:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  inset: 24px;
}
.donut b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 25px;
}
.donut span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10px;
}
.legend:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 10px;
}
.legend div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12px;
}
.legend i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 10px;
  height: 10px;
}
.table-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-radius: 12px;
}
.table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 720px;
}
.table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 40px;
  background: var(--ui-table-head);
  color: var(--sr-ink);
  font-weight: 850;
  padding: 10px 13px;
  white-space: nowrap;
}
.table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 46px;
  padding: 10px 13px;
  white-space: nowrap;
}
.table
  tbody
  tr:hover:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--ui-row-hover);
}
.table.compact
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 9px 10px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.table.compact
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 9px 10px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.entity:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 9px;
}
.entity
  .mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 10.5px;
}
.entity b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12.5px;
}
.entity
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10.5px;
}
.row-actions:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 6px;
}
.row-actions
  .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 34px;
  padding: 0 11px;
  font-size: 12px;
}
.pill:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10.5px;
  font-weight: 850;
  border-radius: 999px;
}
.empty:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 64px 24px;
  font-size: 14px;
}
.empty b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 16px;
}
.toolbar:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 14px;
  gap: 10px;
}
.toolbar-left:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.toolbar-right:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  gap: 8px;
}
.search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
  border-color: var(--ui-border);
}
.field:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin-bottom: 16px;
}
.field label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13px;
  margin-bottom: 7px;
  color: var(--sr-ink);
}
.field input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 44px;
  border-radius: 8px;
  border-color: var(--ui-border);
  font-size: 14px;
}
.field
  textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 100px;
  padding: 11px 12px;
}
.field-hint:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12.5px;
}
.field
  input:focus:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.field
  select:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.field
  textarea:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.search:focus:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.select:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-color: #2580e9;
  box-shadow: 0 0 0 4px rgba(37, 128, 233, 0.11);
}
.detail-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 18px;
}
.detail-hero
  h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 26px;
}
.detail-hero
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 14px;
}
.kv small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12.5px;
}
.kv b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 14px;
}

.modal-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 18px 21px;
}
.modal-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 19px;
}
.modal-head
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13px;
}
.modal-body:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 21px;
}
.modal-foot:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 14px 21px;
}


.quick:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 10px 7px;
  font-size: 10.5px;
}
.quick i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 34px;
  height: 34px;
}

@media print {
  body {
    font-size: 11pt;
    color: var(--sr-ink);
    background: #fff;
  }
  .table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 10pt !important;
    color: var(--sr-ink);
    padding: 7pt 8pt;
    border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
    border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
  }
}
@media (max-width: 1180px) {
  :root {
    --sidebar: 210px;
  }
  .top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr 1fr;
  }
  .top-grid
    > .bar-card:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-column: 1/-1;
  }
  .three-tables:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr 1fr;
  }
  .three-tables
    > .table-card:last-child:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-column: 1/-1;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 14px;
  }
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    min-height: 112px;
    padding: 12px;
  }
  .metric-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: 34px;
    height: 34px;
  }
  .metric-arrow:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: 30px;
    height: 30px;
  }
  .metric-label:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 11.5px;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 22px;
  }
  .top-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .three-tables:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
  .detail-grid:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr;
  }
  .top-grid
    > .bar-card:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ),
  .three-tables
    > .table-card:last-child:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-column: auto;
  }
  .status-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
  .bar-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    min-height: auto;
  }
  .card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    padding: 14px;
  }
  .card-head
    h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 15px;
  }
  .section:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    margin-top: 19px;
  }
  .table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    min-width: 680px;
  }
  .table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table-wrap
    table
    th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 11px;
    padding: 10px;
    border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
    border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
  }
  .table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table-wrap
    table
    td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 12px;
    padding: 10px;
    height: 42px;
    border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
    border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
  }
  .toolbar-left:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
  .toolbar-right:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: 100%;
  }
  .toolbar-left
    > *:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .toolbar-right
    > *:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    flex: 1 1 auto;
  }
  .search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 100%;
  }
  .field
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 16px;
    height: 46px;
  }
  .modal-body:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 17px;
  }
  .modal-head:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .modal-foot:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 15px 17px;
  }
}
@media (max-width: 430px) {
  .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    height: 38px;
    font-size: 12px;
    padding: 0 11px;
  }
  .table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    min-width: 640px;
  }
}
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 24px 22px 22px;
  min-height: 154px;
}
.metric-icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.metric-label:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-top: 20px;
}
.admin-kpi-portfolio:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  --accent: #1769aa !important;
  --accent-bg: #eaf4ff !important;
  --accent-line: #c9e1f7 !important;
}
.admin-kpi-outstanding:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  --accent: #a04a12 !important;
  --accent-bg: #fff0e5 !important;
  --accent-line: #f4d0b6 !important;
}
.admin-kpi-approval:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  --accent: #8b4ab5 !important;
  --accent-bg: #f5ecfb !important;
  --accent-line: #e2c9ef !important;
}
.admin-kpi-customers:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  --accent: #16734a !important;
  --accent-bg: #e8f7ef !important;
  --accent-line: #c5ead5 !important;
}
.admin-kpi-active:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  --accent: #0c7d8c !important;
  --accent-bg: #e8f8fa !important;
  --accent-line: #c5e8ed !important;
}
.collection-filter:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  min-width: 210px;
  max-width: 280px;
}
.report-actions:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.report-actions
  .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 36px;
}
.table-action-toolbar:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
}
.table-action-buttons:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.table-action-btn:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  height: 36px !important;
  white-space: nowrap;
}
.table-action-spacer:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  flex: 1 1 auto;
}
@media (max-width: 760px) {
  .table-action-toolbar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    margin-bottom: 8px;
  }
  .table-action-buttons:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: 100%;
    justify-content: flex-end;
  }
  .table-action-btn:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    max-width: 100%;
  }
}
.staff-filter-bar:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.staff-filter-bar
  label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.staff-filter-bar
  select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: 40px;
  min-width: 210px;
}
.card
  .section-head
  .report-actions:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  align-self: center;
}
.badge-count:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e23b55;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.tabs.tabs-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--surface);
  padding: 5px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 13px;
  display: inline-flex;
}
.tabs.tabs-card
  button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border-radius: 9px;
  border-bottom: 0;
}
.tabs.tabs-card
  button.active:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: var(--brand);
  color: #fff;
}
@media (max-width: 1100px) {
  .metric-grid.cols-5:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .metric-grid.cols-5:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    min-height: 140px;
    padding: 18px;
  }
  .staff-filter-bar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    align-items: stretch;
  }
  .staff-filter-bar
    select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 100%;
    max-width: none;
  }
}
:root {
  --brand: #16734a;
  --brand-dark: #0d5a38;
  --brand-ink: #0b4b30;
  --brand2: #43b879;
  --soft: #eaf8f0;
  --soft-line: #c5ead5;
  --rail: #0b3b2a;
  --rail-2: #0f4b35;
  --rail-3: #176143;
  --rail-text: #d8f2e4;
  --rail-faint: #8fc5a9;
  --success: #0d7a58;
  --success-bg: #e7f7f1;
  --success-line: #c2e8d9;
}
@media (max-width: 720px) {
  body {
    background: #eef1ff !important;
    color: var(--sr-ink);
  }

  .section-head
    h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 13px !important;
    color: var(--sr-ink) !important;
  }
  .section-head
    p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 9.5px !important;
    color: var(--sr-ink) !important;
  }

  .statline:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 10.5px !important;
    padding: 5px 0 !important;
    border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  }
  .statline:last-child:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    border-bottom: 0;
  }
  .statline
    b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 11.5px !important;
    color: var(--sr-ink) !important;
  }
  .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    border-width: var(--sr-stroke-thin) !important;
  }
  .btn.primary:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(135deg, #ff2d9b, #6a16e2) !important;
    border-color: transparent !important;
    box-shadow: 0 7px 15px rgba(190, 31, 164, 0.22) !important;
  }
  .btn.success:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(135deg, #11b989, #1777e7) !important;
    border-color: transparent !important;
  }
  .btn.danger:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(135deg, #ff477e, #d91f70) !important;
    border-color: transparent !important;
  }
  .quick:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    min-height: 56px !important;
    border-radius: 11px !important;
    background: #fff !important;
    border: var(--sr-stroke-thin) solid var(--ui-border) !important;
    box-shadow: 0 4px 12px rgba(44, 57, 141, 0.06) !important;
    color: var(--sr-ink) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }
  .quick i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    background: linear-gradient(145deg, #ffe3f3, #ece5ff) !important;
    color: #8d18dc !important;
  }
  .loan-icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffe4f3, #e6e6ff);
    color: #e12caa;
    display: grid;
    place-items: center;
    flex: none;
  }

  .pill:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 8.5px !important;
    font-weight: 850 !important;
    padding: 4px 7px !important;
    border-radius: 999px !important;
  }
  .field
    label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 9px !important;
    color: var(--sr-ink) !important;
  }
  .field
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    height: 40px !important;
    border-radius: 9px !important;
    border-color: var(--ui-border) !important;
    background: #fff !important;
    font-size: 11px !important;
  }
  .field
    textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    height: auto !important;
    min-height: 70px !important;
  }
}

html,
body,
#app {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 19px 19px 17px !important;
  min-height: 142px !important;
  border-radius: 13px !important;
  box-shadow: 0 7px 20px rgba(24, 67, 122, 0.075) !important;
}
.metric-card
  .metric-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 42px !important;
  height: 42px !important;
  border-radius: 11px !important;
}
.metric-card
  .metric-icon
  .icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 21px !important;
  height: 21px !important;
  stroke-width: 2.2 !important;
}
.metric-label:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: var(--sr-ink) !important;
  margin-top: 13px !important;
  letter-spacing: -0.005em;
}
.metric-value:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-size: 25px !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  color: var(--accent) !important;
  margin-top: 6px !important;
  letter-spacing: -0.02em;
}
.metric-sub:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: var(--sr-ink) !important;
  margin-top: 5px !important;
}
.table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}
@media (max-width: 760px) {
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 16px !important;
    min-height: 132px !important;
  }
  .metric-card
    .metric-icon:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    width: 38px !important;
    height: 38px !important;
  }
  .metric-label:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 12px !important;
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 22px !important;
  }
}
.form-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}
.form-grid
  .field:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 0;
}
.form-grid
  .field.full:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  grid-column: 1/-1;
}

.modal-body:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  overflow-x: hidden;
}
.modal-foot:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  gap: 10px;
  flex-wrap: wrap;
}
.modal-foot
  .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 120px;
}
.auth-error:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .form-grid:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .form-grid
    .field:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .form-grid
    .field.full:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-column: 1 !important;
  }

  .modal-head:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 14px 15px !important;
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface);
  }
  .modal-body:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 15px !important;
  }
  .modal-foot:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: var(--surface);
    padding: 12px 15px !important;
  }
  .modal-foot
    .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    flex: 1 1 140px;
    min-width: 0;
  }
  .field
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 430px) {
  .modal-head:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 12px !important;
  }
  .modal-body:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 12px !important;
  }
  .modal-foot:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 10px 12px !important;
  }
  .modal-foot
    .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    height: 44px;
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .modal-head
    h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 16px !important;
  }
  .field
    label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 12px !important;
  }
  .field
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 14px !important;
  }
}
html,
body,
#app {
  overflow-x: hidden;
}
.setting-row:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: var(--sr-stroke-thin) solid var(--line);
}
.setting-row:last-child:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-bottom: 0;
}
.setting-row
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.setting-row
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.setting-row
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.settings-list:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: grid;
  gap: 0;
}
.switch:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  cursor: pointer;
}
.switch
  input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch
  .slider:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  position: absolute;
  inset: 0;
  background: #d8e1dc;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 999px;
  transition: 0.2s;
}
.switch
  .slider:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition: 0.2s;
}
.switch
  input:checked
  + .slider:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: var(--brand);
  border-color: var(--brand);
}
.switch
  input:checked
  + .slider:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  transform: translateX(22px);
}
.switch
  input:focus-visible
  + .slider:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  outline: 3px solid rgba(22, 115, 74, 0.2);
  outline-offset: 2px;
}
@media (max-width: 650px) {
  .setting-row:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    align-items: flex-start;
  }
  .setting-row
    p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    max-width: 270px;
  }
}
.proper-input:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  height: 52px;
  display: flex;
  align-items: center;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 13px;
  background: #fff;
  box-sizing: border-box;
  padding: 0 14px;
  color: var(--sr-ink);
}
.proper-input
  > span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 20px;
  width: 30px;
}
.proper-input
  input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: 0;
  outline: 0;
  flex: 1;
  height: 100%;
  min-width: 0;
  background: transparent;
  color: var(--sr-ink);
  font-size: 15px;
}
.proper-input
  input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  )::placeholder {
  color: var(--sr-ink);
}
@media (max-width: 800px) {
  .proper-input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 52px;
    border-radius: 13px;
  }
}
@media (max-width: 390px) {
  .proper-input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 47px;
  }
}
.metric-card
  .metric-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: grid !important;
  place-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.metric-card
  .metric-icon
  .icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
}

@media (max-width: 720px) {
  .modal-body:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px !important;
  }
  .modal-body
    .form-grid:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .modal-body
    .form-grid
    .field:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .modal-body
    .form-grid
    .field.full:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    grid-column: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .modal-body
    .field
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .modal-body
    .field
    select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .modal-body
    .field
    textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .modal-body
    input[type="file"]:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 11px !important;
    box-sizing: border-box !important;
  }
  .modal-foot:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .modal-foot
    .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    min-height: 44px !important;
    flex: 1 1 140px !important;
  }
}
@media (min-width: 901px) {
  html,
  body,
  #app {
    min-height: 100%;
  }
}
@media (max-width: 720px) {
  html,
  body,
  #app {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden !important;
  }
}
.portfolio-blue:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  background: linear-gradient(
    145deg,
    rgba(38, 101, 255, 0.72),
    rgba(45, 160, 255, 0.38)
  );
}
.portfolio-indigo:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  background: linear-gradient(
    145deg,
    rgba(103, 70, 255, 0.72),
    rgba(148, 54, 255, 0.36)
  );
}
.portfolio-green:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  background: linear-gradient(
    145deg,
    rgba(10, 165, 112, 0.72),
    rgba(22, 204, 151, 0.34)
  );
}
html,
body,
#app {
  background: #f3f7fc;
  color: var(--sr-ink);
}
body {
  font-size: 16px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}
button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: inherit;
}
h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
h4:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-weight: 750;
}
.card-head h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.section-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 16px;
}
.card-head p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.section-head
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12px;
}
.table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12px;
  font-weight: 800;
  padding: 12px 13px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap
  table
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13px;
  font-weight: 550;
  padding: 12px 13px;
  color: var(--sr-ink);
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.table.compact
  th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11.5px;
}
.table.compact
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12.5px;
}
.pill:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}
.btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13px;
  font-weight: 800;
}
.link:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 12px;
  font-weight: 800;
}
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-weight: 650;
}
.card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.metric-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.date-chip:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.table-wrap:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  transform: translateZ(0);
  backface-visibility: hidden;
}
@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table-wrap
    table
    td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 12px;
  }
}
@media print {
  body {
    font-size: 12pt;
    -webkit-font-smoothing: auto;
  }
  .table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table-wrap
    table
    th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 10pt;
  }
  .table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table-wrap
    table
    td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 10pt;
    color: var(--sr-ink);
  }
}
@media (min-width: 901px) {
  :root {
    --brand: #2554e8;
    --brand-dark: #1838b8;
    --brand-ink: #173a9d;
    --brand2: #b52cff;
    --soft: #eef1ff;
    --soft-line: #d9ddff;
    --bg: #f7f8ff;
    --surface: #fff;
    --surface-2: #fbfaff;
    --surface-3: #f2f4ff;
    --line: var(--ui-border);
    --line-2: var(--ui-border);
    --ink: #17265f;
    --ink-2: #42527c;
    --muted: var(--sr-ink);
    --faint: #a2acc4;
    --rail: #091c78;
    --rail-2: #17108f;
    --rail-3: #4a13bd;
    --rail-text: #eef1ff;
    --rail-faint: #bfc9ff;
    --success: #0ca77a;
    --success-bg: #e3fbf3;
    --warning: #e78a00;
    --warning-bg: #fff4dd;
    --danger: #e63d72;
    --danger-bg: #ffedf4;
    --info: #2876ed;
    --info-bg: #eaf2ff;
    --shadow: 0 10px 30px rgba(29, 46, 126, 0.08);
    --shadow-sm: 0 3px 12px rgba(29, 46, 126, 0.06);
  }

  body {
    background: linear-gradient(180deg, #f7f8ff 0%, #f8f7ff 100%);
    color: var(--ink);
  }
  a:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    color: #2b5ce9;
  }
  :where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  )::selection {
    background: #eee7ff;
    color: var(--sr-ink);
  }
  .notification-btn.has-unread
    .notification-badge:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: #ff3f8f;
    box-shadow: 0 0 0 2px #fff;
  }

  .btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    height: 38px;
    border-radius: 10px;
    border-color: var(--ui-border);
    background: #fff;
    color: var(--sr-ink);
    box-shadow: 0 2px 7px rgba(33, 53, 130, 0.035);
  }
  .btn:hover:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    background: #f6f7ff;
    border-color: var(--ui-border);
  }
  .btn.primary:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(90deg, #ff36b4, #9b2cff 55%, #315df1);
    border: 0;
    box-shadow: 0 8px 18px rgba(173, 42, 230, 0.2);
  }
  .btn.primary:hover:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    filter: brightness(0.96);
  }
  .btn.success:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(90deg, #0fb78b, #159fcd);
    border: 0;
  }
  .btn.soft:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    background: #f0efff;
    border-color: var(--ui-border);
    color: #6030c8;
  }
  .btn.warning:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(90deg, #ffad36, #ff7b5c);
    border: 0;
  }
  .btn.danger:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(90deg, #ff4f86, #df315f);
    border: 0;
  }
  .link:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    color: #2b5ce9;
  }
  .icon-btn:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    border-color: var(--ui-border);
    border-radius: 10px;
  }
  .eyebrow:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    color: var(--sr-ink);
  }
  .eyebrow:before:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(90deg, #ff38b7, #7b35ff);
  }
  .date-chip:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    border-color: var(--ui-border);
    background: #fff;
    color: var(--sr-ink);
  }

  .card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    border-color: var(--ui-border-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 22px rgba(36, 55, 137, 0.055);
  }
  .card-head
    h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .section-head
    h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    color: var(--sr-ink);
  }
  .card-head
    p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .section-head
    p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    color: var(--sr-ink);
  }
  .section:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    margin-top: 16px;
  }
  .metric-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(32, 50, 132, 0.07);
  }
  .metric-card:hover:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    box-shadow: 0 12px 26px rgba(32, 50, 132, 0.11);
  }
  .metric-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    border-radius: 11px;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--accent) 28%, transparent);
  }
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    color: var(--sr-ink);
  }
  .metric-label:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    color: var(--sr-ink);
  }

  .summary-tile:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    border-radius: 14px;
    border-color: var(--ui-border);
    background: #fff;
    box-shadow: 0 7px 18px rgba(34, 53, 135, 0.06);
  }
  .summary-tile
    b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    color: var(--sr-ink);
  }
  .summary-tile
    .icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    border-radius: 10px;
  }

  .table-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    border-radius: 14px;
    border: var(--sr-stroke-thin) solid var(--ui-border);
    background: #fff;
    box-shadow: 0 7px 22px rgba(36, 55, 137, 0.05);
  }
  .table th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table-wrap
    table
    th:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    background: var(--ui-table-head);
    color: var(--sr-ink);
    border-bottom-color: var(--ui-border);
    border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
    border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
  }
  .table td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .table-wrap
    table
    td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    color: var(--sr-ink);
    border-bottom-color: var(--ui-border);
    border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
    border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
  }
  .table
    tbody
    tr:hover:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    background: var(--ui-row-hover);
  }
  .entity
    .mini-avatar:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(145deg, #e9efff, #f8e9ff);
    color: #5d35d1;
  }
  .pill.green:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: #dff9ef;
    color: #078966;
  }
  .pill.blue:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    background: #e3edff;
    color: #285fe0;
  }
  .pill.red:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    background: #ffe5ef;
    color: #dc3d73;
  }

  .search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    border-color: var(--ui-border);
    background: #fff;
    border-radius: 10px;
  }
  .search:focus:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ),
  .select:focus:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    border-color: #8d5cff;
    box-shadow: 0 0 0 3px rgba(141, 92, 255, 0.12);
  }
  .toolbar:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    gap: 10px;
  }
  .tabs:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    border-color: var(--ui-border);
    background: #f7f8ff;
    border-radius: 12px;
    padding: 4px;
  }
  .tabs
    button:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    border-radius: 9px;
    color: var(--sr-ink);
  }
  .tabs
    button.active:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(90deg, #ff3db6, #9b2dff);
    color: #fff;
    box-shadow: 0 6px 14px rgba(164, 45, 230, 0.18);
  }

  .field
    label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    color: var(--sr-ink);
  }
  .field
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .field
    textarea:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
  .select:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    border-color: var(--ui-border);
    border-radius: 10px;
    background: #fff;
    color: var(--sr-ink);
  }
  .field
    input:focus:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ),
  .field
    select:focus:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ),
  .field
    textarea:focus:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    border-color: #8b5cff;
    box-shadow: 0 0 0 3px rgba(139, 92, 255, 0.11);
  }

  .section-head:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    border-color: var(--ui-border);
  }
  .progress:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    background: #edf0fb;
  }
  .progress
    i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    background: linear-gradient(90deg, #ff3cb5, #9b2dff, #315df0) !important;
  }
  .switch
    input:checked
    + .slider:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    background: linear-gradient(90deg, #ff3cb5, #9b2dff) !important;
    border-color: transparent !important;
  }
}
.collection-kpi-overdue
  .metric-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: #fff0f0 !important;
  color: #c62828 !important;
  border: var(--sr-stroke-thin) solid var(--ui-border) !important;
  box-shadow: 0 7px 15px rgba(198, 40, 40, 0.16) !important;
}
.collection-kpi-overdue
  .metric-icon
  .icon:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: #c62828 !important;
  stroke: #c62828 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.collection-kpi-overdue
  .metric-arrow:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: #c62828 !important;
}
.metric-card
  .metric-label:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: var(--sr-ink) !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}
.metric-card
  .metric-value:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: var(--sr-ink) !important;
  font-weight: 950 !important;
  letter-spacing: -0.025em !important;
  text-shadow: none !important;
}
.metric-card
  .metric-sub:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: var(--sr-ink) !important;
  font-weight: 650 !important;
}
.metric-card
  .metric-sub:empty:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: none;
}
:root {
  --staff-blue: #102e86;
  --staff-blue-2: #193fb1;
  --staff-purple: #6a18d9;
  --staff-pink: #f82d9a;
  --staff-violet: #8a55f7;
  --staff-soft: #f4f6ff;
  --staff-ink: #10245b;
  --staff-muted: #6d7896;
  --staff-line: #dfe5f6;
}

.green-text:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: #078c55 !important;
}
.blue-text:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: #075ac8 !important;
}

.staff-summary-grid
  > div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: #fff;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 13px rgba(28, 58, 132, 0.05);
}
.staff-summary-grid
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-size: 9px;
  color: var(--sr-ink);
  font-weight: 700;
}

.staff-summary-grid:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.staff-summary-grid
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-size: 20px;
  color: var(--sr-ink);
  margin-top: 4px;
}
.staff-summary-grid
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  font-size: 8px;
  color: var(--sr-ink);
  margin-top: 4px;
  line-height: 1.3;
}

@media (max-width: 360px) {
  .staff-summary-grid:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: 1fr;
    margin-bottom: 16px !important;
  }
}

.schedule-preview:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-top: 14px !important;
  background: #fafafd !important;
  overflow: hidden !important;
  max-width: 100% !important;
}
.schedule-preview-head:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.schedule-preview-head
  h3:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}
.schedule-preview-head
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.schedule-preview-tools:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.schedule-empty:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  padding: 18px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 700px) {
  .schedule-preview-head:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    display: block;
  }
  .schedule-preview-tools:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    justify-content: flex-start;
    margin-top: 8px;
  }
}

body.login-active:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  margin: 0 !important;
  overflow-x: hidden !important;
  background: #f8fbff !important;
}
body.login-active
  #app:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 100dvh !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sr-login-screen[data-login-mode="staff"]:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  --ink: #07173f;
  --muted: var(--sr-ink);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(17.2vh + env(safe-area-inset-top))
    max(7.6vw, env(safe-area-inset-left))
    calc(15.5vh + env(safe-area-inset-bottom));
  background: linear-gradient(145deg, #fbfdff 0%, #f7fbff 55%, #fff9ff 100%);
  color: var(--ink);
}
.sr-login-decor:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sr-login-decor
  > *:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  position: absolute;
  display: block;
  pointer-events: none;
}
.sr-ring:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 48vw;
  height: 48vw;
  left: -30vw;
  top: 1.5vh;
  border-radius: 50%;
  border: 1.2px solid rgba(76, 101, 220, 0.27);
  box-shadow:
    0 0 0 18px rgba(76, 101, 220, 0.024),
    0 0 0 38px rgba(76, 101, 220, 0.018);
  background: radial-gradient(
    circle,
    rgba(219, 139, 255, 0.27) 0 29%,
    transparent 30%
  );
}
.sr-orb:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 72vw;
  height: 45vw;
  right: -29vw;
  top: -9vw;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 55%,
    rgba(66, 132, 250, 0.29),
    rgba(113, 83, 243, 0.12) 57%,
    transparent 73%
  );
}
.sr-bars-bg:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  right: -1vw;
  top: 17vh;
  width: 24vw;
  height: 21vh;
  opacity: 0.36;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 13%,
    rgba(255, 255, 255, 0.98) 14% 20%,
    transparent 21% 29%
  );
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.sr-dots:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  right: -2vw;
  bottom: 5.5vh;
  width: 24vw;
  height: 11vh;
  opacity: 0.25;
  background-image: radial-gradient(circle, #7088df 1.2px, transparent 1.65px);
  background-size: 12px 12px;
}
.sr-wave:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  left: -16%;
  width: 132%;
  height: 15vh;
  border-radius: 50% 50% 0 0/62% 62% 0 0;
  transform-origin: center;
}
.sr-wave-a:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  bottom: -4.5vh;
  transform: rotate(-4deg);
  background: linear-gradient(
    90deg,
    rgba(70, 145, 249, 0.27),
    rgba(120, 73, 246, 0.43),
    rgba(235, 67, 237, 0.2)
  );
}
.sr-wave-b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  bottom: -7.5vh;
  transform: rotate(5deg);
  background: linear-gradient(
    90deg,
    rgba(179, 83, 244, 0.27),
    rgba(88, 89, 244, 0.3),
    rgba(67, 160, 246, 0.18)
  );
}
.sr-wave-c:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  bottom: -10vh;
  transform: rotate(-1deg);
  background: linear-gradient(
    90deg,
    rgba(113, 115, 246, 0.18),
    rgba(160, 74, 247, 0.29),
    rgba(67, 145, 246, 0.16)
  );
}
.sr-login-brand:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 3.1vh;
}

.sr-login-card:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  box-sizing: border-box;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 31px 25px 23px;
  border: var(--sr-stroke-thin) solid var(--ui-border-strong);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 18px 48px rgba(49, 75, 143, 0.13),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}
.sr-login-card-head:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(82px, 23vw, 108px);
  column-gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.sr-login-heading:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  min-width: 0;
  padding-top: 0;
  align-self: center;
}
.sr-login-heading
  h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 0;
  color: var(--sr-ink);
  font-family: var(--display, system-ui);
  font-size: clamp(27px, 7.1vw, 35px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.sr-login-heading
  h1
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: linear-gradient(90deg, #3854f5, #9e25ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sr-login-heading
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 8px 0 0;
  color: var(--sr-ink);
  font-size: clamp(10px, 2.65vw, 12.5px);
  line-height: 1.35;
  white-space: nowrap;
}
.sr-login-field:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin: 0 0 15px;
}
.sr-login-field
  label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  margin: 0 0 8px;
  color: var(--sr-ink);
  font-size: 13px;
  font-weight: 800;
}
.sr-login-input:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 58px;
  padding: 0 14px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: #4c4bf2;
  box-shadow: 0 5px 15px rgba(57, 78, 136, 0.035);
}
.sr-login-input:focus-within:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-color: #6579ef;
  box-shadow: 0 0 0 4px rgba(80, 93, 237, 0.09);
}
.sr-login-input
  input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--sr-ink);
  font-size: 15px;
}
.sr-login-input
  input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  )::placeholder {
  color: var(--sr-ink);
}
.sr-login-eye:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--sr-ink);
  cursor: pointer;
  border-radius: 10px;
}
.sr-login-actions:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 15px;
}
.sr-login-forgot:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  border: 0;
  background: transparent;
  color: #5026e8;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 0;
  cursor: pointer;
}
.sr-login-submit:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, #1678f7 0%, #6435f4 53%, #df12df 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(105, 52, 235, 0.24);
  cursor: pointer;
}
.sr-login-submit:disabled:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  opacity: 0.62;
  cursor: wait;
}
.sr-login-divider:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 19px 0 13px;
  color: var(--sr-ink);
  font-size: 11px;
}
.sr-login-divider:before:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.sr-login-divider:after:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  content: "";
  height: 1px;
  background: #d7dfed;
  flex: 1;
}
.sr-login-footer:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--sr-ink);
  font-size: 10.5px;
}
.sr-login-footer
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sr-login-card
  .auth-error:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  margin: 0 0 12px;
}
@media (max-width: 380px) {
  .sr-login-screen[data-login-mode="staff"]:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: calc(13vh + env(safe-area-inset-top));
  }
  .sr-login-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 25px 18px 20px;
    border-radius: 25px;
  }
  .sr-login-card-head:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: minmax(0, 1fr) clamp(70px, 21vw, 82px);
    column-gap: 8px;
    margin-bottom: 18px;
  }
  .sr-login-heading
    h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: clamp(24px, 7.3vw, 27px);
  }
  .sr-login-heading
    p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: clamp(9px, 2.65vw, 10px);
  }
  .sr-login-input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 53px;
  }
  .sr-login-submit:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 54px;
  }
}
@media (max-width: 340px) {
  .sr-login-card-head:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    grid-template-columns: minmax(0, 1fr) 64px;
    column-gap: 6px;
  }
  .sr-login-heading
    h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 23px;
    letter-spacing: -0.06em;
  }
  .sr-login-heading
    p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 8.7px;
  }
}
@media (min-height: 761px) and (max-height: 900px) {
  .sr-login-screen[data-login-mode="staff"]:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    padding-top: calc(8vh + env(safe-area-inset-top));
    padding-bottom: calc(8vh + env(safe-area-inset-bottom));
    justify-content: center;
  }
}
@media (max-height: 760px) {
  .sr-login-screen[data-login-mode="staff"]:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .sr-login-brand:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    margin-bottom: 16px;
  }
  .sr-login-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding-top: 23px;
    padding-bottom: 18px;
  }
  .sr-login-card-head:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    margin-bottom: 15px;
  }
  .sr-login-input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 50px;
  }
  .sr-login-field:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    margin-bottom: 10px;
  }
  .sr-login-submit:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 51px;
  }
  .sr-login-divider:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    margin: 12px 0 9px;
  }
}

.sr-admin-login-screen:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  display: block !important;
  padding: 0 !important;
  background: #f8f9ff !important;
  overflow-x: hidden;
  overflow-y: auto;
}
.sr-admin-login-bg:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("/staff-assets/login-bg-v3.svg") !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.sr-admin-login-main:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  position: absolute !important;
  left: 50% !important;
  top: 51% !important;
  transform: translate(-50%, -50%) !important;
  width: min(592px, 36vw) !important;
  max-width: 592px !important;
  z-index: 5 !important;
}
.sr-admin-login-card:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  border: var(--sr-stroke-thin) solid var(--ui-border-strong);
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 42px 50px 30px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow:
    0 25px 70px rgba(57, 73, 154, 0.16),
    0 5px 24px rgba(70, 77, 153, 0.08) !important;
  backdrop-filter: blur(22px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(135%) !important;
}
.sr-admin-login-brandmark:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  width: 100% !important;
  margin: 0 0 30px !important;
  color: var(--sr-ink) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 32px !important;
  font-weight: 850 !important;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
}

.sr-admin-login-card
  h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 38px !important;
  letter-spacing: -0.045em !important;
  margin: 0 !important;
}
.sr-admin-login-subtitle:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-size: 15px !important;
  margin: 7px 0 28px !important;
}
.sr-admin-login-field:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-bottom: 18px !important;
}
.sr-admin-login-field
  label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 13px !important;
  margin-bottom: 7px !important;
}
.sr-admin-login-input:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  height: 63px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.78) !important;
}
.sr-admin-login-input
  input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 17px !important;
}
.sr-admin-login-actions:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin: -1px 0 18px !important;
}
.sr-admin-login-forgot:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  font-size: 14px !important;
}
.sr-admin-login-submit:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  height: 64px !important;
  border-radius: 15px !important;
  font-size: 18px !important;
}
.sr-admin-login-footer:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-top: 18px !important;
}
.sr-admin-login-left:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  position: absolute !important;
  left: 4vw !important;
  top: 18% !important;
  width: min(430px, 28vw) !important;
  z-index: 4 !important;
  color: var(--sr-ink) !important;
}
.sr-admin-login-left-brand:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  font-size: 34px !important;
  font-weight: 850 !important;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
}

.sr-admin-login-left-rule:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  width: 60px !important;
  height: 3px !important;
  margin: 66px 0 25px !important;
  border-radius: 99px !important;
  background: linear-gradient(90deg, #2d63ec, #7b3cf0) !important;
}
.sr-admin-login-left-rule.small:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 60px !important;
  margin: 22px 0 0 !important;
}
.sr-admin-login-left
  h2:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 0 !important;
  color: var(--sr-ink) !important;
  font-size: 43px !important;
  line-height: 1.06 !important;
  letter-spacing: -0.045em !important;
  font-weight: 850 !important;
}
.sr-admin-login-left
  h2
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  background: linear-gradient(
    100deg,
    #166fe8 0%,
    #5b35ec 55%,
    #d224df 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.sr-admin-login-left
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  margin: 25px 0 0 !important;
  color: var(--sr-ink) !important;
  font-size: 19px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}
.sr-admin-login-features:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  position: absolute !important;
  left: 4vw !important;
  bottom: 4.5vh !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  color: var(--sr-ink) !important;
}
.sr-admin-login-features
  > div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 150px !important;
}
.sr-admin-login-features
  > i:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 1px !important;
  height: 38px !important;
  background: rgba(78, 102, 165, 0.25) !important;
}
.sr-admin-login-features
  .feature-icon:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  color: #166fe8 !important;
}
.sr-admin-login-features
  .feature-icon
  svg:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 2.2 !important;
}
.sr-admin-login-features
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.sr-admin-login-features
  strong:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 14px !important;
  font-weight: 850 !important;
  color: var(--sr-ink) !important;
}
.sr-admin-login-features
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 11px !important;
  color: var(--sr-ink) !important;
}
.sr-admin-login-features
  .collections:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: #6b35e8 !important;
}
.sr-admin-login-features
  .growth:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: #176fe8 !important;
}
.sr-admin-login-plant:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(40vw, 670px) !important;
  max-height: 72vh !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: bottom right !important;
  z-index: 2 !important;
  opacity: 0.98 !important;
  filter: drop-shadow(0 22px 35px rgba(49, 58, 119, 0.1)) !important;
  mix-blend-mode: normal !important;
}
@media (min-width: 901px) and (max-width: 1500px),
  (min-width: 901px) and (max-height: 800px) {
  .sr-admin-login-screen {
    display: grid !important;
    grid-template-columns: minmax(210px, 1fr) minmax(350px, 480px) minmax(
        120px,
        0.7fr
      );
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 16px 28px;
    padding: 24px 4vw !important;
    min-height: 100dvh;
  }
  .sr-admin-login-screen .sr-admin-login-main {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 480px !important;
    grid-column: 2;
    grid-row: 1;
  }
  .sr-admin-login-screen .sr-admin-login-left {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    grid-column: 1;
    grid-row: 1;
  }
  .sr-admin-login-screen .sr-admin-login-card {
    padding: 24px 28px 20px !important;
  }
  .sr-admin-login-screen .sr-admin-login-left h2 {
    font-size: clamp(27px, 2.9vw, 40px) !important;
  }
  .sr-admin-login-screen .sr-admin-login-left p {
    font-size: clamp(12px, 1.35vw, 18px) !important;
  }
  .sr-admin-login-screen .sr-admin-login-left-rule {
    margin-top: 30px !important;
  }
  .sr-admin-login-screen .sr-admin-login-left .official-logo {
    max-width: 100%;
    height: auto;
  }
  .sr-admin-login-screen .sr-admin-login-features {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    grid-column: 1/-1;
    grid-row: 2;
    gap: 20px !important;
  }
  .sr-admin-login-screen .sr-admin-login-features > div {
    min-width: 0 !important;
  }
  .sr-admin-login-screen .sr-admin-login-plant {
    width: 29vw !important;
    max-height: 65dvh !important;
  }
  .sr-admin-login-screen .sr-admin-login-brandmark {
    margin-bottom: 18px !important;
  }
  .sr-admin-login-screen .sr-admin-login-card h1 {
    font-size: 30px !important;
  }
  .sr-admin-login-screen .sr-admin-login-subtitle {
    margin-bottom: 20px !important;
  }
  .sr-admin-login-screen .sr-admin-login-input,
  .sr-admin-login-screen .sr-admin-login-submit {
    height: 50px !important;
  }
  .sr-admin-login-screen .sr-admin-login-field {
    margin-bottom: 13px !important;
  }
}
@media (min-width: 901px) and (max-height: 650px) {
  .sr-admin-login-screen {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    row-gap: 10px;
  }
  .sr-admin-login-screen .sr-admin-login-card {
    padding-top: 18px !important;
    padding-bottom: 16px !important;
  }
  .sr-admin-login-screen .sr-admin-login-brandmark {
    margin-bottom: 12px !important;
  }
  .sr-admin-login-screen .sr-admin-login-subtitle {
    margin-bottom: 14px !important;
  }
  .sr-admin-login-screen .sr-admin-login-footer {
    margin-top: 12px !important;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .sr-admin-login-screen {
    grid-template-columns: minmax(200px, 1fr) minmax(350px, 440px);
    padding: 24px 5vw !important;
    column-gap: 35px;
  }
  .sr-admin-login-screen .sr-admin-login-plant {
    width: 20vw !important;
    opacity: 0.25 !important;
  }
}
@media (max-width: 900px) {
  .sr-admin-login-screen:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    display: grid !important;
    place-items: center;
    padding: 24px 12px !important;
  }
  .sr-admin-login-left:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
  .sr-admin-login-features:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    display: none !important;
  }
  .sr-admin-login-main:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: min(520px, calc(100vw - 24px)) !important;
    max-width: 520px !important;
  }
  .sr-admin-login-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 30px 24px 20px !important;
    border-radius: 25px !important;
  }
  .sr-admin-login-brandmark:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 26px !important;
    margin-bottom: 20px !important;
  }

  .sr-admin-login-card
    h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 28px !important;
  }
  .sr-admin-login-subtitle:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 13px !important;
    margin-bottom: 19px !important;
  }
  .sr-admin-login-input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 53px !important;
  }
  .sr-admin-login-submit:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 53px !important;
  }
  .sr-admin-login-plant:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: min(46vw, 290px) !important;
    right: -35px !important;
    bottom: -6px !important;
    opacity: 0.45 !important;
  }
}
@media (max-width: 520px) {
  .sr-admin-login-main:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: calc(100vw - 18px) !important;
  }
  .sr-admin-login-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding: 25px 18px 16px !important;
    border-radius: 22px !important;
  }
  .sr-admin-login-brandmark:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 22px !important;
    margin-bottom: 16px !important;
  }
  .sr-admin-login-card
    h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 24px !important;
  }
  .sr-admin-login-subtitle:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 12px !important;
    margin: 4px 0 15px !important;
  }
  .sr-admin-login-field:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    margin-bottom: 10px !important;
  }
  .sr-admin-login-field
    label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 11px !important;
    margin-bottom: 5px !important;
  }
  .sr-admin-login-input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 48px !important;
    border-radius: 12px !important;
  }
  .sr-admin-login-input
    input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 15px !important;
  }
  .sr-admin-login-actions:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    margin-bottom: 10px !important;
  }
  .sr-admin-login-forgot:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 12px !important;
  }
  .sr-admin-login-submit:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 49px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }
  .sr-admin-login-footer:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    font-size: 8px !important;
    margin-top: 10px !important;
    padding-top: 8px !important;
  }
  .sr-admin-login-plant:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    width: 190px !important;
    right: -52px !important;
    opacity: 0.26 !important;
  }
}
@media (max-height: 800px) {
  .sr-admin-login-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    padding-top: 24px !important;
    padding-bottom: 20px !important;
  }
  .sr-admin-login-brandmark:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    margin-bottom: 20px !important;
  }
  .sr-admin-login-card
    h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 30px !important;
  }
  .sr-admin-login-input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 52px !important;
  }
  .sr-admin-login-submit:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    height: 54px !important;
  }
}
.sr-login-screen[data-login-mode="staff"]
  .sr-login-card-head:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: block !important;
  margin-bottom: 22px !important;
  text-align: center !important;
}
.sr-login-screen[data-login-mode="staff"]
  .sr-login-heading:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
.sr-login-screen[data-login-mode="staff"]
  .sr-login-heading
  h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.sr-login-screen[data-login-mode="staff"]
  .sr-login-heading
  p:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 380px) {
  .sr-login-screen[data-login-mode="staff"]
    .sr-login-card-head:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    margin-bottom: 18px !important;
  }
}
.sr-admin-login-screen:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
),
.sr-admin-login-screen
  *:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  box-sizing: border-box;
}
.sr-admin-login-screen
  .sr-admin-login-card:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  color: var(--sr-ink);
  text-align: left;
}
.sr-admin-login-screen
  .sr-admin-login-card
  h1:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--sr-ink);
  font-family: Inter, Arial, sans-serif;
  font-weight: 850;
  line-height: 1.08;
}
.sr-admin-login-screen
  .sr-admin-login-subtitle:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: block;
  color: var(--sr-ink);
  line-height: 1.4;
}
.sr-admin-login-screen
  .sr-admin-login-field:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: block;
  width: 100%;
}
.sr-admin-login-screen
  .sr-admin-login-field
  label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  color: var(--sr-ink);
  font-weight: 700;
  line-height: 1.25;
}
.sr-admin-login-screen
  .sr-admin-login-input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 1px 0 rgba(25, 50, 100, 0.02);
  padding: 0 14px;
  gap: 11px;
  color: var(--sr-ink);
}
.sr-admin-login-screen
  .sr-admin-login-input:focus-within:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-color: #6480ef;
  box-shadow: 0 0 0 3px rgba(80, 105, 225, 0.1);
}
.sr-admin-login-screen
  .sr-admin-login-input
  > svg:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--sr-ink);
}
.sr-admin-login-screen
  .sr-admin-login-input
  input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--sr-ink);
  font-family: Inter, Arial, sans-serif;
}
.sr-admin-login-screen
  .sr-admin-login-input
  input:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  )::placeholder {
  color: var(--sr-ink);
  opacity: 1;
}
.sr-admin-login-screen
  .sr-admin-login-eye:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-right: -5px;
  border: 0;
  background: transparent;
  color: var(--sr-ink);
  cursor: pointer;
  border-radius: 9px;
}
.sr-admin-login-screen
  .sr-admin-login-actions:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.sr-admin-login-screen
  .sr-admin-login-forgot:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border: 0;
  background: transparent;
  color: #3e45d8;
  font-weight: 750;
  padding: 5px 0;
  cursor: pointer;
}
.sr-admin-login-screen
  .sr-admin-login-submit:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: linear-gradient(100deg, #176fe8 0%, #6239ec 56%, #c92bdc 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(84, 60, 220, 0.2);
}
.sr-admin-login-screen
  .sr-admin-login-submit
  svg:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 19px;
  height: 19px;
}
.sr-admin-login-screen
  .sr-admin-login-footer:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 13px;
  border-top: var(--sr-stroke-thin) solid rgba(92, 111, 157, 0.16);
  color: var(--sr-ink);
  font-size: 11px;
}
.sr-admin-login-screen
  .sr-admin-login-footer
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sr-admin-login-screen
  .auth-error:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 100%;
  margin: 0 0 14px;
}
.image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 15, 30, 0.78);
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  cursor: zoom-out;
}
.image-preview-dialog {
  width: 90vw;
  height: 90vh;
  height: 90dvh;
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
  min-width: 0;
  min-height: 0;
}
.image-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  color: #fff;
  flex-wrap: wrap;
}
.image-preview-toolbar button {
  height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 9px;
  background: white;
  color: var(--sr-ink);
  display: grid;
  place-items: center;
  padding: 8px;
  cursor: pointer;
}
.image-preview-title {
  margin-right: auto;
  color: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
  font-size: 14px;
  min-width: 0;
}
.image-preview-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  text-align: center;
}
.image-preview-stage img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  border-radius: 0;
}
.sr-notification-item:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}
.sr-notification-item
  > *:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  pointer-events: none;
}
#applicationsSection:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
),
#applicationsSection
  .card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
#applicationsSection
  .table-wrap:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  height: auto !important;
  min-height: 0 !important;
}
#applicationsSection
  .empty:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  height: auto !important;
  min-height: 0 !important;
  padding: 20px 16px !important;
}
#applicationsSection
  + #activeLoansSection:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  margin-top: 22px !important;
}
.table-action-toolbar.table-action-shell:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}
.table-action-toolbar
  .toolbar-left:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-right: auto;
  min-width: 0;
}
.table-action-toolbar
  .toolbar-right:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}
#staffManagementTableSection:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  margin-top: 0 !important;
}
@media (max-width: 760px) {
  .table-action-toolbar.table-action-shell:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    flex-wrap: wrap;
  }
  .table-action-toolbar
    .toolbar-left:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ),
  .table-action-toolbar
    .toolbar-right:where(
      :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
    ) {
    width: 100%;
    margin: 0;
  }
  .table-action-toolbar
    .toolbar-left
    .search:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    width: 100%;
    max-width: none;
  }
}

#applicationsSection
  .table-card:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
#applicationsSection
  .table-wrap:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
#applicationsSection
  table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
#applicationsSection
  tbody:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
#applicationsSection
  tr:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
#applicationsSection
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-height: 0 !important;
  height: auto !important;
}
#applicationsSection
  tbody
  tr:has(.empty)
  td:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 0 !important;
  height: auto !important;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
#applicationsSection
  tbody
  .empty:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 16px !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.4 !important;
}

.image-upload-progress:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  margin-right: auto;
}
.image-upload-progress-track:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  width: 120px;
  height: 5px;
  border-radius: 999px;
  background: #e7edf7;
  overflow: hidden;
}
.image-upload-progress-track
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2468e8, #7b22e8);
  transition: width 0.18s ease;
}
.image-upload-progress
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10px !important;
  color: var(--sr-ink) !important;
  white-space: nowrap !important;
}
.photo-capture-field:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  grid-column: 1/-1 !important;
}
.photo-capture-row:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
.photo-capture-actions:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: flex !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
}
.photo-action:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  min-height: 38px !important;
  padding: 0 11px !important;
}
.compact-photo-preview-box:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  width: 78px !important;
  height: 78px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f1f5fb !important;
  border: var(--sr-stroke-thin) solid var(--ui-border) !important;
  display: grid !important;
  place-items: center !important;
  color: var(--sr-ink) !important;
  font-size: 10px !important;
}
.compact-photo-preview:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
}
.compact-photo-preview
  img:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block !important;
  object-fit: cover !important;
}
@media (max-width: 560px) {
  .image-upload-progress:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    order: 3;
    width: 100%;
    margin: 0 0 4px;
  }
  .photo-capture-row:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    align-items: flex-start;
  }
  .photo-capture-actions:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    flex: 1 1 180px;
  }
  .photo-action:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
    flex: 1 1 auto;
  }
}

:root {
  --sf-ink: #112d66;
  --sf-ink-2: #5f6f8d;
  --sf-muted: #7c89a5;
  --sf-bg: #f5f8ff;
  --sf-card: #ffffff;
  --sf-line: #dfe7f5;
  --sf-blue: #1769e8;
  --sf-purple: #7027ed;
  --sf-pink: #e51ba6;
  --sf-green: #10a765;
  --sf-orange: #f29a0a;
  --sf-red: #d91e58;
  --sf-shadow: 0 10px 28px rgba(28, 57, 122, 0.075);
  --sf-shadow-sm: 0 5px 16px rgba(28, 57, 122, 0.055);
  --sf-radius: 18px;
}

.statline:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 0 !important;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border) !important;
  font-size: 11px !important;
}
.statline
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--sr-ink);
}
.statline b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  color: var(--sr-ink);
}
.reference-empty:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  border: var(--sr-stroke-thin) dashed var(--ui-border) !important;
  border-radius: 18px !important;
  padding: 30px 18px !important;
  background: rgba(255, 255, 255, 0.75) !important;
  text-align: center !important;
  color: var(--sr-ink) !important;
}

.staff-summary-grid:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}
.staff-summary-grid
  > div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  border: var(--sr-stroke-thin) solid var(--ui-border) !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: var(--sf-shadow-sm) !important;
}
.staff-summary-grid
  > div:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  padding: 15px !important;
}
.staff-summary-grid
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 10px !important;
  color: var(--sr-ink) !important;
}
.staff-summary-grid
  b:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block !important;
  margin-top: 5px !important;
  font-size: 20px !important;
  color: var(--sr-ink) !important;
}
.staff-summary-grid
  small:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  font-size: 9px !important;
  color: var(--sr-ink) !important;
}

.portfolio-loan-right:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  text-align: right !important;
}
.portfolio-loan-right
  strong:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block !important;
  color: var(--sr-ink) !important;
  font-size: 15px !important;
}
.portfolio-loan-right
  span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block !important;
  color: #078e57 !important;
  font-size: 9px !important;
  margin-top: 4px !important;
}

@media (max-width: 560px) {
  .portfolio-loan-right
    strong:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 13px !important;
  }
  .portfolio-loan-right
    span:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
    font-size: 8px !important;
  }
}


body:not(.login-active)
  .table-card
  .table:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  table-layout: auto;
}
.photo-capture-field:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
),
.photo-capture-row:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
),
.compact-photo-preview-box:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  max-width: 100%;
  min-width: 0;
}
.compact-photo-preview-box:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  height: auto !important;
  min-height: 78px !important;
  aspect-ratio: 1/1;
}
.compact-photo-preview
  img:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
.entity:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  min-width: 0;
}
.entity
  > .photo-avatar-button.mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.entity
  .photo-avatar-button.mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.photo-avatar-button.mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  flex: 0 0 44px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: inline-grid !important;
  place-items: center !important;
}
.photo-avatar-button.mini-avatar
  img:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.form-grid
  > label:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.form-grid
  > label
  > input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}
.form-grid
  > label
  > input:focus:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  border-color: #7a55e8;
  box-shadow: 0 0 0 3px rgba(122, 85, 232, 0.12);
}

.password-field-wrap:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}
.password-field-wrap
  > input:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-right: 48px !important;
}
.password-field-wrap
  > .password-eye-btn:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sr-ink) !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  z-index: 2 !important;
  -webkit-tap-highlight-color: transparent;
}
.password-field-wrap
  > .password-eye-btn:hover:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  background: rgba(36, 86, 176, 0.06) !important;
}
.password-field-wrap
  > .password-eye-btn:focus-visible:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  outline: 2px solid rgba(80, 75, 220, 0.35) !important;
  outline-offset: 1px !important;
}
.password-field-wrap
  > .password-eye-btn
  svg:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  width: 18px !important;
  height: 18px !important;
  pointer-events: none !important;
}
.image-upload-progress[hidden]:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  display: none !important;
}

.customer-document-preview:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
),
.document-preview:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
),
.photo-preview:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  max-width: 100% !important;
  overflow: hidden !important;
}
.document-preview
  img:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.photo-preview
  img:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
.entity
  .mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ),
.entity
  .photo-avatar-button.mini-avatar:where(
    :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
  ) {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  aspect-ratio: 1/1 !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  flex: 0 0 44px !important;
}
.entity
  .mini-avatar
  img:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)),
.entity
  .photo-avatar-button.mini-avatar
  img:where(:not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.notification-target:where(
  :not(.admin-app, .admin-app *, .staff-mode, .staff-mode *)
) {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
  transition: outline 0.2s ease;
}
body:has(.admin-app) {
  background: #f2f6fd;
  color: var(--sr-ink);
}
.admin-app {
  --blue: #4868dc;
  --blue-2: #9563de;
  --danger: #e65d87;
  --muted: var(--sr-ink);
  --line: var(--ui-border);
  --text: var(--sr-ink);
  display: flex;
  min-height: 100vh;
  font-size: 13px;
  line-height: 1.5;
  background: radial-gradient(at 95% 0, #f8eaf8, transparent 45%), #f2f6fd;
}
.admin-app * {
  box-sizing: border-box;
  min-width: 0;
}
.admin-app button,
.admin-app input,
.admin-app select,
.admin-app textarea {
  font: inherit;
}
.admin-app button {
  cursor: pointer;
}
.admin-app button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-app svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.admin-app .side {
  width: 248px;
  position: fixed;
  inset: 0 auto 0 0;
  background: linear-gradient(155deg, #122b68 0%, #243a88 48%, #392d83 100%);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: 8px 0 28px #293b7010;
}
.admin-app .side-head {
  padding: 27px 22px;
}
.admin-app .brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.admin-app .brand img {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: white;
  padding: 4px;
}
.admin-app .side-nav {
  overflow: auto;
  flex: 1;
  padding: 7px 13px;
}
.admin-app .nav {
  display: grid;
  gap: 7px;
}
.admin-app .nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #dfe7ff;
  text-align: left;
  padding: 14px 13px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 12px;
  position: relative;
}
.admin-app .nav button:hover {
  background: #ffffff14;
}
.admin-app .nav button.active {
  background: linear-gradient(105deg, #ed6ea9, #9468df 54%, #4880e3);
  color: white;
  box-shadow: 0 6px 15px #07133b30;
}
.admin-app .nav button.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  background: white;
  border-radius: 5px;
}
.admin-app .badge-count {
  margin-left: auto;
  background: #fff3;
  border-radius: 20px;
  padding: 1px 6px;
}
.admin-app .main {
  margin-left: 248px;
  width: calc(100% - 248px);
  min-width: 0;
}
.admin-app .top {
  height: 76px;
  background: #ffffffed;
  border-bottom: var(--sr-stroke-thin) solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px;
}
.admin-app .top h1 {
  font-size: 19px;
  margin: 0;
}
.admin-app .top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.admin-app .global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f3f6fc;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 24px;
  padding: 8px 14px;
}
.admin-app .global-search input {
  outline: 0;
  width: 170px;
  min-height: 24px;
}
.admin-app .user-chip {
  display: flex;
  gap: 9px;
  align-items: center;
}
.admin-app .user-copy b,
.admin-app .user-copy small {
  display: block;
}
.admin-app .user-copy small {
  color: var(--muted);
  font-size: 10px;
}
.admin-app .avatar {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eddafa, #e0ebff);
  color: var(--sr-ink);
  font-weight: 800;
  object-fit: cover;
}
.admin-app .icon-btn {
  border: var(--sr-stroke-thin) solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 9px;
  color: var(--sr-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.admin-app .nav-toggle,
.admin-app .nav-scrim {
  display: none;
}
.admin-app .content {
  padding: 26px 30px 40px;
  max-width: 2000px;
  margin: auto;
}
.admin-app .page-head {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(112deg, #e0edff 0%, #eeebff 56%, #f8e4f0);
  border: var(--sr-stroke-thin) solid var(--ui-border);
  box-shadow: 0 5px 15px #526ca30b;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
  min-height: 156px;
  overflow: hidden;
}
.admin-app .page-emblem {
  width: 70px;
  height: 70px;
  border-radius: 19px;
  background: linear-gradient(135deg, #fafcff, #cbd9fc);
  box-shadow:
    0 9px 20px #607dd12a,
    inset 0 1px white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d79d7;
  flex-shrink: 0;
}
.admin-app .page-copy,
.admin-app .admin-dashboard-hero-copy {
  flex: 1;
  z-index: 1;
}
.admin-app .page-head h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 3px 0 8px;
  font-weight: 800;
  color: var(--sr-ink);
}
.admin-app .page-head p {
  margin: 0;
  color: var(--sr-ink);
  font-size: 13px;
  max-width: 580px;
}
.admin-app .eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--sr-ink);
}
.admin-app .page-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 1;
}
.admin-app h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--sr-ink);
  letter-spacing: -0.3px;
}
.admin-app p {
  margin: 5px 0;
  color: var(--muted);
}
.admin-app .card {
  background: #fff;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 5px 18px #45658d08;
  min-width: 0;
}
.admin-app .table-card {
  padding: 0;
  overflow: hidden;
}
.admin-app .card-head,
.admin-app .section-head,
.admin-app .loan-portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-app .table-card > .card-head {
  padding: 19px 22px;
  margin: 0;
}
.admin-app .card-head p,
.admin-app .section-head p {
  font-size: 12px;
  margin: 4px 0 0;
}
.admin-app .card-title {
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 14px;
}
.admin-app .admin-table-header {
  flex-wrap: nowrap;
}
.admin-app .admin-table-controls,
.admin-app .row-actions,
.admin-app .staff-filter-bar,
.admin-app .page-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.admin-app .admin-table-controls {
  margin-left: auto;
  flex-shrink: 0;
}
.admin-app .admin-table-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-app .admin-table-filter label,
.admin-app .field label,
.admin-app .form-grid > label {
  font-size: 12px;
  font-weight: 650;
  color: var(--sr-ink);
}
.admin-app .admin-table-filter select {
  min-width: 150px;
}
.admin-app .staff-management-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}
.admin-app .staff-filter-bar {
  flex-wrap: wrap;
}
.admin-app .row-actions {
  flex-wrap: wrap;
  align-items: center;
}
.admin-app .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 9px;
  background: white;
  color: var(--sr-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px #45658d05;
}
.admin-app .btn:hover {
  filter: brightness(0.97);
}
.admin-app .btn.primary {
  background: linear-gradient(110deg, #8471e3, #447ce4);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 10px #617ed326;
}
.admin-app .btn.success {
  background: #e5f7ef;
  color: #23865f;
  border-color: var(--ui-border);
}
.admin-app .btn.danger {
  background: #fff0f3;
  color: #d45077;
  border-color: #f6dce4;
}
.admin-app .table-action-btn,
.admin-app .btn[onclick*="print"],
.admin-app .btn[onclick*="Print"] {
  background: #ffe7f1;
  color: #cf5c91;
  border-color: var(--ui-border);
}
.admin-app .link {
  border: 0;
  background: transparent;
  color: #627bd1;
  font-weight: 700;
  font-size: 12px;
  padding: 3px;
  white-space: nowrap;
}
.admin-app input:not([type="checkbox"]):not([type="radio"]),
.admin-app select,
.admin-app textarea {
  height: 40px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 9px;
  background: #fff;
  color: var(--sr-ink);
  padding: 8px 11px;
  max-width: 100%;
  outline: none;
}
.admin-app textarea {
  height: 90px;
}
.admin-app input:focus,
.admin-app select:focus,
.admin-app textarea:focus {
  border-color: #9b94e9;
  box-shadow: 0 0 0 3px #8b7de411;
}
.admin-app .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-app .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admin-app .form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.admin-app .business-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-app .business-settings-form {
  margin-top: 22px;
}
.admin-app .settings-list {
  display: grid;
  gap: 10px;
}
.admin-app .settings-list > label,
.admin-app .setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 11px;
}
.admin-app .setting-row small {
  display: block;
  color: var(--muted);
}
.admin-app .table-wrap,
.admin-app .schedule {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.admin-app table {
  width: 100%;
  border: var(--sr-stroke-thin) solid var(--ui-border-strong);
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.admin-app table th {
  background: var(--ui-table-head);
  color: var(--sr-ink);
  font-weight: 750;
  padding: 14px 15px;
  white-space: nowrap;
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app table td {
  padding: 15px;
  vertical-align: middle;
  color: var(--sr-ink);
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-app table tbody tr:hover {
  background: var(--ui-row-hover);
}
.admin-app table td b {
  color: var(--sr-ink);
}
.admin-app .table .btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}
.admin-app .table-action-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 18px;
}
.admin-app .empty {
  padding: 35px 18px;
  text-align: center;
  color: var(--sr-ink);
}
.admin-app .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 4px 9px;
  background: #e9f0ff;
  color: #587bce;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-app .pill.success,
.admin-app .pill.active,
.admin-app .pill.paid,
.admin-app .pill.approved {
  background: #e5f7ed;
  color: #398363;
}
.admin-app .pill.warning,
.admin-app .pill.pending {
  background: #fff2dd;
  color: #b68a3f;
}
.admin-app .pill.danger,
.admin-app .pill.overdue,
.admin-app .pill.rejected {
  background: #ffeaf0;
  color: #cf6086;
}
.admin-app .date-chip,
.admin-app .portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 8px;
  background: #ffffffa6;
  color: var(--sr-ink);
  font-size: 11px;
  white-space: nowrap;
}
.admin-app .metric-grid,
.admin-app .dashboard-kpis,
.admin-app .collection-cards-grid,
.admin-app .summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.admin-app .metric-card,
.admin-app .summary-tile,
.admin-app .collection-summary-card {
  display: block;
  text-align: left;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: linear-gradient(125deg, #fff, #e8f0ff);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 12px #5678a809;
  color: var(--sr-ink);
  position: relative;
  overflow: hidden;
}
.admin-app .metric-card:nth-child(4n + 2) {
  background: linear-gradient(125deg, #fff, #ece6fb);
  border-color: var(--ui-border);
}
.admin-app .metric-card:nth-child(4n + 3) {
  background: linear-gradient(125deg, #fff, #fce8f1);
  border-color: var(--ui-border);
}
.admin-app .metric-card:nth-child(4n + 4) {
  background: linear-gradient(125deg, #fff, #e3f5f5);
  border-color: var(--ui-border);
}
.admin-app .metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.admin-app .metric-icon,
.admin-app .portfolio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffffa0;
  border: var(--sr-stroke-thin) solid #ffffff;
  border-radius: 12px;
  width: 39px;
  height: 39px;
  color: #6c83cf;
  box-shadow: 0 4px 9px #7589b714;
}
.admin-app .metric-arrow {
  color: var(--sr-ink);
}
.admin-app .metric-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--sr-ink);
}
.admin-app .metric-value {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-top: 5px;
}
.admin-app .metric-sub {
  font-size: 10px;
  color: var(--sr-ink);
  margin-top: 6px;
}
.admin-app .summary-tile small,
.admin-app .summary-tile b {
  display: block;
}
.admin-app .summary-tile b {
  font-size: 25px;
  margin-top: 8px;
}
.admin-app .summary-tile small {
  color: var(--muted);
}
.admin-app .tabs,
.admin-app .collection-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.admin-app .tabs button,
.admin-app .collection-tab {
  padding: 12px 17px;
  background: white;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 10px;
  color: var(--sr-ink);
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-app .tabs button.active,
.admin-app .collection-tab.active {
  background: linear-gradient(110deg, #dd78b7, #927be2, #5591eb);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 9px #777fd126;
}
.admin-app .report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-app .report-grid .metric-card {
  padding: 16px;
}
.admin-app .report-grid .metric-card.selected {
  outline: 2px solid #9684df;
  outline-offset: -2px;
}
.admin-app .dashboard-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
.admin-app .top-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.admin-app .three-tables {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-app .three-tables .card-head {
  flex-wrap: wrap;
}
.admin-app .three-tables .table {
  font-size: 10px;
}
.admin-app .three-tables .table td,
.admin-app .three-tables .table th {
  padding: 10px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app .chart-total {
  font-size: 24px;
  font-weight: 800;
  margin: 12px 0;
}
.admin-app .chart-total small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.admin-app .line-chart {
  height: 100px;
  margin-top: 20px;
}
.admin-app .line-chart svg {
  height: 100%;
  width: 100%;
}
.admin-app .chart-area {
  fill: #e7edff;
}
.admin-app .chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--sr-ink);
  font-size: 10px;
  margin-top: 9px;
}
.admin-app .donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
}
.admin-app .donut {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.admin-app .donut > div {
  background: white;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.admin-app .donut b {
  font-size: 23px;
}
.admin-app .donut span {
  font-size: 9px;
  color: var(--muted);
}
.admin-app .legend {
  flex: 1;
  font-size: 10px;
}
.admin-app .legend > div {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
}
.admin-app .legend i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
}
.admin-app .legend b {
  margin-left: auto;
}
.admin-app .bar-chart {
  display: flex;
  justify-content: space-around;
  padding-top: 8px;
}
.admin-app .bar-item {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.admin-app .bar-track {
  height: 115px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.admin-app .bar-track i {
  display: block;
  width: 43px;
  border-radius: 7px 7px 0 0;
}
.admin-app .bar-value {
  font-weight: 800;
  color: var(--sr-ink);
  margin-bottom: 5px;
}
.admin-app .loan-portfolio-section {
  margin-top: 26px;
}
.admin-app .portfolio-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.admin-app .portfolio-feature {
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(115deg, #edf3ff, #f3ebfc);
  text-align: left;
  color: var(--sr-ink);
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 14px;
}
.admin-app .portfolio-feature .portfolio-icon {
  grid-row: span 3;
}
.admin-app .portfolio-feature strong {
  font-size: 26px;
}
.admin-app .portfolio-feature small {
  color: var(--muted);
}
.admin-app .portfolio-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}
.admin-app .portfolio-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 12px;
  background: white;
  text-align: left;
  padding: 17px;
  color: var(--sr-ink);
}
.admin-app .portfolio-mini small,
.admin-app .portfolio-mini b {
  display: block;
}
.admin-app .portfolio-mini b {
  font-size: 18px;
  color: var(--sr-ink);
}
.admin-app .portfolio-mini small {
  color: var(--muted);
  font-size: 11px;
}
body:has(.admin-app) .modal-head {
  background: linear-gradient(110deg, #e6efff, #f4e8f7);
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  padding: 22px;
}
body:has(.admin-app) .modal-body {
  padding: 22px;
}
body:has(.admin-app) .modal-foot {
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
  background: #f8faff;
  padding: 16px 22px;
}
body:has(.admin-app) .modal-card .btn.primary {
  background: linear-gradient(110deg, #8871de, #4c7be1);
  border-color: transparent;
}
body:has(.admin-app) .modal-card input,
body:has(.admin-app) .modal-card select {
  border-radius: 9px;
  min-height: 40px;
}

.admin-app .metric-grid:not(.cols-4) {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.admin-app .collection-tab-panel {
  display: none;
}
.admin-app .collection-tab-panel.active {
  display: block;
}
.admin-app .section {
  margin-top: 22px;
}
.admin-app .side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-top: var(--sr-stroke-thin) solid #ffffff20;
}
.admin-app .side-user-copy {
  flex: 1;
  font-size: 11px;
}
.admin-app .side-user-copy div {
  color: #b4c5ed;
  font-size: 9px;
}
.admin-app .side-user .icon-btn {
  background: #ffffff12;
  color: #dce5ff;
  border-color: #ffffff20;
}
.admin-app .entity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-app .entity small {
  display: block;
  color: var(--sr-ink);
  font-size: 10px;
}
.admin-app .mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #eaf0ff;
  color: #768dca;
}
.admin-app .toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 20px;
}
.admin-app .toolbar-left,
.admin-app .toolbar-right {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-app .toolbar-left {
  flex: 1;
}
.admin-app .toolbar-left .search {
  width: 100%;
  min-width: 200px;
}
.admin-app .customer-staff-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--sr-ink);
}
.admin-app .detail-grid,
.admin-app .kv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.admin-app .detail-grid span,
.admin-app .detail-grid b,
.admin-app .kv small,
.admin-app .kv b {
  display: block;
}
.admin-app .detail-grid span,
.admin-app .kv small {
  font-size: 11px;
  color: var(--muted);
}
.admin-app .detail-grid b {
  font-size: 22px;
  margin-top: 6px;
}
.admin-app .notification-badge {
  position: absolute;
  right: 2px;
  top: 0;
  background: #e879a8;
  color: white;
  border-radius: 10px;
  font-size: 8px;
  min-width: 12px;
}
.admin-app .global-search input {
  border: 0;
  background: transparent;
  height: 25px;
  box-shadow: none;
  padding: 0;
  width: 235px;
}
.admin-app .global-search kbd {
  font-size: 9px;
  color: var(--sr-ink);
}
.admin-app .pill.green {
  background: #e3f5ed;
  color: #398362;
}
.admin-app .pill.amber {
  background: #fff1db;
  color: #b3873d;
}
.admin-app .pill.red {
  background: #fde7ef;
  color: #c66887;
}

.admin-app .switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.admin-app .switch input {
  opacity: 0;
  width: 42px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.admin-app .slider {
  position: absolute;
  inset: 0;
  background: #dce4f2;
  border-radius: 20px;
  pointer-events: none;
}
.admin-app .slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px #40567820;
  transition: transform 0.2s;
}
.admin-app .switch input:checked + .slider {
  background: linear-gradient(110deg, #ae83dd, #638bea);
}
.admin-app .switch input:checked + .slider:before {
  transform: translateX(18px);
}
.admin-app .switch input:focus-visible + .slider {
  outline: 2px solid #7063d5;
  outline-offset: 3px;
}
.admin-app.admin-route-dashboard {
  --blue: #1278f6;
  --blue-2: #f35a9d;
  --danger: #f64674;
  --muted: var(--sr-ink);
  --line: var(--ui-border);
  background: #f3f8ff;
  color: var(--sr-ink);
  font-family: Manrope, Arial, sans-serif;
}

.admin-app.admin-route-dashboard .top {
  height: 54px;
  padding: 0 46px;
  background: #fff;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app.admin-route-dashboard .global-search {
  width: 485px;
  height: 38px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: #f9fbff;
  border-radius: 22px;
  padding: 6px 12px;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .global-search input {
  width: 100%;
  font-size: 12px;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .global-search kbd {
  padding: 3px 7px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 7px;
  background: #fff;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .top-right {
  gap: 18px;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .top-right .icon-btn {
  padding: 5px;
  border: 0;
  background: none;
  color: var(--sr-ink);
  box-shadow: none;
}
.admin-app.admin-route-dashboard .top-right .avatar {
  width: 35px;
  height: 35px;
  background: #f2f6ff;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .user-copy b {
  color: var(--sr-ink);
  font-size: 12px;
}
.admin-app.admin-route-dashboard .user-copy small {
  font-size: 10px;
}
.admin-app.admin-route-dashboard .notification-badge {
  background: #f01991;
}
.admin-app.admin-route-dashboard .content {
  max-width: none;
  padding: 8px 46px 42px;
}
.admin-app.admin-route-dashboard .dashboard-page-head {
  height: auto;
  min-height: 94px;
  margin-bottom: 12px;
  padding: 13px 29px;
  gap: 12px 24px;
  flex-wrap: wrap;
  border-radius: 14px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: #f3f8ff;
  box-shadow: 0 5px 15px #4875b60d;
}
.admin-app.admin-route-dashboard .dashboard-hero-art {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.admin-app.admin-route-dashboard .dashboard-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 20%,
    rgba(0, 0, 0, 0.48) 45%,
    #000 72%
  );
}
.admin-app.admin-route-dashboard .admin-dashboard-hero-copy {
  min-width: 0;
  flex: 1 1 350px;
  position: relative;
}
.admin-app.admin-route-dashboard .dashboard-page-head h2 {
  overflow-wrap: anywhere;
}
.admin-app.admin-route-dashboard .dashboard-page-head h2 {
  margin: 0 0 2px;
  color: var(--sr-ink);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.admin-app.admin-route-dashboard .dashboard-page-head p {
  margin: 0;
  color: var(--sr-ink);
  font-size: 12px;
  line-height: 1.4;
}
.admin-app.admin-route-dashboard .dashboard-hero-date {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-left: auto;
  background: #fff;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  color: var(--sr-ink);
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 5px 13px #213b8417;
  padding: 11px 14px;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection {
  gap: 11px;
  margin-bottom: 11px;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-card {
  min-height: 140px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 7px 17px #1f52a82a;
  isolation: isolate;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-card:after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 45%;
  height: 78%;
  background-position: right bottom;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}
.admin-app.admin-route-dashboard .collection-kpi-due {
  background: linear-gradient(115deg, #0676ff, #2caaff);
}
.admin-app.admin-route-dashboard .collection-kpi-due:after {
  background-image: url("/illustrations/kpi-due.svg");
}
.admin-app.admin-route-dashboard .collection-kpi-collected {
  background: linear-gradient(115deg, #00a78e, #00d4a7);
}
.admin-app.admin-route-dashboard .collection-kpi-collected:after {
  background-image: url("/illustrations/kpi-collected.svg");
}
.admin-app.admin-route-dashboard .collection-kpi-remaining {
  background: linear-gradient(115deg, #7717ec, #c047f7);
}
.admin-app.admin-route-dashboard .collection-kpi-remaining:after {
  background-image: url("/illustrations/kpi-remaining.svg");
}
.admin-app.admin-route-dashboard .collection-kpi-overdue {
  background: linear-gradient(115deg, #ef2055, #f76f8e);
}
.admin-app.admin-route-dashboard .collection-kpi-overdue:after {
  background-image: url("/illustrations/kpi-overdue.svg");
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-top {
  margin-bottom: 6px;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-icon {
  width: 40px;
  height: 40px;
  border: var(--sr-stroke-thin) solid #ffffff45;
  border-radius: 10px;
  background: #ffffff2b;
  color: white;
  box-shadow: none;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-icon svg {
  width: 21px;
  height: 21px;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-arrow {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: var(--sr-stroke-thin) solid #ffffff50;
  background: #ffffff25;
  color: #fff;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-label {
  font-size: 13px;
  font-weight: 750;
  color: #fff;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-value {
  font-size: 25px;
  margin: 0;
  color: #fff;
}
.admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-sub {
  font-size: 11px;
  margin-top: 0;
  color: #fff;
}
.admin-app.admin-route-dashboard .dashboard-grid {
  gap: 18px;
  margin-bottom: 20px;
  align-items: stretch;
}
.admin-app.admin-route-dashboard .top-grid {
  grid-template-columns: 1.75fr 1fr 1.16fr;
}
.admin-app.admin-route-dashboard .dashboard-grid .card {
  padding: 20px 18px;
  border: var(--sr-stroke-thin) solid var(--ui-border-strong);
  border-radius: 13px;
  box-shadow: 0 7px 18px #3c68a510;
  background: #fff;
}
.admin-app.admin-route-dashboard .top-grid .card {
  height: auto;
  min-height: 282px;
  display: flex;
  flex-direction: column;
}
.admin-app.admin-route-dashboard .dashboard-grid .card-head {
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-app.admin-route-dashboard .dashboard-grid h3 {
  font-size: 15px;
  line-height: 1.2;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .dashboard-grid .card-head p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .chart-card .date-chip {
  padding: 7px 11px;
  border-radius: 18px;
  color: var(--sr-ink);
  font-size: 10px;
}
.admin-app.admin-route-dashboard .chart-total {
  font-size: 22px;
  margin: 6px 0 12px;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .chart-total small {
  font-size: 10px;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .line-chart {
  height: 126px;
  min-height: 126px;
  flex: 1;
  margin-top: 2px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 calc(14.28% - 1px),
      #e3edff calc(14.28% - 1px) 14.28%
    ),
    linear-gradient(#f5f9ff, #fff);
}
.admin-app.admin-route-dashboard .chart-area {
  fill: #e8f2ff;
}
.admin-app.admin-route-dashboard .chart-labels {
  font-size: 9px;
  color: var(--sr-ink);
  margin-top: 12px;
  gap: 6px;
}
.admin-app.admin-route-dashboard .donut-wrap {
  padding: 12px 0;
  gap: 18px;
  flex: 1;
  justify-content: center;
  align-content: center;
}
.admin-app.admin-route-dashboard .donut {
  width: 132px;
  height: auto;
  aspect-ratio: 1;
  flex: 0 1 132px;
}
.admin-app.admin-route-dashboard .donut > div {
  width: 74.2424%;
  height: 74.2424%;
}
.admin-app.admin-route-dashboard .donut b {
  font-size: 25px;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .donut span {
  font-size: 9px;
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .legend {
  font-size: 10px;
  color: var(--sr-ink);
  min-width: 88px;
}
.admin-app.admin-route-dashboard .legend > div {
  margin: 12px 0;
}
.admin-app.admin-route-dashboard .legend b {
  color: var(--sr-ink);
}
.admin-app.admin-route-dashboard .bar-chart {
  padding: 6px 0 4px;
  gap: 18px;
  flex: 1;
  align-items: flex-end;
}
.admin-app.admin-route-dashboard .bar-track {
  height: 142px;
  margin: 10px 0;
}
.admin-app.admin-route-dashboard .bar-track i {
  width: 38px;
  border-radius: 7px 7px 2px 2px;
}
.admin-app.admin-route-dashboard .bar-value {
  color: var(--sr-ink);
  font-size: 10px;
}
.admin-app.admin-route-dashboard .bar-item {
  font-size: 10px;
  color: var(--sr-ink);
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.admin-app.admin-route-dashboard .three-tables {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-app.admin-route-dashboard .three-tables .card {
  height: auto;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.admin-app.admin-route-dashboard .three-tables .card-head {
  padding: 20px 18px 16px;
  margin: 0;
}
.admin-app.admin-route-dashboard .three-tables .table {
  font-size: 10px;
}
.admin-app.admin-route-dashboard .three-tables .table th {
  padding: 12px 11px;
  background: var(--ui-table-head);
  color: var(--sr-ink);
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app.admin-route-dashboard .three-tables .table td {
  padding: 13px 9px;
  white-space: normal;
  overflow-wrap: anywhere;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app.admin-route-dashboard .three-tables .empty {
  padding: 48px 12px;
  min-height: 184px;
  display: grid;
  place-items: center;
  color: var(--sr-ink);
  font-size: 11px;
}
.admin-app.admin-route-dashboard .three-tables .link {
  color: #075ff0;
  font-size: 11px;
}

.admin-app.admin-route-dashboard .three-tables .table-wrap {
  max-height: 320px;
  overflow: auto;
  flex: 0 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border-radius: 0 0 13px 13px;
}
.admin-app.admin-route-dashboard .three-tables thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.admin-app.admin-route-dashboard .three-tables .card-head {
  flex-shrink: 0;
}
.admin-app.admin-route-dashboard .three-tables .table {
  table-layout: auto;
  min-width: 410px;
}
.admin-app.admin-route-dashboard .three-tables .entity {
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  min-width: 115px;
}
.admin-app.admin-route-dashboard .three-tables .pill {
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: 9px;
  padding: 4px 6px;
}
.admin-app.admin-route-dashboard .loan-portfolio-section {
  margin-top: 0;
  padding: 24px;
  border-radius: 14px;
  background:
    radial-gradient(90% 100% at 80% 0, #44229b88, transparent 75%),
    linear-gradient(120deg, #0a1d68, #111e78 54%, #121a72);
  box-shadow: 0 10px 20px #152b7050;
  color: white;
}
.admin-app.admin-route-dashboard .loan-portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 22px;
}
.admin-app.admin-route-dashboard .loan-portfolio-head > div {
  min-width: 0;
  flex: 1 1 260px;
}
.admin-app.admin-route-dashboard .loan-portfolio-head .eyebrow {
  font-size: 9px;
  line-height: 1.5;
  color: #d0dbff;
  margin-bottom: 5px;
}
.admin-app.admin-route-dashboard .loan-portfolio-head h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 5px;
}
.admin-app.admin-route-dashboard .loan-portfolio-head p {
  color: #c9d5ff;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.admin-app.admin-route-dashboard .portfolio-badge {
  border-color: #ffffff58;
  background: #ffffff24;
  color: white;
  font-size: 10px;
  padding: 9px 14px;
  flex-shrink: 0;
}
.admin-app.admin-route-dashboard .portfolio-feature-grid {
  gap: 16px;
  align-items: stretch;
}
.admin-app.admin-route-dashboard .portfolio-feature {
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  gap: 5px 16px;
  min-width: 0;
  min-height: 116px;
  padding: 20px 18px;
  border: var(--sr-stroke-thin) solid #ffffff35;
  border-radius: 12px;
  color: white;
  background: linear-gradient(105deg, #175fdf, #047cf6);
  font-size: 12px;
  line-height: 1.4;
}
.admin-app.admin-route-dashboard .portfolio-indigo {
  background: linear-gradient(105deg, #5525d5, #3d5de2);
}
.admin-app.admin-route-dashboard .portfolio-green {
  background: linear-gradient(105deg, #05aa92, #048f9c);
}
.admin-app.admin-route-dashboard .portfolio-feature .portfolio-icon {
  grid-column: 1;
  grid-row: 1/4;
  width: 48px;
  height: 48px;
  background: #ffffff20;
  border: var(--sr-stroke-thin) solid #ffffff2c;
  color: white;
}
.admin-app.admin-route-dashboard .portfolio-feature > span,
.admin-app.admin-route-dashboard .portfolio-feature strong,
.admin-app.admin-route-dashboard .portfolio-feature small {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-app.admin-route-dashboard .portfolio-feature strong {
  grid-row: 2;
  font-size: 25px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.admin-app.admin-route-dashboard .portfolio-feature small {
  grid-row: 3;
  color: #e2ebff;
  font-size: 11px;
  line-height: 1.5;
}
.admin-app.admin-route-dashboard .portfolio-mini-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  align-items: stretch;
}
.admin-app.admin-route-dashboard .portfolio-mini {
  min-width: 0;
  min-height: 86px;
  padding: 15px 12px;
  border-radius: 10px;
  border: var(--sr-stroke-thin) solid #ffffff25;
  background: #ffffff15;
  color: white;
  gap: 10px;
  align-items: center;
}
.admin-app.admin-route-dashboard .portfolio-mini > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: #ffffff25;
}
.admin-app.admin-route-dashboard .portfolio-mini > div {
  min-width: 0;
}
.admin-app.admin-route-dashboard .portfolio-mini small {
  color: #dce6ff;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.admin-app.admin-route-dashboard .portfolio-mini b {
  color: white;
  font-size: 15px;
  line-height: 1.4;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.admin-app.admin-route-dashboard .portfolio-feature:focus-visible,
.admin-app.admin-route-dashboard .portfolio-mini:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 1250px) {
  .admin-app.admin-route-dashboard .top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-app.admin-route-dashboard .top-grid .bar-card {
    grid-column: 1/-1;
  }
  .admin-app.admin-route-dashboard .portfolio-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .admin-app.admin-route-dashboard .three-tables {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .admin-app.admin-route-dashboard .content {
    padding: 8px 20px 35px;
  }
  .admin-app.admin-route-dashboard .top {
    padding: 0 20px;
  }
}
@media (max-width: 700px) {
  .admin-app.admin-route-dashboard .top {
    height: 64px;
  }
  .admin-app.admin-route-dashboard .content {
    padding: 8px 12px 28px;
  }
  .admin-app.admin-route-dashboard .dashboard-page-head {
    height: auto;
    min-height: 118px;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }
  .admin-app.admin-route-dashboard .dashboard-hero-art {
    position: static;
    order: 3;
    width: 100%;
    aspect-ratio: 2206/713;
  }
  .admin-app.admin-route-dashboard .admin-dashboard-hero-copy {
    flex: 0 1 auto;
  }
  .admin-app.admin-route-dashboard .dashboard-page-head h2 {
    font-size: 23px;
  }
  .admin-app.admin-route-dashboard .dashboard-page-head p {
    font-size: 11px;
  }
  .admin-app.admin-route-dashboard .dashboard-hero-date {
    margin-left: 0;
    align-self: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }
  .admin-app.admin-route-dashboard .dashboard-kpis-collection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-card {
    min-height: 132px;
    padding: 12px;
  }
  .admin-app.admin-route-dashboard .dashboard-kpis-collection .metric-value {
    font-size: 22px;
  }
  .admin-app.admin-route-dashboard .top-grid,
  .admin-app.admin-route-dashboard .three-tables,
  .admin-app.admin-route-dashboard .portfolio-feature-grid {
    grid-template-columns: 1fr;
  }
  .admin-app.admin-route-dashboard .top-grid .bar-card {
    grid-column: auto;
  }
  .admin-app.admin-route-dashboard .top-grid .card {
    height: auto;
    min-height: 270px;
  }
  .admin-app.admin-route-dashboard .three-tables .card {
    height: auto;
    min-height: 290px;
  }
  .admin-app.admin-route-dashboard .loan-portfolio-section {
    padding: 20px 16px;
  }
  .admin-app.admin-route-dashboard .loan-portfolio-head {
    margin-bottom: 18px;
  }
  .admin-app.admin-route-dashboard .portfolio-feature {
    min-height: 108px;
    padding: 18px 16px;
  }
  .admin-app.admin-route-dashboard .portfolio-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
  }
  .admin-app.admin-route-dashboard .portfolio-mini {
    min-height: 96px;
    padding: 13px 10px;
    gap: 8px;
    align-items: flex-start;
  }
  .admin-app.admin-route-dashboard .portfolio-mini > span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}
@media (min-width: 1600px) {
  .admin-app .side {
    width: 270px;
  }
  .admin-app .main {
    margin-left: 270px;
    width: calc(100% - 270px);
  }
  .admin-app .content {
    padding: 30px 36px;
  }
  .admin-app .page-head {
    min-height: 178px;
  }
  .admin-app .page-head h2 {
    font-size: 32px;
  }
}
@media (max-width: 1200px) {
  .admin-app .side {
    width: 218px;
  }
  .admin-app .main {
    margin-left: 218px;
    width: calc(100% - 218px);
  }
  .admin-app .content {
    padding: 22px;
  }
  .admin-app .top {
    padding: 0 22px;
  }
  .admin-app .page-head {
    padding: 23px;
  }
  .admin-app .page-head h2 {
    font-size: 25px;
  }
  .admin-app .top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-app .bar-card {
    grid-column: span 2;
  }
  .admin-app .three-tables {
    grid-template-columns: 1fr;
  }
  .admin-app .three-tables .table {
    font-size: 12px;
  }
  .admin-app .business-settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1000px) {
  .admin-app .side {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .admin-app .main {
    margin-left: 0;
    width: 100%;
  }
  .admin-app .nav-toggle {
    display: inline-flex;
  }
  .nav-open .admin-app .side {
    transform: translateX(0);
  }
  .nav-open .admin-app .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #16265177;
    z-index: 49;
  }
  .admin-app .top h1 {
    margin-right: auto;
  }
  .admin-app .page-head {
    gap: 14px;
  }
  .admin-app .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .admin-app .metric-grid:not(.cols-4) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-app .detail-grid,
  .admin-app .kv-grid {
    grid-template-columns: 1fr;
  }
  .admin-app .toolbar-left,
  .admin-app .toolbar-right {
    width: 100%;
  }
  .admin-app .top {
    height: 65px;
    padding: 0 15px;
    gap: 10px;
  }
  .admin-app .top h1 {
    font-size: 15px;
  }
  .admin-app .top-right {
    gap: 9px;
  }
  .admin-app .global-search,
  .admin-app .user-copy,
  .admin-app .top-chevron {
    display: none;
  }
  .admin-app .content {
    padding: 16px 12px 28px;
  }
  .admin-app .page-head {
    padding: 20px 16px;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    min-height: 0;
  }
  .admin-app .page-emblem {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }
  .admin-app .page-emblem svg {
    width: 27px;
  }
  .admin-app .page-copy,
  .admin-app .admin-dashboard-hero-copy {
    flex-basis: calc(100% - 64px);
  }
  .admin-app .page-head h2 {
    font-size: 22px;
    letter-spacing: -0.5px;
  }
  .admin-app .page-head p {
    font-size: 11px;
  }
  .admin-app .page-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .admin-app .dashboard-hero-date {
    margin-left: 60px;
  }
  .admin-app .metric-grid,
  .admin-app .dashboard-kpis,
  .admin-app .collection-cards-grid,
  .admin-app .summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 17px;
  }
  .admin-app .metric-card,
  .admin-app .collection-summary-card,
  .admin-app .summary-tile {
    padding: 14px;
  }
  .admin-app .metric-value {
    font-size: 23px;
  }
  .admin-app .metric-label {
    font-size: 11px;
  }
  .admin-app .card {
    padding: 16px;
  }
  .admin-app .table-card {
    padding: 0;
  }
  .admin-app .card-head,
  .admin-app .section-head,
  .admin-app .loan-portfolio-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .admin-app .table-card > .card-head {
    padding: 16px;
  }
  .admin-app .admin-table-controls {
    flex-wrap: wrap;
    margin-left: 0;
    max-width: 100%;
    flex-shrink: 1;
  }
  .admin-app .admin-table-filter {
    flex: 1;
  }
  .admin-app .admin-table-filter select {
    min-width: 130px;
    width: 100%;
  }
  .admin-app table td,
  .admin-app table th {
    padding: 12px;
    white-space: nowrap;
    border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
    border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
  }
  .admin-app .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .admin-app .report-grid .metric-card {
    padding: 12px;
  }
  .admin-app .tabs,
  .admin-app .collection-tabs {
    gap: 7px;
  }
  .admin-app .tabs button,
  .admin-app .collection-tab {
    padding: 10px 12px;
    font-size: 11px;
    flex: 1 1 140px;
    justify-content: center;
    white-space: nowrap;
  }
  .admin-app .top-grid,
  .admin-app .portfolio-feature-grid,
  .admin-app .portfolio-mini-grid,
  .admin-app .business-settings-grid,
  .admin-app .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-app .bar-card {
    grid-column: auto;
  }
  .admin-app .portfolio-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-app .portfolio-mini {
    padding: 13px;
    gap: 8px;
  }
  .admin-app .portfolio-mini b {
    font-size: 16px;
  }
  .admin-app .staff-filter-bar > .field {
    flex: 1;
    min-width: 120px;
  }
  .admin-app .settings-list > label,
  .admin-app .setting-row {
    gap: 15px;
  }
  .admin-app .staff-management-controls {
    flex-wrap: wrap;
  }
  .admin-app .btn {
    padding: 9px 12px;
    font-size: 11px;
  }
}
@media print {
  .admin-app .side,
  .admin-app .top,
  .admin-app .page-actions,
  .admin-app .no-print,
  .admin-app .table-action-toolbar {
    display: none;
  }
  .admin-app .main {
    margin: 0;
    width: 100%;
  }
  .admin-app .content {
    padding: 0;
  }
  .admin-app .table-wrap {
    overflow: visible;
  }
}
.admin-app .daily-closing-metrics .metric-card {
  min-height: 156px;
}
.admin-app .daily-closing-metrics .metric-top {
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .admin-app .daily-closing-metrics .metric-card {
    min-height: 138px;
  }
  body:has(.admin-app) .modal-foot {
    gap: 8px;
    flex-wrap: wrap;
  }
  body:has(.admin-app) .modal-foot .btn {
    flex: 1 1 135px;
    justify-content: center;
  }
}
:root {
  --sr-stroke-thin: 0.75px;
  --sr-stroke-regular: 1.25px;
  --sr-stroke-medium: 1.5px;
  --sr-stroke-strong: 2.5px;
  --sr-stroke-heavy: 3.5px;
}
:is(
  .page-head,
  .top,
  .mobile-top,
  .mobile-hero,
  .staff-home-reference-hero,
  .staff-customers-reference-head,
  .staff-page-heading,
  .staff-payment-reference-head,
  .staff-detail-hero,
  .application-header,
  .print-brand
) {
  --sr-stroke-thin: 1px;
  --sr-stroke-regular: 1.5px;
  --sr-stroke-medium: 2px;
  --sr-stroke-strong: 3px;
  --sr-stroke-heavy: 4px;
}
.admin-app:not(.admin-route-dashboard) {
  --text: var(--sr-ink);
  --muted: var(--sr-ink);
  --line: var(--ui-border);
  color: var(--sr-ink);
  background:
    radial-gradient(65% 75% at 100% 10%, #eff4ff 0, transparent 70%), #f4f8ff;
  font-family: Manrope, Arial, sans-serif;
}
.layout.admin-app .side {
  width: 270px;
  background:
    radial-gradient(120% 80% at 115% 95%, #6712dd 0, transparent 60%),
    linear-gradient(165deg, #08137c 0%, #08228d 48%, #2512a0 78%, #3f05b6 100%);
  box-shadow: 3px 0 18px #071c7714;
}
.layout.admin-app .side:after {
  content: "";
  position: absolute;
  inset: auto -40px 75px;
  height: 280px;
  pointer-events: none;
  background: url("/illustrations/hero-waves.svg") center/cover no-repeat;
  transform: rotate(-20deg);
  opacity: 0.3;
  filter: saturate(2);
}
.layout.admin-app .side-head {
  padding: 17px 20px;
  min-height: 84px;
  border-bottom: var(--sr-stroke-thin) solid #ffffff20;
}
.layout.admin-app .brand {
  gap: 9px;
  font-size: 20px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.layout.admin-app .brand .official-logo {
  width: 216px;
  height: 50px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.layout.admin-app .side-nav {
  padding: 14px 8px;
  z-index: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.layout.admin-app .side-nav::-webkit-scrollbar {
  width: 5px;
}
.layout.admin-app .side-nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 5px;
}
.layout.admin-app .side:hover .side-nav {
  scrollbar-color: #fff transparent;
}
.layout.admin-app .side:hover .side-nav::-webkit-scrollbar-thumb {
  background: #fff;
}
.layout.admin-app .side-nav::-webkit-scrollbar-track {
  background: transparent;
}
.layout.admin-app .side-nav::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
@supports selector(::-webkit-scrollbar) {
  .layout.admin-app .side-nav,
  .layout.admin-app .side:hover .side-nav {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}
@media (hover: none) {
  .layout.admin-app .side:hover .side-nav {
    scrollbar-color: transparent transparent;
  }
  .layout.admin-app .side:hover .side-nav::-webkit-scrollbar-thumb {
    background: transparent;
  }
}
.layout.admin-app .side-head,
.layout.admin-app .side-user {
  flex-shrink: 0;
}
.layout.admin-app .nav {
  gap: 5px;
}
.layout.admin-app .nav button {
  height: auto;
  min-height: 49px;
  padding: 12px 14px;
  gap: 0;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #f6f8ff;
  border-radius: 11px;
}
.layout.admin-app .nav button svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.layout.admin-app .nav button > span:first-of-type {
  flex: 1;
  min-width: 0;
  line-height: 21px;
  white-space: normal;
}
.layout.admin-app .nav button > .badge-count {
  flex: none;
  min-width: 21px;
  margin-left: 3px;
  padding: 1px 3px;
  text-align: center;
}
.layout.admin-app .nav button.active {
  background: linear-gradient(100deg, #f008b8 0%, #8d23e8 47%, #1762fa 100%);
  box-shadow: 0 8px 20px #220a8e48;
}
.layout.admin-app .nav button.active:before {
  top: 9px;
  bottom: 9px;
  width: 4px;
  left: 0;
}

.layout.admin-app .side-user {
  z-index: 1;
  margin: 0 16px 16px;
  padding: 12px 8px;
  border: var(--sr-stroke-thin) solid #ffffff28;
  border-radius: 12px;
  background: #5c28c039;
  color: #fff;
}
.layout.admin-app .side-user-copy {
  font-size: 13px;
}
.layout.admin-app .side-user-copy div {
  font-size: 10px;
  color: #d7d4ff;
}
.layout.admin-app .side-user .avatar {
  width: 43px;
  height: 43px;
  background: linear-gradient(135deg, #ed34db, #2661ff);
  color: white;
}
.layout.admin-app .main {
  margin-left: 270px;
  width: calc(100% - 270px);
}
.admin-app:not(.admin-route-dashboard) .top {
  height: 72px;
  padding: 0 32px;
  background: #fffffff2;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  box-shadow: 0 3px 12px #233c8b09;
}
.admin-app:not(.admin-route-dashboard) .global-search {
  width: min(545px, 50vw);
  height: 45px;
  background: #f8faff;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 24px;
  color: var(--sr-ink);
  padding: 8px 14px;
}
.admin-app:not(.admin-route-dashboard) .global-search input {
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 1;
  width: 100%;
  font-size: 14px;
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard) .global-search kbd {
  padding: 5px 8px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 6px;
  background: white;
  color: var(--sr-ink);
  white-space: nowrap;
}
.admin-app:not(.admin-route-dashboard) .top-right {
  gap: 23px;
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard) .top-right .icon-btn {
  border: 0;
  background: transparent;
  color: var(--sr-ink);
  padding: 5px;
  box-shadow: none;
}
.admin-app:not(.admin-route-dashboard) .top-right .avatar {
  width: 46px;
  height: 46px;
  background: #ebf3ff;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  color: #0753c9;
  font-size: 14px;
}
.admin-app:not(.admin-route-dashboard) .user-copy b {
  font-size: 14px;
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard) .user-copy small {
  font-size: 12px;
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard) .notification-badge {
  background: #f31691;
}
.admin-app:not(.admin-route-dashboard) .content {
  max-width: none;
  padding: 16px 32px 44px;
}
.admin-app:not(.admin-route-dashboard) .page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 240px) auto;
  min-height: 128px;
  margin-bottom: 16px;
  padding: 16px 24px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 14px;
  background: linear-gradient(110deg, #fff 12%, #faf6ff 56%, #f0f5ff 100%);
  box-shadow: 0 8px 18px #4967b70e;
  gap: 16px;
}
.admin-app:not(.admin-route-dashboard) .page-head:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/illustrations/hero-waves.svg") center bottom/100% 100%
    no-repeat;
  pointer-events: none;
  z-index: 0;
}
.admin-app:not(.admin-route-dashboard) .page-emblem {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f8dcff, #dce5ff);
  color: #5330e8;
  box-shadow: none;
}
.admin-app:not(.admin-route-dashboard) .page-emblem svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.8;
}
.admin-app:not(.admin-route-dashboard) .page-copy {
  z-index: 2;
  flex: 1;
  min-width: 0;
}
.admin-app:not(.admin-route-dashboard) .eyebrow {
  color: var(--sr-ink);
  letter-spacing: 0;
  font-weight: 650;
  font-size: 12px;
  text-transform: none;
}
.admin-app:not(.admin-route-dashboard) .eyebrow:before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin: 0 9px 3px 0;
  background: linear-gradient(90deg, #f000be, #583bff);
  vertical-align: middle;
}
.admin-app:not(.admin-route-dashboard) .page-head h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 5px 0 4px;
  color: var(--sr-ink);
  font-weight: 800;
}
.admin-app:not(.admin-route-dashboard) .page-head p {
  font-size: 14px;
  color: var(--sr-ink);
  max-width: 640px;
}
.admin-app:not(.admin-route-dashboard) .page-actions {
  z-index: 4;
  gap: 12px;
  align-self: center;
  flex: 0 0 auto;
}

.admin-app:not(.admin-route-dashboard) .btn {
  min-height: 44px;
  padding: 10px 18px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 10px;
  color: var(--sr-ink);
  background: white;
  box-shadow: 0 5px 12px #3763b50d;
  font-size: 13px;
}
.admin-app:not(.admin-route-dashboard) .btn.primary {
  background: linear-gradient(105deg, #f000b9 0%, #8a24f3 50%, #165bff 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 16px #8722cf2b;
}
.admin-app:not(.admin-route-dashboard) .btn[onclick*="print"],
.admin-app:not(.admin-route-dashboard) .btn[onclick*="Print"],
.admin-app:not(.admin-route-dashboard) .table-action-btn {
  background: #fff0fa;
  color: #e0008f;
  border-color: var(--ui-border);
}
.admin-app:not(.admin-route-dashboard) h3 {
  color: var(--sr-ink);
  font-size: 18px;
  font-weight: 800;
}
.admin-app:not(.admin-route-dashboard) .card {
  border-color: var(--ui-border-strong);
  border-radius: 15px;
  box-shadow: 0 8px 20px #4a73b511;
  background: #fff;
}
.admin-app:not(.admin-route-dashboard) .metric-grid,
.admin-app:not(.admin-route-dashboard) .dashboard-kpis,
.admin-app:not(.admin-route-dashboard) .collection-cards-grid,
.admin-app:not(.admin-route-dashboard) .summary-row {
  gap: 15px;
  margin-bottom: 16px;
}
.admin-app:not(.admin-route-dashboard) .metric-card {
  min-height: 124px;
  padding: 22px 18px 16px 116px;
  background: linear-gradient(110deg, #fff, #ecf5ff);
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px #4664ac12;
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 2) {
  background: linear-gradient(110deg, #fff, #e8fff5);
  border-color: var(--ui-border);
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 3) {
  background: linear-gradient(110deg, #fff, #fff6e9);
  border-color: var(--ui-border);
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 4) {
  background: linear-gradient(110deg, #fff, #fff0f7);
  border-color: var(--ui-border);
}
.admin-app:not(.admin-route-dashboard) .metric-card:before {
  content: "◇";
  display: grid;
  place-items: center;
  position: absolute;
  top: 21px;
  left: 20px;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, #62acff, #0064ff);
  color: white;
  font-size: 34px;
  font-weight: 700;
  box-shadow: 0 8px 16px #1d73ed28;
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 2):before {
  content: "✓";
  background: linear-gradient(135deg, #36d28d, #00aa66);
  box-shadow: 0 8px 16px #00a76625;
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 3):before {
  content: "◷";
  background: linear-gradient(135deg, #ffad38, #ff7700);
  box-shadow: 0 8px 16px #e8880025;
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 4):before {
  content: "✦";
  background: linear-gradient(135deg, #d46fff, #7823ed);
  box-shadow: 0 8px 16px #913bee25;
}
.admin-app:not(.admin-route-dashboard) .metric-card:after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40%;
  height: 70%;
  opacity: 0.18;
  background: #4a95f7;
  mask: url("/illustrations/kpi-overdue.svg") right bottom/contain no-repeat;
  pointer-events: none;
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 2):after {
  filter: hue-rotate(95deg);
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 3):after {
  filter: hue-rotate(170deg);
}
.admin-app:not(.admin-route-dashboard) .metric-card:nth-child(4n + 4):after {
  filter: hue-rotate(75deg);
}
.admin-app:not(.admin-route-dashboard) .metric-label {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard) .metric-value {
  overflow-wrap: anywhere;
  font-size: 30px;
  color: var(--sr-ink);
  margin: 4px 0;
}
.admin-app:not(.admin-route-dashboard) .metric-sub {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard) .tabs,
.admin-app:not(.admin-route-dashboard) .collection-tabs {
  padding: 6px;
  margin-bottom: 12px;
  background: #fff;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 13px;
  box-shadow: 0 6px 15px #4a73b50e;
  gap: 8px;
}
.admin-app:not(.admin-route-dashboard) .tabs button,
.admin-app:not(.admin-route-dashboard) .collection-tab {
  color: var(--sr-ink);
  border-color: var(--ui-border);
  font-weight: 750;
  border-radius: 11px;
  min-height: 51px;
}
.admin-app:not(.admin-route-dashboard) .tabs button.active,
.admin-app:not(.admin-route-dashboard) .collection-tab.active {
  color: white;
  background: linear-gradient(105deg, #f000b9, #9b20eb 50%, #2458ff);
  border-color: transparent;
}
.admin-app:not(.admin-route-dashboard) table th {
  background: var(--ui-table-head);
  color: var(--sr-ink);
  border-color: var(--ui-border);
  font-size: 12px;
  font-weight: 700;
  padding: 15px 16px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app:not(.admin-route-dashboard) table td {
  color: var(--sr-ink);
  padding: 16px;
  border-color: var(--ui-border);
  font-size: 12px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app:not(.admin-route-dashboard) .empty {
  min-height: 145px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--sr-ink);
  font-size: 13px;
}
.admin-app:not(.admin-route-dashboard) .empty:before {
  content: "▤";
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8f3ff, #e7ecff);
  color: #8165eb;
  font-size: 42px;
  font-weight: 300;
}
.admin-app:not(.admin-route-dashboard) .report-grid {
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-app:not(.admin-route-dashboard) .report-grid .metric-card {
  min-height: 123px;
  padding: 18px 36px 17px 94px;
}
.admin-app:not(.admin-route-dashboard) .report-grid .metric-card:before {
  width: 56px;
  height: 56px;
  left: 17px;
  top: 18px;
  border-radius: 15px;
  font-size: 24px;
}
.admin-app:not(.admin-route-dashboard) .report-grid .metric-card:after {
  width: 35%;
  height: 64%;
  right: 9px;
  bottom: 8px;
}
.admin-app:not(.admin-route-dashboard) .report-grid .metric-label {
  font-size: 12px;
}
.admin-app:not(.admin-route-dashboard)
  .staff-management-controls
  + .table-card {
  border-radius: 15px;
}
.admin-app:not(.admin-route-dashboard) .metric-card:has(.metric-top):before {
  display: none;
}
.admin-app:not(.admin-route-dashboard) .metric-card .metric-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  margin: 0;
  pointer-events: none;
}
.admin-app:not(.admin-route-dashboard) .metric-card .metric-icon {
  width: 65px;
  height: 65px;
  border: 0;
  border-radius: 19px;
  color: white;
  background: linear-gradient(135deg, #66b0ff, #0963fa);
  box-shadow: 0 8px 18px #3678e02a;
}
.admin-app:not(.admin-route-dashboard)
  .metric-card:nth-child(4n + 2)
  .metric-icon {
  background: linear-gradient(135deg, #38d18e, #00ad6b);
}
.admin-app:not(.admin-route-dashboard)
  .metric-card:nth-child(4n + 3)
  .metric-icon {
  background: linear-gradient(135deg, #ffb447, #ff7a00);
}
.admin-app:not(.admin-route-dashboard)
  .metric-card:nth-child(4n + 4)
  .metric-icon {
  background: linear-gradient(135deg, #c56cff, #7426ec);
}
.admin-app:not(.admin-route-dashboard) .metric-card .metric-icon svg {
  width: 27px;
  height: 27px;
}
.admin-app:not(.admin-route-dashboard) .metric-card .metric-arrow {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #ffffffa6;
  color: #155bea;
  border: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app:not(.admin-route-dashboard) .report-grid .metric-card .metric-top {
  top: 17px;
  left: 17px;
  right: 17px;
}
.admin-app:not(.admin-route-dashboard) .report-grid .metric-card .metric-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.admin-app:not(.admin-route-dashboard)
  .report-grid
  .metric-card
  .metric-icon
  svg {
  width: 23px;
  height: 23px;
}
.admin-app:not(.admin-route-dashboard) .staff-management-controls {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  padding: 0;
  flex-wrap: wrap;
}
.admin-app:not(.admin-route-dashboard)
  .staff-management-controls
  input[type="search"] {
  width: min(475px, 100%);
  flex: 1 1 260px;
  margin-right: auto;
  min-height: 44px;
}
.admin-app:not(.admin-route-dashboard) .staff-management-controls select {
  min-width: 155px;
  min-height: 44px;
}
.admin-app:not(.admin-route-dashboard) .staff-table-count {
  padding: 14px 20px;
  color: var(--sr-ink);
  font-size: 12px;
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-app:not(.admin-route-dashboard) .staff-management-table tr[hidden] {
  display: none;
}
.admin-app.admin-route-daily-closing .page-emblem {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}
.admin-app.admin-route-daily-closing .page-emblem svg {
  width: 28px;
  height: 28px;
}
.admin-route-daily-closing .daily-closing-metrics .metric-card {
  min-height: 137px;
}
.admin-app:not(.admin-route-dashboard) .settlement-filters,
.admin-app:not(.admin-route-dashboard) .audit-filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px 24px;
  flex-wrap: wrap;
}
.admin-app:not(.admin-route-dashboard) .settlement-filters label,
.admin-app:not(.admin-route-dashboard) .audit-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard) .settlement-filters input,
.admin-app:not(.admin-route-dashboard) .settlement-filters select,
.admin-app:not(.admin-route-dashboard) .audit-filters input,
.admin-app:not(.admin-route-dashboard) .audit-filters select {
  min-height: 45px;
  border-radius: 10px;
  border-color: var(--ui-border);
  color: var(--sr-ink);
}
.admin-app:not(.admin-route-dashboard)
  .settlement-filters
  input[type="search"] {
  margin-left: auto;
  min-width: 250px;
  width: min(350px, 100%);
}
.admin-app:not(.admin-route-dashboard) .audit-filters select {
  min-width: 145px;
  flex: 1;
}

.admin-app:not(.admin-route-dashboard) .audit-list .empty {
  min-height: 150px;
}
.admin-app:not(.admin-route-dashboard) tr[hidden] {
  display: none;
}
@media (max-width: 1599px) {
  .layout.admin-app .side {
    width: 248px;
  }
  .layout.admin-app .main {
    margin-left: 248px;
    width: calc(100% - 248px);
  }
  .admin-app:not(.admin-route-dashboard) .page-head h2 {
    font-size: 27px;
  }
}
@media (max-width: 1280px) {
  .admin-app:not(.admin-route-dashboard) .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-app:not(.admin-route-dashboard)
    .page-head:not(.has-finance-illustration) {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .admin-app:not(.admin-route-dashboard) .metric-card {
    padding-left: 88px;
  }
  .admin-app:not(.admin-route-dashboard) .metric-card:before {
    width: 54px;
    height: 54px;
    left: 16px;
  }
  .admin-app:not(.admin-route-dashboard) .metric-card:after {
    opacity: 0.1;
  }
  .admin-app:not(.admin-route-dashboard) .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .layout.admin-app .side {
    width: 248px;
  }
  .layout.admin-app .main {
    margin-left: 0;
    width: 100%;
  }
  .admin-app:not(.admin-route-dashboard) .top {
    padding: 0 20px;
  }
  .admin-app:not(.admin-route-dashboard) .content {
    padding: 18px 20px 35px;
  }
}
@media (max-width: 700px) {
  .admin-app:not(.admin-route-dashboard) .top {
    height: 64px;
  }
  .admin-app:not(.admin-route-dashboard) .page-head,
  .admin-app:not(.admin-route-dashboard)
    .page-head:not(.has-finance-illustration) {
    min-height: 0;
    padding: 16px;
    gap: 10px 12px;
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .admin-app:not(.admin-route-dashboard) .page-emblem {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }
  .admin-app:not(.admin-route-dashboard) .page-emblem svg {
    width: 26px;
    height: 26px;
  }
  .admin-app:not(.admin-route-dashboard) .page-head h2 {
    font-size: 22px;
  }
  .admin-app:not(.admin-route-dashboard) .page-head p {
    font-size: 11px;
  }
  .admin-app:not(.admin-route-dashboard) .page-actions {
    width: 100%;
    justify-content: flex-start;
    grid-column: 1/-1;
  }
  .admin-app:not(.admin-route-dashboard) .metric-card {
    padding: 16px 12px 14px 66px;
    min-height: 105px;
  }
  .admin-app:not(.admin-route-dashboard) .metric-card:before {
    top: 15px;
    left: 10px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 22px;
  }
  .admin-app:not(.admin-route-dashboard) .metric-value {
    font-size: 21px;
  }
  .admin-app:not(.admin-route-dashboard) .metric-label {
    font-size: 11px;
  }
  .admin-app:not(.admin-route-dashboard) .metric-sub {
    font-size: 10px;
  }
  .admin-app:not(.admin-route-dashboard) .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-app:not(.admin-route-dashboard) .report-grid .metric-card {
    padding: 14px 8px 14px 58px;
    min-height: 120px;
  }
  .admin-app:not(.admin-route-dashboard) .report-grid .metric-card:before {
    width: 38px;
    height: 38px;
    left: 9px;
    top: 14px;
    font-size: 18px;
  }
  .admin-app:not(.admin-route-dashboard) .content {
    padding: 14px 12px 30px;
  }
}
@media (max-width: 700px) {
  .admin-app:not(.admin-route-dashboard) .metric-card .metric-top {
    top: 14px;
    left: 10px;
    right: 10px;
  }
  .admin-app:not(.admin-route-dashboard) .metric-card .metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
  .admin-app:not(.admin-route-dashboard) .metric-card .metric-icon svg {
    width: 21px;
    height: 21px;
  }
  .admin-app:not(.admin-route-dashboard) .report-grid .metric-card .metric-top {
    top: 14px;
    left: 9px;
    right: 9px;
  }
  .admin-app:not(.admin-route-dashboard)
    .report-grid
    .metric-card
    .metric-icon {
    width: 38px;
    height: 38px;
  }
  .admin-app:not(.admin-route-dashboard) .staff-management-controls {
    flex-wrap: wrap;
  }
  .admin-app:not(.admin-route-dashboard)
    .staff-management-controls
    input[type="search"] {
    width: 100%;
    margin-right: 0;
  }
  .admin-app:not(.admin-route-dashboard) .staff-management-controls select {
    flex: 1;
  }
}
@media (max-width: 700px) {
  .admin-app:not(.admin-route-dashboard) .settlement-filters label,
  .admin-app:not(.admin-route-dashboard) .audit-filters label {
    flex: 1 1 140px;
  }
  .admin-app:not(.admin-route-dashboard)
    .settlement-filters
    input[type="search"] {
    flex: 1 1 100%;
    min-width: 0;
  }
  .admin-app:not(.admin-route-dashboard) .audit-filters select {
    flex: 1 1 140px;
  }
}
@media (max-width: 360px) {
  .admin-app:not(.admin-route-dashboard) .metric-grid .metric-card {
    padding: 70px 12px 14px;
  }
}
@media (max-width: 420px) {
  .admin-app:not(.admin-route-dashboard) .report-grid {
    grid-template-columns: 1fr;
  }
  .admin-app:not(.admin-route-dashboard) .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-app:not(.admin-route-dashboard) .global-search {
    display: none;
  }
}
@media print {
  .admin-app:not(.admin-route-dashboard) .metric-card:before,
  .admin-app:not(.admin-route-dashboard) .metric-card:after,
  .admin-app:not(.admin-route-dashboard) .empty:before {
    display: none !important;
  }
}
.admin-app .page-head.has-finance-illustration {
  overflow: visible;
}
.admin-app .page-head .finance-banner-illustration {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  object-position: center;
  align-self: center;
  justify-self: end;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.admin-app .has-finance-illustration .page-copy {
  min-width: 0;
}
.admin-app .has-finance-illustration .page-actions {
  min-width: 0;
  flex-wrap: wrap;
}
.admin-app .separate-table-section {
  margin-top: 18px;
}
.admin-app .external-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 14px;
  padding: 0;
}
.admin-app .external-table-header > div {
  min-width: 0;
}
.admin-app .external-table-header p {
  font-size: 12px;
  margin: 4px 0 0;
}
.admin-app .external-table-header .admin-table-controls {
  flex-wrap: wrap;
  margin-left: auto;
}
.admin-app .external-table-header .row-actions {
  margin-left: auto;
}
.admin-app .staff-control-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-app .settlement-filters .settlement-search-print {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 400px;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}
.admin-app .settlement-search-print input[type="search"] {
  min-width: 0;
  width: 100%;
  flex: 1;
  margin: 0;
}
.admin-app .settlement-search-print .btn {
  flex-shrink: 0;
}
@media (max-width: 1280px) {
  .admin-app .page-head.has-finance-illustration {
    grid-template-columns: auto minmax(0, 1fr) minmax(140px, 185px);
    gap: 12px 16px;
  }
  .admin-app .has-finance-illustration .page-actions {
    grid-column: 2/4;
    justify-self: end;
  }
  .admin-app .page-head .finance-banner-illustration {
    max-height: 90px;
  }
}
@media (max-width: 700px) {
  .admin-app .page-head.has-finance-illustration {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 12px;
  }
  .admin-app .page-head .finance-banner-illustration {
    grid-column: 1/-1;
    width: min(238px, 100%);
    max-height: 100px;
    justify-self: end;
  }
  .admin-app .has-finance-illustration .page-actions {
    grid-column: 1/-1;
    justify-self: start;
  }
  .admin-app .staff-control-actions {
    width: 100%;
  }
  .admin-app .staff-control-actions select {
    flex: 1;
    min-width: 120px;
  }
  .admin-app .settlement-filters .settlement-search-print {
    flex-basis: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }
  .admin-app .settlement-search-print input[type="search"] {
    flex: 1 1 100%;
  }
}
@media print {
  .admin-app .finance-banner-illustration {
    display: none;
  }
}
.admin-app button.user-chip {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-app .notification-badge[hidden] {
  display: none;
}
.admin-app .notification-badge:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 12px;
  padding: 0 3px;
  line-height: 1.2;
}
.admin-app [data-admin-profile-trigger]:focus-visible,
.admin-app .notification-btn:focus-visible {
  outline: 2px solid #6d66dc;
  outline-offset: 4px;
}
.admin-header-panel {
  position: fixed;
  z-index: 600;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 14px;
  background: #fff;
  color: var(--sr-ink);
  box-shadow: 0 14px 42px #24357629;
  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.admin-header-panel * {
  box-sizing: border-box;
  min-width: 0;
}
.admin-header-panel button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.admin-header-panel button:disabled {
  opacity: 0.5;
  cursor: default;
}
.admin-header-panel button:focus-visible {
  outline: 2px solid #7767db;
  outline-offset: -3px;
}
.admin-header-panel .sr-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-header-panel .sr-notification-head b {
  display: block;
  font-size: 15px;
}
.admin-header-panel .sr-notification-head small {
  display: block;
  margin-top: 2px;
  color: var(--sr-ink);
  font-size: 11px;
}
.admin-header-panel .sr-notification-head button,
.admin-header-panel .sr-notification-read,
.admin-header-panel .sr-notification-empty button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: #6751c9;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.admin-header-panel .sr-notification-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.admin-header-panel .sr-notification-row {
  padding: 14px 18px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
}
.admin-header-panel .sr-notification-row:last-child {
  border-bottom: 0;
}
.admin-header-panel .sr-notification-row.unread {
  background: #f8f7ff;
}
.admin-header-panel .sr-notification-open {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 11px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.admin-header-panel .sr-notification-item-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 10px;
  background: #eeeaff;
  color: #6b51d0;
}
.admin-header-panel .sr-notification-item-copy {
  flex: 1;
  overflow-wrap: anywhere;
}
.admin-header-panel .sr-notification-item-copy b,
.admin-header-panel .sr-notification-item-copy small,
.admin-header-panel .sr-notification-item-copy em {
  display: block;
}
.admin-header-panel .sr-notification-item-copy b {
  font-size: 12px;
  font-weight: 750;
}
.admin-header-panel .sr-notification-item-copy small {
  margin-top: 3px;
  font-size: 11px;
  color: var(--sr-ink);
}
.admin-header-panel .sr-notification-item-copy em {
  margin-top: 6px;
  font-size: 10px;
  font-style: normal;
  color: var(--sr-ink);
}
.admin-header-panel .sr-unread-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: #f31691;
}
.admin-header-panel .sr-notification-read {
  display: block;
  margin: 4px 0 0 46px;
}
.admin-header-panel .sr-notification-empty {
  padding: 26px 18px;
  color: var(--sr-ink);
  text-align: center;
}
.admin-header-panel .sr-notification-empty p {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.admin-header-panel .admin-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  overflow-wrap: anywhere;
}
.admin-header-panel .admin-profile-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 50%;
  background: #ebf3ff;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  color: #0753c9;
  font-weight: 800;
}
.admin-header-panel .admin-profile-info b,
.admin-header-panel .admin-profile-info small {
  display: block;
}
.admin-header-panel .admin-profile-info small {
  color: var(--sr-ink);
  font-size: 11px;
}
.admin-header-panel .admin-profile-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  color: #7151c9;
}
.admin-header-panel .admin-profile-logout:hover {
  background: #f3efff;
}
@media print {
  .admin-header-panel {
    display: none;
  }
}
body:has(#modal .modal) {
  overflow: hidden;
}
body:not(.staff-mode) #modal .modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 35, 74, 0.45);
  backdrop-filter: blur(5px);
}
body:not(.staff-mode) #modal .modal-card {
  box-sizing: border-box;
  width: min(900px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  border: var(--sr-stroke-thin) solid var(--ui-border-strong);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 25px 90px #1c2b6840;
}
body:not(.staff-mode) #modal .modal-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex-wrap: wrap;
}
body:not(.staff-mode) #modal .modal-card :is(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.settlement-review-modal {
  font-family: Manrope, Arial, sans-serif;
  color: var(--sr-ink);
}
.settlement-review-modal * {
  box-sizing: border-box;
  min-width: 0;
}
.settlement-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  background: linear-gradient(110deg, #e6efff, #f4e8f7);
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
}
.settlement-review-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.settlement-review-title h2 {
  font-size: 24px;
  margin: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.settlement-review-title p {
  font-size: 12px;
  color: var(--sr-ink);
  margin: 4px 0 0;
}
.settlement-review-icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #e3e5ff;
  color: #7254cd;
}
.settlement-review-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: #fff;
  border-radius: 9px;
  color: var(--sr-ink);
  font-size: 22px;
  cursor: pointer;
}
.settlement-review-body {
  padding: 22px;
}
.settlement-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.settlement-review-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 12px;
  background: #f9fbff;
}
.settlement-review-item small {
  display: block;
  font-size: 11px;
  color: var(--sr-ink);
}
.settlement-review-item b {
  display: block;
  font-size: 15px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.settlement-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7f2ff;
  color: #1470d7;
}
.settlement-icon.green {
  background: #e2f8ed;
  color: #109d68;
}
.settlement-icon.red {
  background: #ffe9f1;
  color: #dd3770;
}
.settlement-icon.orange {
  background: #fff1dc;
  color: #c77a12;
}
.settlement-icon.violet,
.settlement-icon.magenta {
  background: #efe6ff;
  color: #9751d9;
}
.settlement-status-badge {
  font-size: 12px;
  color: #b57518;
}
.settlement-status-badge.approved {
  color: #069668;
}
.settlement-status-badge.rejected {
  color: #db3266;
}
.settlement-review-note {
  padding: 13px 15px;
  margin: 14px 0;
  border-radius: 10px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  background: #f1f6ff;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sr-ink);
}
.settlement-review-schedule .section-head {
  margin: 20px 0 12px;
}
.settlement-review-schedule h3 {
  margin: 0;
  font-size: 17px;
}
.settlement-review-schedule p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--sr-ink);
}
.settlement-review-schedule .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.settlement-review-schedule table {
  min-width: 570px;
  width: 100%;
  border-collapse: collapse;
}
.settlement-review-schedule th,
.settlement-review-schedule td {
  padding: 11px;
  text-align: left;
  font-size: 12px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.settlement-review-schedule th {
  background: var(--ui-table-head);
  color: var(--sr-ink);
}
.settlement-review-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 16px 22px;
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
  background: #f8faff;
}
@media (max-width: 560px) {
  body:not(.staff-mode) #modal .modal {
    padding: 10px;
  }
  body:not(.staff-mode) #modal .modal-card {
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }
  .settlement-review-head {
    padding: 16px;
  }
  .settlement-review-title h2 {
    font-size: 20px;
  }
  .settlement-review-body {
    padding: 14px;
  }
  .settlement-review-grid {
    gap: 8px;
  }
  .settlement-review-item {
    padding: 10px;
    gap: 8px;
    align-items: flex-start;
  }
  .settlement-review-item b {
    font-size: 13px;
  }
  .settlement-review-item .settlement-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .settlement-review-foot {
    padding: 12px 14px;
  }
}
@media (max-width: 380px) {
  .settlement-review-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  body:not(.staff-mode) #modal .modal {
    position: static;
    padding: 0;
    background: none;
    backdrop-filter: none;
  }
  body:not(.staff-mode) #modal .modal-card {
    width: 100%;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border: 0;
  }
  .settlement-review-foot {
    display: none;
  }
}
body #modal .modal-card:has(.loan-application) {
  width: min(960px, 100%);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: var(--sr-stroke-thin) solid #dce3ff;
  border-radius: 16px;
  background: #f8faff;
}
body #modal .loan-application {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 26px);
  min-height: 0;
  color: var(--sr-ink);
  font-family: Manrope, Arial, sans-serif;
}
body #modal .loan-application .application-header {
  position: relative;
  flex: none;
  min-height: 84px;
  isolation: isolate;
  padding: 16px 62px 16px 24px;
  background: linear-gradient(115deg, #fff, #edf3ff 48%, #f4dcff);
  overflow: hidden;
}
body #modal .application-header:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/illustrations/hero-waves.svg") center/100% 100% no-repeat;
  filter: saturate(2.6);
}
body #modal .application-header:after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 72%;
  height: 100px;
  right: -5%;
  top: -62px;
  border-radius: 50%;
  box-shadow:
    0 18px 0 #bbbcff65,
    0 37px 0 #acdfff55;
  transform: rotate(9deg);
}
body #modal .application-header h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.65px;
  margin: 0 0 4px;
}
body #modal .application-header p {
  color: var(--sr-ink);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
body #modal .application-header .close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid #d8e1fb;
  background: #fff;
  color: var(--sr-ink);
  display: grid;
  place-items: center;
  font-size: 24px;
}
body #modal .application-header-art {
  display: none;
}
body #modal .loan-application .modal-body {
  flex: 1 1 auto;
  padding: 16px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0;
  background: linear-gradient(125deg, #f8faff, #fffaff);
  scrollbar-width: thin;
  scroll-padding-block: 16px;
  overscroll-behavior: contain;
}
body #modal .application-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
body #modal .application-section-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efebff;
  color: #6150fe;
  font-weight: 800;
}
body #modal .application-section-head h3,
body #modal .loan-application .schedule-preview h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0;
}
body #modal .application-section-head p {
  font-size: 12px;
  color: var(--sr-ink);
  margin: 3px 0 0;
  line-height: 1.5;
}
body #modal .application-grid,
body #modal .loan-application .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
body #modal .loan-application .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  margin: 0;
}
body #modal .loan-application .field.full {
  grid-column: 1/-1;
}
body #modal .loan-application .field label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--sr-ink);
  margin: 0;
}
body #modal .loan-application .field em {
  color: #e65d77;
  font-style: normal;
}
body
  #modal
  .loan-application
  .field
  :is(input, select, textarea):not([type="hidden"], [type="file"]) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  border: var(--sr-stroke-thin) solid #d5dff5;
  border-radius: 8px;
  background: linear-gradient(#fff, #fcfdff);
  color: var(--sr-ink);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px #3a519503;
}
body #modal .loan-application .field textarea {
  height: 74px !important;
  min-height: 74px;
  resize: vertical;
}
body #modal .loan-application .field input::placeholder,
body #modal .loan-application .field textarea::placeholder {
  color: var(--sr-ink);
}
body #modal .loan-application .field :is(input, select, textarea):focus {
  outline: 2px solid #9280ff55;
  outline-offset: 1px;
  border-color: #9277fb;
}
body #modal .application-documents,
.customer-document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body #modal .application-documents .field,
.customer-document-card {
  grid-column: auto !important;
  padding: 12px;
  border: var(--sr-stroke-thin) solid #e1e8ff;
  border-radius: 12px;
  gap: 10px;
  min-width: 0;
  background: #fff;
}
body #modal .application-documents .photo-capture-row {
  display: flex !important;
  flex-direction: column;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 10px !important;
}
body #modal .application-documents .compact-photo-preview-box {
  flex: none;
  width: 100% !important;
  height: 180px !important;
  min-height: 180px !important;
  padding: 8px;
  border: var(--sr-stroke-thin) solid #dce5fb;
  border-radius: 8px;
  background: #f4f7fd;
  color: var(--sr-ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  text-align: center;
}
body #modal .application-documents .compact-photo-preview {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}
body #modal .application-documents .compact-photo-preview-box img {
  display: block;
  width: 100%;
  height: 162px;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}
body #modal .application-documents .photo-capture-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px !important;
  min-width: 0;
  width: 100%;
  flex: none;
}
body #modal .loan-application .btn {
  border: var(--sr-stroke-thin) solid #dce4fc;
  border-radius: 9px;
  padding: 10px 14px;
  min-height: 44px;
  background: #fff;
  color: var(--sr-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: normal;
  max-width: 100%;
}
body #modal .loan-application .btn.primary {
  border-color: transparent;
  background: linear-gradient(110deg, #9a58ff, #3268ff);
  color: #fff;
  box-shadow: 0 3px 6px #725bf52b;
}
body #modal .application-documents .photo-action {
  padding: 9px 6px;
  font-size: 12px;
}
body #modal .application-documents .photo-action svg {
  width: 15px;
  height: 15px;
  flex: none;
}
body #modal .application-documents .photo-action:first-child {
  grid-column: 1/-1;
  justify-self: stretch;
}
body #modal .loan-application .schedule-preview {
  margin: 0 0 14px;
  padding: 16px;
  border: var(--sr-stroke-thin) solid #e3eaff;
  border-radius: 14px;
  background: #fafaff;
}
body #modal .loan-application .schedule-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
body #modal .loan-application .schedule-preview-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
body #modal .loan-application .schedule-preview-head p,
body #modal .loan-application .schedule-empty {
  font-size: 12px;
  color: var(--sr-ink);
  margin: 5px 0 0;
  line-height: 1.5;
}
body #modal .loan-application .schedule-preview-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body #modal .loan-application .date-chip {
  font-size: 12px;
  padding: 8px;
  background: #fff;
  border: var(--sr-stroke-thin) solid #dce4fc;
  border-radius: 7px;
}
body #modal .loan-application .schedule-empty {
  margin-top: 12px;
}
body #modal .application-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: var(--sr-stroke-thin) solid #e1eaff;
  border-radius: 13px;
  background: linear-gradient(100deg, #f2f4ff, #e8f1ff);
  font-size: 13px;
}
body #modal .application-notice > svg {
  color: #655aff;
  flex: none;
}
body #modal .application-notice p {
  font-size: 12px;
  color: var(--sr-ink);
  margin: 4px 0 0;
  line-height: 1.5;
}
body #modal .loan-application .modal-foot {
  position: relative;
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px !important;
  background: #f8faff;
  border-top: var(--sr-stroke-thin) solid #e8edfa;
}
body #modal .loan-application .modal-foot > .btn {
  min-height: 44px;
  min-width: 100px;
}
body #modal .loan-application [hidden] {
  display: none !important;
}
.customer-document-card h4 {
  font-size: 13px;
  margin: 0 0 12px;
  color: var(--sr-ink);
}
.customer-document-card small {
  display: block;
  font-size: 11px;
  color: var(--sr-ink);
  margin-top: 9px;
}
.customer-document-preview {
  width: 100%;
  height: 190px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #f4f7fd;
  border: var(--sr-stroke-thin) solid #dce5fb;
  border-radius: 9px;
  cursor: zoom-in;
  color: var(--sr-ink);
}
.customer-document-preview:disabled {
  cursor: default;
}
.customer-document-preview img {
  width: 100%;
  height: 172px;
  object-fit: contain;
  display: block;
  border-radius: 0;
}
.application-preview-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: var(--sr-stroke-thin) solid #d5dcfb;
  border-radius: 16px;
  color: var(--sr-ink);
  box-shadow: 0 25px 80px #111d6355;
  background: #fff;
}
.application-preview-dialog::backdrop {
  background: #101b5966;
  backdrop-filter: blur(4px);
}
.application-preview-dialog .modal-head,
.application-preview-dialog .modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #f3f5ff;
}
.application-preview-content {
  max-height: 65dvh;
  overflow: auto;
  padding: 16px;
}
.application-preview-dialog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.application-preview-dialog th,
.application-preview-dialog td {
  padding: 12px;
  border: var(--sr-stroke-thin) solid #dce4f8;
  text-align: left;
  overflow-wrap: anywhere;
}
.application-preview-dialog th {
  background: #f2f5ff;
}
@media (max-width: 800px) {
  body #modal .application-documents,
  .customer-document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body #modal .modal:has(.loan-application) {
    padding: 8px;
  }
  body #modal .modal-card:has(.loan-application) {
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }
  body #modal .loan-application {
    max-height: calc(100dvh - 18px);
  }
  body #modal .loan-application .application-header {
    min-height: 100px;
    padding: 20px 54px 20px 18px;
  }
  body #modal .application-header h3 {
    font-size: 20px;
  }
  body #modal .application-header p {
    font-size: 11px;
  }
  body #modal .loan-application .modal-body {
    padding: 12px !important;
  }
  body #modal .application-section-head {
    margin-bottom: 14px;
  }
  body #modal .application-section-head h3 {
    font-size: 14px;
  }
  body #modal .application-grid,
  body #modal .loan-application .form-grid,
  body #modal .application-documents,
  .customer-document-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body #modal .loan-application .field label {
    font-size: 12px;
  }
  body
    #modal
    .loan-application
    .field
    :is(input, select, textarea):not([type="hidden"], [type="file"]) {
    font-size: 16px;
  }
  body #modal .application-documents .compact-photo-preview-box {
    height: 202px !important;
  }
  body #modal .application-documents .compact-photo-preview-box img {
    height: 184px;
  }
  body #modal .loan-application .modal-foot {
    padding: 12px !important;
  }
  body #modal .loan-application .modal-foot > .btn {
    flex: 1;
    min-width: 0;
  }
  body #modal .loan-application .modal-foot > .primary {
    flex: 1.6;
  }
}
.settings-module {
  margin-top: 18px;
  min-width: 0;
}
.settings-module .card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}
.settings-module .card-head p {
  max-width: 700px;
  line-height: 1.5;
}
.settings-module .table-wrap {
  margin-top: 15px;
}
.settings-module td small {
  display: block;
  color: var(--sr-ink);
  font-size: 11px;
  margin-top: 5px;
}
.settings-hint {
  font-size: 12px;
  color: var(--sr-ink);
  line-height: 1.6;
  margin: 12px 0;
}
.settings-message,
.settings-progress {
  padding: 12px;
  border: var(--sr-stroke-thin) solid #dce3ff;
  border-radius: 9px;
  background: #f3f5ff;
  color: var(--sr-ink);
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}
.settings-progress[hidden] {
  display: none;
}
.settings-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 9px;
  accent-color: #7554e8;
}
.settings-progress.is-error,
.settings-message.is-error {
  border-color: #fac8d3;
  background: #fff3f5;
  color: #a22640;
}
.settings-plugin {
  padding: 16px 0;
  border-bottom: var(--sr-stroke-thin) solid #e5eafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.settings-plugin h4 {
  margin: 0;
  font-size: 15px;
}
.settings-plugin h4 small {
  font-weight: 500;
  color: var(--sr-ink);
}
.settings-plugin p {
  font-size: 12px;
  color: var(--sr-ink);
  max-width: 650px;
  overflow-wrap: anywhere;
}
.settings-plugin-panel {
  padding: 16px;
  border: var(--sr-stroke-thin) solid #e4e9fa;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.settings-plugin-panel p {
  white-space: pre-wrap;
  line-height: 1.65;
}
@media (max-width: 650px) {
  .settings-module .row-actions {
    flex-wrap: wrap;
  }
  .settings-module .table-wrap {
    overflow-x: auto;
  }
  .settings-module table {
    min-width: 580px;
  }
}
body #modal .modal-card:has(.soa-preview) {
  width: min(1120px, calc(100vw - 24px));
}
.soa-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: var(--sr-stroke-thin) solid #dce5fb;
  border-radius: 12px 12px 0 0;
  font-size: 13px;
}
.soa-actions .btn {
  min-height: 44px;
}
.soa-panel {
  min-width: 0;
}
.soa-preview {
  background: #edf2fb;
  overflow: auto;
  min-width: 0;
}
.soa-document {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--sr-ink);
  background: #fff;
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
}
.soa-document .soa-page {
  padding: 24px;
  background: #fff;
}
.soa-document .print-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  background: linear-gradient(110deg, #073d85, #061e57);
  color: #fff;
  border: 0;
  border-radius: 11px;
  padding: 20px;
  margin: 0 0 20px;
  min-height: 90px;
}
.soa-document .print-brand .official-logo {
  width: 240px;
  height: 62px;
  max-width: 38%;
  object-fit: contain;
  object-position: left center;
}
.soa-document .print-brand > div {
  text-align: right;
  min-width: 0;
}
.soa-document .print-brand h2 {
  margin: 0 0 8px;
  font:
    800 20px/1.25 Arial,
    Helvetica,
    sans-serif;
  color: #fff;
  letter-spacing: 0;
}
.soa-document .print-brand p {
  margin: 0;
  font-size: 12px;
  color: #fff;
  line-height: 1.5;
}
.soa-document .soa-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}
.soa-document .soa-detail-block {
  border: var(--sr-stroke-thin) solid #aac7ed;
  border-radius: 5px;
  overflow: hidden;
  margin: 0;
  min-width: 0;
}
.soa-document .soa-detail-block h3 {
  margin: 0 !important;
  padding: 12px 14px;
  background: linear-gradient(110deg, #062761, #093f85);
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  line-height: 1.4;
  letter-spacing: 0.02em !important;
}
.soa-document table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  min-width: 0 !important;
  border: 0 !important;
  font-size: 13px;
  margin: 0;
}
.soa-document :is(td, th) {
  border: var(--sr-stroke-thin) solid #b6ceed !important;
  border-top: 0 !important;
  padding: 10px 12px !important;
  text-align: left;
  vertical-align: top;
  color: var(--sr-ink);
  line-height: 1.5;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}
.soa-document th {
  background: #ebf4ff;
  font-weight: 700;
}
.soa-document .soa-detail-columns td:first-child {
  width: 53%;
  background: #f3f8fd;
}
.soa-document .soa-detail-columns td:last-child {
  font-weight: 700;
}
.soa-document .soa-summary {
  display: block;
  margin: 0 0 16px;
  width: 100%;
}
.soa-document .soa-summary th:first-child {
  width: 38%;
}
.soa-document .soa-summary :is(th, td):not(:first-child) {
  text-align: right;
}
.soa-document .soa-summary td[colspan] {
  text-align: left;
}
.soa-document .soa-note {
  padding: 14px 16px;
  border-left: 3px solid #6928df;
  border-radius: 5px;
  background: #f1efff;
  color: var(--sr-ink);
  font-size: 12px;
  line-height: 1.65;
}
.soa-document .soa-total td {
  font-weight: 700;
  background: #e9f1ff;
}
.soa-document .soa-end {
  padding: 24px 0 12px;
  font-size: 12px;
  line-height: 1.6;
  break-inside: avoid;
}
.soa-document .soa-end p {
  margin: 5px 0;
}
.soa-document .soa-footer {
  border-top: var(--sr-stroke-thin) solid #6b99dd;
  padding: 10px 2px 0;
  color: var(--sr-ink);
  font-size: 11px;
  margin-top: 24px;
}
.soa-document .soa-transactions .soa-table {
  font-size: 12px;
}
.soa-document
  .soa-transactions
  :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(7)) {
  text-align: right;
}
.soa-document .soa-transactions :is(th, td):nth-child(6) {
  text-align: center;
}
.soa-document .soa-transactions .soa-total td:last-child {
  text-align: right;
}
@media screen and (max-width: 700px) {
  .soa-document .soa-page {
    padding: 14px;
  }
  .soa-document .print-brand {
    padding: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .soa-document .print-brand .official-logo {
    width: 180px;
    height: 44px;
    max-width: 100%;
  }
  .soa-document .print-brand > div {
    text-align: left;
  }
  .soa-document .print-brand h2 {
    font-size: 18px;
  }
  .soa-document .soa-detail-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .soa-document :is(th, td) {
    padding: 8px !important;
    font-size: 12px;
  }
  .soa-document .soa-transactions .soa-detail-block {
    overflow: auto;
    scrollbar-width: thin;
  }
  .soa-document .soa-transactions .soa-table {
    min-width: 720px !important;
  }
}
@media print {
  @page soaStatement {
    size: A4 portrait;
    margin: 12mm;
    @bottom-right {
      content: "Page " counter(page);
      font: 9pt Arial;
      color: var(--sr-ink);
    }
  }
  .soa-document {
    page: soaStatement;
    font-size: 9pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    width: 100%;
    overflow: visible !important;
  }
  .soa-document .soa-page {
    padding: 0;
  }
  .soa-document .soa-overview {
    min-height: 260mm;
    display: flex;
    flex-direction: column;
    break-after: page;
  }
  .soa-document .soa-overview .soa-footer {
    margin-top: auto;
  }
  .soa-document .print-brand {
    min-height: 24mm;
    padding: 4mm;
    border-radius: 3mm;
    margin-bottom: 4mm;
    break-inside: avoid;
  }
  .soa-document .print-brand h2 {
    font-size: 14pt;
  }
  .soa-document .print-brand p {
    font-size: 8pt;
  }
  .soa-document .print-brand .official-logo {
    width: 57mm;
    height: 16mm;
  }
  .soa-document .soa-detail-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
    margin-bottom: 4mm;
  }
  .soa-document .soa-detail-block h3 {
    font-size: 9.5pt !important;
    padding: 2.5mm;
  }
  .soa-document table {
    font-size: 8.5pt;
  }
  .soa-document :is(td, th) {
    padding: 1.8mm 2mm !important;
    line-height: 1.35;
    border-width: 0.5pt !important;
  }
  .soa-document .soa-transactions .soa-table {
    font-size: 8pt;
    min-width: 0 !important;
  }
  .soa-document .soa-detail-block {
    overflow: visible;
    border-width: 0.5pt;
    border-radius: 0;
  }
  .soa-document .soa-note,
  .soa-document .soa-end {
    font-size: 8pt;
  }
  .soa-document .soa-note {
    padding: 3mm 4mm;
    break-inside: avoid;
  }
  .soa-document thead {
    display: table-header-group;
  }
  .soa-document tr {
    break-inside: avoid;
  }
  .soa-document .soa-footer {
    font-size: 8pt;
    border-width: 0.5pt;
  }
  .soa-document .soa-transactions .soa-total {
    break-inside: avoid;
  }
}

.layout.admin-app .side {
  max-width: calc(100vw - 40px);
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}
.layout.admin-app .side-head {
  position: relative;
  z-index: 1;
}
.layout.admin-app .nav button svg {
  flex-shrink: 0;
}
:is(.admin-app, .staff-app, #modal, .application-preview-dialog) {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:is(.admin-app, .staff-app, #modal) :is(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
}
:is(.admin-app, .staff-app, #modal)
  :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #8065e9;
  outline-offset: 3px;
}
:is(.admin-app, .staff-app)
  :is(.card, .table-card, .toolbar, .section-head, .card-head, .mobile-card) {
  min-width: 0;
}
:is(.admin-app, .staff-app) :is(th, td) {
  font-variant-numeric: tabular-nums;
}
:is(.admin-app, .staff-app) :is(.row-actions, .toolbar-left, .toolbar-right) {
  flex-wrap: wrap;
}
:is(.admin-app, .staff-app) :is(.metric-label, .metric-value, .metric-sub) {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px) {
  .staff-head-brand .official-logo {
    max-width: 100%;
  }
  .staff-head-brand .staff-brand {
    min-width: 0;
  }
  .staff-reference-top .mobile-top-actions {
    gap: 7px;
  }
  .staff-reference-top .mobile-menu-btn {
    flex-shrink: 0;
  }
}
.auth-splash {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #f3f6fc;
  padding: 24px;
  text-align: center;
  color: var(--sr-ink);
}
.auth-splash > div {
  width: min(280px, 100%);
}
.auth-splash .official-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: auto;
}
.auth-splash p {
  font-size: 14px;
  margin: 18px 0;
}
.auth-splash-progress {
  display: block;
  width: 44px;
  height: 4px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, #517cea, #cc72c7);
  border-radius: 4px;
}
.customer-name-link {
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 3px 0;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}
.customer-name-link:hover {
  color: #385cc7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.customer-workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.customer-workspace .card {
  min-width: 0;
  padding: 22px;
}
.customer-workspace-header {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.customer-workspace-avatar {
  flex: 0 0 84px;
}
.customer-profile-photo {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: #eef2fc;
  border-radius: 18px;
  overflow: hidden;
  font-size: 26px;
  font-weight: 800;
  color: var(--sr-ink);
}
.customer-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.customer-workspace-identity {
  flex: 1;
  min-width: 180px;
}
.customer-workspace-identity h2 {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.25;
  margin: 6px 0 12px;
  overflow-wrap: anywhere;
}
.customer-workspace-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 13px;
}
.customer-workspace-meta > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.customer-workspace-actions {
  display: grid;
  gap: 14px;
  justify-items: end;
}
.customer-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-bottom: var(--sr-stroke-thin) solid #dce3f4;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 6px 6px 0;
}
.customer-workspace-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--sr-ink);
  cursor: pointer;
}
.customer-workspace-tabs button[aria-selected="true"] {
  color: #3b5bca;
  border-bottom-color: #3b5bca;
  background: #f3f5ff;
  border-radius: 8px 8px 0 0;
}
.customer-tab-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.customer-profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.customer-workspace .section-head {
  margin: 0 0 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.customer-workspace .section-head h3 {
  font-size: 17px;
  margin: 0;
}
.customer-workspace .section-head p {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0;
  color: var(--muted);
}
.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
  margin: 0;
}
.customer-info-grid > div {
  min-width: 0;
}
.customer-info-grid dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.customer-info-grid dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.customer-repayment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.customer-repayment-summary .card {
  padding: 18px;
}
.customer-repayment-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.customer-repayment-summary strong {
  display: block;
  font-size: 24px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.customer-repayment-actions,
.customer-cycle-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.customer-workspace .table-wrap,
.staff-detail-panel .customer-repayment-table .table-wrap {
  overflow: auto;
  max-height: 520px;
  border-radius: 9px;
  overscroll-behavior: contain;
}
.customer-workspace .table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}
.customer-workspace .table th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: normal;
  vertical-align: top;
  font-size: 11px;
  padding: 12px 8px;
}
.customer-workspace .table td {
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.customer-workspace .table small,
.customer-repayment-table small,
.customer-application-history small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}
.customer-workspace .table td .pill {
  white-space: nowrap;
  text-align: center;
}
.customer-repayment-table th:last-child,
.customer-repayment-table td:last-child {
  min-width: 84px;
}
.customer-workspace .customer-repayment-table td:nth-child(2) {
  white-space: nowrap;
}
.customer-history-table th:nth-child(4) {
  max-width: 140px;
}
.customer-loan-history-item + .customer-loan-history-item {
  border-top: var(--sr-stroke-thin) solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.customer-cycle-list {
  margin-top: 12px;
}
.customer-workspace .statline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.customer-next-cycle {
  padding-top: 18px;
  margin-top: 18px;
  border-top: var(--sr-stroke-thin) solid var(--line);
}
.customer-next-cycle h4 {
  font-size: 15px;
  margin: 0 0 8px;
}
.customer-next-cycle p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}
.customer-settlement-record + .customer-settlement-record {
  margin-top: 18px;
  padding-top: 18px;
  border-top: var(--sr-stroke-thin) solid var(--line);
}
.customer-loan-select,
.customer-statement-select {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
}
.customer-loan-select select,
.customer-statement-select select {
  min-height: 44px;
  max-width: 100%;
  width: auto;
  padding: 10px 36px 10px 12px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.customer-workspace [aria-busy="true"] {
  opacity: 0.6;
}
.staff-detail-panel .customer-repayment-table {
  padding: 16px;
  margin-top: 16px;
}
.staff-detail-panel .customer-repayment-table table {
  min-width: 860px;
}
.staff-detail-panel .customer-repayment-table .section-head h3 {
  font-size: 16px;
}
@media (max-width: 1000px) {
  .customer-profile-columns {
    grid-template-columns: 1fr;
  }
  .customer-repayment-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .customer-workspace .customer-repayment-table table {
    min-width: 850px;
  }
  .customer-workspace .customer-history-table table {
    min-width: 650px;
  }
  .customer-workspace-actions {
    justify-items: start;
  }
}
@media (max-width: 600px) {
  .customer-workspace,
  .customer-tab-panel {
    gap: 16px;
  }
  .customer-workspace .card {
    padding: 16px;
  }
  .customer-workspace-header {
    gap: 14px;
  }
  .customer-workspace-avatar {
    flex-basis: 64px;
  }
  .customer-profile-photo {
    width: 64px;
    height: 64px;
  }
  .customer-workspace-identity {
    min-width: 140px;
  }
  .customer-workspace-actions {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .customer-workspace-tabs button {
    font-size: 12px;
    gap: 5px;
    padding: 10px 3px;
  }
  .customer-workspace-tabs .icon {
    width: 16px;
  }
  .customer-info-grid {
    gap: 18px 12px;
  }
  .customer-info-grid dd {
    font-size: 13px;
  }
  .customer-repayment-summary strong {
    font-size: 21px;
  }
  .customer-repayment-summary .card {
    padding: 14px;
  }
  .customer-workspace .btn {
    min-height: 44px;
    white-space: normal;
  }
  .customer-statement-select select,
  .customer-loan-select select {
    width: 100%;
    font-size: 16px;
  }
}

@media (min-width: 901px) and (max-width: 1600px) {
  .sr-admin-login-screen .sr-admin-login-features {
    bottom: 8vh !important;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .sr-admin-login-screen .sr-admin-login-features {
    right: auto !important;
    width: 42vw !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
  }
  .sr-admin-login-screen .sr-admin-login-features > div {
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }
  .sr-admin-login-screen .sr-admin-login-features > i {
    display: none !important;
  }
}
@media (min-width: 901px) and (max-width: 1200px) and (max-height: 640px) {
  .sr-admin-login-screen {
    padding: 10px 4vw !important;
    gap: 8px 18px !important;
  }
  .sr-admin-login-screen .sr-admin-login-card {
    padding: 14px 24px 12px !important;
  }
  .sr-admin-login-screen .sr-admin-login-brandmark {
    margin-bottom: 15px !important;
  }
  .sr-admin-login-screen .sr-admin-login-card h1 {
    font-size: 30px !important;
  }
  .sr-admin-login-screen .sr-admin-login-subtitle {
    font-size: 13px !important;
    margin: 4px 0 14px !important;
  }
  .sr-admin-login-screen .sr-admin-login-field {
    margin-bottom: 10px !important;
  }
  .sr-admin-login-screen .sr-admin-login-field label {
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }
  .sr-admin-login-screen .sr-admin-login-input {
    height: 48px !important;
  }
  .sr-admin-login-screen .sr-admin-login-actions {
    margin: -2px 0 10px !important;
  }
  .sr-admin-login-screen .sr-admin-login-submit {
    height: 48px !important;
    font-size: 16px !important;
  }
  .sr-admin-login-screen .sr-admin-login-footer {
    margin-top: 10px !important;
    padding-top: 8px !important;
  }
  .sr-admin-login-screen .sr-admin-login-features {
    gap: 8px !important;
  }
  .sr-admin-login-screen .sr-admin-login-features .feature-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .sr-admin-login-screen .sr-admin-login-features .feature-icon svg {
    width: 23px !important;
    height: 23px !important;
  }
  .sr-admin-login-screen .sr-admin-login-features strong {
    font-size: 11px !important;
  }
  .sr-admin-login-screen .sr-admin-login-features small {
    font-size: 9px !important;
  }
}
.admin-app #applicationsSection .applications-card {
  border-radius: 18px;
  box-shadow: 0 8px 24px #4a73b511;
  overflow: hidden;
}
.applications-toolbar,
.application-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
}
.application-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 260px;
  max-width: 430px;
  padding: 0 12px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 11px;
  background: var(--ui-table-head);
  color: var(--sr-ink);
}
.application-search input {
  border: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
  min-width: 0;
  height: 42px;
  outline-offset: 2px;
}
.application-staff-filter,
.application-page-controls,
.application-page-controls label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.application-staff-filter select,
.application-page-controls select {
  min-width: 0;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 9px;
  background: #fff;
  padding: 9px 12px;
  max-width: 240px;
}
.admin-app #applicationsSection .application-table {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-app #applicationsSection .application-table :is(th, td) {
  border-inline: 0;
  border-top: 0;
  padding: 16px 18px;
}
.admin-app #applicationsSection .application-table th {
  font-size: 11px;
  letter-spacing: 0.025em;
  color: var(--sr-ink);
}
.admin-app #applicationsSection .application-table td {
  vertical-align: middle;
  border-bottom: var(--sr-stroke-thin) solid #e8edf5;
}
.admin-app #applicationsSection .application-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-app #applicationsSection .application-table tbody tr:hover {
  background: #f5f8ff;
}
.application-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.application-review-action {
  gap: 6px;
  min-height: 36px;
  font-size: 11px;
  white-space: nowrap;
}
.application-pagination {
  border-top: var(--sr-stroke-thin) solid #e8edf5;
  font-size: 12px;
  color: var(--muted);
}
.application-page-controls .btn {
  padding: 8px;
  min-height: 36px;
}
@media (max-width: 700px) {
  .applications-toolbar,
  .application-pagination {
    padding: 13px;
    gap: 12px;
  }
  .application-search {
    flex-basis: 100%;
    max-width: none;
  }
  .application-staff-filter {
    width: 100%;
  }
  .application-staff-filter select {
    flex: 1;
    max-width: none;
  }
  .application-page-controls {
    width: 100%;
    justify-content: space-between;
  }
  .admin-app #applicationsSection .application-table :is(th, td) {
    padding: 13px;
  }
}
[data-time-period="afternoon"] .dashboard-hero-art img {
  filter: brightness(1.09) saturate(0.83) hue-rotate(-15deg);
}
[data-time-period="evening"] .dashboard-hero-art img {
  filter: brightness(0.91) saturate(1.18) hue-rotate(-20deg);
}
.staff-home-reference-hero[data-time-period] {
  background-image: none;
}
.staff-home-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}
.staff-home-reference-hero[data-time-period="afternoon"] .staff-home-art {
  filter: brightness(1.09) saturate(0.83) hue-rotate(-15deg);
}
.staff-home-reference-hero[data-time-period="evening"] .staff-home-art {
  filter: brightness(0.91) saturate(1.18) hue-rotate(-20deg);
}
.staff-home-reference-hero[data-time-period="night"] .staff-home-art {
  mask-image: linear-gradient(to right, transparent 5%, #000 90%);
}
.staff-home-reference-hero .staff-home-date-chip {
  position: relative;
}
.dashboard-hero-art picture {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
@media (max-width: 700px) {
  .dashboard-hero-art picture {
    position: absolute;
    inset: 0;
  }
}
body .layout.admin-app [data-card-fit="value"] {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  text-overflow: clip;
}
.table .mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  min-width: 33px;
  max-width: 33px;
  flex: 0 0 33px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  vertical-align: middle;
}
.table .mini-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}
.staff-mode {
  --ink: #061657;
  --ink-2: #324e7c;
  --muted: var(--sr-ink);
  --bg: #f6f8ff;
  --surface: #fff;
  --line: var(--ui-border);
  --brand: #006bff;
  --brand-dark: #064dc8;
  --brand-ink: #064dc8;
  --soft: #e9f3ff;
  --success: #009e62;
  --warning: #ad6400;
  --danger: #df0066;
  --r: 16px;
  --r-lg: 20px;
  --shadow: 0 6px 24px #3664ab0b;
  --staff-blue: #006bff;
  --staff-violet: #7f16ff;
  --staff-pink: #e500ab;
  --staff-gradient: linear-gradient(105deg, #006bfa, #3422f8 55%, #8909ff);
  --staff-action: linear-gradient(105deg, #3230ff, #9605f4);
  --staff-active: linear-gradient(115deg, #9022ff, #f000c3);
  --staff-radius: 18px;
  --staff-gap: 12px;
  --staff-padding: 16px;
  --staff-font: Manrope, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--staff-font);
  font-size: 14px;
  line-height: 1.45;
}
.staff-mode #app {
  background: var(--bg);
  color: var(--ink);
}
.staff-app {
  max-width: none;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--staff-font);
  isolation: isolate;
}
.staff-app *,
.staff-mode #modal *,
.staff-drawer-root * {
  box-sizing: border-box;
  min-width: 0;
}
.staff-app :is(button, input, select, textarea),
.staff-mode #modal :is(button, input, select, textarea),
.staff-drawer-root button {
  font: inherit;
  color: inherit;
}
.staff-app button,
.staff-mode #modal button,
.staff-drawer-root button {
  cursor: pointer;
}
.staff-app button:disabled,
.staff-mode #modal button:disabled {
  cursor: default;
  opacity: 0.55;
}
.staff-app :is(button, a, input, select, textarea):focus-visible,
.staff-mode #modal :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #7c30ff;
  outline-offset: 3px;
}
.staff-app svg,
.staff-mode #modal svg,
.staff-drawer-root svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.staff-app :is(h2, h3, h4, p) {
  margin: 0;
}
.staff-app h2 {
  font-family: Sora, Manrope, sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.9px;
  overflow-wrap: anywhere;
}
.staff-app h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.staff-app :is(b, strong) {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.staff-app :is(small, p) {
  color: var(--muted);
}
.staff-app :is(p, small, span) {
  overflow-wrap: anywhere;
}
.staff-app img {
  display: block;
  max-width: 100%;
}
.staff-app button {
  border: 0;
  background: none;
}
.staff-reference-top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: calc(10px + env(safe-area-inset-top)) var(--staff-padding) 10px;
  background:
    radial-gradient(ellipse at 76% 175%, #ffffff16 0 46%, transparent 46.5%),
    radial-gradient(ellipse at 100% -105%, #ffffff0c 0 54%, transparent 54.5%),
    linear-gradient(105deg, #2463ee 0%, #4339ed 55%, #8623d8 100%);
  color: #fff;
  border-radius: 0;
  box-shadow: 0 5px 18px #343dd51a;
}
.mobile-top-left,
.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.mobile-top-left {
  flex: 1;
}
.staff-reference-top .staff-head-brand {
  display: contents;
}
.staff-reference-top .mobile-menu-btn {
  order: -2;
}
.staff-reference-top .notification-btn {
  order: -1;
}
.mobile-top-actions {
  flex-shrink: 0;
  gap: 12px;
}

.staff-app .mobile-menu-btn,
.staff-app .notification-btn {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: var(--sr-stroke-thin) solid #ffffff30;
  border-radius: 13px;
  background: #ffffff23;
  color: white;
  box-shadow: inset 0 1px 1px #ffffff2b;
}
.staff-app .mobile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--sr-ink);
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
}
.staff-app .mobile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.staff-app .notification-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: var(--sr-stroke-medium) solid #fff;
  background: #ff255b;
  color: white;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  padding: 0 3px;
}
.staff-app .notification-badge[hidden] {
  display: none;
}
.staff-reference-content {
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--staff-content-top, var(--staff-padding)) var(--staff-padding)
    calc(94px + env(safe-area-inset-bottom));
  min-height: calc(100dvh - 64px);
}
@media (max-width: 700px) {
  .staff-page-staff-home {
    --staff-content-top: 12px;
  }
}
.staff-reference-content > section,
.staff-reference-content > .mobile-card {
  margin-bottom: 14px;
}
.staff-download-banner,
.staff-drawer-list .staff-download-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #3653bc;
}
.staff-download-banner {
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid #dce3ff;
  border-radius: 14px;
  background: #f0f4ff;
}
.staff-download-banner strong {
  font-size: 13px;
}
.staff-download-banner small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.staff-drawer-list .staff-download-menu {
  padding: 13px 14px;
  font-size: 13px;
  border-radius: 12px;
}
.loading-card .startup-staff-logo {
  display: none;
}
html[data-sr-brand="staff"] .startup-staff-logo {
  display: block;
}
html[data-sr-brand="staff"] .startup-admin-logo {
  display: none;
}
@media print {
  .staff-download-banner,
  .staff-download-menu {
    display: none !important;
  }
}
.staff-reference-bottom {
  position: fixed;
  z-index: 110;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1100px);
  padding: 5px 8px calc(6px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 3px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: #fffffffa;
  box-shadow: 0 -5px 25px #4761ac09;
}
.staff-reference-bottom button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 6px 2px;
  border-radius: 15px;
  color: var(--sr-ink);
  position: relative;
}
.staff-reference-bottom .bottom-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.staff-reference-bottom .bottom-label {
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
}
.staff-reference-bottom button.active {
  color: #ec0094;
  background: #fff0fa;
}
.staff-reference-bottom button.active:after {
  content: "";
  width: 21px;
  height: 3px;
  border-radius: 5px;
  background: currentColor;
  position: absolute;
  bottom: 1px;
}
.staff-reference-bottom button:hover {
  background: #f7f5ff;
}
.staff-drawer-lock {
  overflow: hidden;
}
.staff-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 800;
  font: 14px var(--staff-font, Manrope, Arial, sans-serif);
}
.staff-drawer-scrim {
  position: absolute;
  inset: 0;
  background: #0a17594d;
  backdrop-filter: blur(3px);
}
.staff-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(310px, 88vw);
  height: 100%;
  background: linear-gradient(155deg, #0755d6, #3422be 55%, #7a0ae2);
  color: white;
  box-shadow: 8px 0 35px #0b15484d;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}
.staff-drawer-root.is-open .staff-drawer {
  transform: translateX(0);
}
.staff-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px;
  border-bottom: var(--sr-stroke-thin) solid #ffffff22;
  flex-shrink: 0;
}
.staff-drawer-close {
  border: 0;
  background: #ffffff18;
  color: white;
  border-radius: 11px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.staff-drawer-list {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 16px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scroll-behavior: smooth;
}
.staff-drawer-list::-webkit-scrollbar {
  width: 4px;
}
.staff-drawer-list::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}
.staff-drawer-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.staff-drawer:hover .staff-drawer-list {
  scrollbar-color: #fff transparent;
}
.staff-drawer:hover .staff-drawer-list::-webkit-scrollbar-thumb {
  background: #fff;
}
@supports selector(::-webkit-scrollbar) {
  .staff-drawer-list,
  .staff-drawer:hover .staff-drawer-list {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}
@media (hover: none) {
  .staff-drawer:hover .staff-drawer-list {
    scrollbar-color: transparent transparent;
  }
  .staff-drawer:hover .staff-drawer-list::-webkit-scrollbar-thumb {
    background: transparent;
  }
}
.staff-drawer-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 12px;
  border: var(--sr-stroke-thin) solid transparent;
  border-radius: 12px;
  background: none;
  color: white;
  text-align: left;
}
.staff-drawer-list button.active {
  background: var(--staff-active);
  border-color: #ffffff33;
  box-shadow: 0 4px 15px #10044826;
}
.staff-drawer-list button:hover {
  background: #ffffff18;
}
.staff-drawer-list span {
  flex: 1;
  line-height: 1.3;
}
.staff-drawer-list .logout-row {
  margin-top: 10px;
  border-top: var(--sr-stroke-thin) solid #ffffff22;
}
.staff-app
  :is(
    .mobile-card,
    .staff-detail-section-card,
    .staff-cycle-section,
    .staff-mini-history,
    .staff-success-card,
    .staff-profile-card,
    .staff-reference-customer-detail-card,
    .staff-reference-collection-card,
    .staff-closed-loan-card,
    .staff-upcoming-card
  ) {
  background: #fff;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: var(--staff-radius);
  box-shadow: var(--shadow);
}
.staff-app .mobile-card {
  padding: 18px;
  margin-bottom: 14px;
}
.staff-app
  :is(
    .staff-page-heading,
    .staff-customers-reference-head,
    .staff-collection-reference-head,
    .staff-payment-reference-head,
    .staff-profile-intro
  ) {
  margin-bottom: 16px;
}
.staff-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 95px;
}
.staff-page-heading > div > div {
  min-width: 0;
}
.staff-page-heading.reference-heading > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.staff-page-heading p,
.staff-profile-intro p,
.staff-payment-reference-head p,
.staff-collection-reference-head p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
.staff-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--sr-ink);
  margin-bottom: 5px;
}
.staff-heading-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 14px;
  background: #f6edff;
  color: #890aff;
  flex-shrink: 0;
}
.staff-page-art {
  width: 100px;
  height: 100px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 7px 10px #8b4ed41a);
}
.staff-section-head,
.staff-section-title-row,
.staff-customer-list-head,
.staff-cycle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.staff-section-head {
  margin: 18px 0 12px;
}
.staff-section-head p,
.staff-cycle-head p {
  font-size: 11px;
  margin-top: 3px;
}
.staff-icon-tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  color: #0070fd;
  background: #e4f2ff;
}
.staff-icon-tile.green {
  color: #009456;
  background: #dffbed;
}
.staff-icon-tile.purple {
  color: #830dff;
  background: #f2e8ff;
}
.staff-icon-tile.pink {
  color: #eb008e;
  background: #ffe9f6;
}
.staff-icon-tile.orange {
  color: #db7d00;
  background: #fff0d1;
}
.staff-app .staff-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 20px 12px;
  border: var(--sr-stroke-thin) dashed var(--ui-border);
  border-radius: 14px;
  background: linear-gradient(120deg, #fff, #fbfdff);
  text-align: center;
  min-height: 70px;
}
.staff-empty b {
  font-size: 15px;
}
.staff-empty span {
  font-size: 12px;
}
.staff-empty.reference-empty {
  padding: 20px 12px 16px;
}
.reference-empty:before {
  content: "";
  display: block;
  width: 120px;
  height: 62px;
  background: url("/illustrations/staff-empty.svg") center/contain no-repeat;
  margin-bottom: 3px;
}
.staff-app
  :is(
    .staff-full-cta,
    .staff-outline-cta,
    .staff-reference-add-btn,
    .staff-reference-submit-btn,
    .staff-ref-collect-btn,
    .staff-customer-collect-btn,
    .staff-customer-view-btn,
    .staff-ref-history-btn,
    .staff-reference-filter-btn
  ) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: var(--sr-stroke-thin) solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  max-width: 100%;
  white-space: normal;
}
.staff-app
  :is(
    .staff-full-cta,
    .staff-reference-add-btn,
    .staff-reference-submit-btn,
    .staff-ref-collect-btn,
    .staff-customer-collect-btn
  ) {
  background: var(--staff-action);
  color: #fff;
  box-shadow: 0 5px 15px #7028dc1f;
}
.staff-app .staff-reference-add-btn {
  background: linear-gradient(110deg, #ec02c2, #8610f8);
}
.staff-app
  :is(.staff-outline-cta, .staff-customer-view-btn, .staff-ref-history-btn) {
  border-color: var(--ui-border);
  background: linear-gradient(110deg, #eef7ff, #fff);
  color: #0059d4;
}
.staff-app .staff-reference-filter-btn {
  background: #e5f3ff;
  color: #0063d7;
  flex-shrink: 0;
}
.staff-app :is(.staff-full-cta, .staff-outline-cta):hover {
  filter: brightness(0.98);
}
.staff-status,
.staff-customer-status,
.staff-ref-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 24px;
  background: #e5faef;
  color: #02995d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.staff-status.closed,
.staff-customer-status.closed {
  background: #e9f2ff;
  color: #0060d8;
}
.staff-status.overdue,
.staff-customer-status.overdue,
.staff-ref-status.overdue {
  background: #ffe9f2;
  color: #d90665;
}
.staff-ref-status.pending,
.staff-ref-status.partial {
  background: #fff2dd;
  color: #b66a00;
}
.staff-app .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 20px;
  background: #eaf1ff;
  color: var(--sr-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}
.staff-app .pill.green {
  background: #e3faef;
  color: #008c56;
}
.staff-app .pill.amber {
  background: #fff1dc;
  color: #b66a00;
}
.staff-app .pill.red {
  background: #ffe7ee;
  color: #d5085f;
}
.staff-app .positive,
.staff-app .paid,
.staff-app .money-positive,
.staff-app .green-text,
.staff-app .closed-text {
  color: #039d61;
}
.staff-app .negative {
  color: #e00070;
}
.staff-app .blue-text {
  color: #005ed8;
}
.staff-app .staff-card-money {
  display: block;
  max-width: 100%;
  font: inherit;
  color: inherit;
  line-height: inherit;
}
.staff-app .staff-card-money > span {
  font: inherit;
  color: inherit;
  line-height: inherit;
  overflow-wrap: normal;
}
.staff-app .staff-card-money > .staff-money-full {
  display: none;
}
.staff-app .staff-card-money > .staff-money-short {
  display: block;
  font-size: min(1em, 25px);
  white-space: nowrap;
}
.staff-home-reference-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 136px;
  aspect-ratio: 2172/724;
  padding: 20px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 20px;
  background: #e3eaff;
  isolation: isolate;
  overflow: hidden;
}
.staff-home-reference-copy {
  padding-top: 13px;
  position: relative;
}
.staff-home-greeting-label {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--sr-ink);
}
.staff-home-reference-copy h2 {
  font-size: clamp(27px, 8vw, 38px);
  line-height: 1.13;
  margin-top: 3px;
  letter-spacing: -1px;
  color: var(--sr-ink);
}
.staff-home-reference-copy p {
  font-size: 12px;
  color: var(--sr-ink);
  margin-top: 4px;
  font-weight: 700;
}
.staff-home-hero-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0079ff, #6422ee);
}
.staff-home-date-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #ffffffe6;
  border-radius: 25px;
  padding: 8px 10px;
  color: var(--sr-ink);
  font-size: 9px;
  line-height: 1.3;
}
.staff-home-date-chip svg {
  width: 14px;
  height: 14px;
}
.staff-reference-stat-grid,
.staff-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}
.staff-app .staff-reference-stat,
.staff-app .staff-workflow-card,
.staff-app .staff-portfolio-card {
  --tone: #0057d0;
  --wash: #e4f3ff;
  --edge: var(--ui-border);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-content: start;
  align-items: start;
  gap: 5px 6px;
  min-height: 114px;
  padding: 10px 13px;
  border: var(--sr-stroke-thin) solid var(--edge);
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(115deg, #ffffffdd, var(--wash));
  color: var(--tone);
  isolation: isolate;
  overflow: hidden;
}
.staff-app
  :is(
    .staff-reference-stat,
    .staff-workflow-card,
    .staff-portfolio-card
  ):before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 130% 150%, var(--wash) 45%, transparent 45.5%),
    linear-gradient(146deg, transparent 60%, #ffffff60 60.3%);
  pointer-events: none;
}
.staff-app
  :is(
    .staff-reference-stat.collected,
    .staff-workflow-card.green,
    .staff-portfolio-card.green
  ) {
  --tone: #009762;
  --wash: #e0f9ef;
}
.staff-app
  :is(
    .staff-reference-stat.pending,
    .staff-workflow-card.orange,
    .staff-portfolio-card.orange
  ) {
  --tone: #b96300;
  --wash: #fff4d8;
}
.staff-app
  :is(
    .staff-reference-stat.overdue,
    .staff-workflow-card.pink,
    .staff-portfolio-card.teal
  ) {
  --tone: #d80068;
  --wash: #ffe6f2;
}
.staff-app .staff-portfolio-card.purple {
  --tone: #6b05cb;
  --wash: #f4e9ff;
}
.staff-reference-stat-icon,
.staff-workflow-icon,
.staff-portfolio-card .portfolio-icon {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--wash);
  color: var(--tone);
}
.staff-reference-stat-content,
.staff-workflow-copy {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  gap: 1px;
  align-self: stretch;
}
.staff-reference-stat-title,
.staff-workflow-copy > b {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.staff-reference-stat-value,
.staff-workflow-copy > strong {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.staff-reference-stat-subtitle,
.staff-workflow-copy > small {
  font-style: normal;
  font-size: 11px;
  line-height: 1.4;
  color: var(--sr-ink);
}
.staff-stat-arrow,
.staff-workflow-arrow,
.staff-portfolio-card .portfolio-arrow {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  align-self: end;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffffdd;
  color: var(--tone);
}
.staff-stat-art {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 40%;
  height: 72%;
  color: var(--tone);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}
.staff-stat-art svg {
  width: 100%;
  height: 100%;
}
.staff-reference-stat-content {
  grid-column: 1/-1;
}
.staff-reference-stat-subtitle {
  padding-right: 30px;
}
.staff-stat-arrow {
  position: relative;
  margin-left: -30px;
}
.staff-reference-total-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 14px 8px;
  background: #fff;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  align-items: stretch;
}
.staff-reference-total-card > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  padding: 0 8px;
  border-left: var(--sr-stroke-thin) solid var(--ui-border);
  align-items: center;
}
.staff-reference-total-card > div:first-child {
  border: 0;
}
.staff-reference-total-card .staff-icon-tile {
  grid-row: 1/3;
  width: 31px;
  height: 39px;
}
.staff-reference-total-card > div > span:not(.staff-icon-tile) {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--sr-ink);
}
.staff-reference-total-card b {
  font-size: 19px;
  line-height: 1.25;
  color: var(--sr-ink);
}
.staff-reference-progress {
  padding: 12px 15px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 17px;
  background: linear-gradient(110deg, #fff, #f4efff);
  box-shadow: var(--shadow);
}
.staff-reference-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.staff-reference-progress > div > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}
.staff-reference-progress > div > b {
  font-size: 27px;
  line-height: 1.2;
  color: #4300d8;
}
.staff-progress-track {
  height: 10px;
  overflow: hidden;
  background: #e4e3f4;
  border-radius: 12px;
  margin: 8px 0;
}
.staff-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--staff-gradient);
}
.staff-reference-progress > small {
  font-size: 11px;
}
.staff-home-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
}
.staff-app .staff-home-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 2px;
  align-items: start;
  padding: 9px 10px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 15px;
  background: linear-gradient(135deg, #eff9ff, #dfeeff);
  text-align: left;
  color: var(--sr-ink);
}
.staff-home-action-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #d5edff;
  color: #0076ff;
}
.staff-home-action > b {
  font-size: 10px;
  line-height: 1.2;
  grid-column: 1/-1;
}
.staff-home-action > small {
  font-size: 9px;
  line-height: 1.25;
  grid-column: 1/-1;
}
.staff-home-action > span:last-child {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  color: #0066e4;
}
.staff-app .staff-home-action.green {
  background: linear-gradient(135deg, #f3fffb, #dcfaee);
  border-color: var(--ui-border);
}
.staff-home-action.green .staff-home-action-icon {
  background: #d3f9e9;
  color: #00965e;
}
.staff-app .staff-home-action.purple {
  background: linear-gradient(135deg, #f8f2ff, #eaddff);
  border-color: var(--ui-border);
}
.staff-home-action.purple .staff-home-action-icon {
  background: #eadbff;
  color: #7706e5;
}
.staff-app .staff-home-action.orange {
  background: linear-gradient(135deg, #fffcf4, #fff0d6);
  border-color: #ffdaa4;
}
.staff-home-action.orange .staff-home-action-icon {
  background: #ffebc7;
  color: #e68a00;
}
.staff-date-select {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  margin-top: 13px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #005ae4;
}
.staff-date-select input {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.staff-workflow-card .staff-workflow-copy {
  grid-column: 1/-1;
  padding-right: 25px;
}
.staff-workflow-arrow {
  margin-left: -30px;
}
.staff-workflow-card.active {
  box-shadow:
    inset 0 0 0 1px #fff,
    0 5px 15px #234ca008;
}
.staff-search-filter-row,
.staff-search-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
  margin: 14px 0;
}
.staff-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 15px;
  background: #fff;
  color: #3474d9;
  box-shadow: var(--shadow);
}
.staff-search input {
  width: 100%;
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}
.staff-search input::placeholder {
  color: var(--sr-ink);
}
.staff-ref-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.staff-ref-summary-grid > div {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.staff-ref-summary-grid span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--sr-ink);
  font-weight: 700;
}
.staff-ref-summary-grid b {
  font-size: 20px;
  line-height: 1.25;
}
.staff-customers-reference-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.staff-customers-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.staff-customers-title-copy h2 {
  font-size: 25px;
}
.staff-customers-title-copy p {
  font-size: 11px;
  line-height: 1.4;
  margin-top: 4px;
}
.staff-reference-add-btn {
  flex-shrink: 0;
}
.staff-customer-reference-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.staff-app .staff-customer-filter {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 3.6ch;
  align-items: center;
  gap: 6px;
  padding: 11px 10px;
  min-height: 45px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 13px;
  background: #f5edff;
  color: #6f10d6;
  text-align: left;
}
.staff-customer-filter > svg {
  width: 18px;
  height: 18px;
}
.staff-customer-filter > span {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.staff-customer-filter > b {
  font-size: 13px;
  line-height: 1;
  width: 3.6ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}
.staff-app .staff-customer-filter:nth-child(2) {
  background: #edf7ff;
  color: #0064d9;
  border-color: var(--ui-border);
}
.staff-app .staff-customer-filter:nth-child(3) {
  background: #fff2df;
  color: #a75b00;
  border-color: var(--ui-border);
}
.staff-app .staff-customer-filter:nth-child(4) {
  background: #fff0f6;
  color: #d90069;
  border-color: var(--ui-border);
}
.staff-app .staff-customer-filter.active {
  background: var(--staff-active);
  color: white;
  border-color: #df5df6;
  box-shadow: 0 5px 15px #7835d523;
}
.staff-customer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  background: #fff;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 19px;
  padding: 14px 8px;
  box-shadow: var(--shadow);
}
.staff-customer-stats > div {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 8px;
  padding: 0 9px;
  border-left: var(--sr-stroke-thin) solid var(--ui-border);
}
.staff-customer-stats > div:first-child {
  border-left: 0;
}
.staff-customer-stat-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #e6f1ff;
  color: #0968dc;
  font-style: normal;
}
.staff-customer-stat-icon.purple {
  background: #f4eaff;
  color: #850df7;
}
.staff-customer-stat-icon.green {
  background: #e1f8e9;
  color: #06a01e;
}
.staff-customer-stats span {
  font-size: 10px;
  line-height: 1.3;
  color: var(--sr-ink);
}
.staff-customer-stats b {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.staff-customer-list-head {
  margin: 16px 0 10px;
}
.staff-customer-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
  font-size: 11px;
}
.staff-customer-sort small {
  font-size: 10px;
}
.staff-customer-sort svg {
  transform: rotate(90deg);
}
.staff-reference-customer-list,
.staff-reference-collection-list,
.staff-portfolio-list,
.staff-closed-loan-list,
.staff-upcoming-list {
  display: grid;
  gap: 12px;
}
.staff-reference-customer-detail-card {
  padding: 13px;
}
.staff-customer-card-top {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.staff-photo,
.customer-detail-photo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0edff, #f4e5ff);
  color: var(--sr-ink);
  font-weight: 800;
  overflow: hidden;
}
.staff-photo img,
.staff-photo button,
.customer-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.staff-photo .staff-photo,
.staff-photo .staff-ref-photo {
  width: 100%;
  height: 100%;
}
.staff-ref-photo.large {
  width: 54px;
  height: 54px;
}
.staff-customer-card-copy h3 {
  font-size: 17px;
}
.staff-customer-card-copy p,
.staff-customer-card-copy > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10px;
  line-height: 1.4;
  margin-top: 3px;
  color: var(--sr-ink);
}
.staff-customer-card-right {
  display: grid;
  justify-items: end;
  gap: 7px;
  max-width: 124px;
}
.staff-customer-card-right strong {
  font-size: 17px;
  line-height: 1.25;
}
.staff-customer-card-right small {
  font-size: 10px;
  text-align: right;
}
.staff-customer-chevron {
  color: var(--sr-ink);
  padding: 0;
  display: grid;
  place-items: center;
}
.staff-customer-loan-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: #f5f8ff;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 13px;
  margin-top: 13px;
  padding: 2px 9px;
}
.staff-customer-loan-metrics > div {
  display: grid;
  gap: 5px;
  padding: 10px 7px;
  position: relative;
}
.staff-customer-loan-metrics > div:nth-child(n + 3) {
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
}
.staff-customer-loan-metrics > div:nth-child(even) {
  border-left: var(--sr-stroke-thin) solid var(--ui-border);
}
.staff-customer-loan-metrics span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--sr-ink);
}
.staff-customer-loan-metrics span svg {
  width: 15px;
  height: 15px;
}
.staff-customer-loan-metrics b {
  font-size: 16px;
  line-height: 1.25;
}
.staff-customer-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.staff-app .staff-customer-view-btn {
  background: #e0efff;
  border-color: transparent;
}
.staff-reference-collection-card {
  padding: 14px;
}
.staff-ref-customer-top {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.staff-ref-customer-main {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  padding: 0;
  text-align: left;
}
.staff-ref-customer-copy {
  display: grid;
  gap: 3px;
}
.staff-ref-customer-copy > b {
  font-size: 16px;
}
.staff-ref-customer-copy small,
.staff-ref-customer-copy > span {
  font-size: 10px;
  color: var(--sr-ink);
}
.staff-ref-customer-copy i {
  font-style: normal;
  margin: 0 3px;
}
.staff-ref-more {
  font-size: 20px;
  padding: 0 3px;
  color: var(--sr-ink);
}
.staff-ref-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0;
  gap: 10px;
  margin-top: 7px;
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
}
.staff-ref-metrics > div {
  display: grid;
  gap: 4px;
  border-left: var(--sr-stroke-thin) solid var(--line);
  padding-left: 10px;
}
.staff-ref-metrics > div:first-child {
  border: 0;
  padding: 0;
}
.staff-ref-metrics span {
  font-size: 11px;
  color: var(--muted);
}
.staff-ref-metrics b {
  font-size: 18px;
  color: var(--sr-ink);
}
.staff-ref-metrics .collected {
  color: #009a64;
}
.staff-ref-metrics .balance {
  color: #dc006a;
}
.staff-ref-card-action {
  display: flex;
  justify-content: flex-end;
}
.staff-ref-card-action button {
  min-width: 130px;
}
.staff-detail-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 18px;
  background: linear-gradient(110deg, #eef8ff, #fdf1ff);
  box-shadow: var(--shadow);
}
.staff-detail-avatar,
.staff-detail-avatar .customer-detail-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}
.staff-detail-avatar button {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
}
.staff-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.staff-detail-info h2 {
  font-family: Manrope, sans-serif;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.staff-detail-info > small,
.staff-detail-info p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 4px;
}
.staff-call-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #e900b2;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  box-shadow: 0 6px 14px #c927d322;
}
.staff-detail-tabs {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr;
  gap: 6px;
  margin: 12px 0;
}
.staff-detail-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 5px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 12px;
  background: #fff;
  color: var(--sr-ink);
  font-size: 10px;
  font-weight: 800;
}
.staff-detail-tabs .active {
  background: linear-gradient(110deg, #ed00ca, #6714ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px #8534cb22;
}
.staff-detail-tabs svg {
  width: 17px;
  height: 17px;
}
.staff-detail-section-card,
.staff-mini-history,
.staff-cycle-section {
  padding: 6px;
  margin-bottom: 12px;
}
.staff-section-title-row {
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e9f4ff, #f8fbff);
  gap: 8px;
}
.staff-section-title-row h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.staff-section-title-row .staff-icon-tile {
  width: 27px;
  height: 27px;
  border-radius: 9px;
}
.staff-section-title-row p {
  font-size: 10px;
  margin-top: 2px;
}
.staff-section-title-row.purple {
  background: linear-gradient(90deg, #f1e9ff, #fbf8ff);
}
.staff-section-title-row.green {
  background: linear-gradient(90deg, #ddf8ee, #f3fffa);
}
.staff-section-title-row.pink {
  background: linear-gradient(90deg, #ffe9f8, #fff7fc);
}
.staff-mini-edit {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #0066f7;
  border-radius: 10px;
  padding: 6px 9px;
  background: #e3f1ff;
}
.staff-detail-info-grid,
.staff-loan-summary-reference {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 2px 1px;
}
.staff-detail-info-grid > div,
.staff-loan-summary-reference > div {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  padding: 4px;
  background: linear-gradient(110deg, #edf6ff, #f5f8fd);
  border-radius: 9px;
}
.staff-detail-info-grid .staff-icon-tile,
.staff-loan-summary-reference .staff-icon-tile {
  width: 31px;
  height: 33px;
  grid-row: 1/3;
  border-radius: 8px;
}
.staff-detail-info-grid span:not(.staff-icon-tile),
.staff-loan-summary-reference span:not(.staff-icon-tile) {
  font-size: 10px;
  color: var(--sr-ink);
}
.staff-detail-info-grid b,
.staff-loan-summary-reference b {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.staff-detail-info-grid .full,
.staff-loan-summary-reference > div:last-child {
  grid-column: 1/-1;
}
.staff-mini-history .staff-section-head {
  margin: 0 0 5px;
  padding: 7px;
  border-radius: 10px;
  background: linear-gradient(110deg, #fff0fa, #fff9fc);
}
.staff-mini-history h3 {
  font-size: 14px;
  color: #d809a6;
}
.staff-history-detail-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 6px;
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
}
.staff-history-detail-row:first-of-type {
  border: 0;
}
.staff-history-detail-row b,
.staff-history-detail-row strong {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}
.staff-history-detail-row small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.staff-history-detail-row > div:nth-child(2) {
  color: #009663;
}
.staff-history-detail-row > div:nth-child(3) {
  color: #cf7200;
}
.staff-history-detail-row > div:nth-child(4) {
  color: #e00459;
}
.staff-repayment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 12px;
}
.staff-repayment-cards > div {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 1px 10px;
  align-content: center;
  min-height: 68px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow);
}
.staff-repayment-cards .staff-icon-tile {
  grid-row: 1/4;
  width: 37px;
  height: 37px;
  border-radius: 50%;
}
.staff-repayment-cards span:not(.staff-icon-tile) {
  font-size: 10px;
  color: var(--sr-ink);
}
.staff-repayment-cards b {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.staff-repayment-cards small {
  font-size: 10px;
  grid-column: 2;
}
.staff-repayment-cards .full {
  grid-column: 1/-1;
}
.staff-app .staff-prominent-collect,
.staff-app .staff-settlement-btn {
  display: flex;
  width: 100%;
  margin-bottom: 8px;
}
.staff-prominent-collect {
  background: var(--staff-gradient);
}
.staff-paid-banner,
.staff-settlement-status,
.staff-next-cycle-card {
  padding: 14px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 13px;
  background: #f0f7ff;
  margin-bottom: 12px;
}
.staff-settlement-status b,
.staff-settlement-status span,
.staff-next-cycle-card span {
  display: block;
}
.staff-settlement-status b,
.staff-next-cycle-card b {
  font-size: 13px;
}
.staff-settlement-status span,
.staff-next-cycle-card span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.staff-cycle-sections {
  display: grid;
  gap: 12px;
}
.staff-cycle-section {
  margin: 0;
  padding: 12px;
}
.staff-cycle-head {
  align-items: flex-start;
  margin-bottom: 10px;
}
.staff-cycle-head h3 {
  font-size: 18px;
}
.staff-cycle-head .staff-kicker {
  font-size: 9px;
  margin-bottom: 2px;
}
.staff-cycle-count {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  background: #eff4ff;
  border-radius: 10px;
  color: #0462da;
  font-size: 12px;
}
.staff-cycle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.staff-cycle-grid > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  padding: 7px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 11px;
}
.staff-cycle-grid .staff-icon-tile {
  width: 28px;
  height: 30px;
  grid-row: 1/3;
}
.staff-cycle-grid span:not(.staff-icon-tile) {
  font-size: 10px;
  color: var(--muted);
}
.staff-cycle-grid b {
  font-size: 14px;
  line-height: 1.3;
}
.staff-closed-cycle-row {
  padding: 11px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 12px;
  margin-top: 8px;
}
.staff-closed-cycle-row strong,
.staff-closed-cycle-row span {
  display: block;
}
.staff-closed-cycle-row strong {
  font-size: 14px;
}
.staff-closed-cycle-row span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.staff-closed-cycle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.staff-closed-cycle-actions button {
  flex: 1 1 130px;
}
.staff-portfolio-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.staff-app .staff-portfolio-card {
  min-height: 124px;
  grid-template-rows: auto auto auto 1fr;
  padding: 12px;
}
.staff-portfolio-card > b,
.staff-portfolio-card > strong,
.staff-portfolio-card > small {
  grid-column: 1/-1;
  padding-right: 25px;
}
.staff-portfolio-card > b {
  grid-row: 2;
  font-size: 12px;
  line-height: 1.3;
}
.staff-portfolio-card > strong {
  grid-row: 3;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.staff-portfolio-card > small {
  grid-row: 4;
  font-size: 10px;
  line-height: 1.4;
  color: var(--sr-ink);
}
.staff-portfolio-card .portfolio-arrow {
  grid-row: 3/5;
  align-self: end;
}
.staff-portfolio-card.wide {
  grid-column: 1/-1;
  min-height: 103px;
}
.staff-portfolio-loan {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 14px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 15px;
  text-align: left;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: var(--shadow);
}
.staff-app .staff-portfolio-loan {
  border: var(--sr-stroke-thin) solid var(--line);
  background: white;
}
.staff-portfolio-loan b {
  display: block;
  font-size: 16px;
}
.staff-portfolio-loan small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.staff-portfolio-loan-metrics {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 5px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 12px;
  background: #f6f9ff;
  padding: 12px 8px;
}
.staff-portfolio-loan-metrics > div {
  padding: 0 5px;
}
.staff-portfolio-loan-metrics > div + div {
  border-left: var(--sr-stroke-thin) solid var(--ui-border);
}
.staff-portfolio-loan-metrics span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--sr-ink);
}
.staff-portfolio-loan-metrics b {
  font-size: 16px;
  margin-top: 6px;
  color: var(--sr-ink);
}
.portfolio-loan-right {
  text-align: right;
  max-width: 130px;
}
.portfolio-loan-right strong {
  display: block;
  font-size: 17px;
  color: var(--sr-ink);
}
.portfolio-loan-right span {
  display: inline-flex;
  margin-top: 5px;
  font-size: 10px;
  color: #059260;
  background: #e2faef;
  border-radius: 14px;
  padding: 3px 8px;
}
.staff-upcoming-day {
  margin-bottom: 12px;
}
.staff-upcoming-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
}
.staff-upcoming-day-head b {
  font-size: 15px;
}
.staff-upcoming-day-head small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.staff-upcoming-day-head strong {
  font-size: 16px;
  color: #7c0aea;
}
.staff-upcoming-card {
  padding: 13px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.staff-upcoming-main > b {
  display: block;
  font-size: 17px;
}
.staff-upcoming-main > small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.staff-upcoming-metrics {
  grid-column: 1/3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 12px;
  background: #f8faff;
}
.staff-upcoming-metrics span {
  display: block;
  font-size: 10px;
  color: var(--sr-ink);
}
.staff-upcoming-metrics b {
  display: block;
  font-size: 15px;
  color: #0064ed;
}
.staff-upcoming-metrics > div:nth-child(2) b {
  color: #d97e00;
}
.staff-upcoming-metrics > div:last-child b {
  color: #f00072;
}
.staff-upcoming-card > .staff-outline-cta {
  grid-column: 3;
  grid-row: 2;
  background: var(--staff-active);
  color: #fff;
  border: 0;
}
.staff-upcoming-date {
  padding: 8px;
  border-radius: 12px;
  background: #f7f0ff;
  color: #8800f4;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}
.staff-upcoming-card .staff-photo {
  grid-column: 1;
  grid-row: 1;
}
.staff-closed-loan-card {
  padding: 15px;
  background: linear-gradient(130deg, #fff, #fefaff);
}
.staff-closed-loan-main {
  display: flex;
  gap: 14px;
  align-items: center;
}
.staff-closed-loan-main .staff-photo {
  width: 66px;
  height: 66px;
}
.staff-closed-loan-main h3 {
  font-size: 21px;
}
.staff-closed-loan-main > div:last-child > p,
.staff-closed-loan-main > div:last-child > span {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: var(--sr-ink);
}
.staff-closed-loan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
}
.staff-closed-loan-grid > div {
  display: grid;
  gap: 6px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(130deg, #faf4ff, #f5f9ff);
}
.staff-closed-loan-grid small {
  font-size: 10px;
}
.staff-closed-loan-grid b {
  font-size: 15px;
  line-height: 1.3;
  color: #0061d8;
}
.staff-closed-loan-grid .closed-text {
  color: #049c43;
}
.staff-closed-loan-actions {
  display: grid;
  gap: 9px;
  border-top: var(--sr-stroke-thin) solid var(--ui-border);
  padding-top: 12px;
}
.staff-closed-loan-actions button {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
}
.staff-daily-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.staff-daily-summary-grid > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 5px 10px;
  align-content: start;
  min-height: 130px;
  padding: 12px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 17px;
  background: linear-gradient(135deg, #fff, #e9f7ff);
  position: relative;
  overflow: hidden;
}
.staff-daily-summary-grid > div:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -28px;
  width: 100%;
  height: 45px;
  border-radius: 50%;
  background: #afdfff70;
  pointer-events: none;
}
.staff-daily-summary-grid > div:nth-child(2) {
  background: linear-gradient(135deg, #fff, #fdf0ff);
  border-color: var(--ui-border);
}
.staff-daily-summary-grid > div:nth-child(2):after {
  background: #edbaff70;
}
.staff-daily-summary-grid > div:nth-child(3) {
  background: linear-gradient(135deg, #fff, #fff9e8);
  border-color: var(--ui-border);
}
.staff-daily-summary-grid > div:nth-child(3):after {
  background: #ffdf9b70;
}
.staff-daily-summary-grid > div:nth-child(4) {
  background: linear-gradient(135deg, #fff, #f4eeff);
  border-color: var(--ui-border);
}
.staff-daily-summary-grid > div:nth-child(4):after {
  background: #d8bdff70;
}
.staff-daily-summary-grid .staff-icon-tile {
  grid-column: 1;
  grid-row: 1/4;
  width: 40px;
  height: 40px;
}
.staff-daily-summary-grid > div > span:not(.staff-icon-tile) {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.staff-daily-summary-grid > div > b {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.staff-daily-summary-grid > div > small {
  font-size: 11px;
  line-height: 1.4;
}
.staff-summary-actions {
  display: grid;
  gap: 10px;
}
.staff-summary-actions button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 17px;
  background: #fff;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.staff-summary-actions .staff-icon-tile {
  width: 42px;
  height: 44px;
  border-radius: 13px;
}
.staff-summary-actions b {
  min-width: 28px;
  padding: 5px 7px;
  border-radius: 30px;
  background: #f0f5ff;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}
.staff-app .mobile-hero {
  padding: 20px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 20px;
  background: var(--staff-gradient);
  color: white;
  margin-bottom: 14px;
}
.staff-app .mobile-hero h2 {
  font-size: 32px;
  margin: 7px 0;
  color: white;
}
.staff-app .mobile-hero p {
  font-size: 12px;
  color: #e1eaff;
}
.staff-app .statline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  font-size: 12px;
}
.staff-app .statline > span {
  color: var(--muted);
}
.staff-app .statline > b {
  text-align: right;
  max-width: 65%;
}
.staff-app .section-head {
  margin: 18px 0 12px;
}
.staff-app .empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.reconciliation-pending-banner {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #e9f8ff;
  margin-bottom: 14px;
}
.reconciliation-pending-banner b {
  font-size: 14px;
}
.reconciliation-pending-banner span,
.reconciliation-empty span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.staff-profile-card {
  position: relative;
  isolation: isolate;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #eef7ff, #f5ebff);
}
.staff-profile-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at 110% 130%,
    #c9b2ff5e 50%,
    transparent 50.5%
  );
}
.staff-profile-avatar-wrap {
  position: relative;
  width: 72px;
  margin-bottom: 10px;
}
.staff-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: var(--sr-stroke-strong) solid #fff;
  display: grid;
  place-items: center;
  color: #2561ca;
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 4px 15px #1632871a;
}
.staff-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.staff-profile-camera {
  position: absolute;
  right: -3px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: var(--sr-stroke-medium) solid white;
  border-radius: 50%;
  background: #730bfb;
  color: white;
}
.staff-profile-kicker {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--sr-ink);
  font-weight: 800;
}
.staff-profile-identity h2 {
  font-size: 24px;
  margin: 5px 0;
}
.staff-profile-identity > p,
.staff-profile-identity > small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
.staff-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #e3faee;
  color: #019253;
  margin-top: 12px;
}
.staff-profile-illustration {
  position: relative;
  color: #9270dc;
}
.staff-profile-person {
  display: grid;
  place-items: center;
  width: 95px;
  height: 95px;
  border-radius: 30px;
  background: #ddcaff80;
}
.staff-profile-verified {
  position: absolute;
  right: -7px;
  bottom: -10px;
  color: #005fe5;
}
.staff-profile-verified i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
}
.staff-profile-actions {
  display: grid;
  gap: 10px;
}
.staff-profile-actions button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 16px;
  background: white;
  text-align: left;
  box-shadow: var(--shadow);
}
.staff-profile-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e8f2ff;
  color: #0874ee;
  flex-shrink: 0;
}
.staff-profile-action-copy {
  flex: 1;
}
.staff-profile-action-copy b {
  display: block;
  font-size: 14px;
}
.staff-profile-action-copy small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.staff-profile-action-chevron {
  color: var(--sr-ink);
}
.staff-profile-actions .danger .staff-profile-action-icon {
  background: #fff0f6;
  color: #dc0874;
}
.staff-payment-customer-reference {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 17px;
  background: #fff;
  padding: 15px;
}
.staff-payment-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #edf4ff;
  color: var(--sr-ink);
}
.staff-payment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.staff-payment-customer-copy {
  flex: 1;
}
.staff-payment-customer-copy h3 {
  font-size: 17px;
}
.staff-payment-customer-copy span,
.staff-payment-customer-meta span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.staff-payment-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.staff-payment-summary-cards > div {
  padding: 13px 11px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 15px;
  background: #edf7ff;
}
.staff-payment-summary-cards .orange {
  background: #fff6e7;
  border-color: var(--ui-border);
}
.staff-payment-summary-cards .green {
  background: #eafbf1;
  border-color: var(--ui-border);
}
.staff-payment-summary-cards span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.staff-payment-summary-cards b {
  display: block;
  font-size: 20px;
  margin-top: 9px;
}
.staff-payment-reference-card,
.staff-collection-summary-reference {
  padding: 16px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: var(--shadow);
}
.staff-payment-amount-head label {
  font-size: 15px;
  font-weight: 800;
  display: block;
}
.staff-payment-amount-head > span,
.staff-payment-limit {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin: 5px 0 10px;
}
.staff-payment-reference-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 12px;
  background: #f6faff;
}
.staff-payment-reference-input > span {
  font-size: 24px;
  color: var(--sr-ink);
}
.staff-payment-reference-input input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 25px;
  font-weight: 800;
  min-height: 36px;
}
.staff-payment-reference-input input::placeholder {
  font-size: 16px;
  font-weight: 500;
  color: var(--sr-ink);
}
.staff-payment-limit {
  margin: 9px 0 0;
}
.staff-payment-date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.staff-payment-field-card {
  padding: 14px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 14px;
  background: white;
}
.staff-payment-field-card > b,
.staff-payment-field-card > label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.staff-payment-field-card > div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.staff-payment-remarks input {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 24px;
  font-size: 12px;
  outline: none;
}
.staff-payment-field-card em {
  font-style: normal;
  color: #df1176;
}
.staff-collection-summary-reference h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.staff-collection-summary-reference > div {
  display: grid;
  gap: 9px;
}
.staff-collection-summary-reference > div > span {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
.staff-collection-summary-reference strong {
  color: var(--ink);
  text-align: right;
}
.staff-app .staff-reference-submit-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}
.staff-success-card {
  text-align: center;
  padding: 24px 20px;
}
.staff-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  background: #e1f8ed;
  color: #02a468;
  border-radius: 50%;
}
.staff-success-card h2 {
  font-size: 26px;
}
.staff-success-card > p {
  font-size: 12px;
  margin: 8px 0;
}
.staff-receipt-total {
  font-size: 34px;
  font-weight: 800;
  color: #0966de;
  margin: 15px 0;
}
.staff-receipt {
  display: grid;
  gap: 0;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  text-align: left;
  background: #f8faff;
}
.staff-receipt > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: var(--sr-stroke-thin) solid var(--line);
  font-size: 12px;
}
.staff-receipt > div:last-child {
  border: 0;
}
.staff-receipt span {
  color: var(--muted);
}
.staff-receipt b {
  text-align: right;
  max-width: 60%;
}
.staff-success-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.staff-mode #modal .modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0c164960;
  backdrop-filter: blur(4px);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-mode #modal .modal-card {
  width: min(680px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: var(--sr-stroke-thin) solid var(--ui-border-strong);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 70px #0715414d;
}
.staff-mode #modal .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  background: linear-gradient(110deg, #f1f6ff, #fcf3ff);
}
.staff-mode #modal h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.staff-mode #modal p {
  overflow-wrap: anywhere;
}
.staff-mode #modal .close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 10px;
  background: #fff;
  color: var(--sr-ink);
  font-size: 22px;
}
.staff-mode #modal .modal-body {
  padding: 20px;
}
.staff-mode #modal .modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 15px 20px;
  border-top: var(--sr-stroke-thin) solid var(--line);
  background: #f9fbff;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.staff-mode :is(.staff-app, #modal) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 15px;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 11px;
  background: #fff;
  color: var(--sr-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
}
.staff-mode :is(.staff-app, #modal) .btn.primary,
.staff-mode :is(.staff-app, #modal) .btn.success {
  background: var(--staff-action);
  border-color: transparent;
  color: #fff;
}
.staff-mode :is(.staff-app, #modal) .btn.danger {
  color: #d70866;
  background: #fff0f6;
  border-color: #f9cbe1;
}
.staff-mode :is(.staff-app, #modal) .field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
  min-width: 0;
}
.staff-mode :is(.staff-app, #modal) .field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sr-ink);
}
.staff-mode :is(.staff-app, #modal) .field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  border: var(--sr-stroke-thin) solid var(--ui-border);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fbfdff;
  color: var(--sr-ink);
  font-size: 14px;
  line-height: 1.4;
  min-height: 43px;
}
.staff-mode :is(.staff-app, #modal) .field input[type="file"] {
  font-size: 11px;
  padding: 8px;
  white-space: normal;
}
.staff-mode :is(.staff-app, #modal) .field small {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.staff-mode :is(.staff-app, #modal) textarea {
  resize: vertical;
}
.staff-mode #modal .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.staff-mode #modal .field.full {
  grid-column: 1/-1;
}
.staff-mode #modal .card {
  padding: 14px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 12px;
  background: #f7faff;
}
.staff-mode #modal .statline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 12px;
}
.staff-mode #modal .statline b {
  text-align: right;
}
.staff-mode #modal :is(.schedule, .table-wrap) {
  max-width: 100%;
  overflow-x: auto;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 10px;
}
.staff-mode #modal table {
  border: var(--sr-stroke-thin) solid var(--ui-border-strong);
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  min-width: 480px;
}
.staff-mode #modal :is(th, td) {
  padding: 10px;
  text-align: left;
  border-bottom: var(--sr-stroke-thin) solid var(--ui-border);
  border-inline-end: var(--sr-stroke-thin) solid var(--ui-border);
}
.staff-mode #modal th {
  background: var(--ui-table-head);
  color: var(--sr-ink);
}
.staff-mode #modal .schedule-preview {
  margin-top: 12px;
}
.staff-mode #modal .schedule-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}
.staff-mode #modal .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.staff-mode #modal .detail-grid > div {
  padding: 10px;
  background: #f4f8ff;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 10px;
}
.staff-mode #modal .detail-grid :is(span, small) {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.staff-mode #modal .detail-grid b {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.staff-mode #modal .photo-capture {
  border: var(--sr-stroke-thin) dashed var(--ui-border);
  border-radius: 12px;
  padding: 10px;
  background: #fafcff;
}
.staff-mode #modal img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 10px;
}
.staff-mode #modal .password-field-wrap {
  display: flex;
  position: relative;
}
.staff-mode #modal .password-field-wrap input {
  padding-right: 42px;
}
.staff-mode #modal .password-eye-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  color: var(--sr-ink);
}
.staff-mode #modal .image-upload-progress {
  flex: 1 1 100%;
  font-size: 11px;
  color: var(--sr-ink);
}
.staff-mode #modal .image-upload-progress[hidden] {
  display: none;
}
.staff-mode #modal .image-upload-progress-track {
  height: 4px;
  background: #e2e9f9;
  border-radius: 6px;
  overflow: hidden;
}
.staff-mode #modal .image-upload-progress-track span {
  display: block;
  height: 100%;
  background: var(--staff-gradient);
}
.staff-mode #modal .photo-capture-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.staff-mode #modal .compact-photo-preview-box {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: var(--sr-stroke-thin) dashed var(--ui-border);
  border-radius: 12px;
  background: #f6f9ff;
  color: var(--sr-ink);
  font-size: 11px;
}
.staff-mode #modal .compact-photo-preview {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.staff-mode #modal .compact-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.staff-mode #modal .photo-capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 130px;
}
.staff-mode #modal [hidden] {
  display: none;
}
.staff-notification-list {
  display: grid;
  gap: 10px;
}
.staff-notification-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: var(--sr-stroke-thin) solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.staff-notification-card.unread {
  background: #faf5ff;
  border-color: var(--ui-border);
}
.staff-notification-card .staff-notification-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  flex-shrink: 0;
  background: #eee6ff;
  color: #7f26e4;
}
.staff-notification-card .notification-main {
  display: flex;
  gap: 11px;
  text-align: left;
  flex: 1;
  padding: 0;
}
.staff-notification-card b,
.staff-notification-card small,
.staff-notification-card em {
  display: block;
  overflow-wrap: anywhere;
}
.staff-notification-card b {
  font-size: 13px;
}
.staff-notification-card small {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
}
.staff-notification-card em {
  font-style: normal;
  font-size: 10px;
  color: var(--sr-ink);
  margin-top: 6px;
}
.staff-notification-card .notification-read {
  color: #7750cd;
  font-size: 10px;
  white-space: normal;
  padding: 5px;
  flex-shrink: 0;
  max-width: 65px;
}
.staff-header-panel .sr-notification-head {
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px;
}
.staff-header-panel .sr-notification-row {
  padding: 14px 15px;
}
.staff-header-panel .sr-notification-item-copy b {
  font-size: 13px;
}
.staff-header-panel .sr-notification-item-copy small {
  font-size: 12px;
  line-height: 1.5;
}
.staff-header-panel .sr-notification-read {
  min-height: 30px;
}
.staff-header-panel .sr-notification-head button {
  min-height: 30px;
}
@media (min-width: 700px) {
  .staff-mode {
    --staff-padding: 24px;
    --staff-gap: 16px;
    font-size: 15px;
  }
  .staff-reference-top {
    min-height: 74px;
    padding-top: calc(13px + env(safe-area-inset-top));
    padding-bottom: 13px;
  }
  .staff-reference-content {
    padding-bottom: 110px;
  }
  .staff-home-reference-hero {
    min-height: 230px;
    padding: 35px;
  }
  .staff-home-greeting-label {
    font-size: 16px;
  }
  .staff-home-reference-copy h2 {
    font-size: 54px;
  }
  .staff-home-reference-copy p {
    font-size: 17px;
  }
  .staff-home-date-chip {
    font-size: 13px;
    padding: 12px 17px;
  }
  .staff-reference-stat-grid,
  .staff-workflow-grid {
    gap: 15px;
  }
  .staff-app .staff-reference-stat,
  .staff-app .staff-workflow-card {
    min-height: 145px;
    padding: 17px;
  }
  .staff-reference-stat-icon,
  .staff-workflow-icon {
    width: 43px;
    height: 43px;
  }
  .staff-reference-stat-title,
  .staff-workflow-copy > b {
    font-size: 16px;
  }
  .staff-reference-stat-value,
  .staff-workflow-copy > strong {
    font-size: 32px;
  }
  .staff-reference-stat-subtitle,
  .staff-workflow-copy > small {
    font-size: 13px;
  }
  .staff-reference-total-card {
    padding: 20px;
  }
  .staff-reference-total-card > div > span:not(.staff-icon-tile) {
    font-size: 13px;
  }
  .staff-reference-total-card b {
    font-size: 25px;
  }
  .staff-reference-total-card .staff-icon-tile {
    width: 40px;
    height: 43px;
  }
  .staff-reference-progress {
    padding: 20px;
  }
  .staff-reference-progress > div > span {
    font-size: 21px;
  }
  .staff-reference-progress > div > b {
    font-size: 35px;
  }
  .staff-home-action-grid {
    gap: 14px;
  }
  .staff-app .staff-home-action {
    padding: 15px;
    gap: 10px;
  }
  .staff-home-action > b {
    font-size: 15px;
  }
  .staff-home-action > small {
    font-size: 11px;
  }
  .staff-home-action-icon {
    width: 42px;
    height: 42px;
  }
  .staff-reference-bottom {
    padding-top: 8px;
  }
  .staff-reference-bottom button {
    min-height: 64px;
  }
  .staff-reference-bottom .bottom-label {
    font-size: 12px;
  }
  .staff-page-art {
    width: 150px;
    height: 135px;
  }
  .staff-app h2 {
    font-size: 33px;
  }
  .staff-customers-title-copy p {
    font-size: 14px;
  }
  .staff-customer-stats b {
    font-size: 25px;
  }
  .staff-customer-stats span {
    font-size: 13px;
  }
  .staff-customer-stats {
    padding: 22px 15px;
  }
  .staff-customer-stats > div {
    padding: 0 20px;
  }
  .staff-reference-customer-detail-card,
  .staff-reference-collection-card {
    padding: 20px;
  }
  .staff-customer-card-copy h3 {
    font-size: 22px;
  }
  .staff-customer-card-copy p,
  .staff-customer-card-copy > span {
    font-size: 12px;
  }
  .staff-customer-card-right strong {
    font-size: 23px;
  }
  .staff-customer-card-right {
    max-width: 200px;
  }
  .staff-customer-loan-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px;
  }
  .staff-customer-loan-metrics > div:nth-child(n + 3) {
    border-top: 0;
  }
  .staff-customer-loan-metrics > div + div {
    border-left: var(--sr-stroke-thin) solid var(--line);
  }
  .staff-customer-loan-metrics span {
    font-size: 12px;
  }
  .staff-customer-loan-metrics b {
    font-size: 20px;
  }
  .staff-customer-card-actions button {
    font-size: 14px;
  }
  .staff-detail-hero {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    padding: 20px;
    gap: 20px;
  }
  .staff-detail-avatar,
  .staff-detail-avatar .customer-detail-photo {
    width: 80px;
    height: 80px;
  }
  .staff-detail-info h2 {
    font-size: 30px;
  }
  .staff-detail-info > small,
  .staff-detail-info p {
    font-size: 15px;
  }
  .staff-call-btn {
    width: 50px;
    height: 50px;
  }
  .staff-detail-tabs button {
    min-height: 50px;
    font-size: 14px;
  }
  .staff-section-title-row h3 {
    font-size: 19px;
  }
  .staff-detail-info-grid,
  .staff-loan-summary-reference {
    gap: 9px;
    padding: 7px;
  }
  .staff-detail-info-grid > div,
  .staff-loan-summary-reference > div {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 8px;
  }
  .staff-detail-info-grid .staff-icon-tile,
  .staff-loan-summary-reference .staff-icon-tile {
    width: 42px;
    height: 44px;
  }
  .staff-detail-info-grid span:not(.staff-icon-tile),
  .staff-loan-summary-reference span:not(.staff-icon-tile) {
    font-size: 13px;
  }
  .staff-detail-info-grid b,
  .staff-loan-summary-reference b {
    font-size: 16px;
  }
  .staff-detail-section-card {
    padding: 10px;
  }
  .staff-repayment-cards {
    gap: 12px;
  }
  .staff-repayment-cards > div {
    min-height: 90px;
    padding: 17px;
  }
  .staff-repayment-cards b {
    font-size: 24px;
  }
  .staff-repayment-cards span:not(.staff-icon-tile) {
    font-size: 13px;
  }
  .staff-cycle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .staff-cycle-grid b {
    font-size: 19px;
  }
  .staff-app .staff-portfolio-card {
    min-height: 160px;
    padding: 18px;
  }
  .staff-portfolio-card > b {
    font-size: 16px;
  }
  .staff-portfolio-card > strong {
    font-size: 31px;
  }
  .staff-portfolio-card > small {
    font-size: 13px;
  }
  .staff-daily-summary-grid > div {
    min-height: 170px;
    padding: 18px;
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .staff-daily-summary-grid > div > span:not(.staff-icon-tile) {
    font-size: 16px;
  }
  .staff-daily-summary-grid > div > b {
    font-size: 31px;
  }
  .staff-daily-summary-grid > div > small {
    font-size: 13px;
  }
  .staff-upcoming-card {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    padding: 18px;
  }
  .staff-upcoming-card .staff-photo {
    width: 60px;
    height: 60px;
  }
  .staff-upcoming-main > b {
    font-size: 21px;
  }
  .staff-upcoming-main > small {
    font-size: 13px;
  }
  .staff-upcoming-metrics b {
    font-size: 22px;
  }
  .staff-upcoming-metrics span {
    font-size: 13px;
  }
  .staff-upcoming-date {
    font-size: 13px;
    padding: 12px;
  }
  .staff-closed-loan-main .staff-photo {
    width: 85px;
    height: 85px;
  }
  .staff-closed-loan-main h3 {
    font-size: 28px;
  }
  .staff-closed-loan-main > div:last-child > p,
  .staff-closed-loan-main > div:last-child > span {
    font-size: 14px;
  }
  .staff-closed-loan-grid small {
    font-size: 13px;
  }
  .staff-closed-loan-grid b {
    font-size: 22px;
  }
  .staff-closed-loan-card {
    padding: 22px;
  }
}
@media (min-width: 1000px) {
  .staff-reference-stat-grid,
  .staff-workflow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .staff-reference-customer-list,
  .staff-reference-collection-list,
  .staff-closed-loan-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-reference-customer-list .staff-customer-loan-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-reference-customer-list
    .staff-customer-loan-metrics
    > div:nth-child(3) {
    border-left: 0;
    border-top: var(--sr-stroke-thin) solid var(--line);
  }
  .staff-reference-customer-list
    .staff-customer-loan-metrics
    > div:nth-child(4) {
    border-top: var(--sr-stroke-thin) solid var(--line);
  }
  .staff-customer-card-copy h3 {
    font-size: 18px;
  }
  .staff-customer-card-right strong {
    font-size: 18px;
  }
  .staff-closed-loan-main h3 {
    font-size: 23px;
  }
  .staff-closed-loan-grid b {
    font-size: 18px;
  }
}
@media (max-width: 560px) {
  .staff-reference-total-card > div {
    grid-template-columns: 1fr;
    padding: 0 8px;
  }
  .staff-reference-total-card .staff-icon-tile {
    grid-row: auto;
    width: 29px;
    height: 30px;
    margin-bottom: 4px;
  }
  .staff-customer-reference-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-customer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 0;
  }
  .staff-customer-stats > div:nth-child(3) {
    border-left: 0;
  }
  .staff-customer-stats > div:nth-child(n + 3) {
    border-top: var(--sr-stroke-thin) solid var(--line);
    padding-top: 12px;
  }
  .staff-customer-stats > div {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 5px 8px;
  }
  .staff-customer-stat-icon {
    grid-row: 1/3;
  }
  .staff-customer-stats b {
    font-size: 18px;
  }
  .staff-history-detail-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .staff-history-detail-row > div:first-child {
    grid-column: 1/3;
  }
  .staff-history-detail-row > .staff-status {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .staff-history-detail-row > div:nth-child(n + 2) {
    grid-row: 2;
  }
  .staff-mode #modal .modal {
    padding: 10px;
  }
  .staff-mode #modal .modal-card {
    max-height: calc(100dvh - 20px);
    border-radius: 17px;
  }
  .staff-mode #modal .modal-body {
    padding: 14px;
  }
  .staff-mode #modal .modal-head {
    padding: 15px;
  }
  .staff-mode #modal .modal-foot {
    padding: 12px;
  }
  .staff-mode #modal .modal-foot .btn {
    flex: 1 1 115px;
  }
  .staff-mode #modal .form-grid {
    grid-template-columns: 1fr;
  }
  .staff-repayment-cards > div {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 2px 8px;
  }
  .staff-repayment-cards .staff-icon-tile {
    width: 30px;
    height: 34px;
  }
  .staff-payment-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-payment-summary-cards > div:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 380px) {
  .staff-mode {
    --staff-padding: 12px;
  }
  .staff-reference-top {
    gap: 8px;
  }
  .mobile-top-actions {
    gap: 8px;
  }
  .staff-app .mobile-menu-btn,
  .staff-app .notification-btn,
  .staff-app .mobile-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .staff-home-reference-hero {
    padding: 15px;
    min-height: 140px;
    grid-template-columns: 1fr;
  }
  .staff-home-date-chip {
    justify-self: end;
    grid-row: 1;
    font-size: 9px;
    padding: 5px 8px;
  }
  .staff-home-reference-copy {
    grid-column: 1;
    grid-row: 2;
    margin-top: -7px;
    max-width: 85%;
  }
  .staff-home-reference-copy h2 {
    font-size: 29px;
  }
  .staff-home-greeting-label {
    font-size: 9px;
  }
  .staff-home-reference-copy p {
    font-size: 11px;
  }
  .staff-home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-home-action > b {
    font-size: 12px;
  }
  .staff-home-action > small {
    font-size: 10px;
  }
  .staff-reference-total-card b {
    font-size: 18px;
  }
  .staff-customers-reference-head {
    align-items: stretch;
  }
  .staff-customers-title {
    flex-basis: 100%;
  }
  .staff-app .staff-reference-add-btn {
    margin-left: auto;
    min-height: 37px;
    font-size: 11px;
  }
  .staff-customer-card-top {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }
  .staff-ref-photo.large {
    width: 44px;
    height: 44px;
  }
  .staff-customer-card-right {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    flex-wrap: wrap;
  }
  .staff-customer-card-right strong {
    margin-left: auto;
  }
  .staff-customer-card-right small {
    flex-basis: 100%;
    text-align: right;
  }
  .staff-customer-card-right .staff-customer-chevron {
    margin-left: auto;
  }
  .staff-customer-card-copy h3 {
    font-size: 17px;
  }
  .staff-customer-loan-metrics b {
    font-size: 15px;
  }
  .staff-customer-card-actions {
    grid-template-columns: 1fr;
  }
  .staff-ref-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-ref-summary-grid > div:last-child {
    grid-column: 1/-1;
  }
  .staff-ref-summary-grid > div {
    padding: 10px;
  }
  .staff-detail-hero {
    grid-template-columns: 47px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
  }
  .staff-detail-avatar,
  .staff-detail-avatar .customer-detail-photo {
    width: 47px;
    height: 47px;
  }
  .staff-detail-info h2 {
    font-size: 19px;
  }
  .staff-call-btn {
    width: 33px;
    height: 33px;
  }
  .staff-detail-tabs button {
    font-size: 9px;
    gap: 4px;
  }
  .staff-detail-tabs svg {
    width: 15px;
    height: 15px;
  }
  .staff-detail-info-grid,
  .staff-loan-summary-reference {
    grid-template-columns: 1fr;
  }
  .staff-repayment-cards {
    grid-template-columns: 1fr;
  }
  .staff-repayment-cards > div {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 66px;
  }
  .staff-repayment-cards .staff-icon-tile {
    width: 38px;
    height: 38px;
  }
  .staff-repayment-cards b {
    font-size: 20px;
  }
  .staff-daily-summary-grid {
    grid-template-columns: 1fr;
  }
  .staff-daily-summary-grid > div {
    min-height: 112px;
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .staff-upcoming-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
  }
  .staff-upcoming-date {
    grid-column: 2;
    justify-self: start;
  }
  .staff-upcoming-metrics {
    grid-column: 1/-1;
  }
  .staff-upcoming-card > .staff-outline-cta {
    grid-column: 1/-1;
    grid-row: auto;
    justify-self: stretch;
  }
  .staff-closed-loan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-closed-loan-grid > div:last-child {
    grid-column: 1/-1;
  }
  .staff-closed-loan-main .staff-photo {
    width: 52px;
    height: 52px;
  }
  .staff-closed-loan-main {
    gap: 10px;
  }
  .staff-closed-loan-main h3 {
    font-size: 19px;
  }
  .staff-payment-date-row {
    grid-template-columns: 1fr;
  }
  .staff-app h2 {
    font-size: 25px;
  }
  .staff-page-art {
    width: 75px;
    height: 85px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .staff-drawer {
    transition: none;
  }
  .staff-drawer-list {
    scroll-behavior: auto;
  }
}
@media print {
  .staff-app .staff-card-money > .staff-money-full {
    display: inline;
    white-space: normal;
  }
  .staff-app .staff-card-money > .staff-money-short {
    display: none;
  }
  .staff-reference-top,
  .staff-reference-bottom,
  .staff-drawer-root,
  .staff-header-panel {
    display: none;
  }
  .staff-app {
    max-width: none;
  }
  .staff-reference-content {
    padding: 0;
  }
  .staff-mode #modal .modal {
    position: static;
    background: none;
    padding: 0;
  }
  .staff-mode #modal .modal-card {
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }
  .staff-mode #modal .modal-foot {
    display: none;
  }
}
:root {
  --ui-border: #cbd5e1;
  --ui-border-strong: #b8c4d4;
  --ui-table-head: #f8fafc;
  --ui-row-hover: #f1f5fc;
}
.official-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  flex-shrink: 1;
}
.admin-mobile-brand {
  display: none;
  min-width: 0;
}
.admin-mobile-brand .official-logo {
  width: 110px;
  height: 28px;
}
@media (max-width: 700px) {
  .admin-mobile-brand {
    display: block;
  }
}
.brand .official-logo {
  width: 216px;
  height: 50px;
}
.staff-brand {
  min-width: 0;
  display: flex;
  align-items: center;
}
.staff-brand .official-logo {
  width: 160px;
  height: 40px;
}
.staff-drawer-head .official-logo {
  width: 215px;
  height: 50px;
}
.sr-admin-login-brandmark .official-logo {
  width: 260px;
  height: 62px;
}
.sr-admin-login-left-brand .official-logo {
  width: 310px;
  height: 74px;
}
.sr-login-brand .official-logo {
  width: min(320px, 88vw);
  height: 100px;
}
.sr-admin-login-footer .official-logo,
.sr-login-footer .official-logo {
  width: 92px;
  height: 24px;
}
.print-brand .official-logo {
  width: 210px;
  height: 50px;
}
.loading-card .official-logo {
  width: 260px;
  height: 62px;
}
.print-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-height: 800px) {
  .sr-admin-login-brandmark .official-logo {
    height: 42px;
  }
}
@media (max-width: 380px) {
  .staff-brand .official-logo {
    width: 145px;
    height: 35px;
  }
}
@media print {
  .official-logo {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
.admin-app
  :is(.metric-card, .summary-tile, .portfolio-feature, .portfolio-mini, .card)
  > * {
  min-width: 0;
}
:is(.admin-app, .staff-app, #modal.card-fit-scope) [data-card-fit="value"] {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  overflow: visible;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
:is(.admin-app, .staff-app, #modal.card-fit-scope) [data-card-fit="title"] {
  min-width: 0;
  max-width: 100%;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  text-overflow: clip;
}
.admin-app .metric-value {
  font-size: clamp(14px, 2.1vw, 30px);
}
.admin-app .chart-total {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
}
.admin-app .card-financial-value {
  flex: 0 1 auto;
}
.admin-app .chart-total small {
  flex: none;
}
:root {
  --sr-ink: #0b214a;
  --text: var(--sr-ink);
  --muted: var(--sr-ink);
  --sr-table-line: #e5eaf2;
  --sr-table-head: #f5f8fd;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
body {
  color: var(--sr-ink);
  font-weight: 500;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
:is(input, select, textarea, button) {
  font-family: inherit;
  font-kerning: normal;
}
:is(h1, h2, h3, h4, h5, h6) {
  text-shadow: none;
  font-synthesis: none;
}
:is(
  .metric-sub,
  .metric-label,
  .field-hint,
  .page-head p,
  .staff-workflow-copy > small,
  .staff-home-reference-copy p
) {
  opacity: 1;
  text-shadow: none;
}
::placeholder {
  color: var(--sr-ink);
  opacity: 1;
}
@media screen {
  body table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-variant-numeric: tabular-nums;
    color: var(--sr-ink);
  }
  body :is(.admin-app, .staff-app, #modal) table :is(th, td) {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: var(--sr-stroke-thin, 0.75px) solid var(--sr-table-line);
    vertical-align: middle;
    text-shadow: none;
  }
  body :is(.admin-app, .staff-app, #modal) table th {
    background: linear-gradient(180deg, #f6f8fe, #f0f4fb);
    color: var(--sr-ink);
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: none;
    line-height: 1.45;
    padding: 13px 16px;
    font-size: 12px;
    white-space: nowrap;
  }
  body :is(.admin-app, .staff-app, #modal) table td {
    line-height: 1.5;
    padding: 14px 16px;
    font-size: 13px;
    background: #fff;
  }
  body table tbody tr:hover > td {
    background: var(--ui-row-hover);
  }
  body table tbody tr:last-child > td {
    border-bottom: 0;
  }
  body :is(.admin-app, .staff-app, #modal) .pill {
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 0.01em;
    border-radius: 8px;
    gap: 6px;
    padding: 4px 9px;
  }
  body table .pill:is(.green, .amber, .red):before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
  }
  body :is(.admin-app, .staff-app, #modal) table :is(th, td).financial-cell {
    text-align: right;
    white-space: nowrap;
    word-break: keep-all;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
  }
  body :is(.admin-app, .staff-app, #modal) table td.money-positive,
  body
    :is(.admin-app, .staff-app, #modal)
    table
    td.money-positive
    :is(b, strong) {
    color: #087f68;
  }
  body :is(.admin-app, .staff-app, #modal) table td.money-pending,
  body
    :is(.admin-app, .staff-app, #modal)
    table
    td.money-pending
    :is(b, strong) {
    color: #956019;
  }
  body :is(.admin-app, .staff-app, #modal) table td.money-expense,
  body
    :is(.admin-app, .staff-app, #modal)
    table
    td.money-expense
    :is(b, strong) {
    color: #ba3c60;
  }
  body :is(.admin-app, .staff-app, #modal) .three-tables table :is(th, td) {
    padding: 12px 10px;
    font-size: 11px;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  body :is(.admin-app, .staff-app, #modal) table td.table-description {
    white-space: normal;
    min-width: 160px;
    max-width: 380px;
    overflow-wrap: anywhere;
  }
  body :is(.admin-app, .staff-app) .table-card {
    border-radius: 16px;
    box-shadow: 0 6px 24px #1838640b;
    overflow: hidden;
  }
  body :is(.admin-app, .staff-app) .table-card .card-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--sr-table-line);
  }
  body table .row-actions {
    gap: 6px;
  }
  body table .row-actions .btn {
    min-height: 34px;
    padding: 7px 10px;
    box-shadow: none;
  }
  @media (max-width: 700px) {
    body :is(.admin-app, .staff-app, #modal) table :is(th, td) {
      padding: 12px;
      font-size: 12px;
    }
  }
}
.staff-assignment-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--sr-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.staff-assignment-link:focus-visible {
  outline: 2px solid #4868dc;
  outline-offset: 3px;
  border-radius: 3px;
}
.assignment-toolbar,
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
}
.assignment-toolbar {
  margin-bottom: 12px;
  background: #fff;
  border: var(--sr-stroke-thin, 0.75px) solid var(--ui-border);
  border-radius: 12px;
}
.assignment-distribution {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.assignment-distribution label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  align-items: center;
  gap: 12px;
}
.assignment-distribution input {
  width: 100%;
  min-height: 44px;
}
.assignment-review {
  max-height: 200px;
  overflow: auto;
  padding-left: 24px;
}
.assignment-edit {
  margin-top: 18px;
}
#assignmentErrors {
  color: var(--sr-ink);
  overflow-wrap: anywhere;
}
[data-customer-select],
#selectCustomerPage {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #4868dc;
  cursor: pointer;
}
.nav .badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  flex: none;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}
@media print {
  body {
    color: var(--sr-ink);
    text-shadow: none;
  }
  table {
    font-variant-numeric: tabular-nums;
  }
  .assignment-toolbar,
  .staff-assignment-link ~ .no-print {
    display: none !important;
  }
}
.accounts-unlock {
  max-width: 420px;
  margin: 28px auto;
  padding: 28px;
  display: grid;
  gap: 16px;
  text-align: center;
}
.accounts-unlock :is(h3, p) {
  margin: 0;
}
.accounts-unlock .field {
  text-align: left;
  display: grid;
  gap: 8px;
}
.accounts-unlock input {
  font-size: 22px;
  letter-spacing: 0.4em;
  text-align: center;
  min-height: 48px;
}
.accounts-lock-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #ecebff;
  color: #4d46c7;
  border-radius: 16px;
  margin: auto;
}
.accounts-tabs {
  margin-bottom: 20px;
}
.accounts-tabs button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.accounts-filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
  padding: 18px;
  margin-bottom: 20px;
}
.accounts-filters .field {
  display: grid;
  gap: 6px;
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
}
.accounts-filters :is(input, select) {
  width: 100%;
  min-height: 44px;
}
.accounts-table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.accounts-table-head p {
  margin: 6px 0 0;
}
.accounts-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.form-error:empty {
  display: none;
}
@media (max-width: 700px) {
  .accounts-unlock {
    margin: 16px auto;
    padding: 22px;
  }
  .accounts-filters {
    padding: 14px;
  }
  .accounts-table-head .row-actions {
    flex-wrap: wrap;
  }
  .accounts-table-head .btn {
    flex: 1;
    white-space: nowrap;
  }
}
.admin-app .side-head .official-logo,
.staff-reference-top .official-logo {
  filter: brightness(0) invert(1);
  opacity: 1;
}
#loginUser {
  background-color: #fff !important;
  color: #132b4d;
  caret-color: #132b4d;
  color-scheme: light;
}
#loginUser:-webkit-autofill,
#loginUser:-webkit-autofill:hover,
#loginUser:-webkit-autofill:focus,
#loginUser:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #132b4d;
  caret-color: #132b4d;
}
#loginUser:autofill {
  background-color: #fff !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  color: #132b4d;
}
.month-history-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.month-history-controls .field {
  margin: 0;
  min-width: 160px;
}
.month-history-controls input {
  min-height: 40px;
  background: #fff;
}
.month-history-controls > .btn,
.month-history-controls > .pill {
  align-self: flex-end;
  margin-bottom: 2px;
}
.closing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.closing-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-app.admin-route-daily-closing .daily-closing-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.daily-closing-metrics .metric-card {
  min-width: 0;
}
.daily-tracking {
  margin-top: 20px;
}
.daily-tracking .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.closing-date-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.closing-date-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.closing-selected-row {
  background: #f5f8ff;
}
.workspace-load-error {
  padding: 28px;
  text-align: center;
}
.workspace-load-error .row-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
#adminHeroTagline,
#staffHeroTagline {
  text-wrap: balance;
}
@media (max-width: 700px) {
  .admin-app.admin-route-daily-closing .daily-closing-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .closing-toolbar {
    flex-wrap: wrap;
  }
  .daily-tracking .card-head {
    align-items: flex-start;
  }
  .month-history-controls {
    width: 100%;
  }
  .month-history-controls .field {
    flex: 1;
  }
  .staff-app .month-history-controls input {
    max-width: 100%;
  }
}
/* Requested Staff network indicator. */
.staff-sync-status{display:block;margin:0 0 10px auto;padding:5px 10px;border:1px solid #dbe3f2;border-radius:20px;background:#fff;color:#345080;font-size:12px;font-weight:600;line-height:1.4;cursor:pointer;max-width:100%}

/* v8.18.11 paginated Staff history */
.staff-history-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 4px;padding:10px 0}.staff-history-pager span{font-size:12px;color:var(--muted);text-align:center;flex:1}.staff-history-pager .btn{min-width:86px}

/* Keep failed saves visible in the existing footer until corrected. */
.image-upload-progress.is-error { color: #a82b41; max-width: 100%; }
.image-upload-progress.is-error [data-progress-text] { white-space: normal; overflow-wrap: anywhere; }
.image-upload-progress.is-error .image-upload-progress-track { display: none; }

/* SR Finance Application Version 1 */
/* Customer photo: + on an avatar without a photo, camera badge to update an existing one. */
.customer-avatar-upload { position: relative; display: inline-flex; flex-shrink: 0; }
.customer-avatar-upload .avatar-upload-btn,
.staff-detail-avatar .customer-avatar-upload .avatar-upload-btn {
  position: absolute; right: -6px; bottom: -6px; z-index: 2;
  display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0;
  border: 2px solid #fff; border-radius: 50%; overflow: visible; cursor: pointer;
  background: linear-gradient(135deg, #2463ee, #6c2bd9); color: #fff;
  box-shadow: 0 6px 14px rgba(36, 99, 238, 0.32);
}
.customer-avatar-upload.no-photo .avatar-upload-btn { width: 30px; height: 30px; }
.customer-avatar-upload .avatar-upload-btn svg { width: 15px; height: 15px; }
.customer-avatar-upload .avatar-upload-btn:hover { filter: brightness(1.08); }
.customer-avatar-upload .avatar-upload-btn:focus-visible { outline: 3px solid #9fbaf7; outline-offset: 2px; }
.customer-document-card .document-upload-btn { width: 100%; justify-content: center; margin-top: 8px; gap: 6px; }
body #modal .customer-photo-upload-form .application-documents.single { grid-template-columns: minmax(0, 1fr); }
.customer-photo-upload-form .modal-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.customer-photo-upload-form .field-hint { margin-top: 12px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 700px) {
  body #modal .customer-photo-upload-form .application-documents { grid-template-columns: minmax(0, 1fr); }
}

/* Duplicate-application check under the mobile field. */
.duplicate-check-message { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; color: #1d5fae; }
.duplicate-check-message.is-error { color: #b3223d; font-weight: 700; }

/* Loan review decisions. */
#modal .review-decision-foot { flex-wrap: wrap; gap: 8px; }

/* Numbered pagination (Active Loan table). */
.page-number-controls { flex-wrap: wrap; justify-content: flex-end; }
.page-number-controls .btn { gap: 4px; }
.page-number-controls .page-number { min-width: 36px; justify-content: center; }
.page-number-controls .page-number.active { background: #2463ee; border-color: #2463ee; color: #fff; font-weight: 800; }
.page-number-controls .page-gap { padding: 0 2px; color: var(--muted); }
@media (max-width: 700px) {
  .page-number-controls { justify-content: center; }
  .page-number-controls .btn span { display: none; }
}

/* Reports: validation, loading, error, empty and totals. */
.report-filter-message { margin: 10px 0 0; min-height: 0; font-size: 12.5px; color: #1d5fae; }
.report-filter-message:empty { display: none; }
.report-filter-message.is-error { color: #b3223d; font-weight: 700; }
.report-filter-bar #reportApplyBtn:disabled { opacity: 0.55; cursor: not-allowed; }
.report-state { display: grid; justify-items: center; gap: 8px; padding: 34px 18px; text-align: center; color: var(--muted); }
.report-state p { margin: 0; }
.report-error { color: #b3223d; }
.report-error b { color: #8c1b31; }
.report-loading { grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; }
.report-spinner { width: 18px; height: 18px; border: 2.5px solid #cbdefb; border-top-color: #2463ee; border-radius: 50%; animation: report-spin 0.8s linear infinite; }
@keyframes report-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .report-spinner { animation-duration: 2.4s; } }
#reportPrint tfoot .report-total-row td { border-top: 2px solid #cbd5e1; background: #f8fafc; font-weight: 800; }
.report-grid .metric-card:disabled { opacity: 0.6; cursor: progress; }

/* Application version name. */
.app-version-chip { white-space: nowrap; }
.admin-profile-info .app-version-name { margin-top: 4px; color: var(--muted); font-size: 11px; }
.staff-app-version { margin: 18px 0 6px; text-align: center; color: var(--muted); font-size: 12px; }
#modal .review-decision-foot #rejectApplicationBtn { color: #b3223d; border-color: #f2c4cd; background: #fff; }
#modal .review-decision-foot #rejectApplicationBtn:hover { background: #fdecef; }
/* Keep the original date-field width; min/max attributes otherwise narrow the native control. */
.report-filter-bar input[type="date"] { min-width: 134px; }

/* V1.2 — ₹ prefix inside loan amount fields (Gross, Loan, Disbursement, Weekly installment). */
.money-input {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}
.money-input > .money-input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  color: var(--muted, #64748b);
  pointer-events: none;
  z-index: 1;
}
.money-input > input {
  padding-left: 28px !important;
}

/* V1.2 — Accounts: Cash Book, Disbursements (funding), Income. */
body :is(.admin-app, #modal) table td.money-income,
body :is(.admin-app, #modal) table td.money-income :is(b, strong),
.money-income { color: #13795b; }
.admin-app .accounts-card .metric-value { overflow-wrap: anywhere; }
.accounts-cash-hero {
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
  padding: 22px 24px; margin-bottom: 18px; border-radius: 16px;
  background: linear-gradient(120deg, #ffffff 0%, #e6f8f1 55%, #eaf1ff 100%); border: 1px solid #b9e6d6;
}
.accounts-cash-hero-main { display: grid; gap: 6px; min-width: 0; }
.accounts-cash-hero-label { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 800; color: #0d6e52; text-transform: uppercase; letter-spacing: .04em; }
.accounts-cash-hero-main strong { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; color: #0b5c45; font-weight: 900; }
.accounts-cash-hero-main small { color: var(--muted, #64748b); font-size: 12.5px; }
.accounts-cash-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.accounts-cash-formula span { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: #ffffffcc; border: 1px solid #dfe8f6; min-width: 92px; }
.accounts-cash-formula small { font-size: 11px; font-weight: 700; color: var(--muted, #64748b); }
.accounts-cash-formula b { font-size: 14.5px; }
.accounts-cash-formula i { font-style: normal; font-weight: 900; color: #5b6b86; }
.accounts-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 16px; }
.accounts-month { display: grid; gap: 6px; margin: 0; min-width: 190px; font-size: 12px; font-weight: 800; }
.accounts-month input { min-height: 44px; }
.accounts-opening-line {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin: -6px 0 18px; padding: 12px 16px; border: 1px solid var(--ui-border, #dbe4f5); border-radius: 12px;
  background: #fbfcff; font-size: 13px; color: var(--muted, #64748b);
}
.accounts-opening-line > span { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.accounts-opening-line b { color: var(--sr-ink, #172036); }
.accounts-opening-setup { display: grid; gap: 18px; padding: 24px; max-width: 760px; }
.accounts-opening-copy { display: flex; gap: 16px; align-items: flex-start; }
.accounts-opening-copy .accounts-lock-icon { margin: 0; flex: none; }
.accounts-opening-copy h3 { margin: 0 0 6px; }
.accounts-opening-copy p { margin: 0; line-height: 1.6; }
.accounts-opening-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.accounts-opening-form .field { display: grid; gap: 6px; margin: 0; font-size: 12px; font-weight: 800; }
.accounts-opening-form input { min-height: 44px; width: 100%; }
.accounts-opening-form :is(.form-error, button) { grid-column: 1 / -1; justify-self: start; }
.accounts-cash-table tr.accounts-today-row td { background: #f2f7ff; }
.accounts-funding-table tr.accounts-day-total td { background: #f6f4ff; border-top: 1px solid #e3ddff; font-size: 12.5px; }
.accounts-funding-table tr.accounts-day-total td small { display: block; color: var(--muted, #64748b); font-size: 11px; font-weight: 700; }
.accounts-funding-table td small { display: block; color: var(--muted, #64748b); font-size: 11.5px; }
@media (max-width: 700px) {
  .accounts-cash-hero { padding: 18px; }
  .accounts-cash-formula span { min-width: 0; flex: 1 1 40%; }
  .accounts-cash-formula i { display: none; }
  .accounts-opening-form { grid-template-columns: 1fr; }
  .accounts-month { min-width: 0; flex: 1 1 100%; }
  .accounts-tabs { display: flex; overflow-x: auto; }
  .accounts-tabs button { flex: none; }
}
/* V1.3 — 20 records per page in every table (rows of other pages are hidden, never removed). */
body table tbody tr.sr-pager-hidden { display: none !important; }
.sr-table-pager { margin-top: 0; }
/* V1.3 — table action buttons stay on one aligned line (View · Edit · Delete …). */
body :is(.admin-app, .staff-app, #modal) table td .row-actions {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 8px; white-space: nowrap;
}
body :is(.admin-app, .staff-app, #modal) table td .row-actions > :is(.btn, button, .pill) { flex: none; margin: 0; white-space: nowrap; }
body :is(.admin-app, .staff-app, #modal) table td .row-actions > :is(.btn, button) {
  min-height: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1;
}
/* V1.3 — Live Loan Portfolio: Total Customers, Total Loan Amount, Total Disbursement, Total Collected. */
.admin-app.admin-route-dashboard .portfolio-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-app.admin-route-dashboard .portfolio-violet { background: linear-gradient(105deg, #b01fa4, #6f3ce4); }
.admin-app.admin-route-dashboard .portfolio-feature strong { overflow-wrap: anywhere; }
@media (max-width: 1280px) { .admin-app.admin-route-dashboard .portfolio-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .admin-app.admin-route-dashboard .portfolio-feature-grid { grid-template-columns: 1fr; } }
/* V1.3 — long column headings may use two lines, so wide tables (Collection Management) fit
   the screen with the action buttons on one line instead of scrolling sideways. */
body :is(.admin-app, #modal) table thead tr th,
body :is(.admin-app, #modal) table thead tr th.financial-cell { white-space: normal; overflow-wrap: normal; word-break: keep-all; }
body :is(.admin-app, #modal) table td .row-actions { gap: 6px; }
body :is(.admin-app, #modal) table td .row-actions > :is(.btn, button) { padding: 0 11px; }
/* V1.3.1 — Android app download link on the Staff sign-in screen. */
.sr-login-app-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 2px 0 6px;
  border: 1px solid #d9e1f5; border-radius: 14px; background: #f5f7ff; color: #3653bc; font-weight: 750; font-size: 14px; text-decoration: none;
}
.sr-login-app-link:focus-visible { outline: 3px solid #9fb4ff; outline-offset: 2px; }
/* V1.4 — cash received today, split by the dues it paid: Today's dues + OD dues (+ advance). */
.today-cash-split {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 12px 0 16px; padding: 10px;
  border: 1px solid #dfe6f5; border-radius: 16px; background: #f8faff;
}
.today-cash-chip {
  display: flex; flex-direction: column; justify-content: center; gap: 3px; flex: 1 1 170px; min-width: 0; min-height: 58px;
  padding: 9px 14px; border: 1px solid #dfe6f5; border-left-width: 4px; border-radius: 12px; background: #fff;
  color: #172036; text-align: left; font: inherit; cursor: pointer;
}
.today-cash-chip span { font-size: 12.5px; font-weight: 700; color: #5b6b86; }
.today-cash-chip b { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.today-cash-chip.total { border-left-color: #2458ff; background: #eef3ff; }
.today-cash-chip.due { border-left-color: #18b879; }
.today-cash-chip.od { border-left-color: #e08a00; }
.today-cash-chip.advance { border-left-color: #6c2bd9; }
.today-cash-chip.other { border-left-color: #64748b; }
.today-cash-chip:hover { border-color: #b9c8ee; box-shadow: 0 4px 14px #2a3f8f14; }
.today-cash-chip:focus-visible, .collection-od-today:focus-visible, .staff-cash-split button:focus-visible, .staff-part-chips button:focus-visible { outline: 3px solid #9fb4ff; outline-offset: 2px; }
.today-cash-op { align-self: center; flex: none; font-size: 18px; font-weight: 800; color: #8a97b1; }
.collection-filter-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px;
  border: 1px solid #cbdefb; border-radius: 12px; background: #eaf2fd; color: #1d4f8f; font-size: 13.5px;
}
.collection-filter-note .btn { min-height: 32px; height: 32px; padding: 0 12px; margin-left: auto; }
#collectionTodayTable td .cell-note { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: #6c2bd9; white-space: nowrap; }
#collectionTodayTable tfoot td { font-weight: 700; }
.receipt-against { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.collection-od-today {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; margin: 0 0 14px; padding: 11px 14px;
  border: 1px solid #f2ddb6; border-left: 4px solid #e08a00; border-radius: 12px; background: #fff8ec; color: #6b4200;
  font: inherit; text-align: left; cursor: pointer;
}
.collection-od-today b { font-size: 15px; color: #172036; }
.collection-od-today small { margin-left: auto; color: #8a6a2f; font-weight: 600; }
/* Staff home and collected list */
.staff-cash-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.staff-cash-split button {
  display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 11px 13px; border: 1px solid #f2ddb6; border-left: 4px solid #e08a00;
  border-radius: 14px; background: #fff8ec; color: #172036; font: inherit; text-align: left; cursor: pointer;
}
.staff-cash-split button span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #6b4200; }
.staff-cash-split button b { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.staff-cash-split button.total { border-color: #cbdefb; border-left-color: #2458ff; background: #eef3ff; }
.staff-cash-split button.total span { color: #1d4f8f; }
.staff-part-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.staff-part-chips button {
  flex: none; min-height: 40px; padding: 0 14px; border: 1px solid #d9e1f5; border-radius: 999px; background: #fff;
  color: #34446a; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.staff-part-chips button b { margin-left: 4px; color: #2458ff; }
.staff-part-chips button.active { border-color: #2458ff; background: #2458ff; color: #fff; }
.staff-part-chips button.active b { color: #fff; }
.staff-ref-split { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 2px; font-size: 12.5px; color: #5b6b86; }
.staff-ref-split b { color: #172036; }
/* The Today table has 11 columns: slightly tighter cells keep it on a 1366 px laptop screen. */
body .admin-app table#collectionTodayTable :is(th, td) { padding-left: 10px; padding-right: 10px; }
@media (max-width: 700px) {
  .today-cash-op { display: none; }
  .today-cash-chip { flex: 1 1 calc(50% - 8px); }
  .today-cash-chip.total { flex-basis: 100%; }
  .collection-od-today small { margin-left: 0; flex-basis: 100%; }
}
/* V1.4.2 — Customers search: a form with a Search button (works with the phone keyboard). */
.admin-app .toolbar-left .customer-search-form { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; min-width: 0; margin: 0; }
.admin-app .toolbar-left .customer-search-form .search { flex: 1 1 auto; width: auto; min-width: 0; }
.admin-app .toolbar-left .customer-search-form .customer-search-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.admin-app .toolbar-left .customer-search-form .search::-webkit-search-cancel-button { cursor: pointer; }
/* V1.4.4 — pending items from other months, and counts on the Collection Management tabs. */
.admin-app .reconciliation-other-pending,
.admin-app .settlement-other-pending { border: 1px solid #f3c77a; background: #fffaf0; }
.admin-app .reconciliation-other-pending .card-head,
.admin-app .settlement-other-pending .card-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.admin-app .reconciliation-other-pending h3,
.admin-app .settlement-other-pending h3 { display: flex; align-items: center; gap: 8px; color: #8a5300; }
.admin-app .reconciliation-other-pending .card-head p,
.admin-app .settlement-other-pending .card-head p { margin: 4px 0 0; color: #6b5a3a; font-size: 13px; }
.admin-app .collection-tab .collection-tab-count { margin-left: 2px; min-width: 22px; padding: 1px 7px; border-radius: 20px; background: #ef4f6b; color: #fff; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
.admin-app .collection-tab.active .collection-tab-count { background: #fff; color: #7a4fd8; }
/* V1.5.1 — Flexi Month (Admin only). Cards, tabs and the cash strip reuse the Collection
   Management components; these rules only add the Flexi-specific pieces and keep them aligned. */
.admin-app .fx-sub, .fx-form .fx-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.admin-app .fx-late { display: block; margin-top: 3px; color: #c0263f; font-size: 11.5px; font-weight: 700; }
.admin-app .fx-red, .fx-form .fx-red { color: #c0263f; }
.admin-app .fx-tabs .collection-tab { justify-content: center; min-height: 44px; }
.admin-app .fx-code { white-space: nowrap; }
/* V1.5.2 — Flexi Month KPI cards: one size per row, icon + label, the main figure, a count chip and
   a short note. Colours come from the app tokens (info, violet, danger, teal, warning). */
.admin-app .fx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; }
.admin-app .fx-kpi { --tone: var(--info); --tone-bg: var(--info-bg); --tone-line: var(--info-line); position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 132px; margin: 0; padding: 16px 18px 15px 20px; border: 1px solid #e6e8f0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 18px rgba(17, 24, 39, .045); color: var(--sr-ink, #1a1712); font: inherit; text-align: left; overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.admin-app .fx-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tone); }
.admin-app button.fx-kpi { cursor: pointer; }
.admin-app button.fx-kpi:hover { border-color: var(--tone-line); box-shadow: 0 2px 4px rgba(17, 24, 39, .05), 0 12px 28px rgba(17, 24, 39, .08); transform: translateY(-1px); }
.admin-app button.fx-kpi:focus-visible { outline: 3px solid var(--tone-line); outline-offset: 2px; }
.admin-app .fx-kpi.tone-blue { --tone: var(--info); --tone-bg: var(--info-bg); --tone-line: var(--info-line); }
.admin-app .fx-kpi.tone-violet { --tone: var(--violet); --tone-bg: var(--violet-bg); --tone-line: var(--violet-line); }
.admin-app .fx-kpi.tone-red { --tone: var(--danger); --tone-bg: var(--danger-bg); --tone-line: var(--danger-line); }
.admin-app .fx-kpi.tone-green { --tone: var(--teal); --tone-bg: var(--teal-bg); --tone-line: var(--teal-line); }
.admin-app .fx-kpi.tone-amber { --tone: var(--warning); --tone-bg: var(--warning-bg); --tone-line: var(--warning-line); }
.admin-app .fx-kpi-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-app .fx-kpi-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--tone-bg); color: var(--tone); }
.admin-app .fx-kpi-icon svg { width: 19px; height: 19px; }
.admin-app .fx-kpi-label { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 750; letter-spacing: .045em; line-height: 1.3; text-transform: uppercase; color: #575d73; }
.admin-app .fx-kpi-go { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #8b90a5; background: #f4f5f9; transition: background .16s ease, color .16s ease; }
.admin-app button.fx-kpi:hover .fx-kpi-go { background: var(--tone-bg); color: var(--tone); }
.admin-app .fx-kpi-value { font-size: 27px; font-weight: 800; line-height: 1.12; letter-spacing: -.015em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: #14161f; }
.admin-app .fx-kpi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: auto; font-size: 12.5px; line-height: 1.35; color: #6a6f84; }
.admin-app .fx-kpi-count { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--tone-bg); color: var(--tone); font-size: 12px; font-weight: 750; white-space: nowrap; }
.admin-app .fx-kpi-sub:empty { display: none; }
@media (max-width: 1180px) { .admin-app .fx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-form .fx-cash-only { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--teal-line); background: var(--teal-bg); color: #0b5d51; font-size: 13px; }
.fx-form.fx-delete .fx-delete-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--danger-line); background: var(--danger-bg); color: var(--danger); }
.fx-form.fx-delete .fx-delete-warn p { margin: 4px 0 0; color: #6b1b2b; font-size: 13px; }
.fx-form.fx-delete .fx-delete-title { margin: 14px 0 6px; font-weight: 700; font-size: 13.5px; }
.fx-form.fx-delete .fx-delete-list { margin: 0 0 4px; padding-left: 20px; line-height: 1.7; font-size: 13.5px; }
.fx-form.fx-delete .fx-delete-open { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--warning-line); background: var(--warning-bg); color: var(--warning); font-size: 13px; }
.fx-form.fx-delete .application-grid { margin-top: 14px; }
.admin-app .collection-cards-grid + .today-cash-split { margin-top: 0; }
.admin-app .card.table-card + .card, .admin-app .fx-date-bar + .collection-cards-grid { margin-top: 0; }
.admin-app .fx-loans .card-head, .admin-app #flexiCustomers .card-head, .admin-app .fx-receipts-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.admin-app .fx-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-app .fx-toolbar .search { min-width: 240px; min-height: 40px; }
.admin-app .fx-toolbar select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; background: #fff; }
.admin-app .fx-count { margin: 8px 4px 0; font-size: 12.5px; }
.admin-app .row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-app .row-actions .btn { min-height: 34px; white-space: nowrap; }
.admin-app .fx-date-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.admin-app .fx-date-bar h3 { margin: 0; }
.admin-app .fx-date-bar p { margin: 4px 0 0; font-size: 13px; max-width: 720px; }
.admin-app .fx-inline-field { display: grid; gap: 4px; min-width: 180px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.admin-app .fx-inline-field input { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; background: #fff; font: inherit; color: var(--sr-ink); }
.admin-app .fx-filter-bar:empty { display: none; }
.admin-app .fx-filter-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #f3f6ff; border: 1px solid #dfe6f5; font-size: 13px; }
.admin-app .fx-overdue { border: 1px solid #f4c3cc; }
.admin-app .fx-overdue h3 { display: flex; align-items: center; gap: 8px; color: #b21f39; margin: 0; }
.admin-app .fx-overdue .card-head p { margin: 4px 0 0; font-size: 13px; }
.admin-app tr.fx-reversed td { color: var(--muted); text-decoration: line-through; text-decoration-color: #c9cbd6; }
.admin-app tr.fx-reversed td:last-child, .admin-app tr.fx-reversed td:nth-last-child(2) { text-decoration: none; }
.admin-app tr.fx-scheduled td { color: #6b7085; background: #fafbfd; }
.admin-app .fx-profile { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-app .fx-profile-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.admin-app .fx-profile-main h3 { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-app .fx-profile-main p { margin: 3px 0 0; }
.admin-app .fx-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; overflow: hidden; border: 2px solid #e4e1fb; padding: 0; background: #efeafe; display: grid; place-items: center; font-weight: 800; color: #5b4bc4; font-size: 20px; cursor: pointer; }
.admin-app .fx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-app .fx-avatar-empty { cursor: default; }
.admin-app .fx-docs { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-app .fx-doc { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11.5px; color: var(--muted); text-align: center; cursor: pointer; }
.admin-app .fx-doc img { width: 90px; height: 64px; object-fit: cover; border-radius: 6px; }
.admin-app .fx-doc-empty { cursor: default; justify-content: center; min-height: 92px; }
.admin-app .fx-terms, .admin-app .fx-customer { margin-bottom: 16px; }
.admin-app .fx-terms .card-head, .admin-app .fx-customer .card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.admin-app .fx-closure { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; border: 1px solid #bfe3cb; background: #f2fbf5; }
.admin-app .fx-closure > div { display: flex; gap: 10px; align-items: flex-start; color: #17663a; }
.admin-app .fx-closure p { margin: 3px 0 0; font-size: 13px; }
.admin-app .fx-closure.is-settled { border-color: #f3c77a; background: #fffaf0; }
.admin-app .fx-closure.is-settled > div { color: #8a5300; }
.admin-app .fx-cycles { margin: 0 0 16px; font-size: 13px; }
.fx-form .fx-modal-sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.fx-form .fx-form-error { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid #f4c3cc; background: #fff5f7; color: #9b1c33; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fx-form .fx-form-error[hidden] { display: none; }
.fx-form .fx-chosen { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: #eef8f1; border: 1px solid #bfe3cb; }
.fx-form .fx-chosen div { display: grid; flex: 1; min-width: 0; }
.fx-form .fx-chosen span { color: var(--muted); font-size: 12.5px; }
.fx-form .fx-preview { margin-top: 12px; padding: 12px; border-radius: 12px; background: #f8f7ff; border: 1px solid #e4e1fb; }
.fx-form .fx-preview:empty { display: none; }
.fx-form .fx-preview p { margin: 6px 0 0; font-size: 12.5px; }
.fx-form .fx-preview-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fx-form .fx-preview-head > div { min-width: 0; }
.fx-form .fx-preview-head span, .fx-form .fx-preview-head small { display: block; color: var(--muted); font-size: 12px; }
.fx-form .fx-preview-head b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.fx-form .fx-preview-table { margin-top: 10px; font-size: 13px; }
/* V1.5.3 — full repayment schedule in the loan form (scrolls inside the form, header stays). */
.fx-form .fx-plan-wrap { max-height: 280px; overflow: auto; margin-top: 10px; border: 1px solid #e4e1fb; border-radius: 10px; background: #fff; }
.fx-form .fx-plan-wrap .fx-preview-table { margin: 0; }
.fx-form .fx-plan-wrap thead th { position: sticky; top: 0; z-index: 1; background: #f4f2ff; }
.fx-form .fx-plan-wrap tfoot th { position: sticky; bottom: 0; background: #f8f7ff; }
.fx-form .fx-preview-table tr.fx-next td { background: var(--violet-bg); font-weight: 700; }
.fx-form .fx-pay-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.fx-form .fx-pay-facts > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.fx-form .fx-pay-facts span, .fx-form .fx-pay-facts small { display: block; color: var(--muted); font-size: 12px; }
.fx-form .fx-pay-facts b { display: block; font-size: 17px; margin: 2px 0; overflow-wrap: anywhere; }
.fx-form .fx-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fx-form .fx-quick .btn { min-height: 38px; }
@media (max-width: 700px) {
  .admin-app .fx-toolbar, .admin-app .fx-toolbar .search, .admin-app .fx-toolbar select { width: 100%; min-width: 0; }
  .admin-app .fx-inline-field, .admin-app .fx-receipts-head .fx-inline-field { width: 100%; }
  .admin-app .fx-tabs .collection-tab { flex: 1 1 0; min-width: 0; padding: 8px 6px; gap: 5px; font-size: 12px; line-height: 1.2; white-space: normal; text-align: center; }
  .admin-app .fx-tabs .collection-tab svg { flex: 0 0 auto; width: 14px; height: 14px; }
  .admin-app .fx-kpis { gap: 10px; margin-bottom: 14px; }
  .admin-app .fx-kpi { min-height: 118px; gap: 9px; padding: 12px 12px 12px 15px; border-radius: 14px; }
  .admin-app .fx-kpi-head { gap: 7px; }
  .admin-app .fx-kpi-icon { flex-basis: 30px; width: 30px; height: 30px; border-radius: 9px; }
  .admin-app .fx-kpi-icon svg { width: 16px; height: 16px; }
  .admin-app .fx-kpi-label { font-size: 10.5px; letter-spacing: .03em; }
  .admin-app .fx-kpi-go { width: 22px; height: 22px; }
  .admin-app .fx-kpi-value { font-size: 19px; }
  .admin-app .fx-kpi-meta { font-size: 11.5px; gap: 4px 6px; }
  .admin-app .fx-kpi-count { font-size: 11px; padding: 1px 7px; }
  .admin-app:is(.admin-route-flexi, [class*="admin-route-flexi-"]) .has-finance-illustration .page-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; justify-self: stretch; width: 100%; }
  .admin-app:is(.admin-route-flexi, [class*="admin-route-flexi-"]) .has-finance-illustration .page-actions .btn { width: 100%; justify-content: center; margin: 0; }
  .admin-app .fx-doc { width: calc(33% - 7px); min-width: 88px; }
  .admin-app .fx-closure .btn { width: 100%; justify-content: center; }
}
