/* Componentes base de Quipu */

/* ---------- Utilidades de composición ---------- */

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.stack-sm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: var(--text-sm);
}

.tiny {
  font-size: var(--text-xs);
}

.strong {
  font-weight: 700;
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.money {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.amount-expense {
  color: var(--expense);
}

.amount-income {
  color: var(--income);
}

.amount-transfer {
  color: var(--ink-muted);
}

/* ---------- Botones y enlaces de acción ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: filter var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:active {
  transform: scale(0.985);
}

.btn:disabled,
.btn[aria-disabled="true"],
.btn[aria-busy="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.btn-danger {
  background: var(--expense);
  color: var(--on-expense);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-link {
  min-height: 48px;
  padding: 0 var(--space-2);
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 48px;
  padding: 0;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.icon-btn:hover {
  background: var(--surface-2);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn-danger {
  color: var(--expense);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- Tarjetas y paneles ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.card-lg {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.panel-section {
  padding: var(--space-4);
}

.panel-section + .panel-section {
  border-top: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-lg);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.section-sub {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.notice {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.notice strong {
  color: var(--ink);
}

/* ---------- Chips, etiquetas y puntos ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
}

button.chip {
  min-height: 48px;
}

.chip[aria-pressed="true"],
.chip.is-active {
  border-color: var(--primary);
  background: var(--surface-2);
  color: var(--primary);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 650;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 700;
}

.badge-warn {
  background: var(--expense);
  color: var(--on-expense);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--swatch, var(--ink-muted));
  flex: none;
}

.dot-lg {
  width: 14px;
  height: 14px;
}

.dot[data-color="#E0A526"] { --swatch: var(--cat-alimentos); }
.dot[data-color="#1F5F7A"] { --swatch: var(--cat-transporte); }
.dot[data-color="#6B3F7A"] { --swatch: var(--cat-actividades); }
.dot[data-color="#3E7C6B"] { --swatch: var(--cat-educacion); }
.dot[data-color="#C46A8A"] { --swatch: var(--cat-estetica); }
.dot[data-color="#8A6A4B"] { --swatch: var(--cat-objetos); }
.dot[data-color="#B5472F"] { --swatch: var(--cat-salud); }
.dot[data-color="#5B6B7A"] { --swatch: var(--cat-legales); }
.dot[data-color="#A89F91"] { --swatch: var(--cat-varios); }
.dot[data-color="#4F7A3D"] { --swatch: var(--cat-sueldo); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
  flex: none;
}

.avatar-sm {
  width: 38px;
  height: 38px;
  font-size: var(--text-sm);
}

/* ---------- Selector de periodo ---------- */

.period {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.period-nav {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: var(--space-1);
}

.period-label {
  min-width: 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 750;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.period-units {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.period-unit {
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 700;
}

.period-unit[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(var(--shadow-color) / 0.12);
}

.period-unit:disabled {
  opacity: 0.35;
}

/* ---------- Resumen / cifras ---------- */

.balance-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-5);
}

.balance-card .balance-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.balance-amount {
  margin-top: var(--space-1);
  font-size: 2.5rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums lining-nums;
}

.balance-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgb(255 251 243 / 0.22);
}

.balance-meta dt {
  font-size: var(--text-xs);
  opacity: 0.9;
}

.balance-meta dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.balance-chakana {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 150px;
  height: 150px;
  color: var(--on-primary);
  pointer-events: none;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.kpi {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.kpi-label {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 650;
}

.kpi-value {
  margin-top: 2px;
  font-size: var(--text-lg);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

/* ---------- Listas ---------- */

.list {
  display: grid;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 64px;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.list-row:first-child {
  border-top: 0;
}

.list-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.list-copy {
  min-width: 0;
}

.list-title {
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-sub {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-amount {
  font-weight: 750;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.row-actions .icon-btn {
  width: 48px;
  height: 48px;
}

.day-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0 var(--space-1);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: capitalize;
}

/* ---------- Estados vacíos, carga y avisos ---------- */

.empty {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-4);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-art {
  width: 132px;
  height: 100px;
  color: var(--primary);
}

.empty-title {
  font-size: var(--text-lg);
  font-weight: 750;
}

.empty-text {
  max-width: 34ch;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
  height: 14px;
  margin: 10px 0;
}

.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-block {
  height: 96px;
}
.skeleton-card {
  height: 148px;
  border-radius: var(--radius-lg);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- Formularios ---------- */

.form {
  display: grid;
  gap: var(--space-4);
}

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

.label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.8;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-muted);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(31 95 122 / 0.14);
  outline: none;
}

.input[aria-invalid="true"] {
  border-color: var(--expense);
}

.field-error {
  color: var(--expense);
  font-size: var(--text-xs);
  font-weight: 650;
}

.field-help {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
}

.form-error {
  padding: var(--space-3);
  border: 1px solid var(--expense);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--expense);
  font-size: var(--text-sm);
  font-weight: 650;
}

/* ---------- Hoja inferior (dialog) ---------- */

.sheet {
  position: fixed;
  inset: auto 0 0;
  z-index: 80;
  width: min(100%, var(--frame-w));
  max-height: 92dvh;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.sheet::backdrop {
  background: var(--overlay);
}

.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-in var(--dur-sheet) var(--ease-out) both;
}

.sheet[open]::backdrop {
  animation: fade-in var(--dur) var(--ease-out) both;
}

.sheet.is-dragging {
  transform: translateY(10px);
}

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

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

.sheet-grab {
  flex: none;
  display: grid;
  place-items: center;
  height: 28px;
  cursor: grab;
  touch-action: none;
}

.sheet-grab::before {
  content: "";
  width: 44px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--border);
}

.sheet-head {
  flex: none;
  position: relative;
  padding: 0 var(--space-5) var(--space-3);
}

.sheet-title {
  padding-right: 52px;
  font-size: var(--text-xl);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.sheet-sub {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.sheet-close {
  position: absolute;
  top: -6px;
  right: var(--space-3);
}

.sheet-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 0 var(--space-5) var(--space-5);
}

.sheet-foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.sheet-foot .btn {
  flex: 1 1 auto;
}

/* ---------- Toasts ---------- */

.toast-region {
  position: fixed;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: var(--space-2);
  width: min(calc(100% - var(--space-8)), 420px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: var(--text-sm);
  font-weight: 650;
  pointer-events: auto;
  animation: toast-in var(--dur) var(--ease-out) both;
}

.toast svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

.toast-success {
  background: var(--income);
  color: var(--on-income);
}

.toast-error {
  background: var(--expense);
  color: var(--on-expense);
}

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

/* ---------- Control segmentado ---------- */

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.segment svg {
  width: 16px;
  height: 16px;
}

.segment[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(var(--shadow-color) / 0.14);
}

/* ---------- Progreso ---------- */

.progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
  appearance: none;
}

.progress::-webkit-progress-bar {
  background: var(--surface-3);
  border-radius: var(--radius-pill);
}

.progress::-webkit-progress-value {
  background: var(--progress-color, var(--primary));
  border-radius: var(--radius-pill);
}

.progress::-moz-progress-bar {
  background: var(--progress-color, var(--primary));
  border-radius: var(--radius-pill);
}

.progress-income { --progress-color: var(--income); }
.progress-accent { --progress-color: var(--accent); }
.progress-expense { --progress-color: var(--expense); }

.bar-row {
  display: grid;
  gap: 6px;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.bar-row:first-child {
  border-top: 0;
}

.bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.bar-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Selector de color ---------- */

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 48px);
  gap: var(--space-2);
}

.swatch {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--swatch, var(--ink-muted));
  transition: transform var(--dur-fast) var(--ease-out);
}

.swatch:hover {
  transform: scale(1.05);
}

.swatch[aria-pressed="true"] {
  border-color: var(--surface);
  outline: 3px solid var(--ink);
  outline-offset: -1px;
}

.swatch[data-color="#E0A526"] { --swatch: var(--cat-alimentos); }
.swatch[data-color="#1F5F7A"] { --swatch: var(--cat-transporte); }
.swatch[data-color="#6B3F7A"] { --swatch: var(--cat-actividades); }
.swatch[data-color="#3E7C6B"] { --swatch: var(--cat-educacion); }
.swatch[data-color="#C46A8A"] { --swatch: var(--cat-estetica); }
.swatch[data-color="#8A6A4B"] { --swatch: var(--cat-objetos); }
.swatch[data-color="#B5472F"] { --swatch: var(--cat-salud); }
.swatch[data-color="#5B6B7A"] { --swatch: var(--cat-legales); }
.swatch[data-color="#A89F91"] { --swatch: var(--cat-varios); }
.swatch[data-color="#4F7A3D"] { --swatch: var(--cat-sueldo); }

/* ---------- Acceso ---------- */

.auth {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: var(--space-6) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
}

.auth-card {
  position: relative;
  width: min(100%, 420px);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
}

.auth-mark {
  width: 64px;
  height: 64px;
  color: var(--primary);
}

.auth-mark .cord-side {
  opacity: 0.55;
}

.auth-mark .knot-a { fill: var(--accent); }
.auth-mark .knot-b { fill: var(--expense); }

.auth-word {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.auth-title {
  margin-top: var(--space-5);
  font-size: var(--text-2xl);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.auth-sub {
  margin-top: var(--space-2);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.auth-form {
  margin-top: var(--space-5);
}

.auth-foot {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.auth-foot a {
  font-weight: 700;
}

.auth-band {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 12px;
  color: var(--primary);
}

.auth-chakana {
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 180px;
  height: 180px;
  color: var(--primary);
  pointer-events: none;
}

/* ---------- Panel lateral ---------- */

.aside-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.aside-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.aside-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.aside-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.aside-sub {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.aside-block {
  padding-top: var(--space-4);
}

.aside-label {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aside-stat {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.aside-stat:last-child {
  border-bottom: 0;
}

.aside-stat span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.quick-action {
  display: grid;
  text-decoration: none;
  justify-items: start;
  gap: var(--space-2);
  min-height: 84px;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 700;
}

.quick-action svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.quick-action:hover {
  background: var(--surface-2);
}

/* ---------- Más / ajustes ---------- */

.profile-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.theme-row {
  display: grid;
  gap: var(--space-3);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  font-size: var(--text-xl);
}

.profile-name {
  font-size: var(--text-lg);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.profile-mail {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-section-title {
  font-size: var(--text-sm);
  font-weight: 750;
}

.category-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.category-row:first-child {
  border-top: 0;
}

.category-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.category-name {
  min-width: 0;
  flex: 1;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-sm);
}

.category-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.subchips {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-1);
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.subchip {
  flex: none;
}

.subchip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 650;
}

.subchip svg {
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
}

.subchip:hover {
  background: var(--surface-2);
}

.data-actions {
  display: grid;
  gap: var(--space-2);
}

.import-label {
  display: flex;
}

/* ---------- Varios ---------- */

.divider {
  height: 1px;
  border: 0;
  background: var(--border);
  margin: var(--space-4) 0;
}

.chart-stub {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: var(--space-4);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  text-align: center;
}

.chart-stub p {
  color: var(--ink-soft);
}

.chart-stub svg {
  width: 110px;
  height: 86px;
  color: var(--primary);
}

.chart-stub p {
  max-width: 32ch;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.color-list {
  display: grid;
  gap: var(--space-2);
}

.color-select {
  display: grid;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
}

.form-row .field {
  min-width: 0;
}

@media (max-width: 420px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .swatches {
    grid-template-columns: repeat(5, minmax(0, 48px));
  }

  .balance-amount {
    font-size: 2rem;
  }
}

/* ---------- Alta rápida ---------- */

.add-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-1);
}

.mode-chips,
.date-chips,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.mode-chips .chip[aria-pressed="true"],
.date-chips .chip[aria-pressed="true"],
.filter-chips .chip[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--surface-2);
  color: var(--primary);
}

.chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.frequent-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  overflow-x: auto;
  padding-bottom: var(--space-1);
  scrollbar-width: thin;
}

.frequent-row[hidden] {
  display: none;
}

.frequent-label {
  flex: none;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.frequent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 48px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 650;
}

.frequent strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.quick-text {
  display: flex;
  gap: var(--space-2);
}

.quick-text .input {
  flex: 1;
  min-width: 0;
}

.parse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.parse-chips:empty {
  display: none;
}

.chip-parse {
  background: var(--surface-2);
}

.amount-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 72px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.amount-currency {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 750;
}

.amount-value {
  overflow: hidden;
  font-size: 2.2rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.key {
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.key:hover {
  background: var(--surface-2);
}

.key:active {
  transform: scale(0.97);
}

.key-op {
  background: var(--surface-3);
  color: var(--primary);
}

.key-soft {
  background: var(--surface-2);
  color: var(--ink-muted);
}

.key-equals {
  grid-column: span 3;
}

.key-equals {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.cat-btn {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
}

.cat-btn span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-btn.is-selected {
  border-color: var(--primary);
  background: var(--surface-2);
}

.cat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--swatch, var(--ink-muted));
  flex: none;
}

.cat-icon[data-color="#E0A526"] { --swatch: var(--cat-alimentos); }
.cat-icon[data-color="#1F5F7A"] { --swatch: var(--cat-transporte); }
.cat-icon[data-color="#6B3F7A"] { --swatch: var(--cat-actividades); }
.cat-icon[data-color="#3E7C6B"] { --swatch: var(--cat-educacion); }
.cat-icon[data-color="#C46A8A"] { --swatch: var(--cat-estetica); }
.cat-icon[data-color="#8A6A4B"] { --swatch: var(--cat-objetos); }
.cat-icon[data-color="#B5472F"] { --swatch: var(--cat-salud); }
.cat-icon[data-color="#5B6B7A"] { --swatch: var(--cat-legales); }
.cat-icon[data-color="#A89F91"] { --swatch: var(--cat-varios); }
.cat-icon[data-color="#4F7A3D"] { --swatch: var(--cat-sueldo); }

.add-details {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

.add-details summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.add-details[open] summary {
  margin-bottom: var(--space-2);
}

.add-details .field + .field {
  margin-top: var(--space-3);
}

/* ---------- Movimientos ---------- */

.filters-card {
  display: grid;
  gap: var(--space-2);
}

.tx-list {
  display: grid;
}

.tx-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 64px;
  border-top: 1px solid var(--border);
}

.tx-row:first-child {
  border-top: 0;
}

.tx-row.is-selected {
  background: var(--surface-2);
}

.tx-open {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.tx-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--on-primary);
  background: var(--surface);
  flex: none;
}

.tx-check.is-checked {
  border-color: var(--primary);
  background: var(--primary);
}

.tx-check svg {
  width: 14px;
  height: 14px;
}

.day-total {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.tx-more {
  display: flex;
  justify-content: center;
  padding-top: var(--space-3);
}

.tx-sentinel {
  height: 1px;
}

.bulk-bar {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: min(calc(100% - var(--space-8)), calc(var(--frame-w) - var(--space-8)));
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-2);
}

.bulk-bar[hidden] {
  display: none;
}

.bulk-count {
  flex: 1;
  padding-left: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.bulk-bar .btn {
  min-height: 48px;
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
}

body[data-selecting="true"] .fab-cluster {
  display: none;
}

/* ---------- Offline / toasts con acción ---------- */

.sync-badge {
  display: inline-flex;
  align-items: center;
  max-width: 96px;
  min-height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
}

.sync-badge[hidden] {
  display: none;
}

.toast-action {
  margin-left: auto;
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  font-size: var(--text-xs);
  font-weight: 750;
  flex: none;
}

@media (max-width: 420px) {
  .category-grid {
    gap: 4px;
  }

  .cat-btn {
    min-height: 60px;
  }

  .amount-value {
    font-size: 1.9rem;
  }
}

.tx-open .list-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.tx-open .list-title,
.tx-open .list-sub {
  display: block;
}

.tx-open .list-amount {
  margin-left: auto;
}

.bulk-bar .icon-btn {
  color: var(--surface);
}

.bulk-bar .icon-btn:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.bulk-bar .icon-btn-danger {
  color: var(--expense);
}

@media (min-width: 1024px) {
  .bulk-bar {
    left: calc(50% - (var(--aside-w) + var(--space-8)) / 2);
  }
}

body[data-selecting="true"] .app-main {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 190px);
}

body[data-selecting="true"] .tx-row {
  scroll-margin-bottom: 190px;
}

.tx-search-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}

.tx-search-row .field {
  flex: 1;
  min-width: 0;
}

.list-row.is-interactive {
  cursor: pointer;
}

.list-row.is-interactive:hover,
.list-row.is-interactive:focus-visible {
  background: var(--surface-2);
}

/* ---------- Inicio, gráficos y estadísticas ---------- */

.home-metrics {
  display: grid;
  gap: var(--space-3);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.metric-card:last-child {
  grid-column: span 2;
}

.metric-card {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.metric-label {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 650;
}

.metric-value {
  margin-top: 2px;
  overflow: hidden;
  font-size: var(--text-md);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.balance-card .delta,
.balance-card .delta-good,
.balance-card .delta-bad { color: var(--on-primary); }

.delta-good { color: var(--income); }
.delta-bad { color: var(--expense); }
.delta svg { width: 13px; height: 13px; }

.notice-warning {
  border-color: var(--accent);
  color: var(--ink);
}

.chart-card {
  min-width: 0;
}

.chart-box {
  position: relative;
  width: 100%;
  height: 250px;
}

.chart-donut {
  height: 230px;
}

.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 650;
}

button.chart-legend-item {
  min-height: 48px;
}

.chart-legend-item strong {
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.chart-data {
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}

.chart-data summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.chart-data table,
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-xs);
}

.chart-data caption {
  padding-bottom: var(--space-2);
  color: var(--ink-muted);
  text-align: left;
}

.chart-data th,
.chart-data td,
.report-table th,
.report-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.chart-data th,
.report-table th {
  color: var(--ink-muted);
  font-weight: 750;
}

.stats-toolbar {
  padding: var(--space-3) var(--space-4);
}

.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  scrollbar-width: thin;
}

.tab {
  flex: none;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(var(--shadow-color) / 0.14);
}

.stats-panel {
  transition: opacity 150ms var(--ease-out);
}

.stats-panel.is-refreshing,
#budgets-body.is-refreshing {
  opacity: 0.5;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: var(--space-2);
}

.heat-weekday {
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.heat-day {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.heat-day[data-level="1"] { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.heat-day[data-level="2"] { background: color-mix(in srgb, var(--accent) 34%, var(--surface)); }
.heat-day[data-level="3"] { background: color-mix(in srgb, var(--accent) 52%, var(--surface)); }
.heat-day[data-level="4"] { background: color-mix(in srgb, var(--accent) 72%, var(--surface)); }
.heat-day.is-empty { background: transparent; }
.heat-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-2);
  color: var(--ink-muted);
  font-size: var(--text-xs);
}
.heat-legend .heat-day {
  width: 20px;
  min-height: 20px;
}

/* ---------- Presupuestos ---------- */

.budget-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.budget-row:first-child {
  border-top: 0;
}

.budget-head,
.budget-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.budget-head {
  font-weight: 700;
}

.budget-meta {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.budget-inline {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.budget-input {
  max-width: 140px;
  min-height: 48px;
}

/* ---------- Recurrentes ---------- */

.recurring-row {
  align-items: center;
}

.recurring-row .row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Eventos ---------- */

.events-grid {
  display: grid;
  gap: var(--space-3);
}

.event-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.event-card:hover,
.event-card:focus-visible {
  background: var(--surface-2);
}

.event-name {
  min-width: 0;
  font-size: var(--text-lg);
}

.badge-historic {
  background: var(--accent);
  color: var(--ink);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.event-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.event-summary > div {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.event-summary strong {
  display: block;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.event-item:first-child {
  border-top: 0;
}

.event-pay {
  min-height: 48px;
  padding: 0 var(--space-3);
}

/* ---------- Informe ---------- */

.report {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.report-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
}

.report-controls .field {
  min-width: 150px;
  flex: 1;
}

.report-head {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.report-brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.report-chakana {
  width: 60px;
  height: 60px;
  flex: none;
  color: var(--primary);
}

.report-word {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.report h1 {
  margin-top: 2px;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
}

.report-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.report-metrics span {
  display: block;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 650;
}

.report-metrics strong {
  display: block;
  margin-top: 2px;
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}

.report-section {
  padding-top: var(--space-4);
}

.report-section h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.report-foot {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  text-align: center;
}

@media print {
  @page { margin: 16mm; }
  body[data-view="informe"] {
    background: #fff;
    color: #111;
  }
  body[data-view="informe"] .app-header,
  body[data-view="informe"] .chakana-band,
  body[data-view="informe"] .bottom-nav,
  body[data-view="informe"] .fab-cluster,
  body[data-view="informe"] .app-aside,
  body[data-view="informe"] .sync-badge,
  body[data-view="informe"] .report-controls,
  body[data-view="informe"] .toast-region {
    display: none !important;
  }
  body[data-view="informe"] .app,
  body[data-view="informe"] .app-frame {
    display: block;
    max-width: none;
    padding: 0;
    border: 0;
    background: #fff;
  }
  body[data-view="informe"] .app-main {
    padding: 0;
  }
  body[data-view="informe"] .report {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #111;
  }
  body[data-view="informe"] .report-metrics strong,
  body[data-view="informe"] .report-table td {
    color: #111;
  }
  body[data-view="informe"] .chart-data {
    display: none;
  }
}

.recurring-row .list-sub {
  white-space: normal;
  line-height: 1.35;
}

#home-body.is-refreshing {
  opacity: 0.6;
  transition: opacity 150ms var(--ease-out);
}
