/* Administração · Campos e horários — UX agrupado */
.schedule-console-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:18px 0 20px;padding:24px 26px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,var(--card),#f4f8ed)}.schedule-console-head h2{margin:4px 0 6px;font-size:28px}.schedule-console-head p{max-width:650px;margin:0;color:var(--muted);font-size:12px;line-height:1.6}.schedule-head-actions{display:flex;gap:9px;flex-shrink:0}.court-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.court-overview-grid article{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:11px;padding:15px 16px;border:1px solid var(--line);border-radius:17px;background:var(--card)}.court-overview-icon{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef8d5}.court-overview-grid article>div{display:grid;gap:3px;min-width:0}.court-overview-grid strong{font-size:13px}.court-overview-grid small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.court-overview-grid article>b{grid-column:2;color:var(--muted);font-size:9px;font-weight:750}.friendly-choice{position:relative;padding-top:17px}.choice-shortcuts{display:flex;gap:6px;width:100%;margin-bottom:8px}.choice-shortcuts button{min-height:30px;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--muted);font:inherit;font-size:9px;font-weight:800;cursor:pointer}.choice-shortcuts button:hover,.choice-shortcuts button.is-active{border-color:var(--green);background:#eff8de;color:#315c20}.schedule-form-summary{display:grid;gap:4px;padding:14px 16px;border:1px solid #b8d68c;border-radius:14px;background:#f3fae8}.schedule-form-summary strong{font-size:12px}.schedule-form-summary span{color:var(--muted);font-size:10px;line-height:1.45}.warning-summary{border-color:#e5c278;background:#fff8e7}.edit-scope-notice{display:grid;gap:4px;margin:-4px 0 18px;padding:13px 15px;border-left:4px solid var(--green);border-radius:10px;background:#f2f8e8}.edit-scope-notice strong{font-size:12px}.edit-scope-notice span{color:var(--muted);font-size:10px}.edit-scope-notice a{width:max-content;color:var(--green);font-size:10px;font-weight:850}.edit-scope-notice.warning{border-color:#d59d27;background:#fff6df}.section-count{padding:6px 10px;border-radius:999px;background:#eef3e5;color:var(--muted);font-size:9px;font-weight:850}.schedule-series-list{display:grid;gap:10px}.schedule-series-card{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(240px,1.2fr) auto;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:17px;background:var(--card)}.series-main{display:flex;align-items:center;gap:11px;min-width:0}.series-calendar{display:grid;place-items:center;width:39px;height:39px;flex:0 0 auto;border-radius:12px;background:#eff8dc}.series-main>div,.series-time{display:grid;gap:3px;min-width:0}.series-main strong,.series-time strong{font-size:13px}.series-main small,.series-time small{color:var(--muted);font-size:9px;line-height:1.4}.series-actions{display:grid;justify-items:end;gap:7px;min-width:150px}.series-actions form{margin:0}.compact-btn{min-height:34px!important;padding:7px 11px!important;font-size:9px!important}.series-actions details{position:relative}.series-actions summary{color:var(--muted);font-size:9px;font-weight:800;cursor:pointer}.series-occurrences{position:absolute;z-index:20;right:0;top:25px;display:grid;width:min(520px,80vw);max-height:310px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:13px;background:var(--card);box-shadow:0 18px 45px rgba(20,32,25,.18)}.series-occurrences div{display:flex;justify-content:space-between;gap:18px;padding:8px;border-bottom:1px solid var(--line);font-size:9px}.series-occurrences div:last-child{border-bottom:0}.series-occurrences a{color:var(--green);font-weight:850;white-space:nowrap}.occurrence-actions{display:flex;align-items:center;gap:8px}.occurrence-actions form{margin:0}.occurrence-actions button{padding:0;border:0;background:none;font-size:9px}.block-series-list .series-calendar{background:#fff0eb}.admin-schedule-calendar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.admin-schedule-calendar article{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:stretch;border:1px solid var(--line);border-radius:15px;background:var(--card);overflow:hidden}.admin-schedule-calendar header{display:grid;place-content:center;gap:2px;padding:10px;background:#f0f4e9;text-align:center}.admin-schedule-calendar header strong{font-size:12px}.admin-schedule-calendar header small{color:var(--muted);font-size:9px}.admin-schedule-calendar article>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:7px}.calendar-court-state{display:grid;gap:2px;padding:7px 8px;border:1px solid var(--line);border-radius:9px}.calendar-court-state b{font-size:9px}.calendar-court-state small{overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.calendar-court-state.available{border-color:#9bc99b;background:#edf8ee}.calendar-court-state.available small{color:#20633a}.calendar-court-state.blocked{border-color:#e5b59e;background:#fff0e9}.calendar-court-state.blocked small{color:#93442d}.calendar-court-state.closed{background:#f2f3f0;color:#7d857d}.availability-legend .closed{background:#ecefeb;color:#68716a}
html[data-theme="dark"] .schedule-console-head{background:linear-gradient(135deg,#0d1d25,#14271f)}html[data-theme="dark"] .court-overview-grid article,html[data-theme="dark"] .schedule-series-card,html[data-theme="dark"] .series-occurrences,html[data-theme="dark"] .admin-schedule-calendar article{background:#09141d}html[data-theme="dark"] .court-overview-icon,html[data-theme="dark"] .series-calendar{background:#173024}html[data-theme="dark"] .choice-shortcuts button{background:#0d1d25}html[data-theme="dark"] .choice-shortcuts button:hover,html[data-theme="dark"] .choice-shortcuts button.is-active{background:#1d3627;color:#c9f10b}html[data-theme="dark"] .schedule-form-summary,html[data-theme="dark"] .edit-scope-notice{background:#12261c;border-color:#355c3d}html[data-theme="dark"] .warning-summary,html[data-theme="dark"] .edit-scope-notice.warning{background:#2d240d;border-color:#775f25}html[data-theme="dark"] .admin-schedule-calendar header{background:#102128}html[data-theme="dark"] .calendar-court-state.available{background:#10251f;border-color:#365f48}html[data-theme="dark"] .calendar-court-state.blocked{background:#2b1718;border-color:#72433f}html[data-theme="dark"] .calendar-court-state.closed{background:#111c22;color:#84949b}
@media(max-width:900px){.schedule-console-head{align-items:flex-start;flex-direction:column}.court-overview-grid{grid-template-columns:1fr}.schedule-series-card{grid-template-columns:1fr auto}.series-time{grid-column:1}.series-actions{grid-column:2;grid-row:1/3}.admin-schedule-calendar{grid-template-columns:1fr}}
@media(max-width:700px){.schedule-console-head{padding:18px}.schedule-console-head h2{font-size:22px}.schedule-head-actions{display:grid;width:100%;grid-template-columns:1fr 1fr}.schedule-head-actions .btn{width:100%;padding-inline:8px}.friendly-choice{display:grid!important;grid-template-columns:1fr!important}.friendly-choice .choice-shortcuts{display:flex;flex-wrap:wrap}.friendly-choice label{width:100%!important}.week-choice.friendly-choice label{display:flex;justify-items:initial}.schedule-series-card{grid-template-columns:1fr;padding:14px}.series-time,.series-actions{grid-column:1;grid-row:auto}.series-actions{justify-items:stretch;min-width:0}.series-actions .btn,.series-actions form button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px!important}.series-actions details{width:100%}.series-actions summary{text-align:center}.series-occurrences{position:static;width:100%;max-height:260px;margin-top:8px;box-shadow:none}.series-occurrences div{align-items:flex-start;flex-direction:column;gap:4px}.admin-schedule-calendar{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory}.admin-schedule-calendar article{grid-template-columns:54px 1fr;flex:0 0 calc(100vw - 50px);scroll-snap-align:start}.admin-schedule-calendar article>div{grid-template-columns:1fr}.calendar-court-state small{white-space:normal}.court-overview-grid small{white-space:normal}}
