@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");
:root {
  --ink: #173f66;
  --muted: #173f66;
  --brand: #173f66;
  --brand-2: #173f66;
  --surface: #fff;
  --canvas: #f5f7fb;
  --border: #e9f1fa;
  --success: #173f66;
  --warning: #173f66;
  --danger: #173f66;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  margin: 0;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #173f66;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
  font: 800 22px "Manrope";
}

.brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d5e3f0, #173f66);
}

.sidebar nav {
  display: grid;
  gap: 7px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 11px;
  font-weight: 600;
  color: #d5e3f0;
}

.sidebar nav a span {
  width: 22px;
  text-align: center;
  font-size: 18px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #173f66;
  color: #fff;
}

.profile {
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid #173f66;
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #64748b;
  font-weight: 800;
}

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

.profile small {
  color: #d5e3f0;
  margin-top: 2px;
}

.profile button {
  color: white;
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

.main-panel {
  min-width: 0;
}

.topbar {
  height: 72px;
  padding: 0 34px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar div {
  display: grid;
}

.topbar small {
  color: var(--muted);
}

.topbar .outline {
  margin-left: auto;
}

.menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 24px;
}

.page {
  padding: 34px;
  max-width: 1600px;
  margin: auto;
}

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

.page-heading h1 {
  font-size: 34px;
}

.page-heading p {
  margin: 8px 0 0;
}

.eyebrow {
  display: block;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 8px;
}

button {
  border-radius: 10px;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

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

.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 5px 14px rgba(23, 63, 102, 0.1607843137);
}

.primary:hover {
  background: #173f66;
}

.outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid #d5e3f0;
}

.text-button {
  background: transparent;
  color: var(--brand);
  padding: 0;
}

.icon-button {
  background: transparent;
  font-size: 28px;
  padding: 0;
  width: 42px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 15px;
  box-shadow: 0 8px 30px rgba(23, 63, 102, 0.031372549);
  transition: 0.18s;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: #d5e3f0;
  box-shadow: 0 12px 35px rgba(23, 63, 102, 0.0784313725);
}

.metric-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0f4f8;
  color: var(--brand);
  font-size: 22px;
}

.metric-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.metric-card strong {
  display: block;
  font: 800 30px "Manrope";
  margin: 3px 0;
}

.metric-card p {
  font-size: 12px;
  margin: 0;
}

.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(23, 63, 102, 0.031372549);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 22px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.pipeline div {
  padding: 18px;
  border-radius: 12px;
  background: #f6f9fb;
  min-height: 150px;
}

.pipeline b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  margin-bottom: 18px;
}

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

.pipeline small {
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search {
  height: 44px;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.toolbar select,
select {
  height: 44px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.table-wrap {
  overflow: auto;
}

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

th {
  text-align: left;
  color: #173f66;
  background: #f6f9fb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid #e9f1fa;
}

td {
  font-weight: 500;
}

.status {
  display: inline-flex;
  border-radius: 100px;
  padding: 6px 10px;
  background: #e9f1fa;
  color: #173f66;
  font-size: 12px;
  font-weight: 800;
}

.state {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}

.state strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 63, 102, 0.6588235294);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}

.drawer {
  width: min(620px, 95vw);
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
}

.drawer header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.drawer-body {
  padding: 26px 28px;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail {
  background: #f6f9fb;
  border: 1px solid #e9f1fa;
  border-radius: 11px;
  padding: 16px;
}

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

.detail small {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}

.drawer footer {
  margin-top: auto;
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #173f66;
}

.auth-brand {
  padding: 12vw 9vw;
  color: white;
  background: radial-gradient(circle at 20% 20%, #173f66 0, transparent 40%);
}

.auth-brand h1 {
  font-size: 64px;
}

.auth-brand p {
  max-width: 620px;
  color: #e9f1fa;
  font-size: 20px;
}

.auth-card {
  align-self: center;
  margin: 40px;
  max-width: 530px;
  background: white;
  border-radius: 22px;
  padding: 46px;
  display: grid;
  gap: 22px;
  box-shadow: 0 30px 80px rgba(23, 63, 102, 0.3333333333);
}

.auth-card h2 {
  font-size: 32px;
}

.auth-card p {
  margin: 6px 0;
}

.auth-card label {
  font-weight: 700;
  display: grid;
  gap: 8px;
}

.auth-card input {
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
}

.alert {
  padding: 13px;
  border-radius: 9px;
}

.alert.error {
  background: #e9f1fa;
  color: var(--danger);
}

.alert.info {
  grid-column: 1/-1;
  background: #f0f4f8;
  color: #173f66;
}

@media (max-width: 1200px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -290px;
    width: 276px;
    transition: 0.2s;
  }
  .nav-open .sidebar {
    left: 0;
  }
  .menu {
    display: block;
  }
  .page {
    padding: 22px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pipeline {
    grid-template-columns: 1fr 1fr;
  }
  .auth-page {
    grid-template-columns: 1fr;
    background: #f6f9fb;
  }
  .auth-brand {
    display: none;
  }
  .auth-card {
    margin: 24px auto;
    width: calc(100% - 32px);
    padding: 30px;
  }
  .topbar {
    padding: 0 20px;
  }
}
@media (max-width: 560px) {
  .metric-grid,
  .pipeline,
  .drawer-body {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
  }
  .search {
    min-width: 0;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .topbar .outline {
    display: none;
  }
}
/* Prototype-matching application shell */
.prototype-shell {
  min-height: 100vh;
  background: #f6f7fb;
  color: #173f66;
}

.prototype-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  padding: 30px 20px 20px;
  background: #173f66;
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.prototype-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px 35px;
}

.prototype-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #64748b;
  display: grid;
  place-items: center;
}

.prototype-brand .brand-mark svg {
  width: 24px;
}

.prototype-brand > span:last-child {
  display: grid;
}

.prototype-brand strong {
  font: 800 20px "Manrope";
}

.prototype-brand small {
  font-size: 12px;
  color: #d5e3f0;
  margin-top: 4px;
}

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

.prototype-nav a,
.settings-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 49px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #d5e3f0;
  font-size: 15px;
  font-weight: 600;
}

.prototype-nav a > svg,
.settings-link svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.prototype-nav a > svg[data-icon] {
  display: none;
}

.prototype-nav a span,
.settings-link span {
  flex: 1;
}

.prototype-nav a b {
  font-size: 11px;
  background: #173f66;
  padding: 3px 8px;
  border-radius: 20px;
}

.prototype-nav a:hover,
.prototype-nav a.active,
.settings-link:hover,
.settings-link.active {
  background: #173f66;
  color: white;
}

.settings-link {
  margin-top: auto;
}

.prototype-main {
  min-height: 100vh;
  margin-left: 272px;
}

.prototype-topbar {
  height: 104px;
  background: #fff;
  border-bottom: 1px solid #e9f1fa;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.title-block {
  display: grid;
}

.title-block > span,
.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: #64748b;
}

.title-block h1 {
  font-size: 28px;
  font-weight: 500;
  margin-top: 5px;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-search {
  width: 300px;
  height: 44px;
  border: 1px solid #e9f1fa;
  border-radius: 10px;
  background: #f7f9fb;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.global-search svg {
  width: 17px;
  color: #173f66;
}

.global-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
}

.notification,
.profile-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e9f1fa;
  background: white;
  display: grid;
  place-items: center;
  position: relative;
}

.notification svg {
  width: 19px;
}

.notification i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  right: 8px;
  top: 7px;
}

.profile-button {
  background: #e9f1fa;
  color: #173f66;
  border: 0;
}

.profile-menu {
  position: absolute;
  right: 36px;
  top: 78px;
  width: 235px;
  background: #fff;
  border: 1px solid #e9f1fa;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(23, 63, 102, 0.1490196078);
  padding: 14px;
  display: grid;
  z-index: 50;
}

.profile-menu > strong,
.profile-menu > small {
  padding: 0 7px;
}

.profile-menu > small {
  color: #64748b;
  margin: 4px 0 10px;
}

.profile-menu a,
.profile-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  background: white;
  color: #173f66;
  text-align: left;
  padding: 8px;
  border-radius: 8px;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: #f2f5f9;
}

.profile-menu svg {
  width: 17px;
}

.prototype-content {
  padding: 30px 36px 44px;
}

.mobile-menu {
  display: none;
  background: transparent;
  font-size: 22px;
  padding: 0;
  width: 40px;
}

.prototype-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
}

.prototype-summary.compact {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 25px;
}

.summary-card {
  height: 132px;
  border: 1px solid #e9f1fa;
  border-radius: 15px;
  background: #fff;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  color: #173f66;
  box-shadow: 0 7px 24px rgba(23, 63, 102, 0.0470588235);
}

.summary-card.highlight {
  background: linear-gradient(135deg, #173f66, #173f66);
  color: #fff;
  border-color: transparent;
}

.summary-card > div {
  flex: 1;
}

.summary-card span,
.summary-card strong,
.summary-card small {
  display: block;
}

.summary-card span {
  font-size: 14px;
  font-weight: 650;
  color: #173f66;
}

.summary-card.highlight span,
.summary-card.highlight small {
  color: #e9f1fa;
}

.summary-card strong {
  font: 800 34px "Manrope";
  margin: 3px 0;
}

.summary-card small {
  font-size: 12px;
  color: #64748b;
}

.summary-card small svg {
  width: 14px;
  display: inline;
  margin-right: 4px;
}

.summary-card > i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f4f8;
  color: #173f66;
  display: grid;
  place-items: center;
  font-style: normal;
}

.summary-card.highlight > i {
  background: rgba(255, 255, 255, 0.1215686275);
  color: #fff;
}

.summary-card > i svg {
  width: 22px;
}

.summary-card > i.blue {
  background: #e9f1fa;
  color: #173f66;
}

.summary-card > i.amber {
  background: #e9f1fa;
  color: #173f66;
}

.summary-card > i.green {
  background: #e9f1fa;
  color: #173f66;
}

.prototype-workflow,
.prototype-register,
.permission-matrix,
.users-table-card {
  background: #fff;
  border: 1px solid #e9f1fa;
  border-radius: 15px;
  box-shadow: 0 7px 24px rgba(23, 63, 102, 0.0470588235);
}

.prototype-workflow {
  margin-top: 18px;
  padding: 23px 25px 25px;
}

.prototype-workflow > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prototype-workflow h2 {
  font-size: 20px;
  margin-top: 5px;
}

.prototype-workflow > header > b {
  border: 1px solid #e9f1fa;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 11px;
}

.workflow-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 23px;
}

.workflow-row button {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: transparent;
  text-align: left;
  padding: 0 17px 0 0;
  color: #173f66;
}

.workflow-row button > i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f1f4f8;
  color: #173f66;
  flex: none;
}

.workflow-row button > i svg {
  width: 20px;
}

.workflow-row button > span {
  display: grid;
  gap: 3px;
}

.workflow-row strong {
  font-size: 14px;
}

.workflow-row span > b {
  font-size: 12px;
  font-weight: 500;
  color: #173f66;
}

.workflow-row small {
  font-size: 11px;
  color: #64748b;
}

.workflow-row .chevron {
  position: absolute;
  right: 5px;
  top: 10px;
  width: 17px;
  color: #d5e3f0;
}

.tone-1 {
  background: #e9f1fa !important;
  color: #173f66 !important;
}

.tone-2 {
  background: #e9f1fa !important;
  color: #173f66 !important;
}

.tone-3 {
  background: #e9f1fa !important;
  color: #173f66 !important;
}

.tone-4 {
  background: #e9f1fa !important;
  color: #173f66 !important;
}

.prototype-register {
  margin-top: 18px;
  overflow: hidden;
}

.prototype-register > header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.segment-tabs {
  background: #e9f1fa;
  border-radius: 9px;
  padding: 4px;
}

.segment-tabs button {
  background: transparent;
  color: #173f66;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.segment-tabs button.active {
  background: #fff;
  color: #173f66;
  box-shadow: 0 2px 8px rgba(23, 63, 102, 0.0705882353);
}

.primary-action {
  min-height: 44px;
  background: #173f66;
  color: #fff;
  border-radius: 10px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 750;
  border: 0;
}

.primary-action svg {
  width: 17px;
}

.firm-table-head,
.firm-line {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.1fr 1.3fr 25px;
  align-items: center;
  gap: 18px;
}

.firm-table-head {
  padding: 13px 20px;
  background: #f5f8fa;
  color: #173f66;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.firm-line {
  width: 100%;
  border-radius: 0;
  border-top: 1px solid #e9f1fa;
  background: white;
  padding: 17px 20px;
  text-align: left;
}

.firm-line:hover {
  background: #fcfdfd;
}

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

.firm-id > i {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  background: #e9f1fa;
  color: #173f66;
}

.firm-id > i.amber {
  background: #e9f1fa;
  color: #173f66;
}

.firm-id > i.blue {
  background: #e9f1fa;
  color: #173f66;
}

.firm-id > i.rose {
  background: #e9f1fa;
  color: #173f66;
}

.firm-id > span,
.firm-line > div > small,
.firm-line > div > strong {
  display: block;
}

.firm-id > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.firm-id strong,
.firm-id small {
  width: 100%;
  text-align: left;
}

.firm-id strong {
  font-size: 14px;
}

.firm-id small,
.firm-line > div > small {
  font-size: 11px;
  color: #173f66;
  margin-top: 4px;
}

.stage {
  display: inline-flex !important;
  width: max-content;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 10px;
  background: #d5e3f0;
  color: #173f66;
}

.stage.agreement {
  background: #d5e3f0;
  color: #173f66;
}

.stage.location {
  background: #e9f1fa;
  color: #173f66;
}

.stage.kyc {
  background: #e9f1fa;
  color: #173f66;
}

.readiness > span {
  display: flex;
  justify-content: space-between;
}

.readiness em {
  color: #173f66;
}

.readiness > i {
  display: block;
  height: 6px;
  background: #e9f1fa;
  border-radius: 10px;
  margin-top: 7px;
  overflow: hidden;
}

.readiness > i > b {
  display: block;
  height: 100%;
  background: #173f66;
  border-radius: 10px;
}

.prototype-page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.prototype-page-intro h2 {
  font-size: 27px;
  margin-top: 7px;
}

.prototype-page-intro p {
  font-size: 14px;
  margin: 7px 0 0;
}

.permission-matrix {
  padding: 18px;
  margin-top: 18px;
}

.permission-matrix h3 {
  font-size: 13px;
  margin: 0 0 14px;
}

.permission-matrix > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.permission-matrix article {
  border: 1px solid #e9f1fa;
  border-radius: 11px;
  padding: 15px;
}

.permission-matrix article strong,
.permission-matrix article span {
  display: block;
}

.permission-matrix article strong {
  font-size: 14px;
}

.permission-matrix article span {
  font-size: 11px;
  color: #173f66;
  margin-top: 4px;
}

.permission-matrix article p {
  font-size: 12px;
  margin: 10px 0 0;
  color: #173f66;
}

.users-table-card {
  margin-top: 18px;
  overflow: hidden;
}

.users-table-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
}

.users-table-card h3 {
  font-size: 17px;
}

.users-table-card p {
  font-size: 12px;
  margin: 5px 0 0;
}

.table-search {
  height: 40px;
  width: 230px;
  border: 1px solid #e9f1fa;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
}

.table-search input {
  border: 0;
  outline: 0;
  width: 100%;
}

.users-table-wrap {
  overflow: auto;
}

.users-table-card table {
  min-width: 1000px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f1fa;
  color: #173f66;
  font-style: normal;
  font-weight: 800;
}

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

.user-cell small {
  font-size: 11px;
  color: #173f66;
  margin-top: 3px;
}

.role-pill,
.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 11px;
  background: #e9f1fa;
  color: #173f66;
}

.role-pill.accounts {
  background: #e9f1fa;
  color: #173f66;
}

.role-pill.location {
  background: #d5e3f0;
  color: #173f66;
}

.status-pill {
  background: #d5e3f0;
  color: #173f66;
}

.row-action {
  background: transparent;
  padding: 0 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 63, 102, 0.6823529412);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.prototype-modal {
  width: min(650px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3333333333);
}

.prototype-modal > header {
  padding: 24px 26px;
  border-bottom: 1px solid #e9f1fa;
  display: flex;
  justify-content: space-between;
}

.prototype-modal h2 {
  font-size: 22px;
  margin-top: 6px;
}

.prototype-modal header p {
  font-size: 12px;
  margin: 5px 0 0;
}

.modal-close {
  background: transparent;
  font-size: 28px;
  padding: 0;
  width: 36px;
}

.modal-form-grid {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-form-grid label {
  font-size: 13px;
  font-weight: 700;
  display: grid;
  gap: 7px;
}

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

.modal-form-grid input,
.modal-form-grid select {
  height: 44px;
  border: 1px solid #e9f1fa;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
}

.prototype-modal .role-preview {
  margin: 0 26px;
}

.prototype-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 26px;
  border-top: 1px solid #e9f1fa;
  margin-top: 20px;
}

.secondary-action {
  background: #fff;
  border: 1px solid #d5e3f0;
}

.form-error {
  margin: 12px 26px 0;
  padding: 10px;
  border-radius: 8px;
  background: #e9f1fa;
  color: #173f66;
  font-size: 12px;
}

.field-error {
  display: block;
  color: #173f66 !important;
  font-size: 11px !important;
  margin-top: 3px;
  font-weight: 650;
}

.field-invalid {
  border-color: #173f66 !important;
  box-shadow: 0 0 0 2px #e9f1fa !important;
}

@media (max-width: 1150px) {
  .prototype-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .workflow-row .chevron {
    display: none;
  }
  .firm-table-head {
    display: none;
  }
  .firm-line {
    grid-template-columns: 1.8fr 1fr 1fr 25px;
  }
  .firm-line > div:nth-child(4) {
    display: none;
  }
}
@media (max-width: 820px) {
  .prototype-sidebar {
    left: -280px;
    transition: 0.2s;
  }
  .prototype-shell.nav-open .prototype-sidebar {
    left: 0;
  }
  .prototype-main {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .prototype-topbar {
    padding: 16px 20px;
    height: 88px;
  }
  .prototype-content {
    padding: 22px;
  }
  .global-search {
    display: none;
  }
  .title-block h1 {
    font-size: 23px;
  }
  .prototype-page-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .prototype-summary.compact,
  .permission-matrix > div {
    grid-template-columns: 1fr;
  }
  .workflow-row {
    grid-template-columns: 1fr 1fr;
  }
  .firm-line {
    grid-template-columns: 1fr auto;
  }
  .firm-line > div:nth-child(3) {
    display: none;
  }
  .firm-line > svg {
    display: none;
  }
}
@media (max-width: 560px) {
  .prototype-summary,
  .workflow-row {
    grid-template-columns: 1fr;
  }
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
  .modal-form-grid .full {
    grid-column: auto;
  }
  .prototype-topbar .notification {
    display: none;
  }
}
/* Stage 2: firm and partner master screens */
.stage-register {
  margin-top: 18px;
}

.stage-register > header {
  color: #173f66;
  font-size: 12px;
}

.wide-modal {
  width: min(1050px, 96vw);
}

.modal-backdrop:has(.firm-detail-drawer) {
  place-items: stretch end;
  padding: 0;
}

.firm-detail-drawer {
  width: min(620px, 94vw);
  height: 100vh;
  max-height: 100vh;
  border-radius: 18px 0 0 18px;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.2666666667);
  animation: firm-drawer-in 0.2s ease-out;
}

.firm-detail-drawer > header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.firm-detail-drawer .detail-scroll {
  padding: 24px;
}

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

@keyframes firm-drawer-in {
  from {
    transform: translateX(35px);
    opacity: 0.65;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.form-sections {
  padding: 22px 26px;
  display: grid;
  gap: 18px;
}

.form-section {
  border: 1px solid #e9f1fa;
  border-radius: 12px;
  padding: 18px;
}

.form-section h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.compact-grid {
  padding: 0;
}

.compact-grid textarea {
  min-height: 85px;
  border: 1px solid #e9f1fa;
  border-radius: 9px;
  padding: 10px;
  resize: vertical;
}

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

.contact-grid article {
  padding: 14px;
  border-radius: 10px;
  background: #f6f9fb;
  display: grid;
  gap: 11px;
}

.contact-grid label {
  font-size: 12px;
  font-weight: 700;
  display: grid;
  gap: 5px;
}

.contact-grid input {
  height: 41px;
  border: 1px solid #e9f1fa;
  border-radius: 8px;
  padding: 0 10px;
}

.detail-scroll {
  padding: 24px 26px;
  max-height: 76vh;
  overflow: auto;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9f1fa;
}

.detail-hero > i {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e9f1fa;
  color: #173f66;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
}

.detail-hero > div {
  flex: 1;
}

.detail-hero p {
  margin: 4px 0 0;
  font-size: 12px;
}

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

.detail-columns section > h3 {
  font-size: 14px;
  margin: 24px 0 10px;
}

.record-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e9f1fa;
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
}

.record-row > i {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f4f8;
  color: #173f66;
  display: grid;
  place-items: center;
  font-style: normal;
  flex: none;
}

.record-row > span {
  display: grid;
  flex: 1;
}

.record-row strong {
  font-size: 13px;
}

.record-row small {
  font-size: 11px;
  color: #173f66;
  margin-top: 3px;
}

.history-record {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.history-record > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #173f66;
  margin-top: 4px;
  box-shadow: 0 0 0 4px #e9f1fa;
}

.history-record.old > i {
  background: #64748b;
  box-shadow: 0 0 0 4px #e9f1fa;
}

.history-record span {
  display: grid;
}

.history-record strong {
  font-size: 13px;
}

.history-record small {
  font-size: 11px;
  color: #173f66;
  margin-top: 3px;
}

.document-row .row-action,
.upload-action {
  font-size: 11px;
  color: #173f66;
  background: #f1f4f8;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 800;
  cursor: pointer;
}

.upload-action input {
  display: none;
}

.small-action {
  margin-top: 5px;
  min-height: 36px;
  font-size: 12px;
}

.top-layer {
  z-index: 130;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.profile-facts > div {
  background: #f6f9fb;
  border-radius: 10px;
  padding: 13px;
}

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

.profile-facts span {
  font-size: 10px;
  color: #173f66;
  text-transform: uppercase;
}

.profile-facts strong {
  font-size: 12px;
  margin-top: 5px;
}

.partner-toolbar {
  margin: 18px 0;
  display: flex;
  gap: 8px;
}

.partner-toolbar .table-search {
  margin-right: auto;
  background: #fff;
}

.partner-toolbar > button {
  min-height: 40px;
  background: #fff;
  border: 1px solid #e9f1fa;
  color: #173f66;
}

.partner-toolbar > button.active {
  background: #173f66;
  color: #fff;
  border-color: #173f66;
}

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

.partner-card {
  position: relative;
  background: #fff;
  border: 1px solid #e9f1fa;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 7px 24px rgba(23, 63, 102, 0.0470588235);
}

.kyc-banner {
  background: #e9f1fa;
  color: #173f66;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 700;
}

.partner-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 12px;
}

.partner-card-head > i {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #e9f1fa;
  color: #173f66;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
}

.partner-card-head > div {
  display: grid;
  flex: 1;
}

.partner-card-head > div span {
  font-size: 11px;
  color: #173f66;
  margin-top: 3px;
}

.partner-card-head > b {
  font-size: 10px;
  border-radius: 20px;
  padding: 5px 8px;
  background: #e9f1fa;
  color: #173f66;
}

.partner-card-head > b.warn {
  background: #e9f1fa;
  color: #173f66;
}

.partner-contact {
  display: grid;
  gap: 7px;
  padding: 0 18px 15px;
  color: #173f66;
  font-size: 12px;
  border-bottom: 1px solid #e9f1fa;
}

.assignment-block {
  padding: 14px 18px;
}

.assignment-block > small {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #173f66;
  font-weight: 800;
}

.assignment-block > p {
  font-size: 11px;
  margin: 8px 0 0;
}

.assignment-block button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  background: #f6f9fb;
  min-height: 38px;
  padding: 0 10px;
  margin-top: 7px;
  font-size: 11px;
  text-align: left;
}

.assignment-block button span {
  flex: 1;
}

.assignment-block button b {
  font-size: 9px;
  color: #173f66;
}

.assignment-block.previous {
  padding-top: 0;
}

.partner-card > footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-top: 1px solid #e9f1fa;
}

.partner-card > footer > span {
  font-size: 10px;
  color: #173f66;
  margin-right: auto;
}

.partner-card > footer button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 10px;
}

@media (max-width: 1200px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .contact-grid,
  .detail-columns,
  .profile-facts {
    grid-template-columns: 1fr;
  }
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .wide-modal {
    width: 96vw;
  }
  .form-sections {
    padding: 16px;
  }
  .partner-toolbar {
    flex-wrap: wrap;
  }
  .partner-toolbar .table-search {
    width: 100%;
    margin-right: 0;
  }
}
.collapse-nav {
  position: absolute;
  right: -15px;
  top: 87px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid #e9f1fa;
  border-radius: 50%;
  background: #fff;
  color: #173f66;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(23, 63, 102, 0.1490196078);
}

.collapse-nav svg {
  width: 15px;
}

.prototype-sidebar,
.prototype-main {
  transition: width 0.2s, margin-left 0.2s;
}

.sidebar-collapsed .prototype-sidebar {
  width: 82px;
  padding-left: 13px;
  padding-right: 13px;
}

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

.sidebar-collapsed .prototype-brand {
  padding-left: 5px;
}

.sidebar-collapsed .prototype-brand > span:last-child,
.sidebar-collapsed .prototype-nav a > span,
.sidebar-collapsed .prototype-nav a > b,
.sidebar-collapsed .settings-link > span {
  display: none;
}

.sidebar-collapsed .prototype-nav a,
.sidebar-collapsed .settings-link {
  justify-content: center;
  padding: 12px;
}

.sidebar-collapsed .prototype-brand .brand-mark {
  width: 44px;
}

.sidebar-collapsed .collapse-nav {
  right: -15px;
}

@media (max-width: 820px) {
  .collapse-nav {
    display: none;
  }
  .sidebar-collapsed .prototype-sidebar {
    width: 272px;
    padding: 30px 20px 20px;
  }
  .sidebar-collapsed .prototype-main {
    margin-left: 0;
  }
  .sidebar-collapsed .prototype-brand > span:last-child,
  .sidebar-collapsed .prototype-nav a > span,
  .sidebar-collapsed .prototype-nav a > b,
  .sidebar-collapsed .settings-link > span {
    display: initial;
  }
}
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 16px;
}

.location-card {
  background: #fff;
  border: 1px solid #e9f1fa;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 7px 24px rgba(23, 63, 102, 0.0470588235);
}

.location-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.location-card-head > i {
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #e9f1fa;
  color: #173f66;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 20px;
}

.location-card-head > div {
  display: grid;
  flex: 1;
}

.location-card-head span {
  font-size: 11px;
  color: #173f66;
  margin-top: 3px;
}

.location-card-head > b {
  font-size: 10px;
  border-radius: 20px;
  padding: 5px 8px;
  background: #e9f1fa;
  color: #173f66;
}

.location-card-head > b.used {
  background: #f1f4f8;
  color: #173f66;
}

.allocation-box {
  margin: 0 18px 14px;
  padding: 13px;
  border-radius: 10px;
  background: #f6f9fb;
  display: grid;
}

.allocation-box span {
  font-size: 9px;
  color: #173f66;
  letter-spacing: 0.08em;
}

.allocation-box strong {
  font-size: 13px;
  margin-top: 5px;
}

.allocation-box small {
  font-size: 10px;
  color: #173f66;
  margin-top: 3px;
}

.location-card > footer {
  padding: 12px 18px;
  border-top: 1px solid #e9f1fa;
  text-align: right;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.users-table-card select {
  height: 40px;
  border: 1px solid #e9f1fa;
  border-radius: 9px;
  padding: 0 30px 0 11px;
}

.users-table-card td small,
.users-table-card td strong {
  display: block;
}

.users-table-card td small {
  font-size: 10px;
  color: #173f66;
  margin-top: 4px;
}

.tax-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.tax-summary > div {
  padding: 14px;
  border-radius: 10px;
  background: #f6f9fb;
}

.tax-summary span,
.tax-summary strong {
  display: block;
}

.tax-summary span {
  font-size: 10px;
  color: #173f66;
  text-transform: uppercase;
}

.tax-summary strong {
  margin-top: 5px;
}

.detail-scroll > label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.detail-scroll textarea,
.compact-grid textarea {
  min-height: 80px;
  border: 1px solid #e9f1fa;
  border-radius: 9px;
  padding: 10px;
}

.danger-action {
  background: #f5f7fb;
  color: #173f66;
  border: 1px solid #d5e3f0;
}

.prototype-modal footer .danger-action {
  margin-right: auto;
}

.prototype-summary.compact:has(.summary-card:nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
}

.payment-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9f1fa;
}

.payment-tabs button, .payment-tabs a {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #e9f1fa;
  border-radius: 10px;
  background: #fff;
  color: #173f66;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 750;
}

.payment-tabs button.active {
  background: #173f66;
  color: #fff;
  border-color: #173f66;
}

.payment-tabs b {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e9f1fa;
  color: #173f66;
  font-size: 10px;
}

.payment-tabs button.active b {
  background: rgba(255, 255, 255, 0.1411764706);
  color: #fff;
}

.payment-register > header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-register > header > div:first-child > small {
  color: #173f66;
}

.history-filters {
  display: flex;
  gap: 8px;
}

.history-filters button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #173f66;
  border-radius: 10px;
  background: #fff;
  color: #173f66;
}

.history-filters button.active {
  color: #fff;
  background: #173f66;
  border-color: #173f66;
}

.payment-type-tag {
  display: block;
  width: max-content;
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e9f1fa;
  color: #173f66;
  font-size: 11px;
}

.payment-type-tag.rental {
  background: #e9f1fa;
  color: #173f66;
}

.payment-context {
  background: #f0f4f8;
  color: #173f66;
  border-radius: 12px;
  padding: 18px 22px;
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.payment-context small {
  color: #173f66;
}

.approval-queue {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.approval-card {
  background: #fff;
  border: 1px solid #e9f1fa;
  border-radius: 14px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 48px minmax(260px, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
}

.approval-card > i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e9f1fa;
  color: #173f66;
  display: grid;
  place-items: center;
  font-style: normal;
}

.approval-card > div {
  display: grid;
  gap: 4px;
}

.approval-card small, .approval-card span {
  color: #173f66;
  font-size: 11px;
}

.approval-card strong {
  font-size: 16px;
}

.approval-card > b {
  font-size: 20px;
}

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

.approval-detail-grid > div {
  background: #f6f9fb;
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.approval-detail-grid span, .supporting-documents > span {
  color: #173f66;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.supporting-documents {
  margin: 22px 0;
}

.supporting-documents > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e9f1fa;
}

.supporting-documents > div strong {
  flex: 1;
}

.supporting-documents > div small {
  color: #173f66;
}

.approval-modal {
  max-width: 760px;
}

.beneficiary-panel {
  display: grid;
  gap: 5px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e9f1fa;
  border-radius: 11px;
  background: #f6f9fb;
}

.beneficiary-panel > span {
  color: #173f66;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.beneficiary-panel > strong {
  font-size: 17px;
  color: #173f66;
}

.beneficiary-panel > b {
  font-size: 12px;
}

.beneficiary-panel > .row-action {
  justify-self: start;
  margin-top: 7px;
}

.partner-profile-view {
  padding: 20px;
}

.partner-profile-hero {
  padding: 0 0 20px;
}

.kyc-status {
  margin-left: auto;
  border-radius: 20px;
  padding: 6px 11px;
  background: #e9f1fa;
  color: #173f66;
  font-size: 11px;
}

.kyc-status.pending {
  background: #e9f1fa;
  color: #173f66;
}

.partner-profile-view .profile-facts {
  grid-template-columns: 1fr 1fr;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9f1fa;
}

.partner-profile-view .profile-facts > div {
  min-height: 72px;
  padding: 16px;
}

.partner-profile-view .profile-facts strong {
  font-size: 14px;
}

.profile-list-section {
  padding: 20px 0;
  border-bottom: 1px solid #e9f1fa;
}

.profile-section-label {
  display: block;
  margin-bottom: 10px;
  color: #173f66;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-list-section .record-row {
  border: 0;
  border-bottom: 1px solid #e9f1fa;
  border-radius: 0;
  margin: 0;
  padding: 12px 2px;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}

.muted-note {
  color: #173f66;
  font-size: 12px;
}

@media (max-width: 1150px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .location-grid,
  .tax-summary {
    grid-template-columns: 1fr;
  }
  .approval-card {
    grid-template-columns: 42px 1fr;
  }
  .approval-card > b, .approval-card > button {
    grid-column: 2;
  }
  .approval-detail-grid, .prototype-summary.compact:has(.summary-card:nth-child(4)) {
    grid-template-columns: 1fr;
  }
  .payment-tabs {
    overflow-x: auto;
  }
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.settings-grid article h3 {
  font-size: 16px;
  margin-top: 7px;
}

.settings-grid article p {
  min-height: 38px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
.phone-input {
  display: flex;
  height: 44px;
  border: 1px solid #e9f1fa;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.phone-input > span {
  display: flex;
  align-items: center;
  padding: 0 11px;
  background: #eff3f7;
  border-right: 1px solid #e9f1fa;
  color: #173f66;
  font-weight: 800;
}

.phone-input > input {
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
}

.optional-banner {
  margin: 18px 26px 0;
  padding: 13px 15px;
  border-radius: 10px;
  background: #e9f1fa;
  color: #173f66;
  display: flex;
  gap: 10px;
  font-size: 12px;
}

.optional-banner span {
  display: block;
}

.modal-form-grid label > small {
  font-size: 10px;
  color: #173f66;
  font-weight: 500;
}

.formation-handoff {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 15px;
}

.formation-handoff > div {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 5px;
  padding: 10px 5px;
  border-radius: 9px;
  background: #e9f1fa;
  color: #64748b;
}

.formation-handoff > div:not(:last-child):after {
  content: "›";
  position: absolute;
  right: -6px;
  top: 19px;
  z-index: 2;
  color: #64748b;
}

.formation-handoff i {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d5e3f0;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
}

.formation-handoff strong,
.formation-handoff small {
  display: block;
}

.formation-handoff strong {
  font-size: 10px;
}

.formation-handoff small {
  font-size: 8px;
  margin-top: 2px;
}

.formation-handoff .done {
  background: #e9f1fa;
  color: #173f66;
}

.formation-handoff .done i {
  background: #173f66;
  color: #fff;
}

.formation-handoff .current {
  background: #f1f4f8;
  color: #173f66;
  box-shadow: inset 0 0 0 1px #d5e3f0;
}

.formation-handoff .current i {
  background: #173f66;
  color: #fff;
}

.formation-handoff .rejected {
  background: #f5f7fb;
  color: #173f66;
  box-shadow: inset 0 0 0 1px #d5e3f0;
}

.formation-handoff .rejected i {
  background: #173f66;
  color: #fff;
}

.rejection-panel {
  padding: 14px;
  border-radius: 10px;
  background: #f5f7fb;
  border: 1px solid #d5e3f0;
  color: #173f66;
}

.rejection-panel p {
  color: #173f66;
  font-size: 11px;
  margin: 5px 0;
}

.rejection-panel small {
  display: block;
  margin-bottom: 10px;
}

.utr-notice {
  display: grid;
  padding: 13px;
  border-radius: 10px;
  background: #e9f1fa;
  color: #173f66;
}

.utr-notice span {
  font-size: 10px;
  margin-top: 3px;
}

@media (max-width: 650px) {
  .formation-handoff {
    grid-template-columns: 1fr 1fr;
  }
}
.upload-note {
  font-size: 11px;
  margin: 0 0 12px;
}

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

.prototype-upload {
  min-height: 92px;
  padding: 13px;
  border: 1px dashed #d5e3f0;
  border-radius: 10px;
  background: #f9fbfc;
  display: grid;
  align-content: center;
  text-align: center;
  cursor: pointer;
}

.prototype-upload:hover {
  border-color: #64748b;
  background: #f6f9fb;
}

.prototype-upload strong, .prototype-upload small {
  display: block;
}

.prototype-upload strong {
  font-size: 11px;
}

.prototype-upload small {
  color: #173f66;
  margin-top: 5px;
  font-size: 9px;
}

.prototype-upload input {
  display: none;
}

@media (max-width: 700px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}
/* Shared application palette: navy actions with consistent blue selected states. */
.primary-action, .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.primary-action:hover, .btn-primary:hover {
  background: #173f66;
}

.prototype-nav a.active, .settings-link.active {
  background: #e9f1fa;
  color: var(--brand);
}

.segment-tabs button.active {
  color: var(--brand);
  border-color: var(--brand);
}

.summary-card.highlight {
  background: var(--brand);
  color: white;
}

.user-role-options {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.user-role-options label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-role-options input {
  width: auto;
  accent-color: var(--brand);
}

input, select, textarea {
  accent-color: var(--brand);
}

/* One accent across all modules, matching selected Task Master Setup. */
:root {
  --brand:#173f66;
  --brand-2:#173f66;
  --success:#173f66;
  --warning:#173f66;
  --danger:#173f66;
}

.primary-action, .btn-primary, .task-tabs .active {
  background: #173f66;
  border-color: #173f66;
  color: #fff;
}

/* KYC warnings intentionally stand out from the navy application theme. */
.partner-card .kyc-banner, .kyc-banner {
  background: #fff3cd !important;
  color: #854d0e !important;
  border-bottom: 2px solid #f59e0b;
  font-weight: 700;
}

.partner-card b.warn, .kyc-status.pending {
  background: #fff3cd !important;
  color: #854d0e !important;
  border: 1px solid #f59e0b;
}