/* =========================================================
   HOUSEHOLD EXPENSES MANAGER — Frontend Stylesheet
   Design: Dark Luxury • Angular Accents • Kwanza-Gold
   ========================================================= */

:root {
  --he-bg:        #0D0F14;
  --he-bg-card:   #151820;
  --he-bg-glass:  rgba(255,255,255,0.04);
  --he-border:    rgba(255,255,255,0.07);
  --he-gold:      #F5C842;
  --he-gold-dim:  rgba(245,200,66,0.15);
  --he-teal:      #00D4AA;
  --he-blue:      #4A90E2;
  --he-red:       #FF5757;
  --he-green:     #36D399;
  --he-purple:    #A78BFA;
  --he-text:      #E8ECF0;
  --he-text-dim:  #7A8190;
  --he-text-mute: #3D4250;
  --he-radius:    16px;
  --he-radius-sm: 10px;
  --he-shadow:    0 8px 32px rgba(0,0,0,0.5);
  --he-shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
  --he-font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --he-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --he-transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* Base Reset */
#he-app *, #he-app *::before, #he-app *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

#he-app {
  font-family: var(--he-font);
  background: var(--he-bg);
  color: var(--he-text);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ---- SCREENS ---- */
.he-screen { display: none; }
.he-screen--active { display: block; }

/* =========================================================
   LOGIN SCREEN
   ========================================================= */
#he-screen-login {
  min-height: 100vh;
  background: var(--he-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(245,200,66,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,212,170,0.06) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.he-login-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: he-fadeUp 0.6s ease both;
}

@keyframes he-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.he-login-brand { text-align: center; }

.he-brand-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 24px rgba(245,200,66,0.4));
}

.he-brand-title {
  font-family: var(--he-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--he-text);
  letter-spacing: -0.5px;
}

.he-brand-sub {
  font-size: 13px;
  color: var(--he-text-dim);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.he-pin-card {
  width: 100%;
  background: var(--he-bg-card);
  border: 1px solid var(--he-border);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--he-shadow-lg);
}

.he-pin-label {
  text-align: center;
  font-size: 14px;
  color: var(--he-text-dim);
  margin-bottom: 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.he-pin-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.he-pin-display span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--he-text-mute);
  transition: var(--he-transition);
}

.he-pin-display span.filled {
  background: var(--he-gold);
  border-color: var(--he-gold);
  box-shadow: 0 0 10px rgba(245,200,66,0.5);
}

.he-pin-attempts {
  text-align: center;
  font-size: 12px;
  color: var(--he-red);
  min-height: 18px;
  margin-bottom: 14px;
}

.he-pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.he-pin-btn {
  height: 56px;
  border-radius: var(--he-radius-sm);
  border: 1px solid var(--he-border);
  background: var(--he-bg-glass);
  color: var(--he-text);
  font-family: var(--he-display);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--he-transition);
  position: relative;
  overflow: hidden;
}

.he-pin-btn:not([disabled]):hover {
  background: var(--he-gold-dim);
  border-color: rgba(245,200,66,0.3);
  color: var(--he-gold);
  transform: translateY(-1px);
}

.he-pin-btn:not([disabled]):active {
  transform: scale(0.94);
  background: rgba(245,200,66,0.25);
}

.he-pin-btn--empty { visibility: hidden; }

.he-pin-members { margin-top: 4px; }

.he-pin-members-label {
  font-size: 12px;
  color: var(--he-text-dim);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.he-members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.he-member-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--member-color, var(--he-gold));
  background: rgba(255,255,255,0.03);
  color: var(--he-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--he-transition);
}

.he-member-chip:hover,
.he-member-chip.active {
  background: var(--member-color, var(--he-gold));
  color: #000;
}

.he-member-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--member-color, var(--he-gold));
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--he-display);
}

.he-member-chip.active .he-member-avatar { background: rgba(0,0,0,0.2); color: #fff; }

.he-login-footer {
  font-size: 11px;
  color: var(--he-text-mute);
  text-align: center;
}

/* =========================================================
   APP SCREEN
   ========================================================= */
#he-screen-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */
.he-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--he-bg-card);
  border-bottom: 1px solid var(--he-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.he-topbar-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(245,200,66,0.4));
}

.he-topbar-title {
  font-family: var(--he-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.he-topbar-sub {
  font-size: 12px;
  color: var(--he-text-dim);
}

.he-topbar-right { display: flex; align-items: center; gap: 10px; }

.he-currency-switcher { display: flex; gap: 4px; }

.he-curr-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--he-border);
  background: transparent;
  color: var(--he-text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--he-transition);
}

.he-curr-btn.active,
.he-curr-btn:hover {
  background: var(--he-gold-dim);
  border-color: rgba(245,200,66,0.4);
  color: var(--he-gold);
}

.he-logout-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--he-border);
  background: transparent;
  color: var(--he-text-dim);
  font-size: 16px;
  cursor: pointer;
  transition: var(--he-transition);
}

.he-logout-btn:hover {
  background: rgba(255,87,87,0.1);
  border-color: rgba(255,87,87,0.3);
  color: var(--he-red);
}

/* NAV */
.he-nav {
  display: flex;
  gap: 2px;
  padding: 8px;
  background: var(--he-bg-card);
  border-bottom: 1px solid var(--he-border);
  overflow-x: auto;
}

.he-nav-btn {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: var(--he-radius-sm);
  border: none;
  background: transparent;
  color: var(--he-text-dim);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--he-transition);
}

.he-nav-btn .he-nav-icon { font-size: 18px; }

.he-nav-btn:hover  { color: var(--he-text); background: var(--he-bg-glass); }
.he-nav-btn.active { color: var(--he-gold); background: var(--he-gold-dim); }

/* TABS */
.he-tab { display: none; padding: 20px 16px 32px; }
.he-tab--active { display: block; animation: he-fadeUp 0.3s ease both; }

/* MONTH BAR */
.he-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--he-bg-card);
  border-radius: var(--he-radius);
  border: 1px solid var(--he-border);
}

.he-month-display {
  font-family: var(--he-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--he-text);
}

.he-month-nav {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--he-border);
  background: transparent;
  color: var(--he-text);
  font-size: 20px;
  cursor: pointer;
  transition: var(--he-transition);
}

.he-month-nav:hover {
  background: var(--he-gold-dim);
  border-color: rgba(245,200,66,0.3);
  color: var(--he-gold);
}

/* CARDS GRID */
.he-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.he-card {
  background: var(--he-bg-card);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: var(--he-transition);
}

.he-card:hover { transform: translateY(-2px); box-shadow: var(--he-shadow); }

.he-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--he-gold));
  border-radius: 3px 3px 0 0;
}

.he-card--total  { grid-column: 1 / -1; --card-accent: var(--he-gold); }
.he-card--shared { --card-accent: var(--he-teal); }
.he-card--individual { --card-accent: var(--he-purple); }

.he-card-icon { font-size: 22px; margin-bottom: 8px; }
.he-card-label { font-size: 12px; color: var(--he-text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.he-card-value { font-family: var(--he-display); font-size: 22px; font-weight: 800; color: var(--he-text); }
.he-card--total .he-card-value { font-size: 28px; color: var(--he-gold); }

/* SECTION */
.he-section {
  margin-bottom: 24px;
  background: var(--he-bg-card);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius);
  padding: 20px;
}

.he-section-title {
  font-family: var(--he-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--he-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CHART */
.he-chart-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.he-chart-wrap canvas { max-width: 260px; max-height: 260px; }
.he-chart-wrap--bar canvas { max-width: 100%; max-height: 200px; }

/* LEGEND */
.he-legend { display: flex; flex-direction: column; gap: 8px; }

.he-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--he-text);
}

.he-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.he-legend-name { flex: 1; }
.he-legend-val  { font-family: var(--he-display); font-weight: 700; font-size: 13px; }
.he-legend-pct  { font-size: 11px; color: var(--he-text-dim); min-width: 36px; text-align: right; }

/* MEMBERS SUMMARY */
.he-member-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--he-border);
}

.he-member-summary:last-child { border-bottom: none; }

.he-member-summary-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--he-display);
  font-size: 14px;
  flex-shrink: 0;
}

.he-member-summary-info { flex: 1; }
.he-member-summary-name { font-size: 14px; font-weight: 600; }
.he-member-summary-total { font-family: var(--he-display); font-size: 16px; font-weight: 800; }

/* FILTERS */
.he-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.he-select {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: var(--he-radius-sm);
  border: 1px solid var(--he-border);
  background: var(--he-bg-card);
  color: var(--he-text);
  font-size: 13px;
  font-family: var(--he-font);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8190' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.he-select:focus { outline: none; border-color: rgba(245,200,66,0.4); }

/* EXPENSES LIST */
.he-expenses-list { display: flex; flex-direction: column; gap: 8px; }

.he-expense-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--he-bg-card);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius);
  transition: var(--he-transition);
  animation: he-fadeUp 0.25s ease both;
}

.he-expense-item:hover { border-color: rgba(255,255,255,0.12); }

.he-expense-cat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.he-expense-info { flex: 1; min-width: 0; }

.he-expense-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.he-expense-meta {
  font-size: 11px;
  color: var(--he-text-dim);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.he-expense-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.he-badge-shared     { background: rgba(0,212,170,0.15); color: var(--he-teal); }
.he-badge-individual { background: rgba(167,139,250,0.15); color: var(--he-purple); }

.he-expense-right { text-align: right; }

.he-expense-amount {
  font-family: var(--he-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--he-text);
  white-space: nowrap;
}

.he-expense-date { font-size: 11px; color: var(--he-text-dim); margin-bottom: 6px; }

.he-expense-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--he-text-mute);
  font-size: 14px;
  cursor: pointer;
  transition: var(--he-transition);
  margin-left: 6px;
}

.he-expense-delete:hover {
  background: rgba(255,87,87,0.1);
  border-color: rgba(255,87,87,0.3);
  color: var(--he-red);
}

.he-loading { text-align: center; color: var(--he-text-dim); padding: 40px; font-size: 14px; }
.he-empty   { text-align: center; color: var(--he-text-dim); padding: 40px; }
.he-empty-icon { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.4; }

/* ADD FORM */
.he-form-card {
  background: var(--he-bg-card);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius);
  padding: 24px;
}

.he-form-title {
  font-family: var(--he-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--he-gold);
}

.he-form-group { margin-bottom: 18px; }

.he-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--he-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.he-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--he-radius-sm);
  border: 1px solid var(--he-border);
  background: rgba(255,255,255,0.03);
  color: var(--he-text);
  font-family: var(--he-font);
  font-size: 14px;
  transition: var(--he-transition);
}

.he-input:focus {
  outline: none;
  border-color: rgba(245,200,66,0.5);
  background: rgba(245,200,66,0.04);
}

.he-input--textarea { min-height: 80px; resize: vertical; }

.he-toggle-group { display: flex; gap: 8px; }

.he-toggle {
  flex: 1;
  padding: 12px;
  border-radius: var(--he-radius-sm);
  border: 1px solid var(--he-border);
  background: transparent;
  color: var(--he-text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--he-transition);
}

.he-toggle.active {
  background: var(--he-gold-dim);
  border-color: rgba(245,200,66,0.5);
  color: var(--he-gold);
}

/* Categories Grid */
.he-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.he-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  border-radius: var(--he-radius-sm);
  border: 1px solid var(--he-border);
  background: rgba(255,255,255,0.02);
  color: var(--he-text-dim);
  font-size: 11px;
  cursor: pointer;
  transition: var(--he-transition);
  text-align: center;
  line-height: 1.2;
}

.he-cat-btn:hover { border-color: var(--cat-color, var(--he-gold)); color: var(--he-text); }

.he-cat-btn.active {
  background: rgba(var(--cat-color-rgb, 245,200,66),0.15);
  border-color: var(--cat-color, var(--he-gold));
  color: var(--he-text);
  box-shadow: 0 0 0 1px var(--cat-color, var(--he-gold));
}

.he-cat-icon { font-size: 22px; }
.he-cat-name { font-weight: 500; }

/* Amount Row */
.he-amount-row { display: flex; gap: 8px; }
.he-select--currency { min-width: 120px; flex-shrink: 0; }
.he-input--amount { font-family: var(--he-display); font-size: 18px; font-weight: 700; text-align: right; }

.he-conversion-hint {
  font-size: 12px;
  color: var(--he-teal);
  margin-top: 6px;
  min-height: 18px;
}

/* BUTTONS */
.he-btn {
  padding: 14px 20px;
  border-radius: var(--he-radius-sm);
  border: none;
  font-family: var(--he-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--he-transition);
}

.he-btn--primary {
  background: var(--he-gold);
  color: #000;
}

.he-btn--primary:hover {
  background: #FFD84D;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,200,66,0.3);
}

.he-btn--primary:active { transform: scale(0.97); }

.he-btn--full { width: 100%; }

.he-form-feedback {
  margin-top: 12px;
  min-height: 20px;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}

.he-form-feedback.success { color: var(--he-green); }
.he-form-feedback.error   { color: var(--he-red); }

/* REPORTS */
.he-year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--he-display);
  font-size: 18px;
  font-weight: 700;
}

.he-report-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--he-border);
}

.he-report-member:last-child { border-bottom: none; }

.he-report-member-info { flex: 1; }

.he-report-member-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--he-bg);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}

.he-report-member-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

.he-monthly-table th,
.he-monthly-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--he-border);
}

.he-monthly-table th {
  color: var(--he-text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.he-monthly-table td:last-child {
  text-align: right;
  font-family: var(--he-display);
  font-weight: 700;
}

/* TOAST */
.he-toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.he-toast {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  min-width: 200px;
  text-align: center;
  pointer-events: none;
  animation: he-toast-in 0.3s ease both;
  box-shadow: var(--he-shadow);
}

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

.he-toast-out { animation: he-toast-out 0.3s ease both; }

@keyframes he-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

.he-toast--success { background: var(--he-green); }
.he-toast--error   { background: var(--he-red); color: #fff; }
.he-toast--info    { background: var(--he-gold); }

/* SCROLLBAR */
#he-app ::-webkit-scrollbar { width: 4px; height: 4px; }
#he-app ::-webkit-scrollbar-track { background: transparent; }
#he-app ::-webkit-scrollbar-thumb { background: var(--he-text-mute); border-radius: 4px; }

/* RESPONSIVE */
@media (max-width: 480px) {
  .he-topbar { padding: 12px 14px; }
  .he-currency-switcher { display: none; }
  .he-tab { padding: 14px 12px 28px; }
  .he-cards-grid { grid-template-columns: 1fr; }
  .he-card--total { grid-column: auto; }
  .he-categories-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════
   v1.4 FIXES
   ════════════════════════════════════════════════════ */

/* Fix: screens controlados por JS, não CSS classes */
.he-screen { display: none; }

/* Fix: inputs dark theme — fundo branco removido */
#he-app input[type="date"],
#he-app input[type="number"],
#he-app input[type="text"],
#he-app input[type="password"],
#he-app textarea,
#he-app select {
  background: rgba(255,255,255,0.06) !important;
  color: var(--he-text) !important;
  border-color: var(--he-border) !important;
  -webkit-appearance: none;
  appearance: none;
}

#he-app input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.5);
  cursor: pointer;
}

#he-app input[type="date"]:focus,
#he-app input[type="number"]:focus {
  border-color: rgba(245,200,66,0.5) !important;
  background: rgba(245,200,66,0.04) !important;
  outline: none;
}

/* Fix: amount row layout */
.he-amount-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.he-select--currency {
  flex-shrink: 0;
  min-width: 130px;
  color: var(--he-text) !important;
}
.he-input--amount {
  flex: 1;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-align: right;
}

/* Fix: expense action buttons (edit + delete side by side) */
.he-expense-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 6px;
  flex-shrink: 0;
}

.he-expense-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--he-text-dim);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--he-transition);
  padding: 0;
}

.he-expense-edit:hover {
  background: rgba(74,144,226,0.15);
  border-color: rgba(74,144,226,0.3);
  color: #4A90E2;
}

.he-expense-delete:hover {
  background: rgba(255,87,87,0.12);
  border-color: rgba(255,87,87,0.3);
  color: var(--he-red);
}

/* Fix: member summary bar */
.he-report-member-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--he-bg-glass);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.he-report-member-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  min-width: 4px;
}

/* Fix: info toast type */
.he-toast--info { background: #4A90E2; color: #fff; }

/* Fix: form title editable */
#he-form-title { color: var(--he-gold); }
