:root {
  --schedule-bg: #fffaf2;
  --schedule-card: #fff;
  --schedule-text: #2b201b;
  --schedule-muted: #76675f;
  --schedule-line: #d9d2ca;
  --schedule-green: #2f6f52;
  --schedule-sun: #fde7e9;
  --schedule-sat: #e8f0fe;
}

.schedule-drawer {
  display: grid;
  gap: 7px;
  padding: 7px 8px;
  background: #fff7e8;
}

.schedule-month-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-month-picker label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #4b3429;
  font-size: 11px;
  font-weight: 800;
}

.schedule-month-picker select {
  min-height: 31px;
  padding: 0 5px;
  border: 1px solid #cdb8a9;
  border-radius: 5px;
  background: #fffdf8;
  color: #4b3429;
  font-size: 16px;
  font-weight: 800;
}

.schedule-view-settings {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.schedule-view-title {
  color: #4b3429;
  font-size: 11px;
  font-weight: 900;
}

.schedule-view-toggle {
  min-height: 31px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 5px;
  align-items: center;
  padding: 0 6px;
  border: 1px solid #cdb8a9;
  border-radius: 5px;
  background: #fffdf8;
  color: #6c5a51;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

.schedule-view-toggle strong { font-size: 10px; }
.schedule-view-toggle i {
  position: relative;
  width: 34px;
  height: 18px;
  display: block;
  border-radius: 9px;
  background: #cfc6bf;
}

.schedule-view-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
  transition: transform .16s ease;
}

.schedule-view-toggle.is-on {
  border-color: #79a88d;
  color: #245d45;
  background: #eef7f1;
}

.schedule-view-toggle.is-on i { background: #2f7d4a; }
.schedule-view-toggle.is-on i::after { transform: translateX(16px); }
.schedule-view-toggle:disabled { opacity: .72; }

.schedule-drawer-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #e4dbd2;
  color: #4d392f;
  background: #fffdf8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.schedule-page {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--schedule-text);
  background: var(--schedule-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.schedule-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  background: var(--schedule-card);
}

.schedule-table-shell {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  background: #fff;
  outline: 0;
}

.schedule-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
}

.schedule-table th,
.schedule-table td {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 1px;
  border-right: 1px solid var(--schedule-line);
  border-bottom: 1px solid var(--schedule-line);
  text-align: center;
  vertical-align: middle;
  font-size: 10px;
}

.schedule-table thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  height: 25px;
  background: #f8f7f5;
  color: var(--schedule-muted);
  font-weight: 900;
}

.schedule-table .schedule-name-col {
  position: sticky;
  z-index: 3;
  left: 0;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  padding: 2px 4px;
  background: #fff;
  text-align: left;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.schedule-table thead .schedule-name-col {
  z-index: 6;
  background: #f8f7f5;
  font-weight: 900;
}

.schedule-day-head { display: grid; gap: 1px; line-height: 1; }
.schedule-day-number { font-size: 10px; }
.schedule-day-week { font-size: 8px; }
.schedule-sun { background: var(--schedule-sun) !important; color: #c62828 !important; }
.schedule-sat { background: var(--schedule-sat) !important; color: #1565c0 !important; }
.schedule-login-row .schedule-name-col { color: #1769aa; background: #fff; font-weight: 600; }
.schedule-actual-row td { background: #faf7f2; color: #6a5b53; }
.schedule-actual-row .schedule-cell-code { color: #6a5b53; font-weight: 700; }
.schedule-cell-code { color: #2f4f43; font-size: 10px; font-weight: 900; line-height: 1; }
.schedule-table .schedule-count-col { width: 34px; min-width: 34px; max-width: 34px; font-size: 10px; font-weight: 900; }
.schedule-cell.schedule-request-wish {
  background: #eee1ff !important;
  box-shadow: inset 0 0 0 1px #9a67d4, inset 0 0 10px rgba(143, 87, 205, .34);
}
.schedule-cell.schedule-request-paid {
  background: #ffe6c7 !important;
  box-shadow: inset 0 0 0 1px #df9236, inset 0 0 10px rgba(232, 143, 40, .34);
}
.schedule-cell.is-off .schedule-cell-code { color: #b04b45; }
.schedule-cell.is-paid .schedule-cell-code { color: #9a6700; }
.schedule-cell.is-night .schedule-cell-code { color: #5b43a5; }

.schedule-status {
  position: absolute;
  z-index: 10;
  right: 6px;
  bottom: 6px;
  left: 6px;
  min-height: 22px;
  padding: 5px 8px;
  border-top: 1px solid var(--schedule-line);
  background: var(--schedule-bg);
  color: var(--schedule-muted);
  font-size: 10px;
}

@media (min-width: 641px) {
}
