#cert-cal-root{margin-top:18px}.cert-cal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.cert-cal-kpis>div{background:#fff;border:1px solid #e2e9e4;border-radius:14px;padding:16px;box-shadow:0 6px 22px rgba(20,48,31,.04)}.cert-cal-kpis b{display:block;font-size:1.65rem;color:#17211c}.cert-cal-kpis span{font-size:.78rem;color:#66736c;font-weight:700}.cert-cal-kpis .danger b{color:#c9342c}.cert-cal-card{background:#fff;border:1px solid #e2e9e4;border-radius:16px;padding:16px;box-shadow:0 8px 26px rgba(20,48,31,.055)}.cert-cal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.cert-cal-toolbar button,.cert-cal-tabs button{border:1px solid #dce5df;background:#f7faf8;border-radius:9px;padding:9px 12px;font-weight:700}.cal-month-nav{display:flex;align-items:center;gap:10px}.cal-month-nav strong{text-transform:capitalize;min-width:170px;text-align:center}.cert-cal-tabs{display:flex;gap:6px}.cert-cal-tabs .active{background:#009B3A;color:#fff;border-color:#009B3A}.cert-cal-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px}.cert-cal-week,.cert-cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}.cert-cal-week span{text-align:center;padding:8px 3px;font-size:.68rem;font-weight:800;color:#66736c}.cert-cal-day{min-height:96px;border:1px solid #edf1ee;background:#fff;padding:8px;text-align:left;display:flex;flex-direction:column;gap:8px}.cert-cal-day:hover{background:#f4fbf6}.cert-cal-day.selected{box-shadow:inset 0 0 0 2px #009B3A}.cert-cal-day.today .daynum{background:#009B3A;color:#fff}.cert-cal-day.is-empty{background:#fafbfa}.daynum{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;font-weight:800}.event-pill{font-size:.7rem;background:#e8f8ee;color:#087438;border-radius:7px;padding:5px;font-weight:700}.cert-cal-detail-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.cert-cal-detail-head h3{margin:0;text-transform:capitalize;font-size:1rem}.cert-cal-detail-head span{font-size:.72rem;color:#66736c}#cert-cal-detail{border-left:1px solid #edf1ee;padding:8px 0 8px 16px}.cert-cal-item{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid #edf1ee}.cert-cal-item-main b,.cert-cal-item-main small,.cert-cal-item-side span,.cert-cal-item-side small{display:block}.cert-cal-item-main small,.cert-cal-item-side small{color:#66736c;margin-top:3px}.cert-cal-item-side{text-align:right;white-space:nowrap}.cert-cal-item-side span{font-size:.72rem;color:#087438;font-weight:800}.cert-cal-empty{padding:20px 0;color:#66736c}@media(max-width:760px){.cert-cal-kpis{grid-template-columns:repeat(2,1fr)}.cert-cal-card{padding:10px}.cert-cal-toolbar{flex-wrap:wrap}.cal-month-nav{order:3;width:100%;justify-content:space-between}.cal-month-nav strong{min-width:0}.cert-cal-layout{display:block}.cert-cal-day{min-height:58px;padding:4px}.event-pill{font-size:0;width:7px;height:7px;border-radius:50%;padding:0;background:#009B3A}.cert-cal-week span{font-size:.58rem}.daynum{width:25px;height:25px;font-size:.78rem}#cert-cal-detail{border-left:0;border-top:1px solid #edf1ee;margin-top:14px;padding:14px 4px}}
.cert-cal-legend{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.cert-cal-legend span{display:flex;align-items:center;gap:5px;font-size:.7rem;color:#66736c;font-weight:700}
.cert-day-dots{display:flex;gap:4px;min-height:7px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%}.dot.task{background:#3b82f6}.dot.event{background:#8b5cf6}.dot.expiry{background:#009B3A}
.cert-cal-type{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto;background:#edf5f0;color:#087438;font-weight:900}.cert-cal-task .cert-cal-type{background:#eef5ff;color:#2563eb}.cert-cal-event .cert-cal-type{background:#f3efff;color:#7c3aed}
.cert-cal-item-main span{display:block;margin-top:4px;color:#8a958f;font-size:.68rem}.cert-cal-detail-head>div{min-width:0}
.agenda-task-backdrop{position:fixed;inset:0;z-index:16000;background:rgba(5,21,12,.62);display:flex;align-items:center;justify-content:center;padding:16px}.agenda-task-modal{width:min(520px,100%);background:#fff;border-radius:16px;overflow:hidden}.agenda-task-head{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #e5ebe7}.agenda-task-head h2,.agenda-task-head p{margin:0}.agenda-task-head p{margin-top:4px;color:#66736c}.agenda-task-close{border:0;background:none;font-size:28px;cursor:pointer}.agenda-task-body{padding:18px 20px;display:grid;gap:12px}.agenda-task-body label{display:grid;gap:5px;font-size:.8rem;font-weight:700;color:#405249}
@media(max-width:760px){.cert-cal-legend{width:100%;order:4}.cert-cal-detail-head{display:grid;gap:10px}.cert-cal-detail-head .btn{width:100%}.agenda-task-backdrop{padding:0;align-items:flex-end}.agenda-task-modal{border-radius:16px 16px 0 0}}

/* Agenda detalhada */
.cert-cal-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}
.cert-cal-layout{grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:18px}
#cert-cal-detail{padding:4px 0 4px 18px}
.cert-cal-detail-head{padding-bottom:12px;border-bottom:1px solid #edf1ee;margin-bottom:12px;align-items:flex-start}
.cert-cal-detail-head h3{font-size:1.05rem;line-height:1.25}
.cert-cal-detail-head>div>span{display:block;margin-top:4px}
.agenda-detail-add{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.agenda-group{margin:12px 0;border:1px solid #e5ebe7;border-radius:13px;overflow:hidden;background:#fff}
.agenda-group>header{padding:10px 12px;background:#f8faf9;border-bottom:1px solid #edf1ee}
.agenda-group>header>div{display:flex;align-items:center;gap:7px}
.agenda-group.event>header{background:#f7f2ff}.agenda-group.task>header{background:#eef6ff}.agenda-group.expiry>header{background:#edf9f1}
.agenda-group-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#fff;font-weight:900}
.agenda-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fff;border:1px solid #e2e8e4;font-size:.7rem}
.agenda-group-empty{padding:14px;color:#7a877f;font-size:.78rem}
.agenda-detail-item{position:relative;display:grid;grid-template-columns:52px 4px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border-bottom:1px solid #edf1ee}
.agenda-detail-item:last-child{border-bottom:0}
.agenda-time{font-weight:850;font-size:.82rem;color:#25342b;padding-top:2px}
.agenda-accent{width:4px;height:100%;min-height:60px;border-radius:999px;background:#009B3A}
.agenda-detail-item.task .agenda-accent{background:#3b82f6}.agenda-detail-item.event .agenda-accent{background:#8b5cf6}.agenda-detail-item.expiry .agenda-accent{background:#ef4444}
.agenda-item-copy{min-width:0}
.agenda-item-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.agenda-item-title b{font-size:.88rem;color:#1f2d25}
.agenda-kind{font-size:.62rem;text-transform:uppercase;letter-spacing:.05em;color:#7b8981}
.agenda-item-copy p{margin:4px 0;color:#65736b;font-size:.75rem;line-height:1.35}
.agenda-item-customer,.agenda-item-location{display:block;margin-top:4px;color:#6f7d75;font-size:.7rem}
.agenda-item-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.agenda-item-tags .tag{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:.64rem;font-weight:800;background:#f1f4f2;color:#58665e}
.agenda-item-tags .priority-high,.agenda-item-tags .priority-urgent{background:#fff0f0;color:#b42318}.agenda-item-tags .priority-normal{background:#fff7df;color:#8a5a00}.agenda-item-tags .priority-low{background:#edf5ff;color:#2563eb}
.agenda-item-tags .status{background:#edf9f1;color:#087438}
.agenda-item-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:124px}
.agenda-icon-btn{display:grid;place-items:center;width:32px;height:32px;border:1px solid #dce6df;border-radius:8px;background:#fff;color:#405249;cursor:pointer;font-size:.92rem;font-weight:900}
.agenda-icon-btn:hover{border-color:#9bc9aa;background:#f5fbf7;color:#087438}.agenda-icon-btn.disabled{opacity:.38;cursor:not-allowed}
.cert-cal-card{padding:18px}.cert-cal-day{min-height:88px}.event-pill{font-size:.64rem;padding:4px 5px}
@media(max-width:1180px){.cert-cal-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.cert-cal-layout{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:900px){.cert-cal-layout{display:block}#cert-cal-detail{border-left:0;border-top:1px solid #edf1ee;margin-top:16px;padding:16px 0 0}.agenda-detail-item{grid-template-columns:46px 4px minmax(0,1fr) auto}}
@media(max-width:760px){
 .cert-cal-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cert-cal-card{padding:10px}
 .agenda-detail-add{width:100%;display:grid;grid-template-columns:1fr 1fr}
 .agenda-detail-add .btn{width:100%}
 .agenda-detail-item{grid-template-columns:44px 4px minmax(0,1fr);gap:8px}
 .agenda-item-actions{grid-column:3;justify-content:flex-start;max-width:none;margin-top:5px}
 .agenda-icon-btn{width:38px;height:38px}
 .agenda-item-title b{font-size:.86rem}
}
@media(max-width:420px){.cert-cal-kpis{grid-template-columns:1fr 1fr}.agenda-detail-item{grid-template-columns:40px 4px minmax(0,1fr)}.agenda-time{font-size:.74rem}}
