/* assets/dps-repas.css */

.dps-repas-container {
  max-width: 1080px;
  margin: 1.75rem auto;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #0f172a;
}

.dps-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}

.dps-repas-container h3 {
  margin: 0 0 0.85rem;
  font-size: 1.14rem;
  line-height: 1.2;
  color: #0f172a;
}

.dps-filters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .9rem;
  align-items: end;
  margin-bottom: 1rem;
}

.dps-retrait-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: .9rem;
  align-items: end;
}

.dps-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}

.dps-field label {
  margin: 0;
  font-size: .86rem;
  font-weight: 600;
  color: #334155;
}

.dps-field input,
.dps-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: .52rem .68rem;
  box-sizing: border-box;
  background: #fff;
}

.dps-help {
  color: #64748b;
  font-size: .78rem;
  line-height: 1.25;
}

.dps-channels {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.dps-option-check {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  border-radius: 999px;
  padding: .5rem .8rem;
  font-size: .86rem;
  font-weight: 600;
  color: #1e293b;
}

.dps-option-check input[type="checkbox"] {
  margin: 0 !important;
}

.dps-meal-reminder {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}

.dps-meal-deadline {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: auto minmax(210px, 280px) auto;
  gap: .55rem;
  align-items: center;
  padding-top: .25rem;
}

.dps-meal-deadline label {
  font-size: .86rem;
  font-weight: 600;
  color: #334155;
}

.dps-meal-deadline input {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: .45rem .6rem;
}

#dps-meal-deadline-status {
  grid-column: 1 / -1;
}

.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid #cbd5e1;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: dps-spin 1s linear infinite;
}

.dps-repas-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.1rem;
  font-size: .92rem;
}

.dps-repas-container th,
.dps-repas-container td {
  border: 1px solid #e2e8f0;
  padding: .5rem .55rem;
  text-align: left;
}

.dps-repas-container th {
  background: #f8fafc;
}

.dps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}

.dps-repas-container .button {
  border: none;
  border-radius: 10px;
  background: #0b5fff;
  color: #fff;
  padding: .58rem .86rem;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}

.dps-repas-container .button:hover {
  background: #084dcc;
}

.spinner-inline {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid #cbd5e1;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: dps-spin 1s linear infinite;
}

@keyframes dps-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .dps-filters {
    grid-template-columns: 1fr;
  }

  .dps-retrait-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .dps-retrait-fields {
    grid-template-columns: 1fr;
  }

  .dps-meal-deadline {
    grid-template-columns: 1fr;
  }
}
