.cuida-shifts {
  border: 0;
  border-radius: 22px;
  width: min(900px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 0;
  color: #183e3a;
  background: #f8fbf9;
  box-shadow: 0 24px 90px #11393240;
  font: inherit;
}
.cuida-shifts::backdrop {
  background: #102e3970;
}
.shifts-header {
  position: sticky;
  top: 0;
  background: #f8fbf9;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #d9e6df;
}
.shifts-header h2 {
  margin: 0;
  font-size: 1.3rem;
}
.shifts-body {
  padding: 20px;
}
.shifts-body h3 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
}
.shifts-caption {
  color: #47655e;
  font-size: 0.87rem;
  line-height: 1.5;
}
.shifts-feedback {
  color: #843925;
  font-weight: 600;
  white-space: pre-wrap;
}
.shifts-card {
  border: 1px solid #d8e6df;
  border-radius: 16px;
  background: white;
  padding: 16px;
  margin: 12px 0;
}
.shifts-card p {
  margin: 7px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.shifts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cuida-shifts button {
  font: inherit;
  min-height: 44px;
  border: 1px solid #779b8a;
  border-radius: 12px;
  padding: 9px 13px;
  background: white;
  color: #244b3d;
  cursor: pointer;
}
.cuida-shifts button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.cuida-shifts button:focus-visible,
.cuida-shifts input:focus-visible,
.cuida-shifts select:focus-visible,
.cuida-shifts textarea:focus-visible {
  outline: 3px solid #b97931;
  outline-offset: 2px;
}
.cuida-shifts .shifts-primary {
  background: #245740;
  color: #fff;
  border-color: #245740;
}
.shifts-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #d8e6df;
  padding: 16px;
  border-radius: 16px;
}
.shifts-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
}
.shifts-field input,
.shifts-field select,
.shifts-field textarea {
  font: inherit;
  border: 1px solid #a7bbb0;
  border-radius: 9px;
  background: white;
  color: #183e3a;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px;
  width: 100%;
}
.shifts-wide {
  grid-column: 1/-1;
}
.shifts-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shifts-days label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
}
.shifts-note {
  background: #edf4ef;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}
.shifts-range {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}
.shifts-gap {
  border-left: 3px solid #b97931;
  padding-left: 10px;
}
.shifts-status {
  font-weight: 700;
}
.shifts-card[data-warning="true"] {
  border-color: #b97931;
}
@media (max-width: 600px) {
  .shifts-body {
    padding: 14px;
  }
  .shifts-header {
    padding: 14px;
  }
  .shifts-form {
    grid-template-columns: 1fr;
  }
  .shifts-actions button {
    flex: 1 1 auto;
  }
  .cuida-shifts {
    max-height: 94dvh;
  }
  .shifts-range .shifts-field {
    flex: 1 1 100%;
  }
}
