:root {
  --creditor-bg: #f2f5f7;
  --creditor-surface: #ffffff;
  --creditor-surface-soft: #f7f9fa;
  --creditor-surface-raised: rgba(255, 255, 255, 0.92);
  --creditor-ink: #142033;
  --creditor-muted: #647187;
  --creditor-border: #dce3e8;
  --creditor-border-strong: #c7d1d9;
  --creditor-blue: #174ea6;
  --creditor-blue-strong: #174ea6;
  --creditor-blue-soft: #eaf2ff;
  --creditor-green: #08745a;
  --creditor-green-soft: #e4f7f1;
  --creditor-amber: #8a5200;
  --creditor-amber-soft: #fff3da;
  --creditor-red: #ad2032;
  --creditor-red-soft: #ffebed;
  --creditor-sidebar: #0a1830;
  --creditor-sidebar-soft: #132746;
  --creditor-shadow: 0 18px 50px rgba(18, 36, 58, 0.08);
  --creditor-shadow-small: 0 8px 24px rgba(18, 36, 58, 0.07);
  --creditor-radius: 18px;
  --creditor-radius-small: 12px;
  --creditor-font: "Inter", "Segoe UI", sans-serif;
  --creditor-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

:root[data-creditor-theme="dark"] {
  --creditor-bg: #0c1422;
  --creditor-surface: #121e30;
  --creditor-surface-soft: #17263a;
  --creditor-surface-raised: rgba(18, 30, 48, 0.94);
  --creditor-ink: #edf3fa;
  --creditor-muted: #9caabd;
  --creditor-border: #28394f;
  --creditor-border-strong: #38506b;
  --creditor-blue: #6da4f5;
  --creditor-blue-strong: #9bc0fa;
  --creditor-blue-soft: #18345c;
  --creditor-green: #57d1ad;
  --creditor-green-soft: #143c34;
  --creditor-amber: #f4b84d;
  --creditor-amber-soft: #493719;
  --creditor-red: #ff8790;
  --creditor-red-soft: #4a242a;
  --creditor-shadow: 0 20px 56px rgba(0, 0, 0, 0.24);
  --creditor-shadow-small: 0 8px 26px rgba(0, 0, 0, 0.2);
}

[hidden] {
  display: none !important;
}

.creditor-body,
.creditor-login-body {
  min-height: 100vh;
  margin: 0;
  color: var(--creditor-ink);
  background: var(--creditor-bg);
  font-family: var(--creditor-font);
  -webkit-font-smoothing: antialiased;
}

.creditor-body *,
.creditor-login-body * {
  box-sizing: border-box;
}

.creditor-body button,
.creditor-body input,
.creditor-body select,
.creditor-body textarea,
.creditor-login-body button,
.creditor-login-body input {
  font: inherit;
}

.creditor-body a {
  color: inherit;
  text-decoration: none;
}

.creditor-body :focus-visible,
.creditor-login-body :focus-visible {
  outline: 3px solid var(--creditor-blue);
  outline-offset: 3px;
}

.creditor-app {
  min-height: 100vh;
}

.creditor-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: 272px;
  flex-direction: column;
  overflow: hidden;
  color: #eaf2ff;
  background:
    radial-gradient(circle at 12% 5%, rgba(74, 142, 238, 0.22), transparent 30%),
    linear-gradient(165deg, #0d2040 0%, var(--creditor-sidebar) 55%, #071222 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 180ms ease, transform 180ms ease;
}

.creditor-sidebar::after {
  position: absolute;
  right: -120px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 0 84px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.creditor-brand {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.creditor-brand img {
  width: 146px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.creditor-brand-mark {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  font-weight: 850;
}

.creditor-brand small {
  display: block;
  color: #9fb3cf;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.creditor-sidebar-company {
  position: relative;
  z-index: 1;
  margin: 18px 16px 8px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.creditor-sidebar-company span,
.creditor-sidebar-company strong {
  display: block;
}

.creditor-sidebar-company span {
  margin-bottom: 5px;
  color: #8ca3c1;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.creditor-sidebar-company strong {
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creditor-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 16px;
}

.creditor-nav a {
  position: relative;
  display: grid;
  min-height: 48px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #aebed3;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 680;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.creditor-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.creditor-nav a.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(57, 124, 220, 0.3), rgba(57, 124, 220, 0.12));
  border-color: rgba(111, 166, 244, 0.25);
}

.creditor-nav a.is-active::before {
  position: absolute;
  inset: 10px auto 10px -16px;
  width: 3px;
  content: "";
  background: #79adf7;
  border-radius: 0 3px 3px 0;
}

.creditor-nav i {
  width: 22px;
  text-align: center;
}

.creditor-nav-badge {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: #2b1b00;
  background: #f6b94e;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.creditor-sidebar-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 18px 16px 22px;
}

.creditor-sidebar-profile {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
}

.creditor-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  color: #0c2343;
  background: #d8e9ff;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 850;
}

.creditor-sidebar-profile strong,
.creditor-sidebar-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creditor-sidebar-profile strong {
  font-size: 0.79rem;
}

.creditor-sidebar-profile small {
  margin-top: 3px;
  color: #90a5c1;
  font-size: 0.68rem;
}

.creditor-sidebar-logout {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #aebed3;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  cursor: pointer;
}

.creditor-sidebar-logout:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.creditor-main-shell {
  min-height: 100vh;
  margin-left: 272px;
  transition: margin-left 180ms ease;
}

.creditor-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px;
  background: color-mix(in srgb, var(--creditor-surface) 86%, transparent);
  border-bottom: 1px solid var(--creditor-border);
  backdrop-filter: blur(18px);
}

.creditor-topbar-left,
.creditor-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creditor-topbar-context {
  display: grid;
  gap: 2px;
}

.creditor-topbar-context strong {
  font-family: var(--creditor-display);
  font-size: 1.05rem;
}

.creditor-topbar-context small {
  color: var(--creditor-muted);
  font-size: 0.72rem;
}

.creditor-icon-button,
.creditor-topbar-button {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--creditor-muted);
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border);
  border-radius: 12px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.creditor-icon-button:hover,
.creditor-topbar-button:hover {
  color: var(--creditor-blue);
  background: var(--creditor-blue-soft);
  border-color: color-mix(in srgb, var(--creditor-blue) 45%, var(--creditor-border));
  transform: translateY(-1px);
}

.creditor-topbar-button {
  min-width: 190px;
  justify-content: flex-start;
  padding: 0 13px;
  font-size: 0.8rem;
}

.creditor-topbar-button span {
  color: var(--creditor-ink);
}

.creditor-topbar-button kbd {
  margin-left: auto;
  padding: 3px 6px;
  color: var(--creditor-muted);
  background: var(--creditor-surface-soft);
  border: 1px solid var(--creditor-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.67rem;
}

.creditor-content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 34px;
}

.creditor-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.creditor-page-heading h1 {
  margin: 5px 0 7px;
  color: var(--creditor-ink);
  font-family: var(--creditor-display);
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.creditor-page-heading p {
  max-width: 70ch;
  margin: 0;
  color: var(--creditor-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.creditor-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--creditor-blue);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.creditor-eyebrow::before {
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
}

.creditor-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.creditor-primary-button,
.creditor-secondary-button,
.creditor-primary-link,
.creditor-state-panel button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
}

.creditor-primary-button,
.creditor-primary-link,
.creditor-state-panel button {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--creditor-blue), var(--creditor-blue-strong));
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(35, 103, 209, 0.18);
}

.creditor-secondary-button {
  color: var(--creditor-ink);
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border-strong);
}

.creditor-primary-button:hover,
.creditor-primary-link:hover,
.creditor-state-panel button:hover,
.creditor-secondary-button:hover {
  transform: translateY(-1px);
}

.creditor-primary-button:disabled,
.creditor-secondary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.creditor-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.creditor-kpi {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 22px;
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border);
  border-radius: var(--creditor-radius);
  box-shadow: var(--creditor-shadow-small);
}

.creditor-kpi::after {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 126px;
  height: 126px;
  content: "";
  background: var(--creditor-blue-soft);
  border-radius: 50%;
  opacity: 0.7;
}

.creditor-kpi.is-green::after {
  background: var(--creditor-green-soft);
}

.creditor-kpi.is-amber::after {
  background: var(--creditor-amber-soft);
}

.creditor-kpi-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creditor-kpi-head span {
  color: var(--creditor-muted);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.creditor-kpi-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--creditor-blue);
  background: var(--creditor-blue-soft);
  border-radius: 11px;
}

.creditor-kpi.is-green .creditor-kpi-icon {
  color: var(--creditor-green);
  background: var(--creditor-green-soft);
}

.creditor-kpi.is-amber .creditor-kpi-icon {
  color: var(--creditor-amber);
  background: var(--creditor-amber-soft);
}

.creditor-kpi-value {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 20px;
  font-family: var(--creditor-display);
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.creditor-kpi-meta {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: var(--creditor-muted);
  font-size: 0.76rem;
}

.creditor-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.creditor-panel {
  min-width: 0;
  padding: 23px;
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border);
  border-radius: var(--creditor-radius);
  box-shadow: var(--creditor-shadow-small);
}

.creditor-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.creditor-panel-header h2,
.creditor-panel-header h3 {
  margin: 0;
  font-family: var(--creditor-display);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.creditor-panel-header p {
  margin: 5px 0 0;
  color: var(--creditor-muted);
  font-size: 0.77rem;
}

.creditor-panel-metric {
  text-align: right;
}

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

.creditor-panel-metric strong {
  color: var(--creditor-green);
  font-family: var(--creditor-display);
  font-size: 1.25rem;
}

.creditor-panel-metric small {
  margin-top: 3px;
  color: var(--creditor-muted);
  font-size: 0.68rem;
}

#creditorRecoveryChart {
  display: block;
  width: 100%;
  min-height: 220px;
  overflow: visible;
  color: var(--creditor-blue);
}

.creditor-chart-grid line {
  stroke: var(--creditor-border);
  stroke-dasharray: 4 7;
}

.creditor-chart-area {
  fill: url("#creditorRecoveryArea");
}

.creditor-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.creditor-chart-dot {
  fill: var(--creditor-surface);
  stroke: currentColor;
  stroke-width: 3;
}

.creditor-chart-label {
  fill: var(--creditor-muted);
  font-family: var(--creditor-font);
  font-size: 11px;
  text-transform: capitalize;
}

.creditor-funnel {
  display: grid;
  gap: 19px;
}

.creditor-funnel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.creditor-funnel-label span {
  color: var(--creditor-muted);
}

.creditor-funnel-track {
  height: 9px;
  overflow: hidden;
  background: var(--creditor-surface-soft);
  border: 1px solid var(--creditor-border);
  border-radius: 999px;
}

.creditor-funnel-fill {
  display: block;
  height: 100%;
  background: var(--creditor-blue);
  border-radius: inherit;
  transition: width 400ms ease;
}

.creditor-funnel-fill.is-amber {
  background: var(--creditor-amber);
}

.creditor-funnel-fill.is-green {
  background: var(--creditor-green);
}

.creditor-funnel-fill.is-red {
  background: var(--creditor-red);
}

.creditor-case-list,
.creditor-timeline {
  display: grid;
}

.creditor-case-row {
  display: grid;
  min-height: 72px;
  grid-template-columns: 6px minmax(170px, 1fr) auto 130px 18px;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-top: 1px solid var(--creditor-border);
  transition: background 150ms ease;
}

.creditor-case-row:hover {
  background: var(--creditor-surface-soft);
}

.creditor-case-signal {
  width: 6px;
  height: 34px;
  background: var(--creditor-blue);
  border-radius: 999px;
}

.creditor-case-signal.is-positive {
  background: var(--creditor-green);
}

.creditor-case-signal.is-attention {
  background: var(--creditor-amber);
}

.creditor-case-signal.is-critical {
  background: var(--creditor-red);
}

.creditor-case-main strong,
.creditor-case-main small {
  display: block;
}

.creditor-case-main strong {
  font-size: 0.84rem;
}

.creditor-case-main small {
  margin-top: 4px;
  color: var(--creditor-muted);
  font-size: 0.71rem;
}

.creditor-case-value {
  text-align: right;
  font-size: 0.84rem;
}

.creditor-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--creditor-blue);
  background: var(--creditor-blue-soft);
  border: 1px solid color-mix(in srgb, var(--creditor-blue) 25%, transparent);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 780;
  white-space: nowrap;
}

.creditor-status.is-positive {
  color: var(--creditor-green);
  background: var(--creditor-green-soft);
  border-color: color-mix(in srgb, var(--creditor-green) 30%, transparent);
}

.creditor-status.is-attention {
  color: var(--creditor-amber);
  background: var(--creditor-amber-soft);
  border-color: color-mix(in srgb, var(--creditor-amber) 30%, transparent);
}

.creditor-status.is-critical {
  color: var(--creditor-red);
  background: var(--creditor-red-soft);
  border-color: color-mix(in srgb, var(--creditor-red) 30%, transparent);
}

.creditor-timeline-item {
  position: relative;
  display: grid;
  min-height: 74px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: flex-start;
  gap: 13px;
  padding: 9px 0;
}

.creditor-timeline-item:not(:last-child)::after {
  position: absolute;
  top: 39px;
  bottom: -4px;
  left: 15px;
  width: 1px;
  content: "";
  background: var(--creditor-border);
}

.creditor-timeline-marker {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--creditor-blue);
  background: var(--creditor-blue-soft);
  border: 1px solid color-mix(in srgb, var(--creditor-blue) 20%, var(--creditor-border));
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 850;
}

.creditor-timeline-item strong,
.creditor-timeline-item small {
  display: block;
}

.creditor-timeline-item strong {
  margin-top: 3px;
  font-size: 0.8rem;
}

.creditor-timeline-item small {
  margin-top: 5px;
  color: var(--creditor-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.creditor-empty {
  display: grid;
  min-height: 130px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  color: var(--creditor-muted);
  text-align: center;
}

.creditor-empty i {
  color: var(--creditor-green);
  font-size: 1.5rem;
}

.creditor-empty p {
  margin: 0;
  font-size: 0.8rem;
}

.creditor-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 200px;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border);
  border-radius: var(--creditor-radius);
  box-shadow: var(--creditor-shadow-small);
}

.creditor-field {
  display: grid;
  gap: 7px;
}

.creditor-field label {
  color: var(--creditor-muted);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.creditor-input-wrap {
  position: relative;
}

.creditor-input-wrap i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--creditor-muted);
  transform: translateY(-50%);
}

.creditor-field input,
.creditor-field select,
.creditor-field textarea,
.creditor-inline-select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--creditor-ink);
  background: var(--creditor-surface-soft);
  border: 1px solid var(--creditor-border-strong);
  border-radius: 11px;
}

.creditor-input-wrap input {
  padding-left: 38px;
}

.creditor-field textarea {
  min-height: 110px;
  padding-block: 12px;
  resize: vertical;
}

.creditor-table-panel {
  overflow: hidden;
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border);
  border-radius: var(--creditor-radius);
  box-shadow: var(--creditor-shadow-small);
}

.creditor-spaced-panel {
  margin-top: 18px;
}

.creditor-table-summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--creditor-border);
}

.creditor-table-summary strong,
.creditor-table-summary small {
  display: block;
}

.creditor-table-summary strong {
  font-size: 0.85rem;
}

.creditor-table-summary small {
  margin-top: 3px;
  color: var(--creditor-muted);
  font-size: 0.69rem;
}

.creditor-table-scroll {
  overflow-x: auto;
}

.creditor-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.creditor-table th {
  padding: 12px 16px;
  color: var(--creditor-muted);
  background: var(--creditor-surface-soft);
  border-bottom: 1px solid var(--creditor-border);
  font-size: 0.65rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.creditor-table td {
  height: 76px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--creditor-border);
  font-size: 0.78rem;
  vertical-align: middle;
}

.creditor-table tbody tr:hover {
  background: var(--creditor-surface-soft);
}

.creditor-table-case {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.creditor-table-case .creditor-case-signal {
  height: 38px;
}

.creditor-table-case strong,
.creditor-table-case small,
.creditor-table-sub {
  display: block;
}

.creditor-table-case small,
.creditor-table-sub {
  margin-top: 4px;
  color: var(--creditor-muted);
  font-size: 0.68rem;
}

.creditor-priority {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  color: var(--creditor-muted);
  background: var(--creditor-surface-soft);
  border: 1px solid var(--creditor-border);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 730;
}

.creditor-priority.is-alta {
  color: var(--creditor-red);
  background: var(--creditor-red-soft);
}

.creditor-priority.is-media {
  color: var(--creditor-amber);
  background: var(--creditor-amber-soft);
}

.creditor-pagination {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
}

.creditor-pagination span {
  color: var(--creditor-muted);
  font-size: 0.73rem;
}

.creditor-pagination div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.creditor-pagination button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--creditor-ink);
  background: var(--creditor-surface-soft);
  border: 1px solid var(--creditor-border);
  border-radius: 10px;
  cursor: pointer;
}

.creditor-pagination button:disabled {
  cursor: default;
  opacity: 0.35;
}

.creditor-case-heading {
  align-items: flex-start;
}

.creditor-case-heading h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
}

.creditor-case-heading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.creditor-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  gap: 18px;
}

.creditor-case-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.creditor-financial-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 15%, rgba(121, 173, 247, 0.32), transparent 28%),
    linear-gradient(135deg, #153d77, #0a2144);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--creditor-radius);
  box-shadow: var(--creditor-shadow);
}

.creditor-financial-hero::after {
  position: absolute;
  right: -65px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.035), 0 0 0 70px rgba(255, 255, 255, 0.02);
}

.creditor-financial-hero small,
.creditor-financial-hero strong {
  position: relative;
  z-index: 1;
  display: block;
}

.creditor-financial-hero > small {
  color: #aec7eb;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creditor-financial-hero > strong {
  margin-top: 10px;
  font-family: var(--creditor-display);
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}

.creditor-financial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.creditor-financial-grid div {
  padding: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.creditor-financial-grid small {
  color: #9fb9dd;
  font-size: 0.64rem;
}

.creditor-financial-grid strong {
  margin-top: 7px;
  font-family: var(--creditor-font);
  font-size: 0.8rem;
}

.creditor-process-timeline {
  display: grid;
}

.creditor-process-event {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 12px 0 20px;
}

.creditor-process-event:not(:last-child)::after {
  position: absolute;
  top: 51px;
  bottom: -2px;
  left: 20px;
  width: 2px;
  content: "";
  background: var(--creditor-border);
}

.creditor-process-marker {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--creditor-blue);
  background: var(--creditor-blue-soft);
  border: 1px solid color-mix(in srgb, var(--creditor-blue) 24%, var(--creditor-border));
  border-radius: 50%;
}

.creditor-process-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.creditor-process-heading strong {
  font-size: 0.84rem;
}

.creditor-process-heading span {
  color: var(--creditor-green);
  font-size: 0.64rem;
  font-weight: 760;
  text-transform: uppercase;
}

.creditor-process-event p {
  margin: 7px 0;
  color: var(--creditor-muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.creditor-process-event small {
  color: var(--creditor-muted);
  font-size: 0.67rem;
}

.creditor-detail-list {
  display: grid;
  gap: 0;
}

.creditor-detail-list div {
  display: grid;
  min-height: 53px;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--creditor-border);
}

.creditor-detail-list dt {
  color: var(--creditor-muted);
  font-size: 0.68rem;
}

.creditor-detail-list dd {
  margin: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
}

.creditor-notes {
  margin: 0;
  color: var(--creditor-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.creditor-proposal-summary {
  display: grid;
  gap: 9px;
}

.creditor-proposal-summary .creditor-status {
  width: max-content;
}

.creditor-proposal-summary > strong {
  margin-top: 5px;
  font-family: var(--creditor-display);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.creditor-proposal-summary > small {
  color: var(--creditor-muted);
  font-size: 0.73rem;
}

.creditor-proposal-summary > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--creditor-blue);
  font-size: 0.76rem;
  font-weight: 750;
}

.creditor-proposal-list {
  display: grid;
  gap: 15px;
}

.creditor-proposal-card {
  padding: 23px;
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border);
  border-radius: var(--creditor-radius);
  box-shadow: var(--creditor-shadow-small);
}

.creditor-proposal-card header,
.creditor-proposal-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.creditor-proposal-card h2 {
  margin: 7px 0 0;
  font-family: var(--creditor-display);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.creditor-proposal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 22px 0;
  background: var(--creditor-border);
  border: 1px solid var(--creditor-border);
  border-radius: 13px;
}

.creditor-proposal-metrics div {
  padding: 14px;
  background: var(--creditor-surface-soft);
}

.creditor-proposal-metrics small,
.creditor-proposal-metrics strong {
  display: block;
}

.creditor-proposal-metrics small {
  color: var(--creditor-muted);
  font-size: 0.65rem;
}

.creditor-proposal-metrics strong {
  margin-top: 7px;
  font-size: 0.82rem;
}

.creditor-proposal-message,
.creditor-proposal-reason {
  margin: 0 0 20px;
  color: var(--creditor-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.creditor-proposal-reason {
  padding: 12px 14px;
  color: var(--creditor-red);
  background: var(--creditor-red-soft);
  border-radius: 10px;
}

.creditor-proposal-card footer {
  padding-top: 18px;
  border-top: 1px solid var(--creditor-border);
}

.creditor-proposal-card footer > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--creditor-blue);
  font-size: 0.76rem;
  font-weight: 750;
}

.creditor-proposal-actions {
  display: flex;
  gap: 9px;
}

.creditor-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  color: var(--creditor-ink);
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border-strong);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.creditor-dialog::backdrop {
  background: rgba(5, 15, 30, 0.66);
  backdrop-filter: blur(5px);
}

.creditor-dialog form {
  padding: 24px;
}

.creditor-dialog h2 {
  margin: 0;
  font-family: var(--creditor-display);
  font-size: 1.55rem;
}

.creditor-dialog p {
  margin: 8px 0 20px;
  color: var(--creditor-muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.creditor-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.creditor-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.creditor-report-card {
  padding: 20px;
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border);
  border-radius: var(--creditor-radius);
  box-shadow: var(--creditor-shadow-small);
}

.creditor-report-card small,
.creditor-report-card strong {
  display: block;
}

.creditor-report-card small {
  color: var(--creditor-muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.creditor-report-card strong {
  margin-top: 14px;
  font-family: var(--creditor-display);
  font-size: 1.7rem;
}

.creditor-reports-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.creditor-report-share {
  display: inline-block;
  width: 90px;
  height: 6px;
  overflow: hidden;
  vertical-align: middle;
  background: var(--creditor-surface-soft);
  border-radius: 999px;
}

.creditor-report-share span {
  display: block;
  height: 100%;
  background: var(--creditor-blue);
  border-radius: inherit;
}

.creditor-table td > .creditor-report-share + small {
  display: inline-block;
  margin-left: 8px;
  color: var(--creditor-muted);
  font-size: 0.65rem;
}

.creditor-aging {
  display: grid;
  gap: 19px;
}

.creditor-aging-row {
  display: grid;
  grid-template-columns: 110px minmax(100px, 1fr) 105px;
  align-items: center;
  gap: 12px;
}

.creditor-aging-label strong,
.creditor-aging-label small {
  display: block;
}

.creditor-aging-label strong {
  font-size: 0.75rem;
}

.creditor-aging-label small {
  margin-top: 3px;
  color: var(--creditor-muted);
  font-size: 0.64rem;
}

.creditor-aging-track {
  height: 9px;
  overflow: hidden;
  background: var(--creditor-surface-soft);
  border-radius: 999px;
}

.creditor-aging-track i {
  display: block;
  height: 100%;
  background: var(--creditor-blue);
  border-radius: inherit;
}

.creditor-aging-track i.is-green {
  background: var(--creditor-green);
}

.creditor-aging-track i.is-amber {
  background: var(--creditor-amber);
}

.creditor-aging-track i.is-red {
  background: var(--creditor-red);
}

.creditor-aging-row > strong {
  text-align: right;
  font-size: 0.75rem;
}

.creditor-capitalize {
  text-transform: capitalize;
}

.creditor-money-positive {
  color: var(--creditor-green);
  font-weight: 760;
}

.creditor-user-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.creditor-user-cell > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--creditor-blue);
  background: var(--creditor-blue-soft);
  border-radius: 11px;
  font-size: 0.7rem;
  font-weight: 850;
}

.creditor-user-cell strong,
.creditor-user-cell small {
  display: block;
}

.creditor-user-cell small {
  margin-top: 3px;
  color: var(--creditor-muted);
  font-size: 0.67rem;
}

.creditor-inline-select {
  width: 130px;
  min-height: 38px;
  font-size: 0.73rem;
}

.creditor-switch {
  display: inline-grid;
  grid-template-columns: 38px auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.creditor-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.creditor-switch span {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--creditor-border-strong);
  border-radius: 999px;
  transition: background 150ms ease;
}

.creditor-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 150ms ease;
}

.creditor-switch input:checked + span {
  background: var(--creditor-green);
}

.creditor-switch input:focus-visible + span {
  outline: 3px solid var(--creditor-blue);
  outline-offset: 3px;
}

.creditor-switch input:checked + span::after {
  transform: translateX(16px);
}

.creditor-switch em {
  color: var(--creditor-muted);
  font-size: 0.69rem;
  font-style: normal;
}

.creditor-state-panel {
  display: grid;
  min-height: 390px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border);
  border-radius: var(--creditor-radius);
  box-shadow: var(--creditor-shadow-small);
}

.creditor-state-panel.is-compact {
  min-height: 260px;
}

.creditor-state-icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--creditor-blue);
  background: var(--creditor-blue-soft);
  border-radius: 18px;
  font-size: 1.35rem;
}

.creditor-state-panel h2 {
  margin: 4px 0 0;
  font-family: var(--creditor-display);
  font-size: 1.55rem;
}

.creditor-state-panel p {
  max-width: 50ch;
  margin: 0 0 8px;
  color: var(--creditor-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

#creditorToast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(420px, calc(100% - 48px));
  padding: 14px 17px;
  color: #ffffff;
  background: #9e2935;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
}

.creditor-command {
  width: min(650px, calc(100% - 28px));
  max-height: min(720px, calc(100vh - 50px));
  padding: 0;
  overflow: hidden;
  color: var(--creditor-ink);
  background: var(--creditor-surface);
  border: 1px solid var(--creditor-border-strong);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
}

.creditor-command::backdrop {
  background: rgba(5, 15, 30, 0.62);
  backdrop-filter: blur(6px);
}

.creditor-command-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--creditor-border);
}

.creditor-command-search > i {
  color: var(--creditor-muted);
}

.creditor-command-search input {
  min-width: 0;
  height: 42px;
  color: var(--creditor-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.9rem;
}

.creditor-command-search button {
  width: 32px;
  height: 32px;
  color: var(--creditor-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.creditor-command-results {
  display: grid;
  max-height: 520px;
  gap: 4px;
  overflow-y: auto;
  padding: 10px;
}

.creditor-command-item {
  display: grid;
  min-height: 62px;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 12px;
}

.creditor-command-item:hover {
  background: var(--creditor-surface-soft);
}

.creditor-command-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--creditor-blue);
  background: var(--creditor-blue-soft);
  border-radius: 11px;
}

.creditor-command-item strong,
.creditor-command-item small {
  display: block;
}

.creditor-command-item strong {
  font-size: 0.79rem;
}

.creditor-command-item small {
  margin-top: 4px;
  color: var(--creditor-muted);
  font-size: 0.68rem;
}

.creditor-command-item > i {
  color: var(--creditor-muted);
  font-size: 0.72rem;
}

.creditor-command-empty {
  margin: 0;
  padding: 35px;
  color: var(--creditor-muted);
  text-align: center;
  font-size: 0.78rem;
}

.creditor-sidebar-collapsed .creditor-sidebar {
  width: 82px;
}

.creditor-sidebar-collapsed .creditor-main-shell {
  margin-left: 82px;
}

.creditor-sidebar-collapsed .creditor-brand {
  justify-content: center;
  padding-inline: 12px;
}

.creditor-sidebar-collapsed .creditor-brand img,
.creditor-sidebar-collapsed .creditor-brand small,
.creditor-sidebar-collapsed .creditor-sidebar-company,
.creditor-sidebar-collapsed .creditor-nav a span:not(.creditor-nav-badge),
.creditor-sidebar-collapsed .creditor-sidebar-profile > div,
.creditor-sidebar-collapsed .creditor-sidebar-logout span {
  display: none;
}

.creditor-sidebar-collapsed .creditor-brand-mark {
  display: grid;
}

.creditor-sidebar-collapsed .creditor-nav a {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.creditor-sidebar-collapsed .creditor-nav-badge {
  position: absolute;
  top: 3px;
  right: 2px;
}

.creditor-sidebar-collapsed .creditor-sidebar-profile {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 8px;
}

.creditor-login-body {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(340px, 0.92fr) minmax(540px, 1.4fr);
  background: #0a1830;
}

.creditor-login-panel {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  align-content: center;
  padding: clamp(32px, 6vw, 84px);
  color: #eaf2ff;
  background:
    radial-gradient(circle at 10% 5%, rgba(72, 137, 230, 0.22), transparent 32%),
    linear-gradient(155deg, #10284d 0%, #0a1830 58%, #071222 100%);
}

.creditor-login-logo {
  width: 172px;
  margin-bottom: 50px;
}

.creditor-login-panel h1 {
  max-width: 520px;
  margin: 7px 0 12px;
  font-family: var(--creditor-display);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.creditor-login-panel > p {
  max-width: 51ch;
  margin: 0;
  color: #a8bbd3;
  font-size: 0.91rem;
  line-height: 1.7;
}

.creditor-login-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 36px;
}

.creditor-login-trust span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: #bcd0e8;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 0.7rem;
}

.creditor-login-card-wrap {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background:
    linear-gradient(rgba(18, 35, 56, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 35, 56, 0.055) 1px, transparent 1px),
    #f2f5f7;
  background-size: 34px 34px;
}

.creditor-login-card-wrap::before,
.creditor-login-card-wrap::after {
  position: absolute;
  width: 330px;
  height: 330px;
  content: "";
  border: 1px solid rgba(35, 103, 209, 0.12);
  border-radius: 50%;
}

.creditor-login-card-wrap::before {
  top: -160px;
  right: -90px;
  box-shadow: 0 0 0 50px rgba(35, 103, 209, 0.025), 0 0 0 100px rgba(35, 103, 209, 0.015);
}

.creditor-login-card-wrap::after {
  bottom: -210px;
  left: -120px;
  box-shadow: 0 0 0 50px rgba(15, 139, 109, 0.025), 0 0 0 100px rgba(15, 139, 109, 0.015);
}

.creditor-login-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: clamp(28px, 5vw, 44px);
  color: #142033;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d7e0e7;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(26, 50, 76, 0.14);
  backdrop-filter: blur(14px);
}

.creditor-login-card .creditor-eyebrow {
  color: #2367d1;
}

.creditor-login-card h2 {
  margin: 9px 0 8px;
  font-family: var(--creditor-display);
  font-size: 2.05rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.creditor-login-card > p {
  margin: 0 0 28px;
  color: #66748a;
  font-size: 0.79rem;
  line-height: 1.55;
}

.creditor-login-form {
  display: grid;
  gap: 17px;
}

.creditor-login-form label {
  display: grid;
  gap: 7px;
  color: #33445c;
  font-size: 0.7rem;
  font-weight: 750;
}

.creditor-login-input {
  position: relative;
}

.creditor-login-input i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #8290a3;
  transform: translateY(-50%);
}

.creditor-login-input input {
  width: 100%;
  height: 49px;
  padding: 0 14px 0 41px;
  color: #142033;
  background: #f8fafb;
  border: 1px solid #cbd5dd;
  border-radius: 12px;
}

.creditor-login-input input:focus {
  background: #ffffff;
  border-color: #4b83d6;
}

.creditor-login-error {
  padding: 12px 13px;
  color: #a82e3b;
  background: #ffebed;
  border: 1px solid #f4bbc0;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.creditor-login-submit {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 3px;
  color: #ffffff;
  background: linear-gradient(135deg, #2367d1, #174ea6);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(35, 103, 209, 0.24);
  font-weight: 780;
  cursor: pointer;
}

.creditor-login-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.creditor-login-footnote {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding-top: 19px;
  color: #738196;
  border-top: 1px solid #e1e7eb;
  font-size: 0.68rem;
}

.creditor-login-loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  color: #ffffff;
  background: rgba(6, 17, 33, 0.72);
  backdrop-filter: blur(5px);
}

.creditor-login-loading.is-visible {
  display: grid;
}

.creditor-login-loading div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #10284d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
}

@media (max-width: 1180px) {
  .creditor-kpi-grid,
  .creditor-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creditor-dashboard-grid,
  .creditor-reports-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .creditor-proposal-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .creditor-financial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .creditor-login-body {
    grid-template-columns: 1fr;
  }

  .creditor-login-panel {
    display: none;
  }
}

@media (max-width: 860px) {
  .creditor-sidebar {
    width: 272px;
    transform: translateX(-102%);
  }

  .creditor-main-shell,
  .creditor-sidebar-collapsed .creditor-main-shell {
    margin-left: 0;
  }

  .creditor-sidebar-open .creditor-sidebar {
    transform: translateX(0);
  }

  .creditor-sidebar-open::after {
    position: fixed;
    inset: 0;
    z-index: 45;
    content: "";
    background: rgba(5, 15, 30, 0.55);
    backdrop-filter: blur(3px);
  }

  .creditor-topbar {
    padding-inline: 20px;
  }

  .creditor-content {
    padding: 25px 20px;
  }

  .creditor-case-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .creditor-topbar-context,
  .creditor-topbar-button span,
  .creditor-topbar-button kbd {
    display: none;
  }

  .creditor-topbar-button {
    min-width: 42px;
    justify-content: center;
    padding: 0;
  }

  .creditor-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .creditor-heading-actions {
    width: 100%;
  }

  .creditor-heading-actions > * {
    flex: 1;
  }

  .creditor-kpi-grid,
  .creditor-report-grid {
    grid-template-columns: 1fr;
  }

  .creditor-kpi {
    min-height: 145px;
  }

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

  .creditor-case-row {
    grid-template-columns: 6px minmax(0, 1fr) 18px;
  }

  .creditor-case-row .creditor-status,
  .creditor-case-value {
    display: none;
  }

  .creditor-proposal-card header,
  .creditor-proposal-card footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .creditor-proposal-actions {
    width: 100%;
  }

  .creditor-proposal-actions button {
    flex: 1;
  }

  .creditor-proposal-metrics {
    grid-template-columns: 1fr;
  }

  .creditor-financial-grid {
    grid-template-columns: 1fr;
  }

  .creditor-aging-row {
    grid-template-columns: 100px minmax(80px, 1fr);
  }

  .creditor-aging-row > strong {
    grid-column: 2;
  }

  .creditor-login-card-wrap {
    padding: 18px;
  }

  .creditor-login-card {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creditor-body *,
  .creditor-body *::before,
  .creditor-body *::after,
  .creditor-login-body *,
  .creditor-login-body *::before,
  .creditor-login-body *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media print {
  .creditor-sidebar,
  .creditor-topbar,
  .creditor-heading-actions,
  #creditorToast,
  .creditor-command {
    display: none !important;
  }

  .creditor-main-shell {
    margin: 0 !important;
  }

  .creditor-body,
  .creditor-panel,
  .creditor-report-card,
  .creditor-table-panel {
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .creditor-content {
    width: 100%;
    padding: 0;
  }
}
