/* ==========================================
   PERIOD PICKER — Shared component
   Wzorzec: obrot/css/style.css (.period-item)
   Uzycie: erli/index.html, allegro/index.html
   ========================================== */

/* --- Kafelek okresu (jak .period-item w obrot) --- */
.billing-period-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.billing-period-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.12);
}

/* Naglowek kafelka ("Miesiąc") */
.period-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* --- Input okresu (natywny input[type=month]) --- */
.billing-period-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  color: #e5e7eb;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  /* Ukrywa domyslny systemowy styl w niektorych przeglądarkach */
  color-scheme: dark;
}

.billing-period-input:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.billing-period-input:focus {
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Chromium — ikona kalendarza */
.billing-period-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(3) hue-rotate(190deg);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.billing-period-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
