/* FinTracker — css/views.css
 * History / Analytics / Configure views, including the collapsible Filters page sections.
 * Part of the styles.css split — see CLAUDE.md "Module map". Loaded via multiple
 * <link> tags in the same cascade order as the original single file. */

/* ============ Views (History / Analytics / Configure) ============ */
.view-header { margin-bottom: 14px; }
.view-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-soft);
  /* box-shadow: var(--shadow); */
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-chip.is-active {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
}
.filter-chip__icon { display: inline-flex; flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
  .filter-chip:not(.is-active):hover { border-color: #d7dce3; }
}

/* ---- Analytics + History: header date-range pill, top-right of the view title ----
   Shared rules keep the two pills identically sized/aligned — History used to render
   its date range as a full-width block below the title instead of next to it. */
.view-header--analytics,
.view-header--history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.analytics-range-btn,
.history-daterange-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 9px;
  background: #fff;
  border: 1.5px solid var(--border);
  /* box-shadow: var(--shadow); */
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  flex: 0 0 auto;
}
.analytics-range-btn svg:first-child,
.history-daterange-btn svg:first-child { color: var(--green-dark); flex-shrink: 0; }
.analytics-range-btn svg:last-child,
.history-daterange-btn svg:last-child { color: var(--navy-soft); flex-shrink: 0; }

/* ---- History: header action cluster (import/export + date range) ---- */
.view-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.history-io-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--navy-soft);
  flex-shrink: 0;
}
.history-io-btn:active { background: rgba(30,42,69,0.05); }
@media (hover: hover) and (pointer: fine) {
  .history-io-btn:hover { border-color: #d7dce3; color: var(--navy); }
}

/* ---- History: search / filters / summary ---- */
.history-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.history-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.history-search svg { color: var(--navy-soft); flex-shrink: 0; }
.history-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--navy);
}
.history-search input:focus { outline: none; }
.history-search input::placeholder { color: #a8afbd; }

.history-filters-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}
.history-filters-btn svg { color: var(--navy-soft); }
.history-filters-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px #fff;
}
.history-filters-dot[hidden] { display: none; }

.history-summary {
  display: flex;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px 6px;
  margin-bottom: 18px;
}
.history-summary__item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  padding: 0 6px;
  border-left: 1px solid var(--border);
}
.history-summary__item:first-child { border-left: none; }
.history-summary__label { font-size: 0.7rem; font-weight: 600; color: var(--navy-soft); }
.history-summary__value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.history-summary__value--total { color: var(--red); }
.history-summary__value--fixed { color: var(--blue); }
.history-summary__value--variable { color: var(--green); }
.history-summary__count { font-size: 0.66rem; color: var(--navy-soft); }

/* ---- History: day groups & items ---- */
.history-group { margin-bottom: 18px; }
.history-group__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 8px;
  background: none;
  border: none;
}
.history-group__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.history-group__date svg { color: var(--green); flex-shrink: 0; }
.history-group__total {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--red);
}
.history-group__chevron { color: var(--navy-soft); transition: transform 0.2s ease; }
.history-group__header.is-open .history-group__chevron { transform: rotate(180deg); }
.history-items {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.history-items[hidden] { display: none; }
.history-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: background 0.15s ease;
}
.history-item:last-child { border-bottom: none; }
.history-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.history-item__icon svg { width: 25px; height: 25px; }
.history-item__icon img { width: 22px; height: 22px; object-fit: contain; }
.history-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.history-item__title {
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}
.history-item__meta-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--navy-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item__fixed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa1b0;
  flex-shrink: 0;
}
.history-item__note-icon {
  display: inline-flex;
  align-items: center;
  color: var(--navy-soft);
  flex-shrink: 0;
}
.history-item__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}
.history-item__amount.is-expense { color: var(--red); }
.history-item__amount.is-income { color: var(--green); }
.history-empty {
  text-align: center;
  color: var(--navy-soft);
  padding: 48px 16px;
  font-size: 0.92rem;
}
@media (hover: hover) and (pointer: fine) {
  .history-item:hover { background: rgba(30,42,69,0.03); cursor: pointer; }
  .history-group__header:hover .history-group__date { color: var(--navy); }
}

/* ---- Analytics ---- */
.analytics-range-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-soft);
  margin-top: 2px;
}

.section__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.section__title-row .section__title { margin-bottom: 0; }
.section__title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section__icon {
  display: inline-flex;
  color: var(--green-dark);
  flex-shrink: 0;
}

/* Hero card: Total Spent */
.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--card-bg);
  border-radius: 12px; /*var(--radius-lg);*/
  /* box-shadow: var(--shadow); */
  padding: 18px;
  margin: 14px 0 18px;
  cursor: pointer;
}
.hero-card:active { background: rgba(30,42,69,0.03); }
.hero-card__icon { flex-shrink: 0; }
.hero-card__main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.hero-card__label { font-size: 0.78rem; font-weight: 600; color: var(--navy-soft); }
.hero-card__value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--red); }
.hero-card__meta { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hero-card__sub { font-size: 0.76rem; color: var(--navy-soft); }
.hero-card__meta-dot { font-size: 0.76rem; color: #c7ccd6; }
.hero-card__meta-item { font-size: 0.76rem; color: var(--navy-soft); }
.hero-card__meta-item b { color: var(--navy); font-weight: 700; }

/* Weekly spend chart */
.chart-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px 12px 10px;
}
.chart-card__empty {
  text-align: center;
  color: var(--navy-soft);
  padding: 24px 0;
  font-size: 0.88rem;
}
.chart-point { cursor: pointer; }
.chart-body { display: flex; gap: 8px; align-items: stretch; }
.chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  flex-shrink: 0;
  padding: 2px 0 6px;
}
.chart-yaxis__label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--navy-soft);
}
.chart-plot { flex: 1; min-width: 0; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg text { font-family: var(--font-body); }
.chart-xaxis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 2px;
}
.chart-xaxis__label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--navy-soft);
  text-align: center;
  flex: 1;
}

/* Stat tile grid (2x2) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-tile {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.stat-tile:active { background: rgba(30,42,69,0.03); }
.stat-tile__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-tile__icon svg { width: 18px; height: 18px; }
.stat-tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.stat-tile__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-tile__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  word-break: break-word;
}
.stat-tile__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy-soft);
}
.stat-tile__sub.is-up { color: var(--red); }
.stat-tile__sub.is-down { color: var(--green); }
.stat-tile__sub-icon { display: inline-block; margin-right: 2px; }
.stat-tile__link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-dark);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}
.stat-tile--expense .stat-tile__value { color: var(--red); }
.stat-tile--income .stat-tile__value { color: var(--green); }

/* Ranked lists (Top Categories / For Whom) */
.ranked-list {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 6px 16px;
}
.ranked-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.ranked-item:active { background: rgba(30,42,69,0.03); }
.ranked-item:last-child { border-bottom: none; }
.ranked-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 32%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranked-item__icon img { width: 32px; height: 32px; object-fit: contain; }
.ranked-item__icon svg { width: 16px; height: 16px; }
.ranked-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ranked-item__top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ranked-item__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.ranked-item__line {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg);
  position: relative;
}
.ranked-item__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 3px;
  border-radius: 3px;
}
.ranked-item__value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}
.ranked-item__pct {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 30px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 999px;
}
.ranked-item--extra[hidden] { display: none; }
.view-all-link {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  background: none;
  border: none;
  padding: 0;
}
.view-all-link[hidden] { display: none; }

/* For Whom card row — compact 2-line cards, no divider lines, no view-all/show-more (every
   entry is always rendered); the row scrolls horizontally instead of wrapping so any number
   of people still fit without growing the section's height. */
.forwhom-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 3px; /* keeps the scrollbar clear of the card shadows */
}
.forwhom-card {
    flex: 0 0 auto;
    min-width: 139px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: 1px solid #eee;
}
.forwhom-card:active { background: rgba(30,42,69,0.03); }
.forwhom-card__top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.forwhom-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.forwhom-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.forwhom-card__bottom {
  display: flex;
  align-items: center;
  gap: 6px;
}
.forwhom-card__value {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.forwhom-card__pct {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.bar-list {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 6px 16px;
}
.bar-item { padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.bar-item:active { background: rgba(30,42,69,0.03); }
.bar-item:last-child { border-bottom: none; }
.bar-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.bar-item__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-item__value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.bar-item__values { display: flex; align-items: baseline; gap: 10px; flex-shrink: 0; }
.bar-item__values .bar-item__value { font-weight: 700; color: var(--navy); }
.bar-item__pct { font-size: 0.72rem; font-weight: 600; color: var(--navy-soft); min-width: 30px; text-align: right; }
.bar-item__track {
  height: 7px;
  border-radius: 4px;
  background: var(--bg);
  overflow: hidden;
}
.bar-item__fill {
  height: 100%;
  border-radius: 4px;
  background: var(--green);
}
.bar-list-empty {
  text-align: center;
  color: var(--navy-soft);
  padding: 24px 0;
  font-size: 0.88rem;
}

/* ---- Configure ---- */
.config-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.config-section__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}
.config-hint {
  font-size: 0.84rem;
  color: var(--navy-soft);
  line-height: 1.5;
  margin: 0 0 12px;
}
.config-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.config-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.config-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy-soft);
}
.config-btn--danger .config-btn__icon { color: var(--red); }
.config-btn--danger { color: var(--red); }
.config-btn.is-active { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
@media (hover: hover) and (pointer: fine) {
  .config-btn:hover { background: #eef1f5; border-color: #d7dce3; }
  .config-btn--danger:hover { background: var(--red-light); border-color: #f3c9c9; }
}
.config-stat {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--navy-soft);
  text-align: center;
}

/* ---- Import confirmation choice sheet (History > Import & Export) ---- */
.import-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.import-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.import-choice-btn__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}
.import-choice-btn__desc {
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--navy-soft);
}
.import-choice-btn--danger { background: var(--red-light); border-color: #f3c9c9; }
.import-choice-btn--danger .import-choice-btn__title { color: var(--red); }
.import-choice-btn--danger .import-choice-btn__desc { color: #c05959; }
@media (hover: hover) and (pointer: fine) {
  .import-choice-btn:not(.import-choice-btn--danger):hover { background: #eef1f5; border-color: #d7dce3; }
  .import-choice-btn--danger:hover { background: #fcdcdc; }
}
.import-choice-cancel {
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-soft);
}
@media (hover: hover) and (pointer: fine) {
  .import-choice-cancel:hover { color: var(--navy); }
}

/* ---- FAQ (Configure > FAQ) ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f7f8fa;
  padding: 12px 14px;
}
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--green-dark);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p {
  margin: 10px 0 0;
  padding-left: 1.1em;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--navy-soft);
}

/* ---- Edit transaction form (inside bottom sheet) ---- */
.edit-form { display: flex; flex-direction: column; gap: 12px; }
.edit-field { display: flex; flex-direction: column; gap: 6px; }
.edit-field__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.edit-field__input,
.edit-field__select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f7f8fa;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy);
}
.edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.edit-type-toggle { display: flex; gap: 8px; }
.edit-type-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #f7f8fa;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-soft);
}
.edit-type-btn.is-active.is-expense { border-color: var(--red); background: var(--red-light); color: var(--red); }
.edit-type-btn.is-active.is-income { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.edit-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.edit-delete-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--red-light);
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
}
@media (hover: hover) and (pointer: fine) {
  .edit-delete-btn:hover { background: #fcdcdc; }
}

.sheet__body { overflow-y: auto; flex: 1; }
.sheet__list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; cursor: pointer; }
.sheet__list li:last-child { border-bottom: none; }
.sheet__list .empty { text-align: center; color: var(--navy-soft); padding: 30px 0; cursor: default; }

