.schedule-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:16px;margin:18px 0}.schedule-toolbar label{display:grid;gap:4px;flex:1;min-width:130px;color:var(--muted);font-size:12px}.schedule-toolbar input,.schedule-toolbar select{min-height:44px;padding:9px 10px}.schedule-date-nav,.schedule-views{display:flex;gap:5px;align-items:center}.schedule-date-nav .btn{padding:8px 13px;min-height:44px}.schedule-views{border:1px solid var(--line);padding:4px;border-radius:12px}.schedule-views button{border:0;background:transparent;color:var(--muted);border-radius:8px;padding:8px 12px;font-weight:650}.schedule-views button[aria-pressed=true]{background:var(--accent-soft);color:var(--rose)}
#screen-agenda .ops-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#screen-agenda .ops-card{padding:14px}#screen-agenda .ops-card b{font-size:25px}#screen-agenda .screen-head{margin-bottom:20px}#screen-agenda .screen-head h1{margin:6px 0;font-size:32px}
@media(max-width:700px){#screen-agenda .ops-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
#screen-agenda{max-width:none}.schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.schedule-heading h2{font:600 24px var(--sans);margin:0}.schedule-heading p{font-size:13px;color:var(--muted);margin:6px 0 0}.schedule-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;margin:0 0 18px;color:var(--muted)}.schedule-legend span{display:flex;align-items:center;gap:5px}.schedule-legend i{width:9px;height:9px;border-radius:3px;background:var(--rose)}.schedule-legend .maint{background:#3e7568}.schedule-legend .pending{background:#b47a22}.schedule-legend .blocked{background:#a34f5c}.schedule-legend .done{background:#718078}
.schedule-scroll{max-height:620px;overflow:auto;border:1px solid var(--line);border-radius:12px;position:relative;overscroll-behavior:contain;background:var(--panel)}.schedule-grid{display:grid;grid-template-columns:64px repeat(var(--columns),minmax(225px,1fr));grid-template-rows:70px repeat(var(--rows),22px);position:relative;min-width:calc(64px + var(--columns)*225px)}.schedule-corner,.schedule-pro{position:sticky;top:0;background:var(--panel);border-bottom:1px solid var(--line);z-index:5}.schedule-corner{left:0;z-index:8;display:grid;place-items:center;font-size:11px;color:var(--muted);border-right:1px solid var(--line)}.schedule-pro{display:flex;align-items:center;gap:10px;padding:12px;border-right:1px solid var(--line)}.schedule-pro>span{width:37px;height:37px;display:grid;place-items:center;background:var(--accent-soft);color:var(--rose);border-radius:12px;font-size:13px;font-weight:700}.schedule-pro strong,.schedule-pro small{display:block}.schedule-pro strong{font-size:14px}.schedule-pro small{font-size:11px;color:var(--muted)}.schedule-hour{position:sticky;left:0;z-index:3;background:var(--panel2);color:var(--muted);font-size:11px;text-align:center;border-right:1px solid var(--line);padding-top:2px;font-variant-numeric:tabular-nums}.schedule-slot{min-height:0;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:var(--panel);padding:0;cursor:pointer}.schedule-slot.minor{border-bottom:1px dashed var(--line)}.schedule-slot:hover,.schedule-slot.drag-over{background:var(--accent-soft);box-shadow:inset 0 0 0 2px var(--rose)}.schedule-slot:focus-visible{z-index:4;outline-offset:-3px!important}
.schedule-event{z-index:2;align-self:stretch;text-align:left;border:1px solid var(--line);border-left:4px solid var(--rose);background:var(--accent-soft);color:var(--cream);border-radius:8px;margin:2px 5px;padding:8px 10px;min-height:0;overflow:hidden;box-shadow:0 2px 5px #22222206;cursor:pointer}.schedule-event[draggable=true]{cursor:grab}.schedule-event strong,.schedule-event small,.schedule-event time{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-event time{font-size:11px;font-weight:650}.schedule-event strong{font-size:14px;margin:4px 0}.schedule-event small{font-size:12px}.schedule-event em{display:inline-block;font-style:normal;font-size:11px;margin-top:9px;padding:3px 7px;border-radius:5px;background:#ffffffb3;color:#494249}.schedule-event.maintenance{background:#e6f2ec;border-left-color:#3e7568;color:#274d41}.schedule-event.pending_payment{background:#fff2d9;border-left-color:#b47a22;color:#73501d}.schedule-event.completed{background:#edf1ee;border-left-color:#718078;color:#4e5c54}.schedule-event.blocked{background:repeating-linear-gradient(135deg,#faedef,#faedef 8px,#f6e5e9 8px,#f6e5e9 10px);border-left-color:#a34f5c;color:#813847}.schedule-event.dim{opacity:.3}.schedule-now{z-index:4;border-top:2px solid #b83c4d;pointer-events:none;position:relative;align-self:start}.schedule-now:before{content:'';width:7px;height:7px;border-radius:50%;background:#b83c4d;position:absolute;left:-3px;top:-4px}.schedule-alerts{margin-top:16px}.schedule-alerts summary{cursor:pointer;font-size:14px;color:var(--muted);padding:10px 0}.schedule-list-row{display:flex;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.schedule-list-row>time{font-size:15px;font-weight:700;min-width:50px}.schedule-list-row .grow{flex:1}.schedule-list-row small{display:block;color:var(--muted);font-size:13px}.schedule-week{display:grid;grid-template-columns:repeat(7,minmax(180px,1fr));gap:10px;overflow:auto;padding-bottom:15px}.schedule-week-day{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}.schedule-week-day header{display:flex;justify-content:space-between;gap:6px;margin-bottom:12px}.schedule-week-day header button{border:0;color:var(--rose);background:transparent;font-size:13px;font-weight:700}.schedule-week-day>.schedule-event{display:block;width:100%;margin:8px 0;min-height:100px}.schedule-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.schedule-detail-meta>div{padding:14px;background:var(--panel2);border:1px solid var(--line);border-radius:12px}.schedule-detail-meta small{display:block;color:var(--muted);font-size:12px}.schedule-detail-meta strong{font-size:16px}.schedule-action-grid{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.schedule-action-grid .btn{flex:1;min-width:145px}.schedule-empty-actions{display:flex;gap:12px}.schedule-empty-actions .btn{flex:1}.schedule-help{font-size:12px;color:var(--muted);margin:12px 0}.schedule-panel{padding:22px}
@media(max-width:700px){.schedule-toolbar{padding:12px;gap:10px}.schedule-date-nav{width:100%}.schedule-toolbar label{min-width:calc(50% - 10px)}.schedule-views{width:100%;justify-content:space-between}.schedule-views button{flex:1}.schedule-heading{align-items:start}.schedule-heading h2{font-size:20px}.schedule-panel{padding:14px}.schedule-scroll{max-height:520px}.schedule-grid{grid-template-columns:52px repeat(var(--columns),minmax(240px,1fr));min-width:calc(52px + var(--columns)*240px)}.schedule-list-row{flex-wrap:wrap}.schedule-list-row>.btn{margin-left:65px}.schedule-detail-meta{gap:8px}.schedule-legend{gap:10px}.schedule-toolbar label:last-of-type{min-width:100%}.schedule-empty-actions{flex-direction:column}}
.schedule-event{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.schedule-event>time,.schedule-event>strong,.schedule-event>small{max-width:100%}
#screen-agenda .ops-card{grid-column:auto}
.schedule-event[data-drag-id]{cursor:grab;user-select:none}.schedule-event.is-moving{opacity:.6;cursor:grabbing}
.schedule-block-list .schedule-event{width:100%;min-height:90px;margin:8px 0}.schedule-block-list h3{font-size:15px;margin-top:24px}
