html {
  background: #09090c;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}

button, a, select, input, textarea {
  touch-action: manipulation;
}

.android-install-card {
  position: fixed;
  z-index: 2147483000;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(154, 92, 255, .45);
  border-radius: 16px;
  color: #fff;
  background: rgba(20, 16, 30, .96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  font: 500 14px/1.25 system-ui, sans-serif;
  backdrop-filter: blur(16px);
}

.android-install-card strong { display: block; margin-bottom: 3px; }
.android-install-card span { color: #b7afc5; font-size: 12px; }
.android-install-card button {
  margin-left: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 10px 13px;
  color: #fff;
  background: #9a5cff;
  font: 700 13px system-ui, sans-serif;
}
.android-install-card .android-install-close {
  padding: 5px;
  background: transparent;
  color: #aaa2b6;
  font-size: 18px;
}
@media (display-mode: standalone) {
  .android-install-card { display: none !important; }
}

/* Filtro mensal da aba Clientes */
.customer-month-filter {
  margin: 4px 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(154, 92, 255, .12), rgba(20, 17, 28, .82));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 10px 26px rgba(0, 0, 0, .12);
}
.customer-month-filter label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #aaa1b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.customer-month-filter select {
  min-width: 184px;
  max-width: 100%;
  padding: 10px 36px 10px 13px;
  color: #f8f1ff;
  border: 1px solid rgba(189, 92, 255, .45);
  border-radius: 11px;
  outline: none;
  background-color: #171020;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d6b6ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  font: 700 13px system-ui, sans-serif;
  box-shadow: 0 0 0 3px rgba(154, 92, 255, .06);
}
.customer-month-filter select:focus {
  border-color: #c477ff;
  box-shadow: 0 0 0 3px rgba(154, 92, 255, .18);
}
.customer-month-filter select option {
  color: #f8f1ff;
  background: #171020;
}
@media (max-width: 600px) {
  .customer-month-filter { margin: 3px 0 13px; padding: 12px; }
  .customer-month-filter label { display: block; }
  .customer-month-filter select { display: block; width: 100%; margin-top: 8px; }
}

/* Refinos do dashboard inicial */
.overview-hero-clean { position: relative; z-index: 1; }
.overview-metrics { position: relative; z-index: 1; gap: 12px; }
.overview-metrics .metric-card-premium { min-height: 164px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.overview-metrics .metric-card-premium:hover,
.overview-metrics .metric-card-premium:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .25); }
.overview-metrics .metric-card-hint { max-width: 92%; color: #aba3b6; line-height: 1.35; }
.overview-metrics .metric-card-premium strong { letter-spacing: -.035em; }
@media (max-width: 600px) {
  .overview-metrics { gap: 9px; }
  .overview-metrics .metric-card-premium { min-height: 146px; padding: 14px; }
  .overview-metrics .metric-card-premium > strong { font-size: clamp(19px, 6vw, 25px); }
  .overview-metrics .metric-card-hint { font-size: 11px; }
}
