/* PAGINATION CONTAINER */
.dataTables_wrapper .dataTables_paginate {
    /*margin-top: rem;*/
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

/* BASE PAGINATION BUTTON STYLE */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 0.8rem;
    color: #212529 !important;
    border: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color 0.2s ease;
    background-image: none !important; /* Kill DataTables gradients */
}

/* HOVER (EXCEPT CURRENT PAGE) */
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover {
    background-color: #e0f4f3 !important; /* light brand green tint */
    color: var(--bs-primary) !important;
}

/* CURRENT PAGE */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: var(--bs-primary) !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate a.paginate_button.current {
    color: var(--bs-white) !important;
}

/* FOCUS/ACTIVE STATES */
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* OVERRIDE DATATABLES GRADIENTS HARDER */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-image: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: var(--bs-light)!important;
}

.dataTables_info {
    font-size: 0.85rem;
    color: var(--bs-secondary);
}

/* VA Change: replace with .table-hover */
/*
#data-table.table.hover tbody tr:hover {
    background-color: rgba(0,152,145,0.5);
    cursor: pointer;
}
 */

/*
#data-table td {
    color: var(--bs-secondary);
}
 */

.text-table-cell {
    color: var(--bs-secondary);
    font-weight: 500;
}

/* Generic Table Styles */
/* VA Change: Make table styles generic enough */

table.dp-table {
    margin-bottom: 1.25rem;
    vertical-align: middle !important;
}

.table-responsive > div > div {
    margin-bottom: 1.25rem;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5rem;
    margin-right: 1px;
    border: 1px solid #aaa;
    border-radius: .25rem;
}

.dataTables_wrapper .dataTables_length select {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #aaa;
    border-radius: .25rem;
}

.dp-table th:first-child {
    border-top-left-radius: 8px!important;
}

.dp-table th:last-child {
    border-top-right-radius: 8px!important;
}

.dp-table tbody {
    font-size: 14px;
}

.dp-table th {
    position: sticky;
    top: 0;
    color: var(--bs-white)!important;
    background-color: var(--bs-primary)!important; /* keep consistent */
    z-index: 2; /* make sure it stays above table rows */
    padding: 10px!important;
    vertical-align: middle; /* Align headers vertically in the middle */
}

.dp-table.table-responsive {
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 75vh; /* Set max height to 75% of the viewport */
}

.dp-table td, .dp-table th {
    word-wrap: break-word;
    white-space: normal;
    max-width: 5rem; /* Set a reasonable max width for each column */
    font-size: 0.75em; /* Reduce font size for table headers and cells */
    padding-right: 0.5rem; /* Reduce padding on the right side */
    padding-left: 0.5rem; /* Add some padding to the left side for balance */
}

.dp-table th,
.dp-table td,
.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6!important;
}

#csv-table td.selected {
    background-color: rgba(var(--bs-primary-rgb), 0.25);
}

.table-responsive select {
    border-color: #ced4da!important;
    padding: 8px!important;
    font-size: 16px;
}
.table-responsive select {
    font-size: 13px;
}

.selected {
    background-color: rgba(var(--bs-primary-rgb), 0.25);
}

.dp-table td .btn {
    margin-top: .2rem;
    margin-bottom: .2rem;
}

.dp-table span.badge {
    font-size: .75rem;
}

.dp-table ul li,
.dp-table td.toc-table {
  font-size: .9rem;
}

.dp-table .badge {
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 0.65rem;
  }
  
  /* Mobile-responsive refinement */
  @media (max-width: 576px) {
    .badge {
      font-size: 0.85rem;
      padding: 0.4em 0.6em;
    }
  }


.dash-table-container .dash-cell div,
.dash-table-container .dash-cell div a,
.dash-table-container .dash-cell div p {
    font-family: var(--bs-body-font-family) !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: inherit;
    text-decoration: none; /* Optional: remove underline */
}


/* Hide duplicate company names */
.hide-duplicate {
    color: transparent !important;
}

/* Remove border for merged-like rows */
.company-cell.hide-duplicate {
    border-top: none !important;
}

/* Light gray background only for first occurrence */
.company-group-first {
    background-color: #f8f9fa !important;
    font-weight: 500;
}
