/* Etapa 1: jerarquía, formularios y móvil; sin cambios de calendario o disponibilidad. */
.agenda-page [hidden] { display:none !important; }
.agenda-page>.agenda-hero,.agenda-page>.agenda-tabs,.agenda-page>[data-agenda-section-content] { margin-left:auto; margin-right:auto; min-width:0; }
.agenda-page .agenda-ux-disclosure { display:block; min-width:0; border:1px solid #dce6f3; border-radius:12px; background:#fff; padding:0; color:#123b74; }
.agenda-ux-disclosure>summary { padding:14px 16px; min-height:46px; font-size:13px; font-weight:700; line-height:1.5; cursor:pointer; overflow-wrap:anywhere; }
.agenda-ux-disclosure>summary>span { display:block; margin-top:3px; font-size:12px; font-weight:400; color:#526783; }
.agenda-ux-disclosure>:not(summary) { margin:0 16px 16px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.agenda-ux-disclosure h3,.agenda-ux-disclosure h4 { margin:10px 0 6px; font-size:13px; }
.agenda-page .agenda-ux-help { font-size:12px; color:#526783; line-height:1.6; }
.agenda-page .agenda-ux-form-heading { font-size:14px; margin:20px 0 6px; color:#092653; }
.agenda-page .agenda-ux-feedback { grid-column:1/-1; padding:14px; border:1px solid #edc1bd; border-radius:12px; background:#fff2f1; color:#a12b26; line-height:1.6; font-size:13px; overflow-wrap:anywhere; }
.agenda-ux-feedback p { margin:0; color:inherit!important; }
.agenda-page .agenda-ux-feedback.success { background:#edf8f2; border-color:#b6dfc8; color:#087549; }
.agenda-ux-feedback button { display:inline-flex; margin-top:10px; min-height:44px; padding:9px 12px; border:1px solid currentColor; border-radius:9px; background:#fff; color:inherit; cursor:pointer; font:inherit; }
.agenda-page .agenda-ux-field-error { display:block; color:#ac2e2a!important; font-size:12px!important; line-height:1.5; font-weight:600; letter-spacing:0; }
.agenda-page [aria-invalid=true] { border-color:#c43932!important; box-shadow:0 0 0 2px #c4393215!important; }
.agenda-page :is(a,button,input,select,textarea,summary):focus-visible { outline:3px solid #245fa1!important; outline-offset:3px; }
.agenda-page :is(.agenda-notification-switch,.notification-option,.agenda-type-options label):focus-within { outline:3px solid #245fa1; outline-offset:3px; border-radius:9px; }
.agenda-page .request-card { grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr) auto; padding:16px 18px; gap:18px; }
.request-card .request-avatar { flex-basis:38px; height:38px; font-size:14px; }
.request-card .request-person { gap:10px; }
.request-card .request-person>div,.request-card .request-slot { gap:5px; }
.request-card .request-person strong { font-size:14px; }
.request-card .request-person span:not(.request-avatar) { font-size:12px; }
.request-card .request-person .received { font-size:11px!important; }
.request-card .request-service { padding:0; margin:0; background:none; border:0; gap:3px; }
.request-card .request-service>span { display:none; }
.request-card .request-service>strong { font-size:14px; }
.request-card .request-service>small { font-size:12px; }
.request-card .request-slot { padding-left:18px; font-size:12px; }
.request-card .request-assignee { font-size:12px; color:#526783; }
.request-card .request-card-actions { gap:9px; }
.request-card .request-card-actions>a { min-height:44px; padding:9px 12px; font-size:12px; }
.agenda-page .request-review { min-width:0; padding:18px; scroll-margin-top:16px; }
.request-review .review-notice { margin:0 0 14px; padding:11px 12px; font-size:12px; }
.request-review>.agenda-service-history { margin:0 0 12px; padding:12px; }
.request-review>.agenda-service-history>p:empty { display:none; }
.request-review>.agenda-service-history>small:last-child { display:none; }
.request-review .request-context { margin-bottom:16px; }
.request-review .request-benefit-summary { display:grid; gap:5px; padding:12px; margin-bottom:12px; border:1px solid #f0ddc6; border-radius:10px; background:#fff8ef; }
.request-benefit-summary>small { color:#87613c; font-size:11px; letter-spacing:0; }
.request-benefit-summary>strong { color:#965000; font-size:14px; }
.request-benefit-summary>p { font-size:12px; margin:0; }
.request-review .request-promotion-summary { padding:10px 12px; border-radius:10px; background:#eef5ff; color:#24527d; font-size:12px; font-weight:700; }
.request-review .request-fields { gap:12px; }
.request-review .request-fields>label:has(select[name="AssigneeId"]) { grid-column:1/-1; }
.request-review .request-notifications { padding:12px; margin-top:18px; }
.request-review .request-help { font-size:12px; line-height:1.6; margin:14px 0; }
.request-review-actions { position:sticky; bottom:0; display:grid; gap:6px; margin-top:12px; padding:10px 0; background:#fafcff; border-top:1px solid #dce6f3; z-index:2; }
.request-review-actions>small { font-size:11px; text-align:center; color:#526783; letter-spacing:0; }
.request-review .request-reject { font-size:12px; }
.request-review .request-reject>summary { min-height:44px; padding:10px 0; }
.agenda-page .agenda-detail-data { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.agenda-page .agenda-detail-data>.wide { grid-column:1/-1; }
.agenda-detail-data>.agenda-ux-main-service { grid-row:1; background:#eef5ff; border-color:#d6e5f8; }
.agenda-detail-data>.agenda-ux-main-service>strong { font-size:17px; line-height:1.5; }
.agenda-detail-data>.agenda-ux-main-service>p { font-size:13px; }
.agenda-ux-service-description { font-size:12px; line-height:1.6; }
.agenda-ux-service-description summary { cursor:pointer; padding:7px 0; color:#526783; }
.agenda-ux-service-description p { margin:4px 0 9px; }
.agenda-page .agenda-detail-content { gap:12px; min-height:0; overscroll-behavior:contain; }
.agenda-page .agenda-ux-deposit-summary { padding:14px 16px; border:1px solid #f2dabd; border-radius:12px; background:#fff8ef; }
.agenda-ux-deposit-summary>div { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; }
.agenda-ux-deposit-summary strong { font-size:15px; color:#975000; }
.agenda-ux-deposit-summary small { font-size:12px; color:#6f583f; line-height:1.6; }
.agenda-ux-deposit-summary p { font-size:12px; margin:9px 0; color:#526783; }
.agenda-page .agenda-detail-notifications.agenda-ux-disclosure { padding:0; }
.agenda-detail-content .agenda-ux-disclosure>.deposit-history-panel { padding:0; border:0; background:none; }
.agenda-page .agenda-detail-panel>footer { padding:12px 18px; gap:8px; }
.agenda-detail-panel>footer>.agenda-ux-status-actions { width:100%; min-width:0; padding:0; }
.agenda-ux-status-actions>summary { min-height:36px; padding:8px; color:#65728a; font-size:12px; cursor:pointer; text-align:center; }
.agenda-ux-status-actions>.agenda-detail-status-actions { margin-top:6px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.agenda-detail-status-actions button { width:100%; min-height:44px; }
.agenda-page .agenda-new-form { grid-template-columns:minmax(0,1fr) 290px; grid-template-rows:auto auto auto; gap:16px; overflow:visible; }
.agenda-page .agenda-new-directory { grid-column:1/-1; grid-row:1; padding:18px 20px; border-right:0; border-bottom:1px solid #e7edf5; border-radius:18px 18px 0 0; }
.agenda-new-directory>[data-agenda-directory-picker] { display:grid; grid-template-columns:minmax(220px,.7fr) minmax(0,1fr); gap:8px 18px; }
.agenda-new-directory .agenda-picker-search { grid-column:1; grid-row:1; margin:0; }
.agenda-new-directory .agenda-picker-meta { grid-column:1; grid-row:2; margin:0; align-self:start; }
.agenda-new-directory .agenda-picker-list { grid-column:2; grid-row:1/4; max-height:220px; }
.agenda-new-directory .agenda-picker-create { grid-column:1; grid-row:3; margin:0; align-self:end; }
.agenda-ux-customer-chip { display:flex; align-items:center; gap:12px; min-width:0; }
.agenda-ux-customer-chip>div { flex:1; min-width:0; display:grid; gap:5px; overflow-wrap:anywhere; }
.agenda-ux-customer-chip small { color:#526783; font-size:12px; }
.agenda-ux-customer-chip button { min-height:44px; padding:10px 12px; border:1px solid #cddbed; border-radius:10px; background:#fff; color:#123b74; cursor:pointer; font-weight:700; }
.agenda-page .agenda-new-details { grid-column:1; grid-row:2; padding:20px; }
.agenda-page .agenda-new-notifications { grid-column:2; grid-row:2; padding:20px; min-width:0; align-self:start; }
.agenda-new-notifications>.agenda-selected-summary { display:none; }
.agenda-page .agenda-new-footer { grid-column:1/-1; grid-row:3; position:sticky; bottom:8px; z-index:3; padding:12px 18px; margin:0; border:1px solid #dce6f3; border-radius:12px; background:#fffffff5; box-shadow:0 6px 24px #071a3d10; }
.agenda-page .agenda-new-footer>span { font-size:12px; line-height:1.5; }
.agenda-page .agenda-ux-notes label { display:grid; gap:7px; }
.agenda-page .agenda-ux-notes textarea { min-height:70px; }
.agenda-page .agenda-ux-reminder-label { display:grid; gap:6px; margin-top:12px; font-size:12px; color:#526783; }
.agenda-ux-reminder-label select { width:100%; min-width:0; min-height:44px; padding:10px; background:#fff; border:1px solid #cfddf0; border-radius:10px; color:#123b74; font:inherit; }
@media(min-width:1100px) {
    .agenda-page .request-panel.has-review { display:grid; grid-template-columns:minmax(0,1fr) 390px; column-gap:20px; align-items:start; }
    .request-panel.has-review>:not(.request-review) { grid-column:1; }
    .request-panel.has-review>.request-review { grid-column:2; grid-row:1/span 8; margin-top:0; position:sticky; top:12px; min-height:420px; max-height:min(850px,calc(100dvh - 310px)); overflow-y:auto; overscroll-behavior:contain; }
    .request-panel.has-review .request-card { grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:14px; }
    .request-panel.has-review .request-card-actions { grid-column:1/-1; flex-direction:row; justify-content:space-between; align-items:center; }
    .request-panel.has-review .request-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .request-panel.has-review .request-search { grid-column:1/-1; }
    .request-panel.has-review .request-filters button { grid-column:1/-1; justify-self:end; }
}
@media(max-width:1099px) {
    .agenda-page .request-panel.has-review>:not(.request-review) { display:none; }
    .agenda-page .request-panel.has-review { padding:0; border:0; background:none; box-shadow:none; }
    .agenda-page .request-panel.has-review>.request-review { margin-top:0; }
    .agenda-page .request-card { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .request-card .request-card-actions { grid-column:1/-1; flex-direction:row; justify-content:space-between; }
}
@media(max-width:1120px) {
    .agenda-page .agenda-new-form { grid-template-columns:minmax(0,1fr); }
    .agenda-page .agenda-new-details { grid-column:1;grid-row:2;border-right:0; }
    .agenda-page .agenda-new-notifications { grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;border-top:1px solid #e7edf5; }
    .agenda-page .agenda-new-notifications .agenda-section-title { grid-column:1/-1; }
    .agenda-page .agenda-new-notifications > .agenda-ux-reminder-label { grid-column:1/-1;width:100%;max-width:420px;margin-top:0; }
    .agenda-page .agenda-new-notifications > label { margin:0;min-width:0; }
    .agenda-page .agenda-new-footer { grid-column:1;grid-row:4; }
}
@media(max-width:800px) {
    .agenda-page .agenda-new-form { grid-template-columns:minmax(0,1fr); }
    .agenda-page .agenda-new-details { grid-column:1; grid-row:2; }
    .agenda-page .agenda-new-notifications { grid-column:1; grid-row:3; }
    .agenda-page .agenda-new-footer { grid-column:1; grid-row:4; bottom:max(6px,env(safe-area-inset-bottom)); }
    .agenda-page .agenda-new-notifications .agenda-section-title { margin-bottom:12px; }
    .agenda-page .agenda-new-notifications { display:grid;grid-template-columns:minmax(0,1fr);gap:8px; }
    .agenda-page .agenda-new-notifications>label { margin:0; }
}
@media(max-width:600px) {
    .agenda-page .request-panel { padding:14px; }
    .agenda-page .request-card { grid-template-columns:minmax(0,1fr); gap:12px; padding:14px; }
    .request-card .request-slot { border-left:0; padding:10px 0 0; }
    .agenda-page .request-card .request-card-actions { grid-column:1; }
    .agenda-page .request-review { padding:14px; }
    .request-review>header { flex-wrap:nowrap; align-items:flex-start; gap:10px; }
    .request-review>header>div { flex-basis:auto; }
    .request-review>header>a { flex-shrink:0; font-size:12px; min-height:44px; }
    .agenda-page .agenda-detail-panel>footer { padding:9px 12px; }
    .agenda-detail-panel>footer .agenda-detail-primary-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .agenda-page .agenda-new-directory,.agenda-page .agenda-new-details,.agenda-page .agenda-new-notifications { padding:16px; }
    .agenda-new-directory>[data-agenda-directory-picker] { grid-template-columns:minmax(0,1fr); }
    .agenda-new-directory .agenda-picker-search,.agenda-new-directory .agenda-picker-meta,.agenda-new-directory .agenda-picker-list,.agenda-new-directory .agenda-picker-create { grid-column:1; grid-row:auto; }
    .agenda-new-directory .agenda-picker-list { max-height:220px; }
    .agenda-ux-customer-chip { gap:8px; flex-wrap:wrap; }
    .agenda-ux-customer-chip button { font-size:12px; }
    .agenda-page .agenda-new-footer { padding:10px; }
    .agenda-page .agenda-new-footer>span { display:none; }
    .agenda-page .agenda-new-footer>div { width:100%; display:flex; gap:10px; }
    .agenda-page .agenda-new-footer :is(a,button) { min-height:44px; flex:1; justify-content:center; }
    .agenda-page .agenda-new-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.agenda-page .request-review :is(input:not([type=checkbox]),select,textarea) { font-size:16px; }
    .agenda-page .agenda-type-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
    .agenda-page .agenda-type-options>label { min-width:0; }
    .agenda-page .agenda-type-options>label>span { width:100%; min-height:44px; padding:8px 4px; font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .agenda-page * { scroll-behavior:auto!important; } }
