.filters-panel {
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

.filters-panel[hidden] {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .filters-panel {
        animation: none;
    }
}

.ts-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.ts-loading-spinner.fade-out {
    opacity: 0;
    pointer-events: none;
}

.ts-loading-spinner .spinner-overlay {
    position: relative;
    width: 40px;
    height: 40px;
}

.ts-loading-spinner .spinner-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border: 3px solid rgba(65, 86, 161, 0.1);
    border-radius: 50%;
    border-top-color: #4156A1;
    animation: ts-spinner-rotate 0.8s linear infinite;
}

@keyframes ts-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts-loading-spinner .spinner-inner {
        animation: none;
        border-top-color: transparent;
        border-right-color: #4156A1;
    }
}

.search-table-container {
    position: relative;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    grid-column: 1 / 12;
    color: #1a1a1a;
}

.search-table-table {
    overflow-x: auto;
}

.search-table {
    width: 100%;
    min-width: 64rem;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border: 1px solid #d9dfef;
}

.search-table thead th {
    padding: 0;
    background-color: #4156A1;
    border: 0;
    vertical-align: stretch;
}

.search-table thead .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    justify-content: flex-start;
    width: 100%;
    padding: 0.85rem 0.95rem;
    background-color: #4156A1;
    border: 0;
    border-radius: 0;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
}

.search-table thead .btn:hover,
.search-table thead .btn:focus {
    background-color: #344891;
    border-color: transparent;
    color: #ffffff;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.search-table thead .btn.no-hover:hover {
    background-color: #4156A1;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.search-table thead th:nth-child(5) .btn,
.search-table thead th:nth-child(6) .btn {
    justify-content: center;
    text-align: center;
}

.search-table tbody td {
    padding: 0.8rem 0.7rem;
    border-bottom: 1px solid #e3e8f3;
    background-color: #ffffff;
    line-height: 1.45;
}

.search-table tbody tr:last-child td {
    border-bottom: 0;
}

.search-table__course-cell {
    min-width: 20.5rem;
    width: 34%;
}

.search-table__course-cell a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.12em;
}

.InstanceTitlePlain {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #cc0000;
    margin-bottom: 0.35rem;
}

.CourseIDFull {
    display: inline-block;
    color: #2f3a52;
    font-size: 0.95rem;
    line-height: 1.35;
}

.search-table__format-cell,
.search-table__date-cell,
.search-table__days-cell,
.search-table__times-cell,
.search-table__action-cell {
    white-space: nowrap;
}

.search-table__format-cell {
    min-width: 7.4rem;
    text-align: center;
}

.search-table__date-cell {
    min-width: 6.7rem;
    font-weight: 600;
    color: #2b3140;
    text-align: center;
    font-size: 0.92rem;
}

.search-table__days-cell {
    min-width: 5.8rem;
    font-size: 0.92rem;
}

.search-table__times-cell {
    min-width: 7.8rem;
    font-size: 0.92rem;
    text-align: center;
}

.search-table__registration-cell {
    min-width: 6.9rem;
    width: 9%;
    font-size: 0.92rem;
    text-align: center;
}

.search-table__action-cell {
    min-width: 3.9rem;
    text-align: center;
    vertical-align: middle;
}

.search-table__times-cell .display-flex {
    align-items: center;
}

.search-table__registration-cell .search-table__registration-status {
    text-align: center;
}

.display-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
    line-height: 1.35;
}

.search-table__schedule-item {
    display: block;
}

.search-table__registration-status {
    display: inline-block;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    color: #2b3140;
    font-size: 0.92rem;
}

.item-format-Classroom,
.item-format-Online,
.item-format-Webinar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.75rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
    line-height: 1.1;
    color: #fff;
}

.item-format-Classroom {
    background-color: #4156A1;
}

.item-format-Online {
    background-color: #008473;
}

.item-format-Webinar {
    background-color: #d14905;
}

.viewDeeplink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.7rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
}

.search-group {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    flex-wrap: nowrap;
}

.search-input[type="search"] {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    box-sizing: border-box;
    border: 2px solid #9aa3b5;
    border-radius: 0;
    border-right: 0;
}

.search-input[type="search"]:focus {
    outline: none;
    border-color: #4156A1;
    box-shadow: 0 0 0 3px rgba(65, 86, 161, 0.12);
    position: relative;
    z-index: 1;
}

.searchButtonIcon,
.resetButtonIcon,
button[id^="collapseFiltersButton-"] {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    box-sizing: border-box;
    border-radius: 0;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
}

.searchButtonIcon {
    border: 1px solid #cc0000;
}

.resetButtonIcon {
    border: 1px solid #202020;
}

.reporter-filters {
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.filters-panel .card {
    border: 1px solid #d9dfef;
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(28, 42, 78, 0.08);
}

.filter-group {
    row-gap: 1rem;
}

.filter-category,
.filter-format,
.filter-search,
.filter-starting-date {
    padding: 0 0.75rem;
}

.filter-category label,
.filter-format label,
.filter-starting-date label {
    padding-left: 0;
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: #cc0000;
}

.reporter-datepicker-size,
.filter-category select,
.filter-format select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    box-sizing: border-box;
    border: 1px solid #bcc6d8;
    border-radius: 0;
    background-color: #ffffff;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-left: 0;
    margin-top: 1rem;
    list-style: none;
}

.pagination li {
    display: inline-block;
}

.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.6rem;
    text-decoration: none;
    border: 1px solid #c6cfdf;
    color: #23304d;
    background-color: #ffffff;
}

.pagination li.active a {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #fff;
    font-weight: 700;
}

.no-result {
    padding: 1rem;
    border: 1px solid #d9dfef;
    background-color: #f7f9fc;
    color: #2f3a52;
}

.mobile-cards {
    display: none;
}

.mobile-filters-section {
    display: none;
}

/* if on a mobile device */
@media (hover: none) and (max-width: 768px) {
    .mobile-cards {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
        max-width: 100% !important;
    }

    .card {
        margin: 4px 0;
        padding: 2px;
        width: 100%;
        border: none !important;
    }

    .card h3 {
        margin: 2px 0 20px 0;
    }
    .card hr {
        margin: 20px 0 0 0;
    }

    .card h3 small {
        font-size: 0.8em;
        color: #000000;
    }

    .card > * {
        margin-bottom: 4px; /* Set the bottom margin for every element inside .card */
    }

    .card a {
        max-width: 118px !important;
        margin-top: 20px;
    }

    .search-table-table {
        display: none;
    }

    /* Mobile Filters Section - WCAG Compliant */
    .mobile-filters-section {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        margin-bottom: 1rem;
        background-color: #f5f5f5;
        border-radius: 4px;
    }

    .mobile-filter-btn,
    .mobile-reset-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background-color: #4156A1;
        color: #ffffff;
        border: 2px solid #4156A1;
        border-radius: 4px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 1rem;
        min-height: 44px;
    }

    .mobile-filter-btn:hover,
    .mobile-reset-btn:hover {
        background-color: #344891;
        border-color: #344891;
    }

    .mobile-filter-btn:focus-visible,
    .mobile-reset-btn:focus-visible {
        outline: 3px solid #4156A1;
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(65, 86, 161, 0.15);
    }

    .mobile-filter-panel {
        padding: 1rem;
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        animation: slideDown 0.3s ease-out;
    }

    .mobile-filter-panel[hidden] {
        display: none;
    }

    .mobile-filter-options {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-filter-options label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        font-size: 1rem;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .mobile-filter-options label:hover {
        background-color: #f0f0f0;
    }

    .mobile-filter-options input[type="radio"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #4156A1;
    }

    .mobile-reset-btn {
        background-color: #666666;
        border-color: #666666;
        gap: 0.5rem;
    }

    .mobile-reset-btn:hover {
        background-color: #555555;
        border-color: #555555;
    }

    /* Mobile Cards - Semantic HTML & WCAG Compliant */
    .mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-card {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-color: #4156A1;
    }

    .mobile-card header {
        margin-bottom: 0.5rem;
    }

    .mobile-card h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1a1a1a;
        line-height: 1.4;
    }

    .mobile-card .course-id {
        margin: 0;
        font-size: 0.875rem;
        color: #555555;
    }

    .card-content {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-field {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.95rem;
    }

    .card-field strong {
        font-weight: 600;
        color: #424242;
    }

    .card-field span {
        word-break: break-word;
    }

    .mobile-card footer {
        margin-top: 0.5rem;
        border-top: 1px solid #e0e0e0;
        padding-top: 1rem;
    }

    .mobile-view-btn {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        background-color: #4156A1;
        color: #ffffff;
        text-decoration: none;
        border: 2px solid #4156A1;
        border-radius: 4px;
        font-weight: 600;
        transition: all 0.2s ease;
        cursor: pointer;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .mobile-view-btn:hover {
        background-color: #344891;
        border-color: #344891;
    }

    .mobile-view-btn:focus-visible {
        outline: 3px solid #4156A1;
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(65, 86, 161, 0.15);
    }

    .mobile-no-results {
        padding: 2rem 1rem;
        text-align: center;
        color: #666666;
        font-size: 1rem;
        background-color: #f5f5f5;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
    }

    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }

    @media (prefers-reduced-motion: reduce) {
        .mobile-filter-panel {
            animation: none;
        }
    }

	.filters-panel {
		position: static;
		width: 100%;
		margin: 0.75rem 0 0;
	}
}