/* === 勤務申請ページ用スタイル ======================= */
.request-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 12px 80px;
  box-sizing: border-box;
}

.request-card {
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 20px 16px 24px;
  box-sizing: border-box;
}

.request-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  text-decoration: none;
  color: var(--blue);
  cursor: pointer;
}

.back-link .icon {
  font-size: 16px;
  transform: translateY(-1px);
}

.request-title {
  font-size: 18px;
  font-weight: 700;
}

.request-subtitle {
  font-size: 12px;
  color: #666;
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff4ff;
  font-size: 13px;
}

.month-header-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.month-title {
  font-weight: 600;
  font-size: 14px;
}

.month-desc {
  font-size: 11px;
  color: #666;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
}

.month-nav button {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(76,94,194,0.15);
  cursor: pointer;
  font-size: 12px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11px;
  color: #555;
  margin-bottom: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
}

.legend-dot.stay {
  background: #f59e0b;
}

.legend-dot.trip {
  background: #10b981;
}

.calendar-vertical {
  border-radius: 12px;
  border: 1px solid #e3e6f0;
  background: #fafbff;
}

.calendar-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid #e5e7f0;
}

.calendar-row:nth-child(even) {
  background: #f5f7ff;
}

.calendar-row-header {
  background: #e0e7ff;
  font-weight: 600;
}

.calendar-date {
  font-weight: 600;
  font-size: 13px;
}

.calendar-weekday {
  font-size: 11px;
  color: #666;
}

.type-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.type-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.type-checkboxes input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.memo-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 4px 6px;
  font-size: 12px;
}

.request-footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #666;
}

.submit-btn {
  margin-top: 4px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(57,79,137,0.35);
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(57,79,137,0.35);
}

@media (max-width: 600px) {
  .request-card {
    border-radius: 18px;
    padding: 16px 12px 18px;
  }

  .calendar-row {
    grid-template-columns: 70px 1.6fr 1.2fr;
  }
}

/* === 休日・祝日を赤く表示（勤務申請） ======================= */
.calendar-row.is-holiday .calendar-date,
.calendar-row.is-holiday .calendar-weekday {
  color: #e11d48 !important;
  font-weight: 700 !important;
}
.calendar-row.is-holiday {
  background: #fff1f2 !important;
}
