#view-anticipation .section-heading h2{font-size:1rem}
.anticipation-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:24px 0 20px}.anticipation-heading h2{font-size:1.3rem;margin:0 0 7px}.anticipation-heading p{margin:0;color:var(--muted)}
.anticipation-heading .table-actions{flex-shrink:0}.anticipation-base-total{display:block;font-size:1.9rem;margin:14px 0}
#anticipation-base-cards{padding:16px;margin:0;gap:10px}.anticipation-danger{color:var(--red)}.anticipation-today{color:var(--amber);font-weight:650}
.anticipation-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;margin-top:20px}.anticipation-sidebar{padding:20px;align-self:start}.anticipation-sidebar h3{margin:0 0 18px}.anticipation-sidebar label{display:block;margin-bottom:18px;font-size:.78rem;color:var(--muted)}.anticipation-sidebar input,.anticipation-sidebar select{width:100%;margin-top:8px}.anticipation-weekdays{display:flex;flex-wrap:wrap;gap:6px}.anticipation-weekdays button{padding:8px;font-size:.7rem;border:1px solid var(--border);background:var(--panel);color:var(--muted);border-radius:7px}.anticipation-weekdays button.active{color:var(--blue);background:var(--soft-blue);border-color:var(--blue)}
.anticipation-results{min-width:0}.anticipation-filter-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.anticipation-filter-kpis>div{padding:20px;background:var(--panel);border:1px solid var(--border);border-radius:10px}.anticipation-filter-kpis b{display:block;font-size:1.7rem;margin-bottom:9px}.anticipation-filter-kpis span{font-size:.74rem;color:var(--muted)}
.anticipation-summary{max-height:270px;overflow:auto;padding:0 18px 12px}.anticipation-summary button{display:flex;justify-content:space-between;align-items:center;width:100%;gap:15px;padding:10px 8px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);text-align:left;font-size:.8rem}.anticipation-summary button:hover{background:var(--hover)}.anticipation-summary button b{color:var(--blue);font-variant-numeric:tabular-nums}
.anticipation-chart{display:flex;align-items:end;gap:16px;padding:18px 24px;min-height:150px;overflow:auto}.anticipation-chart button{display:flex;flex:1;min-width:60px;max-width:160px;flex-direction:column;align-items:center;gap:10px;background:transparent;border:0;color:var(--muted);font-size:.8rem}.anticipation-chart i{width:70%;background:var(--blue);border-radius:6px 6px 0 0}.anticipation-chart .due-today i{background:var(--amber)}.anticipation-chart b{color:var(--text)}
#anticipation-table{max-height:650px}#anticipation-error:empty{display:none}#anticipation-error{color:var(--red);padding:16px}#anticipation-dialog{max-width:780px}#view-anticipation .kpis{grid-template-columns:repeat(5,minmax(0,1fr))}#view-anticipation .kpi:last-child b{font-size:1.35rem}
@media(max-width:1100px){.anticipation-layout{grid-template-columns:210px minmax(0,1fr)}#anticipation-base-cards{grid-template-columns:repeat(4,1fr)}.anticipation-filter-kpis{grid-template-columns:repeat(2,1fr)}#view-anticipation .two-columns{grid-template-columns:1fr}}
@media(max-width:760px){.anticipation-layout{grid-template-columns:1fr}.anticipation-heading{align-items:start;flex-direction:column}#view-anticipation .kpis{grid-template-columns:repeat(2,1fr)}#anticipation-base-cards{grid-template-columns:repeat(2,1fr)}.anticipation-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.anticipation-sidebar h3,.anticipation-sidebar label:first-of-type{grid-column:1/-1}.anticipation-sidebar label{margin:0}.anticipation-sidebar .subnote{grid-column:1/-1}}
