/* Aba Reforma (v40) */
.reforma-empty{display:grid;justify-items:center;gap:12px;text-align:center;padding:48px 20px;background:var(--white);border:1px solid var(--line);border-radius:12px}
.reforma-empty>svg{width:44px;height:44px;color:var(--coral)}
.reforma-empty h2{font-size:21px}
.reforma-empty p{max-width:560px;color:var(--muted);font-size:15px;line-height:1.6}
.reforma-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.reforma-stat{display:grid;align-content:start;gap:4px;padding:16px;background:var(--white);border:1px solid var(--line);border-radius:12px;min-width:0}
.reforma-stat>span{font-size:13px;font-weight:700;color:var(--muted)}
.reforma-stat strong{font-family:var(--display);font-size:24px;line-height:1.2;color:var(--ink);overflow-wrap:anywhere}
.reforma-stat small{font-size:13px;color:var(--muted);line-height:1.45}
.reforma-stat.main{background:var(--teal);border-color:var(--teal)}
.reforma-stat.main>span,.reforma-stat.main strong,.reforma-stat.main small{color:var(--white)}
.reforma-stat.due strong{color:var(--coral)}
.reforma-stat.over strong,.reforma-stat.over small{color:var(--coral)}
.reforma-stat .text-button{justify-content:flex-start;min-height:44px;color:var(--teal);font-weight:700;font-size:13px}
.reforma-budget-bar{height:10px;border-radius:5px;background:var(--line);overflow:hidden;margin:0 0 22px}
.reforma-budget-bar span{display:block;height:100%;background:var(--teal)}
.reforma-cats{margin:22px 0}
.reforma-cats h2,.reforma-list h2{font-size:18px;margin-bottom:12px}
.reforma-cats ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.reforma-cat{display:grid;gap:6px;width:100%;min-height:44px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white);text-align:left;color:var(--ink)}
.reforma-cat:hover{border-color:var(--field-border)}
.reforma-cat.active{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}
.reforma-cat-name{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700}
.reforma-cat-name svg{width:18px;height:18px;color:var(--coral)}
.reforma-cat strong{font-size:18px}
.reforma-cat small{font-size:12px;color:var(--muted)}
.reforma-cat-bar{height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.reforma-cat-bar span{display:block;height:100%;background:var(--coral)}
.reforma-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.reforma-list-head h2{margin:0}
.reforma-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin-bottom:14px}
.reforma-filters label{display:grid;gap:6px;font-size:13px;font-weight:700;color:var(--ink)}
.reforma-filters input,.reforma-filters select{min-height:44px}
.reforma-count{font-size:14px;color:var(--ink);margin:0 0 12px}
.reforma-day{margin-bottom:16px}
.reforma-day h3{display:flex;justify-content:space-between;gap:12px;font-size:14px;font-family:var(--body);font-weight:700;color:var(--muted);padding:8px 0;border-bottom:1px solid var(--line);margin-bottom:8px}
.reforma-day h3::first-letter{text-transform:uppercase}
.reforma-day h3 span{color:var(--ink)}
.reforma-day ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.reforma-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center;padding:12px 14px;background:var(--white);border:1px solid var(--line);border-radius:10px}
.reforma-item.open{border-left:4px solid var(--coral)}
.reforma-item.just-saved{animation:reforma-saved 2.4s ease-out}
@keyframes reforma-saved{0%,40%{background:var(--teal-light)}100%{background:var(--white)}}
.reforma-item-main{display:flex;gap:12px;align-items:flex-start;min-width:0}
.reforma-item-main>div{display:grid;gap:3px;min-width:0}
.reforma-item-main strong{font-size:15px;overflow-wrap:anywhere}
.reforma-cat-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--coral-light);color:var(--coral);flex-shrink:0}
.reforma-cat-icon svg{width:18px;height:18px}
.reforma-item-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px;color:var(--muted)}
.reforma-item-meta svg{width:14px;height:14px}
.reforma-item-notes{font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.reforma-item-side{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.reforma-item-total{font-size:17px;white-space:nowrap}
.reforma-paid{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;min-height:44px;font-size:13px;font-weight:700;color:var(--ink);cursor:pointer}
.reforma-paid input{width:20px;height:20px;accent-color:var(--teal);margin:0}
.reforma-item.open .reforma-paid{color:var(--coral)}
.reforma-item-actions{display:flex;gap:6px}
.reforma-item-actions .icon-button{width:44px;height:44px}
.reforma-confirm{grid-column:1/-1;display:grid;gap:8px;padding:10px 12px;border:1px solid var(--coral);border-radius:8px;background:var(--coral-light)}
.reforma-confirm p{margin:0;font-size:14px}
.reforma-confirm div{display:flex;gap:8px;flex-wrap:wrap}
.reforma-item [hidden]{display:none!important}
.reforma-none{color:var(--muted);font-size:14px;padding:16px 0}
.reforma-hint{font-size:13px;color:var(--muted);line-height:1.5;margin:-6px 0 0}
#reforma-budget-form .reforma-hint{margin:0 0 14px}
.reforma-total-preview{align-self:end;margin:0;padding:12px;border-radius:8px;background:var(--teal-light);color:var(--teal);font-weight:700;font-size:15px}
.reforma-check{display:flex!important;align-items:center;gap:10px;min-height:44px;font-size:14px!important;font-weight:700}
.reforma-check input{width:20px;height:20px;accent-color:var(--teal);margin:0}
#reforma-form input:not([type=checkbox]),#reforma-form select{min-height:44px}
@media(max-width:900px){.reforma-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.reforma-filters{grid-template-columns:1fr 1fr}.reforma-filters label:first-child{grid-column:1/-1}}
@media(max-width:560px){
  .sidebar nav{grid-template-columns:repeat(8,minmax(0,1fr))}
  .reforma-stat strong{font-size:20px}
  .reforma-item{grid-template-columns:1fr}
  .reforma-item-side{justify-content:space-between}
  .reforma-filters{grid-template-columns:1fr}
}
