@import url("variables.ba7d9d3a96a8.css");

/*
==========================================================================
   Tables
========================================================================== 
*/
.table-padded td, .table-padded th {
    padding-left: 0.5rem !important; /* Increase left padding */
    padding-right: 0.5rem !important; /* Increase right padding */
}
.border-end, .border-top, .border-bottom  {
    border-color: var(--primary-300) !important;
}

/* Override Bootstrap's table hover styles with higher specificity */
.table-hover > tbody > tr:hover > *,
table.table-hover > tbody > tr:hover,
.table-hover tbody tr:hover {
    background-color: var(--primary-50) !important;
    --bs-table-accent-bg: var(--primary-50) !important;
    color: var(--bs-table-hover-color, inherit) !important;
}


.table-borderless td {
    border-bottom: none !important;
}



table td p, table th p {
    margin: 0;
    padding: 0;
}
table td ul, table td ol {
    margin-bottom: 0;
    margin-left: 1rem;
    padding: 0;
}

table, .table {
    font-size: 0.875rem !important; /* fs-7 */
}

table.fs-8 {
    font-size: 0.75rem !important;
}

table.fs-9 {
    font-size: 0.625rem !important;
}


/*
==========================================================================
   DATATABLES
========================================================================== 
*/


.dt-container {
    font-size: 0.875rem; /* Slightly smaller than default 1rem */
}


/* Disable hover on DataTable child rows - comprehensive targeting */

.table-hover > tbody > tr[data-dt-row]:hover > *,
table.table-hover > tbody > tr[data-dt-row]:hover,
.table-hover tbody tr[data-dt-row]:hover,
.table-hover > tbody > tr.child:hover > *,
table.table-hover > tbody > tr.child:hover,
.table-hover tbody tr.child:hover,
.table-hover > tbody > tr.dt-hasChild + tr:hover > *,
table.table-hover > tbody > tr.dt-hasChild + tr:hover,
.table-hover tbody tr.dt-hasChild + tr:hover {
    background-color: transparent !important;
    --bs-table-accent-bg: transparent !important;
    color: inherit !important;
}

table.pointer tbody tr:not(.dtrg-group) td:not(:first-child) {
    cursor: pointer;
}

/* Center DataTable control-column buttons */
.dtcc-center .dtcc {
    justify-content: center;
    align-items: center;
}

/* Fix clear button position in searchDropdown */
.dtcc-content.dtcc-search.dtcc-searchText .dtcc-search-clear {
    position: absolute;
    right: 0.5rem;
    top: 75%;
}

/* Active row style */
.row-active {
    background-color: var(--primary-50) !important;
}

/* Hide DataTable bottomStart (pageLength and info) below md breakpoint */
@media (max-width: 767px) {
    .dt-layout-cell.dt-layout-start {
        display: none !important;
    }
}
/* Early hide for lg and below for tables with class .hide-layout-lg */
@media (max-width: 991px) {
    .hide-layout-lg  .dt-layout-cell.dt-layout-start {
        display: none !important;
    }
}

/* Early hide for lg and below for tables with class .hide-layout-xl */
@media (max-width: 1199px) {
    .hide-layout-xl  .dt-layout-cell.dt-layout-start {
        display: none !important;
    }
}


/* DataTables control label */
td .dt-control-label{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.dtcc-button .dt-control-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}
/* Fix clear button position in searchDropdown */
.dtcc-content.dtcc-search.dtcc-searchText .dtcc-search-clear {
    position: absolute;
    right: 0.5rem;
    top: 62%;
}



/*
==========================================================================
   GRADEBOOK TABLE
========================================================================== 
*/


table.gradebook tbody tr:not(.dtrg-group) td:not(.noedit) {
    cursor: pointer;
}

/* Disable pointer events on fixed-start cells */
/* table.gradebook td.noedit {
    pointer-events: none;
} */

table.gradebook td.wrap {
    white-space: normal !important; 
    word-wrap: break-word;  
}

/* Individual column header style */
table.gradebook .group-header {
    border-left: 12px solid white;
    border-right: 12px solid white;
    border-bottom: 2px solid green;
}

table.gradebook .no-border {
    border-top: 2px solid white;
}

table.gradebook th.group-header {
    border-bottom: 3px solid var(--primary-400);
}
table.gradebook th.no-group-header {
    border-bottom: none;
}

table td.edit {
    cursor: pointer;
}
