:root {
  --forest-950: #092d29;
  --forest-900: #0e3934;
  --forest-800: #174c45;
  --forest-700: #1f6257;
  --forest-100: #dcece7;
  --forest-50: #edf7f3;
  --ink: #142825;
  --ink-soft: #55706b;
  --paper: #fffef9;
  --canvas: #f2f1e9;
  --line: #dfe5df;
  --line-dark: #cbd6ce;
  --coral: #db674a;
  --coral-soft: #fff0ea;
  --amber: #b97714;
  --amber-soft: #fff4d8;
  --blue: #2f6f9f;
  --blue-soft: #eaf4fb;
  --red: #b8493c;
  --red-soft: #fff0ee;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 40, 37, 0.06), 0 4px 14px rgba(20, 40, 37, 0.04);
  --shadow-lg: 0 24px 80px rgba(7, 34, 30, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sidebar-width: 274px;
  --font-ui: "Manrope", "Avenir Next", "Century Gothic", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 5%, rgba(43, 131, 113, 0.08), transparent 28rem),
    linear-gradient(135deg, #f7f5ed 0%, var(--canvas) 55%, #edf3ed 100%);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(219, 103, 74, 0.28);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 10% 5%, rgba(110, 210, 183, 0.16), transparent 14rem),
    linear-gradient(180deg, var(--forest-800), var(--forest-950));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 10px 28px;
  color: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--forest-950);
  background: #d9e981;
  border-radius: 14px 14px 14px 5px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.brand-mark svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.nav-item {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.nav-item.is-active {
  color: var(--forest-950);
  background: #e8f1c3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.12);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.nav-badge {
  position: absolute;
  right: 10px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: var(--white);
  background: var(--coral);
  border: 2px solid var(--forest-800);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.nav-item.is-active .nav-badge {
  border-color: #e8f1c3;
}

.sidebar-spacer {
  flex: 1;
  min-height: 30px;
}

.shift-card {
  margin: 16px 4px 18px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.shift-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #dce98d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #bcd95d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(188, 217, 93, 0.12);
}

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

.shift-card strong {
  color: var(--white);
  font-size: 12px;
}

.shift-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.sidebar-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  color: var(--white);
  font-size: 12px;
}

.sidebar-user span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--forest-700);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.avatar-light {
  color: var(--forest-950);
  background: #d9e981;
}

.sidebar-more {
  color: rgba(255, 255, 255, 0.48);
}

.workspace {
  min-width: 0;
}

.topbar {
  height: 83px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(22px, 3.2vw, 48px);
  background: rgba(255, 254, 249, 0.8);
  border-bottom: 1px solid rgba(202, 214, 205, 0.75);
  backdrop-filter: blur(16px);
}

.page-heading {
  min-width: 0;
}

.page-heading h1,
.page-heading p {
  margin: 0;
}

.page-heading h1 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.page-heading p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

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

.top-search {
  min-width: 214px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.top-search svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.top-search kbd {
  margin-left: auto;
  padding: 2px 6px;
  color: #789089;
  background: #eef1ed;
  border: 1px solid #dce3dc;
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 9px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(20, 72, 64, 0.08);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.notification-button {
  position: relative;
  color: var(--forest-800);
  background: var(--white);
  border: 1px solid var(--line);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--coral);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 5px;
}

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

.top-user strong {
  font-size: 11px;
}

.top-user span {
  color: var(--ink-soft);
  font-size: 10px;
}

.menu-button {
  display: none;
}

.demo-strip {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 7px clamp(22px, 3.2vw, 48px);
  color: #6e561c;
  background: #fff6d8;
  border-bottom: 1px solid #eadcae;
  font-size: 10px;
}

.demo-strip > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.backend-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.backend-status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  content: "";
  background: #b97714;
  border-radius: 50%;
}

.backend-status.is-connected {
  color: #2b684f;
  font-weight: 700;
}

.backend-status.is-connected::before {
  background: #2d8a62;
  box-shadow: 0 0 0 3px rgba(45, 138, 98, 0.12);
}

.backend-status.is-unavailable {
  color: #9a4c3e;
}

.backend-status.is-unavailable::before {
  background: #b8493c;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  color: #6b4f0d;
  background: #f5dd8d;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.private-label {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #85703e;
  font-weight: 700;
}

.private-label svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.page-content {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 42px) clamp(22px, 3.2vw, 48px) 60px;
}

.view-enter > * {
  animation: rise-in 420ms both cubic-bezier(0.2, 0.75, 0.2, 1);
}

.view-enter > *:nth-child(2) {
  animation-delay: 70ms;
}

.view-enter > *:nth-child(3) {
  animation-delay: 120ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 25px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--forest-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.welcome-copy h2,
.section-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.welcome-copy p,
.section-intro p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.button-primary {
  color: var(--white);
  background: var(--forest-800);
  box-shadow: 0 7px 18px rgba(16, 71, 63, 0.18);
}

.button-primary:hover {
  background: var(--forest-900);
  box-shadow: 0 9px 22px rgba(16, 71, 63, 0.24);
}

.button-coral {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 7px 18px rgba(219, 103, 74, 0.2);
}

.button-coral:hover {
  background: #c9583e;
}

.button-whatsapp {
  color: var(--white);
  background: #168a50;
  border-color: #168a50;
  box-shadow: 0 7px 18px rgba(22, 138, 80, 0.2);
}

.button-whatsapp:hover {
  background: #117642;
  border-color: #117642;
  box-shadow: 0 9px 22px rgba(22, 138, 80, 0.25);
}

.button-secondary {
  color: var(--forest-800);
  background: var(--white);
  border-color: var(--line-dark);
}

.button-secondary:hover {
  background: var(--forest-50);
}

.button-quiet {
  color: var(--forest-700);
  background: transparent;
  border-color: var(--line);
}

.button-danger-quiet {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f1cec8;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  min-height: 142px;
  padding: 19px;
  overflow: hidden;
  background: rgba(255, 254, 249, 0.92);
  border: 1px solid rgba(203, 214, 206, 0.85);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.metric-card::after {
  position: absolute;
  right: -25px;
  bottom: -30px;
  width: 100px;
  height: 100px;
  content: "";
  background: radial-gradient(circle, rgba(51, 131, 113, 0.12), transparent 68%);
  border-radius: 50%;
}

.metric-card.metric-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 105% 110%, rgba(209, 231, 126, 0.2), transparent 10rem),
    linear-gradient(145deg, var(--forest-800), var(--forest-950));
  border-color: transparent;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.metric-dark .metric-label {
  color: rgba(255, 255, 255, 0.62);
}

.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--forest-700);
  background: var(--forest-50);
  border-radius: 9px;
}

.metric-icon.coral {
  color: var(--coral);
  background: var(--coral-soft);
}

.metric-icon.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.metric-dark .metric-icon {
  color: var(--forest-950);
  background: #d9e981;
}

.metric-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.metric-value {
  display: block;
  margin-top: 14px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 9px;
}

.metric-dark .metric-foot {
  color: rgba(255, 255, 255, 0.6);
}

.metric-trend {
  color: var(--forest-700);
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  background: rgba(255, 254, 249, 0.94);
  border: 1px solid rgba(203, 214, 206, 0.86);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.panel-header h3,
.panel-header p {
  margin: 0;
}

.panel-header h3 {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.panel-header p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  color: var(--forest-700);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover {
  color: var(--forest-950);
}

.text-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.table-scroll {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid #e9ede8;
}

.data-table th {
  color: #758a85;
  background: #fbfcf8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table td {
  font-size: 10px;
}

.data-table tbody tr {
  transition: background 120ms ease;
}

.data-table tbody tr:hover {
  background: #f8faf6;
}

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

.account-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-dot {
  width: 29px;
  height: 29px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--forest-800);
  background: var(--forest-100);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.account-dot.group {
  color: #936115;
  background: var(--amber-soft);
}

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

.account-cell strong {
  max-width: 190px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
}

.account-cell span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.amount-positive {
  color: var(--forest-700);
  font-weight: 800;
}

.amount-negative {
  color: var(--red);
  font-weight: 800;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.status-chip::before {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.status-confirmed,
.status-active,
.status-approved {
  color: #24765f;
  background: #e6f4ed;
}

.status-pending {
  color: #9a671a;
  background: var(--amber-soft);
}

.status-rejected,
.status-cancelled {
  color: var(--red);
  background: var(--red-soft);
}

.row-action {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.row-action:hover {
  color: var(--forest-800);
  background: var(--forest-50);
}

.row-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.approval-stack {
  display: grid;
  gap: 0;
}

.approval-mini {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

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

.approval-mini-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.approval-mini h4,
.approval-mini p {
  margin: 0;
}

.approval-mini h4 {
  font-size: 10px;
}

.approval-mini p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.approval-amount {
  font-size: 12px;
}

.approval-mini-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.mini-button {
  min-height: 30px;
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.mini-button.primary {
  color: var(--white);
  background: var(--forest-800);
  border-color: var(--forest-800);
}

.mini-button.secondary {
  color: var(--ink-soft);
  background: var(--white);
}

.empty-mini {
  padding: 38px 20px;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.section-intro h2 {
  font-size: clamp(27px, 2.6vw, 36px);
}

.toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  min-width: 220px;
  max-width: 430px;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
}

.search-field:focus-within {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(31, 98, 87, 0.1);
}

.search-field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--ink-soft);
  fill: currentColor;
}

.search-field input {
  width: 100%;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.search-field input::placeholder {
  color: #93a39f;
}

.result-count {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 9px;
}

.person-name {
  font-weight: 800;
}

.person-meta {
  color: var(--ink-soft);
  font-size: 8px;
}

.role-tag {
  display: inline-flex;
  padding: 3px 8px;
  color: var(--forest-700);
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tiny-action {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  color: var(--forest-700);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.tiny-action:hover {
  background: var(--forest-50);
}

.tiny-action.withdraw {
  color: var(--coral);
}

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

.group-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 17px;
  padding: 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.group-card::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  content: "";
  background: radial-gradient(circle, rgba(217, 233, 129, 0.2), transparent 68%);
}

.group-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--forest-800);
  background: linear-gradient(145deg, #e8f1c3, #d2e49b);
  border-radius: 19px 19px 19px 7px;
}

.group-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.group-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.group-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.group-top h3,
.group-top p {
  margin: 0;
}

.group-top h3 {
  font-size: 13px;
}

.group-top p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.group-balance {
  display: block;
  margin-top: 17px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.group-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 7px;
}

.avatar-stack span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  color: var(--forest-800);
  background: #e6eee9;
  border: 2px solid var(--paper);
  border-radius: 50%;
  font-size: 7px;
  font-weight: 800;
}

.avatar-stack small {
  margin-left: 7px;
  color: var(--ink-soft);
  font-size: 8px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #eef1ec;
  border-radius: 10px;
}

.filter-tab {
  min-height: 31px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.filter-tab.is-active {
  color: var(--forest-900);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(20, 40, 37, 0.1);
}

.approval-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
}

.approval-card-list {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.approval-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px;
  background: #fbfcf8;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.approval-card h3,
.approval-card p {
  margin: 0;
}

.approval-card h3 {
  font-size: 11px;
}

.approval-card p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.approval-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 8px;
}

.approval-card-side {
  min-width: 130px;
  text-align: right;
}

.approval-card-side strong {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
}

.rule-card {
  padding: 21px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(217, 233, 129, 0.18), transparent 12rem),
    linear-gradient(150deg, var(--forest-800), var(--forest-950));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.rule-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--forest-950);
  background: #d9e981;
  border-radius: 12px;
}

.rule-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.rule-card h3 {
  margin: 18px 0 7px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.rule-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
}

.rule-value {
  display: block;
  margin: 18px 0 5px;
  color: #e4f19e;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.rule-card small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.cash-summary {
  padding: 5px 20px 20px;
}

.cash-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 47px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.cash-line span {
  color: var(--ink-soft);
}

.cash-line.total {
  min-height: 66px;
  border-bottom: 0;
}

.cash-line.total span,
.cash-line.total strong {
  color: var(--ink);
  font-size: 14px;
}

.reconcile-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.reconcile-card h3,
.reconcile-card p {
  margin: 0;
}

.reconcile-card h3 {
  font-size: 14px;
}

.reconcile-card p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
}

.field {
  display: grid;
  gap: 7px;
}

.field + .field {
  margin-top: 13px;
}

.field label,
.field-label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.input-control,
.textarea-control,
.select-control {
  width: 100%;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  outline: 0;
}

.input-control,
.select-control {
  height: 43px;
  padding: 0 12px;
}

.textarea-control {
  min-height: 80px;
  padding: 11px 12px;
  resize: vertical;
}

.input-control:focus,
.textarea-control:focus,
.select-control:focus {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(31, 98, 87, 0.1);
}

.money-input-wrap {
  position: relative;
}

.money-prefix {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--ink-soft);
  font-weight: 800;
  transform: translateY(-50%);
}

.money-input-wrap .input-control {
  padding-left: 34px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.difference-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0;
  padding: 14px;
  background: #f4f7f3;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.difference-box span {
  color: var(--ink-soft);
  font-size: 9px;
}

.difference-box strong {
  font-size: 15px;
}

.difference-box.is-match {
  color: var(--forest-700);
  background: var(--forest-50);
  border-color: var(--forest-100);
}

.difference-box.is-off {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f1cec8;
}

.full-width {
  width: 100%;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 25, 22, 0.58);
  backdrop-filter: blur(6px);
  animation: modal-fade 180ms ease both;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: modal-rise 240ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.modal.modal-small {
  width: min(500px, 100%);
}

.modal.modal-receipt {
  width: min(760px, 100%);
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--line);
}

.modal-heading {
  min-width: 0;
  flex: 1;
}

.modal-heading h2,
.modal-heading p {
  margin: 0;
}

.modal-heading h2 {
  font-size: 17px;
  letter-spacing: -0.035em;
}

.modal-heading p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.modal-type-icon {
  width: 41px;
  height: 41px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--forest-700);
  background: var(--forest-50);
  border-radius: 12px;
}

.modal-type-icon.withdraw {
  color: var(--coral);
  background: var(--coral-soft);
}

.modal-type-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.modal-close {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--ink-soft);
  background: #f2f4f0;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
  background: #e7ebe6;
}

.modal-close svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.modal-body {
  padding: 21px 22px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 22px;
  background: #f8f9f5;
  border-top: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
}

.form-section + .form-section {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.form-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 800;
}

.step-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--forest-800);
  background: var(--forest-100);
  border-radius: 7px;
  font-size: 9px;
}

.modal-search {
  margin-bottom: 9px;
}

.account-picker-list {
  max-height: 208px;
  display: grid;
  gap: 7px;
  overflow-y: auto;
}

.account-pick {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  background: #fbfcf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.account-pick:hover,
.account-pick.is-selected {
  background: var(--forest-50);
  border-color: #a9cbbf;
}

.account-pick-main {
  min-width: 0;
}

.account-pick-main strong,
.account-pick-main span {
  display: block;
}

.account-pick-main strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-pick-main span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.account-pick-balance {
  font-size: 10px;
  font-weight: 800;
}

.selected-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: var(--forest-50);
  border: 1px solid #b6d6ca;
  border-radius: 11px;
}

.selected-account strong,
.selected-account span {
  display: block;
}

.selected-account strong {
  font-size: 10px;
}

.selected-account span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.change-account {
  color: var(--forest-700);
  background: transparent;
  border: 0;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

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

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.quick-amount {
  min-height: 31px;
  color: var(--forest-700);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.quick-amount:hover {
  background: var(--forest-50);
  border-color: #b6d6ca;
}

.field-help {
  color: var(--ink-soft);
  font-size: 8px;
}

.review-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 13px;
}

.review-head {
  padding: 18px;
  color: var(--white);
  background: linear-gradient(145deg, var(--forest-800), var(--forest-950));
}

.review-head.withdraw {
  background: linear-gradient(145deg, #b9533d, #84392c);
}

.review-head span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.review-head strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
}

.review-lines {
  padding: 7px 17px;
}

.review-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.review-line:last-child {
  border-bottom: 0;
}

.review-line span {
  color: var(--ink-soft);
}

.review-line strong {
  max-width: 65%;
  text-align: right;
}

.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  padding: 12px;
  color: #7f5b16;
  background: var(--amber-soft);
  border: 1px solid #ead797;
  border-radius: 10px;
  font-size: 8px;
}

.warning-box svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.success-receipt {
  padding: 5px 0 2px;
  text-align: center;
}

.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  color: var(--forest-800);
  background: #e2f2ea;
  border: 1px solid #b9dccc;
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(226, 242, 234, 0.55);
}

.success-mark.pending {
  color: #9a671a;
  background: var(--amber-soft);
  border-color: #ead797;
  box-shadow: 0 0 0 9px rgba(255, 244, 216, 0.65);
}

.success-mark svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.success-receipt h3,
.success-receipt p {
  margin: 0;
}

.success-receipt h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
}

.success-receipt p {
  max-width: 410px;
  margin: 6px auto 19px;
  color: var(--ink-soft);
  font-size: 9px;
}

.receipt-slip {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 17px;
  background: #f8faf6;
  border: 1px dashed #b9c8be;
  border-radius: 10px;
  text-align: left;
}

.receipt-slip::before,
.receipt-slip::after {
  position: absolute;
  top: -7px;
  width: 13px;
  height: 13px;
  content: "";
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.receipt-slip::before {
  left: -7px;
}

.receipt-slip::after {
  right: -7px;
}

.receipt-slip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.receipt-slip-head span,
.receipt-slip-head strong {
  display: block;
}

.receipt-kicker,
.receipt-date span {
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.receipt-slip-head > div:first-child strong {
  margin-top: 3px;
  color: var(--forest-800);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.receipt-date {
  text-align: right;
}

.receipt-date strong {
  margin-top: 3px;
  font-size: 9px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 9px;
}

.receipt-line span {
  color: var(--ink-soft);
}

.receipt-line.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.receipt-financial {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
  padding: 8px;
  background: #edf4ef;
  border: 1px solid #d5e4da;
  border-radius: 10px;
}

.receipt-financial > div {
  min-width: 0;
  padding: 9px;
  text-align: left;
}

.receipt-financial span,
.receipt-financial strong {
  display: block;
}

.receipt-financial span {
  color: var(--ink-soft);
  font-size: 7px;
}

.receipt-financial strong {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: -0.025em;
}

.receipt-financial .receipt-financial-main {
  color: var(--white);
  background: var(--forest-800);
  border-radius: 8px;
}

.receipt-financial .receipt-financial-main span {
  color: rgba(255, 255, 255, 0.65);
}

.receipt-financial .receipt-financial-main strong {
  font-size: 14px;
}

.receipt-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.receipt-meta-grid > div {
  min-width: 0;
  padding: 9px 10px;
  background: var(--paper);
}

.receipt-meta-grid span,
.receipt-meta-grid strong {
  display: block;
}

.receipt-meta-grid span {
  color: var(--ink-soft);
  font-size: 7px;
}

.receipt-meta-grid strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 8px;
}

.share-recipient {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #ecf8f0;
  border: 1px solid #c7e7d1;
  border-radius: 12px;
}

.share-recipient-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #168a50;
  border-radius: 12px;
}

.share-recipient-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.share-recipient-main {
  min-width: 0;
}

.share-recipient-main span,
.share-recipient-main strong,
.share-recipient-main small {
  display: block;
}

.share-recipient-main span {
  color: var(--ink-soft);
  font-size: 8px;
}

.share-recipient-main strong {
  margin-top: 2px;
  font-size: 11px;
}

.share-recipient-main small {
  margin-top: 2px;
  color: var(--forest-700);
  font-size: 9px;
  font-weight: 800;
}

.share-mode {
  padding: 4px 8px;
  color: #24765f;
  background: var(--white);
  border: 1px solid #c7e7d1;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.whatsapp-message-preview {
  max-height: 275px;
  margin: 7px 0 0;
  padding: 14px;
  overflow: auto;
  color: #24403b;
  background:
    radial-gradient(circle at 20px 20px, rgba(22, 138, 80, 0.035) 2px, transparent 2px),
    #f7faf7;
  background-size: 24px 24px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 12px;
  color: #6e561c;
  background: #fff6d8;
  border: 1px solid #eadcae;
  border-radius: 10px;
}

.privacy-note > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.privacy-note strong,
.privacy-note span {
  display: block;
}

.privacy-note strong {
  font-size: 8px;
}

.privacy-note span {
  margin-top: 2px;
  font-size: 7px;
}

.modal-message {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  border-radius: 12px;
}

.detail-hero-main {
  min-width: 0;
  flex: 1;
}

.detail-hero-main h3,
.detail-hero-main p {
  margin: 0;
}

.detail-hero-main h3 {
  font-size: 12px;
}

.detail-hero-main p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.detail-balance {
  text-align: right;
}

.detail-balance span,
.detail-balance strong {
  display: block;
}

.detail-balance span {
  color: var(--ink-soft);
  font-size: 8px;
}

.detail-balance strong {
  margin-top: 2px;
  font-size: 17px;
}

.detail-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.detail-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

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

.detail-list-row span {
  color: var(--ink-soft);
}

.member-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.member-row strong,
.member-row span {
  display: block;
}

.member-row strong {
  font-size: 9px;
}

.member-row span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.member-role {
  color: var(--forest-700);
  font-size: 8px;
  font-weight: 800;
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 390px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: var(--white);
  background: var(--forest-950);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(6, 29, 25, 0.22);
  animation: toast-in 260ms ease both;
  pointer-events: auto;
}

.toast.error {
  background: #873e34;
}

.toast svg {
  width: 18px;
  height: 18px;
  fill: #d9e981;
}

.toast.error svg {
  fill: #ffd1c9;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 10px;
}

.toast span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-overlay {
  display: none;
}

.empty-state {
  padding: 55px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--forest-700);
  background: var(--forest-50);
  border-radius: 14px;
}

.empty-state-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 12px;
}

.empty-state p {
  margin-top: 4px;
  font-size: 9px;
}

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

  .dashboard-grid,
  .approval-page-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

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

  .sidebar-overlay.is-visible {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(5, 25, 22, 0.45);
    backdrop-filter: blur(3px);
  }

  .menu-button {
    display: grid;
  }

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

@media (max-width: 720px) {
  .topbar {
    height: 72px;
    padding: 0 16px;
  }

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

  .page-heading p,
  .top-search,
  .top-user > div:not(.avatar) {
    display: none;
  }

  .topbar-actions {
    gap: 7px;
  }

  .demo-strip {
    padding: 8px 16px;
  }

  .demo-strip > div {
    display: block;
  }

  .demo-strip strong {
    margin-left: 5px;
  }

  .demo-strip > div > span:last-child,
  .private-label {
    display: none;
  }

  .page-content {
    padding: 23px 16px 46px;
  }

  .welcome-row,
  .section-intro {
    display: grid;
    align-items: start;
  }

  .quick-actions {
    width: 100%;
  }

  .quick-actions .button {
    flex: 1;
  }

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

  .metric-card {
    min-height: 125px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .result-count {
    margin-left: 0;
  }

  .filter-tabs {
    overflow-x: auto;
  }

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

  .form-grid .field-full {
    grid-column: auto;
  }

  .modal-layer {
    align-items: end;
    padding: 0;
  }

  .modal,
  .modal.modal-small {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .modal.modal-receipt {
    width: 100%;
  }

  .receipt-financial {
    grid-template-columns: 1fr;
  }

  .receipt-meta-grid {
    grid-template-columns: 1fr;
  }

  .share-recipient {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .share-mode {
    display: none;
  }

  .modal-footer {
    border-radius: 0;
  }

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

  .approval-card-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .approval-card-side strong {
    margin: 0;
  }

  .group-card {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 16px;
  }

  .group-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px 15px 15px 6px;
  }

  .group-balance {
    font-size: 23px;
  }

  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .toast {
    min-width: 0;
  }
}

@media (max-width: 460px) {
  .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .group-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-footer .button {
    width: 100%;
  }
}

@media print {
  .sidebar,
  .topbar,
  .demo-strip,
  .page-content,
  .modal-header,
  .modal-footer {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .modal-layer {
    position: static;
    display: block;
    padding: 0;
    background: none;
  }

  .modal {
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .modal-body {
    padding: 0;
  }
}
