/* ——— Base ——— */
body {
  font-family: 'Nunito', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

/* Logo dans la navbar */
.brand-logo {
  max-height: 60px; /* au lieu de 40px */
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 992px) {
  .brand-logo {
    max-height: 50px; /* au lieu de 34px */
  }
}



/* Menu */
.navbar-nav .nav-link {
  padding: .5rem .75rem;
  font-weight: 600;
}
.navbar-nav .nav-link.active {
  color: #0d6efd;
}

/* Table et grilles */
.x-scroll.card {
  overflow-x: hidden;
  overflow-y: visible;
}

.grid {
  display: grid;
  width: 100%;
  align-items: start;
  grid-auto-rows: auto;
  grid-template-columns:
    110px              /* Date */
    240px              /* Société */
    110px              /* SIREN */
    minmax(0, 1fr)     /* Nature */
    minmax(0, 1.25fr); /* Activité */
  row-gap: 0; /* pas de gap auto, on gère manuellement */
}

.grid-header,
#gridBody {
  display: contents;
}

.grid-row {
  display: contents;
}

/* Séparateur de lignes */
.grid-sep {
  grid-column: 1 / -1;
  height: 1px;
  background: #f1f3f5;
}

/* Adapter la hauteur de la navbar pour suivre le logo */
.navbar {
  min-height: 60px; /* ou un peu plus selon ton logo */
}

.navbar-brand {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}


.cell {
  display: block;
  min-width: 0;
  text-align: left;
  align-self: start;
  justify-self: start;
  padding: .9rem 1rem;
  line-height: 1.5;
  border-bottom: 0 !important; /* désactivé */
  background: #fff;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.cell.wrap {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word;
}

.cell.nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell.th {
  font-weight: 700;
  cursor: pointer;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
}
.cell.th i {
  opacity: .6;
  margin-left: .25rem;
}

.empty {
  padding: 1rem;
  text-align: center;
  border: 1px dashed #ced4da;
  border-radius: .5rem;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 1rem;
}

.link-muted {
  color: #6c757d;
  text-decoration: none;
}
.link-muted:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.loading {
  display: flex;
  align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: 90px 200px 100px minmax(0,1fr) minmax(0,1.2fr);
  }
}
