/* =========================================================
   FitSpend
   Dashboard Styles — Standalone
   ========================================================= */

/* =========================================================
   Expenses Project
   Shared Styles — Homepage + Dashboard
   ========================================================= */


/* =========================================================
   Variables
   ========================================================= */

:root {
  --bg: #f5f6fa;
  --card: #ffffff;

  --text: #172033;
  --muted: #7a8292;
  --muted-dark: #626b7c;

  --border: #e5e8ef;

  --primary: #6f63d9;
  --primary-dark: #5e52c7;
  --primary-light: #f0edff;
  --primary-lighter: #f7f5ff;

  --income: #27977e;
  --income-dark: #168f77;
  --income-bg: #edf8f5;

  --expense: #c23f61;
  --expense-bg: #fff0f4;

  --cash: #4f82d9;
  --cash-bg: #edf4ff;

  --total: #3a9b88;
  --total-bg: #edf8f5;

  --spending: #c23f61;
  --spending-bg: #fff2f5;

  --shadow:
    0 8px 28px rgba(24, 32, 52, 0.07);

  --shadow-soft:
    0 4px 18px rgba(24, 32, 52, 0.05);

  --shadow-large:
    0 18px 55px rgba(24, 32, 52, 0.10);

  --radius-lg: 22px;
  --radius-md: 17px;
  --radius-sm: 13px;
}


/* =========================================================
   Reset
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    linear-gradient(
      180deg,
      #f7f8fb 0%,
      #f2f3f7 100%
    );

  color: var(--text);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  font-family: inherit;
}

body,
button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline:
    3px solid rgba(111, 99, 217, 0.22);

  outline-offset: 2px;
}


/* =========================================================
   Shared Container
   ========================================================= */

.section-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;
  z-index: 20;

  width: min(1480px, calc(100% - 36px));

  min-height: 86px;

  margin: 16px auto 0;

  padding: 14px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.96);

  border:
    1px solid var(--border);

  border-radius: 24px;

  box-shadow: var(--shadow-soft);
}

.header-inner {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


/* =========================================================
   Brand
   ========================================================= */

.brand {
  display: flex;
  align-items: center;

  gap: 15px;

  color: var(--text);

  text-decoration: none;

  flex-shrink: 0;
}

.brand-icon {
  width: 56px;
  height: 56px;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  gap: 5px;

  padding: 12px;

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      #f0edff,
      #e7e2ff
    );
}

.brand-icon span {
  width: 7px;

  border-radius:
    5px 5px 2px 2px;

  background: var(--primary);
}

.brand-icon span:nth-child(1) {
  height: 18px;
}

.brand-icon span:nth-child(2) {
  height: 28px;
}

.brand-icon span:nth-child(3) {
  height: 37px;
}


/* Homepage brand */

.brand-content {
  display: flex;
  flex-direction: column;

  gap: 3px;

  min-width: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 850;

  letter-spacing: -0.4px;

  white-space: nowrap;
}

.brand-tagline {
  color: var(--muted);

  font-size: 12px;
  font-weight: 500;

  white-space: nowrap;
}


/* Existing Dashboard brand */

.brand-text {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.brand-text strong {
  font-size: 19px;
  font-weight: 850;

  letter-spacing: -0.4px;
}

.brand-text small {
  color: var(--muted);

  font-size: 12px;
  font-weight: 500;
}


/* =========================================================
   Homepage Navigation
   ========================================================= */

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 28px;

  margin-left: auto;
}

.header-nav a {
  color: #596276;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.2s ease;
}

.header-nav a:hover {
  color: var(--primary);
}


/* =========================================================
   Homepage Account Button
   ========================================================= */

.header-actions {
  display: flex;
  align-items: center;

  flex-shrink: 0;
}

.account-button {
  min-height: 46px;

  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid #e1e4ea;

  border-radius: 14px;

  background: #ffffff;

  color: var(--text);

  font-size: 14px;
  font-weight: 750;

  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.account-button:hover {
  background: #fafbfc;

  border-color: #d6dae2;

  transform: translateY(-1px);
}


/* Existing Dashboard Logout */

.logout-btn {
  min-height: 48px;

  padding: 0 20px;

  border:
    1px solid #e1e4ea;

  border-radius: 14px;

  background: #ffffff;

  color: var(--text);

  font-size: 14px;
  font-weight: 750;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.logout-btn:hover {
  background: #fafbfc;

  border-color: #d6dae2;

  transform: translateY(-1px);
}


/* =========================================================
   Buttons
   ========================================================= */

.primary-button,
.secondary-button {
  min-height: 52px;

  padding: 0 25px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  font-size: 15px;
  font-weight: 800;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.primary-button {
  background:
    linear-gradient(
      145deg,
      #7569df,
      #6256cf
    );

  color: #ffffff;

  box-shadow:
    0 8px 20px rgba(111, 99, 217, 0.20);
}

.primary-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 25px rgba(111, 99, 217, 0.25);
}

.secondary-button {
  border:
    1px solid #dfe3eb;

  background: #ffffff;

  color: #4e586a;
}

.secondary-button:hover {
  background: #fafbfc;

  border-color: #d5d9e1;

  transform: translateY(-2px);
}




/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard {
  width: min(1480px, calc(100% - 36px));

  margin:
    26px auto
    60px;
}


/* =========================================================
   Dashboard Main Actions
   ========================================================= */

.actions {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin-bottom: 18px;
}

.action-card {
  width: 100%;

  min-height: 150px;

  padding:
    24px 28px;

  display: flex;
  align-items: center;

  gap: 22px;

  border:
    1px solid var(--border);

  border-radius: 24px;

  text-align: left;

  cursor: pointer;

  box-shadow: var(--shadow-soft);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.action-card:hover {
  transform: translateY(-2px);

  box-shadow: var(--shadow);
}

.income-action {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f3fbf8 100%
    );
}

.expense-action {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #faf7ff 100%
    );
}

.action-icon {
  width: 72px;
  height: 72px;

  flex:
    0 0 72px;

  display: grid;
  place-items: center;

  border-radius: 20px;

  color: #ffffff;

  font-size: 42px;
  font-weight: 300;

  line-height: 1;
}

.income-action .action-icon {
  background:
    linear-gradient(
      145deg,
      #20a78b,
      #168f77
    );
}

.expense-action .action-icon {
  background:
    linear-gradient(
      145deg,
      #6f45e8,
      #5734d3
    );
}

.action-content {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.action-content strong {
  color: var(--text);

  font-size: 22px;
  font-weight: 850;

  letter-spacing: -0.4px;
}

.action-content small {
  color: var(--muted);

  font-size: 14px;
  font-weight: 500;
}

.action-arrow {
  margin-left: auto;

  color: #8e96a4;

  font-size: 34px;
  font-weight: 300;

  line-height: 1;
}


/* =========================================================
   Dashboard Payday
   ========================================================= */

.payday-link {
  width: 100%;

  min-height: 104px;

  margin:
    0 0 20px;

  padding:
    18px 24px;

  display: flex;
  align-items: center;

  gap: 17px;

  border:
    1px solid var(--border);

  border-radius: 24px;

  background: var(--card);

  color: var(--text);

  text-align: left;

  cursor: pointer;

  box-shadow: var(--shadow-soft);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.payday-link:hover {
  transform: translateY(-1px);

  box-shadow: var(--shadow);
}

.payday-icon {
  width: 54px;
  height: 54px;

  flex:
    0 0 54px;

  display: grid;
  place-items: center;

  border-radius: 17px;

  background: #f0f1f7;

  color: #596276;

  font-size: 17px;
}

.payday-content {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.payday-content strong {
  font-size: 18px;
  font-weight: 850;
}

.payday-content small {
  color: var(--muted);

  font-size: 12px;
}

.payday-value {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 13px;

  font-size: 32px;
  font-weight: 850;
}

.payday-value > span:last-child {
  color: #9aa1ae;

  font-size: 29px;
  font-weight: 300;
}


/* =========================================================
   Dashboard Financial Grid
   ========================================================= */

.financial-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;

  margin-bottom: 22px;
}

.financial-card {
  min-width: 0;

  padding:
    20px 20px 17px;

  border:
    1px solid var(--border);

  border-radius: 22px;

  background: var(--card);

  box-shadow: var(--shadow-soft);

  overflow: hidden;
}

.cash-card {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8fbff 100%
    );
}

.total-card {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8fcfa 100%
    );
}

.spending-card {
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fffafb 100%
    );
}


/* Financial icons */

.financial-icon {
  width: 42px;
  height: 42px;

  margin-bottom: 10px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  font-size: 14px;
  font-weight: 800;
}

.cash-icon {
  background: var(--cash-bg);
  color: var(--cash);
}

.total-icon {
  background: var(--total-bg);
  color: var(--total);
}

.spending-icon {
  background: var(--spending-bg);
  color: var(--spending);
}


/* Financial titles */

.financial-card h2 {
  margin:
    0 0 10px;

  color: #626b7c;

  font-size: 15px;
  font-weight: 800;
}


/* Financial values */

.main-value,
.cash-value {
  display: block;

  margin:
    0 0 12px;

  font-size: 31px;

  line-height: 1.05;

  font-weight: 850;

  letter-spacing: -1px;
}

.cash-value {
  width: auto;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--text);

  text-align: left;

  cursor: pointer;
}

.cash-value:hover {
  opacity: 0.78;
}

.spending-value {
  color: var(--spending);
}


/* =========================================================
   Dashboard Financial Metrics
   ========================================================= */

.metric {
  min-height: 40px;

  padding:
    8px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  border-top:
    1px solid rgba(225, 228, 235, 0.9);

  color: var(--muted);

  font-size: 11px;
}

.metric strong {
  flex:
    0 0 auto;

  color: #344052;

  font-size: 12px;
  font-weight: 750;
}


/* =========================================================
   Dashboard Data Sections
   ========================================================= */

.data-section {
  display: grid;

  grid-template-columns:
    1fr;

  gap: 20px;
}

.section-card {
  overflow: hidden;

  border:
    1px solid var(--border);

  border-radius: 23px;

  background: var(--card);

  box-shadow: var(--shadow-soft);
}


/* Dashboard Section Heading */

.dashboard .section-heading {
  min-height: 100px;

  margin: 0;

  padding:
    20px 24px;

  display: flex;
  align-items: center;

  gap: 15px;

  max-width: none;

  text-align: left;
}

.section-icon {
  width: 54px;
  height: 54px;

  flex:
    0 0 54px;

  display: grid;
  place-items: center;

  border-radius: 16px;

  font-size: 19px;
  font-weight: 800;
}

.income-icon {
  background: var(--income-bg);
  color: var(--income);
}

.expenses-icon {
  background: var(--expense-bg);
  color: var(--expense);
}

.section-heading-text {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.dashboard .section-heading h2 {
  margin: 0;

  color: #172033;

  font-size: 23px;
  line-height: 1.1;

  font-weight: 850;

  letter-spacing: -0.5px;
}

.section-heading-text small {
  color: var(--muted);

  font-size: 12px;
  font-weight: 500;
}

.section-count {
  margin-left: auto;

  color: var(--muted);

  font-size: 12px;

  white-space: nowrap;
}


/* =========================================================
   Dashboard Total Rows
   ========================================================= */

.total-row {
  width:
    calc(100% - 40px);

  min-height: 62px;

  margin:
    0 20px 14px;

  padding:
    0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-radius: 14px;

  font-size: 13px;
  font-weight: 800;
}

.total-row strong {
  font-size: 15px;
  font-weight: 850;
}

.income-total {
  background: var(--income-bg);
  color: var(--income);
}

.expense-total {
  background: var(--expense-bg);
  color: var(--expense);
}


/* =========================================================
   Dashboard Item List
   ========================================================= */

.item-list {
  width: 100%;

  display: flex;
  flex-direction: column;
}

.item-row {
  width: 100%;

  min-height: 76px;

  padding:
    0 24px;

  display: grid;

  grid-template-columns:
    20px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 13px;

  border: 0;

  border-top:
    1px solid var(--border);

  background: #ffffff;

  color: #4e586a;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.18s ease;
}

.item-row:hover {
  background: #fafbfc;
}

.item-name {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  font-size: 15px;
  font-weight: 500;
}

.item-row strong {
  color: #172033;

  font-size: 16px;
  font-weight: 800;

  text-align: right;
}

.item-status-checkbox {
  width: 18px;
  height: 18px;

  margin: 0;

  justify-self: center;

  cursor: pointer;

  accent-color: var(--primary);
}

.item-status-checkbox.income-status {
  accent-color: var(--income);
}

.item-status-checkbox.expense-status {
  accent-color: var(--expense);
}

.item-status-checkbox:disabled {
  cursor: wait;
}

.row-arrow {
  color: #9aa1ae;

  font-size: 22px;
  font-weight: 300;

  text-align: right;
}


/* =========================================================
   Dashboard Bottom Sheet Backdrop
   ========================================================= */

.sheet-backdrop {
  position: fixed;
  inset: 0;

  z-index: 100;

  background:
    rgba(17, 24, 39, 0.38);

  backdrop-filter: blur(3px);
}


/* =========================================================
   Dashboard Bottom Sheets
   ========================================================= */

.bottom-sheet {
  position: fixed;

  left: 50%;
  bottom: 0;

  z-index: 110;

  width:
    min(560px, 100%);

  max-height: 88vh;

  padding:
    12px 22px
    calc(22px + env(safe-area-inset-bottom));

  overflow-y: auto;

  border-radius:
    24px 24px 0 0;

  background: #ffffff;

  box-shadow:
    0 -12px 40px rgba(18, 25, 40, 0.16);

  transform:
    translate(-50%, 105%);

  transition:
    transform 0.25s ease;

  visibility: hidden;
}

.bottom-sheet.open {
  transform:
    translate(-50%, 0);

  visibility: visible;
}

.sheet-handle {
  width: 42px;
  height: 5px;

  margin:
    0 auto 20px;

  border-radius: 999px;

  background: #d9dde5;
}

.bottom-sheet h2 {
  margin:
    0 0 20px;

  color: var(--text);

  font-size: 22px;
  font-weight: 850;
}

.bottom-sheet label {
  display: block;

  margin-bottom: 15px;

  color: #4c5668;

  font-size: 13px;
  font-weight: 700;
}

.bottom-sheet input {
  width: 100%;

  height: 48px;

  margin-top: 7px;

  padding:
    0 14px;

  border:
    1px solid #dfe3eb;

  border-radius: 12px;

  background: #fafbfc;

  color: var(--text);

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bottom-sheet input:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px rgba(111, 99, 217, 0.12);

  background: #ffffff;
}


/* =========================================================
   Sheet Actions
   ========================================================= */

.sheet-actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-top: 20px;
}

.sheet-actions button {
  min-height: 48px;

  border-radius: 12px;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;
}

.sheet-actions .secondary {
  border:
    1px solid #dfe3eb;

  background: #ffffff;

  color: #596276;
}

.sheet-actions .primary {
  border:
    1px solid var(--primary);

  background: var(--primary);

  color: #ffffff;
}

.sheet-actions .primary:hover {
  background: var(--primary-dark);
}

.sheet-actions .secondary:hover {
  background: #f7f8fa;
}


/* =========================================================
   Delete Button
   ========================================================= */

.delete-btn {
  width: 100%;

  min-height: 46px;

  margin-top: 12px;

  border:
    1px solid #f0c7d1;

  border-radius: 12px;

  background: #fff6f8;

  color: var(--expense);

  font-size: 13px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.2s ease;
}

.delete-btn:hover {
  background: #ffedf1;
}


/* =========================================================
   Empty State
   ========================================================= */

.empty-state {
  padding:
    30px 20px;

  color: var(--muted);

  font-size: 13px;

  text-align: center;
}




/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {

  .site-header {
    width:
      calc(100% - 28px);
  }

  .header-nav {
    gap: 16px;
  }

  .financial-grid {
    gap: 10px;
  }

  .financial-card {
    padding:
      15px 13px;
  }

  .financial-icon {
    width: 38px;
    height: 38px;

    margin-bottom: 8px;
  }

  .financial-card h2 {
    font-size: 14px;
  }

  .main-value,
  .cash-value {
    font-size: 27px;
  }

  .metric {
    font-size: 10px;
  }

  .metric strong {
    font-size: 11px;
  }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 680px) {

  /* -------------------------------------------------------
     Header
     ------------------------------------------------------- */

  .site-header {
    width:
      calc(100% - 20px);

    min-height: 72px;

    margin-top: 10px;

    padding:
      10px 13px;

    border-radius: 20px;
  }

  .header-inner {
    gap: 10px;
  }

  .header-nav {
    display: none;
  }

  .brand {
    gap: 10px;

    min-width: 0;
  }

  .brand-icon {
    width: 43px;
    height: 43px;

    padding: 9px;

    border-radius: 13px;
  }

  .brand-icon span {
    width: 5px;
  }

  .brand-icon span:nth-child(1) {
    height: 14px;
  }

  .brand-icon span:nth-child(2) {
    height: 21px;
  }

  .brand-icon span:nth-child(3) {
    height: 28px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-tagline {
    font-size: 9px;
  }

  .account-button,
  .logout-btn {
    min-height: 42px;

    padding:
      0 14px;

    border-radius: 12px;

    font-size: 12px;
  }
  /* -------------------------------------------------------
     Dashboard Mobile
     ------------------------------------------------------- */

  .dashboard {
    width:
      calc(100% - 20px);

    margin:
      14px auto
      40px;
  }

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

    gap: 9px;

    margin-bottom: 10px;
  }

  .action-card {
    min-height: 112px;

    padding:
      13px 12px;

    gap: 10px;

    border-radius: 17px;
  }

  .action-icon {
    width: 42px;
    height: 42px;

    flex-basis: 42px;

    border-radius: 12px;

    font-size: 27px;
  }

  .action-content {
    gap: 3px;
  }

  .action-content strong {
    font-size: 14px;

    letter-spacing: -0.2px;
  }

  .action-content small {
    font-size: 9px;

    line-height: 1.2;
  }

  .action-arrow {
    font-size: 23px;
  }


  /* Payday */

  .payday-link {
    min-height: 78px;

    margin-bottom: 12px;

    padding:
      11px 14px;

    border-radius: 18px;

    gap: 11px;
  }

  .payday-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;

    border-radius: 12px;

    font-size: 14px;
  }

  .payday-content strong {
    font-size: 15px;
  }

  .payday-content small {
    font-size: 10px;
  }

  .payday-value {
    font-size: 24px;

    gap: 8px;
  }

  .payday-value > span:last-child {
    font-size: 22px;
  }


  /* Financial cards */

  .financial-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 7px;

    margin-bottom: 14px;
  }

  .financial-card {
    padding:
      11px 8px;

    border-radius: 15px;
  }

  .financial-icon {
    width: 33px;
    height: 33px;

    margin-bottom: 8px;

    border-radius: 10px;

    font-size: 11px;
  }

  .financial-card h2 {
    margin-bottom: 8px;

    font-size: 11px;
  }

  .main-value,
  .cash-value {
    margin-bottom: 8px;

    font-size: 21px;

    letter-spacing: -0.7px;
  }

  .metric {
    min-height: 42px;

    padding:
      7px 0;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    gap: 3px;

    font-size: 8.5px;

    line-height: 1.15;
  }

  .metric strong {
    font-size: 13px;
    font-weight: 750;
  }


  /* Dashboard sections */

  .data-section {
    gap: 14px;
  }

  .section-card {
    border-radius: 18px;
  }

  .dashboard .section-heading {
    min-height: 82px;

    padding:
      14px 15px;

    gap: 10px;
  }

  .section-icon {
    width: 43px;
    height: 43px;

    flex-basis: 43px;

    border-radius: 13px;

    font-size: 16px;
  }

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

  .section-heading-text small {
    font-size: 10px;
  }

  .section-count {
    font-size: 10px;
  }


  /* Total rows */

  .total-row {
    width:
      calc(100% - 20px);

    min-height: 55px;

    margin:
      0 10px 10px;

    padding:
      0 14px;

    border-radius: 13px;

    font-size: 11px;
  }

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


  /* Item rows */

  .item-row {
    min-height: 66px;

    padding:
      0 15px;

    grid-template-columns:
      18px
      minmax(0, 1fr)
      auto;

    gap: 8px;
  }

  .item-name {
    font-size: 14px;
  }

  .item-status-checkbox {
    width: 17px;
    height: 17px;
  }

  .item-row strong {
    font-size: 15px;
  }

  .row-arrow {
    font-size: 20px;
  }


  /* Bottom sheets */

  .bottom-sheet {
    width: 100%;

    padding:
      10px 18px
      calc(18px + env(safe-area-inset-bottom));

    border-radius:
      22px 22px 0 0;
  }

  .bottom-sheet h2 {
    font-size: 20px;
  }

}


/* =========================================================
   Very Small Phones
   ========================================================= */

@media (max-width: 360px) {

  .site-header {
    width:
      calc(100% - 14px);
  }

  .hero-container,
  .section-container,
  .footer-inner {
    width:
      calc(100% - 20px);
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 14px;
  }

  .account-button,
  .logout-btn {
    padding:
      0 11px;

    font-size: 11px;
  }
  /* Dashboard */

  .dashboard {
    width:
      calc(100% - 14px);
  }

  .action-card {
    min-height: 104px;

    padding:
      11px 9px;

    gap: 7px;
  }

  .action-icon {
    width: 37px;
    height: 37px;

    flex-basis: 37px;

    font-size: 24px;
  }

  .action-content strong {
    font-size: 12px;
  }

  .action-content small {
    font-size: 8px;
  }

  .action-arrow {
    font-size: 20px;
  }

  .financial-grid {
    gap: 5px;
  }

  .financial-card {
    padding:
      9px 6px;

    border-radius: 13px;
  }

  .financial-icon {
    width: 29px;
    height: 29px;
  }

  .financial-card h2 {
    font-size: 10px;
  }

  .main-value,
  .cash-value {
    font-size: 19px;
  }

  .metric {
    font-size: 7.5px;
  }

  .metric strong {
    font-size: 12px;

    font-weight: 750;
  }

}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration:
      0.01ms !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;
  }
}
