/* Calendar layout now lives in agenda-workspace.css for SSR and AJAX alike. */
.agenda-calendar-shell.is-loading::before{top:106px!important}.agenda-calendar-shell.is-loading::after{top:114px!important}

/* El mes conserva exactamente la misma escala antes y después de una actualización SPA. */
.agenda-page .agenda-calendar-shell .agenda-month-grid{
    min-height:0!important;
    padding:0!important;
    border:1px solid #e1e9f2!important;
    border-radius:8px!important;
    color:inherit!important;
}

@media(max-width:600px){
    .agenda-page .agenda-calendar-shell .agenda-month-head>b{
        padding:7px 1px!important;
        font-size:11px!important;
    }

    .agenda-page .agenda-calendar-shell .agenda-month-grid>a{
        min-height:59px!important;
        padding:5px!important;
        font-size:16px!important;
        line-height:1!important;
    }

    .agenda-page .agenda-calendar-shell .agenda-month-grid>a>b{
        width:30px!important;
        height:30px!important;
        display:grid!important;
        place-items:center!important;
        padding:0!important;
        border-radius:50%!important;
        font-size:16px!important;
        line-height:1!important;
    }

    .agenda-page .agenda-calendar-shell .agenda-month-grid>a.today>b{
        outline:2px solid #ff8218!important;
        outline-offset:1px!important;
        background:#0969dc!important;
        color:#fff!important;
    }

    .agenda-page .agenda-calendar-shell .agenda-month-grid>a.selected:not(.today)>b{
        background:#fff0e2!important;
        color:#cf5f00!important;
    }

    .agenda-page .agenda-calendar-shell .agenda-month-grid>a>div{
        gap:3px!important;
        margin:4px 1px 0!important;
    }

    .agenda-page .agenda-calendar-shell .agenda-month-grid i{
        width:5px!important;
        height:5px!important;
        margin:0!important;
    }
}

.agenda-team{max-width:1440px;width:100%;margin:0 auto;padding:12px 0 40px}.agenda-team>header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}.agenda-team>header span{font-size:12px;font-weight:800;letter-spacing:.08em;color:#ff7a18}.agenda-team>header h2{margin:3px 0;color:#092653;font-size:24px}.agenda-team>header p{margin:0;color:#71809a}.agenda-team>header>a,.agenda-team-editor footer button{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;background:#ff7a18;color:#fff;padding:12px 18px;font-weight:800;text-decoration:none}.agenda-team-editor{background:#fff;border:1px solid #d9e3f2;border-radius:16px;padding:22px;margin-bottom:20px;box-shadow:0 12px 32px rgba(9,38,83,.07)}.agenda-team-editor>div{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.agenda-team-editor label{display:flex;flex-direction:column;gap:6px;color:#173967;font-size:13px;font-weight:700}.agenda-team-editor input,.agenda-team-editor select{height:44px;border:1px solid #cfdced;border-radius:9px;padding:0 12px;background:#fff;color:#092653}.agenda-team-editor fieldset{margin:18px 0;border:0;padding:0}.agenda-team-editor legend{font-weight:800;color:#092653;margin-bottom:10px}.agenda-team-editor fieldset label{display:inline-flex;flex-direction:row;align-items:center;margin:0 16px 8px 0}.agenda-team-editor fieldset input{height:auto}.agenda-team-editor footer{display:flex;justify-content:flex-end;align-items:center;gap:16px;border-top:1px solid #e6edf6;padding-top:16px}.agenda-team-editor footer a{color:#456184;text-decoration:none;font-weight:700}.agenda-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.agenda-team-grid>a{display:grid;grid-template-columns:48px 1fr auto 18px;align-items:center;gap:14px;background:#fff;border:1px solid #d9e3f2;border-left:4px solid #ff7a18;border-radius:13px;padding:15px;text-decoration:none;color:#092653}.agenda-team-grid>a>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff0e4;color:#ff7a18;font-weight:900}.agenda-team-grid>a div{display:flex;flex-direction:column;gap:2px}.agenda-team-grid>a small,.agenda-team-grid>a em{color:#71809a;font-size:12px;font-style:normal}.agenda-team-grid>a>b{font-size:12px;color:#178653;background:#eaf8f1;padding:5px 9px;border-radius:20px}.agenda-team-grid>a.inactive{opacity:.65;border-left-color:#94a3b8}.agenda-team-grid>a.inactive>b{color:#64748b;background:#eef2f6}.agenda-upcoming-branch small{display:block;margin-top:3px;color:#71809a}
@media(max-width:900px){.agenda-team-editor>div{grid-template-columns:1fr 1fr}.agenda-team-grid{grid-template-columns:1fr}}
@media(max-width:600px){.agenda-team>header{align-items:flex-start;flex-direction:column}.agenda-team>header>a{width:100%;justify-content:center}.agenda-team-editor>div{grid-template-columns:1fr}.agenda-team-grid>a{grid-template-columns:42px 1fr 18px}.agenda-team-grid>a>b{grid-column:2}.agenda-team-editor footer{flex-direction:column-reverse}.agenda-team-editor footer>*{width:100%;justify-content:center;text-align:center}}

/* Team editor controls: keep native inputs from leaking into the platform switch. */
.agenda-team-editor .agenda-team-switch{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:12px;width:max-content;max-width:100%;margin:4px 0 18px;color:#173967;cursor:pointer}
.agenda-team-editor .agenda-team-switch>input{position:absolute;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}
.agenda-team-editor .agenda-team-switch>span{position:relative;width:40px;height:22px;border-radius:999px;background:#c9d3df;transition:background .18s}
.agenda-team-editor .agenda-team-switch>span::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #102d5040;transition:transform .18s}
.agenda-team-editor .agenda-team-switch>input:checked+span{background:#ff8218}
.agenda-team-editor .agenda-team-switch>input:checked+span::after{transform:translateX(18px)}
.agenda-team-editor .agenda-team-switch>b{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.2}
.agenda-team-editor .agenda-team-switch>b small{color:#71809a;font-size:11px;font-weight:500}
.agenda-team-editor fieldset{padding:14px 16px;border:1px solid #e3eaf3;border-radius:12px;background:#f8fafc}
.agenda-team-editor fieldset input[type="checkbox"]{width:16px;height:16px;padding:0;accent-color:#ff8218}
.agenda-team-submit-error{display:flex;align-items:center;gap:10px;margin-bottom:16px;padding:12px 14px;border:1px solid #fecaca;border-radius:10px;background:#fff1f2;color:#b42318;font-size:13px;font-weight:700}
.agenda-team-editor button:disabled{cursor:wait;opacity:.72}

/* Equipo comparte el lienzo fluido de Agenda sin afectar el shell general. */
.agenda-page .agenda-team{width:100%;max-width:none;margin-inline:0;padding-top:8px}
