/* 05 schedule */
/* Schedule maker */
#scheduleView {
  flex-direction: column;
  overflow-y: auto;
  padding: 18px 20px 48px;
  color: var(--text);
}
#scheduleNavBtn {
  border-color: var(--tb-btn-border) !important;
  background: var(--tb-btn-bg) !important;
  color: var(--plum) !important;
}
.schedule-page-title {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 14px;
}
.schedule-page-title h2 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 2px;
}
.schedule-page-title p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
#scheduleView .schedule-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
#scheduleView .schedule-top-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
#scheduleView .schedule-card,
#scheduleView .calendar-wrap {
  background: var(--card-bg);
  border: 1.5px solid var(--acc-border);
  border-radius: 0;
  padding: 18px;
  box-shadow: var(--card-shadow);
}
#scheduleView .calendar-wrap {
  overflow: auto;
  padding: 0;
}
#scheduleView .schedule-card h2 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 4px;
}
#scheduleView .schedule-card p.hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
#scheduleView .field {
  margin-bottom: 12px;
}
#scheduleView .field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
#scheduleView .color-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
#scheduleView .color-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
#scheduleView .color-item input[type=color] {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 2px;
  background: transparent;
}
#scheduleView .row-editor {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#scheduleView .row-item {
  display: grid;
  grid-template-columns: 24px 92px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 0;
  border: 1.5px solid var(--acc-border);
  background: var(--white);
  cursor: grab;
  transition: box-shadow .15s, opacity .15s, background .15s, border-color .15s;
  user-select: none;
}
#scheduleView .row-item:hover,
#scheduleView .row-item.drag-over {
  background: var(--acc-petal);
  border-color: var(--acc1);
}
#scheduleView .row-item:active {
  cursor: grabbing;
}
#scheduleView .row-item.dragging {
  opacity: .35;
}
#scheduleView .row-item.is-break {
  background: color-mix(in srgb, var(--acc-petal) 70%, var(--white));
  border-color: var(--acc1);
}
#scheduleView .drag-handle {
  color: var(--acc-border);
  font-size: 1rem;
  cursor: grab;
  text-align: center;
}
#scheduleView .type-select {
  appearance: none;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 90px;
  background: var(--cream);
  color: var(--plum);
  border-color: var(--acc-border);
}
#scheduleView .type-select.is-break {
  background: var(--acc-petal);
  color: var(--acc1-d);
  border-color: var(--acc1);
}
#scheduleView .row-label-input {
  padding: 5px 8px;
  font-size: 13px;
  width: 100%;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
}
#scheduleView .row-label-input:hover,
#scheduleView .row-label-input:focus {
  border-color: var(--acc1);
  background: var(--white);
}
#scheduleView .row-times {
  display: flex;
  align-items: center;
  gap: 5px;
}
#scheduleView .row-times input[type=time] {
  padding: 5px 7px;
  font-size: 12px;
  width: 82px;
}
#scheduleView .row-times .sep {
  font-size: 12px;
  color: var(--muted);
}
#scheduleView .row-times.hidden {
  visibility: hidden;
  pointer-events: none;
}
#scheduleView .add-row-bar,
#scheduleView .schedule-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  align-items: center;
}
#scheduleView .schedule-actions {
  gap: 12px;
  margin-bottom: 22px;
}
#scheduleView .btn-add,
#scheduleView .btn-small,
#scheduleView .btn-secondary {
  border-style: dashed;
  color: var(--plum);
  background: var(--white);
}
#scheduleView .btn-add.brk {
  background: var(--acc-petal) !important;
  border-color: var(--acc1) !important;
  color: var(--acc1-d) !important;
}
#scheduleView .holiday-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#scheduleView .holiday-row {
  display: grid;
  grid-template-columns: 1fr 14px 1fr auto;
  align-items: center;
  gap: 6px;
}
#scheduleView .holiday-row .sep {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
#scheduleView .holiday-row input[type=date] {
  padding: 7px 9px;
  font-size: 12px;
}
#scheduleView #statusMsg {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
#scheduleView .cal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  font-size: 12px;
}
#scheduleView .cal-table th {
  background: var(--plum);
  color: var(--white);
  padding: 10px 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--acc-border);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}
#scheduleView .cal-table td {
  padding: 0;
  border: 1px solid var(--acc-border);
  vertical-align: middle;
}
#scheduleView .cal-table td.lbl-week {
  background: var(--acc-petal);
  color: var(--plum);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 4px 5px;
  min-width: 34px;
  white-space: nowrap;
}
#scheduleView .cal-table td.lbl-time {
  background: color-mix(in srgb, var(--acc-petal) 35%, var(--white));
  color: var(--acc1-d);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  padding: 4px 8px;
  min-width: 90px;
  white-space: nowrap;
}
#scheduleView .cal-table td.lbl-time.brk-lbl,
#scheduleView .cal-table td.brk-cell {
  background: var(--acc-petal);
  color: var(--acc1-d);
  font-weight: 700;
  text-align: center;
}
#scheduleView .cal-table td.date-header-cell {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 7px;
  text-align: left;
  vertical-align: middle;
  border-color: var(--acc-border);
}
#scheduleView .cal-table td.brk-cell {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  height: 20px;
}
#scheduleView .cal-table td.brk-cell.absent {
  background: var(--cream);
  color: var(--border);
}
#scheduleView .cal-table td.session-cell {
  height: 40px;
}
#scheduleView .cell-inner {
  width: 100%;
  min-height: 40px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
#scheduleView .no-data {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
}
