/* ============================================
   TYPO3 tt_board — Bootstrap Table Enforcement
   Overrides inline styles using !important
   ============================================ */

/* Global Type */
.tx-ttboard-tree-rows,
.tx-ttboard-tree-rows td,
.tx-ttboard-catlistheader-forum,
.tx-ttboard-list-row-forum,
.tx-ttboard-list-cat-title-forum {
  font-family: var(--bs-body-font-family) !important;
  font-size: var(--bs-body-font-size) !important;
  color: var(--bs-body-color) !important;
}

/* Main Table Styling — Like .table.table-hover.table-striped */
.tx-ttboard-overview {
  width: 100% !important;
  border-collapse: collapse !important;
}

/* Header cells — Like .table-dark */
.tx-ttboard-list-cell-header-forum,
.tx-ttboard-tree-cell-header-forum,
.tx-ttboard-catlistheader-forum,
.tx-ttboard-catlistheader-forum-single {
  background-color: var(--bs-dark) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* Table borders + spacing */
.tx-ttboard-overview td,
.tx-ttboard-overview th {
  border-top: 1px solid var(--bs-border-color) !important;
  padding: .75rem !important;
  vertical-align: middle !important;
}

/* Striped rows */
.tx-ttboard-overview tr:nth-child(even) {
  background-color: var(--bs-table-striped-bg, #f8f9fa) !important;
}

/* Hover rows */
.tx-ttboard-overview tr:hover {
  background-color: var(--bs-table-hover-bg, #e9ecef) !important;
}

/* Row titles like Bootstrap primary links */
.tx-ttboard-list-row-forum {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--bs-primary) !important;
}

/* Center + nowrap utility */
.tx-ttboard-list-cell-replies,
.tx-ttboard-list-cell-discussions,
.tx-ttboard-list-cell-last {
  text-align: center !important;
  white-space: nowrap !important;
}

/* Links — universally Bootstrap-like */
.tx-ttboard-overview a,
.tx-ttboard-tree-rows a,
.link-back-to-forum a,
.link-to-forum-message a {
  color: var(--bs-link-color) !important;
  text-decoration: underline !important;
}

.tx-ttboard-overview a:hover,
.tx-ttboard-tree-rows a:hover,
.link-back-to-forum a:hover,
.link-to-forum-message a:hover {
  color: var(--bs-link-hover-color) !important;
  text-decoration: none !important;
}

/* Force Bootstrap border card style */
.tx-ttboard-border-forum {
  border: 1px solid var(--bs-border-color) !important;
  padding: .75rem !important;
  border-radius: var(--bs-border-radius) !important;
}

/* Indentation utility */
.tx-ttboard-tree-abstand {
  padding-left: 1.5rem !important;
}

/* Search button override — Bootstrap Secondary */
#boardSearchSubmitId {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
  border-radius: var(--bs-border-radius) !important;
  color: #fff !important;
  font-size: .875rem !important;
  padding: .25rem .5rem !important;
  cursor: pointer !important;
}

#boardSearchSubmitId:hover {
  background-color: var(--bs-secondary-hover-bg, #5c636a) !important;
}
