@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.0336a89f.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body:has(.app) {
  overflow: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-feature-settings: "cv01" on, "cv10" on, "ss03" on;
  color: #15191e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.app {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  --brex-sidebar-width: 240px;
  --brex-sidebar-collapsed-width: 64px;
  --brex-nav-bar-height: 56px;
}

/* ── Sidebar ── */
.sidebar {
  --sidenav-spacing: 4px;
  width: 240px;
  min-width: 240px;
  height: 100vh;
  background: #f9f9fb;
  border-right: 1px solid rgba(66, 87, 138, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.18s cubic-bezier(0.86, 0, 0.07, 1), min-width 0.18s cubic-bezier(0.86, 0, 0.07, 1);
}

.sidebar-profile-wrap {
  position: relative;
  padding: calc(var(--sidenav-spacing) * 3) calc(var(--sidenav-spacing) * 2) calc(var(--sidenav-spacing) * 1);
  overflow: visible;
  z-index: 20;
}

.sidebar-profile {
  display: flex;
  width: 100%;
  align-items: center;
  height: calc(var(--sidenav-spacing) * 12);
  padding: calc(var(--sidenav-spacing) * 2);
  padding-left: calc(var(--sidenav-spacing) * 1.5);
  gap: calc(var(--sidenav-spacing) * 2);
  border-radius: 8px;
  border: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #60646c;
  background: transparent;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-profile-inner {
  display: flex;
  align-items: center;
  gap: calc(var(--sidenav-spacing) * 2);
  width: 100%;
  min-width: 0;
}

.sidebar-profile-leading {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.company-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgb(111, 115, 123);
  color: rgb(252, 252, 253);
  border: 1px solid rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-avatar-initials {
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.sidebar-profile-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.profile-name {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-feature-settings: "cv01" on, "cv10" on, "ss03" on;
  color: #15191e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-company {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 450;
  font-feature-settings: "cv01" on, "cv10" on, "ss03" on;
  color: #60646c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-accessory {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  color: #60646c;
}

.sidebar-profile:hover,
.sidebar-profile.open {
  background: rgba(84, 87, 142, 0.07);
}

.sidebar-profile.open .profile-chevron {
  transform: rotate(180deg);
}

.profile-chevron {
  width: 16px;
  height: 16px;
  color: #60646c;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-nav {
  flex: 1;
  padding: 4px 8px 48px;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-feature-settings: "cv01" on, "cv10" on, "ss03" on;
  -webkit-font-smoothing: antialiased;
  color: #60646c;
  margin-bottom: 1px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover {
  background: rgba(84, 87, 142, 0.07);
  color: #15191e;
}

.nav-item:hover .nav-icon {
  color: #15191e;
}

.nav-item.active {
  background: rgba(84, 87, 142, 0.07);
  color: #15191e;
  font-weight: 500;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #60646c;
}

.nav-item.active .nav-icon {
  color: #15191e;
}

.brex-icon,
.brex-icon-sm,
.brex-icon-md {
  flex-shrink: 0;
  color: currentColor;
}

.brex-icon {
  width: 16px;
  height: 16px;
}

.brex-icon-sm {
  width: 16px;
  height: 16px;
}

.brex-icon-md {
  width: 20px;
  height: 20px;
}

.info-icon {
  width: 14px;
  height: 14px;
  color: #a3a3a3;
}

.action-btn .brex-icon-sm {
  color: #60646C;
}

.nav-divider {
  height: 1px;
  background: rgba(66, 87, 138, 0.15);
  margin: 8px 10px;
}

.sidebar-footer {
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, rgba(249, 249, 251, 0) 0%, #f9f9fb 28%);
  pointer-events: none;
  z-index: 2;
}

.sidebar-collapse {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(66, 87, 138, 0.15);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #60646c;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  position: relative;
}

.sidebar-collapse:hover {
  background: color-mix(in oklch, #fff 98.5%, black);
  color: #15191e;
}

.sidebar-collapse-icon {
  width: 12px;
  height: 12px;
  display: block;
  transition: transform 0.18s cubic-bezier(0.86, 0, 0.07, 1);
}

.sidebar-collapse[data-collapsed="true"] .sidebar-collapse-icon {
  transform: rotate(180deg);
}

.sidebar-collapse-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 50%;
  transform: translateY(50%);
  background: #15191e;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 40;
}

.sidebar-collapse:hover .sidebar-collapse-tooltip,
.sidebar-collapse:focus-visible .sidebar-collapse-tooltip {
  opacity: 1;
}

/* ── Main ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-bottom: 1px solid #f0f0f0;
  height: 56px;
}

.page-title {
  font-size: 15px;
  font-weight: 600;
  color: #171717;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  width: 220px;
  color: #a3a3a3;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #171717;
  width: 100%;
}

.search-box input::placeholder {
  color: #a3a3a3;
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #525252;
}

.icon-btn:hover {
  background: #f5f5f5;
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  color: #404040;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.support-btn:hover {
  background: #f9f9f9;
}

/* ── Content ── */
.content {
  padding: 24px 32px 48px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.welcome-title {
  font-size: 20px;
  font-weight: 600;
  color: #15191e;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.home-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.welcome-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.welcome-actions-row .quick-actions {
  margin-bottom: 0;
  flex: 1;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 8px;
  right: auto;
  width: 252px;
  min-width: 252px;
  max-width: min(252px, calc(100vw - 24px));
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(66, 87, 138, 0.15),
    0 7px 27px rgba(0, 0, 0, 0.15);
  z-index: 5100;
  overflow: hidden;
  padding: 8px 0 0;
}

.profile-dropdown-header {
  padding: 4px 16px 12px;
}

.profile-dropdown-name {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  font-feature-settings: "cv01" on, "cv10" on, "ss03" on;
  -webkit-font-smoothing: antialiased;
  color: #15191e;
  white-space: nowrap;
}

.profile-dropdown-email {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: #6f737b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  height: 20px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid rgba(66, 87, 138, 0.15);
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #15191e;
  white-space: nowrap;
  box-sizing: border-box;
}

.profile-dropdown-menu {
  padding: 0;
}

.profile-dropdown-footer {
  padding: 0;
  margin: 0;
  border-top: none;
}

.profile-dropdown-company {
  padding: 10px 16px 12px;
  font-size: 13px;
  line-height: 18px;
  color: #6f737b;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  font-feature-settings: "cv01" on, "cv10" on, "ss03" on;
  -webkit-font-smoothing: antialiased;
  color: #15191e;
  text-align: left;
  border: none;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.12s ease;
}

.profile-menu-item .brex-icon-sm {
  width: 16px;
  height: 16px;
  color: #15191e;
  flex-shrink: 0;
}

.profile-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-menu-label {
  min-width: 0;
}

.profile-menu-item:hover {
  background: rgba(84, 87, 142, 0.07);
}

.profile-menu-item.sign-out {
  color: #a40000;
  padding-bottom: 12px;
  border-radius: 0 0 10px 10px;
}

.profile-menu-item.sign-out .brex-icon-sm {
  color: #a40000;
}

.profile-menu-item.sign-out:hover {
  background: rgba(164, 0, 0, 0.06);
}

.card-link {
  font-size: 12px;
  white-space: nowrap;
}

.customize-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #15191e;
  border: 1px solid rgba(66, 87, 138, 0.15);
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.customize-btn:hover {
  background: #fbfbfb;
}

/* Quick actions */
.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  height: 40px;
  min-width: 90px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #15191e;
  border: 1px solid rgba(66, 87, 138, 0.15);
  background: #f9f9fb;
  white-space: nowrap;
  transition: background 80ms, border-color 80ms;
}

.action-btn:hover {
  background: #fff;
  border-color: rgba(97, 106, 136, 0.3);
}

.action-btn svg {
  color: #60646c;
}

/* ── Cards grid ── */
.home-cards.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
}

.home-cards .home-card {
  flex: 1 0 calc(33.33% - 20px);
  min-width: 360px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.card,
.home-card {
  border: 1px solid rgba(66, 87, 138, 0.15);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-label {
  font-size: 14px;
  font-weight: 400;
  color: #15191e;
}

.card-stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-stat-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.balance-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 98px;
  padding: 16px 16px 0;
}

.balance-stat-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.balance-label-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.balance-card-body {
  padding: 0;
}

.segmented-control {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(84, 87, 142, 0.07);
  border-radius: 10px;
  padding: 2px;
  flex-shrink: 0;
}

.segmented-item {
  padding: 3.5px 8px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 16px;
  color: #6f737b;
  border: 1px solid transparent;
  background: transparent;
}

.segmented-item.active {
  color: #15191e;
  background: #fff;
  border-color: rgba(66, 87, 138, 0.15);
}

.segmented-divider {
  width: 1px;
  margin: 6px 0;
  background: transparent;
  border-left: 1px solid rgba(66, 87, 138, 0.15);
}

.pill-group {
  display: flex;
  gap: 0;
  background: #f0f0f0;
  border-radius: 6px;
  padding: 2px;
}

.pill {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: #737373;
}

.pill.active {
  background: #fff;
  color: #171717;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.outline-btn-sm {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #404040;
  border: 1px solid #e0e0e0;
  background: #fff;
  white-space: nowrap;
}

.outline-btn-sm:hover {
  background: #f9f9f9;
}

.card-body {
  padding: 12px 16px;
}

.home-card .card-body {
  padding: 0;
}

.home-card .card-body:not(.balance-card-body) {
  padding: 16px 16px 0;
}

.big-stat {
  font-size: 24px;
  font-weight: 600;
  color: #15191e;
  letter-spacing: -0.03em;
  line-height: 32px;
}

.stat-trends {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  color: #6f737b;
}

.trend-val {
  font-size: 12px;
  line-height: 16px;
  color: #6f737b;
  margin-right: 8px;
}

.balance-chart-wrap {
  height: 62px;
  padding: 0 16px 8px;
  overflow: hidden;
}

.balance-chart {
  display: block;
  width: 100%;
  height: 60px;
}

.card-divider {
  border: none;
  border-top: 1px dashed rgba(66, 87, 138, 0.15);
  margin: 0;
}

.home-card-footer {
  padding: 16px 12px 12px;
  border-top: none;
  margin-top: 0;
}

.footer-title.muted {
  font-size: 14px;
  font-weight: 400;
  color: #60646c;
}

.link-btn-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #15191e;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.link-btn-row:hover {
  color: #6f737b;
  text-decoration: underline;
}

.link-chevron {
  transform: rotate(90deg);
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 96px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 6px 4px;
  border: none;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #15191e;
}

.list-item.static {
  cursor: default;
}

.list-item:hover,
.list-item:focus-visible {
  background: #f9f9fb;
}

.list-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.list-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #15191e;
}

.list-item-sub {
  font-size: 12px;
  color: #6f737b;
}

.list-item-end {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #6f737b;
}

.list-item-amount {
  font-size: 14px;
  font-weight: 500;
  color: #15191e;
}

.status-badge-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin: 4px 16px 0;
  padding: 0 6px;
  background: #f5f7fb;
  border: 1px solid #ccdaeb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #00418c;
}

.credit-bar-official {
  padding: 8px 16px 12px;
}

.credit-bar-track {
  width: 100%;
  height: 8px;
  background: #ecf4fd;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}

.credit-bar-pending {
  position: absolute;
  inset: 0 auto 0 0;
  background: #91c4f9;
  border-radius: 9999px;
}

.credit-bar-balance {
  position: absolute;
  inset: 0 auto 0 0;
  background: #3293ff;
  border-radius: 9999px;
  z-index: 1;
}

.credit-legend-official {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: #6f737b;
}

.rewards-footer {
  padding-top: 12px;
}

.rewards-list-official {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
}

.reward-row-official {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #15191e;
}

.reward-icon-wrap {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reward-icon-wrap svg {
  width: 12px;
  height: 12px;
  color: #60646c;
}

.reward-text strong {
  font-weight: 600;
}

.trend {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #737373;
}

.trend.up svg { color: #16a34a; }
.trend.down svg { color: #dc2626; }

.balance-bar {
  height: 4px;
  background: #2563eb;
  border-radius: 2px;
  margin-top: 12px;
}

.autopay-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
}

.credit-bar-section {
  margin-top: 12px;
}

.credit-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.credit-bar-fill {
  height: 100%;
  width: 0%;
  background: #2563eb;
  border-radius: 3px;
}

.credit-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #737373;
}

.credit-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.blue { background: #2563eb; }
.dot.light-blue { background: #93c5fd; }

.credit-available {
  margin-left: auto;
  color: #525252;
}

.card-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.card-footer.dotted-top {
  border-top: 1px dashed #e5e5e5;
}

.footer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: #171717;
}

.link {
  font-size: 12px;
  color: #2563eb;
  font-weight: 500;
  white-space: nowrap;
}

.link:hover {
  text-decoration: underline;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-row,
.category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #404040;
}

.return-badge {
  font-size: 11px;
  color: #737373;
  font-weight: 400;
}

.placeholder-text {
  font-size: 12px;
  color: #a3a3a3;
  margin-top: 12px;
  line-height: 1.5;
}

.rewards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.reward-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #404040;
}

.reward-mult {
  font-weight: 600;
  color: #171717;
  min-width: 22px;
}

.reward-icon {
  width: 16px;
  height: 16px;
  color: #737373;
}

/* ── Activity section ── */
.activity-section {
  border: 1px solid rgba(66, 87, 138, 0.15);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 12px;
  border-bottom: 1px solid #f3f3f7;
  min-height: 44px;
}

.tabs-official {
  display: flex;
  gap: 20px;
  align-items: center;
}

.tab-official {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 4px 8px;
  margin: 0 -8px;
  font-size: 14px;
  font-weight: 500;
  color: #6f737b;
  background: transparent;
  border: none;
}

.tab-official:hover {
  color: #15191e;
  background: #f9f9fb;
  border-radius: 10px;
}

.tab-official.active {
  color: #15191e;
}

.tab-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #15191e;
  border-radius: 4px;
}

.activity-table-wrap {
  position: relative;
}

.activity-table.official thead th {
  height: 48px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #60646c;
  background: #f9f9fb;
  border-bottom: 1px solid rgba(66, 87, 138, 0.15);
  border-right: 1px solid rgba(66, 87, 138, 0.15);
}

.activity-table.official thead th:first-child {
  padding-left: 20px;
}

.activity-table.official thead th:last-child {
  border-right: none;
  padding-right: 20px;
}

.activity-table.official tbody td {
  padding: 12px 20px;
  font-size: 14px;
  border-bottom: 1px solid #f3f3f7;
}

.activity-table.official .amount-col {
  text-align: right;
}

.tx-empty-panel {
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(66, 87, 138, 0.15);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.tx-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 16px;
  text-align: center;
}

.tx-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(84, 87, 142, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60646c;
  margin-bottom: 8px;
}

.tabs {
  display: flex;
  gap: 0;
}

.tab {
  padding: 14px 16px;
  font-size: 13px;
  color: #737373;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab.active {
  color: #171717;
  font-weight: 600;
  border-bottom-color: #171717;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
}

.activity-table thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.activity-table tbody td {
  padding: 0;
}

.empty-row td {
  height: 220px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 40px;
  color: #a3a3a3;
  font-size: 13px;
}

.tx-empty .empty-title {
  font-size: 14px;
  font-weight: 600;
  color: #171717;
  margin-top: 4px;
}

.tx-empty .empty-sub {
  font-size: 13px;
  color: #737373;
}

/* ── Curated for you ── */
.curated-section {
  margin-top: 0;
  padding: 0 20px 36px;
  margin-left: -20px;
  margin-right: -20px;
}

.curated-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding-right: 4px;
}

.curated-title {
  font-size: 20px;
  font-weight: 600;
  color: #15191e;
  line-height: 28px;
}

.new-badge-official {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 6px;
  background: #f5f7fb;
  border: 1px solid #ccdaeb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #00418c;
}

.curated-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.curated-track-h {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0;
}

.curated-track-h::-webkit-scrollbar {
  display: none;
}

.curated-card-h {
  flex: 0 0 420px;
  scroll-snap-align: start;
  height: 156px;
}

.curated-card-h-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(66, 87, 138, 0.15);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.curated-card-h-inner:hover {
  box-shadow: 0 0 6px rgba(16, 24, 40, 0.05), 0 6px 10px -4px rgba(16, 24, 40, 0.1), 0 0 2px 1px rgba(16, 24, 40, 0.02);
  transform: translateY(-1px);
}

.curated-card-h-art {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ccdee7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curated-card-h-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curated-card-h-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 124px;
  min-width: 0;
  flex: 1;
}

.curated-card-h-title {
  font-size: 14px;
  font-weight: 600;
  color: #15191e;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.curated-card-h-desc {
  font-size: 14px;
  color: #6f737b;
  line-height: 20px;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.curated-card-h-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #15191e;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.curated-arrow-btn {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(66, 87, 138, 0.15);
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 101;
  cursor: pointer;
  color: #15191e;
}

.curated-carousel-wrap:hover .curated-arrow-btn {
  opacity: 1;
}

.curated-fade {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
  z-index: 100;
}

.curated-art-summer { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.curated-art-agents { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.curated-art-invoices { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.curated-art-puzzle { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.curated-art-slack { background: linear-gradient(135deg, #ecfccb, #d9f99d); }
.curated-art-bookkeeper { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.curated-art-erp { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.curated-art-rideshare { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }
.curated-art-gmail { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.curated-art-vendor { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }

.curated-carousel {
  position: relative;
}

.curated-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.curated-track::-webkit-scrollbar {
  display: none;
}

.curated-card {
  flex: 0 0 min(100%, 360px);
  scroll-snap-align: start;
  display: flex;
  gap: 0;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 140px;
  cursor: pointer;
}

.curated-card-art {
  width: 140px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.curated-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curated-art-summer {
  background: #111;
}

.curated-art-agents {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  position: relative;
}

.curated-art-agents::after {
  content: "AGENTS";
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #737373;
}

.curated-art-invoices {
  background: #ede9fe;
}

.curated-card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.curated-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 6px;
  line-height: 1.35;
}

.curated-card-desc {
  font-size: 12px;
  color: #737373;
  line-height: 1.5;
  margin-bottom: 10px;
}

.curated-card-link {
  font-size: 12px;
  font-weight: 500;
  color: #2563eb;
  padding: 0;
  text-align: left;
}

.curated-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.curated-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: color-mix(in srgb, #15191e 20%, transparent);
  cursor: pointer;
}

.curated-dot:not(:first-of-type) {
  margin-left: 16px;
}

.curated-dot.active {
  background: #15191e;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid .card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 16px;
  }
  .topbar {
    padding: 12px 16px;
  }
}

/* ── Dashboard pages ── */
.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 13px;
  color: #737373;
  margin-top: 4px;
}

.btn-primary-sm {
  height: 36px;
  padding: 0 16px;
  background: #f36030;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary-sm:hover {
  background: #e05528;
}

.stat-strip {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #737373;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #171717;
  letter-spacing: -0.02em;
}

.data-panel {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.data-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.data-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: #171717;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.data-table tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: #404040;
  border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.cell-sub {
  font-size: 12px;
  color: #737373;
  margin-top: 2px;
}

.link-btn {
  font-size: 12px;
  color: #2563eb;
  font-weight: 500;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #525252;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.filter-tab.active {
  background: #171717;
  color: #fff;
  border-color: #171717;
  font-weight: 500;
}

.filter-tab:hover:not(.active) {
  background: #f5f5f5;
}

.status-badge.success {
  background: #ecfdf5;
  color: #059669;
}

.status-badge.danger {
  background: #fef2f2;
  color: #dc2626;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.account-detail-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.account-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.account-detail-name {
  font-size: 13px;
  font-weight: 600;
  color: #171717;
}

.account-detail-balance {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.account-detail-type {
  font-size: 12px;
  color: #737373;
  margin-bottom: 16px;
}

.account-detail-actions {
  display: flex;
  gap: 8px;
}

.search-row {
  margin-bottom: 16px;
}

.page-search {
  width: 280px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.report-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.report-card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.report-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #525252;
  margin-bottom: 12px;
}

.report-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.report-card-desc {
  font-size: 12px;
  color: #737373;
  line-height: 1.5;
  margin-bottom: 12px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.integration-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
}

.integration-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.integration-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #525252;
}

.integration-name {
  font-size: 14px;
  font-weight: 600;
}

.integration-status {
  margin-bottom: 8px;
}

.integration-sync {
  font-size: 12px;
  color: #737373;
  margin-bottom: 16px;
}

.settings-list {
  padding: 8px 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  color: #404040;
  border-bottom: 1px solid #f0f0f0;
}

.settings-row:last-child {
  border-bottom: none;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: #2563eb;
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

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

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8e8e8;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rewards-hero {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rewards-hero-label {
  font-size: 13px;
  color: #737373;
}

.rewards-hero-value {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.rewards-grid {
  margin-bottom: 0;
}

.redeem-option {
  cursor: pointer;
  padding: 6px 0;
  border-radius: 6px;
}

.redeem-option:hover {
  color: #171717;
}

.panel-empty {
  padding: 40px;
}

.panel-empty .empty-state {
  padding: 20px;
}

/* Command palette — anchored under topbar Search */
.command-palette {
  position: fixed;
  inset: 0;
  z-index: 7000;
  pointer-events: none;
}

.command-palette:not([hidden]) {
  pointer-events: auto;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.command-dialog {
  position: fixed;
  max-width: 480px;
  min-width: 360px;
  background: #fff;
  border: 1px solid rgba(66, 87, 138, 0.15);
  border-radius: 12px;
  box-shadow:
    rgba(16, 24, 40, 0.09) 0 12px 20px -14px,
    rgba(16, 24, 40, 0.1) 0 4px 12px 2px,
    rgba(16, 24, 40, 0.14) 0 2px 4px -4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.command-list {
  max-height: min(420px, 60vh);
  overflow-y: auto;
  padding: 12px 12px 8px;
}

.command-section + .command-section {
  margin-top: 12px;
  padding-top: 4px;
}

.command-section-label {
  padding: 0 4px 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #60646c;
}

.command-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.command-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border: none;
  border-radius: 8px;
  background: #f3f3f7;
  color: #15191e;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
}

.command-scope:hover {
  background: #ececf2;
}

.command-scope.is-active {
  background: #ecf4fd;
  color: #006ef5;
}

.command-scope svg,
.command-item-icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: currentColor;
}

.command-jump-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #15191e;
}

.command-item:hover,
.command-item.active {
  background: #f0f1f8;
}

.command-item-label {
  min-width: 0;
}

.command-empty {
  padding: 16px 8px;
  text-align: left;
  color: #737373;
  font-size: 13px;
}

.command-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(66, 87, 138, 0.1);
  background: #fff;
}

.command-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: #6f737b;
}

.command-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(66, 87, 138, 0.18);
  border-radius: 4px;
  background: #f7f7f9;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #5b6571;
  box-shadow: 0 1px 0 rgba(21, 25, 30, 0.04);
}

/* Notifications panel */
.notification-wrap {
  position: relative;
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  font-weight: 600;
}

.notifications-list {
  max-height: 320px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  text-align: left;
}

.notification-item:hover {
  background: #fafafa;
}

.notification-item.unread .notification-title {
  font-weight: 600;
}

.notification-title {
  font-size: 13px;
  color: #171717;
}

.notification-time {
  font-size: 11px;
  color: #737373;
}

.panel-empty-text {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #737373;
}

/* Sidebar collapsed */
.app.sidebar-collapsed .sidebar {
  --sidebar-collapsed-width: 64px;
  width: var(--sidebar-collapsed-width);
  min-width: var(--sidebar-collapsed-width);
  overflow: visible;
}

.app.sidebar-collapsed .sidebar .nav-item {
  justify-content: center;
  padding: 10px;
  gap: 0;
}

.app.sidebar-collapsed .sidebar .nav-item-label {
  display: none;
}

.app.sidebar-collapsed .sidebar .sidebar-profile-content,
.app.sidebar-collapsed .sidebar .sidebar-profile-accessory {
  display: none;
}

.app.sidebar-collapsed .sidebar .sidebar-profile-wrap {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  z-index: 40;
  padding: 12px 8px 8px;
}

.app.sidebar-collapsed .sidebar .profile-dropdown {
  position: fixed;
  z-index: 5100;
}

/* Portaled menu — anchored under profile button in left nav */
.profile-dropdown.profile-dropdown--sidebar {
  position: fixed !important;
  z-index: 5100 !important;
  margin: 0;
  overflow: visible;
}

.app.sidebar-collapsed .sidebar .sidebar-profile {
  width: 100%;
  min-width: 0;
  height: 36px;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 0;
}

.app.sidebar-collapsed .sidebar .sidebar-profile-inner {
  width: auto;
  min-width: 0;
  justify-content: center;
  gap: 0;
}

.app.sidebar-collapsed .sidebar .company-avatar {
  width: 32px;
  height: 32px;
}

.app.sidebar-collapsed .sidebar .company-avatar-initials {
  font-size: 11px;
}

.app.sidebar-collapsed .sidebar .sidebar-footer {
  display: flex;
  justify-content: center;
  padding: 12px 0 16px;
  overflow: visible;
}

.app.sidebar-collapsed .sidebar .sidebar-collapse-tooltip {
  left: calc(100% + 10px);
}

/* Modal form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #404040;
  margin-bottom: 4px;
}

.modal-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.modal-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #404040;
}

/* Home extras */
.info-tooltip-wrap {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.info-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #171717;
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
}

.info-tooltip-wrap:hover .info-tooltip {
  display: block;
}

.cashflow-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cashflow-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #404040;
}

.cashflow-net {
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}

.curated-next-btn {
  margin-left: auto;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.curated-next-btn:hover {
  background: #fafafa;
}

.curated-art-invoicing {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

@media (max-width: 1200px) {
  .home-cards .home-card {
    flex: 1 0 calc(50% - 20px);
  }
}

@media (max-width: 900px) {
  .home-cards .home-card {
    flex: 1 0 100%;
  }
}

@media (max-width: 1200px) {
  .account-detail-grid,
  .report-grid,
  .integration-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .account-detail-grid,
  .report-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    flex-direction: column;
  }
}

/* Side drawer (Deposit funds, etc.) — must sit above topbar (z-index: 5000) */
.side-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(21, 25, 30, 0.28);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.side-drawer-overlay.is-open {
  opacity: 1;
}

.side-drawer-overlay.is-closing {
  opacity: 0;
}

.side-drawer-overlay.is-closing .side-drawer {
  transform: translateX(100%);
}

.side-drawer {
  width: min(480px, 100vw);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  align-self: stretch;
  background: #fff;
  box-shadow: -8px 0 32px rgba(21, 25, 30, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.side-drawer-overlay.is-open .side-drawer {
  transform: translateX(0);
}

/* While a drawer is open, keep underlying chrome from looking "active" */
body.drawer-open .topbar-ref,
body.drawer-open .d-eao {
  pointer-events: none;
}

body.drawer-open .home-quick-action:focus,
body.drawer-open .home-quick-action:focus-visible {
  outline: none;
  box-shadow: none;
}

.side-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px 0 20px;
  flex-shrink: 0;
}

.side-drawer-top-title {
  font-size: 14px;
  font-weight: 500;
  color: #15191e;
}

.side-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #15191e;
  cursor: pointer;
}

.side-drawer-close:hover {
  background: #f3f3f7;
}

.side-drawer-header {
  padding: 4px 20px 20px;
  border-bottom: 2px solid rgba(84, 87, 142, 0.07);
  flex-shrink: 0;
}

.side-drawer-title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: #15191e;
}

.side-drawer-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #60646c;
}

.side-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 8px;
}

.deposit-option-list {
  display: flex;
  flex-direction: column;
}

.deposit-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px 12px;
  border: none;
  border-bottom: 1px solid rgba(66, 87, 138, 0.12);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 8px;
}

.deposit-option:last-child {
  border-bottom: none;
}

.deposit-option:hover {
  background: #ecf4fd;
}

.deposit-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  flex-shrink: 0;
  color: #60646c;
  margin-top: 2px;
}

.deposit-option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.deposit-option-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: #15191e;
}

.deposit-option-desc {
  font-size: 14px;
  line-height: 20px;
  color: #90949c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deposit-option-badge {
  flex-shrink: 0;
  align-self: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ecf4fd;
  color: #00418c;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
