/* Tema visual YOVOY */
:root {
  --yy-orange: #ff6b00;
  --yy-orange-dark: #e85d00;
  --yy-orange-soft: #fff1e8;
  --yy-ink: #17191c;
  --yy-muted: #69707d;
  --yy-bg: #f5f5f3;
  --yy-surface: #ffffff;
  --yy-line: #e7e7e3;
  --yy-success: #178a4b;
  --yy-warning: #a95d00;
  --yy-danger: #d92d3f;
  --yy-radius: 18px;
  --yy-shadow: 0 8px 28px rgba(23, 25, 28, .07);
}

html { background: var(--yy-bg); }

body {
  color: var(--yy-ink) !important;
  font-family: "Manrope", sans-serif !important;
  background: var(--yy-bg) !important;
}

body::before,
body::after,
.sidebar::after,
.metric::before,
.metric::after { display: none !important; }

.app-shell {
  grid-template-columns: 232px minmax(0, 1fr) !important;
  min-height: 100dvh;
}

.sidebar {
  width: auto !important;
  padding: 22px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #17191c !important;
  box-shadow: none !important;
}

.sidebar .brand-logo {
  width: 128px !important;
  height: 48px !important;
  margin: 2px auto 12px;
  object-fit: contain;
}

.nav-grid { gap: 5px !important; }

.nav-pill {
  min-height: 44px !important;
  padding: 10px 13px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #b9bec6 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-pill i {
  width: 20px;
  color: #8e949d !important;
  font-size: 16px;
}

.nav-pill:hover {
  color: #fff !important;
  background: #25282d !important;
  transform: translateX(2px);
}

.nav-pill.active {
  color: #fff !important;
  background: var(--yy-orange) !important;
  box-shadow: none !important;
}

.nav-pill.active i { color: #fff !important; }

.sidebar .btn-outline-light {
  min-height: 42px !important;
  border: 1px solid #3b3e44 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: #23262a !important;
}

.content {
  min-width: 0;
  padding: 18px 22px 48px !important;
  background: var(--yy-bg) !important;
}

.panel-actions {
  position: sticky !important;
  z-index: 30;
  top: 10px !important;
  width: max-content !important;
  max-width: 100%;
  margin-left: auto !important;
  padding: 5px !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 6px 22px rgba(23,25,28,.07) !important;
  backdrop-filter: blur(14px);
}

.panel-actions .btn {
  min-height: 36px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

.card-soft,
.modal-card,
.notify-card,
.app-preview-panel,
.glass {
  border: 1px solid var(--yy-line) !important;
  border-radius: var(--yy-radius) !important;
  background: var(--yy-surface) !important;
  box-shadow: var(--yy-shadow) !important;
  backdrop-filter: none !important;
}

.card-soft { padding: 18px !important; }

.card-soft h2,
.modal-card h2,
.login-card h2 {
  color: var(--yy-ink) !important;
  font-size: 20px !important;
  letter-spacing: -.035em !important;
}

.metric {
  position: relative;
  min-height: 88px !important;
  padding: 16px 17px !important;
  overflow: hidden;
  border: 1px solid var(--yy-line) !important;
  border-radius: 16px !important;
  color: var(--yy-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.metric::after {
  display: block !important;
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 4px;
  background: var(--yy-orange);
  content: "";
}

.metric.alt::after { background: #596273; }
.metric.warn::after { background: #f2a100; }
.metric.danger::after { background: var(--yy-danger); }

.metric.alt .label,
.metric.warn .label,
.metric.danger .label {
  color: rgba(255,255,255,.76) !important;
}

.metric.alt .value,
.metric.warn .value,
.metric.danger .value {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.12);
}

.metric .label {
  color: var(--yy-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
}

.metric .value {
  margin-top: 5px;
  color: var(--yy-ink) !important;
  font-size: 27px !important;
  line-height: 1 !important;
  letter-spacing: -.04em;
}

.btn {
  min-height: 40px;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.btn-brand {
  border-color: var(--yy-orange) !important;
  color: #fff !important;
  background: var(--yy-orange) !important;
}

.btn-brand:hover,
.btn-brand:focus {
  border-color: var(--yy-orange-dark) !important;
  background: var(--yy-orange-dark) !important;
}

.btn-light,
.btn-outline-dark,
.btn-outline-light {
  border-color: var(--yy-line) !important;
  color: var(--yy-ink) !important;
  background: #fff !important;
}

.btn-outline-danger {
  border-color: #ffd3d8 !important;
  color: var(--yy-danger) !important;
  background: #fff7f8 !important;
}

.form-control,
.form-select {
  min-height: 46px !important;
  border: 1px solid #dcdeda !important;
  border-radius: 12px !important;
  color: var(--yy-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--yy-orange) !important;
  box-shadow: 0 0 0 3px rgba(255,107,0,.12) !important;
}

.form-label {
  margin-bottom: 6px !important;
  color: #363a40 !important;
  font-size: 12px !important;
}

.admin-data-table-wrap {
  border: 1px solid var(--yy-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.admin-data-table { min-width: 900px !important; }

.admin-data-table th {
  padding: 11px 13px !important;
  border-bottom: 1px solid var(--yy-line) !important;
  color: #7a808a !important;
  background: #fafaf8 !important;
  font-size: 10px !important;
  letter-spacing: .06em;
}

.admin-data-table td {
  padding: 12px 13px !important;
  border-bottom-color: #eeeeeb !important;
  color: #30343a !important;
  font-size: 12px !important;
}

.admin-data-table tr:hover td { background: #fffaf6 !important; }

.table-actions .btn,
.driver-actions .btn {
  min-height: 32px !important;
  padding: 5px 9px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
}

.status-badge,
.driver-status-pill,
.table-discount {
  border: 0 !important;
  border-radius: 999px !important;
  padding: 6px 9px !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.status-approved,
.driver-status-online { color: var(--yy-success) !important; background: #eaf8f0 !important; }
.status-pending,
.driver-status-busy { color: var(--yy-warning) !important; background: #fff4dc !important; }
.status-rejected,
.driver-status-offline { color: var(--yy-danger) !important; background: #fff0f2 !important; }

.empty {
  padding: 24px !important;
  border: 1px dashed #d7d9d5 !important;
  border-radius: 14px !important;
  color: var(--yy-muted) !important;
  background: #fafaf8 !important;
}

.login-wrap { background: var(--yy-bg) !important; }
.login-card { border-radius: 24px !important; overflow: hidden; }
.login-side { background: #17191c !important; }
.captcha-box { border-radius: 12px !important; background: var(--yy-orange-soft) !important; }

/* Indicadores premium: una superficie uniforme y un acento distinto por dato. */
#overview-box .metric,
#overview-box .metric.alt,
#overview-box .metric.warn,
#overview-box .metric.danger {
  min-height: 88px !important;
  border: 1px solid #e3e5e8 !important;
  border-radius: 17px !important;
  color: #17191c !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(23, 25, 28, .055) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#overview-box .metric:hover {
  transform: translateY(-2px);
  border-color: #d3d6da !important;
  box-shadow: 0 14px 32px rgba(23, 25, 28, .085) !important;
}

#overview-box .metric .label,
#overview-box .metric.alt .label,
#overview-box .metric.warn .label,
#overview-box .metric.danger .label {
  color: #707782 !important;
}

#overview-box .metric .value,
#overview-box .metric.alt .value,
#overview-box .metric.warn .value,
#overview-box .metric.danger .value {
  color: #17191c !important;
  text-shadow: none !important;
}

#overview-box .metric::after {
  display: block !important;
  inset: 11px auto 11px 0 !important;
  width: 4px !important;
  border-radius: 0 8px 8px 0 !important;
  background: #2563eb !important;
}

#overview-box > :nth-child(1) .metric::after { background: #2563eb !important; }
#overview-box > :nth-child(2) .metric::after { background: #172554 !important; }
#overview-box > :nth-child(3) .metric::after { background: #0891b2 !important; }
#overview-box > :nth-child(4) .metric::after { background: #f59e0b !important; }
#overview-box > :nth-child(5) .metric::after { background: #16a34a !important; }
#overview-box > :nth-child(6) .metric::after { background: #dc2626 !important; }
#overview-box > :nth-child(7) .metric::after { background: #7c3aed !important; }
#overview-box > :nth-child(8) .metric::after { background: #0d9488 !important; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr !important; }
  .sidebar {
    position: sticky !important;
    z-index: 50;
    top: 0;
    height: auto !important;
    padding: 10px 12px !important;
    border-radius: 0 !important;
  }
  .sidebar > .d-flex:first-child { display: none !important; }
  .nav-grid {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-grid::-webkit-scrollbar { display: none; }
  .nav-pill {
    flex: 0 0 auto;
    min-height: 40px !important;
    padding: 9px 12px !important;
  }
  .sidebar > .mt-4 { display: none; }
  .content { padding: 12px 10px 36px !important; }
  .panel-actions { top: 58px !important; }
}

@media (max-width: 560px) {
  .panel-actions .btn { font-size: 0 !important; }
  .panel-actions .btn i { margin: 0 !important; font-size: 15px; }
  .card-soft { padding: 14px !important; }
  .metric { min-height: 76px !important; padding: 13px 14px !important; }
  .metric .value { font-size: 23px !important; }
}

/* Pricing by licensed city */
.pricing-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 4px solid var(--yy-orange) !important; }
.pricing-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--yy-orange-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.pricing-heading-icon { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border-radius: 16px; color: #fff; background: var(--yy-orange); font-size: 24px; }
.pricing-live-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid #ffd7bc; border-radius: 14px; background: #fff8f3; }
.pricing-live-preview div { min-width: 0; }
.pricing-live-preview span, .pricing-live-preview strong { display: block; }
.pricing-live-preview span { color: var(--yy-muted); font-size: 9px; font-weight: 800; }
.pricing-live-preview strong { margin-top: 3px; color: var(--yy-ink); font-size: 18px; }
.pricing-table small { display: block; margin-top: 3px; color: var(--yy-muted); }
@media (max-width: 560px) { .pricing-heading-icon { display: none; } .pricing-live-preview { grid-template-columns: 1fr; } }

/* Google Places location picker */
.google-import-location-search .input-group-text {
  border-color: var(--yy-line) !important;
  color: var(--yy-muted);
  background: #fff;
}

.google-import-map-shell {
  overflow: hidden;
  border: 1px solid var(--yy-line);
  border-radius: 18px;
  background: #f7f7f5;
}

.google-import-map {
  position: relative;
  width: 100%;
  height: 310px;
  background: #eef1f4;
}

.business-location-map-shell {
  border-color: rgba(255, 101, 0, .22);
  box-shadow: 0 14px 34px rgba(17, 24, 39, .08);
}

.business-location-map {
  height: 290px;
}

.business-location-search .input-group-text {
  color: var(--yy-orange);
  background: #fff8f3;
  border-color: var(--yy-line);
}

.google-import-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--yy-muted);
  font-size: 13px;
  font-weight: 800;
}

.google-import-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
}

.google-import-location-status {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.google-import-location-status > div {
  min-width: 0;
}

.google-import-location-status strong,
.google-import-location-status span {
  display: block;
}

.google-import-location-status strong {
  color: var(--yy-ink);
  font-size: 12px;
}

.google-import-location-status > div > span {
  overflow: hidden;
  max-width: 470px;
  color: var(--yy-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-import-location-icon {
  display: grid !important;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--yy-orange);
}

@media (max-width: 560px) {
  .google-import-location-search {
    display: grid;
    grid-template-columns: 42px 1fr;
  }
  .google-import-location-search .btn {
    grid-column: 1 / -1;
    margin-top: 8px !important;
    border-radius: 12px !important;
  }
  .google-import-map { height: 250px; }
  .business-location-map { height: 230px; }
  .business-location-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .business-location-search .btn {
    grid-column: 1 / -1;
    border-radius: 12px !important;
    margin-top: 8px;
  }
  .google-import-map-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .google-import-location-status > div > span { max-width: 230px; }
}
.business-primary-photo-editor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 18px;
  background: #f7f8fa;
}

.business-primary-photo-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 100px;
  overflow: hidden;
  border-radius: 14px;
  color: #ff6500;
  background: linear-gradient(145deg, #fff0e7, #ffe0cc);
  font-size: 28px;
}

.business-primary-photo-preview img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-primary-photo-preview.has-image img { display: block; }

@media (max-width: 575px) {
  .business-primary-photo-editor { grid-template-columns: 1fr; }
  .business-primary-photo-preview { width: 100%; height: 150px; }
}
