.shift-request-description {
  margin: 4px 0 0;
  color: var(--muted);
}

.shift-request-month-label {
  display: grid;
  gap: 6px;
  min-width: 170px;
  font-weight: 700;
}

.shift-request-month-label input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
  color: var(--text);
  font: inherit;
}

.shift-request-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
  color: var(--muted);
}

.shift-request-summary strong { color: var(--text); }
.shift-request-days { display: grid; gap: 16px; }

.shift-request-day {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fcf9f3;
}

.shift-request-day h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1rem;
}

.shift-request-day.is-unsubmitted-section { background: #f6f4f1; }

.shift-request-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shift-request-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}

.shift-request-card.is-unsubmitted {
  border-style: dashed;
  background: #fafafa;
}

.shift-request-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.shift-request-card-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shift-request-badge,
.shift-request-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.shift-request-badge.is-work { background: #e7f5ea; color: #276738; }
.shift-request-badge.is-off { background: #fff0ee; color: #9a3e35; }
.shift-request-badge.is-either { background: #edf3ff; color: #355d9a; }
.shift-request-badge.is-unset,
.shift-request-badge.is-unsubmitted { background: #efefef; color: #666; }

.shift-request-status.is-pending { background: #fff6d9; color: #795f00; }
.shift-request-status.is-applied { background: #e7f5ea; color: #276738; }
.shift-request-status.is-modified { background: #edf3ff; color: #355d9a; }
.shift-request-status.is-rejected { background: #efefef; color: #666; }

.shift-request-detail {
  display: grid;
  gap: 8px;
  margin: 0;
}

.shift-request-detail div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.shift-request-detail dt { color: var(--muted); font-weight: 700; }
.shift-request-detail dd { margin: 0; overflow-wrap: anywhere; }

.shift-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shift-request-actions button {
  min-height: 40px;
  padding: 8px 12px;
}

.shift-request-actions .is-reject {
  border-color: #c8b8b4;
  color: #7d3d35;
}

.shift-request-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 27, 23, 0.55);
}

.shift-request-dialog {
  width: min(100%, 480px);
  padding: 20px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 48px rgba(34, 27, 23, 0.24);
}

.shift-request-dialog h3 {
  margin: 0 0 16px;
}

.shift-request-dialog label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.shift-request-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: white;
  font: inherit;
}

.shift-request-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.shift-request-dialog-actions .is-reject {
  background: #7d3d35;
}

.shift-request-unsubmitted-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .shift-request-month-label { width: 100%; }
  .shift-request-cards { grid-template-columns: 1fr; }
  .shift-request-day { padding: 12px; }
  .shift-request-card-header { align-items: flex-start; }
  .shift-request-actions { display: grid; grid-template-columns: 1fr; }
  .shift-request-actions button { width: 100%; }
}

@media (max-width: 480px) {
  .shift-request-detail div { grid-template-columns: 1fr; gap: 2px; }
}
