#wellness-advanced-upload-loading-indicator {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.75);
  color: #475569;
  font-weight: 600;
  cursor: wait;
}

#wellness-advanced-upload-loading-indicator::after {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

#wellness-advanced-upload-loading-indicator::before {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  margin-right: 6.25rem;
  border: 2px solid #cbd5e1;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: wellness-spin 0.8s linear infinite;
}

.htmx-request #wellness-advanced-upload-loading-indicator,
#wellness-advanced-upload-loading-indicator.htmx-request {
  display: flex;
}

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

#wellness-advanced-upload-main-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

#wellness-advanced-upload-main-form > p {
  margin: 0;
  padding: 0.875rem 1rem;
  background: #f5f8fc;
  border-left: 4px solid #4c7ef3;
  border-radius: 6px;
  color: #1f2937;
  line-height: 1.5;
}

.wellness-advanced-wellness-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #5e97bf;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  cursor: pointer;
}

.wellness-advanced-wellness-item.selected {
  background-color: #5e97bf;
  border: 1px solid #dbe3ee;
  cursor: inherit;
}

.wellness-advanced-wellness-item-amount.selected-menu-item,
.wellness-advanced-wellness-item-receipt-type.selected-menu-item,
.wellness-advanced-wellness-item-receipts.selected-menu-item
{
  background-color: #5e97bf;
  border-color: #000000;
  cursor: default;
}
.selected-menu-item .menu-title {
  color: #fff;
}

.wellness-advanced-wellness-item-edit-value {
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fcfdff;
  color: #475569;
  min-height: 3rem;
}

#wellness-advanced-upload-main-form > button:hover {
  background: #1d4ed8;
}
.wellness-amount-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 24rem;
}

.wellness-amount-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid #cbd5e1;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}
.wellness-amount-field input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  outline: none;
}

.wellness-amount-field button {
  padding: 0 1rem;
  border: 1px solid #2563eb;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.wellness-amount-field button:hover {
  background: #1d4ed8;
}
.menu-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  word-break: break-word;
}
.menu-value-text {
  min-width: 0;
  flex: 1;
}
.menu-value-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.menu-value-indicator--present {
  background: #166534;
  color: #fff;
  border-color: #86efac;
}

.menu-value-indicator--missing {
  background: #991b1b;
  color: #fff;
  border-color: #fca5a5;
}
.wellness-advanced-wellness-item-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.wellness-advanced-wellness-item-menu > div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
}
.menu-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}
.item-delete {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #fff;
  color: #b91c1c;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.item-delete:hover {
  background: #dc2626;
  border-color: #b91c1c;
  color: #fff;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.25);
}

.item-delete:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.25);
  outline-offset: 2px;
}

.item-delete:active {
  background: #991b1b;
  border-color: #7f1d1d;
  color: #fff;
}

.receipt-upload-dropzone {
  border: 2px dashed #9fb3c8;
  border-radius: 12px;
  background: #f8fbff;
  padding: 1rem;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.receipt-upload-dropzone:hover {
  border-color: #5b8def;
  background: #f3f8ff;
}

.receipt-upload-dropzone.is-dragover {
  border-color: #2563eb;
  background: #eaf2ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.receipt-upload-dropzone__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.receipt-upload-dropzone__content strong {
  font-size: 1rem;
  color: #1f2937;
}

.receipt-upload-dropzone__content p {
  margin: 0;
  color: #475569;
  line-height: 1.4;
}

.receipt-upload-dropzone__button {
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.receipt-upload-dropzone__button:hover {
  background: #1d4ed8;
}

.receipt-upload-dropzone__button:focus {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.receipt-upload-dropzone__file-list {
  width: 100%;
}

.receipt-upload-dropzone__file-list ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #334155;
}

.receipt-upload-dropzone__file-list li {
  margin: 0.2rem 0;
  word-break: break-word;
}

/* Optional: slightly nicer hidden file input fallback if shown by browser/devtools */
.receipt-upload-dropzone input[type="file"] {
  display: none;
}
.receipt-upload-dropzone__attach-button.is-disabled {
  background: #9ca3af;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.9;
}

.receipt-upload-dropzone__attach-button.is-disabled:hover {
  background: #9ca3af;
}

.receipt-upload-dropzone__attach-button.is-active {
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.receipt-upload-dropzone__attach-button.is-active:hover {
  background: #1d4ed8;
}
.wellness-receipt-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 5px 10px;
  border: 1px solid #9f1d1d;
  border-radius: 6px;
  background: linear-gradient(#e55353, #b72222);
  color: #ffffff;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.16);
}

.wellness-receipt-delete:hover {
  background: linear-gradient(#f06464, #a91f1f);
}

.wellness-receipt-delete:active {
  background: linear-gradient(#9f1d1d, #d13b3b);
  box-shadow:
    inset 1px 1px 3px rgba(0, 0, 0, 0.28);
}

.wellness-receipt-delete:focus-visible {
  outline: 2px solid #f6b3b3;
  outline-offset: 2px;
}

/* Optional: make the add button look consistent */
#wellness-advanced-upload-form-bottom-buttons-add {
  align-self: flex-start;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#wellness-advanced-upload-form-bottom-buttons-add.button-disabled {
  align-self: flex-start;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #555555;
  color: #fff;
  font-weight: 600;
  cursor: not-allowed;
}
#wellness-advanced-upload-form-bottom-buttons-cancel {
  margin-left: auto;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
