:root {
  --bg: #f4f6fa;
  --surface: #fff;
  --surface2: #f8faff;
  --text: #17243d;
  --muted: #68768d;
  --line: #e4e9f1;
  --blue: #345bdc;
  --blue-soft: #edf2ff;
  --green: #147b63;
  --green-soft: #e9f7f0;
  --orange: #a36212;
  --orange-soft: #fff3df;
  --red: #c04550;
  --red-soft: #ffedf0;
  --shadow: 0 5px 20px #21365705;
  --sidebar: 254px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #101725;
  --surface: #192234;
  --surface2: #1d2940;
  --text: #e8eef9;
  --muted: #a2b0c7;
  --line: #2b3951;
  --blue: #8ea9ff;
  --blue-soft: #273758;
  --green: #72d7b3;
  --green-soft: #203b36;
  --orange: #edbf79;
  --orange-soft: #443829;
  --red: #ff9ba5;
  --red-soft: #452c37;
  --shadow: 0 5px 20px #00000012;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 Inter,
    "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
input,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 13px;
}
button {
  transition:
    background 0.16s,
    transform 0.16s,
    border-color 0.16s;
}
button:hover {
  background: var(--surface2);
  border-color: var(--blue);
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
small,
.small {
  font-size: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
}
.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-btn {
  width: 38px;
  height: 38px;
  padding: 8px;
  display: inline-grid;
  place-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.primary {
  background: #345bdc;
  color: #fff;
  border-color: #345bdc;
}
.primary:hover {
  background: #284cc6;
  color: white;
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 3px 0;
  font-weight: 600;
}
.pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.green {
  background: var(--green-soft);
  color: var(--green);
}
.pill.orange {
  background: var(--orange-soft);
  color: var(--orange);
}
.pill.red {
  background: var(--red-soft);
  color: var(--red);
}
.pill.gray {
  background: var(--bg);
  color: var(--muted);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.skip {
  position: fixed;
  top: -60px;
  z-index: 100;
  padding: 10px;
  background: var(--surface);
}
.skip:focus {
  top: 0;
}
#sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
  transition: width 0.2s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 22px 24px;
}
.brandmark {
  background: #345bdc;
  color: white;
  border-radius: 9px;
  font-weight: 800;
  letter-spacing: -2px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.brandtext strong {
  font-size: 17px;
  letter-spacing: -0.4px;
  display: block;
}
.brandtext small {
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.nav-scroll {
  overflow: auto;
  flex: 1;
  padding: 0 13px 15px;
  scrollbar-width: thin;
}
.nav-group {
  margin: 13px 0;
}
.nav-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 650;
}
.nav-group summary:after {
  content: "⌄";
  margin-left: auto;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-item {
  display: flex;
  gap: 11px;
  width: 100%;
  align-items: center;
  border: 0;
  background: none;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  min-height: 39px;
  color: var(--muted);
  margin: 2px 0;
}
.nav-item:hover {
  background: var(--bg);
  color: var(--text);
}
.nav-item.active {
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  background: var(--surface);
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
}
.side-bottom {
  border-top: 1px solid var(--line);
  padding: 14px;
}
.workspace-label {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace-label .avatar {
  background: var(--surface);
}
#shell {
  margin-left: var(--sidebar);
  transition: margin 0.2s;
}
#topbar {
  min-height: 78px;
  padding: 16px 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: var(--bg);
  border: 0;
  min-width: 240px;
  text-align: left;
}
.top-search kbd {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  padding: 0 5px;
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-select {
  border: 0;
  padding: 0 22px 0 0;
  font-size: 13px;
  font-weight: 600;
  max-width: 210px;
}
.header-field {
  display: flex;
  flex-direction: column;
}
.header-field small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.top-icons {
  display: flex;
  gap: 6px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.indicator {
  position: relative;
}
.indicator:after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-sizing: content-box;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.demo-badge {
  font-size: 10px;
  letter-spacing: 0.7px;
  border: 1px solid var(--line);
  background: var(--surface2);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
main {
  max-width: 1840px;
  margin: auto;
  padding: 24px 34px 32px;
  min-height: calc(100vh - 130px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 23px;
}
.breadcrumb button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--muted);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-head p {
  color: var(--muted);
  margin-top: 7px;
}
.page-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.welcome {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.kpis.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  text-align: left;
  min-width: 0;
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.kpi-top .icon {
  opacity: 0.65;
  width: 17px;
  height: 17px;
}
.kpi-value {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 650;
  white-space: nowrap;
}
.kpi-foot {
  font-size: 11px;
  margin-top: 9px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.trend {
  color: var(--green);
  font-weight: 600;
}
.trend.orange {
  color: var(--orange);
}
.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.grid.performance {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.grid.lower {
  grid-template-columns: 1.1fr 1fr 0.9fr;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  padding: 21px 23px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.panel-body {
  padding: 21px 23px;
}
.legend {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 2px;
  margin-right: 5px;
}
.legend i.teal {
  background: #64bba7;
}
.legend i.light {
  background: #c7d3f6;
}
.chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 225px;
  overflow: visible;
}
.chart text {
  font-size: 11px;
  fill: var(--muted);
}
.chart .gridline {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
.chart .hit:hover {
  opacity: 0.7;
  cursor: crosshair;
}
.chart circle:hover {
  r: 6;
  cursor: crosshair;
}
.chart-summary {
  display: flex;
  gap: 32px;
  margin: 18px 0 5px;
}
.chart-summary strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.6px;
}
.chart-summary small {
  font-size: 11px;
}
.mini-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mini-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.mini-stat p {
  font-size: 12px;
  color: var(--muted);
}
.mini-stat + .mini-stat {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.sparkline {
  width: 100%;
  height: 63px;
  margin-top: 8px;
}
.snapshot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.snapshot button {
  border: 0;
  border-radius: 0;
  text-align: left;
  padding: 21px 23px;
  background: none;
  position: relative;
}
.snapshot button:hover {
  background: var(--surface2);
}
.snapshot button:not(:nth-child(4n)) {
  border-right: 1px solid var(--line);
}
.snapshot button:nth-child(n + 5) {
  border-top: 1px solid var(--line);
}
.snapshot .number {
  font-size: 24px;
  font-weight: 650;
  display: block;
  margin: 9px 0 2px;
}
.snapshot .icon {
  color: var(--blue);
}
.snapshot small {
  display: block;
  font-size: 12px;
}
.rowlist {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rowlist:last-child {
  border-bottom: 0;
}
.rowlist .grow {
  flex: 1;
  min-width: 0;
}
.rowlist small {
  display: block;
}
.rowlist button {
  flex-shrink: 0;
}
.activity-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 8px;
  flex-shrink: 0;
}
.insight {
  background: linear-gradient(135deg, var(--blue-soft), var(--surface));
  border-color: var(--line);
}
.insight-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13px;
  line-height: 1.65;
}
.insight-item:last-child {
  border: 0;
}
.insight-item strong {
  color: var(--blue);
}
.progress {
  height: 6px;
  border-radius: 5px;
  background: var(--bg);
  overflow: hidden;
  margin-top: 8px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 5px;
}
.progress i.teal {
  background: #5cbaa1;
}
.progress-row {
  margin: 16px 0;
}
.progress-row > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 24px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
  white-space: nowrap;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 12px 1px;
  color: var(--muted);
  font-size: 13px;
}
.tabs button.active {
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 650;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.filter-bar input {
  min-width: 210px;
  flex: 1;
  max-width: 310px;
}
.filter-bar select {
  max-width: 180px;
  font-size: 12px;
}
.filter-caption {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
th {
  background: var(--surface2);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 13px 19px;
  border-bottom: 1px solid var(--line);
}
th button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  white-space: nowrap;
}
td {
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface2);
}
td.numeric,
th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td .sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.entity-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.entity-cell .avatar {
  border-radius: 8px;
  width: 32px;
  height: 32px;
}
.table-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  font-size: 12px;
  color: var(--muted);
}
.table-footer strong {
  color: var(--text);
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.aging {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 20px 23px;
}
.aging button {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}
.aging .age-bar {
  height: 80px;
  display: flex;
  align-items: end;
  margin: 12px 0;
}
.age-bar i {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
  min-height: 4px;
}
.aging strong {
  font-size: 16px;
  font-weight: 650;
  display: block;
}
.aging small {
  font-size: 11px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.report-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.report-card p {
  color: var(--muted);
  font-size: 13px;
  min-height: 40px;
}
.report-card .activity-icon {
  width: 40px;
  height: 40px;
}
.report-card .report-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.banner {
  padding: 16px 20px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 13px;
}
.banner small {
  display: block;
  color: inherit;
}
.account-card {
  padding: 24px;
  background: linear-gradient(125deg, #28499e, #203a77);
  color: white;
  border: 0;
}
.account-card:nth-child(2) {
  background: linear-gradient(125deg, #206978, #194b5c);
}
.account-card:nth-child(3) {
  background: linear-gradient(125deg, #49506f, #30394f);
}
.account-card small,
.account-card p {
  color: #cbd7f1;
}
.account-card strong {
  display: block;
  font-size: 29px;
  margin: 17px 0 7px;
  letter-spacing: -1px;
}
.account-card .panel-head {
  padding: 0;
}
.recon-grid {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 18px;
  align-items: start;
}
.recon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  margin: 9px 0;
  border-radius: 7px;
  cursor: pointer;
}
.recon-row:has(input:checked) {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.recon-row .grow {
  flex: 1;
}
.recon-row small {
  display: block;
}
.recon-row input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.recon-actions {
  padding-top: 60px;
  text-align: center;
}
.recon-actions .btn {
  width: 100%;
  margin: 12px 0;
}
.recon-actions p {
  font-size: 11px;
  color: var(--muted);
}
.matched-row {
  border-color: var(--green);
  background: var(--green-soft);
}
.future-hero {
  padding: 42px;
  background: linear-gradient(120deg, var(--surface), var(--blue-soft));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.future-hero p {
  max-width: 620px;
  color: var(--muted);
  margin: 14px 0 24px;
  font-size: 16px;
}
.future-symbol {
  font-size: 70px;
  color: var(--blue);
  opacity: 0.6;
}
.future-features {
  padding: 26px;
}
.future-features p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0;
}
.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.steps span {
  padding: 8px 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}
.notification {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.notification:last-child {
  border: 0;
}
.notification .grow {
  flex: 1;
}
.notification p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
}
.review-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  border: 1px dashed var(--blue);
  border-radius: 8px;
  background: var(--blue-soft);
}
.review-strip small {
  margin-left: auto;
}
.review-strip select {
  font-size: 12px;
}
.review-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 34px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
}
footer b {
  margin: 0 7px;
  color: var(--blue);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  padding: 0;
  max-height: 90vh;
  width: min(850px, 92vw);
  box-shadow: 0 25px 100px #081a3c35;
}
dialog::backdrop {
  background: #101c3f55;
  backdrop-filter: blur(3px);
}
dialog.drawer {
  margin: 0 0 0 auto;
  max-height: 100vh;
  height: 100vh;
  width: min(760px, 95vw);
  border-radius: 14px 0 0 14px;
}
.dialog-head {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 3;
}
.dialog-head h2 {
  font-size: 21px;
}
.dialog-body {
  padding: 25px 26px;
}
.dialog-body .kpis {
  gap: 10px;
}
.dialog-body .kpi {
  padding: 15px;
}
.dialog-body .kpi-value {
  font-size: 22px;
}
.dialog-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 17px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  bottom: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
.detail-grid small {
  display: block;
  font-size: 11px;
}
.detail-grid strong {
  font-size: 14px;
  display: block;
  margin-top: 4px;
}
.detail-heading {
  margin: 24px 0 12px;
}
.timeline {
  border-left: 2px solid var(--line);
  margin: 15px 0 0 7px;
  padding-left: 21px;
}
.timeline p {
  margin: 0 0 18px;
  font-size: 13px;
  position: relative;
}
.timeline p:before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  background: var(--blue);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.timeline small {
  display: block;
}
.search-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
}
.search-result {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 6px;
}
.search-result small {
  display: block;
}
.search-result .pill {
  margin-left: auto;
}
.report-sheet {
  padding: 25px;
  border: 1px solid var(--line);
}
.report-sheet h2 {
  margin: 8px 0;
}
.report-sheet .report-watermark {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 20px;
}
.report-sheet td {
  white-space: normal;
}
.report-sheet .total td {
  font-weight: 700;
  border-top: 2px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 80px);
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  z-index: 100;
  background: var(--text);
  color: var(--surface);
  border-radius: 9px;
  padding: 16px 22px;
  box-shadow: 0 8px 30px #0003;
  transition: 0.2s;
  font-size: 13px;
  max-width: 90vw;
  pointer-events: none;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.compact {
  --sidebar: 82px;
}
.compact .brand {
  padding: 27px 18px;
}
.compact .brandtext,
.compact .nav-label,
.compact .nav-count,
.compact .workspace-label,
.compact .nav-group summary {
  display: none;
}
.compact .nav-item {
  justify-content: center;
  padding: 11px;
}
.compact .nav-scroll {
  padding: 0 12px;
}
.compact .side-bottom button {
  font-size: 0;
}
.compact .side-bottom .icon {
  font-size: 16px;
}
.compact .nav-group {
  margin: 5px 0;
}
.compact .nav-group:not([open]) {
  display: none;
}
.compact .review-label {
  display: none;
}
@media (min-width: 1700px) {
  main {
    padding: 29px 42px;
  }
  .kpi {
    padding: 24px;
  }
  .kpi-value {
    font-size: 31px;
  }
  .panel-head {
    padding: 24px 26px 0;
  }
  .panel-body {
    padding: 24px 26px;
  }
  .chart {
    max-height: 255px;
  }
  .snapshot button {
    padding: 23px 26px;
  }
  #topbar {
    padding: 16px 42px;
  }
  .page-head {
    margin-bottom: 28px;
  }
}
@media (max-width: 1400px) {
  :root {
    --sidebar: 228px;
  }
  #topbar {
    padding: 14px 24px;
    gap: 13px;
  }
  .top-search {
    min-width: 190px;
  }
  .top-right {
    gap: 9px;
  }
  .header-field.company {
    display: none;
  }
  main {
    padding: 22px 24px;
  }
  .kpi {
    padding: 16px;
  }
  .kpi-value {
    font-size: 24px;
  }
  .kpi-top {
    font-size: 12px;
  }
  .kpi-top .icon {
    display: none;
  }
  .grid.lower {
    grid-template-columns: 1fr 1fr;
  }
  .grid.lower > .panel:last-child {
    grid-column: 1/-1;
  }
  .grid.lower .insight .panel-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
  }
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 210px;
  }
  .top-search {
    min-width: 150px;
  }
  .top-search kbd {
    display: none;
  }
  .topbar-period {
    display: none;
  }
  .top-right {
    gap: 6px;
  }
  .kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .kpis.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.performance,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.three > .panel:last-child {
    grid-column: 1/-1;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .snapshot {
    grid-template-columns: repeat(4, 1fr);
  }
  .recon-grid {
    grid-template-columns: 1fr;
  }
  .recon-actions {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .recon-actions .btn {
    width: auto;
  }
  .brand {
    padding-left: 15px;
  }
  .brandtext strong {
    font-size: 15px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 0px;
  }
  #sidebar {
    width: 230px;
    transform: translateX(-100%);
  }
  body.mobile-nav #sidebar {
    transform: translateX(0);
    box-shadow: 10px 0 50px #0003;
  }
  body.mobile-nav #shell {
    margin-left: 0;
  }
  .compact {
    --sidebar: 0px;
  }
  #topbar {
    padding: 12px 15px;
    gap: 10px;
  }
  .top-search {
    min-width: 0;
    width: 42px;
    padding: 10px;
  }
  .top-search span {
    display: none;
  }
  .top-right .indicator:first-child {
    display: none;
  }
  .top-icons {
    border: 0;
    padding: 0;
  }
  .top-right {
    margin-left: auto;
  }
  .demo-badge {
    font-size: 8px;
    padding: 5px;
  }
  .header-field {
    display: none;
  }
  .profile-btn {
    display: none;
  }
  main {
    padding: 20px 16px;
  }
  .page-head {
    display: block;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .page-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }
  .kpis,
  .kpis.four {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .kpi {
    padding: 15px;
  }
  .kpi-value {
    font-size: 23px;
  }
  .grid.lower,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .grid.lower .insight .panel-body {
    display: block;
  }
  .snapshot {
    grid-template-columns: repeat(2, 1fr);
  }
  .snapshot button:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .snapshot button:nth-child(2n) {
    border-right: 0;
  }
  .grid.two,
  .grid.performance {
    grid-template-columns: 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .aging {
    gap: 6px;
    padding: 17px;
  }
  .aging strong {
    font-size: 13px;
  }
  .aging small {
    font-size: 10px;
  }
  .panel-head {
    padding: 18px 18px 0;
  }
  .panel-body {
    padding: 18px;
  }
  .legend {
    gap: 7px;
    font-size: 10px;
  }
  .review-strip {
    flex-wrap: wrap;
  }
  .review-strip small {
    margin: 0;
  }
  .future-hero {
    padding: 26px;
  }
  .future-symbol {
    display: none;
  }
  footer {
    padding: 15px;
    display: block;
  }
  footer span {
    display: block;
  }
  .dialog-body {
    padding: 20px 15px;
  }
  .dialog-head {
    padding: 20px;
  }
  .detail-grid {
    gap: 15px;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  #toast {
    left: 50%;
  }
  .report-sheet {
    padding: 14px;
  }
  .compact .brandtext,
  .compact .nav-label,
  .compact .nav-group summary,
  .compact .workspace-label,
  .compact .review-label {
    display: revert;
  }
  .compact .nav-item {
    justify-content: flex-start;
  }
  .compact .nav-group:not([open]) {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep comparable KPI values on a common baseline. */
.kpi-top {
  min-height: 40px;
  align-items: flex-start;
}
.kpi-top .icon {
  margin-top: 2px;
}
@media (min-width: 1700px) {
  .kpi-top {
    min-height: 22px;
  }
}
