/* Agenda inteligente PRUMMIA — interface administrativa isolada da versão legada. */
.agenda-new{--ag-accent:#75475b;--ag-bg:#f8eff3;--ag-line:#eadae1;margin:16px 0 22px;font:inherit}
.agenda-new *, .agenda-new *::before,.agenda-new *::after{box-sizing:border-box}
.agenda-new .ag-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.agenda-new .ag-action{background:#fff;border:1px solid var(--ag-line);border-radius:22px;min-height:91px;padding:13px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#332229;font-size:14px;font-weight:600}
.agenda-new .ag-action[aria-pressed=true]{background:var(--ag-bg);border:2px solid var(--ag-accent);color:#63394c}
.agenda-new .ag-icon{font-size:28px;line-height:1}
.agenda-new .ag-card{background:#fff;border:1px solid var(--ag-line);border-radius:22px;padding:19px;margin:12px 0;box-shadow:0 4px 22px #502d3c08;min-width:0}
.agenda-new .ag-card h3{font:600 20px 'Playfair Display',Georgia,serif;margin:0 0 7px;color:#38242c}
.agenda-new .ag-muted{font-size:13px;color:#5f5157;line-height:1.45;margin:5px 0 14px}
.agenda-new .ag-label{display:block;font-weight:700;font-size:13px;margin:12px 0 6px}
.agenda-new .ag-scopes{display:grid;gap:8px}
.agenda-new .ag-radio{display:flex;align-items:center;gap:10px;border:1px solid var(--ag-line);border-radius:13px;padding:12px 13px;font-size:14px;font-weight:600;cursor:pointer}
.agenda-new .ag-radio:has(input:checked){background:var(--ag-bg);border-color:#995c76}
.agenda-new .ag-radio input{width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--ag-accent)}
.agenda-new .ag-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:10px 0 4px}
.agenda-new .ag-day{display:flex;justify-content:center;align-items:center;min-height:43px;border:1px solid var(--ag-line);border-radius:10px;cursor:pointer;font-size:12px;font-weight:700;background:#fff}
.agenda-new .ag-day:has(input:checked){background:var(--ag-bg);border:2px solid var(--ag-accent);color:#61394a}
.agenda-new .ag-day input{position:absolute;opacity:0;width:1px;height:1px;min-height:1px;padding:0}
.agenda-new .ag-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.agenda-new .ag-row>*{flex:1;min-width:115px}
.agenda-new .ag-row input{width:100%;font-size:16px}
.agenda-new .ag-months,.agenda-new .ag-dates{display:flex;flex-wrap:wrap;gap:7px;margin:11px 0}
.agenda-new .ag-chip{background:#f6e8ee;border:1px solid #e0c8d2;border-radius:50px;display:inline-flex;align-items:center;gap:8px;padding:7px 10px;color:#5b3a48;font-size:12px;font-weight:700}
.agenda-new .ag-chip button{min-height:24px;border:0;background:transparent;color:#593041;padding:0 5px;font-size:16px}
.agenda-new .ag-group{border:1px solid #e9dae0;padding:14px;border-radius:16px;margin:12px 0}
.agenda-new .ag-group-head{display:flex;justify-content:space-between;align-items:center;gap:9px}
.agenda-new .ag-subbtn{border:1px solid #dfc1ce;background:#faf1f5;color:#593846;padding:10px 13px;border-radius:11px;min-height:42px;font-size:13px;font-weight:700}
.agenda-new .ag-subbtn.danger{color:#9a405b;background:#fff5f5;border-color:#ebc9d1}
.agenda-new .ag-summary{background:#faf5f7;border:1px solid #eddce3;padding:14px;border-radius:16px;color:#49333c}
.agenda-new .ag-summary strong{display:block;font-size:14px;margin-bottom:7px}
.agenda-new .ag-summary p{font-size:13px;margin:5px 0}
.agenda-new .ag-mainbtn{width:100%;border:0;border-radius:13px;background:var(--ag-accent);color:white;font-weight:700;font-size:15px;padding:14px;min-height:48px;margin:12px 0}
.agenda-new .ag-mainbtn:disabled{opacity:.5;cursor:not-allowed}
.agenda-new .ag-flash{white-space:pre-wrap;background:#f8ecf1;padding:13px;border-radius:12px;font-size:13px;margin:12px 0}
.agenda-new .ag-flash.error{background:#fff0f0;color:#8a3449}
.agenda-new .ag-config{border:1px solid var(--ag-line);border-radius:16px;padding:13px;margin:10px 0;background:white}
.agenda-new .ag-config-title{display:flex;gap:8px;align-items:center;justify-content:space-between}
.agenda-new .ag-config-title strong{font-size:15px}
.agenda-new .ag-config .ag-muted{margin:4px 0 10px}
.agenda-new .ag-config-actions{display:flex;flex-wrap:wrap;gap:8px}
.agenda-new .ag-config-actions button{flex:1}
.agenda-new .ag-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0}
.agenda-new .ag-slot{padding:10px 2px;text-align:center;border:1px solid var(--ag-line);border-radius:10px;background:white;color:#392c32;font-weight:600;font-size:12px;min-height:43px}
.agenda-new .ag-slot[aria-pressed=true]{border:2px solid var(--ag-accent);background:var(--ag-bg)}
.agenda-new .ag-slot.occupied{border-style:dashed;border-color:#e3a6b5}
.agenda-new .ag-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.agenda-new .ag-inline>*{flex:1;min-width:110px}
.agenda-legacy{margin:26px 0;border:1px solid #eadae1;border-radius:16px;padding:14px}
.agenda-legacy summary{font-size:14px;color:#583e49;font-weight:700;cursor:pointer}
.agenda-new .ag-loading{font-size:13px;color:#64535a;text-align:center;padding:25px}
@media(max-width:700px){.agenda-new .ag-card{padding:15px}.agenda-new .ag-action{font-size:12px;min-height:86px}.agenda-new .ag-slots{grid-template-columns:repeat(4,minmax(0,1fr))}.agenda-new .ag-group{padding:11px}.agenda-new .ag-row{gap:8px}}
@media(max-width:350px){.agenda-new .ag-slot{font-size:11px}.agenda-new .ag-action{font-size:11px}}
