/* Business panel styles — surface-specific only */

.phone-mockup {
  border: 8px solid #4A4036;
  border-radius: 36px;
  padding: 12px;
  background: #4A4036;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  margin: 0 auto;
  max-width: 360px;
}

.phone-screen {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  min-height: 560px;
  overflow-y: auto;
}

/* formBuilder editor overrides */
#fb-editor .frmb-control li {
  cursor: grab;
}

.table td,
.table th {
  vertical-align: middle;
}

/* ---- Minimalist consistency pass (webadmin design language) ---- */

:root {
  --b-accent: #1f58c7;
  --b-accent-dark: #1746a0;
  --b-line: #eef0f2;
  --b-ink: #2b2f38;
}

/* 75px clears the position:fixed #page-topbar (its rendered height);
   the extra 24px is the visual breathing room from the minimalist pass.
   A bare `padding-top: 24px` here puts the page header behind the topbar
   and steals pointer events from buttons rendered near the top. */
.page-content { padding-top: calc(75px + 24px); }
.page-title { font-weight: 600; letter-spacing: -0.01em; }

/* Calm, uniform cards */
.card {
  border: 1px solid var(--b-line);
  border-radius: 0.6rem;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.05), 0 1px 0 0 rgba(0, 0, 0, 0.02);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--b-line);
  font-weight: 600;
}

/* Buttons: single accent, consistent radius */
.btn { border-radius: 0.5rem; font-weight: 500; }
.btn-primary {
  background-color: var(--b-accent);
  border-color: var(--b-accent);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--b-accent-dark);
  border-color: var(--b-accent-dark);
}
.btn-outline-primary { color: var(--b-accent); border-color: var(--b-accent); }
.btn-outline-primary:hover { background-color: var(--b-accent); border-color: var(--b-accent); }

/* Tables: quieter, more whitespace */
.table > :not(caption) > * > * { padding: 0.85rem 0.9rem; }
.table thead th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #7d8287;
  border-bottom: 1px solid var(--b-line);
}
.table tbody tr { border-color: var(--b-line); }

/* Inputs */
.form-control, .form-select {
  border-radius: 0.5rem;
  border-color: var(--b-line);
}
.form-control:focus, .form-select:focus {
  border-color: var(--b-accent);
  box-shadow: 0 0 0 0.18rem rgba(31, 88, 199, 0.12);
}

/* Soft, readable badges */
.badge { font-weight: 600; letter-spacing: 0.02em; }

/* Service-area (geofence) map */
.geofence-map {
  height: 320px;
  width: 100%;
  border: 1px solid var(--b-line);
  border-radius: 0.5rem;
  background: #eef0f2;
}

/* Star Rating control preview in the formBuilder editor canvas */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  font-size: 1.6rem;
  line-height: 1;
}
.star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.star-rating label {
  color: #d9dde3;
  cursor: pointer;
  padding: 2px 3px;
  margin: 0;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f5b301;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ── Onboarding dashboard ────────────────────────────────────────────────── */
.onboard-list .onboard-item {
  border: 1px solid #e6e8eb;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.onboard-list .onboard-item:hover {
  transform: translateY(-1px);
  border-color: #c9d4e6;
  box-shadow: 0 4px 16px -8px rgba(31, 88, 199, 0.18);
}
.onboard-list .onboard-item--done {
  background: #f7fbf7;
  border-color: #d8ebd9;
}
.onboard-list .onboard-item--done .onboard-item__title {
  color: #4a4f55;
}

.onboard-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2f7;
  color: #6c757d;
  font-size: 1.2rem;
  border: 1px solid #dee3ea;
}
.onboard-check--done {
  background: #1f8a48;
  color: #fff;
  border-color: #1f8a48;
}

.onboard-item__title {
  font-size: 0.98rem;
}
@media (max-width: 575.98px) {
  .onboard-list .onboard-item .card-body {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .onboard-list .onboard-item .flex-shrink-0:last-child {
    width: 100%;
  }
  .onboard-list .onboard-item .flex-shrink-0:last-child .btn {
    width: 100%;
  }
}
