.agenda-shell{max-width:1480px;margin-inline:auto;min-width:0}.agenda-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.agenda-heading h2{margin:0 0 7px}.agenda-heading p,.agenda-note,.agenda-muted{color:var(--ink-muted);font-size:13px;line-height:1.5}.agenda-heading p{margin:0}.agenda-header-actions,.agenda-view-controls,.agenda-view-controls>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.agenda-header-actions{justify-content:flex-end}.agenda-header-actions .btn,.agenda-view-controls .btn,.agenda-card-actions .btn{min-height:42px;white-space:normal}.agenda-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:600;color:var(--ink-muted)}.agenda-field>span{text-transform:uppercase}.agenda-field input,.agenda-field select,.agenda-field textarea{width:100%;min-width:0;box-sizing:border-box;font-family:inherit;font-size:16px;min-height:44px}.agenda-field textarea{resize:vertical}.agenda-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px}.agenda-filters .btn{min-height:44px}.agenda-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}.agenda-summary>div{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.agenda-summary strong{font-size:23px;line-height:1.2}.agenda-summary span{font-size:12px;color:var(--ink-muted);overflow-wrap:anywhere}.agenda-view-controls{margin:18px 0;justify-content:space-between}.agenda-view-controls p{font-size:12px;color:var(--ink-muted);margin:0}.agenda-calendar-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr);gap:18px;align-items:start}.agenda-calendar{padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:16px;min-width:0}.agenda-month-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.agenda-month-nav h3{text-transform:capitalize;font-family:inherit;font-size:16px;text-align:center;margin:0}.agenda-month-nav .btn{padding:8px 10px;min-height:40px}.agenda-weekdays,.agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.agenda-weekdays span{text-align:center;font-size:11px;font-weight:700;color:var(--ink-muted);padding:7px 0}.agenda-day{font-family:inherit;text-align:left;display:flex;position:relative;flex-direction:column;gap:4px;min-width:0;min-height:88px;padding:8px 5px;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:0;cursor:pointer}.agenda-day:hover{background:#fdf5f8}.agenda-day.is-outside{background:#faf7f8;color:#ae9ba2}.agenda-day.is-selected{background:#f8e4ed;box-shadow:inset 0 0 0 2px #bd2a62;z-index:1}.agenda-day.is-today .agenda-day-number{background:#a42652;color:#fff}.agenda-day-number{display:inline-flex;justify-content:center;align-items:center;width:25px;height:25px;font-size:12px;border-radius:50%;font-weight:700}.agenda-day-count{position:absolute;top:9px;right:5px;font-size:10px;color:#8c3153;font-weight:700}.agenda-day-events{display:flex;flex-direction:column;gap:3px;width:100%;min-width:0}.agenda-event{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:10px;line-height:1.4;padding:3px;border-radius:4px;background:#f6dfeb;color:#8e2550}.agenda-event.is-piercing{background:#e6eee9;color:#376951}.agenda-event-more{font-size:9px;color:var(--ink-muted);line-height:1.3}.agenda-calendar-help{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:11px;line-height:1.5;color:var(--ink-muted);margin:14px 0 0}.agenda-legend:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px;background:#c7467f}.agenda-legend.is-piercing:before{background:#599576}.agenda-day-detail>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 0 14px}.agenda-day-detail>header h3{font-family:inherit;font-size:17px;margin:0}.agenda-day-detail>header p{color:var(--ink-muted);font-size:12px;margin:0}.agenda-day-cards{display:grid;gap:12px}.agenda-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.agenda-card{padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:15px;min-width:0;overflow-wrap:anywhere}.agenda-card h3{font-size:20px;line-height:1.3;margin:14px 0 8px}.agenda-card p{font-size:13px;line-height:1.5;margin:8px 0}.agenda-card .agenda-time{font-weight:700;font-size:14px}.agenda-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:7px;flex-wrap:wrap}.agenda-kind,.agenda-status{padding:5px 8px;border-radius:7px;font-size:11px;line-height:1.35;background:#f4e2ea;color:#922b54}.agenda-kind.is-piercing{background:#e7f0ea;color:#35674d}.agenda-status.is-realizado{background:#e0efe6;color:#285c40}.agenda-status.is-nao_realizado,.agenda-status.is-faltou{background:#fff0d6;color:#805315}.agenda-status.is-cancelado{background:#efe9eb;color:#79636c}.agenda-card-actions{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;margin-top:14px}.agenda-card-actions>.btn{font-size:12px;padding:9px 11px}.agenda-more{width:100%;padding-top:2px}.agenda-more summary,.agenda-history summary,.agenda-card>details>summary{cursor:pointer;font-size:12px;color:var(--ink-muted);line-height:1.6}.agenda-more>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.agenda-more .btn{font-size:12px;padding:8px 10px}.agenda-observation{white-space:pre-wrap}.agenda-history{border-top:1px solid var(--border);margin-top:16px;padding-top:10px}.agenda-history ol{padding-left:17px;font-size:11px;color:var(--ink-muted)}.agenda-history li{padding:6px 0}.agenda-history li>*{display:block;line-height:1.5}.agenda-history li strong{color:var(--ink)}.agenda-pagination{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.agenda-pagination span{font-size:12px;color:var(--ink-muted)}.agenda-pagination .btn{min-height:42px}.agenda-pagination .btn:disabled{opacity:.5}.agenda-empty{padding:25px 18px;background:var(--surface);border:1px dashed var(--border);border-radius:12px;color:var(--ink-muted);font-size:13px;line-height:1.6}.agenda-error{color:#a72a41;font-size:13px;line-height:1.5}.agenda-dialog{width:min(760px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--ink);box-sizing:border-box}.agenda-dialog::backdrop{background:rgba(38,22,28,.4)}.agenda-form{display:flex;flex-direction:column;max-height:calc(100dvh - 30px);margin:0}.agenda-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:20px 22px;border-bottom:1px solid var(--border);flex-shrink:0}.agenda-dialog-head h2{font-size:25px;line-height:1.25;margin:0}.agenda-dialog-head .btn{flex-shrink:0;min-height:42px}.agenda-dialog-body{padding:20px 22px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.agenda-dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid var(--border);flex-shrink:0;background:var(--surface)}.agenda-dialog-footer .btn{min-height:45px;white-space:normal}.agenda-form-panel{padding:17px;border:1px solid var(--border);border-radius:13px;margin-bottom:16px;min-width:0}.agenda-form-panel h3{font-family:inherit;font-size:16px;margin:0 0 17px}.agenda-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.agenda-form-panel>.agenda-field{margin-top:14px}.agenda-form-panel>details{font-size:13px;margin-top:14px}.agenda-form-panel>details .agenda-form-grid{margin:14px 0}.agenda-client-results{display:flex;flex-direction:column;gap:7px;margin-top:10px}.agenda-client-results .btn{text-align:left;white-space:normal;min-height:44px}.agenda-client-selected{padding:11px 13px;background:#f8edf1;border-radius:9px;font-size:13px}.agenda-dialog .agenda-note{font-size:12px}.agenda-dialog details summary{cursor:pointer;color:var(--ink-muted)}
@media(max-width:1250px){.agenda-calendar-layout{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.agenda-list{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-day{min-height:80px}}
@media(max-width:1100px){.agenda-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-filters>.agenda-field:first-child,.agenda-filters>.btn{grid-column:span 2}}
@media(max-width:900px){.agenda-calendar-layout{grid-template-columns:minmax(0,1fr)}.agenda-day-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-day{min-height:88px}.agenda-heading{flex-direction:column}.agenda-header-actions{justify-content:flex-start}}
@media(max-width:620px){.agenda-heading{gap:14px;margin-bottom:16px}.agenda-heading h2{font-size:25px}.agenda-header-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-header-actions>.btn{width:100%;min-width:0;font-size:12px;padding:10px}.agenda-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px;gap:12px}.agenda-filters>.agenda-field:nth-child(-n+3){grid-column:span 2}.agenda-filters>.btn{grid-column:span 2}.agenda-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.agenda-summary>div{padding:10px}.agenda-summary strong{font-size:20px}.agenda-summary span{font-size:11px}.agenda-view-controls{gap:8px}.agenda-view-controls>div{gap:6px}.agenda-view-controls .btn{font-size:12px;padding:9px 13px}.agenda-view-controls p{width:100%}.agenda-calendar{padding:10px}.agenda-month-nav{gap:6px;margin-bottom:10px}.agenda-month-nav h3{font-size:14px}.agenda-month-nav .btn{padding:8px;font-size:11px}.agenda-day{min-height:62px;padding:5px 2px}.agenda-day-number{width:23px;height:23px;font-size:12px}.agenda-day-count{top:auto;bottom:6px;right:7px;font-size:11px}.agenda-day-events{display:none}.agenda-calendar-help{font-size:10px;gap:7px}.agenda-day-detail>header{padding:3px 0 10px;flex-wrap:wrap}.agenda-day-cards,.agenda-list{grid-template-columns:minmax(0,1fr)}.agenda-card{padding:15px}.agenda-card h3{font-size:21px}.agenda-card-actions>.btn{min-height:44px;flex:1;text-align:center}.agenda-more summary{padding:7px 0}.agenda-more>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-more .btn{min-height:44px}.agenda-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:15px}.agenda-form{max-height:calc(100dvh - 18px)}.agenda-dialog-head{padding:17px 15px;gap:10px}.agenda-dialog-head h2{font-size:23px}.agenda-dialog-body{padding:15px}.agenda-dialog-footer{padding:13px 15px;display:grid;grid-template-columns:1fr 1.6fr;gap:8px}.agenda-dialog-footer .btn{padding:11px;font-size:14px}.agenda-form-panel{padding:13px}.agenda-form-grid{gap:12px}.agenda-form-panel>.agenda-field{margin-top:12px}}

@media(max-width:420px){.agenda-filters>.agenda-field{grid-column:span 2}}
.agenda-presence{display:flex;align-items:center;justify-content:space-between;gap:7px 12px;flex-wrap:wrap;padding:10px 12px;margin:13px 0;border:1px solid var(--border);border-radius:10px;background:#fcf7f9;font-size:12px;line-height:1.5}.agenda-presence>span{color:var(--ink-muted)}.agenda-presence>strong{font-weight:600;color:#86551b}.agenda-presence.is-confirmada>strong{color:#28654c}.agenda-presence.is-nao_comparecera>strong{color:#9b3b4e}.agenda-presence>small{width:100%;color:var(--ink-muted);font-size:11px}
@media(max-width:620px){.agenda-header-actions>.btn:last-child:nth-child(3){grid-column:1/-1}}
