/* Dashboard agenda occupies its own full-width row; quantity summary follows. */
#view-home .dashboard-grid { display:flex; flex-direction:column; gap:20px; height:auto; align-items:stretch; }
#view-home .dashboard-left-col { order:0; width:100%; min-width:0; }
#view-home .dashboard-right-col { order:1; width:100%; min-width:0; }
#view-home .dashboard-grid .panel { height:auto!important; min-height:0; }
#upcomingScheduleList { min-width:0; }
.upcoming-schedule { display:grid; grid-template-columns:65px minmax(0,1fr) 58px; gap:18px; padding:19px 0; align-items:start; }
.upcoming-content { display:grid; grid-template-columns:minmax(120px,190px) minmax(0,1fr); column-gap:24px; row-gap:6px; }
.upcoming-title { grid-column:1; grid-row:1; }
.upcoming-description { grid-column:2; grid-row:1/3; white-space:pre-wrap; overflow-wrap:anywhere; }
.upcoming-range { grid-column:1; grid-row:2; }
.upcoming-relative { justify-self:end; }
.calendar-disclosure .calendar-header,.calendar-disclosure>.calendar-grid { max-width:700px; }
.calendar-disclosure .schedule-detail-wrap { max-height:none; overflow:visible; }
.schedule-date-title { gap:12px; flex-wrap:wrap; align-items:center; }
.calendar-add-date,.schedule-add-row { padding:9px 12px; border:1px solid var(--border); border-radius:8px; background:var(--accent-soft); color:var(--accent); font:inherit; font-size:12px; cursor:pointer; }
.calendar-add-date { min-height:40px; }
.schedule-date-fields.is-batch { grid-template-columns:repeat(2,minmax(0,1fr)); }
#newScheduleModal [hidden] { display:none!important; }
.schedule-batch-row { padding:16px; margin-bottom:14px; border:1px solid var(--border); border-radius:10px; background:#e7ecf1; }
.schedule-row-heading { display:flex; gap:10px; justify-content:space-between; align-items:center; margin-bottom:13px; color:var(--text-sub); font-size:13px; }
.schedule-remove-row { border:0; background:transparent; padding:5px 8px; color:var(--rose); cursor:pointer; font:inherit; font-size:12px; }
.schedule-row-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.schedule-row-fields .form-group { min-width:0; margin:0; }
.schedule-row-content,.schedule-row-po { grid-column:1/-1; }
.schedule-row-fields textarea { width:100%; resize:vertical; min-height:76px; }
.schedule-row-po select { width:100%; }
.schedule-add-row { width:100%; min-height:44px; background:transparent; border-style:dashed; }
.schedule-row-po small { display:block; margin-top:6px; color:var(--text-muted); font-size:11px; }
.schedule-editor-card .modal-body-scroll { min-height:0; }
@media(max-width:768px) {
 #view-home .dashboard-grid { gap:16px; }
 .upcoming-schedule { grid-template-columns:47px minmax(0,1fr) 45px; gap:9px; padding:17px 0; }
 .upcoming-content { display:flex; flex-direction:column; gap:5px; }
 .upcoming-description { font-size:12px; }
 .upcoming-range { overflow-wrap:anywhere; font-size:10px; }
 .upcoming-relative { font-size:9px; padding:3px 4px; }
 .schedule-row-fields { grid-template-columns:minmax(0,1fr); gap:11px; }
 .schedule-batch-row { padding:13px; }
 .schedule-row-fields input,.schedule-row-fields select,.schedule-row-fields textarea { min-height:44px; font-size:16px; width:100%; }
 .schedule-remove-row,.calendar-add-date { min-height:44px; }
 .schedule-date-fields.is-batch { grid-template-columns:1fr; }
}
