.shift-week-config {
  border: 1px solid var(--border-color);
  background: #0f152480;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.shift-week-config__title {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.shift-week-config__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(42px, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}

.shift-week-config__day-btn {
  min-height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-muted);
  background: #ffffff0a;
  cursor: pointer;
  font-weight: 700;
}

.shift-week-config__day-btn.active {
  color: #fff;
  border-color: #60a5fa;
  background: #3b82f64d;
}

.shift-week-config__panel {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: .85rem;
  background: #090d164d;
}

.shift-week-config__switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .85rem;
  color: var(--text-main);
  font-weight: 600;
}

.shift-week-config__segments {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.shift-week-config__segment {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) repeat(4, minmax(86px, 1fr)) 40px;
  gap: .5rem;
  align-items: end;
}

.shift-week-config__field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.shift-week-config__field label {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
}

.shift-week-config__field input {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: #0f1524cc;
  border-radius: 10px;
  padding: .55rem .65rem;
  width: 100%;
  min-height: 38px;
}

.shift-week-config__remove {
  width: 40px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #ef444433;
  color: #f87171;
  background: #ef44441a;
  cursor: pointer;
}

.shift-week-config__add {
  margin-top: .85rem;
}

.shift-week-config__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: .5rem;
  margin-top: .85rem;
  color: var(--text-muted);
  font-size: .78rem;
}

.shift-week-config__summary span {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: .4rem .5rem;
  background: #ffffff08;
}

.shift-week-config__status {
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: .75rem;
}

@media (max-width: 768px) {
  .shift-week-config__days {
    grid-template-columns: repeat(4, minmax(48px, 1fr));
  }

  .shift-week-config__segment {
    grid-template-columns: 1fr 1fr;
  }

  .shift-week-config__remove {
    width: 100%;
  }
}
