:root {
  --ink: #26362f;
  --muted: #87928d;
  --green: #315c49;
  --mint: #e8f0eb;
  --paper: #f6f8f6;
  --line: #e9eeea;
  --coral: #c8795f;
  --gold: #c5a650;
  --blue: #7894ad;
  --white: #fff;
  --shadow: 0 12px 35px rgba(48, 71, 58, 0.055);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px "DM Sans",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.layout {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 238px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font:
    800 19px Manrope,
    sans-serif;
  letter-spacing: -0.7px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #dce9df;
  color: #315c49;
  display: grid;
  place-items: center;
  font: 800 21px Manrope;
  transform: rotate(-5deg);
}
.brand-light {
  font-weight: 500;
  color: #809087;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.35px;
  font-weight: 700;
  color: #a0aaa4;
  margin: 54px 0 13px 11px;
}
.nav-item {
  padding: 12px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #75827a;
  text-align: left;
  font-weight: 600;
}
.nav-item span {
  margin-right: 10px;
  font-size: 18px;
}
.nav-item.active {
  background: #edf3ee;
  color: var(--green);
}
.side-bottom {
  margin-top: auto;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px 1px 0;
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #f3e8d6;
  color: #7d6845;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.profile b,
.profile small {
  display: block;
}
.profile b {
  font-size: 12px;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.profile button {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
}
.main-area {
  max-width: 1380px;
  margin: auto;
  width: 100%;
  padding: 35px 50px 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  margin: 0 0 7px;
  color: #839189;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.topbar h1,
.auth-card h1 {
  font:
    700 29px Manrope,
    sans-serif;
  letter-spacing: -1.2px;
  margin: 0;
}
.wave {
  color: #d2b25a;
  font-size: 21px;
}
.button {
  border: 0;
  border-radius: 9px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
}
.primary {
  color: #fff;
  background: #315c49;
  box-shadow: 0 4px 10px #315c4921;
}
.primary:hover {
  background: #244b39;
}
.secondary {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}
.wide {
  width: 100%;
}
.month-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 31px 0 17px;
}
.month-row strong {
  font: 700 16px Manrope;
}
.month-arrow {
  height: 27px;
  width: 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #6d7972;
  font-size: 21px;
  line-height: 1;
}
.month-hint {
  font-size: 12px;
  color: #9ba49e;
  border-left: 1px solid #dfe5e0;
  padding-left: 14px;
  margin-left: 2px;
}
.stats {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 14px;
}
.stat-card {
  min-height: 140px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 19px 20px;
  position: relative;
  overflow: hidden;
}
.stat-card > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #77847c;
  font-size: 12px;
  font-weight: 600;
}
.stat-card > strong {
  display: block;
  margin-top: 14px;
  font: 700 23px Manrope;
  letter-spacing: -0.5px;
}
.stat-card > small {
  display: block;
  margin-top: 5px;
  color: #9aa49e;
  font-size: 10px;
}
.stat-card.dark {
  background: #315c49;
  border-color: #315c49;
  color: #fff;
}
.stat-card.dark > span,
.stat-card.dark > small {
  color: #d0ded5;
}
.stat-card.dark > strong {
  font-size: 25px;
}
.stat-card i {
  font-style: normal;
  border: 1px solid #d6ded8;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
}
.income-dot,
.expense-dot,
.saving-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #72aa84;
}
.expense-dot {
  background: #d89176;
}
.saving-dot {
  background: #89a9c6;
}
.stat-icon {
  position: absolute;
  right: 17px;
  top: 15px;
  border-radius: 9px;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.green {
  background: #e9f3eb;
  color: #5e9972;
}
.coral {
  background: #faeee9;
  color: #c8795f;
}
.blue {
  background: #edf2f7;
  color: #7894ad;
}
.sparkline {
  position: absolute;
  right: 16px;
  bottom: -8px;
  color: #82a991;
  font-size: 58px;
  letter-spacing: -9px;
  transform: rotate(-6deg);
  opacity: 0.45;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  gap: 15px;
  margin-top: 16px;
  align-items: stretch;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px 23px;
  box-shadow: var(--shadow);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.panel-heading h2 {
  font: 700 16px Manrope;
  margin: 0;
  letter-spacing: -0.3px;
}
.panel-heading p {
  font-size: 11px;
  color: #98a29c;
  margin: 5px 0 0;
}
.tag,
.count-pill {
  font-size: 10px;
  color: #75847a;
  background: #f2f5f2;
  border-radius: 20px;
  padding: 6px 10px;
}
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 166px;
}
.donut {
  width: 156px;
  height: 156px;
  flex-shrink: 0;
}
.donut-number {
  font: 700 25px Manrope;
  fill: #31473a;
}
.donut-caption {
  font: 11px "DM Sans";
  fill: #929d96;
}
.chart-list {
  width: 54%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chart-line {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #748078;
}
.chart-line b {
  color: #394a40;
  font-size: 11px;
}
.chart-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
}
.chart-empty {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #b5c0b9;
  text-align: center;
}
.chart-empty span {
  font-size: 41px;
}
.chart-empty p {
  max-width: 220px;
  font-size: 12px;
}
.legend {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f0f2f0;
  padding-top: 10px;
  color: #929d96;
  font-size: 10px;
}
.legend b {
  color: #52665a;
}
.quick-panel {
  padding: 21px 23px;
}
.quick-spark {
  color: #d5bb68;
  font-size: 23px;
}
.type-switch {
  margin: 14px 0 13px;
  background: #f3f6f3;
  padding: 3px;
  border-radius: 9px;
  display: flex;
}
.type-btn {
  flex: 1;
  padding: 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8d9891;
  font-size: 11px;
  font-weight: 700;
}
.type-btn.selected {
  background: #fff;
  color: #315c49;
  box-shadow: 0 1px 5px #304b3812;
}
.quick-panel label,
.auth-card label {
  display: block;
  font-size: 10px;
  color: #718078;
  font-weight: 700;
  margin: 9px 0;
}
.quick-panel input,
.quick-panel select,
.auth-card input {
  display: block;
  margin-top: 6px;
  width: 100%;
  border: 1px solid #e8ede9;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: #34483b;
  outline: 0;
  font-size: 12px;
}
.quick-panel input:focus,
.quick-panel select:focus,
.auth-card input:focus {
  border-color: #9ab6a3;
  box-shadow: 0 0 0 3px #eaf1ec;
}
.amount-input {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #e9eeea;
}
.amount-input span {
  font: 600 20px Manrope;
  color: #9ca9a0;
}
.amount-input input {
  border: 0;
  font: 700 25px Manrope;
  padding: 2px 0;
}
.amount-input input:focus {
  box-shadow: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row select,
.form-row input {
  font-size: 11px;
  padding: 8px;
}
.optional {
  font-weight: 400;
  color: #aab2ac;
}
.quick-panel .button {
  margin-top: 8px;
  padding: 11px;
  font-size: 12px;
}
.movements-panel {
  margin-top: 15px;
  padding-bottom: 6px;
}
.movement-list {
  margin-top: 10px;
}
.movement {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 1px;
  border-top: 1px solid #f0f2f0;
}
.movement-icon {
  height: 32px;
  width: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #faeee9;
  color: #bd775d;
}
.movement-icon.income {
  background: #eaf3ec;
  color: #5f9972;
}
.movement-icon.saving {
  background: #edf2f7;
  color: #7894ad;
}
.movement-name {
  flex: 1;
}
.movement-name b,
.movement-name small {
  display: block;
}
.movement-name b {
  font-size: 12px;
}
.movement-name small {
  font-size: 10px;
  color: #9aa49e;
  margin-top: 4px;
}
.movement > strong {
  font-size: 12px;
}
.movement > strong.expense,
.negative {
  color: #bd775d;
}
.movement > strong.income,
.positive {
  color: #508662;
}
.delete-movement {
  border: 0;
  background: none;
  color: #b2bcb5;
  font-size: 18px;
  padding: 3px;
}
.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 26px;
  color: #9aa69e;
}
.empty-state span {
  font-size: 25px;
  color: #d4ba67;
}
.empty-state b {
  margin: 8px;
  font-size: 13px;
}
.empty-state small {
  font-size: 11px;
}
.main-area footer {
  display: flex;
  justify-content: space-between;
  color: #a2aca5;
  font-size: 10px;
  padding: 18px 2px;
}
.auth-shell {
  min-height: 100vh;
  max-width: 1080px;
  margin: auto;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 55%, #e9f0e9 0, transparent 55%);
}
.auth-brand {
  position: absolute;
  top: 30px;
  left: max(30px, calc((100vw - 1000px) / 2));
}
.auth-card {
  width: min(100%, 400px);
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 15px 55px #304b3810;
}
.auth-card h1 {
  font-size: 27px;
}
.muted {
  color: #8b9890;
  font-size: 13px;
  line-height: 1.6;
  margin: 9px 0 23px;
}
.auth-card label {
  font-size: 11px;
  margin: 15px 0;
}
.auth-card input {
  font-size: 13px;
  padding: 12px;
}
.auth-card .button {
  margin-top: 12px;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  color: #8a978f;
  margin: 20px 0 0;
}
.text-button {
  border: 0;
  background: none;
  color: #315c49;
  font-weight: 700;
}
.tiny-note {
  font-size: 10px;
  color: #a5afa8;
  margin-top: 17px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: #263a2e;
  color: #fff;
  border-radius: 10px;
  padding: 12px 17px;
  font-size: 12px;
  box-shadow: var(--shadow);
  transition: 0.2s;
  z-index: 10;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.admin-intro {
  color: #8d9991;
  font-size: 13px;
  margin: 13px 0 20px;
}
.admin-stats {
  grid-template-columns: repeat(3, 1fr);
}
.admin-stats .stat-card {
  min-height: 130px;
}
.users-panel {
  margin-top: 18px;
  padding-bottom: 20px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
  margin-top: 18px;
  text-align: left;
}
th {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #9aa49e;
  font-weight: 700;
  padding: 11px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 11px;
  border-bottom: 1px solid #f0f2f0;
  font-size: 11px;
  color: #68776e;
}
td b,
td small {
  display: block;
}
td b {
  font-size: 12px;
  color: #34483b;
}
td small {
  margin-top: 4px;
  color: #98a29b;
  font-size: 10px;
}
.empty-cell {
  text-align: center;
  padding: 30px;
}
.privacy-note {
  color: #a1aaa4;
  font-size: 10px;
  margin-top: 15px;
}
.back-link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #718078;
  font-size: 11px;
  margin-top: 20px;
}
.admin-layout .main-area {
  padding-top: 42px;
}
@media (max-width: 1050px) {
  .main-area {
    padding: 30px 27px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 65px;
    padding: 23px 12px;
  }
  .brand {
    justify-content: center;
  }
  .brand > span:not(.brand-mark),
  .side-label,
  .nav-item:not(.active),
  .nav-item.active {
    font-size: 0;
  }
  .nav-item {
    margin-top: 40px;
    text-align: center;
    padding: 12px 0;
  }
  .nav-item span {
    font-size: 20px;
    margin: 0;
  }
  .profile {
    justify-content: center;
    border: 0;
  }
  .profile > div:not(.avatar),
  .profile button {
    display: none;
  }
  .main-area {
    padding: 25px 16px;
  }
  .topbar h1 {
    font-size: 24px;
  }
  .topbar > .button {
    font-size: 0;
    padding: 11px;
  }
  .topbar > .button span {
    font-size: 20px;
  }
  .month-hint {
    display: none;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 9px;
  }
  .stat-card {
    padding: 16px;
    min-height: 128px;
  }
  .stat-card > strong {
    font-size: 20px;
  }
  .donut-wrap {
    min-height: 150px;
  }
  .panel {
    padding: 18px;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .main-area footer {
    gap: 10px;
  }
  .auth-card {
    padding: 27px 22px;
  }
  .auth-brand {
    left: 22px;
  }
  .movement {
    gap: 8px;
  }
  .movement > strong {
    font-size: 11px;
  }
}
@media (max-width: 420px) {
  .sidebar {
    width: 54px;
    padding: 20px 8px;
  }
  .brand-mark {
    height: 31px;
    width: 31px;
  }
  .stat-card > span {
    font-size: 10px;
  }
  .stat-card > small {
    font-size: 9px;
  }
  .stat-card > strong {
    font-size: 17px;
  }
  .stat-card.dark > strong {
    font-size: 20px;
  }
  .chart-list {
    width: 57%;
  }
  .chart-line {
    font-size: 10px;
    gap: 5px;
  }
  .chart-line b {
    font-size: 9px;
  }
}
/* Tabla mensual completa: recorrido por fecha y cabecera visible al desplazarse. */
.movements-table-wrap {
  max-height: 440px;
  overflow: auto;
  margin-top: 14px;
  border-top: 1px solid #f0f2f0;
}
.movement-table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: collapse;
  text-align: left;
}
.movement-table thead {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.movement-table th {
  padding: 12px 10px;
  font-size: 9px;
  letter-spacing: 0.75px;
}
.movement-table td {
  padding: 12px 10px;
  font-size: 12px;
}
.movement-table td.date-cell {
  color: #6d7d72;
  white-space: nowrap;
  font-weight: 600;
}
.movement-table .amount-col {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}
.movement-table td:last-child {
  width: 35px;
}
.kind-pill {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: #faeee9;
  color: #bd775d;
}
.kind-pill.income {
  background: #eaf3ec;
  color: #508662;
}
.kind-pill.saving {
  background: #edf2f7;
  color: #7894ad;
}
.movement-table .empty-state {
  padding: 24px;
}
.movement-table .empty-state span {
  font-size: 22px;
}
.movement-table .delete-movement {
  font-size: 16px;
}
@media (max-width: 760px) {
  .movements-table-wrap {
    max-height: 55vh;
    margin-left: -4px;
    margin-right: -4px;
  }
  .movement-table {
    min-width: 640px;
  }
  .movement-table td {
    padding: 10px 8px;
  }
}
.movement-table .day-total-row td {
  padding: 0;
  background: #f6f8f6;
  border-top: 1px solid #e9eeea;
}
.day-toggle {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #35483b;
}
.day-toggle > strong {
  text-transform: capitalize;
  font-size: 12px;
  min-width: 155px;
}
.day-chevron {
  color: #7e9083;
  font-size: 16px;
  transition: transform 0.15s;
}
.day-toggle.collapsed .day-chevron {
  transform: rotate(-90deg);
}
.day-total-label {
  font-size: 10px;
  color: #8b9890;
  display: flex;
  align-items: center;
  gap: 6px;
}
.day-total-label b {
  font-size: 12px;
  color: #bd775d;
}
.day-count {
  margin-left: auto;
  color: #98a29b;
  font-size: 10px;
}
.movement-table .day-detail[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .day-toggle {
    gap: 8px;
  }
  .day-toggle > strong {
    min-width: 135px;
  }
  .day-count {
    margin-left: auto;
  }
}
.calendar-block {
  border-top: 1px solid #edf0ed;
  margin-top: 15px;
  padding-top: 13px;
}
.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.calendar-heading b {
  font: 700 12px Manrope;
  color: #3b5043;
}
.calendar-heading small {
  font-size: 9px;
  color: #98a49c;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(25px, 1fr));
  gap: 3px;
  text-align: center;
}
.calendar-weekday {
  padding: 3px;
  color: #a0aaa3;
  font-size: 9px;
  font-weight: 700;
}
.calendar-blank {
  min-height: 27px;
}
.calendar-day {
  height: 28px;
  width: 28px;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #596a5f;
  font-size: 10px;
}
.calendar-day:hover {
  background: #edf3ee;
  color: #315c49;
}
.calendar-day.selected {
  background: #315c49;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px #315c4933;
}
.calendar-day:focus-visible {
  outline: 2px solid #9cb7a5;
  outline-offset: 2px;
}
.chart-panel .legend {
  margin-top: 0;
}
.chart-panel .donut-wrap {
  min-height: 148px;
}
.movement-table .empty-state {
  min-height: 120px;
}
@media (max-width: 760px) {
  .calendar-heading small {
    font-size: 8px;
  }
  .calendar-day {
    height: 27px;
    width: 27px;
  }
}
.category-screen {
  max-width: 1440px;
}
.manager-intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #edf3ee;
  border: 1px solid #e1ebe3;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0 18px;
}
.manager-intro > span {
  height: 22px;
  width: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #d9e8dc;
  color: #456d51;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.manager-intro b {
  font: 700 12px Manrope;
  color: #3a5140;
}
.manager-intro p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: #718078;
}
.category-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.manager-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px 20px;
  box-shadow: var(--shadow);
}
.manager-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.manager-card-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.manager-index {
  height: 27px;
  width: 27px;
  border-radius: 9px;
  background: #edf3ee;
  color: #62816a;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.manager-card-head h2 {
  margin: 0;
  font: 700 16px Manrope;
  text-transform: capitalize;
  color: #314639;
}
.type-count {
  padding: 5px 8px;
  border-radius: 20px;
  background: #f4f6f4;
  color: #8c9990;
  font-size: 9px;
}
.manager-description {
  font-size: 11px;
  line-height: 1.5;
  color: #8b9890;
  margin: 10px 0 14px;
  min-height: 17px;
}
.type-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 31px;
}
.type-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid #e8ede9;
  border-radius: 20px;
  padding: 5px 6px 5px 10px;
  background: #fafbfa;
  color: #516257;
  font-size: 10px;
}
.remove-type {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef2ee;
  color: #859289;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.remove-type:hover {
  background: #faeee9;
  color: #b96853;
}
.no-types {
  font-size: 10px;
  color: #9ba69f;
  padding: 7px 0;
}
.add-type-form {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #f0f2f0;
}
.add-type-form label {
  display: block;
  margin-bottom: 7px;
  color: #819087;
  font-size: 10px;
  font-weight: 700;
}
.inline-add {
  display: flex;
  gap: 8px;
}
.inline-add input {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  border: 1px solid #e5ebe6;
  border-radius: 8px;
  outline: 0;
  font-size: 11px;
  color: #34483b;
}
.inline-add input:focus {
  border-color: #9ab6a3;
  box-shadow: 0 0 0 3px #eaf1ec;
}
.inline-add .button {
  font-size: 10px;
  padding: 8px 12px;
  white-space: nowrap;
}
.manager-footnote {
  color: #99a49c;
  font-size: 10px;
  margin: 17px 2px 0;
}
.movement-type {
  font-size: 11px;
  color: #43594a;
}
.movement-table td small {
  display: block;
  font-size: 10px;
  color: #9aa49e;
  margin-top: 3px;
}
.movement-table td .movement-type + small {
  font-weight: 400;
}
@media (max-width: 850px) {
  .category-manager-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .category-screen {
    padding-top: 25px;
  }
  .category-screen .topbar {
    align-items: flex-start;
    gap: 12px;
  }
  .category-screen .topbar h1 {
    font-size: 22px;
  }
  .category-screen .topbar > .button {
    font-size: 10px;
    padding: 9px 10px;
    white-space: nowrap;
  }
  .manager-card {
    padding: 16px;
  }
  .manager-intro {
    padding: 13px;
  }
  .inline-add .button {
    padding: 8px;
  }
}
.quick-panel label[hidden] {
  display: none;
}
.admin-categories summary {
  cursor: pointer;
  color: #52745c;
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
}
.admin-category-list {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 28px;
  width: min(360px, 80vw);
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.admin-categories {
  position: relative;
}
.admin-category-list section {
  padding: 8px 4px;
  border-bottom: 1px solid #f0f2f0;
}
.admin-category-list section:last-child {
  border-bottom: 0;
}
.admin-category-list b {
  display: block;
  text-transform: capitalize;
  color: #42584a;
  font-size: 10px;
}
.admin-category-list small {
  display: block;
  margin-top: 4px;
  color: #8b9890;
  font-size: 9px;
  line-height: 1.45;
}
.quick-panel {
  display: flex;
  flex-direction: column;
}
.quick-panel form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.quick-panel .button.wide {
  width: 100%;
  min-height: 43px;
  margin-top: auto;
}
.quick-panel textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  resize: vertical;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid #e8ede9;
  border-radius: 8px;
  color: #34483b;
  outline: 0;
  font:
    12px "DM Sans",
    sans-serif;
  line-height: 1.4;
}
.quick-panel textarea:focus {
  border-color: #9ab6a3;
  box-shadow: 0 0 0 3px #eaf1ec;
}
.description-field {
  margin-bottom: 12px !important;
}
.calendar-weekday:last-child {
  color: #bd6258;
}
.calendar-day {
  background: #f3f6f3;
  color: #496654;
}
.calendar-day.sunday {
  background: #fff0ee;
  color: #b85a51;
}
.calendar-day.sunday:hover {
  background: #f9dfdc;
  color: #a94c44;
}
.calendar-day.selected {
  background: #315c49;
  color: #fff;
}
.calendar-day.sunday.selected {
  background: #bb5c52;
  color: #fff;
  box-shadow: 0 2px 6px #bb5c5240;
}
.movements-panel {
  margin-top: 12px;
}
.content-grid {
  gap: 13px;
}
.quick-panel {
  padding: 21px 22px;
}
.quick-panel .panel-heading {
  padding-bottom: 2px;
}
.quick-panel form {
  gap: 0;
}
.quick-panel .type-switch {
  margin: 13px 0 11px;
  padding: 4px;
}
.quick-panel .type-btn {
  min-height: 34px;
  font-size: 11px;
}
.quick-panel .amount-label {
  margin: 7px 0 10px;
  font-size: 10px;
  letter-spacing: 0.1px;
}
.quick-panel .amount-input {
  padding: 2px 0 5px;
  border-bottom: 1px solid #e5ebe6;
}
.quick-panel .amount-input input {
  font: 700 28px Manrope;
}
.quick-panel .form-row {
  gap: 11px;
}
.quick-panel .form-row label {
  margin: 8px 0;
  font-size: 10px;
}
.quick-panel select,
.quick-panel input[type="date"] {
  min-height: 38px;
  border-radius: 9px;
  background: #fbfcfb;
}
.quick-panel .date-row {
  align-items: center;
}
.quick-panel .date-row label {
  margin: 5px 0;
}
.date-hint {
  padding-top: 13px;
  color: #a0aaa3;
  font-size: 9px;
}
.quick-panel .description-field {
  margin: 7px 0 12px !important;
  color: #637268;
  font-size: 10px;
}
.quick-panel textarea {
  min-height: 68px;
  border-color: #e5ebe6;
  background: #fbfcfb;
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 11px;
}
.quick-submit {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #edf0ed;
}
.quick-submit .button.wide {
  height: 45px;
  margin: 0 !important;
  border-radius: 10px;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.1px;
}
.quick-submit .button span[aria-hidden] {
  font-size: 18px;
  transition: transform 0.15s;
}
.quick-submit .button:hover span[aria-hidden] {
  transform: translateX(3px);
}
.quick-submit small {
  display: block;
  margin-top: 7px;
  text-align: center;
  color: #a0aaa3;
  font-size: 9px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.annual-screen {
  max-width: 1460px;
}
.year-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #819087;
  font-size: 11px;
  font-weight: 700;
}
.year-picker select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  color: #3c5144;
  font-weight: 700;
}
.annual-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 23px;
}
.annual-chart-panel {
  margin-top: 16px;
}
.annual-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 5px;
  font-size: 10px;
  color: #78867d;
}
.annual-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.annual-legend i {
  height: 8px;
  width: 8px;
  border-radius: 50%;
}
.legend-income {
  background: #6d9c7c;
}
.legend-expense {
  background: #d58c73;
}
.annual-legend small {
  margin-left: auto;
  color: #a0aaa3;
}
.annual-chart {
  height: 245px;
  display: grid;
  grid-template-columns: repeat(12, minmax(35px, 1fr));
  gap: 8px;
  align-items: end;
  border-bottom: 1px solid #e9eeea;
  padding: 10px 3px 0;
}
.annual-month {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0 1px;
  color: #87938b;
}
.annual-month > b {
  font-size: 9px;
  font-weight: 600;
}
.annual-bars {
  height: 205px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
}
.annual-bars i {
  display: block;
  width: min(32%, 15px);
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  transition: height 0.2s;
}
.annual-bars .income-bar {
  background: #80a98c;
}
.annual-bars .expense-bar {
  background: #dfa08a;
}
.annual-month:hover > b {
  color: #315c49;
}
.annual-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  gap: 15px;
  margin-top: 15px;
}
.annual-table-panel,
.annual-category-panel {
  min-width: 0;
}
.annual-table-panel table {
  min-width: 570px;
}
.annual-row {
  cursor: pointer;
}
.annual-row:hover {
  background: #f8faf8;
}
.month-link {
  border: 0;
  background: none;
  color: #3b5745;
  font: 600 11px "DM Sans";
  padding: 0;
}
.annual-category-panel .panel-heading {
  margin-bottom: 13px;
}
.annual-category-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid #f0f2f0;
  color: #718078;
  font-size: 11px;
}
.annual-category-row b {
  color: #3c5144;
}
.preview-note {
  padding: 13px 15px;
  margin: 20px 0;
  background: #f5f7f3;
  border: 1px solid #e8ede7;
  border-radius: 10px;
  color: #78857d;
  font-size: 11px;
  line-height: 1.55;
}
.preview-note b {
  color: #425a49;
}
.preview-badge {
  padding: 6px 9px;
  border-radius: 20px;
  background: #fff3db;
  color: #967540;
  letter-spacing: 0.8px;
  font-size: 9px;
  font-weight: 800;
}
.business-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 13px;
}
.business-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.business-avatar {
  height: 36px;
  width: 36px;
  border-radius: 11px;
  background: #eaf1e9;
  color: #4d7659;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.business-toolbar b,
.business-toolbar small {
  display: block;
}
.business-toolbar b {
  font: 700 13px Manrope;
}
.business-toolbar small {
  margin-top: 3px;
  color: #99a39c;
  font-size: 10px;
}
.business-toolbar button:disabled {
  opacity: 0.65;
  cursor: default;
}
.business-stats,
.assets-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 15px;
  margin-top: 15px;
}
.business-movements {
  margin-top: 13px;
}
.business-movements > div {
  display: grid;
  grid-template-columns: 68px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid #f0f2f0;
}
.business-movements > div > b {
  font-size: 11px;
  color: #56665c;
}
.business-movements > div > strong {
  font-size: 11px;
  white-space: nowrap;
}
.business-next {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf0ed;
  color: #9aa49d;
  font-size: 10px;
  line-height: 1.5;
}
.back-dashboard {
  margin-top: 17px;
}
.asset-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.asset-card {
  padding: 22px;
}
.asset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.asset-icon {
  height: 34px;
  width: 34px;
  border-radius: 11px;
  background: #edf2f7;
  color: #7894ad;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.asset-card h2 {
  margin: 19px 0 4px;
  font: 700 16px Manrope;
}
.asset-card > p {
  margin: 0;
  color: #97a29b;
  font-size: 11px;
}
.asset-value {
  display: block;
  margin: 15px 0;
  font: 700 25px Manrope;
  color: #334b3d;
}
.asset-dates {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f0f2f0;
}
.asset-dates small,
.asset-dates b {
  display: block;
}
.asset-dates small {
  color: #9aa49d;
  font-size: 9px;
}
.asset-dates b {
  margin-top: 4px;
  color: #596a5f;
  font-size: 10px;
}
.maturity-track {
  height: 6px;
  border-radius: 8px;
  background: #edf1ee;
  overflow: hidden;
}
.maturity-track i {
  height: 100%;
  display: block;
  border-radius: 8px;
  background: #8caf96;
}
.asset-foot {
  display: block;
  margin-top: 8px;
  color: #929e96;
  font-size: 9px;
}
@media (max-width: 1080px) {
  .main-area {
    padding-left: 28px;
    padding-right: 28px;
  }
  .annual-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .annual-bottom {
    grid-template-columns: 1fr;
  }
  .annual-chart-panel {
    overflow: hidden;
  }
  .annual-chart {
    min-width: 600px;
  }
  .business-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .layout:not(.admin-layout) {
    display: block;
  }
  .layout:not(.admin-layout) .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 9px 12px;
    background: #fff;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }
  .layout:not(.admin-layout) .brand {
    justify-content: flex-start;
    min-height: 31px;
  }
  .layout:not(.admin-layout) .brand > span:not(.brand-mark) {
    display: inline;
  }
  .layout:not(.admin-layout) .brand-mark {
    height: 29px;
    width: 29px;
  }
  .layout:not(.admin-layout) .side-label,
  .layout:not(.admin-layout) .side-bottom {
    display: none;
  }
  .layout:not(.admin-layout) .side-nav {
    flex-direction: row;
    gap: 4px;
    margin: 0 -2px;
    padding: 1px 2px 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .layout:not(.admin-layout) .side-nav::-webkit-scrollbar {
    display: none;
  }
  .layout:not(.admin-layout) .side-nav .nav-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 8px 9px;
    font-size: 10px !important;
    white-space: nowrap;
    text-align: center;
  }
  .layout:not(.admin-layout) .side-nav .nav-item span {
    font-size: 14px;
    margin: 0;
  }
  .layout:not(.admin-layout) .main-area {
    padding: 18px 14px 22px;
  }
  .main-area footer {
    gap: 8px;
  }
  .annual-chart-panel {
    padding: 17px 14px;
  }
  .annual-chart {
    min-width: 610px;
    height: 220px;
  }
  .annual-legend {
    gap: 10px;
    flex-wrap: wrap;
  }
  .annual-legend small {
    width: 100%;
    margin: 0;
  }
  .annual-stats,
  .business-stats,
  .assets-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-stats .stat-card.dark {
    grid-column: span 2;
  }
  .asset-cards {
    grid-template-columns: 1fr;
  }
  .annual-screen .topbar h1,
  .feature-screen .topbar h1 {
    font-size: 23px;
  }
  .business-toolbar {
    align-items: flex-start;
    gap: 9px;
  }
  .business-toolbar > .button {
    font-size: 0;
    padding: 8px;
  }
  .business-toolbar > .button::first-letter {
    font-size: 14px;
  }
  .business-movements > div {
    grid-template-columns: 62px minmax(70px, 1fr) auto;
    gap: 7px;
  }
  .business-movements > div > b,
  .business-movements > div > strong {
    font-size: 10px;
  }
  .asset-card {
    padding: 18px;
  }
}
.annual-chart-panel {
  overflow-x: auto;
}
.annual-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 13px 0 0;
}
.series-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #e8ede9;
  border-radius: 20px;
  background: #fbfcfb;
  color: #65736a;
  font-size: 10px;
  cursor: pointer;
}
.series-option input {
  margin: 0;
  accent-color: #315c49;
}
.series-option > i,
.annual-legend i {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  display: inline-block;
}
.series-option .income-bar,
.annual-legend .income-bar {
  background: #6e9e7d;
}
.series-option .expense-bar,
.annual-legend .expense-bar {
  background: #d58c73;
}
.series-option .saving-bar,
.annual-legend .saving-bar {
  background: #7795b3;
}
.series-option .available-bar,
.annual-legend .available-bar {
  background: #c1a65d;
}
.annual-bars .saving-bar {
  background: #7795b3;
}
.annual-bars .available-bar {
  background: #c1a65d;
}
.annual-bars .income-bar,
.annual-bars .expense-bar,
.annual-bars .saving-bar,
.annual-bars .available-bar {
  width: min(22%, 13px);
}
.business-nav-list {
  display: grid;
  gap: 3px;
  margin: 2px 0 5px 25px;
}
.business-nav-item {
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  white-space: nowrap;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #87948b;
  padding: 7px 9px;
  font-size: 10px;
}
.business-nav-item:hover,
.business-nav-item.selected {
  background: #f1f5f1;
  color: #315c49;
}
.business-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 8px;
}
.business-filter-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #77867c;
  font-size: 11px;
  font-weight: 700;
}
.business-filter-row select {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
  color: #364b3e;
}
.business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.business-actions .button {
  padding: 8px 11px;
  font-size: 10px;
}
.business-stats {
  margin-top: 14px;
}
.business-bottom-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 15px;
  margin-top: 15px;
}
.business-move-form {
  display: flex;
  flex-direction: column;
}
.business-move-form .form-row {
  gap: 10px;
}
.business-move-form label {
  display: block;
  margin: 10px 0;
  color: #718078;
  font-size: 10px;
  font-weight: 700;
}
.business-move-form input,
.business-move-form select,
.business-move-form textarea,
.payable-form input {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid #e8ede9;
  border-radius: 8px;
  background: #fbfcfb;
  color: #35483b;
  font-size: 11px;
}
.business-move-form textarea {
  resize: vertical;
}
.business-move-form .button {
  margin-top: 11px;
}
.business-movements > div > b small {
  font-size: 9px;
  color: #9aa49e;
}
.payable-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 135px auto;
  gap: 7px;
  margin: 15px 0;
}
.payable-form input {
  margin: 0;
}
.payable-form .button {
  padding: 8px 10px;
  font-size: 10px;
  white-space: nowrap;
}
.payable-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid #f0f2f0;
}
.payable-row b,
.payable-row small {
  display: block;
}
.payable-row b {
  font-size: 10px;
  color: #53635a;
}
.payable-row small {
  margin-top: 4px;
  font-size: 9px;
  color: #9aa49e;
}
.payable-row > strong {
  font-size: 10px;
  color: #415449;
  white-space: nowrap;
}
.payable-row .button {
  padding: 7px 8px;
  font-size: 9px;
  white-space: nowrap;
}
.paid-badge {
  padding: 5px 8px;
  background: #eaf3ec;
  color: #508662;
  border-radius: 20px;
  font-size: 9px;
}
.business-empty {
  margin: 70px auto 0;
  max-width: 540px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 35px;
}
.business-empty h2 {
  font: 700 19px Manrope;
  margin: 16px 0 5px;
}
.business-empty p {
  max-width: 380px;
  color: #8b9890;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.app-dialog {
  width: min(460px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 22px 70px #1e352544;
}
.app-dialog::backdrop {
  background: #1f302a66;
  backdrop-filter: blur(3px);
}
.app-dialog form {
  padding: 25px;
}
.dialog-heading h2 {
  font: 700 22px Manrope;
  margin: 0;
}
.dialog-heading > p:last-child {
  font-size: 11px;
  line-height: 1.5;
  color: #8b9890;
  margin: 8px 0 18px;
}
.app-dialog label {
  display: block;
  margin: 13px 0;
  color: #718078;
  font-size: 10px;
  font-weight: 700;
}
.app-dialog input,
.app-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #e6ece7;
  border-radius: 8px;
  font:
    12px "DM Sans",
    sans-serif;
  color: #35483b;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 19px;
}
.dialog-actions .button {
  font-size: 11px;
}
.business-type-form {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f0;
}
.business-type-form label {
  display: block;
  margin-bottom: 7px;
  color: #819087;
  font-size: 10px;
  font-weight: 700;
}
@media (max-width: 1000px) {
  .payable-form {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
  .payable-form input[type="date"] {
    grid-column: 1;
  }
  .payable-form .button {
    grid-column: 2;
    grid-row: 2;
  }
  .business-bottom-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .business-nav-list {
    display: flex;
    overflow-x: auto;
    margin: 0;
    padding: 1px 0 3px;
  }
  .business-nav-item {
    flex: 0 0 auto;
    max-width: 150px;
  }
  .annual-controls {
    gap: 6px;
  }
  .series-option {
    padding: 6px 8px;
  }
  .business-filter-row {
    gap: 8px;
    align-items: flex-start;
  }
  .business-filter-row label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .business-filter-row select {
    min-width: 160px;
  }
  .business-toolbar {
    flex-direction: column;
  }
  .business-actions {
    width: 100%;
  }
  .business-actions .button {
    flex: 1;
    justify-content: center;
  }
  .business-bottom-grid {
    grid-template-columns: 1fr;
  }
  .payable-form {
    grid-template-columns: 1fr 1fr;
  }
  .payable-form input:first-child {
    grid-column: span 2;
  }
  .payable-form input[type="date"] {
    grid-column: span 1;
  }
  .payable-form .button {
    grid-column: span 1;
    grid-row: auto;
    justify-content: center;
  }
  .payable-row {
    grid-template-columns: minmax(75px, 1fr) auto;
  }
  .payable-row .button,
  .paid-badge {
    grid-column: 2;
    justify-self: end;
  }
  .business-empty {
    margin-top: 30px;
    padding: 25px;
  }
  .annual-chart-panel {
    overflow-x: auto;
  }
}
@media (max-width: 420px) {
  .business-actions {
    gap: 5px;
  }
  .business-actions .button {
    font-size: 9px;
    padding: 8px 6px;
  }
  .business-filter-row select {
    min-width: 140px;
  }
  .payable-form {
    grid-template-columns: 1fr;
  }
  .payable-form input:first-child,
  .payable-form input[type="date"],
  .payable-form .button {
    grid-column: 1;
  }
  .payable-row {
    grid-template-columns: minmax(70px, 1fr) auto;
  }
  .series-option {
    font-size: 9px;
  }
}
.assets-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.products-panel {
  margin-top: 17px;
}
.product-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #829087;
  font-size: 10px;
  font-weight: 700;
}
.product-filter select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: #405449;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.product-card {
  padding: 18px 20px;
  box-shadow: none;
}
.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.asset-icon.product-saving {
  background: #eaf3ec;
  color: #5e9972;
}
.product-kind {
  padding: 5px 8px;
  border-radius: 20px;
  background: #edf2f7;
  color: #6985a0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.product-kind.saving {
  background: #eaf3ec;
  color: #5e8769;
}
.product-card h3 {
  margin: 16px 0 4px;
  font: 700 15px Manrope;
  color: #354b3d;
}
.product-description {
  min-height: 14px;
  margin: 0;
  color: #96a199;
  font-size: 10px;
}
.product-card .asset-value {
  margin: 13px 0;
  font-size: 23px;
}
.product-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid #f0f2f0;
}
.product-meta small,
.product-meta b {
  display: block;
}
.product-meta small {
  color: #9aa49e;
  font-size: 9px;
}
.product-meta b {
  margin-top: 4px;
  color: #53655a;
  font-size: 10px;
}
.product-card .asset-foot {
  margin-top: 7px;
}
.product-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #f0f2f0;
}
.product-actions .button {
  padding: 7px 11px;
  font-size: 10px;
}
.button.danger {
  border: 1px solid #f1ded9;
  background: #fff;
  color: #b96754;
}
.button.danger:hover {
  background: #fff4f1;
}
.product-empty {
  grid-column: 1/-1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #98a49c;
}
.product-empty span {
  font-size: 30px;
  color: #90aa97;
}
.product-empty b {
  font-size: 12px;
  color: #617168;
}
.product-empty small {
  font-size: 10px;
}
.savings-dialog fieldset {
  margin: 12px 0;
  padding: 10px 12px 2px;
  border: 1px solid #e8ede9;
  border-radius: 10px;
}
.savings-dialog fieldset[hidden] {
  display: none;
}
.savings-dialog legend {
  padding: 0 5px;
  color: #819087;
  font-size: 10px;
  font-weight: 700;
}
.savings-dialog .form-row {
  gap: 10px;
}
.savings-dialog .form-row label {
  min-width: 0;
  flex: 1;
}
.savings-dialog .form-row input {
  min-width: 0;
}
.savings-dialog label[hidden] {
  display: none;
}
@media (max-width: 1000px) {
  .assets-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 16px;
  }
  .product-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .products-panel {
    padding: 17px 14px;
  }
  .product-filter {
    gap: 5px;
  }
  .product-filter select {
    padding: 7px;
  }
  .assets-stats .stat-card {
    min-height: 118px;
  }
}
@media (max-width: 420px) {
  .layout:not(.admin-layout) .side-nav .nav-item {
    padding: 7px 8px;
    font-size: 9px !important;
  }
  .annual-stats,
  .business-stats,
  .assets-stats {
    gap: 8px;
  }
  .annual-stats .stat-card,
  .business-stats .stat-card,
  .assets-stats .stat-card {
    padding: 13px;
  }
  .annual-stats .stat-card > strong,
  .business-stats .stat-card > strong,
  .assets-stats .stat-card > strong {
    font-size: 17px;
  }
  .annual-month > b {
    font-size: 8px;
  }
  .business-toolbar small {
    font-size: 9px;
  }
}

/* Monthly drill-down opened from an annual chart column. */
.annual-detail-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 24px;
  background: #f8faf8;
}
.annual-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.annual-detail-head h2 {
  margin: 0;
  font: 700 24px Manrope;
  color: #2f493a;
}
.annual-detail-head > div > p:last-child {
  margin: 7px 0 0;
  color: #87938b;
  font-size: 11px;
}
.detail-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #78867c;
  font-size: 22px;
  line-height: 1;
}
.annual-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.annual-detail-summary article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.annual-detail-summary small,
.annual-detail-summary b {
  display: block;
}
.annual-detail-summary small {
  color: #8c9890;
  font-size: 9px;
}
.annual-detail-summary b {
  margin-top: 7px;
  color: #405649;
  font: 700 15px Manrope;
}
.annual-detail-summary .trend-up b {
  color: #bd775d;
}
.annual-detail-summary .trend-down b {
  color: #508662;
}
.annual-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 12px;
}
.annual-detail-grid > .panel {
  padding: 17px;
  box-shadow: none;
}
.annual-detail-grid h3 {
  margin: 0;
  font: 700 14px Manrope;
}
.annual-detail-grid .panel-heading p {
  font-size: 10px;
}
.detail-category-chart {
  margin-top: 14px;
}
.detail-category {
  padding: 12px 0;
  border-top: 1px solid #f0f2f0;
}
.detail-category-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #506258;
  font-size: 10px;
}
.detail-category-label strong {
  color: #354b3d;
}
.detail-bar-track {
  height: 7px;
  margin: 7px 0 4px;
  border-radius: 8px;
  background: #edf1ee;
  overflow: hidden;
}
.detail-bar-track i {
  height: 100%;
  display: block;
  border-radius: 8px;
}
.detail-category > small {
  color: #96a199;
  font-size: 9px;
}
.detail-types {
  margin: 9px 0 0 10px;
  border-left: 2px solid #edf1ee;
  padding-left: 10px;
}
.detail-types > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  color: #758078;
  font-size: 9px;
}
.detail-types b {
  color: #45584b;
}
.detail-types small {
  color: #99a39c;
  text-align: right;
}
.detail-movement-list {
  max-height: 460px;
  overflow: auto;
  margin-top: 12px;
}
.detail-movement-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid #f0f2f0;
}
.detail-movement-date {
  color: #89968d;
  font-size: 9px;
}
.detail-movement-list article b,
.detail-movement-list article small {
  display: block;
}
.detail-movement-list article b {
  color: #45584b;
  font-size: 10px;
}
.detail-movement-list article small {
  margin-top: 3px;
  color: #99a39c;
  font-size: 9px;
}
.detail-movement-list article > strong {
  color: #bd775d;
  font-size: 10px;
  white-space: nowrap;
}
.annual-detail-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: #9aa49e;
  font-size: 9px;
}
.annual-detail-foot .button {
  padding: 8px 12px;
  font-size: 10px;
}
@media (max-width: 720px) {
  .annual-detail-dialog {
    padding: 17px;
  }
  .annual-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .annual-detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-movement-list {
    max-height: 300px;
  }
  .annual-detail-foot {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
  .annual-detail-foot .button {
    align-self: flex-end;
  }
}

/* Expandable category and type breakdown in the monthly annual-report detail. */
.detail-category {
  padding: 0;
  border-top: 1px solid #f0f2f0;
}
.detail-category > summary {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.detail-category > summary::-webkit-details-marker,
.detail-type > summary::-webkit-details-marker {
  display: none;
}
.detail-category-chevron {
  flex: 0 0 14px;
  margin-top: 1px;
  color: #82978a;
  font-size: 15px;
  transition: transform 0.15s;
}
.detail-category[open] > .detail-category-summary {
  color: #315c49;
}
.detail-category[open] > summary .detail-category-chevron {
  transform: rotate(180deg);
}
.detail-category-content {
  display: block;
  flex: 1;
  min-width: 0;
}
.detail-category-content > .detail-category-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #506258;
  font-size: 10px;
}
.detail-category-content > .detail-category-label strong {
  color: #354b3d;
}
.detail-category-content > .detail-bar-track {
  display: block;
  height: 7px;
  margin: 7px 0 4px;
  border-radius: 8px;
  background: #edf1ee;
  overflow: hidden;
}
.detail-category-content > .detail-bar-track i {
  height: 100%;
  display: block;
  border-radius: 8px;
}
.detail-category-content > small {
  color: #96a199;
  font-size: 9px;
}
.detail-types {
  margin: 0 0 12px 23px;
  border-left: 2px solid #edf1ee;
  padding-left: 10px;
}
.detail-type {
  border-top: 1px dashed #edf0ed;
}
.detail-type > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  padding: 8px 2px;
  cursor: pointer;
  list-style: none;
  color: #758078;
  font-size: 10px;
}
.detail-type > summary > b {
  color: #45584b;
}
.detail-type > summary > small {
  grid-column: 1/-1;
  color: #99a39c;
  text-align: right;
  font-size: 9px;
}
.detail-type-movements {
  padding: 0 4px 6px 8px;
}
.detail-type-movements > div {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding: 5px 0;
  color: #89958d;
  font-size: 9px;
}
.detail-type-movements > div > b {
  color: #4c6053;
  white-space: nowrap;
}
.detail-type[open] > summary {
  color: #315c49;
}

/* Annual comparison for one specific spending type, such as Mercado. */
.annual-type-panel {
  margin-top: 15px;
  overflow: hidden;
}
.annual-type-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-top: 16px;
}
.annual-type-toolbar label {
  display: block;
  min-width: min(360px, 100%);
  color: #78867d;
  font-size: 10px;
  font-weight: 700;
}
.annual-type-toolbar select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
  color: #405649;
  font-size: 11px;
}
.annual-type-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.annual-type-highlights span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f3f6f3;
  color: #859189;
  font-size: 9px;
}
.annual-type-highlights b {
  display: block;
  margin-top: 4px;
  color: #405649;
  font-size: 11px;
}
.annual-type-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(54px, 1fr));
  gap: 8px;
  align-items: end;
  min-width: 720px;
  height: 190px;
  margin-top: 17px;
  padding: 7px 3px 0;
  border-bottom: 1px solid #e9eeea;
  overflow-x: auto;
}
.annual-type-month {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  padding: 0 3px;
  color: #859189;
}
.annual-type-month > i {
  display: block;
  width: min(58%, 24px);
  min-height: 2px;
  border-radius: 5px 5px 0 0;
  background: #8caf96;
  transition: height 0.2s;
}
.annual-type-month > b {
  font-size: 9px;
  font-weight: 600;
}
.annual-type-value {
  font-size: 8px;
  color: #859189;
  white-space: nowrap;
}
.annual-type-month:hover,
.annual-type-month.peak {
  background: #f2f6f2;
}
.annual-type-month.peak > i {
  background: #d58c73;
}
.annual-type-month.peak > b,
.annual-type-month.peak .annual-type-value {
  color: #315c49;
  font-weight: 700;
}
.annual-type-help {
  margin: 9px 0 0;
  color: #9aa49e;
  font-size: 9px;
}
.annual-detail-dialog
  .detail-category[open]
  > summary
  .detail-category-chevron {
  transform: rotate(180deg);
}
@media (max-width: 720px) {
  .annual-type-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .annual-type-toolbar label {
    min-width: 0;
  }
  .annual-type-highlights {
    justify-content: flex-start;
  }
  .annual-type-chart {
    min-width: 700px;
    height: 165px;
  }
}

/* Two-step category then type filters for the yearly spending comparison. */
.annual-type-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.annual-type-toolbar label {
  min-width: 0;
}
.annual-type-highlights {
  align-self: end;
}
@media (max-width: 980px) {
  .annual-type-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .annual-type-highlights {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .annual-type-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .annual-type-toolbar label {
    min-width: 0;
    width: 100%;
  }
  .annual-type-highlights {
    justify-content: flex-start;
  }
}
