/* Compact sidebar */
.is-hidden {
  display: none !important;
}

.spacer-sm {
  height: 10px;
}

.width-full {
  width: 100%;
}

.mt-0 {
  margin-top: 0;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-12 {
  margin-bottom: 12px;
}

.integration-helper-text {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.compact-section-title {
  margin-bottom: 10px;
  font-size: 16px;
}

.compact-section-title-spaced {
  margin-top: 22px;
}

.sidebar {
  padding: 18px 14px;
}

.sidebar .brand {
  gap: 9px;
  margin-bottom: 10px;
  padding: 6px 6px 12px;
}

.sidebar .logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 13px;
}

.sidebar .brand strong {
  font-size: 14px;
}

.sidebar .brand span {
  font-size: 11px;
}

.sidebar-client-card {
  padding: 11px;
  margin-bottom: 14px;
  border-radius: 16px;
}

.sidebar-section-label,
.nav-heading {
  margin-bottom: 7px;
  font-size: 10px;
}

.sidebar-client-main {
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  gap: 8px;
}

.sidebar-client-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 13px;
}

.sidebar-client-main strong {
  font-size: 13px;
}

.sidebar-client-main small {
  margin-top: 2px;
  font-size: 11px;
}

.sidebar-client-arrow {
  font-size: 19px;
}

.sidebar-client-meta {
  gap: 6px;
  margin-top: 9px;
  font-size: 10px;
}

.sidebar-client-meta span {
  padding: 4px 7px;
}

.nav-group {
  gap: 4px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.nav button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.nav-icon {
  width: 20px;
  flex-basis: 20px;
  font-size: 15px;
}

.nav-new-badge {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e9edd5;
  color: #596600;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.sidebar-toggle {
  top: 12px;
  right: 8px;
  width: 26px;
  height: 26px;
  font-size: 17px;
}

body.sidebar-collapsed .sidebar {
  padding: 18px 10px;
}

body.sidebar-collapsed .nav button {
  width: 42px;
  height: 42px;
  min-height: 42px;
}

body.sidebar-collapsed .nav-new-badge {
  display: none;
}

/* Info utile FAQ */
#view-info .info-faq-card {
  max-width: 1180px;
}

#view-info .info-faq-heading {
  margin: 22px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #596600;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#view-info .info-faq-heading:first-of-type {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}

#view-info .faq-item {
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
}

#view-info .faq-item summary {
  font-size: 14px;
}

#view-info .faq-item p {
  font-size: 13px;
}

/* Global analysis period control */
body.view-clients-active .topbar-period-pill {
  display: flex !important;
}

.topbar-period-control {
  position: relative;
  min-width: 180px;
}

.topbar-period-control > select {
  width: 100%;
  min-height: 40px;
}

.topbar-custom-range {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(520px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid var(--line, #d9dec3);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(31, 41, 55, .14);
}

.topbar-custom-range:not(.active) {
  display: none !important;
}

.topbar-custom-range.active {
  display: block !important;
}

.topbar-custom-range .status {
  margin: 0 0 10px !important;
}

.topbar-custom-range .calendar-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.topbar-custom-range .calendar-presets button {
  width: auto;
  padding: 7px 9px !important;
  font-size: 11px !important;
}

.topbar-custom-range .date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 900px) {
  .topbar-period-control {
    width: 100%;
  }

  .topbar-custom-range {
    right: auto;
    left: 0;
  }
}
