/* 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;
}

.page-content { padding-top: 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; }
}
