/* Laundry additions. The compiled Tailwind file only contains classes used at build time,
   so colours and layouts introduced by the laundry module live here. */

/* Progress: 0–25 red, 26–50 orange, 51–75 yellow, 76–100 blue, collected green */
.lp-progress {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 5.5rem;
}
.lp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 3.1rem;
  padding: 0.125rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  white-space: nowrap;
}
.lp-tone-red { background: #fee2e2; color: #b91c1c; }
.lp-tone-orange { background: #ffedd5; color: #c2410c; }
.lp-tone-yellow { background: #fef08a; color: #713f12; }
.lp-tone-blue { background: #dbeafe; color: #1d4ed8; }
.lp-tone-green { background: #dcfce7; color: #15803d; }

.lp-bar {
  width: 100%;
  height: 0.375rem;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--color-fog);
}
.lp-bar-lg { height: 0.625rem; }
.lp-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.2s ease;
}
.lp-fill-red { background: #ef4444; }
.lp-fill-orange { background: #f97316; }
.lp-fill-yellow { background: #eab308; }
.lp-fill-blue { background: #2563eb; }
.lp-fill-green { background: #16a34a; }

/* Buttons */
.pos-btn-credit {
  background: #facc15 !important;
  color: #422006 !important;
  font-weight: 700 !important;
}
.pos-btn-credit:hover:not(:disabled) { background: #eab308 !important; }
.lp-btn-collect {
  background: #16a34a !important;
  color: #fff !important;
}
.lp-btn-collect:hover:not(:disabled) { background: #15803d !important; }
.lp-credit-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 0.45rem;
  border-radius: 0.375rem;
  background: #fef08a;
  color: #713f12;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25rem;
  vertical-align: middle;
}

/* POS: customer step */
.lp-step {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem;
}
@media (min-width: 1024px) {
  .lp-step {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem;
  }
}
.lp-customer-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.lp-customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-fog);
  border-radius: 0.75rem;
  background: #fff;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.lp-customer-row:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--color-leaf) 45%, transparent);
  background: var(--color-mist);
}
.lp-customer-row.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.lp-customer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* POS: service tiles */
.lp-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 5.5rem;
}
.lp-tile-media {
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* Progress dialog */
.lp-progress-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.lp-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.lp-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--color-mist);
  color: var(--color-ink);
  cursor: pointer;
}
.lp-step-btn:hover:not(:disabled) { background: var(--color-fog); }
.lp-step-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.lp-step-value {
  min-width: 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

/* Lists, filters, settings */
.lp-menu { width: 13rem; }
.lp-filter {
  width: auto !important;
  min-width: 10.5rem;
}
.lp-textarea {
  min-height: 6rem;
  resize: vertical;
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--color-fog);
  border-radius: 9999px;
  background: var(--color-mist);
  color: var(--color-ink-soft);
  font-size: 0.75rem;
  cursor: pointer;
}
.lp-chip:hover { border-color: var(--color-leaf); color: var(--color-ink); }
.lp-chip code {
  color: var(--color-leaf);
  font-weight: 600;
}
.lp-admin-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-fog);
  border-radius: 0.75rem;
}

.lp-ig {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  color: #0f172a;
  text-decoration: none;
  direction: ltr;
}
.lp-ig:hover { opacity: 0.82; }
.lp-ig-logo {
  display: inline-flex;
  width: 1em;
  height: 1em;
  flex: none;
}
.lp-ig-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
