*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --navy: #143964;
  --ink: #20374f;
  --muted: #75808c;
  --red: #d91d3a;
  --red-soft: #fff0f1;
  --canvas: #f7f8fa;
  --line: #e6e9ed;
  --surface: #fff;
  --green: #257665;
  --amber: #a46c24;
  --radius: 12px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  color: inherit;
}
button,
select,
input,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}
button svg,
a svg {
  pointer-events: none;
}
svg.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1.1px;
  font-weight: 650;
  line-height: 1.3;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.35px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small {
  font-size: 11px;
}
.app-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  width: 246px;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  z-index: 20;
  padding: 32px 18px 16px;
}
.brand {
  padding: 0 12px;
  display: block;
  margin-bottom: 35px;
}
.brand img {
  width: 198px;
  height: auto;
  display: block;
}
.workspace-label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 27px;
}
.workspace-mark {
  flex-shrink: 0;
  overflow: hidden;
  height: 31px;
  width: 31px;
  border-radius: 7px;
  color: var(--navy);
  background: #eef2f6;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 18px;
}
.workspace-label strong {
  font-size: 11.5px;
  display: block;
  font-weight: 600;
}
.workspace-label small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.workspace-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #367963;
  margin-left: auto;
}
.nav-group {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #929ba5;
  font-weight: 600;
  margin: 23px 13px 10px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 10px 13px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
  color: #677383;
  margin: 3px 0;
  transition:
    background 0.16s,
    color 0.16s;
}
.nav-item:hover {
  background: #f5f6f8;
  color: var(--navy);
}
.nav-item.active {
  background: var(--red-soft);
  color: #bf1933;
}
.nav-item.is-locked,
.nav-item.is-locked:hover {
  color: #a7adb5;
  background: transparent;
  cursor: not-allowed;
}
.nav-item.is-locked small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 400;
}
.nav-item.active::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-left: auto;
}
.nav-item span:last-child:not(:first-child) {
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 20px 8px 0;
  margin-top: 15px;
  text-align: left;
}
.profile strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  max-width: 132px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.profile > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.avatar {
  display: inline-grid;
  place-items: center;
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #eaf0f6;
  color: var(--navy);
  font-size: 11px;
  font-weight: 650;
  flex: none;
}
.avatar.pharmacy {
  border-radius: 9px;
  width: 37px;
  height: 37px;
  background: #f0f3f5;
}
.avatar.warm {
  background: #faedef;
  color: #b35566;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  color: #87919c;
}
.breadcrumb strong {
  color: #536175;
  font-weight: 500;
}
.slash {
  color: #c8cdd3;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 10px;
  color: var(--muted);
}
.environment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  background: #f6f0e6;
  color: #976e34;
  padding: 5px 8px;
  border-radius: 4px;
}
.environment:empty {
  display: none;
}
.environment::before {
  content: "";
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.icon-button {
  height: 33px;
  width: 33px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
}
.icon-button:hover {
  background: #edf0f4;
}
.mobile-menu {
  display: none;
}
#main {
  max-width: 1580px;
  padding: 34px 36px 24px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.65px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 8px;
}
.heading-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  min-height: 37px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 550;
  border: 1px solid var(--line);
  background: white;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover {
  background: #f4f6f8;
}
.btn.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.btn.primary:hover {
  background: #0e2b4c;
}
.btn.red {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.btn.danger {
  color: #c1384c;
  border-color: #f0d7dc;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.small {
  min-height: 29px;
  padding: 6px 9px;
  font-size: 10px;
}
.btn svg.icon {
  width: 15px;
  height: 15px;
}
.period-label {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
  color: #667382;
  background: white;
}
.metrics {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 23px;
  padding: 23px 0;
}
.metric {
  padding: 0 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.metric:last-child {
  border: 0;
}
.metric-label {
  font-size: 10px;
  color: #6e7c8b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.metric-label svg {
  width: 15px;
  height: 15px;
  color: #98a3af;
}
.metric-value {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1.1px;
  margin: 11px 0 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.metric-note {
  font-size: 9px;
  color: #8a959f;
  line-height: 1.6;
}
.metric-note em {
  font-style: normal;
  color: var(--green);
  font-weight: 550;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(275px, 1fr);
  gap: 22px;
  margin-bottom: 23px;
}
.paper {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.paper-head {
  padding: 23px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.delivery-shortcuts > .actions {
  gap: 12px;
}
.delivery-shortcuts {
  padding: 24px;
}
.delivery-shortcuts > .paper-head {
  padding: 0;
}
.delivery-shortcuts > .actions {
  padding: 0;
  margin-top: 20px;
}
.form-grid [hidden] {
  display: none;
}
.paper-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.6;
}
.paper-head .text-link {
  margin-top: 3px;
}
.text-link {
  font-size: 10px;
  color: var(--navy);
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.text-link svg {
  width: 13px;
  height: 13px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}
.chart-legend::before {
  content: "";
  height: 6px;
  width: 6px;
  background: var(--navy);
  border-radius: 2px;
}
.chart {
  display: flex;
  gap: 8px;
  padding: 28px 24px 16px;
  min-height: 220px;
}
.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 27px;
  width: 39px;
  flex: none;
  font-size: 8px;
  color: #99a3ae;
  font-variant-numeric: tabular-nums;
}
.chart-plot {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  flex: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(25% - 1px),
    #eff1f4 calc(25% - 1px),
    #eff1f4 25%
  );
  padding-top: 4px;
  min-width: 0;
}
.chart-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  gap: 10px;
  position: relative;
}
.chart-bar {
  background: var(--navy);
  opacity: 0.83;
  width: min(19px, 75%);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: opacity 0.2s;
}
.chart-column:nth-last-child(2) .chart-bar {
  background: var(--red);
}
.chart-column:hover .chart-bar {
  opacity: 1;
}
.chart-column small {
  font-size: 8px;
  color: #939eaa;
  background: white;
  display: block;
  width: 100%;
  text-align: center;
  padding-top: 4px;
  position: absolute;
  bottom: -3px;
}
.chart-column {
  padding-bottom: 26px;
}
.chart-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f0f2f5;
  padding: 13px 24px;
  font-size: 9px;
  color: var(--muted);
}
.chart-summary strong {
  color: var(--ink);
  font-weight: 550;
}
.attention-list {
  padding: 7px 24px 0;
}
.attention-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #edf0f3;
}
.attention-item:last-child {
  border-bottom: 0;
}
.attention-icon {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fcf3e8;
  color: #ab7b3e;
  flex: none;
}
.attention-icon.red {
  background: #fcf0f2;
  color: #c1687a;
}
.attention-icon.blue {
  background: #edf2f7;
  color: #6883a2;
}
.attention-item strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
}
.attention-item p {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}
.attention-item > svg {
  margin-left: auto;
  width: 14px;
  color: #a1a9b2;
}
.note-strip {
  background: #fafbfc;
  padding: 11px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(275px, 1fr);
  gap: 22px;
}
.action-lock {
  display: inline-flex;
  cursor: not-allowed;
}
.action-lock .btn:disabled {
  background: #eef1f4;
  border-color: #dce2e8;
  color: #84909e;
  pointer-events: none;
  opacity: 1;
}
.workspace-mark img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar:has(img) {
  overflow: hidden;
}
.workspace-label > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 190px;
}
.customer-origin {
  margin-left: 43px;
}
.customer-table td {
  padding-block: 22px;
  line-height: 1.6;
}
.customer-table .btn.small {
  font-size: 12px;
}
.profile-paper {
  max-width: 760px;
  padding: 28px;
}
.profile-paper [hidden] {
  display: none;
}
.profile-photo-field {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-photo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  font-size: 22px;
}
.profile-remove input {
  width: auto;
  margin-right: 8px;
}
.table-wrap {
  overflow-x: auto;
  width: 100%;
  padding-top: 15px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  color: #8a949f;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 550;
  background: #fbfcfd;
  padding: 12px 20px;
  border-block: 1px solid #edf0f3;
  white-space: nowrap;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f3;
  color: #5e6c7c;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfcfe;
}
.cell-primary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 140px;
}
.cell-primary strong,
.stack strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
.cell-primary small,
.stack small {
  display: block;
  color: #657386;
  font-size: 11px;
  margin-top: 4px;
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 550;
}
.money.negative {
  color: #ba455a;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 550;
  padding: 5px 7px;
  border-radius: 4px;
  background: #f0f3f7;
  color: #6d7c8d;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  color: #317664;
  background: #edf7f2;
}
.badge.amber {
  color: #a47a39;
  background: #fbf5e9;
}
.badge.red {
  color: #bb5567;
  background: #fcf0f1;
}
.badge.blue {
  color: #4f739a;
  background: #eef3f9;
}
.ranking {
  padding: 11px 24px 5px;
}
.rank-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #edf0f3;
}
.rank-item:last-child {
  border: 0;
}
.rank-number {
  font-size: 9px;
  color: #a7afb7;
  width: 13px;
}
.rank-item .stack {
  flex: 1;
}
.rank-item .money {
  font-size: 10px;
}
.rank-item .avatar {
  height: 31px;
  width: 31px;
  font-size: 9px;
}
.table-footer {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 22px;
}
.filters input,
.filters select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 34px;
  color: #617084;
  padding: 7px 10px;
  font-size: 10px;
  max-width: 240px;
}
.filters input[type="search"] {
  flex: 1;
  min-width: 180px;
  max-width: 350px;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}
.filter-search svg {
  color: #8995a3;
  position: absolute;
  margin-left: 11px;
  width: 15px;
}
.filter-search input {
  padding-left: 33px;
  width: 100%;
}
.section-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: -5px 0 23px;
}
.section-tabs button {
  padding: 14px 0;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 2px solid transparent;
}
.section-tabs button.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.inline-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #fdf7ed;
  border: 1px solid #f2e5cf;
  border-radius: 8px;
  padding: 14px 17px;
  color: #9b793f;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.inline-notice.blue {
  background: #f1f5fa;
  border-color: #e0e8f2;
  color: #627d9b;
}
.inline-notice svg {
  flex: none;
  margin-top: 2px;
}
.split-bar {
  display: flex;
  height: 7px;
  border-radius: 3px;
  overflow: hidden;
  background: #edf0f3;
  max-width: 160px;
  margin: 7px 0;
}
.split-bar span {
  height: 100%;
}
.split-bar .pharmacy {
  background: #2b5078;
}
.split-bar .consultant {
  background: #9fb4c9;
}
.split-bar .manager {
  background: #d38593;
}
.split-bar .seller {
  background: #d91d3a;
}
.split-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.split-legend span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  margin-right: 5px;
  background: var(--swatch);
}
.rate-total {
  font-size: 17px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.5px;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.offer-card {
  padding: 23px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.offer-card .offer-number {
  font-size: 9px;
  color: #b4bdc7;
  letter-spacing: 1px;
  margin-bottom: 23px;
}
.offer-card h2 {
  font-size: 18px;
  line-height: 1.5;
}
.offer-card p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 7px 0 18px;
}
.offer-price {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-top: auto;
}
.offer-price small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.offer-meta {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.app-footer {
  padding: 10px 36px 22px;
  display: flex;
  justify-content: space-between;
  color: #9ca5af;
  font-size: 9px;
}
.footer-dot {
  padding: 0 5px;
  color: #bcc3cc;
}
.empty-state,
.loading-state {
  padding: 65px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  color: var(--muted);
}
.empty-state > svg {
  height: 35px;
  width: 35px;
  color: #a9b6c5;
}
.empty-state h3 {
  color: #53677e;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.7;
  max-width: 360px;
}
.loading-state {
  padding-top: 140px;
  min-height: 380px;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #e2e8ef;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  background: #16324f;
  color: white;
  border-radius: 9px;
  box-shadow: 0 8px 30px #102b4a25;
  font-size: 12px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  line-height: 1.6;
}
.toast.error {
  background: #9c3046;
}
.modal {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 100px #0e2d4830;
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  color: var(--ink);
}
.modal::backdrop {
  background: #122d4960;
  backdrop-filter: blur(3px);
}
.modal.drawer {
  margin: 0 0 0 auto;
  width: min(650px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--line);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 21px;
  letter-spacing: -0.7px;
}
.modal-head p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.7;
}
.modal-body {
  padding: 25px 28px;
}
.modal-foot {
  padding: 17px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fcfcfd;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  font-weight: 550;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: white;
  border: 1px solid #dfe4eb;
  border-radius: 6px;
  padding: 10px 11px;
  min-height: 39px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.7;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #cbd9ea;
  border-color: #89a1be;
}
.field small {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
}
.field input[readonly] {
  background: #f6f7fa;
}
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.7;
}
.field-check input {
  margin-top: 3px;
  accent-color: var(--navy);
}
.form-divider {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
}
.form-error {
  background: #fff1f2;
  padding: 11px 13px;
  color: #b6445a;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.detail-band {
  background: #f4f6f9;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}
.detail-band .money {
  font-size: 24px;
  letter-spacing: -0.7px;
}
.detail-section {
  margin-bottom: 28px;
}
.detail-section > h3 {
  margin-bottom: 15px;
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 6px;
}
.detail-grid dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.timeline {
  border-left: 1px solid #dce3ec;
  margin: 14px 0 0 6px;
  padding-left: 20px;
}
.timeline-item {
  position: relative;
  padding: 0 0 21px;
}
.timeline-item::before {
  content: "";
  height: 7px;
  width: 7px;
  position: absolute;
  left: -24px;
  top: 4px;
  background: #62809f;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cdd9e7;
}
.timeline-item strong {
  font-size: 11px;
  font-weight: 500;
}
.timeline-item small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 6px;
}
.receipt-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
}
.receipt-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.receipt-row p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 7px 0;
}
.receipt-row .actions {
  margin-top: 12px;
}
.term-copy {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-line;
  color: #617184;
  margin-bottom: 22px;
}
.rule-preview {
  padding: 18px;
  border-radius: 9px;
  background: #f4f6f9;
  margin: 20px 0 0;
}
.rule-preview .split-bar {
  max-width: none;
  height: 10px;
  margin-top: 12px;
}
.selection-bar {
  padding: 12px 22px;
  border-block: 1px solid #dce5ef;
  background: #f0f5fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  gap: 10px;
}
input[type="checkbox"] {
  accent-color: var(--navy);
}
.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
  color: #748499;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  background: var(--navy);
  color: white;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.nav-backdrop {
  display: none;
}
.error-page {
  padding: 60px 20px;
  text-align: center;
}
.error-page p {
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 12px;
}
.status-help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 15px 0;
}
.partner-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.partner-summary .avatar {
  width: 55px;
  height: 55px;
  font-size: 17px;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  #main {
    padding-top: 42px;
  }
  .chart {
    min-height: 260px;
  }
  .metric-value {
    font-size: 31px;
  }
  .page-heading {
    margin-bottom: 30px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    width: 215px;
    padding-inline: 13px;
  }
  .brand {
    padding-inline: 8px;
  }
  .brand img {
    width: 174px;
  }
  #main {
    padding: 27px 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .metric {
    padding: 0 17px;
  }
  .metric-value {
    font-size: 24px;
  }
  .overview-grid,
  .lower-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr);
    gap: 16px;
  }
  .paper-head {
    padding: 20px 18px 0;
  }
  .attention-list,
  .ranking {
    padding-inline: 18px;
  }
  td,
  th {
    padding-inline: 15px;
  }
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .overview-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .attention-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .attention-item {
    border: 0;
    padding: 20px 0;
    align-items: flex-start;
  }
  .attention-item > svg {
    display: none;
  }
  .attention-item strong {
    font-size: 10px;
  }
  .attention-icon {
    width: 27px;
    height: 27px;
  }
  .attention-icon svg {
    width: 16px;
  }
  .ranking {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .metrics {
    padding: 20px 0;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-label svg {
    display: none;
  }
  .metric-value {
    font-size: 22px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions .period-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    width: 246px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #17334f55;
    z-index: 19;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar {
    height: 61px;
    padding: 0 15px;
  }
  .breadcrumb {
    gap: 9px;
  }
  .breadcrumb > span:first-of-type,
  .breadcrumb .slash {
    display: none;
  }
  .topbar-date {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  #main {
    padding: 25px 18px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 260px;
  }
  .heading-actions .btn {
    font-size: 10px;
    padding: 9px 10px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  .metric {
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(n + 3) {
    border-bottom: 0;
  }
  .metric-value {
    font-size: 25px;
    margin: 9px 0 6px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-note {
    font-size: 9px;
  }
  .attention-list {
    display: block;
  }
  .attention-item {
    border-bottom: 1px solid var(--line);
    padding: 15px 0;
    align-items: center;
  }
  .attention-item > svg {
    display: block;
  }
  .attention-icon {
    height: 33px;
    width: 33px;
  }
  .attention-item strong {
    font-size: 11px;
  }
  .ranking {
    display: block;
  }
  .app-footer {
    padding: 10px 18px 25px;
    font-size: 8px;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .filters {
    padding: 14px;
    gap: 8px;
  }
  .filters input,
  .filters select {
    max-width: 100%;
    flex: 1;
    min-width: 110px;
  }
  .filter-search {
    flex-basis: 100%;
  }
  .table-wrap {
    padding-top: 8px;
  }
  .paper-head {
    padding: 20px 17px 0;
  }
  .section-tabs {
    gap: 22px;
  }
  .section-tabs button {
    font-size: 10px;
  }
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .modal-head,
  .modal-body {
    padding: 22px;
  }
  .modal-foot {
    padding: 16px 22px;
  }
  .form-grid {
    gap: 16px;
  }
  .table-footer {
    padding: 13px 15px;
  }
  .chart {
    padding-inline: 16px;
    min-height: 225px;
  }
  .chart-plot {
    gap: 3px;
  }
  .chart-column small {
    font-size: 7px;
  }
  .chart-summary {
    padding-inline: 18px;
  }
  .table-wrap td {
    padding-block: 15px;
  }
  .modal.drawer {
    width: 100vw;
  }
  .detail-grid {
    gap: 17px;
  }
  .selection-bar {
    padding: 12px 15px;
  }
  .topbar .environment {
    font-size: 8px;
  }
}
@media (max-width: 380px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: 1;
  }
  .page-heading {
    flex-direction: column;
  }
  .metric-value {
    font-size: 23px;
  }
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.nav-item span:last-child:not(:first-child) {
  margin-left: 0;
}
.sidebar-bottom .nav-item span {
  margin-left: auto;
}
.nav-group {
  margin-top: 19px;
}
.nav-item {
  min-height: 39px;
}
.coupon-code {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 1.2px;
  font-size: 13px;
  color: var(--navy);
}
.member-layout {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) 1.5fr;
  gap: 24px;
}
.member-pass {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.member-pass .eyebrow {
  color: #9bb0c8;
}
.member-pass h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin-top: 32px;
}
.member-pass > p {
  font-size: 12px;
  margin-top: 14px;
  color: #aebfd2;
}
.member-pass-bottom {
  border-top: 1px solid #ffffff24;
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.member-pass-bottom > span:first-child {
  font-size: 19px;
}
.member-pass-bottom small {
  font-size: 9px;
  color: #adbbcc;
}
.member-invite {
  padding: 30px;
}
.member-invite h2 {
  font-size: 22px;
  letter-spacing: -0.8px;
  margin: 15px 0;
}
.member-invite > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.member-coupon {
  border: 1px dashed #ced9e5;
  background: #f8fafc;
  border-radius: 8px;
  padding: 17px;
  margin: 23px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.member-coupon > span {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 25px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--navy);
}
.member-reward {
  display: flex;
  gap: 11px;
  color: var(--green);
  align-items: flex-start;
}
.member-reward strong {
  font-size: 11px;
  font-weight: 550;
  line-height: 1.6;
}
.member-reward p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.7;
}
.member-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 26px;
  gap: 30px;
}
.member-steps > div > span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #c0828f;
}
.member-steps h3 {
  font-size: 12px;
  margin-top: 12px;
}
.member-steps p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 10px;
}
@media (max-width: 1000px) {
  .member-layout {
    grid-template-columns: 1fr;
  }
  .member-pass {
    min-height: 260px;
  }
}
@media (max-width: 760px) {
  .member-steps {
    grid-template-columns: 1fr;
  }
  .member-coupon {
    padding: 13px;
  }
  .member-coupon > span {
    font-size: 18px;
  }
  .member-invite,
  .member-pass {
    padding: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
