.agenda-notice{max-width:1440px;margin:10px auto;padding:12px 16px;border-radius:10px;font-weight:650}.agenda-notice i{margin-right:8px}.agenda-notice.success{color:#087a49;background:#e9f8f0}.agenda-notice.error{color:#a3322e;background:#fff0ef}.agenda-form>.agenda-selected{grid-column:1;grid-row:2;display:flex;align-items:center;min-height:90px}.agenda-form>.agenda-selected strong{display:block;margin-top:6px}.agenda-form>.agenda-selected>a{white-space:nowrap}.agenda-form-grid{grid-column:2;grid-row:2}.agenda-notifications{grid-column:3;grid-row:2}.agenda-quick-create-link{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;color:#637793;text-decoration:none;border-top:1px solid #e7edf5}.agenda-quick-create-link b{color:#0969dc}.agenda-quick-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px;border-top:1px solid #e7edf5;background:#fafcff}.agenda-quick-create h3{grid-column:1/-1;margin:0;color:#092653}.agenda-quick-create label{display:grid;gap:5px;color:#314e73;font-size:13px;font-weight:700}.agenda-quick-create label:nth-of-type(3){grid-column:1/-1}.agenda-quick-create input:not([type=checkbox]){padding:11px;border:1px solid #d4dfed;border-radius:8px;font:inherit}.agenda-quick-create .agenda-whatsapp-option{display:flex;align-items:center;gap:8px}.agenda-quick-create>div{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;align-items:center}.agenda-quick-create>div a{color:#586d89;text-decoration:none;font-weight:700}.agenda-quick-create button{border:0;background:#ff8218;color:#fff;border-radius:8px;padding:11px 16px;font-weight:800}.agenda-detail-panel{position:fixed;z-index:80;right:22px;top:110px;bottom:22px;width:min(430px,calc(100vw - 32px));background:#fff;border:1px solid #dce6f3;border-radius:18px;box-shadow:0 18px 54px #0b244255;display:flex;flex-direction:column;overflow:auto}.agenda-detail-panel>header{display:flex;justify-content:space-between;align-items:flex-start;padding:20px;border-bottom:1px solid #e7edf5}.agenda-detail-panel>header h2{margin:8px 0 0;color:#092653;font-size:22px}.agenda-detail-panel>header small{color:#6a7d97}.agenda-detail-panel>header>a{font-size:26px;text-decoration:none;color:#59708e}.agenda-detail-content{padding:18px;flex:1}.agenda-detail-datetime{display:flex;justify-content:space-between;align-items:center;background:#f4f8fd;padding:14px;border-radius:10px;color:#173967;text-transform:capitalize}.agenda-detail-datetime strong{font-size:21px}.agenda-detail-content dl{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;margin:20px 0}.agenda-detail-content dt{font-size:12px;color:#7889a0}.agenda-detail-content dd{margin:0;color:#173967;font-weight:600}.agenda-detail-content h3{font-size:15px;color:#173967}.agenda-detail-panel>footer{padding:14px;border-top:1px solid #e7edf5;display:flex;flex-wrap:wrap;gap:8px}.agenda-detail-panel>footer form{margin:0}.agenda-detail-panel>footer a,.agenda-detail-panel>footer button{display:inline-flex;padding:9px 11px;border:1px solid #d8e2ef;border-radius:8px;background:white;color:#214b7b;text-decoration:none;font-weight:700;font-size:12px;cursor:pointer}.agenda-detail-panel>footer .agenda-danger-action{color:#b42318;border-color:#f2c5c2}.agenda-notification-error{display:block;color:#b42318}.agenda-list .status-1{background:#e8f1ff;color:#245bb1}.agenda-list .status-3{background:#e9f8f0;color:#087a49}.agenda-list .status-4{background:#fff0ef;color:#a3322e}.agenda-list .status-5{background:#f2f4f7;color:#667085}@media(max-width:1000px){.agenda-form>.agenda-selected{grid-column:1;grid-row:2}.agenda-form-grid{grid-column:2;grid-row:2}.agenda-notifications{grid-column:1/-1;grid-row:3}}@media(max-width:760px){.agenda-form>.agenda-selected,.agenda-form-grid,.agenda-notifications{grid-column:1;grid-row:auto}.agenda-quick-create{grid-template-columns:1fr}.agenda-quick-create h3,.agenda-quick-create label:nth-of-type(3),.agenda-quick-create>div{grid-column:1}.agenda-detail-panel{top:auto;left:0;right:0;bottom:0;width:auto;max-height:85vh;border-radius:18px 18px 0 0}.agenda-detail-panel>footer{display:grid;grid-template-columns:1fr 1fr}.agenda-detail-panel>footer a,.agenda-detail-panel>footer button{justify-content:center}}

/* Drawer de programación homologado con el directorio de Clientes. */
html.agenda-detail-open,html.agenda-detail-open body,html:has(.agenda-detail-layer.is-open),html:has(.agenda-detail-layer.is-open) body{overflow:hidden}
.agenda-detail-layer{position:fixed;z-index:1120;inset:0}
.agenda-detail-backdrop{position:absolute;inset:0;background:rgba(5,18,43,.58);backdrop-filter:blur(3px)}
.agenda-detail-layer .agenda-detail-panel{position:absolute;z-index:1;inset:0 0 0 auto;width:min(580px,calc(100vw - 24px));display:flex;flex-direction:column;overflow:hidden;border:0;border-radius:0;background:#f7f9fc;box-shadow:-22px 0 56px rgba(7,26,61,.22);animation:agendaDrawerIn .24s ease-out both}
@keyframes agendaDrawerIn{from{transform:translateX(35px);opacity:.75}}
.agenda-detail-layer .agenda-detail-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 26px 22px;border:0;background:linear-gradient(120deg,#071a3d,#17477e);color:#fff}
.agenda-detail-layer .agenda-detail-panel>header span{color:#ff9a36;font-size:.65rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.agenda-detail-layer .agenda-detail-panel>header h2{margin:5px 0 3px;color:#fff;font:700 1.55rem var(--font-heading)}
.agenda-detail-layer .agenda-detail-panel>header p{margin:0;color:rgba(255,255,255,.73);font-size:.76rem}.agenda-detail-layer .agenda-detail-panel>header p i{margin-right:6px;color:#ff9a36}
.agenda-detail-layer .agenda-detail-panel>header>a{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:1rem;text-decoration:none}
.agenda-detail-layer .agenda-detail-content{display:grid;align-content:start;gap:16px;padding:22px;overflow-y:auto;flex:1}
.agenda-detail-summary{display:grid;gap:13px;padding:15px;border:1px solid #dce5f0;border-left:4px solid #1474e5;border-radius:15px;background:#fff!important}
.agenda-detail-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.agenda-detail-summary>div+div{padding-top:13px;border-top:1px solid #e9edf3}.agenda-detail-summary small,.agenda-detail-data small{color:#718097;font-size:.64rem}.agenda-detail-summary b{margin-left:auto;color:#173967;font-size:.76rem;text-transform:capitalize}.agenda-detail-summary strong{color:#092653;font:800 1.2rem var(--font-heading)}
.agenda-detail-summary .agenda-status{padding:5px 9px;border-radius:999px;font-size:.62rem;font-weight:800}
.agenda-detail-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.agenda-detail-data>div{display:grid;gap:5px;padding:13px;border:1px solid #dfe6ef;border-radius:13px;background:#fff}.agenda-detail-data>div.wide{grid-column:1/-1}.agenda-detail-data strong{color:#092653;font-size:.78rem;line-height:1.4}
.agenda-detail-notifications{padding:15px;border:1px solid #dfe6ef;border-radius:14px;background:#fff}.agenda-detail-notifications h3{margin:0 0 9px;color:#092653;font-size:.86rem}.agenda-detail-notifications h3 i{margin-right:6px;color:#21a366}.agenda-detail-notifications p{margin:5px 0;color:#61748e;font-size:.72rem}
.agenda-detail-layer .agenda-detail-panel>footer{display:grid;gap:9px;padding:14px 18px;border-top:1px solid #e2e8f0;background:#fff}.agenda-detail-primary-actions,.agenda-detail-status-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.agenda-detail-status-actions form{margin:0}.agenda-detail-layer .agenda-detail-panel>footer a,.agenda-detail-layer .agenda-detail-panel>footer button{width:100%;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;padding:7px 9px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;color:#173967;font:700 .68rem var(--font-body);text-decoration:none;cursor:pointer}.agenda-detail-primary-actions a:first-child{border-color:#092653!important;background:#092653!important;color:#fff!important}.agenda-detail-layer .agenda-detail-panel>footer .agenda-danger-action{border-color:#f0bbb7;color:#b42318}
@media(max-width:600px){.agenda-detail-layer .agenda-detail-panel{width:calc(100vw - 8px)}.agenda-detail-layer .agenda-detail-panel>header{padding:20px 18px}.agenda-detail-layer .agenda-detail-content{padding:16px}.agenda-detail-data{grid-template-columns:1fr}.agenda-detail-data>div.wide{grid-column:1}.agenda-detail-primary-actions,.agenda-detail-status-actions{grid-template-columns:1fr}.agenda-detail-layer .agenda-detail-panel>footer{max-height:38vh;overflow-y:auto}}

/* Drawer layout must not inherit the older mobile sheet's 85vh/two-column footer. */
.agenda-detail-layer .agenda-detail-panel{height:100%;max-height:none;min-height:0;box-sizing:border-box}
.agenda-detail-layer .agenda-detail-panel>header{flex:0 0 auto}
.agenda-detail-layer .agenda-detail-content{flex:1 1 auto;min-height:0;min-width:0}
.agenda-detail-layer .agenda-detail-panel>footer{flex:0 0 auto;grid-template-columns:minmax(0,1fr);max-height:none;overflow:visible}
.agenda-detail-layer .agenda-detail-panel>footer>.agenda-detail-primary-actions{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0}
.agenda-detail-layer .agenda-detail-panel>footer>.agenda-detail-status-actions{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.agenda-detail-primary-actions>a,.agenda-detail-status-actions>form{min-width:0}
.agenda-detail-layer .agenda-detail-panel>footer>.agenda-detail-primary-actions a,.agenda-detail-layer .agenda-detail-panel>footer>.agenda-detail-status-actions button{min-height:44px;padding:7px 6px;font-size:.72rem;gap:5px;overflow-wrap:anywhere}
.agenda-detail-summary b,.agenda-detail-data strong,.agenda-detail-panel>header>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
    .agenda-detail-layer .agenda-detail-panel{inset:0;width:100%;height:100%;max-height:none;border-radius:0}
    .agenda-detail-layer .agenda-detail-panel>footer{padding:12px 12px max(12px,env(safe-area-inset-bottom));gap:8px}
}
@media(max-width:360px){
    .agenda-detail-layer .agenda-detail-panel>footer>.agenda-detail-primary-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
    .agenda-detail-primary-actions>a:nth-child(3){grid-column:1/-1}
    .agenda-detail-layer .agenda-detail-panel>header{padding:16px}
}
@media(max-height:500px){
    .agenda-detail-layer .agenda-detail-panel>header{padding:10px 16px}
    .agenda-detail-layer .agenda-detail-panel>header h2{font-size:1.15rem}
    .agenda-detail-layer .agenda-detail-panel>footer{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom));gap:6px}
}
