@font-face {
  font-display: swap;
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/vazirmatn-400.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/vazirmatn-600.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/vazirmatn-700.woff2") format("woff2");
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --line: #dfe5ea;
  --ink: #17212b;
  --muted: #6b7785;
  --accent: #156d68;
  --accent-dark: #0f514d;
  --danger: #b42318;
  --success: #287a48;
  --soft: #eef3f5;
}

html {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  margin: 0;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.shell:not(:has(.sidebar)) {
  display: block;
}

.sidebar {
  background: #132025;
  color: #fff;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 18px;
  position: sticky;
  top: 0;
}

.user-shell .sidebar {
  background: #ffffff;
  border-left: 1px solid var(--line);
  color: var(--ink);
}

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

.user-shell .brand:hover {
  color: var(--ink);
}

.user-shell .brand-mark {
  background: #e5f3ff;
  border: 1px solid #beddf7;
  color: #174f7a;
}

.user-shell .side-nav a {
  color: #33424f;
}

.user-shell .side-nav a:hover {
  background: #edf6ff;
  color: #174f7a;
}

.user-shell .topbar {
  background: #f8fbfd;
}

.user-shell .page-kicker {
  color: #52718c;
}

.brand {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  align-items: center;
  background: #d7f3ed;
  border-radius: 6px;
  color: #132025;
  display: inline-flex;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 44px;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a,
.muted-nav {
  border-radius: 6px;
  color: #dbe5e9;
  display: block;
  font-weight: 600;
  padding: 11px 12px;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.muted-nav {
  color: #839196;
}

.content-wrap {
  min-width: 0;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 26px;
}

.page-kicker {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 4px;
}

.topbar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.user-box {
  align-items: center;
  display: flex;
  gap: 14px;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 0;
}

.main-area {
  margin-inline: auto;
  max-width: 1680px;
  padding: 24px 26px 40px;
}

.panel,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  overflow: hidden;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.panel-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

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

.stat-card {
  padding: 18px;
}

.stat-label {
  color: var(--muted);
  font-size: .9rem;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 8px;
}

.attention-card {
  background: #fff7e6;
  border-color: #f3d38d;
}

.table {
  margin: 0;
}

.table th {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}

.table td {
  padding-bottom: .8rem;
  padding-top: .8rem;
  vertical-align: middle;
}

.badge-soft {
  background: #edf7f5;
  border: 1px solid #c8e7e1;
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-block;
  padding: 5px 10px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn {
  border-radius: 6px;
  font-weight: 600;
  min-height: 40px;
  padding-inline: 16px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline-danger {
  border-color: #e4b5af;
  color: var(--danger);
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
}

.form-control:focus,
.form-select:focus,
.btn:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .18rem rgba(21, 109, 104, .16);
}

.form-control,
.form-select {
  border-color: #cfd8df;
  border-radius: 6px;
  min-height: 44px;
}

.form-label {
  color: #344452;
  font-weight: 600;
  margin-bottom: 7px;
}

.login-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 130px);
}

.auth-body {
  background: #edf3f5;
  min-height: 100vh;
}

.auth-page {
  align-items: center;
  display: grid;
  gap: clamp(40px, 8vw, 120px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  margin-inline: auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 48px 32px;
}

.auth-intro {
  max-width: 560px;
}

.auth-brand {
  align-items: center;
  background: #132025;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  margin-bottom: 22px;
  width: 68px;
}

.auth-intro h1 {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.auth-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.auth-security-note {
  border-right: 3px solid var(--accent);
  color: #425361;
  font-size: .9rem;
  margin-top: 28px;
  padding: 8px 14px 8px 0;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(24, 48, 61, .09);
  padding: 34px;
}

.auth-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-card-header {
  margin-bottom: 26px;
}

.auth-card-header p {
  color: var(--muted);
  margin: 8px 0 0;
}

.auth-card-eyebrow {
  color: var(--accent);
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-card .form-control {
  background: #fbfcfd;
  min-height: 48px;
}

.auth-card .btn-lg {
  font-size: 1rem;
  min-height: 48px;
}

.validation-summary:empty,
.field-validation:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-right: 18px;
}

.field-validation {
  display: block;
  font-size: .82rem;
  margin-top: 5px;
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-panel h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-state {
  color: var(--muted);
  padding: 34px 18px;
  text-align: center;
}

.empty-state.compact {
  padding: 16px;
  text-align: right;
}

.profile-header {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.profile-main {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.profile-main h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.avatar {
  align-items: center;
  background: #d7f3ed;
  border: 1px solid #b6ded6;
  border-radius: 8px;
  color: var(--accent-dark);
  display: flex;
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 700;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.profile-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

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

.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: .8rem;
  padding: 4px 9px;
}

.status-pill.is-active {
  background: #eaf6ee;
  color: var(--success);
}

.status-pill.is-inactive {
  background: #fbecea;
  color: var(--danger);
}

.tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 12px 0;
}

.tab-button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 14px;
}

.tab-button.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.tab-content {
  display: none;
  padding: 18px;
}

.tab-content.active {
  display: block;
}

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

.detail-list {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  margin: 0;
  row-gap: 10px;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
}

.panel-subheader {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-subheader h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.mini-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.mini-list-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
}

.mini-list-row:last-child {
  border-bottom: 0;
}

.form-band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  margin: 18px -18px -18px;
  padding: 18px;
}

.form-section {
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 22px;
}

.form-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

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

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

.workflow-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.approve-action {
  border-color: #bfe4cb;
}

.reject-action {
  border-color: #e8bbb5;
}

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

.action-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.request-box {
  display: flex;
  flex-direction: column;
}

.request-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.request-box p {
  color: var(--muted);
  font-size: .85rem;
  min-height: 40px;
}

.receipt-upload-form {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(150px, 1fr) auto;
  min-width: 270px;
}

.receipt-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  min-width: 420px;
}

.request-step {
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 8px 10px;
}

.request-step strong {
  font-size: .9rem;
}

.request-step span {
  font-size: .8rem;
}

.request-step.is-waiting {
  background: #fff7e6;
  border: 1px solid #f3d38d;
  color: #7a4b00;
}

.request-step.is-done {
  background: #eaf6ee;
  border: 1px solid #bfe4cb;
  color: #1d6538;
}

.request-step.is-rejected {
  background: #fbecea;
  border: 1px solid #e8bbb5;
  color: #9b241a;
}

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

.flow-step {
  background: #f6f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 12px;
}

.flow-step span {
  align-items: center;
  background: #e5eaee;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.flow-step strong {
  font-size: .95rem;
}

.flow-step small {
  color: var(--muted);
  line-height: 1.8;
}

.flow-step.is-current {
  background: #fff7e6;
  border-color: #f3d38d;
}

.flow-step.is-current span {
  background: #f3d38d;
  color: #5b3900;
}

.flow-step.is-done {
  background: #eaf6ee;
  border-color: #bfe4cb;
}

.flow-step.is-done span {
  background: #bfe4cb;
  color: #1d6538;
}

.flow-step.is-rejected {
  background: #fbecea;
  border-color: #e8bbb5;
}

.flow-step.is-rejected span {
  background: #e8bbb5;
  color: #9b241a;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .profile-header,
  .profile-main,
  .profile-actions,
  .panel-subheader {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .workflow-action-grid {
    grid-template-columns: 1fr;
  }

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

  .receipt-upload-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .receipt-action-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 520px;
    padding: 30px 20px;
  }

  .auth-intro h1 {
    font-size: 1.55rem;
  }

  .auth-intro {
    text-align: center;
  }

  .auth-intro p {
    margin-inline: auto;
  }

  .auth-security-note {
    display: none;
  }

  .auth-card {
    padding: 26px 22px;
  }
}

/* Premium application shell */
:root {
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-subtle: #f8fafb;
  --line: #dce4e7;
  --line-strong: #cbd7db;
  --ink: #15282c;
  --muted: #667a80;
  --accent: #087f75;
  --accent-dark: #05635c;
  --accent-soft: #e7f5f2;
  --nav: #102a2d;
  --nav-soft: #18383b;
  --gold: #b99042;
  --danger: #b93832;
  --success: #237a52;
  --warning: #a9670b;
  --soft: #f2f6f7;
  --shadow-sm: 0 3px 12px rgba(25, 51, 57, .06);
  --shadow-md: 0 12px 30px rgba(25, 51, 57, .09);
}

body {
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.shell {
  grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
  background: var(--nav);
  border-left: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  z-index: 1040;
}

.sidebar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 6px;
}

.brand {
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.brand-mark {
  background: #f1dcae;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  color: #173235;
  flex: 0 0 auto;
  font-size: .92rem;
  height: 40px;
  letter-spacing: 0;
  width: 44px;
}

.brand-copy {
  display: grid;
  line-height: 1.4;
  min-width: 0;
}

.brand-copy strong {
  color: #fff;
  font-size: .98rem;
}

.brand-copy small {
  color: #8ea8aa;
  font-size: .72rem;
}

.nav-caption {
  color: #6f8d90;
  font-size: .68rem;
  font-weight: 700;
  padding: 19px 12px 7px;
}

.side-nav {
  gap: 3px;
  margin-top: 12px;
  overflow-y: auto;
}

.side-nav a {
  align-items: center;
  border: 1px solid transparent;
  color: #bcd0d2;
  display: flex;
  font-size: .88rem;
  gap: 11px;
  min-height: 44px;
  padding: 9px 11px;
  position: relative;
}

.side-nav a svg {
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.side-nav a:hover {
  background: var(--nav-soft);
  border-color: rgba(255, 255, 255, .06);
}

.side-nav a.active {
  background: #e5f2ef;
  color: #0b4e49;
  font-weight: 700;
}

.side-nav a.active::before {
  background: var(--gold);
  border-radius: 3px 0 0 3px;
  content: "";
  height: 22px;
  position: absolute;
  right: -15px;
  width: 4px;
}

.side-nav-group {
  border: 1px solid transparent;
  border-radius: 7px;
}

.side-nav-group.is-open {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .06);
  padding-bottom: 5px;
}

.side-nav-group-title {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #bcd0d2;
  cursor: pointer;
  display: flex;
  font-size: .88rem;
  font-weight: 600;
  gap: 11px;
  min-height: 44px;
  padding: 9px 11px;
  text-align: right;
  width: 100%;
}

.side-nav-group-title svg {
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.side-nav-group-title span {
  flex: 1;
}

.side-nav-group-title:hover {
  background: var(--nav-soft);
  color: #fff;
}

.side-nav-group.is-current > .side-nav-group-title {
  color: #f0d99f;
}

.side-nav-group-title .submenu-chevron {
  height: 15px;
  transition: transform .18s ease;
  width: 15px;
}

.side-nav-group.is-open .submenu-chevron {
  transform: rotate(180deg);
}

.side-subnav {
  display: none;
  gap: 2px;
  padding: 0 13px 0 5px;
}

.side-nav-group.is-open .side-subnav {
  display: grid;
}

.side-subnav a {
  font-size: .76rem;
  min-height: 37px;
  padding: 7px 10px;
}

.side-subnav a svg {
  height: 15px;
  width: 15px;
}

.side-subnav a.active::before {
  display: none;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  transition: background-color .16s ease, border-color .16s ease;
  width: 38px;
}

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

.sidebar-close {
  color: #c5d4d5;
  display: none;
}

.sidebar-user {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: grid;
  gap: 9px;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  margin-top: auto;
  padding: 14px 5px 2px;
}

.sidebar-avatar,
.topbar-avatar {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.sidebar-avatar svg {
  height: 18px;
  width: 18px;
}

.sidebar-user-copy {
  display: grid;
  line-height: 1.45;
  min-width: 0;
}

.sidebar-user-copy strong {
  color: #f2f7f7;
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-copy small {
  color: #779396;
  font-size: .7rem;
}

.sidebar-logout {
  color: #91aaac;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.mobile-topbar-logout {
  display: none;
}

.content-wrap {
  min-height: 100vh;
}

.topbar {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  min-height: 82px;
  padding: 13px 28px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.topbar-title,
.topbar-actions,
.topbar-user {
  align-items: center;
  display: flex;
}

.topbar-title {
  gap: 12px;
}

.topbar-actions {
  gap: 18px;
}

.topbar-user {
  border-right: 1px solid var(--line);
  color: #40565b;
  font-size: .82rem;
  gap: 9px;
  padding-right: 17px;
}

.topbar-avatar {
  background: #e8f3f1;
  border-color: #cfe2df;
  color: var(--accent-dark);
  font-size: .82rem;
  height: 34px;
  width: 34px;
}

.system-state {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: .76rem;
  gap: 7px;
}

.system-state > span {
  background: #27a56f;
  border: 3px solid #dff3e9;
  border-radius: 50%;
  height: 11px;
  width: 11px;
}

.page-kicker {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: 1px;
}

.topbar h1 {
  color: #183136;
  font-size: 1.12rem;
}

.sidebar-toggle {
  border-color: var(--line);
  color: var(--ink);
  display: none;
}

.main-area {
  max-width: 1600px;
  padding: 28px 30px 48px;
}

.panel,
.stat-card,
.profile-header {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.panel {
  overflow: clip;
}

.panel-header {
  background: var(--surface);
  min-height: 66px;
  padding: 15px 20px;
}

.panel-header h2 {
  color: #203a3f;
  font-size: .96rem;
}

.stat-grid {
  gap: 16px;
}

.stat-card {
  min-height: 122px;
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
}

.stat-card::after {
  background: var(--accent);
  border-radius: 0 0 0 4px;
  content: "";
  height: 4px;
  position: absolute;
  right: 0;
  top: 0;
  width: 58px;
}

.stat-card:nth-child(2)::after {
  background: #347d9a;
}

.stat-card:nth-child(3)::after,
.attention-card::after {
  background: var(--gold);
}

.stat-label {
  color: #698086;
  font-size: .8rem;
  font-weight: 600;
}

.stat-value {
  color: #183438;
  font-size: 1.8rem;
  margin-top: 12px;
}

.attention-card {
  background: #fffdf8;
  border-color: #e8ddc4;
}

.table {
  color: #263d42;
  font-size: .84rem;
}

.table > :not(caption) > * > * {
  border-bottom-color: #e8edef;
  padding: 13px 16px;
}

.table thead th {
  background: #eaf2f2;
  border-bottom: 2px solid #9bbab7;
  border-top: 1px solid #d8e4e4;
  color: #294b4f;
  font-size: .75rem;
  font-weight: 700;
  padding-bottom: 12px;
  padding-top: 12px;
  vertical-align: middle;
}

.table thead th:first-child {
  border-radius: 0 6px 0 0;
}

.table thead th:last-child {
  border-radius: 6px 0 0 0;
}

.table thead tr {
  box-shadow: 0 3px 8px rgba(31, 69, 73, .06);
}

.table tbody tr {
  transition: background-color .14s ease;
}

.table > tbody > tr:nth-child(even) > * {
  background-color: #f7fafb;
}

.table > tbody > tr:nth-child(odd) > * {
  background-color: #ffffff;
}

.table-hover > tbody > tr:hover > * {
  background-color: #eaf5f3;
  box-shadow: none;
}

.table td:first-child,
.table th:first-child {
  padding-right: 20px;
}

.badge-soft {
  background: var(--accent-soft);
  border-color: #c6e5df;
  border-radius: 999px;
  color: #17635d;
  font-size: .74rem;
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
}

.btn {
  align-items: center;
  box-shadow: none;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(8, 127, 117, .17);
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
}

.btn-outline-secondary {
  background: #fff;
  border-color: #cbd6da;
  color: #40585e;
}

.btn-outline-secondary:hover {
  background: #edf3f4;
  border-color: #b9c8cc;
  color: #243d42;
}

.btn-outline-danger {
  background: #fff;
}

.form-control,
.form-select {
  background-color: #fbfcfc;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.form-control:hover,
.form-select:hover {
  border-color: #acbec3;
}

.form-control:focus,
.form-select:focus {
  background-color: #fff;
}

.form-control::placeholder {
  color: #93a2a6;
}

.tabs {
  background: #fafcfc;
  gap: 10px;
  padding: 10px 18px 0;
}

.tab-button {
  font-size: .82rem;
  padding: 11px 10px;
}

.mini-list {
  border: 0;
  border-radius: 0;
}

.mini-list-row {
  border-bottom-color: #e9edef;
  min-height: 52px;
  padding: 12px 18px;
}

.request-step {
  border-radius: 6px;
}

.app-alert {
  align-items: center;
  border-radius: 7px;
  display: flex;
  gap: 9px;
}

.app-alert svg {
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.empty-state {
  background: #fafcfc;
  color: #7c8d91;
}

.profile-header {
  padding: 20px;
}

.avatar {
  background: var(--accent-soft);
  border-color: #c6e5df;
  color: var(--accent-dark);
}

/* Glass login */
.auth-body {
  background-color: #173338;
  background-image: url("../images/auth-architecture.jpg");
  background-position: center;
  background-size: cover;
  position: relative;
}

.auth-body::before {
  background: rgba(7, 29, 33, .68);
  content: "";
  inset: 0;
  position: fixed;
}

.auth-page {
  gap: clamp(48px, 9vw, 130px);
  grid-template-columns: minmax(0, 1fr) minmax(370px, 430px);
  max-width: 1220px;
  position: relative;
  z-index: 1;
}

.auth-intro {
  color: #fff;
  max-width: 620px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}

.auth-brand-line {
  align-items: center;
  display: flex;
  font-size: .82rem;
  font-weight: 600;
  gap: 12px;
  margin-bottom: 34px;
}

.auth-brand-line .auth-brand {
  background: rgba(239, 219, 173, .94);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #183336;
  height: 48px;
  margin: 0;
  width: 52px;
}

.auth-intro h1 {
  color: #fff;
  font-size: 2.8rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.auth-intro p {
  color: rgba(255, 255, 255, .78);
  font-size: 1.03rem;
}

.glass-panel {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
}

.auth-card {
  padding: 36px;
}

.auth-card-icon {
  align-items: center;
  background: #e5f3f0;
  border: 1px solid #cce5e0;
  border-radius: 8px;
  color: var(--accent);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 18px;
  width: 44px;
}

.auth-card-icon svg {
  height: 22px;
  width: 22px;
}

.auth-card-header h2 {
  color: #183337;
  font-size: 1.55rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon > svg {
  color: #7c9095;
  height: 19px;
  pointer-events: none;
  position: absolute;
  right: 15px;
  top: 15px;
  width: 19px;
  z-index: 2;
}

.auth-card .input-with-icon .form-control {
  background: rgba(255, 255, 255, .78);
  padding-right: 46px;
}

.auth-submit {
  justify-content: space-between;
  padding-inline: 20px;
}

.auth-submit svg {
  height: 19px;
  width: 19px;
}

.auth-card-footer {
  align-items: center;
  border-top: 1px solid rgba(169, 188, 191, .5);
  color: #718489;
  display: flex;
  font-size: .72rem;
  gap: 6px;
  justify-content: center;
  margin: 24px -36px -16px;
  padding-top: 17px;
}

.auth-card-footer svg {
  height: 14px;
  width: 14px;
}

.sidebar-backdrop {
  display: none;
}

.user-shell .sidebar {
  background: #f9fbfb;
  border-left-color: var(--line);
}

.user-shell .brand-copy strong {
  color: #17363a;
}

.user-shell .brand-copy small,
.user-shell .nav-caption {
  color: #789095;
}

.user-shell .side-nav a {
  color: #496268;
}

.user-shell .side-nav a:hover {
  background: #edf5f4;
  border-color: #dce9e7;
  color: #174f4b;
}

.user-shell .side-nav a.active {
  background: #dff0ed;
  color: #0a5d56;
}

.user-shell .side-nav-group-title {
  color: #496268;
}

.user-shell .side-nav-group-title:hover {
  background: #edf5f4;
  color: #174f4b;
}

.user-shell .sidebar-user {
  border-top-color: var(--line);
}

.user-shell .sidebar-avatar {
  background: #e4f2f0;
  border-color: #cce2df;
  color: #12635d;
}

.user-shell .sidebar-user-copy strong {
  color: #29464b;
}

.user-shell .sidebar-user-copy small {
  color: #7b9094;
}

.user-shell .sidebar-logout {
  color: #71898e;
}

.user-shell .sidebar-logout:hover {
  background: #e9f1f1;
  color: var(--danger);
}

.legacy-portfolio-summary {
  display: none;
}

@media (max-width: 900px) {
  .shell {
    display: block;
  }

  .sidebar {
    bottom: 0;
    box-shadow: -14px 0 34px rgba(0, 0, 0, .24);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(110%);
    transition: transform .22s ease;
    width: min(84vw, 300px);
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

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

  .sidebar-backdrop {
    background: rgba(9, 27, 31, .58);
    inset: 0;
    position: fixed;
    z-index: 1035;
  }

  .sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-close,
  .sidebar-toggle {
    display: inline-flex;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    min-height: 72px;
    padding: 10px 16px;
  }

  .topbar-actions {
    display: none;
  }

  .mobile-topbar-logout {
    display: block;
    margin: 0;
  }

  .mobile-topbar-logout .icon-button {
    background: #fbecea;
    border: 1px solid #e8bbb5;
    color: var(--danger);
  }

  .main-area {
    padding: 20px 14px 38px;
  }

  .auth-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    max-width: 520px;
    padding: 12px 18px;
  }

  .auth-intro {
    text-align: right;
    width: 100%;
  }

  .auth-brand-line {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }

  .auth-intro h1 {
    display: none;
    font-size: 1.75rem;
    line-height: 1.45;
  }

  .auth-intro p {
    display: none;
    font-size: .86rem;
    margin: 0;
  }

  .auth-card {
    padding: 27px 23px;
    width: 100%;
  }

  .auth-card-footer {
    margin-inline: -23px;
  }
}

/* Financial command center */
.command-hero,
.report-header,
.user-welcome {
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.command-hero {
  align-items: stretch;
  background: #15373a;
  border: 1px solid #25494c;
  color: #fff;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(280px, .9fr) minmax(520px, 1.4fr);
  padding: 27px 28px;
}

.command-hero::after,
.user-welcome::after {
  border: 1px solid rgba(224, 194, 128, .17);
  border-radius: 50%;
  content: "";
  height: 210px;
  left: -78px;
  position: absolute;
  top: -115px;
  width: 210px;
}

.command-hero-copy,
.user-welcome-copy {
  align-self: center;
  position: relative;
  z-index: 1;
}

.command-eyebrow {
  align-items: center;
  color: #b99b5a;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  gap: 6px;
}

.command-eyebrow svg {
  height: 15px;
  width: 15px;
}

.command-hero h2,
.user-welcome h2,
.report-header h2 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 8px 0 5px;
}

.command-hero p,
.user-welcome p {
  color: #a9bdbf;
  font-size: .78rem;
  margin: 0;
}

.command-actions {
  align-items: stretch;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.quick-command {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  color: #eef6f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 13px;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.quick-command:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(222, 190, 120, .42);
  color: #fff;
  transform: translateY(-2px);
}

.quick-command > span {
  color: #dfc47f;
  display: inline-flex;
  margin-bottom: 9px;
}

.quick-command svg {
  height: 20px;
  width: 20px;
}

.quick-command strong {
  font-size: .78rem;
}

.quick-command small {
  color: #8fa7a9;
  font-size: .65rem;
  margin-top: 3px;
}

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

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  display: grid;
  gap: 0 13px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 112px;
  padding: 17px;
  position: relative;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

a.metric-card:hover {
  border-color: #bacbce;
  box-shadow: var(--shadow-md);
  color: inherit;
  transform: translateY(-2px);
}

.metric-icon {
  align-items: center;
  align-self: start;
  background: #edf5f4;
  border-radius: 7px;
  color: #176b64;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.metric-icon svg {
  height: 21px;
  width: 21px;
}

.metric-copy {
  display: grid;
  line-height: 1.25;
}

.metric-copy small {
  color: var(--muted);
  font-size: .72rem;
}

.metric-copy strong {
  color: #1d373b;
  font-size: 1.5rem;
  margin-top: 6px;
}

.metric-foot {
  align-self: end;
  color: #829397;
  font-size: .66rem;
  grid-column: 1 / -1;
  margin-top: 10px;
}

.metric-contract .metric-icon {
  background: #e9f1f7;
  color: #2e6684;
}

.metric-request .metric-icon {
  background: #fff4dd;
  color: #9b650f;
}

.metric-payment .metric-icon {
  background: #f0ebf7;
  color: #70558e;
}

.asset-section,
.user-asset-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
}

.section-heading > div > span,
.analytics-head > div > span {
  color: var(--accent);
  display: block;
  font-size: .68rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.section-heading h2,
.analytics-head h2 {
  color: #233d42;
  font-size: .96rem;
  font-weight: 700;
  margin: 0;
}

.section-heading > a {
  align-items: center;
  color: #5b7176;
  display: inline-flex;
  font-size: .72rem;
  gap: 5px;
  text-decoration: none;
}

.section-heading > a:hover {
  color: var(--accent);
}

.section-heading > a svg {
  height: 15px;
  width: 15px;
}

.asset-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.asset-balance-card {
  background: #f9fbfb;
  border: 1px solid #e1e8ea;
  border-radius: 8px;
  min-height: 150px;
  overflow: hidden;
  padding: 15px;
  position: relative;
}

.asset-balance-card::before {
  background: #4c8b86;
  content: "";
  height: 3px;
  inset: 0 0 auto 0;
  position: absolute;
}

.asset-card-head,
.asset-inline {
  align-items: center;
  display: flex;
}

.asset-card-head {
  justify-content: space-between;
}

.asset-icon {
  align-items: center;
  background: #e5f2f0;
  border: 1px solid #cee4e0;
  border-radius: 7px;
  color: #176a63;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

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

.asset-icon.asset-gold {
  background: #fff5db;
  border-color: #ead59f;
  color: #a57512;
}

.asset-icon.asset-silver {
  background: #f0f3f5;
  border-color: #d4dde1;
  color: #60717a;
}

.asset-icon.asset-dollar {
  background: #e7f4ed;
  border-color: #c9e4d5;
  color: #27724b;
}

.asset-icon.asset-euro {
  background: #e9effa;
  border-color: #ccd9ef;
  color: #365e9a;
}

.asset-icon.asset-toman {
  background: #f0ebf7;
  border-color: #dcd0eb;
  color: #765493;
}

.asset-contract-count {
  background: #fff;
  border: 1px solid #e3e9eb;
  border-radius: 999px;
  color: #74868b;
  font-size: .65rem;
  padding: 4px 8px;
}

.asset-card-title {
  color: #657a7f;
  font-size: .72rem;
  margin-top: 14px;
}

.asset-card-amount {
  color: #183438;
  font-size: 1.22rem;
  font-weight: 700;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.asset-card-amount small {
  color: #71858a;
  font-size: .7rem;
  font-weight: 600;
}

.asset-card-code {
  color: #a2afb2;
  font-size: .62rem;
  margin-top: 8px;
}

.dashboard-asset-section {
  padding: 16px;
}

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

.dashboard-asset-section .asset-balance-card {
  min-height: 118px;
  padding: 12px;
}

.dashboard-asset-section .asset-card-title {
  margin-top: 9px;
}

.dashboard-asset-section .asset-card-amount {
  font-size: 1.08rem;
}

.asset-tone-gold::before,
.asset-bar-gold {
  background: #c3952e !important;
}

.asset-tone-silver::before,
.asset-bar-silver {
  background: #8999a1 !important;
}

.asset-tone-usd::before,
.asset-bar-usd {
  background: #39845d !important;
}

.asset-tone-eur::before,
.asset-bar-eur {
  background: #4d72aa !important;
}

.asset-tone-irr::before,
.asset-bar-irr {
  background: #80639a !important;
}

.analytics-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
}

.analytics-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  display: block;
  padding: 20px;
  text-decoration: none;
}

a.analytics-panel {
  transition: border-color .16s ease, box-shadow .16s ease;
}

a.analytics-panel:hover {
  border-color: #b8cacc;
  box-shadow: var(--shadow-md);
  color: inherit;
}

.analytics-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 19px;
}

.analytics-head > svg {
  color: #83969a;
  height: 18px;
  width: 18px;
}

.bar-chart {
  display: grid;
  gap: 13px;
}

.bar-chart-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px minmax(100px, 1fr) 25px;
}

.bar-label {
  align-items: center;
  display: flex;
  font-size: .72rem;
  gap: 7px;
}

.bar-label .asset-icon,
.asset-inline .asset-icon,
.vertical-label .asset-icon {
  border-radius: 5px;
  height: 28px;
  width: 28px;
}

.bar-label .asset-icon svg,
.asset-inline .asset-icon svg,
.vertical-label .asset-icon svg {
  height: 14px;
  width: 14px;
}

.bar-track {
  background: #edf1f2;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.bar-track > span {
  background: #21877d;
  border-radius: inherit;
  display: block;
  height: 100%;
  width: max(4px, var(--bar-size));
}

.bar-chart-row > strong {
  color: #526a6f;
  font-size: .72rem;
  text-align: left;
}

.chart-note {
  align-items: center;
  color: #839397;
  display: flex;
  font-size: .65rem;
  gap: 6px;
  margin-top: 17px;
}

.chart-note svg {
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.action-chart-body {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 145px minmax(0, 1fr);
}

.donut-chart {
  align-items: center;
  background: conic-gradient(#d39c38 0 var(--request-angle), #5c6fa2 var(--request-angle) var(--payment-angle), #299180 var(--payment-angle) 360deg);
  border-radius: 50%;
  display: flex;
  height: 140px;
  justify-content: center;
  position: relative;
  width: 140px;
}

.donut-chart.is-empty {
  background: #dfe7e8;
}

.donut-chart::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 92px;
  position: absolute;
  width: 92px;
}

.donut-chart > div {
  display: grid;
  line-height: 1.3;
  position: relative;
  text-align: center;
  z-index: 1;
}

.donut-chart strong {
  color: #203b40;
  font-size: 1.25rem;
}

.donut-chart span {
  color: #7f9195;
  font-size: .62rem;
}

.chart-legend {
  display: grid;
  gap: 6px;
}

.chart-legend a {
  align-items: center;
  border-bottom: 1px solid #edf1f2;
  color: #536b70;
  display: grid;
  font-size: .7rem;
  gap: 7px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  padding: 8px 0;
  text-decoration: none;
}

.chart-legend a:last-child {
  border-bottom: 0;
}

.legend-dot {
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.request-dot {
  background: #d39c38;
}

.payment-dot {
  background: #5c6fa2;
}

.profit-dot {
  background: #299180;
}

.table-subline {
  color: #87979b;
  display: block;
  font-size: .62rem;
  font-weight: 400;
  margin-top: 3px;
}

.row-action {
  align-items: center;
  background: #edf5f4;
  border-radius: 6px;
  color: var(--accent);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.row-action:hover {
  background: var(--accent);
  color: #fff;
}

.row-action svg {
  height: 15px;
  width: 15px;
}

.asset-inline {
  gap: 7px;
}

/* Reports */
.report-header {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
}

.report-header h2 {
  color: #1d393d;
}

.report-header p {
  color: var(--muted);
  font-size: .74rem;
  margin: 0;
}

.report-date {
  align-items: center;
  background: #f4f8f8;
  border: 1px solid #e0e8ea;
  border-radius: 7px;
  display: grid;
  gap: 0 9px;
  grid-template-columns: 30px auto;
  padding: 9px 12px;
}

.report-date svg {
  color: var(--accent);
  grid-row: 1 / 3;
  height: 20px;
  width: 20px;
}

.report-date span {
  color: #8a999d;
  font-size: .62rem;
}

.report-date strong {
  color: #40585d;
  font-size: .72rem;
}

.report-chart-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, .8fr);
}

.report-unit {
  color: #87989c;
  font-size: .65rem;
}

.vertical-chart {
  align-items: end;
  display: flex;
  gap: 15px;
  height: 280px;
  justify-content: space-around;
  padding-top: 10px;
}

.vertical-chart-item {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-rows: 20px 180px 44px;
  height: 100%;
  justify-items: center;
  min-width: 58px;
}

.vertical-value {
  color: #5c7277;
  font-size: .7rem;
  font-weight: 700;
}

.vertical-track {
  align-items: end;
  background: #f0f3f4;
  border-radius: 6px 6px 2px 2px;
  display: flex;
  height: 180px;
  overflow: hidden;
  width: 42px;
}

.vertical-track span {
  background: var(--accent);
  border-radius: 5px 5px 0 0;
  display: block;
  height: max(5px, var(--bar-height));
  width: 100%;
}

.vertical-label {
  align-items: center;
  color: #64787d;
  display: flex;
  flex-direction: column;
  font-size: .62rem;
  gap: 4px;
  text-align: center;
}

.asset-detail-list {
  padding-bottom: 8px;
}

.asset-detail-row {
  align-items: center;
  border-bottom: 1px solid #ebeff0;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 11px 0;
}

.asset-detail-row:last-child {
  border-bottom: 0;
}

.asset-detail-row > div {
  display: grid;
}

.asset-detail-row > div strong {
  color: #344e53;
  font-size: .74rem;
}

.asset-detail-row > div small {
  color: #8b9b9f;
  font-size: .61rem;
}

.asset-detail-row > span {
  color: #2a454a;
  font-size: .75rem;
  font-weight: 700;
}

.asset-detail-row > span small {
  color: #7f9195;
  font-size: .62rem;
}

.report-note {
  background: #eef6f4;
  border: 1px solid #d5e7e3;
  border-radius: 7px;
  color: #57716f;
  margin-top: 14px;
  padding: 11px 14px;
}

/* Investor dashboard */
.user-welcome {
  align-items: center;
  background: #275d62;
  border: 1px solid #376e73;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 25px 27px;
}

.user-welcome-actions {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.user-welcome-actions .btn {
  font-size: .72rem;
}

.user-welcome-actions .btn-light {
  color: #245358;
}

.user-welcome-actions .btn-outline-light:hover {
  color: #245358;
}

.user-asset-section {
  border-top: 3px solid #3c8c83;
}

.user-asset-card {
  min-height: 182px;
}

.user-asset-profit {
  align-items: center;
  border-top: 1px solid #e4e9eb;
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 10px;
}

.user-asset-profit span {
  color: #829397;
  font-size: .64rem;
}

.user-asset-profit strong {
  color: #28705a;
  font-size: .7rem;
}

@media (max-width: 1180px) {
  .command-hero {
    grid-template-columns: 1fr;
  }

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

  .analytics-grid,
  .report-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .command-hero {
    padding: 22px 18px;
  }

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

  .quick-command {
    min-height: 92px;
  }

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

  .asset-card-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .report-header,
  .user-welcome {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .section-heading > a {
    align-self: flex-start;
  }

  .action-chart-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chart-legend {
    width: 100%;
  }

  .bar-chart-row {
    grid-template-columns: 95px minmax(70px, 1fr) 22px;
  }

  .vertical-chart {
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .vertical-chart-item {
    min-width: 72px;
  }

  .user-welcome-actions {
    flex-direction: column;
    width: 100%;
  }

  .user-welcome-actions .btn {
    width: 100%;
  }
}

.profit-due-day {
  background: #fff;
  border: 1px solid #d9e3e2;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 0;
}

.profit-workbench-head {
  align-items: center;
  background: #173f43;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 18px 20px;
}

.profit-workbench-head h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 4px 0;
}

.profit-workbench-head p {
  color: #cbdcdd;
  margin: 0;
}

.profit-date-picker {
  align-items: center;
  display: flex;
  gap: 8px;
}

.profit-date-picker .form-control {
  min-width: 190px;
}

.profit-workbench-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.profit-workbench-tabs button {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe5e5;
  color: #456064;
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
  text-align: right;
}

.profit-workbench-tabs button span {
  align-items: center;
  display: flex;
  gap: 8px;
}

.profit-workbench-tabs button em {
  background: #eef3f3;
  font-size: .7rem;
  font-style: normal;
  padding: 4px 7px;
}

.profit-workbench-tabs button.is-active {
  background: #eaf6f3;
  border-color: #62a99e;
  color: #176f69;
  box-shadow: inset 0 -3px #268078;
}

.formatted-number {
  direction: ltr;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.profit-due-day summary {
  align-items: center;
  background: #f1f6f6;
  border-bottom: 1px solid #d9e3e2;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  list-style: none;
  padding: 13px 16px;
}

.profit-due-day[open] summary {
  box-shadow: inset 0 -3px rgba(62,104,108,.1);
}

.profit-due-day summary span {
  align-items: center;
  display: flex;
  gap: 8px;
}

.profit-due-day summary svg {
  color: #4d777b;
  height: 18px;
  width: 18px;
}

.profit-due-day summary em {
  background: #fff;
  border: 1px solid #d2dddd;
  color: #46686b;
  font-size: .74rem;
  font-style: normal;
  padding: 5px 9px;
}

.profit-due-summary-action {
  margin: 0;
}

.profit-due-summary-action .btn {
  white-space: nowrap;
}

.profit-due-day > .table-responsive {
  margin-inline: 16px;
}

.profit-due-day .table thead th {
  background: #f4f7f7;
  border-bottom: 1px solid #d7e1e0;
  color: #405f63;
}

.profit-decision-filter-panel {
  display: grid;
  gap: 9px;
  min-width: min(680px, 100%);
}

.profit-decision-filter-inline {
  align-items: center;
  direction: rtl;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-width: min(920px, 100%);
}

.profit-decision-search {
  display: grid;
}

.profit-decision-filter-inline .profit-decision-search {
  flex: 0 0 235px;
}

.profit-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.profit-decision-filter-inline .profit-filter-buttons {
  justify-content: flex-start;
}

.profit-filter-chip {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e2e1;
  color: #486568;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 750;
  gap: 6px;
  padding: 7px 10px;
  text-decoration: none;
}

.profit-filter-chip:hover,
.profit-filter-chip.is-active {
  background: #eaf3f2;
  border-color: #8fb9b5;
  color: #1d6762;
}

.profit-filter-chip small {
  background: rgba(255,255,255,.75);
  color: inherit;
  font-size: .65rem;
  padding: 2px 5px;
}

.profit-date-filter-buttons .profit-filter-chip {
  background: #fbfcfc;
}

.profit-details-page .panel > .row,
.profit-details-page .panel > .table-responsive,
.profit-details-page .panel > .empty-state,
.profit-details-page .panel > .alert,
.profit-details-page .panel > form,
.profit-details-page .panel > .border-bottom {
  margin-inline: 18px;
}

.profit-details-page .panel > .row,
.profit-details-page .panel > .table-responsive,
.profit-details-page .panel > .empty-state,
.profit-details-page .panel > .alert {
  margin-bottom: 18px;
}

.profit-details-page .panel > form {
  margin-bottom: 20px;
}

.profit-details-page .panel > form:last-child,
.profit-details-page .panel > .border-bottom:last-child {
  margin-bottom: 18px;
}

.profit-details-page .panel > .row {
  row-gap: 12px;
}

.profit-details-page .panel > .table-responsive {
  border: 1px solid #e2e9e8;
  border-radius: 8px;
  overflow: auto;
}

@media (max-width: 900px) {
  .profit-decision-filter-inline {
    justify-content: stretch;
    min-width: 100%;
  }

  .profit-decision-filter-inline .profit-decision-search {
    flex: 1 1 100%;
  }
}

.profit-bulk-decision {
  background: #fff8e8;
  border: 1px solid #eed9a6;
  margin: 0 18px 16px;
  padding: 10px 13px;
}

.profit-bulk-decision summary {
  color: #85630f;
  cursor: pointer;
  font-weight: 800;
}

.profit-bulk-decision > div {
  align-items: center;
  display: grid;
  gap: 5px 14px;
  grid-template-columns: 1fr auto;
  padding-top: 10px;
}

.profit-bulk-decision p {
  color: #796b49;
  margin: 0;
}

.profit-bulk-decision form {
  grid-column: 2;
  grid-row: 1 / 3;
}

.payment-modal-amount {
  background: #edf7f5;
  border: 1px solid #cfe5e1;
  display: grid;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.payment-modal-amount strong {
  color: #176f69;
  font-size: 1.05rem;
}

.payment-complete-modal-body {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-complete-modal-body > .payment-modal-amount,
.payment-complete-modal-body > .payment-conversion-box {
  grid-column: 1 / -1;
}

.payment-complete-modal-body > .form-label {
  margin: 0;
  width: 100%;
}

.payment-complete-modal-body > .form-label:not(.payment-complete-description) {
  grid-column: auto;
  min-width: 0;
}

.payment-complete-modal-body > .form-label > .form-control {
  width: 100%;
}

.payment-complete-description {
  grid-column: 1 / -1;
  width: 100%;
}

.payment-conversion-box .row {
  align-items: end;
}

.payment-conversion-box .form-label {
  width: 100%;
}

.payment-return-modal-body {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.payment-return-modal-body > .alert,
.payment-return-modal-body > .payment-modal-amount,
.payment-return-description {
  width: 100%;
}

.payment-return-description {
  margin: 0;
}

@media (max-width: 640px) {
  .payment-complete-modal-body {
    grid-template-columns: 1fr;
  }
}

.payment-detail-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-detail-dialog {
  max-width: min(1320px, calc(100vw - 28px));
}

.payment-detail-dialog .modal-body {
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.payment-detail-dialog .payment-detail-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.payment-detail-grid > div {
  background: #f5f8f8;
  border: 1px solid #e0e8e8;
  display: grid;
  min-height: 68px;
  padding: 9px 11px;
}

.payment-detail-grid small,
.payment-detail-note small {
  color: #73878a;
}

.payment-detail-note {
  border: 1px solid #e0e8e8;
  margin-top: 10px;
  padding: 9px 11px;
}

.payment-detail-note p {
  margin: 3px 0 0;
}

.investor-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
}

.investor-row-actions form {
  margin: 0;
}

.request-origin-badge {
  align-items: center;
  display: flex;
  font-size: .68rem;
  font-weight: 750;
  gap: 4px;
  margin-top: 5px;
  padding: 4px 7px;
  width: fit-content;
  white-space: nowrap;
}

.request-origin-badge.is-external {
  background: #eaf4fb;
  border: 1px solid #b8d9e9;
  color: #286b8b;
}

.request-origin-badge svg,
.request-origin-note svg {
  height: 13px;
  width: 13px;
}

.request-origin-note {
  align-items: center;
  color: #39758f;
  display: flex;
  font-size: .7rem;
  gap: 4px;
  margin-top: 5px;
}

.gold-live-quote {
  align-items: center;
  background: #fff6d8;
  border: 1px solid #e8cf7d;
  color: #795b09;
  display: flex;
  font-size: .72rem;
  gap: 7px;
  grid-column: 1 / -1;
  padding: 7px 9px;
}

.gold-live-quote svg {
  height: 15px;
  width: 15px;
}

.settings-hero {
  align-items: center;
  background: #173f43;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 18px 20px;
}
.settings-hero h2 { color:#fff; margin:4px 0; }
.settings-hero p { color:#cbdcdd; margin:0; }
.settings-safety { align-items:center; background:#28555a; display:flex; gap:7px; padding:8px 10px; }
.settings-tabs { display:flex; gap:7px; margin-bottom:12px; }
.settings-tabs a { align-items:center; background:#fff; border:1px solid var(--line); color:#526b6e; display:flex; gap:7px; padding:10px 13px; text-decoration:none; }
.settings-tabs a.is-active { background:#eaf6f3; border-color:#62a99e; color:#176f69; box-shadow:inset 0 -3px #268078; }
.settings-tabs a span { background:#edf2f2; font-size:.68rem; padding:3px 6px; }
.settings-grid { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.setting-item { align-items:end; background:#fff; border:1px solid var(--line); display:grid; gap:10px; grid-template-columns:minmax(190px,1fr) minmax(180px,1fr) auto; padding:13px; }
.setting-item > div { display:grid; }
.setting-item small { color:#74888b; }
.notification-settings-grid { display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.notification-channel-card { background:#fff; border:1px solid var(--line); display:grid; gap:13px; padding:15px; }
.profit-sms-settings-card { border-color:#b9dcd6; box-shadow:0 10px 24px rgba(38,128,120,.08); grid-column:1/-1; }
.profit-sms-settings-details {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.profit-sms-settings-details > summary {
  background: #dcebe8;
  border-bottom: 1px solid #c4dbd7;
  cursor: pointer;
  list-style: none;
  padding: 15px;
}

.profit-sms-settings-details > summary::-webkit-details-marker {
  display: none;
}

.profit-sms-settings-details > summary:hover {
  background: #d3e5e1;
}

.profit-sms-settings-details[open] > summary {
  background: #cfdfdc;
}

.sms-settings-chevron {
  color: #496b6e;
  height: 19px;
  margin-inline-start: auto;
  transition: transform .2s ease;
  width: 19px;
}

.profit-sms-settings-details[open] .sms-settings-chevron {
  transform: rotate(180deg);
}

.profit-sms-settings-body {
  display: grid;
  gap: 13px;
  padding: 15px;
}
.sms-setting-row { align-items:end; display:grid; gap:10px; grid-template-columns:minmax(0,1fr) auto; }
.sms-setting-row textarea { min-height:116px; resize:vertical; }
.sms-template-settings { display:grid; gap:8px; grid-template-columns:1fr; }
.sms-test-row { align-items:end; background:#eef8f5; border:1px dashed #9ccdc5; display:grid; gap:10px; grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto; padding:12px; }
.sms-template-card { background:#f7fbfa; border:1px solid #c8ddda; overflow:hidden; }
.sms-template-card[open] { box-shadow:0 10px 24px rgba(38,128,120,.08); }
.sms-template-card summary { align-items:center; background:#e3efed; border-bottom:1px solid transparent; cursor:pointer; display:flex; gap:12px; justify-content:space-between; list-style:none; padding:12px 14px; }
.sms-template-card summary::-webkit-details-marker { display:none; }
.sms-template-card summary:hover { background:#d9eae7; }
.sms-template-card[open] summary { background:#d5e6e3; border-bottom-color:#c3d9d5; }
.sms-template-summary-main { display:grid; gap:3px; min-width:0; }
.sms-template-summary-main strong { color:#173f43; font-size:.98rem; }
.sms-template-summary-main small { color:#526b6e; }
.sms-template-summary-meta { align-items:center; display:flex; flex-shrink:0; gap:8px; }
.sms-template-summary-meta svg { color:#5b7e80; height:18px; transition:.2s ease; width:18px; }
.sms-template-card[open] .sms-template-summary-meta svg { transform:rotate(180deg); }
.sms-template-card-body { border-top:1px solid #d7e8e5; display:grid; gap:10px; padding:12px 14px 14px; }
.sms-template-help { background:#fff; border:1px dashed #c7dedb; color:#526b6e; padding:8px 10px; }
.sms-template-card small { color:#7b8f91; }
.sms-template-card form { display:grid; gap:8px; }
.profit-send-actions { align-items:stretch; display:flex; flex-direction:column; gap:6px; min-width:92px; }
.profit-send-actions .btn { justify-content:center; width:100%; }
.profit-send-actions form { margin:0; }
.quick-action-strip { display:grid; gap:12px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.quick-action-card { align-items:center; background:#fff; border:1px solid var(--line); color:#173f43; display:flex; gap:12px; padding:14px; text-decoration:none; transition:.2s ease; }
.quick-action-card:hover { border-color:#62a99e; box-shadow:0 12px 26px rgba(38,128,120,.1); color:#176f69; transform:translateY(-1px); }
.quick-action-card > i,.quick-action-card > svg { background:#eaf6f3; color:#176f69; padding:9px; width:42px; height:42px; }
.quick-action-card span { display:grid; gap:2px; }
.quick-action-card small { color:#74888b; }
.sms-provider-message { max-width:360px; white-space:normal; }
.sms-message-text-box { background:#f7fbfa; border:1px solid #d7e8e5; color:#173f43; line-height:1.9; min-height:120px; padding:14px; white-space:pre-wrap; word-break:break-word; }
.audit-load-sentinel { color:#64787a; display:flex; justify-content:center; padding:14px; }
.audit-load-sentinel span { background:#f2f7f6; border:1px solid var(--line); padding:9px 14px; }
.audit-load-sentinel.is-loading span { color:#176f69; border-color:#9ccdc5; }
.infinite-load-sentinel {
    color: #64787a;
    display: flex;
    justify-content: center;
    padding: 14px;
}
.infinite-load-sentinel::before {
    background: #f2f7f6;
    border: 1px solid var(--line);
    border-radius: 999px;
    content: attr(data-text);
    display: none;
    padding: 9px 14px;
}
.infinite-load-sentinel:not([hidden]) {
    min-height: 48px;
}
.infinite-load-sentinel:not([hidden])::before {
    content: "برای نمایش ردیف‌های بعدی کمی پایین‌تر بروید";
    display: inline-flex;
}
.infinite-load-sentinel.is-loading::before {
    color: #176f69;
    content: "در حال بارگذاری ردیف‌های بیشتر...";
}
.channel-head { align-items:center; display:grid; gap:10px; grid-template-columns:42px 1fr auto; }
.channel-head h3 { font-size:.95rem; margin:0; }
.channel-head small { color:#74888b; }
.channel-icon { align-items:center; background:#edf5f4; color:#176f69; display:flex; height:42px; justify-content:center; width:42px; }
.channel-events { display:grid; gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.channel-events label { align-items:center; background:#f5f8f8; display:flex; gap:7px; padding:8px; }
.switch-control input { display:none; }
.switch-control span { background:#cbd5d6; cursor:pointer; display:block; height:24px; position:relative; width:44px; }
.switch-control span::after { background:#fff; content:""; height:18px; left:3px; position:absolute; top:3px; transition:.2s; width:18px; }
.switch-control input:checked + span { background:#268078; }
.switch-control input:checked + span::after { transform:translateX(20px); }
.settings-asset-form { display:grid; gap:11px; grid-template-columns:repeat(2,minmax(0,1fr)); }

@media(max-width:800px){
 .settings-hero,.settings-tabs{align-items:stretch;flex-direction:column}
 .settings-grid,.notification-settings-grid,.settings-asset-form,.sms-template-settings,.quick-action-strip{grid-template-columns:1fr}
 .setting-item,.sms-setting-row,.sms-test-row{grid-template-columns:1fr}
}

@media (max-width: 700px) {
  .payment-detail-grid {
    grid-template-columns: 1fr;
  }

  .profit-bulk-decision > div {
    grid-template-columns: 1fr;
  }

  .profit-bulk-decision form {
    grid-column: auto;
    grid-row: auto;
  }

  .profit-workbench-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .profit-workbench-title-copy {
    display: none;
  }

  .profit-date-picker {
    display: flex;
    gap: 8px;
  }

  .profit-workbench-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profit-workbench-tabs button {
    gap: 6px;
    padding: 10px 8px;
  }

  .profit-workbench-tabs button span {
    gap: 5px;
  }

  .profit-workbench-tabs button strong,
  .profit-workbench-tabs button em {
    font-size: .68rem;
  }

  .profit-decision-table-wrap {
    overflow: visible;
  }

  .profit-decision-table,
  .profit-decision-table thead,
  .profit-decision-table tbody,
  .profit-decision-table tr,
  .profit-decision-table td {
    display: block;
  }

  .profit-decision-table thead {
    display: none;
  }

  .profit-decision-table tbody {
    display: grid;
    gap: 10px;
  }

  .profit-decision-table tr {
    background: #fff;
    border: 1px solid #dce8e7;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(31,70,73,.07);
    overflow: hidden;
  }

  .profit-decision-table > tbody > tr:nth-child(even) > *,
  .profit-decision-table > tbody > tr:nth-child(odd) > * {
    background: transparent;
  }

  .profit-decision-table td {
    align-items: flex-start;
    border-bottom: 1px solid #edf2f2;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px;
    text-align: left !important;
  }

  .profit-decision-table td::before {
    color: #6f8589;
    content: attr(data-label);
    flex: 0 0 72px;
    font-size: .68rem;
    font-weight: 800;
    text-align: right;
  }

  .profit-decision-table td:first-child {
    background: #f4faf8 !important;
  }

  .profit-decision-table td:last-child {
    border-bottom: 0;
    display: block;
  }

  .profit-decision-table td:last-child::before {
    display: block;
    margin-bottom: 8px;
  }

  .profit-decision-actions {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: 1fr;
    justify-content: stretch !important;
  }

  .profit-decision-actions form,
  .profit-decision-actions .btn {
    width: 100%;
  }

  .profit-date-picker {
    align-items: stretch;
    flex-direction: row;
  }

  .profit-date-picker .form-control,
  .profit-date-picker .btn {
    flex: 1 1 0;
    min-width: 0;
    width: 50%;
  }
}

.request-summary-strip {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 18px;
}

.request-summary-strip a {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e7e8;
  border-radius: 7px;
  color: #35545a;
  display: grid;
  gap: 1px 10px;
  grid-template-columns: 38px 1fr;
  padding: 10px 12px;
  text-decoration: none;
}

.request-summary-strip a:hover {
  border-color: #9fc2be;
  box-shadow: 0 4px 12px rgba(31, 70, 73, .08);
}

.request-summary-strip .summary-icon {
  grid-row: span 2;
}

.request-summary-strip small {
  color: #73878b;
  font-size: .63rem;
}

.request-summary-strip strong {
  font-size: .95rem;
}

.request-advanced-filters {
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
}

.request-filter-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
}

.request-filter-simple {
  grid-template-columns: minmax(280px, 2fr) minmax(180px, .7fr);
}

.request-filter-simple .request-search,
.request-filter-simple .request-filter-actions {
  grid-column: auto;
}

.request-search {
  grid-column: span 2;
}

.request-filter-actions {
  display: flex;
  gap: 7px;
  grid-column: span 2;
}

.request-type,
.request-status {
  border: 1px solid;
  border-radius: 5px;
  display: inline-flex;
  font-size: .64rem;
  font-weight: 750;
  padding: 5px 8px;
  white-space: nowrap;
}

.request-type-capitalincrease {
  background: #e9f6ee;
  border-color: #c9e7d5;
  color: #28734e;
}

.request-type-withdrawal {
  background: #fff3df;
  border-color: #ecd6aa;
  color: #926111;
}

.request-type-fullsettlement {
  background: #f0edfa;
  border-color: #dbd2ee;
  color: #67518c;
}

.request-type-profitpayment {
  background: #eaf1f9;
  border-color: #cddced;
  color: #43668d;
}

.request-status-submitted {
  background: #eef2f4;
  border-color: #d8e1e3;
  color: #5e7479;
}

.request-status-underreview {
  background: #fff4df;
  border-color: #ecd8ab;
  color: #916212;
}

.request-status-approved {
  background: #eaf1f9;
  border-color: #cedced;
  color: #42658c;
}

.request-status-finalapproved {
  background: #e8f6ee;
  border-color: #c7e6d3;
  color: #27724c;
}

.request-status-rejected,
.request-status-cancelled {
  background: #faecea;
  border-color: #eccdca;
  color: #9d4038;
}

@media (max-width: 1100px) {
  .request-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .request-summary-strip,
  .request-filter-grid {
    grid-template-columns: 1fr;
  }

  .request-search,
  .request-filter-actions {
    grid-column: auto;
  }

  .request-filter-actions .btn {
    flex: 1;
  }
}

.permission-hero {
  align-items: center;
  background: #173f43;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 22px 25px;
}

.permission-back {
  color: #bcd5d3;
  display: inline-flex;
  font-size: .66rem;
  gap: 6px;
  margin-bottom: 10px;
  text-decoration: none;
}

.permission-hero h2 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.permission-hero p {
  color: #c8dcda;
  font-size: .7rem;
  margin: 0;
}

.permission-presets {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 16px 18px;
}

.permission-presets button {
  background: #fff;
  border: 1px solid #dce5e6;
  border-radius: 7px;
  color: #38575c;
  display: grid;
  min-height: 92px;
  padding: 12px;
  text-align: right;
}

.permission-presets button:hover,
.permission-presets button.active {
  background: #edf7f5;
  border-color: #79ada7;
  box-shadow: 0 0 0 2px rgba(25, 128, 120, .08);
}

.permission-presets svg {
  color: #25776f;
  height: 20px;
  margin-bottom: 8px;
  width: 20px;
}

.permission-presets strong {
  font-size: .74rem;
}

.permission-presets small {
  color: #7c8e92;
  font-size: .59rem;
}

.permission-module {
  border-bottom: 1px solid #e3e9ea;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.permission-module:last-child {
  border-bottom: 0;
}

.permission-module-head {
  align-items: center;
  background: #f7f9fa;
  border-left: 1px solid #e3e9ea;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px 1fr;
  padding: 16px;
}

.permission-module-head > button {
  grid-column: 1 / -1;
}

.permission-module-icon {
  align-items: center;
  background: #e2f0ee;
  border-radius: 6px;
  color: #24736c;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.permission-module-head div {
  display: grid;
}

.permission-module-head strong {
  font-size: .76rem;
}

.permission-module-head small {
  color: #7b8e91;
  font-size: .6rem;
}

.permission-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 14px;
}

.permission-item {
  align-items: center;
  border-bottom: 1px dashed #e4eaea;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 10px;
  position: relative;
}

.permission-item > span:first-child {
  display: grid;
}

.permission-item strong {
  color: #334f54;
  font-size: .7rem;
}

.permission-item small {
  color: #91a0a3;
  direction: ltr;
  font-size: .54rem;
  text-align: right;
}

.permission-checkbox {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.permission-switch {
  background: #cbd5d7;
  border-radius: 999px;
  height: 22px;
  position: relative;
  transition: .2s ease;
  width: 40px;
}

.permission-switch::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  content: "";
  height: 16px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: .2s ease;
  width: 16px;
}

.permission-checkbox:checked + .permission-switch {
  background: #198078;
}

.permission-checkbox:checked + .permission-switch::after {
  transform: translateX(18px);
}

.permission-savebar {
  align-items: end;
  background: #fff;
  border: 1px solid #dce5e6;
  bottom: 10px;
  box-shadow: 0 8px 25px rgba(30, 57, 62, .12);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto auto;
  margin: 14px 0;
  padding: 13px 16px;
  position: sticky;
  z-index: 20;
}

.permission-change {
  border-radius: 5px;
  font-size: .64rem;
  font-weight: 700;
  padding: 4px 8px;
}

.permission-change.granted {
  background: #e8f6ee;
  color: #27734d;
}

.permission-change.revoked {
  background: #faecea;
  color: #9d4038;
}

.access-denied {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 50px auto;
  max-width: 620px;
  padding: 45px 25px;
  text-align: center;
}

.access-denied > svg {
  color: #a64b43;
  height: 55px;
  margin-bottom: 15px;
  width: 55px;
}

.access-denied h2 {
  font-size: 1.05rem;
}

.access-denied p {
  color: #75898d;
  font-size: .72rem;
}

@media (max-width: 900px) {
  .permission-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permission-module {
    grid-template-columns: 1fr;
  }

  .permission-module-head {
    border-bottom: 1px solid #e3e9ea;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .permission-items,
  .permission-presets,
  .permission-savebar {
    grid-template-columns: 1fr;
  }
}

.access-profile {
  align-items: center;
  border: 1px solid;
  border-radius: 5px;
  display: inline-flex;
  font-size: .65rem;
  font-weight: 750;
  gap: 5px;
  padding: 5px 8px;
  white-space: nowrap;
}

.access-profile svg {
  height: 14px;
  width: 14px;
}

.profile-fullaccess {
  background: #fff5dc;
  border-color: #e9d39b;
  color: #8b650e;
}

.profile-financial {
  background: #e8f5ee;
  border-color: #c7e5d5;
  color: #25714d;
}

.profile-contracts {
  background: #eaf1f9;
  border-color: #cedced;
  color: #42658c;
}

.profile-requests {
  background: #f0edfa;
  border-color: #dcd3ef;
  color: #66518d;
}

.profile-readonly {
  background: #eef1f2;
  border-color: #d9e0e2;
  color: #5c7075;
}

.profile-custom {
  background: #f7edef;
  border-color: #e8d2d7;
  color: #87515e;
}

.profile-investor {
  background: #edf7f5;
  border-color: #cfe6e2;
  color: #28746d;
}

.credentials-note {
  align-items: flex-start;
  background: #eef7f5;
  border: 1px solid #d0e8e3;
  border-radius: 6px;
  color: #456b69;
  display: flex;
  font-size: .67rem;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 11px;
}

.credentials-note svg {
  color: #24766e;
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.contract-advanced-filters {
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
}

.contract-filter-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(160px, .75fr));
}

.contract-filter-actions {
  display: flex;
  gap: 7px;
  grid-column: auto;
  justify-content: flex-end;
}

.contract-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: max-content;
  white-space: nowrap;
}

.contract-row-actions form {
  margin: 0;
}

.contract-icon-action {
  align-items: center;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.contract-icon-action svg {
  height: 17px;
  width: 17px;
}

.contract-results-strip {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e3e9ea;
  color: #718589;
  display: flex;
  font-size: .65rem;
  justify-content: space-between;
  padding: 9px 18px;
}

.contract-results-strip strong {
  color: #245d5c;
  font-size: .78rem;
}

.contract-status {
  align-items: center;
  border: 1px solid;
  border-radius: 5px;
  display: inline-flex;
  font-size: .65rem;
  font-weight: 750;
  gap: 6px;
  padding: 5px 8px;
  white-space: nowrap;
}

.contract-status > span {
  background: currentColor;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.contract-status-active {
  background: #e8f6ee;
  border-color: #c5e5d2;
  color: #24724b;
}

.contract-status-draft {
  background: #eef2f4;
  border-color: #d8e0e3;
  color: #61757a;
}

.contract-status-expired {
  background: #fff4de;
  border-color: #ecd8aa;
  color: #936412;
}

.contract-status-closed {
  background: #edf0f2;
  border-color: #d6dde0;
  color: #586b70;
}

.contract-status-settled {
  background: #eaf1f9;
  border-color: #cddcec;
  color: #43658a;
}

.contract-status-cancelled {
  background: #faecea;
  border-color: #ebccc8;
  color: #9c4038;
}

.contract-status-locked {
  background: #f1edfa;
  border-color: #dcd2ef;
  color: #67518c;
}

.contract-preview-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: #176d67;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 750;
  gap: 6px;
  padding: 3px 0;
  white-space: nowrap;
}

.request-contract-cell .contract-preview-link {
  display: inline-grid;
  grid-template-columns: 16px minmax(0, 1fr);
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.request-contract-cell .contract-preview-link svg {
  flex: 0 0 auto;
}

.contract-preview-link:hover {
  color: #104f4b;
  text-decoration: underline;
}

.contract-preview-link svg {
  height: 16px;
  width: 16px;
}

.person-preview-link {
  align-items: center;
  background: transparent;
  border: 0;
  color: #176f69;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 750;
  gap: 6px;
  padding: 3px 0;
  text-align: right;
  white-space: nowrap;
}

.request-number-cell,
.request-person-cell,
.request-date-cell,
.request-action-cell {
  white-space: nowrap;
}

.request-contract-cell {
  max-width: 165px;
  min-width: 120px;
  width: 1%;
  white-space: nowrap;
}

.request-type-cell,
.request-amount-cell {
  min-width: max-content;
  white-space: nowrap;
}

.request-action-cell .btn {
  white-space: nowrap;
}

.person-preview-link:hover {
  color: #104f4b;
  text-decoration: underline;
}

.person-preview-link svg {
  height: 16px;
  width: 16px;
}

.person-summary-card {
  display: grid;
  gap: 10px;
}

.person-balance-row {
  align-items: center;
  background: #f6faf9;
  border: 1px solid #dbe9e6;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto auto;
  padding: 12px 14px;
}

.person-balance-row strong {
  color: #104f4b;
  font-size: 1rem;
}

.person-balance-row small {
  color: #708387;
}

.contract-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.contract-summary-grid > div {
  background: #f7faf9;
  border: 1px solid #dfe8e7;
  display: grid;
  min-height: 72px;
  padding: 11px 12px;
}

.contract-summary-grid small {
  color: #7b8e92;
  font-size: .6rem;
}

.contract-summary-grid strong {
  align-items: center;
  color: #294b50;
  display: flex;
  font-size: .77rem;
}

.contract-summary-ledger {
  border-top: 1px solid #e1e8e9;
  padding-top: 16px;
}

.contract-summary-ledger .table-responsive {
  max-height: 320px;
  overflow-y: auto;
}

.contract-summary-ledger thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.contract-summary-ledger h3 {
  color: #294c51;
  font-size: .82rem;
  margin-bottom: 10px;
}

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

.profit-summary-grid > div {
  background: #f7faf9;
  border: 1px solid #dfe8e7;
  display: grid;
  min-height: 72px;
  padding: 11px 12px;
}

.profit-summary-grid small,
.profit-payment-box small {
  color: #7b8e92;
  font-size: .6rem;
}

.profit-summary-grid strong {
  color: #294b50;
  font-size: .75rem;
}

.profit-payment-box {
  align-items: center;
  background: #eef5fa;
  border: 1px solid #d5e1ec;
  display: grid;
  gap: 2px 12px;
  grid-template-columns: 1fr auto;
  margin-top: 12px;
  padding: 11px 13px;
}

.profit-payment-box strong {
  color: #315d7e;
  font-size: .75rem;
}

.profit-payment-box span,
.profit-payment-box em {
  font-size: .66rem;
}

.profit-payment-box em {
  color: #56748b;
  font-style: normal;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.profit-history {
  border-top: 1px solid #e1e8e9;
  margin-top: 18px;
  padding-top: 15px;
}

.profit-history h3 {
  color: #294c51;
  font-size: .8rem;
  margin-bottom: 12px;
}

.profit-history-row {
  display: grid;
  gap: 9px;
  grid-template-columns: 12px 1fr;
  padding-bottom: 12px;
  position: relative;
}

.profit-history-row:not(:last-child)::before {
  background: #d8e2e2;
  content: "";
  height: 100%;
  position: absolute;
  right: 5px;
  top: 7px;
  width: 2px;
}

.profit-history-dot {
  background: #268078;
  border: 2px solid #d9efec;
  border-radius: 50%;
  height: 11px;
  margin-top: 4px;
  position: relative;
  width: 11px;
  z-index: 1;
}

.profit-history-row div {
  display: grid;
}

.profit-history-row strong {
  font-size: .68rem;
}

.profit-history-row small,
.profit-history-row p {
  color: #7a8c90;
  font-size: .59rem;
  margin: 1px 0 0;
}

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

.request-details-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.request-details-compact > div:nth-child(4) {
  grid-column: span 2;
}

.request-summary-grid > div {
  background: #f7faf9;
  border: 1px solid #dfe8e7;
  display: grid;
  min-height: 70px;
  padding: 11px 12px;
}

.request-summary-grid small,
.request-summary-notes small {
  color: #7b8e92;
  font-size: .6rem;
}

.request-summary-grid strong {
  color: #294b50;
  font-size: .74rem;
}

.request-summary-notes {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.request-summary-notes > div {
  border: 1px solid #e0e7e8;
  padding: 10px 12px;
}

.request-summary-notes p {
  color: #435f64;
  font-size: .67rem;
  margin: 3px 0 0;
}

.request-quick-choices {
  align-items: center;
  background: #f7fafb;
  border: 1px solid #dfe7e8;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 12px;
}

.request-quick-choices > strong {
  font-size: .67rem;
  margin-left: 5px;
}

.request-quick-choices .btn.active {
  background: #176f69;
  border-color: #176f69;
  color: #fff;
}

.request-summary-lower {
  border-top: 1px solid #e0e7e8;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  padding-top: 15px;
}

.request-summary-lower h3 {
  color: #294c51;
  font-size: .78rem;
  margin-bottom: 11px;
}

.request-receipts {
  display: grid;
  gap: 7px;
}

.request-receipt-item {
  align-items: center;
  background: #f7f9fa;
  border: 1px solid #e0e7e8;
  color: #365b60;
  display: grid;
  font-size: .65rem;
  gap: 7px;
  grid-template-columns: 18px 1fr auto;
  padding: 8px 9px;
  text-decoration: none;
}

.request-receipt-item svg {
  height: 15px;
  width: 15px;
}

.request-receipt-item small {
  color: #7c8e91;
  font-size: .56rem;
}

.request-modal-footer {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 10px;
}

.request-quick-action {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 7px;
  margin-left: auto;
  min-width: min(360px, 100%);
}

.request-quick-action .form-control {
  min-width: 170px;
}

.request-footer-action-choices {
  align-items: center;
  display: flex;
  gap: 6px;
}

.request-footer-action-choices .btn,
.request-quick-action > .btn {
  min-width: max-content;
  white-space: nowrap;
}

.request-action-description {
  max-width: 240px;
}

@media (max-width: 700px) {
  .contract-summary-grid {
    grid-template-columns: 1fr;
  }

  .profit-summary-grid {
    grid-template-columns: 1fr;
  }

  .request-summary-grid,
  .request-summary-notes,
  .request-summary-lower {
    grid-template-columns: 1fr;
  }

  .request-details-compact > div:nth-child(4) {
    grid-column: auto;
  }

  .request-quick-action {
    align-items: stretch;
    flex-direction: column;
    min-width: 100%;
  }

  .request-footer-action-choices {
    flex-wrap: wrap;
  }

  .request-action-description {
    max-width: none;
  }
}

.investment-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.investment-stat-grid > div {
  align-items: center;
  background: #f7faf9;
  border: 1px solid #dfe8e7;
  border-radius: 7px;
  display: grid;
  gap: 1px 10px;
  grid-template-columns: 40px 1fr;
  padding: 12px;
}

.investment-stat-grid svg {
  color: #24756e;
  grid-row: span 2;
  height: 25px;
  width: 25px;
}

.investment-stat-grid small,
.investment-chart-label span,
.investment-chart-row > small {
  color: #76898c;
  font-size: .6rem;
}

.investment-stat-grid strong {
  color: #24464b;
  font-size: 1rem;
}

.investment-visual-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
}

.investment-visual-grid > section {
  border: 1px solid #dfe7e8;
  padding: 16px;
}

.investment-visual-grid h3 {
  color: #294c51;
  font-size: .82rem;
  margin: 0 0 3px;
}

.investment-visual-grid p {
  color: #819397;
  font-size: .6rem;
  margin: 0 0 16px;
}

.investment-chart {
  display: grid;
  gap: 14px;
}

.investment-chart-row {
  align-items: center;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 155px 1fr 70px;
}

.investment-chart-label {
  display: grid;
}

.investment-chart-label strong {
  font-size: .68rem;
}

.investment-chart-label span {
  color: #315d62;
  font-size: .74rem;
  font-weight: 750;
  margin-top: 2px;
}

.investment-chart-track {
  background: #e8eeee;
  border-radius: 999px;
  height: 11px;
  overflow: hidden;
}

.investment-chart-track span {
  background: #258078;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.investment-chart-row:nth-child(2n) .investment-chart-track span {
  background: #4f7298;
}

.investment-chart-row:nth-child(3n) .investment-chart-track span {
  background: #a57938;
}

.investment-contract-composition {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.investment-contract-composition > div {
  align-items: center;
  background: #f7f9fa;
  border: 1px solid #e1e8e9;
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 9px 10px;
}

.investment-contract-composition span {
  font-size: .67rem;
}

.investment-contract-composition strong {
  color: #245f5c;
  font-size: .82rem;
}

.investment-contract-composition small {
  color: #819195;
  font-size: .56rem;
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .contract-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contract-search {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .contract-filter-grid {
    grid-template-columns: 1fr;
  }

  .contract-search {
    grid-column: auto;
  }

  .contract-filter-actions {
    justify-content: stretch;
  }

  .contract-filter-actions .btn {
    flex: 1;
  }

  .request-filter-simple,
  .investment-stat-grid,
  .investment-visual-grid {
    grid-template-columns: 1fr;
  }

  .investment-chart-row {
    grid-template-columns: 1fr;
  }
}

.app-modal {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(22, 45, 49, .22);
  overflow: hidden;
}

.app-modal .modal-header {
  align-items: flex-start;
  background: #f4f8f8;
  border-bottom: 1px solid #dce7e7;
  padding: 18px 22px;
}

.app-modal .modal-title {
  color: #173b40;
  font-size: 1.05rem;
  font-weight: 800;
}

.app-modal .modal-header p {
  color: #6d8185;
  font-size: .72rem;
  margin: 4px 0 0;
}

.app-modal .modal-body {
  font-size: .88rem;
  line-height: 1.75;
  padding: 20px 22px;
}

.app-modal .modal-footer {
  background: #fbfcfc;
  border-top-color: #e4eaea;
}

.app-modal label,
.app-modal .form-label,
.app-modal .form-check-label,
.app-modal .table,
.app-modal .btn,
.app-modal .form-control,
.app-modal .form-select,
.app-modal p,
.app-modal strong {
  font-size: .82rem;
}

.app-modal small,
.app-modal .small,
.app-modal .text-muted {
  font-size: .72rem !important;
}

.app-modal .form-control,
.app-modal .form-select {
  min-height: 42px;
}

.app-modal .table > :not(caption) > * > * {
  padding-bottom: 11px;
  padding-top: 11px;
}

.app-modal .request-summary-grid small,
.app-modal .request-summary-notes small {
  font-size: .72rem !important;
}

.app-modal .request-summary-grid strong {
  font-size: .86rem;
}

.app-modal .request-summary-notes p,
.app-modal .request-receipt-item {
  font-size: .79rem;
}

.app-modal .request-summary-lower h3 {
  font-size: .92rem;
}

.app-modal .profit-history-row {
  gap: 12px;
  grid-template-columns: 28px 1fr;
  padding-bottom: 16px;
}

.app-modal .profit-history-row:not(:last-child)::before {
  right: 13px;
  top: 15px;
}

.app-modal .profit-history-row strong {
  font-size: .82rem;
}

.app-modal .profit-history-row small,
.app-modal .profit-history-row p {
  font-size: .72rem !important;
  line-height: 1.65;
}

.app-modal .request-history-step .profit-history-dot {
  align-items: center;
  background: #6f8589;
  border: 3px solid #e7eeee;
  color: #fff;
  display: flex;
  font-size: .58rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  margin-top: 0;
  width: 28px;
}

.app-modal .request-history-submitted .profit-history-dot {
  background: #477f9c;
  border-color: #dcecf4;
}

.app-modal .request-history-underreview .profit-history-dot {
  background: #b47b16;
  border-color: #f8e9c9;
}

.app-modal .request-history-approved .profit-history-dot {
  background: #21826f;
  border-color: #d8eee9;
}

.app-modal .request-history-finalapproved .profit-history-dot {
  background: #176f69;
  border-color: #cfe9e5;
}

.app-modal .request-history-rejected .profit-history-dot,
.app-modal .request-history-cancelled .profit-history-dot {
  background: #b54d55;
  border-color: #f4dfe1;
}

.app-modal .request-history-submitted strong { color: #356d8a; }
.app-modal .request-history-underreview strong { color: #97640d; }
.app-modal .request-history-approved strong,
.app-modal .request-history-finalapproved strong { color: #176f69; }
.app-modal .request-history-rejected strong,
.app-modal .request-history-cancelled strong { color: #a23c46; }

.direct-exit-balance {
  align-items: center;
  background: #edf7f5;
  border: 1px solid #cfe5e1;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 8px 12px;
}

#directExitModal .modal-dialog {
  max-height: calc(100vh - 20px);
}

#directExitModal .modal-content,
#directExitModal .direct-exit-form {
  max-height: calc(100vh - 20px);
}

.direct-exit-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.direct-exit-form .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 18px;
}

.direct-exit-form .modal-footer {
  flex: 0 0 auto;
  padding: 9px 18px;
  position: relative;
  z-index: 2;
}

.direct-exit-balance strong {
  color: #176f69;
  font-size: 1.05rem;
}

.direct-operation-toggle {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 9px;
}

.direct-operation-toggle label {
  align-items: center;
  border: 1px solid #d9e3e4;
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 7px 10px;
}

.direct-operation-toggle label:has(input[value="Withdrawal"]:checked) {
  background: #eaf4fb;
  border-color: #9fc9df;
  color: #286b8b;
}

.direct-operation-toggle label:has(input[value="FullSettlement"]:checked) {
  background: #fff0f1;
  border-color: #e9aeb3;
  color: #a23c46;
}

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

.direct-exit-grid .direct-wide {
  grid-column: span 2;
}

.direct-amount-field {
  display: grid;
  gap: 6px 8px;
  grid-column: span 2;
  grid-template-columns: 132px minmax(0, 1fr);
  min-width: 0;
}

.field-inline-head {
  display: contents;
}

.field-inline-head .form-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.direct-amount-field > .form-control {
  grid-column: 2;
}

.mini-segment {
  background: #eef5f4;
  border: 1px solid #d2e3e0;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 2px;
  grid-column: 1;
  grid-row: 2;
  padding: 2px;
  white-space: nowrap;
}

.direct-penalty-field {
  min-width: 0;
}

.mini-segment label {
  align-items: center;
  border-radius: 6px;
  color: #52666a;
  cursor: pointer;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 750;
  gap: 4px;
  min-height: 26px;
  padding: 2px 8px;
}

.mini-segment label:has(input:checked) {
  background: #176f69;
  color: #fff;
}

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

.capital-rate-fields {
  grid-column: 1 / -1;
}

.capital-rate-fields .smart-info {
  align-items: center;
  display: flex;
  margin: 0;
}

.direct-exchange-box {
  background: #fff8e8;
  border: 1px solid #eed9a6;
  display: grid;
  gap: 8px;
  grid-template-columns: 1.2fr 1fr 1fr;
  margin-top: 7px;
  padding: 8px 10px;
}

.direct-payout-mode > div {
  display: flex;
  gap: 6px;
  margin: 5px 0 2px;
}

.direct-payout-mode label {
  background: #fff;
  border: 1px solid #ddc88f;
  cursor: pointer;
  padding: 5px 8px;
}

.direct-payout-mode label:has(input:checked) {
  background: #936d13;
  border-color: #936d13;
  color: #fff;
}

.direct-exchange-box > div {
  display: grid;
}

.direct-exchange-box small {
  color: #846d3e;
}

.direct-calculation {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 7px;
}

@media (min-width: 768px) {
  #directExitModal .modal-body {
    padding-bottom: 12px;
    padding-top: 12px;
  }

  #directExitModal .direct-exit-balance,
  #directExitModal .direct-operation-toggle {
    margin-bottom: 10px;
  }

  #directExitModal .form-control,
  #directExitModal .form-select {
    font-size: .88rem;
    min-height: 34px;
    padding-bottom: 5px;
    padding-top: 5px;
  }

  #directExitModal .form-label {
    font-size: .82rem;
    margin-bottom: 3px;
  }

  #directExitModal .direct-section-title {
    margin: 7px 0 4px;
  }
}

.direct-calculation > div {
  background: #f3f7f7;
  display: grid;
  padding: 7px 10px;
}

.direct-calculation strong {
  color: #294c51;
  margin-top: 3px;
}

.asset-input-mode {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asset-input-mode > strong {
  grid-column: 1 / -1;
}

.asset-input-mode label {
  align-items: center;
  background: #f6f9f9;
  border: 1px solid #d6e1e2;
  cursor: pointer;
  display: flex;
  gap: 7px;
  padding: 9px 11px;
}

.asset-input-mode label:has(input:checked) {
  background: #e9f5f2;
  border-color: #72aea6;
  color: #176f69;
}

.profit-period-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.profit-period-grid span {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(16, 79, 75, .12);
  border-radius: 8px;
  display: grid;
  padding: 8px;
}

.profit-period-grid small {
  color: #708387;
  font-size: .7rem;
}

.report-ranking-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-filter-bar {
  align-items: center;
  background: #f6faf9;
  border: 1px solid #dbe8e6;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.ranking-filter-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d9e5e4;
  border-radius: 8px;
  color: #36575c;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
}

.ranking-filter-btn:hover,
.ranking-filter-btn.is-active {
  background: #176f69;
  border-color: #176f69;
  color: #fff;
}

.ranking-filter-btn svg {
  height: 18px;
  width: 18px;
}

.ranking-filter-bar [data-ranking-filter=""] {
    display: none;
}

.settings-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.settings-two-column > .panel {
    padding: 1.15rem;
}

.settings-two-column .panel-header {
    margin-bottom: 1rem;
}

.settings-two-column .settings-asset-form {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #f8fafc;
    padding: 1rem;
}

@media (min-width: 1200px) {
    .settings-two-column {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.settings-asset-form .wide-field,
.form-grid .wide-field {
    grid-column: 1 / -1;
}

.capital-payment-modal .modal-body {
    display: grid;
    gap: 1rem;
}

.capital-payment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.capital-payment-summary div {
    border: 1px solid rgba(15, 23, 42, .08);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 12px;
    padding: .9rem 1rem;
}

.capital-payment-summary small {
    display: block;
    color: #64748b;
    margin-bottom: .35rem;
}

.capital-payment-summary strong {
    font-size: 1rem;
    color: #0f172a;
}

.capital-payment-tabs {
    display: flex;
    gap: .55rem;
    padding: .55rem;
    border: 1px solid #bfd7d4;
    border-radius: 14px;
    background: linear-gradient(135deg, #e6f0ef, #f7faf9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.capital-payment-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #496368;
    font-weight: 800;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.capital-payment-tabs .nav-link[data-capital-tab="receipt"] {
    background: #f6fbfa;
    color: #246b65;
}

.capital-payment-tabs .nav-link[data-capital-tab="online"] {
    background: #f4f8fb;
    color: #385f75;
}

.capital-payment-tabs .nav-link.active {
    background: #fff;
    box-shadow: 0 9px 20px rgba(31, 70, 73, .12);
}

.capital-payment-tabs .nav-link[data-capital-tab="receipt"].active {
    border-color: #5da79d;
    color: #155c55;
    box-shadow: 0 9px 20px rgba(38,128,120,.17);
}

.capital-payment-tabs .nav-link[data-capital-tab="online"].active {
    border-color: #6f9bb4;
    color: #244f66;
    box-shadow: 0 9px 20px rgba(55,95,117,.15);
}

.capital-payment-tab-content {
    display: block;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.capital-payment-pane {
    display: none;
}

.capital-payment-pane.is-active {
    display: block;
}

.capital-receipt-grid {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr);
    gap: 1rem;
    padding: 1rem;
}

.receipt-bank-card,
.receipt-form-card,
.gateway-card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}

.bank-copy-list {
    display: grid;
    gap: .55rem;
    margin-top: .75rem;
}

.bank-copy-list button {
    border: 1px solid rgba(15, 23, 42, .08);
    background: #f8fafc;
    border-radius: 10px;
    padding: .65rem .75rem;
    display: grid;
    grid-template-columns: auto 88px minmax(0, 1fr);
    align-items: center;
    gap: .5rem;
    text-align: right;
    color: #334155;
}

.bank-copy-list button strong {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.bank-copy-list button.is-copied {
    border-color: rgba(34, 197, 94, .45);
    background: #ecfdf5;
}

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

.receipt-form-card {
    display: grid;
    gap: .9rem;
}

.receipt-form-card .btn {
    justify-self: end;
}

.online-gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .85rem;
    padding: 1rem;
}

.gateway-card {
    display: grid;
    gap: .75rem;
}

.gateway-card strong {
    display: block;
    font-size: 1.05rem;
}

.gateway-card small,
.gateway-card p {
    color: #64748b;
}

.sms-recipient-settings {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: #f8fafc;
    padding: 1rem;
    display: grid;
    gap: .85rem;
}

.sms-recipient-settings h4 {
    margin: 0 0 .25rem;
    font-size: 1rem;
    font-weight: 900;
}

.sms-recipient-settings p {
    margin: 0;
    color: #64748b;
}

.sms-admin-recipient-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .65rem;
}

.sms-admin-recipient {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    border-radius: 12px;
    padding: .75rem;
}

.sms-admin-recipient span {
    display: grid;
    gap: .2rem;
}

.sms-admin-recipient small {
    color: #64748b;
}

@media (max-width: 768px) {
    .capital-payment-summary,
    .capital-receipt-grid,
    .form-grid.compact {
        grid-template-columns: 1fr;
    }

    .capital-payment-tabs .nav-link {
        flex: 1 1 0;
        padding-inline: .45rem;
        width: 100%;
    }
}

.ranking-row {
  align-items: center;
  border-bottom: 1px solid #e7eff0;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 1fr auto;
  padding: 10px 0;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-badge {
  align-items: center;
  background: #e9f5f2;
  border: 1px solid #c8dfdc;
  border-radius: 50%;
  color: #176f69;
  display: inline-flex;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.ranking-row strong {
  color: #233235;
  display: block;
}

.ranking-row small {
  color: #708387;
}

.ranking-row > span:last-child {
  color: #104f4b;
  font-weight: 850;
  text-align: left;
}

.conversion-confirmation {
  background: #f0f8f6;
  border: 1px solid #a9d2cb;
  display: grid;
  gap: 5px;
  margin: 9px 0;
  padding: 11px;
}

.conversion-confirmation > strong { color: #176f69; }
.conversion-confirmation > small { color: #52696c; }

@media (max-width: 700px) {
  .direct-operation-toggle,
  .direct-exit-grid,
  .direct-exchange-box,
  .direct-calculation,
  .capital-increase-grid,
  .capital-rate-fields,
  .report-ranking-grid {
    grid-template-columns: 1fr;
  }

  .direct-exit-grid .direct-wide {
    grid-column: auto;
  }

  .field-inline-head {
    display: contents;
  }

  .direct-amount-field {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .direct-amount-field > .form-control,
  .mini-segment {
    grid-column: 1;
    grid-row: auto;
  }

  .person-balance-row {
    grid-template-columns: 1fr;
  }
}

.investor-picker-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  min-height: 470px;
}

.picker-filters,
.contract-filter-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) 190px;
}

.contract-filter-bar {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  padding: 14px 20px;
}

.input-icon {
  position: relative;
}

.input-icon > svg {
  color: #779094;
  height: 17px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
}

.input-icon .form-control {
  padding-right: 38px;
}

.picker-persons {
  border: 1px solid #e0e8e9;
  border-radius: 7px;
  margin-top: 12px;
  max-height: 385px;
  overflow-y: auto;
}

.picker-person {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e8eeee;
  color: #29474c;
  display: grid;
  gap: 11px;
  grid-template-columns: 38px 1fr 18px;
  padding: 11px 13px;
  text-align: right;
  width: 100%;
}

.picker-person:hover,
.picker-person.is-selected {
  background: #edf7f5;
}

.picker-person:last-child {
  border-bottom: 0;
}

.picker-person span:nth-child(2) {
  display: grid;
}

.picker-person small {
  color: #7b8e92;
  font-size: .65rem;
}

.picker-avatar {
  align-items: center;
  background: #dcefeb;
  border-radius: 50%;
  color: #17675f;
  display: flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.investor-picker-summary {
  background: #f7faf9;
  border: 1px solid #dfe9e7;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.picker-empty {
  align-items: center;
  color: #71868a;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.picker-empty svg {
  color: #91aaa7;
  height: 46px;
  margin-bottom: 12px;
  width: 46px;
}

.picker-empty span,
.picker-no-balance {
  font-size: .7rem;
  margin-top: 4px;
}

.picker-summary-head small,
.picker-balance small {
  color: #7b8f92;
  font-size: .64rem;
}

.picker-summary-head h3 {
  font-size: 1rem;
  margin: 3px 0 14px;
}

.picker-balances {
  display: grid;
  gap: 8px;
  margin-bottom: auto;
}

.picker-balance {
  position:relative;
  overflow:hidden;
  background: linear-gradient(135deg,#ffffff,#eef8f5);
  border: 1px solid #cfe3dd;
  border-right: 4px solid #218b72;
  border-radius: 6px;
  display: grid;
  gap:4px;
  padding: 14px;
  box-shadow:0 7px 18px rgba(26,83,71,.07);
}

.picker-balance span {
  color: #60777b;
  font-size: .67rem;
}

.picker-balance strong {
  color: #125447;
  font-size: 1.05rem;
}
.payment-flow-summary { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .65rem; margin-top:1rem; padding:1rem; border:1px solid #cfe1dc; border-radius:7px; background:#f1f8f6; }
.payment-flow-summary strong { color:#155c4d; font-size:1rem; }
.payment-flow-summary span { color:#60766f; font-size:.75rem; }
.payment-flow-summary i { color:#9aa9a5; font-style:normal; }

.picker-loading,
.picker-error {
  color: #657c80;
  padding: 30px 10px;
  text-align: center;
}

.picker-error {
  color: #a23831;
}

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

.asset-inline .asset-icon {
  height: 28px;
  width: 28px;
}

.status-active {
  background: #e8f6ee;
  border-color: #c6e7d4;
  color: #23734b;
}

.status-settled,
.status-closed {
  background: #eef1f3;
  border-color: #d8dfe1;
  color: #596b70;
}

.ledger-positive {
  color: #23734b !important;
  font-weight: 800;
}

.ledger-negative {
  color: #a23831 !important;
  font-weight: 800;
}

.lazy-load-status {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  color: #64748b;
  font-size: .9rem;
  text-align: center;
}

@media (max-width: 800px) {
  .investor-picker-layout {
    grid-template-columns: 1fr;
  }

  .picker-filters,
  .contract-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .user-contract-card-wrap,
  .user-request-card-wrap,
  .user-ledger-card-wrap {
    overflow: visible;
  }

  .user-contract-card-table,
  .user-contract-card-table thead,
  .user-contract-card-table tbody,
  .user-contract-card-table tr,
  .user-contract-card-table td,
  .user-request-card-table,
  .user-request-card-table thead,
  .user-request-card-table tbody,
  .user-request-card-table tr,
  .user-request-card-table td,
  .user-ledger-card-table,
  .user-ledger-card-table thead,
  .user-ledger-card-table tbody,
  .user-ledger-card-table tr,
  .user-ledger-card-table td {
    display: block;
  }

  .user-contract-card-table thead,
  .user-request-card-table thead,
  .user-ledger-card-table thead {
    display: none;
  }

  .user-contract-card-table tbody,
  .user-request-card-table tbody,
  .user-ledger-card-table tbody {
    display: grid;
    gap: 12px;
  }

  .user-contract-card-table tr,
  .user-request-card-table tr,
  .user-ledger-card-table tr {
    background: linear-gradient(135deg, #ffffff 0%, #f6fbfa 100%);
    border: 1px solid #d6e5e4;
    border-right: 4px solid #17806f;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(28, 73, 78, .08);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .user-request-card-table tr {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafb 100%);
    border-color: #dfe7ea;
    border-right-color: #78909c;
  }

  .user-request-card-table tr.user-request-status-submitted {
    background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
    border-color: #cfe4f5;
    border-right-color: #3a83b6;
  }

  .user-request-card-table tr.user-request-status-underreview {
    background: linear-gradient(135deg, #ffffff 0%, #fff7e8 100%);
    border-color: #ead8ad;
    border-right-color: #c18421;
  }

  .user-request-card-table tr.user-request-status-approved {
    background: linear-gradient(135deg, #ffffff 0%, #effbf7 100%);
    border-color: #cce9dd;
    border-right-color: #26996f;
  }

  .user-request-card-table tr.user-request-status-finalapproved {
    background: linear-gradient(135deg, #ffffff 0%, #edf8f5 100%);
    border-color: #bfe3d8;
    border-right-color: #147c68;
  }

  .user-request-card-table tr.user-request-status-rejected,
  .user-request-card-table tr.user-request-status-cancelled {
    background: linear-gradient(135deg, #ffffff 0%, #fff0ef 100%);
    border-color: #efc9c5;
    border-right-color: #bc4a42;
  }

  .user-ledger-card-table tr {
    background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
    border-color: #dbe1f3;
    border-right-color: #4d6fb3;
  }

  .user-contract-card-table tr:nth-child(even),
  .user-request-card-table tr:nth-child(even),
  .user-ledger-card-table tr:nth-child(even) {
    filter: saturate(1.03);
  }

  .user-contract-card-table > tbody > tr:nth-child(even) > *,
  .user-contract-card-table > tbody > tr:nth-child(odd) > *,
  .user-request-card-table > tbody > tr:nth-child(even) > *,
  .user-request-card-table > tbody > tr:nth-child(odd) > *,
  .user-ledger-card-table > tbody > tr:nth-child(even) > *,
  .user-ledger-card-table > tbody > tr:nth-child(odd) > * {
    background: transparent;
  }

  .user-contract-card-table td,
  .user-request-card-table td,
  .user-ledger-card-table td {
    border-bottom: 1px solid rgba(207, 221, 222, .75);
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
  }

  .user-contract-card-table td::before,
  .user-request-card-table td::before,
  .user-ledger-card-table td::before {
    color: #71878b;
    font-size: .66rem;
    font-weight: 800;
  }

  .user-contract-card-table td:first-child,
  .user-contract-card-table td:nth-child(6),
  .user-request-card-table td:nth-child(2),
  .user-request-card-table td:nth-child(6),
  .user-ledger-card-table td:first-child,
  .user-ledger-card-table td:nth-child(5) {
    align-items: center;
    background: rgba(239, 248, 246, .85) !important;
    display: flex;
    justify-content: space-between;
  }

  .user-request-card-table td:nth-child(2),
  .user-request-card-table td:nth-child(6) {
    background: rgba(248, 251, 252, .94) !important;
  }

  .user-request-status-submitted td:nth-child(2),
  .user-request-status-submitted td:nth-child(6) {
    background: rgba(237, 247, 255, .96) !important;
  }

  .user-request-status-underreview td:nth-child(2),
  .user-request-status-underreview td:nth-child(6) {
    background: rgba(255, 247, 230, .96) !important;
  }

  .user-request-status-approved td:nth-child(2),
  .user-request-status-approved td:nth-child(6),
  .user-request-status-finalapproved td:nth-child(2),
  .user-request-status-finalapproved td:nth-child(6) {
    background: rgba(236, 248, 244, .96) !important;
  }

  .user-request-status-rejected td:nth-child(2),
  .user-request-status-rejected td:nth-child(6),
  .user-request-status-cancelled td:nth-child(2),
  .user-request-status-cancelled td:nth-child(6) {
    background: rgba(255, 239, 238, .96) !important;
  }

  .user-ledger-card-table td:first-child,
  .user-ledger-card-table td:nth-child(5) {
    background: rgba(241, 244, 255, .95) !important;
  }

  .user-contract-card-table td:first-child,
  .user-ledger-card-table td:first-child {
    grid-column: 1;
  }

  .user-contract-card-table td:nth-child(6),
  .user-ledger-card-table td:nth-child(5) {
    grid-column: 2;
    text-align: left;
  }

  .user-contract-card-table td:first-child::before,
  .user-contract-card-table td:nth-child(6)::before,
  .user-request-card-table td:nth-child(2)::before,
  .user-request-card-table td:nth-child(6)::before,
  .user-ledger-card-table td:first-child::before,
  .user-ledger-card-table td:nth-child(5)::before {
    display: none;
  }

  .user-request-card-table td:nth-child(1) { order: 3; }
  .user-request-card-table td:nth-child(2) {
    grid-column: 1;
    order: 1;
  }
  .user-request-card-table td:nth-child(3) { order: 4; }
  .user-request-card-table td:nth-child(4) { order: 5; }
  .user-request-card-table td:nth-child(5) { order: 6; }
  .user-request-card-table td:nth-child(6) {
    grid-column: 2;
    order: 2;
    text-align: left;
  }
  .user-request-card-table td:nth-child(7) {
    border-bottom: 0;
    grid-column: 1 / -1;
    order: 7;
  }

  .user-contract-card-table td:nth-child(2)::before { content: "دارایی"; }
  .user-contract-card-table td:nth-child(3)::before { content: "بازه قرارداد"; }
  .user-contract-card-table td:nth-child(4)::before { content: "مانده"; }
  .user-contract-card-table td:nth-child(5)::before { content: "سود ماهانه"; }
  .user-contract-card-table td:nth-child(7)::before { content: "عملیات"; }

  .user-request-card-table td:nth-child(1)::before { content: "شماره"; }
  .user-request-card-table td:nth-child(3)::before { content: "قرارداد"; }
  .user-request-card-table td:nth-child(4)::before { content: "مبلغ"; }
  .user-request-card-table td:nth-child(5)::before { content: "تاریخ ثبت"; }

  .user-ledger-card-table td:nth-child(2)::before { content: "قرارداد"; }
  .user-ledger-card-table td:nth-child(3)::before { content: "نوع"; }
  .user-ledger-card-table td:nth-child(4)::before { content: "دارایی"; }
  .user-ledger-card-table td:nth-child(6)::before { content: "مانده بعد از عملیات"; }
  .user-ledger-card-table td:nth-child(7)::before { content: "تاریخ اثر"; }
  .user-ledger-card-table td:nth-child(8)::before { content: "توضیح"; }

  .user-contract-ledger-card-table td:nth-child(2)::before { display: none; }
  .user-contract-ledger-card-table td:nth-child(3)::before { content: "دارایی"; }
  .user-contract-ledger-card-table td:nth-child(4)::before { content: "مبلغ"; }
  .user-contract-ledger-card-table td:nth-child(5)::before { content: "مانده بعد از عملیات"; }
  .user-contract-ledger-card-table td:nth-child(6)::before { content: "شرح"; }

  .user-contract-ledger-card-table td:nth-child(2) {
    align-items: center;
    background: rgba(241, 244, 255, .95) !important;
    display: flex;
    grid-column: 2;
    justify-content: flex-end;
    text-align: left;
  }

  .user-contract-ledger-card-table td:nth-child(5) {
    background: transparent !important;
    display: grid;
    grid-column: auto;
    text-align: right;
  }

  .user-contract-ledger-card-table td:nth-child(5)::before {
    display: block;
  }

  .user-contract-card-table td:nth-child(7),
  .user-ledger-card-table td:nth-child(8),
  .user-contract-ledger-card-table td:nth-child(6) {
    border-bottom: 0;
    grid-column: 1 / -1;
  }

  .user-contract-card-table td:nth-child(7) .btn,
  .user-request-card-table td:nth-child(7) .btn {
    justify-content: center;
    width: 100%;
  }

  .user-request-card-table .request-mini-flow {
    min-width: 0;
    overflow-x: auto;
  }

  .user-request-card-table .payment-transparency {
    grid-template-columns: 1fr;
  }

  .user-request-card-table .payment-transparency-desktop {
    display: none;
  }

  .user-request-card-table .payment-transparency-mobile {
    display: grid;
    gap: 7px;
    padding: 7px;
  }

  .user-request-card-table .payment-transparency-mobile summary {
    align-items: center;
    color: #315f60;
    cursor: pointer;
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
  }

  .user-request-card-table .payment-transparency-mobile summary::-webkit-details-marker {
    display: none;
  }

  .user-request-card-table .payment-transparency-mobile summary::after {
    color: #7d9293;
    content: "نمایش";
    font-size: .64rem;
    font-weight: 700;
  }

  .user-request-card-table .payment-transparency-mobile[open] summary::after {
    content: "بستن";
  }
}

.audit-command {
  align-items: center;
  background: linear-gradient(115deg, #173f43 0%, #245d5b 58%, #315f67 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  min-height: 138px;
  padding: 24px 28px;
}

.audit-command h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 6px 0;
}

.audit-command p {
  color: #d9e8e7;
  font-size: .73rem;
  margin: 0;
}

.audit-health {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  display: flex;
  gap: 11px;
  padding: 12px 14px;
}

.audit-health > span {
  align-items: center;
  background: #d8f3e7;
  border-radius: 6px;
  color: #1f7456;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.audit-health div {
  display: grid;
}

.audit-health strong {
  font-size: .75rem;
}

.audit-health small {
  color: #cde0df;
  font-size: .6rem;
}

.audit-tabs {
  border-bottom: 1px solid #dce5e6;
  display: flex;
  gap: 4px;
  margin-bottom: 0;
}

.audit-tabs a {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #63797d;
  display: flex;
  font-size: .76rem;
  font-weight: 700;
  gap: 7px;
  padding: 12px 16px;
  text-decoration: none;
}

.audit-tabs a.active {
  border-bottom-color: #198078;
  color: #176a64;
}

.audit-tabs a span {
  background: #e8efef;
  border-radius: 999px;
  font-size: .6rem;
  padding: 2px 7px;
}

.audit-panel {
  border-top: 0;
}

.audit-filters {
  align-items: end;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  padding: 16px 18px;
}

.audit-search {
  grid-column: span 2;
}

.audit-filter-actions {
  display: flex;
  gap: 7px;
  grid-column: span 2;
}

.audit-summary-grid {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 15px 18px;
}

.audit-summary-grid > div {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e7e8;
  border-radius: 7px;
  display: grid;
  gap: 1px 10px;
  grid-template-columns: 38px 1fr;
  padding: 10px 12px;
}

.audit-summary-grid .summary-icon {
  grid-row: span 2;
}

.audit-summary-grid small {
  color: #76898d;
  font-size: .62rem;
}

.audit-summary-grid strong {
  color: #223f44;
  font-size: 1rem;
}

.audit-action {
  background: #edf3f4;
  border: 1px solid #d9e4e5;
  border-radius: 5px;
  color: #3c6065;
  display: inline-flex;
  font-size: .66rem;
  font-weight: 700;
  padding: 4px 8px;
}

.action-approve,
.action-create,
.action-activate {
  background: #e9f6ee;
  border-color: #cde8d7;
  color: #28724d;
}

.action-reject,
.action-deactivate,
.action-lock {
  background: #faecea;
  border-color: #eccdca;
  color: #9b3f37;
}

.action-pay {
  background: #eef3fa;
  border-color: #d3deed;
  color: #45658c;
}

.audit-details summary {
  color: #38646a;
  cursor: pointer;
  font-size: .68rem;
  white-space: nowrap;
}

.audit-details dl,
.audit-agent {
  background: #f6f9f9;
  border: 1px solid #e0e7e8;
  border-radius: 6px;
  display: grid;
  font-size: .64rem;
  gap: 5px;
  margin: 7px 0 0;
  min-width: 280px;
  padding: 9px;
  position: relative;
  white-space: normal;
  z-index: 2;
}

.audit-details dt {
  color: #74888b;
}

.audit-details dd {
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}

.audit-details code {
  color: #315e63;
  direction: ltr;
  display: block;
  text-align: left;
}

@media (max-width: 1100px) {
  .audit-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audit-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .audit-command {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .audit-health {
    width: 100%;
  }

  .audit-tabs a {
    flex: 1;
    justify-content: center;
    padding-inline: 8px;
  }

  .audit-filters,
  .audit-summary-grid {
    grid-template-columns: 1fr;
  }

  .audit-search,
  .audit-filter-actions {
    grid-column: auto;
  }

  .audit-filter-actions .btn {
    flex: 1;
  }
}

/* Jalali date picker */
.jalali-date {
  cursor: pointer;
  direction: rtl;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

jdp-container {
  border: 1px solid #d3dfe1;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(19, 48, 54, .18);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  padding: 10px 8px;
}

jdp-container .jdp-month,
jdp-container .jdp-month select,
jdp-container .jdp-year,
jdp-container .jdp-year select {
  color: #244247;
  font-weight: 700;
}

jdp-container .jdp-icon-minus,
jdp-container .jdp-icon-plus {
  border-color: #d9e3e5;
  color: #315a5f;
}

jdp-container .jdp-day-name {
  background: #edf4f3;
  color: #587074;
}

jdp-container .jdp-day.today {
  border-color: #b99042;
  color: #8b641b;
}

jdp-container .jdp-day.selected {
  background-color: var(--accent) !important;
}

jdp-container .jdp-day:not(.disabled-day):hover {
  background: #e1f1ee;
}

jdp-container .jdp-btn-close,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-today {
  background: var(--accent);
  font-family: inherit;
}

/* Payment operations and reporting */
.payment-command {
  align-items: center;
  background: #263b5a;
  border: 1px solid #354d70;
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 23px 25px;
}

.payment-command h2 {
  font-size: 1.35rem;
  margin: 7px 0 4px;
}

.payment-command p {
  color: #b5c2d5;
  font-size: .74rem;
  margin: 0;
}

.payment-open-count {
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  display: grid;
  min-width: 130px;
  padding: 11px 18px;
  text-align: center;
}

.payment-command-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.payment-command-actions .btn,
.payment-report-command > .btn {
  min-height: 48px;
}

.payment-open-count strong {
  font-size: 1.35rem;
}

.payment-open-count small {
  color: #b9c6d7;
  font-size: .64rem;
}

.payment-rate-strip {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.payment-rate-card {
  align-items: center;
  background: linear-gradient(135deg, #fff8e3, #ffffff 62%);
  border: 1px solid #eadba7;
  border-radius: 8px;
  display: grid;
  gap: 5px 14px;
  grid-template-columns: minmax(150px, auto) minmax(220px, 320px) minmax(220px, 1fr);
  padding: 12px 14px;
}

.payment-rate-card span {
  align-items: center;
  color: #7a5a12;
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
}

.payment-rate-card span svg {
  height: 18px;
  width: 18px;
}

.payment-rate-card label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.payment-rate-card label small {
  text-align: right;
}

.payment-rate-card .form-control {
  background: #fff;
  border-color: #dcc16d;
  direction: ltr;
  font-size: 1rem;
  font-weight: 800;
  min-height: 42px;
  text-align: left;
}

.payment-rate-card small {
  color: #6c7280;
  font-size: .72rem;
  text-align: left;
}

.payment-rate-card.is-muted {
  background: #f8fafc;
  border-color: var(--line);
}

.payment-rate-card.is-muted span {
  color: #64748b;
}

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

.payment-summary-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 3px 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 14px 16px;
}

.payment-summary-card > svg {
  background: #edf2f7;
  border-radius: 7px;
  color: #536c8f;
  height: 38px;
  padding: 9px;
  width: 38px;
}

.payment-summary-card span {
  color: var(--muted);
  font-size: .72rem;
}

.payment-summary-card strong {
  color: #273e44;
  font-size: 1.2rem;
}

.summary-paid > svg {
  background: #e7f5ed;
  color: #26734d;
}

.summary-failed > svg {
  background: #faeceb;
  color: #a43c35;
}

.summary-open > svg {
  background: #fff3dc;
  color: #9d6811;
}

.payment-row-actions,
.payment-fail-form {
  align-items: center;
  display: flex;
  gap: 6px;
}

.payment-mobile-type {
  display: none;
}

.payment-fail-form .form-control {
  min-width: 145px;
  width: 145px;
}

.payment-filter-grid {
  background: #f7f9fa;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  padding: 18px 20px;
}

.payment-filter-grid .form-label {
  font-size: .7rem;
}

.payment-range-presets {
  align-items: center;
  display: flex;
  gap: 7px;
  grid-column: 1 / -1;
}

.payment-range-presets span {
  color: #73868b;
  font-size: .68rem;
}

.payment-range-presets a {
  background: #fff;
  border: 1px solid #d7e0e2;
  border-radius: 999px;
  color: #50676c;
  font-size: .66rem;
  padding: 5px 10px;
  text-decoration: none;
}

.payment-range-presets a:hover {
  border-color: #9fbdb9;
  color: var(--accent);
}

.payment-search-field {
  grid-column: span 2;
}

.payment-filter-actions {
  align-items: end;
  display: flex;
  gap: 7px;
  grid-column: span 3;
}

.payment-asset-totals {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding: 14px 20px;
}

.payment-asset-total {
  align-items: center;
  background: #f8fafb;
  border: 1px solid #e3e9eb;
  border-radius: 7px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.payment-asset-total > span {
  display: grid;
}

.payment-asset-total small {
  color: #7d9094;
  font-size: .62rem;
}

.payment-asset-total strong {
  color: #2a454a;
  font-size: .78rem;
}

.payment-status {
  border: 1px solid;
  border-radius: 999px;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 9px;
  white-space: nowrap;
}

.status-paid {
  background: #e8f6ee;
  border-color: #c6e7d4;
  color: #23734b;
}

.status-failed {
  background: #fbecea;
  border-color: #edcbc7;
  color: #a23831;
}

.status-pendingpayment {
  background: #fff5df;
  border-color: #edd9a9;
  color: #98640e;
}

.status-processing {
  background: #eaf0f8;
  border-color: #cfdaea;
  color: #42658b;
}

@media (max-width: 1100px) {
  .payment-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-search-field,
  .payment-filter-actions {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .payment-command {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .payment-command-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .payment-open-count {
    width: 100%;
  }

  .payment-summary-grid,
  .payment-filter-grid {
    grid-template-columns: 1fr;
  }

  .payment-search-field,
  .payment-filter-actions {
    grid-column: auto;
  }

  .payment-filter-actions,
  .payment-row-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-filter-actions .btn,
  .payment-row-actions > *,
  .payment-fail-form,
  .payment-fail-form .form-control {
    width: 100%;
  }

  .payment-mobile-table-wrap {
    overflow: visible;
  }

  .payment-mobile-table,
  .payment-mobile-table thead,
  .payment-mobile-table tbody,
  .payment-mobile-table tr,
  .payment-mobile-table td {
    display: block;
  }

  .payment-mobile-table thead {
    display: none;
  }

  .payment-mobile-table tbody {
    display: grid;
    gap: 10px;
  }

  .payment-mobile-table tr {
    background: #fff;
    border: 1px solid #dce8e7;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(31,70,73,.07);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .payment-mobile-table > tbody > tr:nth-child(even) > *,
  .payment-mobile-table > tbody > tr:nth-child(odd) > * {
    background: transparent;
  }

  .payment-mobile-table td {
    align-items: center;
    border-bottom: 1px solid #edf2f2;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
    padding: 9px 10px;
  }

  .payment-mobile-table td::before {
    color: #6f8589;
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: .64rem;
    font-weight: 800;
  }

  .payment-mobile-table td:first-child,
  .payment-mobile-table td:last-child {
    grid-column: 1 / -1;
  }

  .payment-mobile-table td:first-child {
    align-items: center;
    background: #f4faf8 !important;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .payment-mobile-table td:first-child::before {
    display: none;
  }

  .payment-mobile-table td:first-child strong {
    color: #24494e;
    font-size: .82rem;
  }

  .payment-mobile-table td:first-child .payment-desktop-reference {
    display: none;
  }

  .payment-mobile-table td:first-child .payment-mobile-type {
    color: #24494e;
    display: block;
    font-size: .82rem;
    font-weight: 800;
    text-align: left;
  }

  .payment-mobile-table td:nth-child(2) {
    display: none;
  }

  .payment-mobile-table td:last-child {
    border-bottom: 0;
    display: block;
  }

  .payment-mobile-table td:last-child::before {
    display: none;
  }

  .payment-mobile-table .asset-inline {
    background: transparent;
    border: 0;
    gap: 0;
    justify-content: flex-start;
    padding: 0;
  }

  .payment-mobile-table .asset-inline .asset-icon,
  .payment-mobile-table .asset-inline svg {
    display: none !important;
  }

  .payment-mobile-table td[data-label="مبلغ"],
  .payment-mobile-table td[data-label="معادل تومان"],
  .payment-mobile-table td[data-label="سررسید"],
  .payment-mobile-table td[data-label="وضعیت"] {
    align-content: start;
    align-items: flex-start;
    display: grid;
    gap: 4px;
    justify-content: stretch;
  }

  .payment-mobile-table .payment-row-actions {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-mobile-table .payment-row-actions .btn {
    justify-content: center;
    width: 100%;
  }
}
.user-notice-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    color: #17324d;
    background: #eaf6ff;
    border-bottom: 1px solid #c9e7fb;
}

.user-notice-bar svg { color: #0878b9; }
.user-notice-bar span { color: #526779; }

.withdrawal-smart-warning {
    display: grid;
    gap: .35rem;
    margin: -.25rem 0 1rem;
    padding: 1rem;
    border: 1px solid #f1c66f;
    border-right: 4px solid #dc8f00;
    border-radius: 6px;
    background: #fff9e8;
    color: #5b430f;
}

.withdrawal-smart-warning strong { font-size: 1rem; }
.withdrawal-smart-warning span,
.withdrawal-smart-warning small { display: block; }
.smart-info { display:flex; gap:.6rem; align-items:flex-start; color:#37556d; background:#edf6f8; padding:.8rem; border-radius:6px; }
.smart-info svg { flex:0 0 auto; width:20px; }

@media (min-width: 1200px) {
    .request-form-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.profit-payment-request-flag {
    display: inline-flex; align-items: center; gap: .35rem; margin-top: .45rem;
    padding: .28rem .5rem; border-radius: 5px; color: #765100;
    background: #fff3c4; border: 1px solid #edcf65; font-size: .78rem; font-weight: 700;
}
.profit-payment-request-flag svg { width: 15px; height: 15px; }
.global-notification {
    position: relative; display:flex; align-items:center; gap:.5rem; color:inherit;
    padding:.55rem .7rem; border:1px solid var(--line-color,#dce5e8); border-radius:6px;
    text-decoration:none; background:#fff;
}
.global-notification svg { width:19px; }
.global-notification > span {
    position:absolute; top:-7px; right:-7px; min-width:20px; height:20px; padding:0 5px;
    display:grid; place-items:center; border-radius:10px; background:#c73737; color:#fff; font-size:.72rem;
}
.global-notification > div { max-width:260px; font-size:.78rem; color:#49616d; }
@media(max-width:900px){.global-notification > div{display:none}}
.notification-menu { min-width:290px; padding:.5rem; }
.notification-menu .dropdown-item { display:grid; grid-template-columns:22px 1fr auto; gap:.6rem; align-items:center; padding:.7rem; border-radius:5px; }
.notification-menu .dropdown-item svg { width:18px; }
.notification-menu .dropdown-item strong { min-width:24px; text-align:center; color:#fff; background:#197a68; border-radius:10px; padding:1px 6px; }
.iban-input { display:flex; direction:ltr; align-items:stretch; }
.iban-input > span { display:grid; place-items:center; padding:0 .8rem; font-weight:800; color:#174d59; background:#e9f3f4; border:1px solid #cbdcdf; border-right:0; border-radius:6px 0 0 6px; }
.iban-input .form-control { direction:ltr; border-radius:0 6px 6px 0; letter-spacing:1px; }
.form-hint { margin-top:.3rem; color:#6d7f86; font-size:.75rem; }
.investor-row-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:.4rem; min-width:max-content; }

.profit-ledger-note {
    margin-top: .45rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(14, 165, 233, .22);
    border-radius: 8px;
    background: rgba(14, 165, 233, .07);
    color: #0f172a;
}
.profit-ledger-note strong,
.profit-ledger-note small { display: block; }
.profit-ledger-note small {
    margin-top: .15rem;
    color: #64748b;
}
.profit-ledger-note ul {
    margin: .45rem 0 0;
    padding-right: 1rem;
}
.profit-ledger-note li {
    margin-bottom: .25rem;
    font-size: .9rem;
    line-height: 1.7;
}

.profit-toggle-btn {
    margin-top: .35rem;
    white-space: nowrap;
}

@media (max-width: 1200px) {
  .payment-detail-dialog .payment-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .payment-detail-dialog .payment-detail-grid {
    grid-template-columns: 1fr;
  }
}
.direct-paid-box { padding:.8rem 1rem; border:1px solid #b8daca; border-radius:6px; background:#eff9f3; }
.direct-paid-box label { display:flex; gap:.55rem; align-items:center; font-weight:750; color:#176044; }
.direct-paid-box small { display:block; margin-top:.35rem; color:#59736a; }
.request-list-command {
    display:flex; justify-content:space-between; align-items:center; gap:1rem;
    padding:1.1rem 1.25rem; background:#fff; border:1px solid #dce6e8; border-radius:7px;
}
.request-list-command h2 { margin:0 0 .25rem; font-size:1.1rem; }
.request-list-command p { margin:0; color:#687d84; }
.request-create-content .panel-header { padding-top:0; }
.request-create-content .request-form-grid > .request-box { border-top:4px solid #258577; }
.request-create-content .request-form-grid > .request-box:nth-child(2) { border-top-color:#d49b20; }
.request-create-content .request-form-grid > .request-box:nth-child(3) { border-top-color:#c94f58; }
.request-create-content .request-form-grid > .request-box:nth-child(4) { border-top-color:#3578b8; }
.request-builder-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:1rem; align-items:start; }
.request-type-picker { display:grid; grid-template-columns:1fr; gap:.6rem; position:sticky; top:0; }
.request-type-picker button {
    display:grid; grid-template-columns:30px 1fr; gap:.2rem .65rem; text-align:right;
    padding:1rem; border:1px solid #d6e2e4; border-radius:7px; background:#fff; color:#24454d;
}
.request-type-picker button svg { grid-row:1/3; width:25px; color:#318070; }
.request-type-picker button span { font-size:.72rem; color:#71858a; }
.request-type-picker button.is-active { border-color:#23836f; background:#ecf8f4; box-shadow:0 0 0 2px rgba(35,131,111,.12); }
.request-form-single { grid-template-columns:minmax(0,760px); justify-content:center; }
.request-form-single .request-box { width:100%; }
@media(max-width:800px){.request-builder-layout{grid-template-columns:1fr}.request-type-picker{grid-template-columns:1fr 1fr;position:static}}
.direct-section-title { display:flex; align-items:center; gap:.5rem; margin:1rem 0 .65rem; padding-bottom:.45rem; border-bottom:1px solid #dce6e7; color:#245a61; font-weight:800; }
.direct-section-title svg { width:19px; }
.payment-transparency { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem; margin-top:.5rem; padding:.55rem; border:1px solid #d5e4e0; border-radius:6px; background:#f5faf8; }
.payment-transparency span { display:grid; }
.payment-transparency small { color:#72847f; font-size:.65rem; }
.payment-transparency strong { color:#195d4e; font-size:.78rem; }
.payment-transparency-mobile { display: none; }

.request-full-flow {
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    overflow-x: auto;
    padding-bottom: .5rem;
}
.request-full-flow .flow-step { min-width: 130px; }

.request-mini-flow {
    display:flex; align-items:center; gap:0; margin-bottom:.65rem; min-width:360px;
}
.request-mini-flow span {
    position:relative; flex:1; padding-top:17px; text-align:center;
    color:#87969c; font-size:.68rem; white-space:nowrap;
}
.request-mini-flow span::before {
    content:""; position:absolute; top:4px; right:calc(50% - 5px);
    width:10px; height:10px; border-radius:50%; background:#cdd7da; z-index:2;
}
.request-mini-flow span::after {
    content:""; position:absolute; top:8px; right:50%; width:100%; height:2px; background:#dfe6e8;
}
.request-mini-flow span:first-child::after { display:none; }
.request-mini-flow span.is-done { color:#147052; font-weight:700; }
.request-mini-flow span.is-done::before,.request-mini-flow span.is-done::after { background:#26a477; }
.request-mini-flow span.is-current { color:#9b6800; font-weight:700; }
.request-mini-flow span.is-current::before { background:#e9a91b; box-shadow:0 0 0 4px #fff0c8; }

.iban-input { display:flex; direction:ltr; align-items:stretch; }
.iban-input > span {
    display:grid; place-items:center; padding:0 .8rem; font-weight:800; color:#174d59;
    background:#e9f3f4; border:1px solid #cbdcdf; border-right:0; border-radius:6px 0 0 6px;
}
.iban-input .form-control { direction:ltr; border-radius:0 6px 6px 0; letter-spacing:1px; }
.form-hint { margin-top:.3rem; color:#6d7f86; font-size:.75rem; }
.investor-row-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:.4rem; min-width:max-content; }
