/* Binergy - modules par profil de locataire (voir modules.js). */

.bm-hidden {
  display: none !important;
}

/* The side menu sizes an open section from its full item count; let it fit
   the items left visible instead. Collapsed sections keep their 0 height. */
tb-side-menu ul.tb-menu-toggle-list:not([style*="height: 0px"]) {
  height: auto !important;
}

.bm-no-notifications tb-notification-bell {
  display: none !important;
}

.binergy-modules-panel {
  margin-top: 16px;
  padding: 16px 24px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
  font-family: Roboto, "Helvetica Neue", sans-serif;
  color: rgba(0, 0, 0, .87);
}

.binergy-modules-panel .bm-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.binergy-modules-panel .bm-title {
  font-size: 15px;
  font-weight: 500;
}

.binergy-modules-panel .bm-count {
  font-size: 13px;
  color: rgba(0, 0, 0, .54);
}

.binergy-modules-panel .bm-hint {
  margin: 8px 0 12px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(0, 0, 0, .54);
}

.binergy-modules-panel .bm-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.binergy-modules-panel .bm-actions button {
  padding: 4px 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 4px;
  background: transparent;
  color: var(--tb-primary-500, #305680);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.binergy-modules-panel .bm-actions button:hover:not(:disabled) {
  background: rgba(0, 0, 0, .04);
}

.binergy-modules-panel .bm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 16px;
}

.binergy-modules-panel .bm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 14px;
  cursor: pointer;
}

.binergy-modules-panel .bm-item input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--tb-primary-500, #305680);
  cursor: pointer;
}

.binergy-modules-panel.bm-readonly .bm-actions {
  display: none;
}

.binergy-modules-panel.bm-readonly .bm-item,
.binergy-modules-panel.bm-readonly .bm-item input {
  cursor: default;
}

.binergy-modules-panel.bm-readonly .bm-item span {
  color: rgba(0, 0, 0, .6);
}
