/*
 * WDM Report Tabs - Styles
 *
 * @package WDM_Report_Tabs
 */

 .wdm-tabs-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}
.wdm-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    background: none;
    gap: 8px;
    padding: 0;
    margin: 0 0 0 24px;
    z-index: 2;
}
.wdm-tabs-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
}
.wdm-tab {
    border-radius: 8px 8px 0 0;
    background: #f0f2f3;
    border: 0px solid #e5e9f2;
    border-bottom: none;
    margin: 0;
    min-width: 120px;
    text-align: center;
    color: #222;
    font-weight: 700 !important;
    position: relative;
    top: 1px;
    z-index: 3;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.wdm-tab.active, .wdm-tab:focus {
    background: #205493 !important;
    color: #fff !important;
    font-weight: 600;
    border-bottom: 1px solid #205493;
}
.wdm-tab:not(.active):hover {
    background: #e5e9f2;
    color: #205493;
}
.wdm-tabs-content {
    padding: 0;
    margin: 0;
}
.wdm-report-card {
    background: #fff;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    z-index: 1;
}
.wdm-report-table-wrap {
    overflow-x: auto;
}
.wdm-report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
    background: transparent;
    border: none;
}
.wdm-report-table th,
.wdm-report-table td {
    padding: 16px 12px;
    text-align: center;
    font-size: 1em;
    border: none !important;
    background: transparent;
}
.wdm-report-table th {
    font-weight: 600;
    color: #222;
    background: #fff;
    border: none !important;
    border-bottom: 2px solid #e5e9f2 !important;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.wdm-report-table th.sortable {
    cursor: pointer;
}

.wdm-report-table th.sortable:hover {
    background-color: #f8f9fa;
}

.wdm-report-table th.sortable::after {
    content: '▲';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 10px;
    opacity: 0.5;
}

.wdm-report-table th.sortable::before {
    content: '▼';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 10px;
    opacity: 0.5;
    margin-top: 8px;
}

.wdm-report-table th.sorting_asc::after {
    color: #205493;
    opacity: 1;
}

.wdm-report-table th.sorting_desc::after {
    content: '▼';
    color: #205493;
    opacity: 1;
}

.wdm-report-table th.sorting_asc::before {
    display: none;
}

.wdm-report-table th.sorting_desc::before {
    display: none;
}

.wdm-report-table th.no-sort {
    cursor: default;
}

.wdm-report-table th.no-sort::before,
.wdm-report-table th.no-sort::after {
    display: none;
}
.wdm-report-table th:first-child,
.wdm-report-table td:first-child {
    text-align: left;
}
.wdm-report-table tr:not(:last-child) td {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.wdm-report-table td {
    vertical-align: middle;
    color: #222;
}

/* --- Toolbar --- */
.wdm-report-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.wdm-report-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.wdm-sort-label {
    font-size: 0.95em;
}
.wdm-sort-by {
    margin-left: 16px;
    margin-right: 8px;
    height: 38px;
    font-size: 1em;
    padding: 7px 36px 7px 12px;
    border-radius: 8px;
    border: 1px solid #e5e9f2;
    background: #f4f6f8 url('data:image/svg+xml;utf8,<svg fill="none" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M6 8L10 12L14 8" stroke="%23222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 12px center/18px 18px;
    color: #222;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    transition: border 0.2s, background 0.2s;
    margin-bottom: 5px;
}

.wdm-sort-by-date-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.wdm-sort-by-date {
    height: 38px;
    font-size: 1em;
    padding: 7px 36px 7px 12px;
    border-radius: 8px;
    border: 1px solid #e5e9f2;
    background: #f4f6f8 url('data:image/svg+xml;utf8,<svg fill="none" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M6 8L10 12L14 8" stroke="%23222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 12px center/18px 18px;
    color: #222;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    transition: border 0.2s, background 0.2s;
    min-width: 140px;
}

.wdm-sort-by-date:focus {
    border-color: #205493;
    outline: none;
}
.wdm-sort-by:focus {
    border-color: #205493;
    outline: none;
}
.wdm-csv-btn {
    background: #f4f6f8;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, color 0.2s;
    color: #222;
    font-weight: 500;
}
.wdm-csv-btn:hover {
    background: #205493;
    color: #fff;
    border-color: #205493;
}
.wdm-course-filter {
    min-width: 300px;
    width: 300px;
    font-size: 1.08em;
    border-radius: 8px;
    border: 1px solid #205493;
    background: #f4f6f8;
    color: #205493;
    padding: 7px 12px;
    transition: border 0.2s, box-shadow 0.2s;
    height: 40px;
    box-sizing: border-box;
}
.wdm-student-filter {
    min-width: 200px;
    width: 200px;
    font-size: 1.08em;
    border-radius: 8px;
    border: 1px solid #205493;
    background: #f4f6f8;
    color: #205493;
    padding: 7px 12px;
    transition: border 0.2s, box-shadow 0.2s;
    height: 40px;
    box-sizing: border-box;
    margin-right: 8px;
}
.select2-container--default .select2-selection--single {
    min-width: 300px;
    width: 300px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #205493;
    background: #f4f6f8;
    color: #205493;
    font-size: 17px;
    display: flex;
    align-items: center;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover {
    border-color: #163a6b;
    box-shadow: 0 0 0 2px #20549322;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #205493;
    line-height: 40px;
    padding-left: 12px;
    height: 40px;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}
.select2-dropdown {
    border-radius: 8px;
    border: 1px solid #205493;
    font-size: 17px;
}
.select2-results__option--highlighted {
    background: #205493 !important;
    color: #fff !important;
}
.select2-results__option {
    padding: 10px 16px;
}

body .select2-container .select2-dropdown .select2-results__option{
	font-size: 17px !important;
}

/* --- Progress Bar --- */
.wdm-bar-wrap {
    width: 80px;
    height: 6px;
    background: #e5e9f2;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
    vertical-align: middle;
}
.wdm-bar {
    height: 100%;
    background: #205493;
    border-radius: 4px;
    transition: width 0.3s;
}
.wdm-bar-label {
    font-size: 0.98em;
    color: #222;
    margin-left: 8px;
    vertical-align: middle;
    
}
.wdm-bar-empty {
    background: #f4f6f8 !important;
}

/* --- Responsive Table --- */
@media (max-width: 900px) {
    .wdm-report-table {
        min-width: 600px;
    }
}
@media (max-width: 600px) {
    .wdm-tabs-nav {
        flex-wrap: wrap;
        gap: 4px;
        padding-bottom: 0;
        justify-content: space-evenly;
        margin-left: 8px;
    }
    .wdm-tabs-actions {
        margin-left: 0;
        /*margin-top: 8px;*/
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Enhanced mobile styles for checkboxes */
    .wdm-checkbox-overview,
    .wdm-checkbox-quizzes,
    .wdm-checkbox-assignments {
        width: 100%;
        /*margin-bottom: 8px;*/
        padding: 8px 12px;
        background: #f8f9fa;
        border-radius: 6px;
        border: 1px solid #e5e9f2;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    
    .wdm-checkbox-overview:hover,
    .wdm-checkbox-quizzes:hover,
    .wdm-checkbox-assignments:hover {
        background: #e5e9f2;
        border-color: #205493;
    }
    
    .wdm-checkbox-overview input,
    .wdm-checkbox-quizzes input,
    .wdm-checkbox-assignments input {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        transform: scale(1.2);
    }
    
    .wdm-checkbox-overview .wdm-checkbox-text,
    .wdm-checkbox-quizzes .wdm-checkbox-text,
    .wdm-checkbox-assignments .wdm-checkbox-text {
        font-size: 0.95em;
        font-weight: 500;
        color: #222;
        line-height: 1.3;
    }
    .wdm-sort-by-date-wrap {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 8px;
    }
    .wdm-tab {
        min-width: 90px;
        font-size: 0.95em;
        padding: 10px 16px;
    }
    .wdm-report-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .wdm-filter-options {
        justify-content: center;
        margin-top: 8px;
    }
    .wdm-course-filter {
        width: calc(100% - 90px);
        min-width: 0;
        margin-bottom: 0;
        margin-right: 12px;
        flex: 1;
    }
    
    /* Mobile Select2 container width override */
    .select2-container--default .select2-selection--single {
        min-width: 0 !important;
        width: auto !important;
    }
    .wdm-report-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    .wdm-report-table {
        min-width: 400px;
        font-size: 0.95em;
    }
    .wdm-report-table th,
    .wdm-report-table td {
        padding: 10px 6px;
        font-size: 0.95em;
    }
    .wdm-bar-wrap {
        width: 50px;
        height: 5px;
        border-radius: 4px;
        background: #e5e9f2;
        margin-bottom: 4px;
        display: inline-block;
        vertical-align: middle;
        position: static;
        padding: 0;
    }
    .wdm-bar {
        display: block;
        height: 100%;
        background: #205493;
        border-radius: 4px;
        transition: width 0.3s;
    }
    .wdm-bar-label {
        position: static;
        font-size: 0.92em;
        font-weight: 400;
        color: #222;
        margin-left: 4px;
        text-align: left;
        line-height: 1.2;
        letter-spacing: 0;
    }
    .wdm-csv-btn {
        width: 100%;
        font-size: 0.98em;
        padding: 8px 0;
        margin-bottom: 6px;
    }
    .wdm-pagination-wrap {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .dataTables_paginate {
        flex-wrap: wrap;
        gap: 4px;
        font-size: 0.98em;
    }
    .wdm-tab-panel {
        padding: 10px 2px;
    }
    .wdm-csv-btn-tabs {
        margin-left: 0;
        /*margin-top: 8px;*/
        width: 100%;
    }
    .select2-container--default {
        width: calc(100% - 90px) !important;
        min-width: 0 !important;
        max-width: calc(100% - 90px) !important;
    }
}
@media (max-width: 400px) {
    .wdm-tab {
        min-width: 70px;
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .wdm-bar-wrap {
        width: 35px;
        height: 4px;
    }
    .wdm-bar-label {
        font-size: 0.88em;
    }
    .wdm-csv-btn {
        font-size: 0.95em;
        padding: 6px 0;
    }
    
    /* Extra small screen checkbox optimizations */
    .wdm-checkbox-overview,
    .wdm-checkbox-quizzes,
    .wdm-checkbox-assignments {
        padding: 6px 8px;
        margin-bottom: 6px;
        border-radius: 4px;
    }
    
    .wdm-checkbox-overview input,
    .wdm-checkbox-quizzes input,
    .wdm-checkbox-assignments input {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        transform: scale(1.1);
    }
    
    .wdm-checkbox-overview .wdm-checkbox-text,
    .wdm-checkbox-quizzes .wdm-checkbox-text,
    .wdm-checkbox-assignments .wdm-checkbox-text {
        font-size: 0.9em;
        line-height: 1.2;
    }
    
    /* Improve touch targets for mobile */
    .wdm-tabs-actions {
        gap: 6px;
        /*margin-top: 6px;*/
    }
}

.wdm-tab-panel {
    display: block;
    width: 100%;
    min-height: 120px;
    background: #fff;
    border-radius: 12px;
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #e5e9f2;
}

.wdm-tab-panel:not(.active) {
    display: none;
}

/* --- DataTables Pagination Centering --- */
.wdm-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 18px auto 0 auto;
}
.dataTables_paginate {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 1em;
    justify-content: center;
    width: 100%;
}
.dataTables_paginate .paginate_button {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 10px;
    color: #bbb;
    cursor: pointer;
    margin: 0 2px;
    transition: color 0.2s;
    font-weight: normal;
    font-size: 20px;
    min-width: 28px;
    min-height: 28px;
    line-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dataTables_paginate .paginate_button.current {
    color: #111 !important;
    font-weight: bold;
    font-size: 22px;
    pointer-events: none;
}
.dataTables_paginate .paginate_button:hover:not(.disabled) {
    color: #205493 !important;
    background: none;
    border: none;
    font-weight: 500 !important;
}
.dataTables_paginate .paginate_button.disabled {
    color: #e0e0e0 !important;
    background: none;
    border: none;
    cursor: not-allowed;
}
.dataTables_paginate .paginate_button.previous:before {
    content: '\2039'; /* Unicode chevron left */
    font-size: 28px;
    font-weight: bold;
    color: inherit;
    display: inline-block;
    vertical-align: middle;
}
.dataTables_paginate .paginate_button.next:before {
    content: '\203A'; /* Unicode chevron right */
    font-size: 28px;
    font-weight: bold;
    color: inherit;
    display: inline-block;
    vertical-align: middle;
}
.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    font-size: 0;
    padding: 0 12px;
}
.dataTables_paginate .paginate_button.previous.current,
.dataTables_paginate .paginate_button.next.current {
    font-size: 0;
    color: #111 !important;
}
.dataTables_paginate .paginate_button.previous:not(.disabled):before,
.dataTables_paginate .paginate_button.next:not(.disabled):before {
    color: #111;
}
.dataTables_paginate .paginate_button.previous.disabled:before,
.dataTables_paginate .paginate_button.next.disabled:before {
    color: #e0e0e0;
}

.wdm-info-icon {
    display: inline-block;
    margin-left: 4px;
    color: #205493;
    font-size: 1em;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.2s;
    position: relative;
}
.wdm-info-icon:hover {
    color: #163a6b;
}

.wdm-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}
.wdm-loader::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #205493;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: wdm-spin 1s linear infinite;
}
@keyframes wdm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.wdm-report-card { position: relative; }

.wdm-clear-btn {
    margin-left: 10px;
    padding: 4px 18px;
    font-size: 17px;
    border-radius: 8px;
    border: 1px solid #205493;
    background: #f4f6f8;
    color: #205493;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, color 0.2s;
      
    box-sizing: border-box;
    font-weight: 500;
}
    
/* Mobile styles for clear button */
@media (max-width: 600px) {
    .wdm-clear-btn {
        /*margin-left: 0;*/
        padding: 0px 10px;
        font-size: 0.95em;
        width: 80px;
        flex-shrink: 0;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
        
    /* Make course filter container use flexbox */
    .wdm-report-toolbar > div:first-child {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        flex-wrap: nowrap;
    }
}
.wdm-clear-btn:hover {
    background: #205493;
    color: #fff;
    border-color: #205493;
}

/* --- Filter Options --- */
.wdm-filter-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wdm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
    color: #222;
    font-weight: 500;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Checkbox visibility classes for tab-specific display */
.wdm-checkbox-overview,
.wdm-checkbox-quizzes,
.wdm-checkbox-assignments {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wdm-checkbox-overview:not([style*="display: none"]),
.wdm-checkbox-quizzes:not([style*="display: none"]),
.wdm-checkbox-assignments:not([style*="display: none"]) {
    opacity: 1;
    visibility: visible;
}

.wdm-hide-incomplete {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #205493;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.wdm-hide-incomplete:hover {
    transform: scale(1.2);
}

.wdm-hide-incomplete:focus {
    outline: 2px solid #205493;
    outline-offset: 2px;
}

.wdm-hide-not-started {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #205493;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.wdm-hide-not-started:hover {
    transform: scale(1.2);
}

.wdm-hide-not-started:focus {
    outline: 2px solid #205493;
    outline-offset: 2px;
}

.wdm-checkbox-text {
    user-select: none;
}

.wdm-no-assignment {
    color: #bbb;
    cursor: help;
    font-style: italic;
    display: block;
    text-align: center;
    margin: 0 auto;
}

.wdm-no-course-avg {
    color: #bbb;
    cursor: help;
    font-style: italic;
    display: block;
    text-align: left;
    margin: 0 auto;
}

.wdm-no-quiz {
    color: #bbb;
    cursor: help;
    font-style: italic;
    display: block;
    text-align: center;
    margin: 0 auto;
}

.wdm-course-link {
    color: #3267B2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.wdm-course-link:hover {
    color: #163a6b;
    text-decoration: underline;
}

.wdm-csv-btn-tabs {
    margin-left: auto;
    margin-right: 0;
    height: 38px;
    font-size: 1em;
    padding: 7px 18px;
    border-radius: 8px;
    border: 0px solid #e5e9f2;
    background: #f0f2f3;
    color: #222;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: none;
    margin-bottom: 5px;
}
.wdm-csv-btn-tabs:hover {
    background: #e5e9f2;
    color: #222;
    border: 1px solid #e5e9f2;
}

.wdm-view-report-btn {
    background: none;
    border: none;
    color: #205493;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, text-decoration 0.2s;
}
.wdm-view-report-btn:hover:not(.disabled) {
    color: #163a6b;
    text-decoration: underline;
}
.wdm-view-report-btn.disabled,
.wdm-view-report-btn[disabled] {
    color: #bbb;
    cursor: not-allowed;
    text-decoration: none;
    font-weight: 400;
}

a.user_statistic {
    color: #205493;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, text-decoration 0.2s;
}
a.user_statistic:hover:not(.disabled) {
    color: #163a6b;
    text-decoration: underline;
}
a.user_statistic.disabled,
a.user_statistic[aria-disabled="true"] {
    color: #bbb;
    cursor: not-allowed;
    text-decoration: none;
    font-weight: 400;
    pointer-events: none;
}

.wdm-assignment-view-submission {
    color: #205493;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, text-decoration 0.2s;
}
.wdm-assignment-view-submission:hover:not(.disabled) {
    color: #163a6b;
    text-decoration: underline;
}
.wdm-assignment-view-submission.disabled,
.wdm-assignment-view-submission[aria-disabled="true"] {
    color: #bbb;
    cursor: not-allowed;
    text-decoration: none;
    font-weight: 400;
    pointer-events: none;
}

/* Disabled row styles for unattempted quizzes and unsubmitted assignments */
.wdm-report-table tr.wdm-row-disabled  {
    background-color: #f8f9fa !important;
}

.wdm-report-table tr.wdm-row-disabled td:first-child {
    opacity: 0.6;
}

.wdm-report-table tr.wdm-row-disabled td:nth-child(3) {
    opacity: 0.6;
}

.wdm-report-table tr.wdm-row-disabled td:nth-child(4) {
    opacity: 0.6;
}


.wdm-report-table tr.wdm-row-disabled td {
    color: #6c757d !important;
}

.wdm-report-table tr.wdm-row-disabled .wdm-bar-wrap {
    background-color: #e9ecef !important;
}

.wdm-report-table tr.wdm-row-disabled .wdm-bar {
    background-color: #adb5bd !important;
}

.wdm-report-table tr.wdm-row-disabled .wdm-bar-label {
    color: #6c757d !important;
}

/* Hover effect for disabled rows */
.wdm-report-table tr.wdm-row-disabled:hover {
    background-color: #f8f9fa !important;
}

.wdm-student-filter-wrap .select2-container--default {
    width: auto !important;
}

/* Center empty table message */
.wdm-report-table .dataTables_empty {
    text-align: center !important;
    padding: 40px 20px !important;
    font-size: 1.1em !important;
    color: #666 !important;
    font-style: italic !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

/* Ensure the empty message spans all columns */
.wdm-report-table tbody tr td.dataTables_empty {
    text-align: center !important;
    padding: 40px 20px !important;
    font-size: 1.1em !important;
    color: #666 !important;
    font-style: italic !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

/* Mobile responsive styles for empty table message */
@media (max-width: 600px) {
    .wdm-report-table .dataTables_empty,
    .wdm-report-table tbody tr td.dataTables_empty {
        padding: 30px 15px !important;
        font-size: 1em !important;
        margin: 15px 0 !important;
    }
}

@media (max-width: 400px) {
    .wdm-report-table .dataTables_empty,
    .wdm-report-table tbody tr td.dataTables_empty {
        padding: 25px 10px !important;
        font-size: 0.95em !important;
        margin: 10px 0 !important;
    }
}

/* Start Quiz Button Styles */
.wdm-start-quiz-btn {
    color: #205493;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, text-decoration 0.2s;
    cursor: pointer;
    font-size: 1em;
    padding: 0;
}

.wdm-start-quiz-btn:hover {
    color: #163a6b;
    text-decoration: underline;
}

.wdm-start-quiz-btn svg {
    margin-left: 4px;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    display: inline-block;
}

/* Mobile responsive for start quiz button */
@media (max-width: 600px) {
    .wdm-start-quiz-btn {
        font-size: 0.95em;
    }
}

@media (max-width: 400px) {
    .wdm-start-quiz-btn {
        font-size: 0.9em;
    }
}

/* Retake Quiz Button Styles */
.wdm-retake-quiz-btn {
    color: #205493;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, text-decoration 0.2s;
    cursor: pointer;
    font-size: 1em;
    padding: 0;
    margin-left: 8px;
}

.wdm-retake-quiz-btn:hover {
    color: #163a6b;
    text-decoration: underline;
}

.wdm-retake-quiz-btn svg {
    margin-left: 4px;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    display: inline-block;
}

/* Quiz name link styling */
.wdm-quiz-name-link {
    color: #205493;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.wdm-quiz-name-link:hover {
    color: #163a6b;
    text-decoration: underline;
}

/* Mobile responsive for retake quiz button */
@media (max-width: 600px) {
    .wdm-retake-quiz-btn {
        font-size: 0.95em;
    }
}

@media (max-width: 400px) {
    .wdm-retake-quiz-btn {
        font-size: 0.9em;
    }
}

/* Submit Assignment Button Styles */
.wdm-submit-assignment-btn {
    color: #205493;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, text-decoration 0.2s;
    cursor: pointer;
    font-size: 1em;
    padding: 0;
}
.wdm-submit-assignment-btn:hover {
    color: #163a6b;
    text-decoration: underline;
}
.wdm-submit-assignment-btn svg {
    margin-left: 4px;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    display: inline-block;
}

.dataTables_paginate .paginate_button,
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:focus,
.dataTables_paginate .paginate_button.current:active,
.dataTables_paginate .paginate_button:focus,
.dataTables_paginate .paginate_button:active,
.dataTables_paginate .paginate_button:visited {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.dataTables_paginate .paginate_button.current {
    color: #111 !important;
    font-weight: bold;
    font-size: 22px;
    pointer-events: none;
}

.wdm-course-progress-action {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    vertical-align: middle;
}
.wdm-course-progress-action .wdm-course-completed {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    font-size: 1.2em;
    vertical-align: middle;
}
.wdm-course-progress-action .wdm-course-completed svg {
    width: 1.3em;
    height: 1.3em;
    margin-left: 2px;
    margin-right: 0;
    vertical-align: middle;
    display: inline-block;
}

.wdm-info-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    top: 120%;
    bottom: auto;
    transform: translateX(-50%);
    background: #fff;
    color: #111;
    padding: 18px 22px 18px 22px;
    border-radius: 16px;
    font-size: 1.08em;
    font-weight: 500;
    max-width: 370px;
    min-width: 180px;
    width: max-content;
    white-space: normal;
    z-index: 100;
    pointer-events: auto;
    text-align: left;
    word-break: break-word;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(32, 84, 147, 0.13), 0 2px 8px rgba(0,0,0,0.10);
    border: 1.5px solid #e5e9f2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.wdm-info-tooltip.show {
    opacity: 1;
    visibility: visible;
    display: block !important;
}
@media (max-width: 600px) {
    .wdm-info-tooltip {
        position: absolute !important;
        left: 50% !important;
        top: 120% !important;
        right: auto !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
        max-width: 180px !important;
        min-width: 0 !important;
        font-size: 0.95em !important;
        padding: 10px 4px !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        z-index: 9999 !important;
    }
    .wdm-info-tooltip::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .wdm-grade-details {
        flex-wrap: wrap;
        gap: 0 8px;
        min-width: 0;
    }
    .wdm-grade-detail {
        min-width: 0;
    }
}
.wdm-info-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 2px 4px rgba(32,84,147,0.10));
}
.wdm-report-table-wrap,
.wdm-report-card {
    overflow: visible !important;
}

.wdm-grade-key {
    text-align: left;
    min-width: 180px;
    max-width: 320px;
    font-size: 1em;
    color: #222;
    padding: 2px 0;
}
.wdm-grade-key-title {
    font-weight: 600;
    font-size: 1.13em;
    margin-bottom: 16px;
    color: #111;
}
.wdm-grade-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.wdm-grade-row:last-child {
    margin-bottom: 0;
}
.wdm-grade-badge {
    display: inline-block;
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 0.98em;
    border-radius: 999px;
    color: #fff;
    padding: 2px 10px;
    margin-right: 8px;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(32,84,147,0.08);
}
.wdm-grade-a { background: #5ca226; }
.wdm-grade-b { background: #2d5d99; }
.wdm-grade-c { background: #d2b23a; }
.wdm-grade-d { background: #b07a1a; }
.wdm-grade-f { background: #7d1a13; }
.wdm-grade-range {
    font-weight: 700;
    color: #222;
    font-size: 1.08em;
    margin-right: 0;
    margin-top: 2px;
}
.wdm-grade-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 56px;
    margin-top: 2px;
    gap: 0 18px;
}
.wdm-grade-detail {
    color: #888;
    font-size: 0.98em;
    font-weight: 400;
    margin-bottom: 0;
    margin-left: 0;
    padding-left: 0;
    line-height: 1.5;
    display: inline;
}
.wdm-grade-divider {
  margin: 12px 0 10px 0;
  border: none;
  border-top: 1.5px solid #e5e9f2;
}
@media (max-width: 600px) {
    .wdm-grade-key {
        min-width: 120px;
        max-width: 98vw;
        font-size: 0.97em;
    }
    .wdm-grade-row {
        gap: 6px;
        margin-bottom: 12px;
    }
    .wdm-grade-badge {
        min-width: 22px;
        font-size: 0.98em;
        padding: 2px 8px;
    }
    .wdm-grade-range {
        font-size: 0.98em;
    }
    .wdm-grade-details {
        margin-left: 38px;
    }
    .wdm-grade-detail {
        font-size: 0.95em;
    }
}
.wdm-continue-course-btn {
    color: #3267B2;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.98em;
    margin-left: 8px;
    transition: color 0.2s;
}
.wdm-continue-course-btn:hover {
    color: #163a6b;
    text-decoration: underline !important;
}
.wdm-course-completed-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}

/* Left-align only the Course Progress column in Overview tab */
#wdm-overview-table th:nth-child(2),
#wdm-overview-table td:nth-child(2) {
    text-align: left;
}

/* Left-align the Current Grade column in the Overview tab */
#wdm-overview-table th:nth-child(3),
#wdm-overview-table td:nth-child(3) {
    text-align: left;
}

#wdm-overview-table td:nth-child(3) {
    white-space: nowrap;
}

/* Make progress bar and continue button display inline in Overview tab */
#wdm-overview-table td:nth-child(2) {
    /* Keep original table cell behavior */
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

/* Position progress bar elements inline */
#wdm-overview-table td:nth-child(2) .wdm-bar-wrap {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

#wdm-overview-table td:nth-child(2) .wdm-bar-label {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
	width: 34px;
}

#wdm-overview-table td:nth-child(2) .wdm-continue-course-btn,
#wdm-overview-table td:nth-child(2) .wdm-course-completed-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

/* Allow wrapping on mobile for progress bar and continue button */
@media (max-width: 600px) {
    #wdm-overview-table td:nth-child(2) {
        flex-wrap: wrap;
        gap: 4px;
    }
}

#wdm-overview-table td:nth-child(2) .wdm-bar-wrap {
    margin-bottom: 0;
    margin-right: 8px;
}

#wdm-overview-table td:nth-child(2) .wdm-continue-course-btn {
    margin-left: 0;
    white-space: nowrap;
}

/* Remove DataTables sorting icons from Overview tab headers */
#wdm-overview-table th.sortable::after,
#wdm-overview-table th.sortable::before,
#wdm-overview-table th.sorting_asc::after,
#wdm-overview-table th.sorting_desc::after,
#wdm-overview-table th.sorting_asc::before,
#wdm-overview-table th.sorting_desc::before {
    display: none !important;
    content: none !important;
}

/* Show both up and down icons in Overview tab headers */
#wdm-overview-table th.sortable {
    position: relative;
    padding-right: 24px;
}
#wdm-overview-table th.sortable .wdm-sort-icons {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    height: 20px;
    pointer-events: none;
}
#wdm-overview-table th.sortable .wdm-sort-icon {
    font-size: 10px;
    line-height: 10px;
    color: #ccc;
    opacity: 0.5;
    transition: color 0.2s, opacity 0.2s;
}
#wdm-overview-table th.sorting_asc .wdm-sort-icon-up,
#wdm-overview-table th.sorting_desc .wdm-sort-icon-down {
    color: #205493;
    opacity: 1;
}

/* Blue color for active sorting icons in Overview tab */
#wdm-overview-table th.sorting_asc::after,
#wdm-overview-table th.sorting_desc::after {
    color: #205493 !important;
    opacity: 1 !important;
}

/* Set the width of the Course column in the Overview tab to 30% */
#wdm-overview-table th:first-child,
#wdm-overview-table td:first-child {
    width: 30%;
}

/* Override disabled styling for assignment table rows */
.wdm-report-table #wdm-assignments-table tr.wdm-row-disabled td:nth-child(2) {
    opacity: 1 !important;
}

/* Export button margin for desktop view */
@media (min-width: 768px) {
    .wdm-csv-btn {
        margin-left: 14px;
    }
}

/* Make score column content flex with space-evenly distribution */
@media (min-width: 768px) {
    #wdm-quizzes-table td:nth-child(2) {
        /*display: flex;
        justify-content: space-evenly;*/
        align-items: center;
    }

    /* Increase width for quiz name column */
    #wdm-quizzes-table th:first-child,
    #wdm-quizzes-table td:first-child {
        width: 30%;
        min-width: 200px;
    }
    
    /* Reduce width for quiz score column */
    #wdm-quizzes-table th:nth-child(3),
    #wdm-quizzes-table td:nth-child(3) {
        width: 22% !important;
        min-width: 120px;
    }

    /* Reduce width for quiz score column */
    #wdm-quizzes-table th:nth-child(4),
    #wdm-quizzes-table td:nth-child(4) {
        width: 22% !important;
        min-width: 120px;
    }

    .wdm-quiz-score-container {
		display:inline-block;
        width: 60px !important;
    }

}

