﻿/* Dropdown align all left */
.dropdown select {
    text-align: left; /* Align the selected option text to the left */
    text-align-last: left; /* Align the dropdown arrow to the left in some browsers */
}

/* Add pointer on hover */
.underpointer-on-hover:hover {
    cursor: pointer;
    text-decoration: underline;
}

tr.clickable-row {
    cursor: pointer;
}

tr.clickable-row:hover {
    background-color: rgba(var(--ct-tertiary-bg-rgb), 1) !important; /* of een andere subtiele highlight */
}

/* Add nowrap for KlantId and copy icon */
.no-wrap {
    white-space: nowrap !important;
}

.align-middle-center {
    vertical-align: middle;
    text-align: center;
}

td.check {
    vertical-align: middle; /* dit heb je al via 'align-middle', goed! */
}

td.check .form-check {
    display: flex;
    align-items: center;
    height: 100%;
}

td.check .form-check-input {
    margin-top: auto;
}

.card-body {
    overflow-y: auto;
}

/* Fix the top header row */
.sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 3;
    --ct-table-bg: var(--ct-secondary-bg);
    background-color: var(--ct-secondary-bg); /* Ensure proper background for sticky header */
}

.content-page {
    padding-bottom: 0px !important;
}

.full-height {
    height: calc(100vh - 210px);
}

.table-wrapper {
    position: relative;
}

.table-responsive {
    overflow-y: auto;
    position: relative;
    margin-bottom: 0;
}

.table-maxheight-with-pagination {
    max-height: calc(100vh - 358px);
}

.table-maxheight-no-pagination {
    max-height: calc(100vh - 330px);
}

@media screen and (max-width: 767px) and (orientation: landscape) {
    .table-responsive {
        max-height: none !important;
    }
}

.page-link {
    min-width: 38px;
    min-height: 38px;
}

@media (max-width: 767.98px) {
  .dataTables_paginate ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dataTables_paginate .page-link {
    min-width: 38px;
    white-space: nowrap;
  }
}

.top-defend.table {
    border-spacing: 0;
    border-collapse: collapse;
}

.top-defend.table th, .top-defend.table td {
    white-space: nowrap;
    min-width: 100px;
    vertical-align: middle;
}
.top-defend.table .check {
    min-width: 0;
    width: 32px;
}
.top-defend.table td > div.relation-id {
    display: flex;
    align-items: center;
}

.top-defend.table td > div.relation-id a.relid {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 24px; /* ruimte voor het icoon */
}

.top-defend.table td > div.relation-id a.relcopy {
    flex-shrink: 0;
    margin-left: -20px; /* optioneel: plaats dichterbij tekst */
}

.top-defend .form-check {
    margin-right: 0;
}

.top-defend.table td .copy {
    float: right;
}

.custom-dropdown-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.auto-width {
    white-space: nowrap !important;
    width: 1% !important;
    min-width: auto !important;
}

.header-blue {
    color: #727cf5;
}

.pagination {
    flex-direction: row !important;
    flex-wrap: wrap; /* optioneel, voorkomt overflow */
    justify-content: center; /* optioneel, houdt het gecentreerd */
}

ul.pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
}

.filter-scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: mandatory;
}

.filter-button-wrapper {
    flex: 0 0 auto;
    margin-right: 0.5rem;
    scroll-snap-align: start;
}