.event-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row {
    display: flex;
    width: 100%;
    gap: 10px;
}

.filter-column {
    box-sizing: border-box;
}

.filter-search {
    flex: 1 1 75%;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
}

.filter-btn {
    width:75%;
}
.clear-btn {
    width: 25%;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination-wrapper ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper li {
    margin: 0 5px;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    text-decoration: none;
    color: #ffffff;
    background-color: #0073aa;
    border: 1px solid #0073aa;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s;
}

.pagination-wrapper a:hover,
.pagination-wrapper .current {
    background-color: #005f8d;
    border-color: #005f8d;
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
    font-weight: bold;
}

.pagination-wrapper .current {
    background-color: #333;
    border-color: #333;
}

.toggle-list .arrow {
    transition: transform 0.3s;
}

.toggle-list.my-kat {
    font-weight: bold;
}

.toggle-list.collapsed .arrow {
    transform: rotate(-90deg);
    display: inline-block;

}

.event-list {
    list-style-type: none;
}
/* event render */
.event-container {
    border-bottom: solid;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}
.event-container > .event-title {
    width: 50%; float: left;
}

.event-container > .event-buttons {
    width: 50%;
    float: right;
    text-align: right;
}
.event-title h2 {
    margin:unset;
}

.event-title {
    width: 50%;
}

.event-buttons {
    width: 50%;
    text-align: right;
}

.event-buttons button,
.event-buttons .edit-btn {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}

.event-location {
    font-weight: bold;
}

.toggle-list {
    cursor: pointer;
}

.event-buttons button.no-text {
    padding: 0;
    margin: 0 25px 0 0;
}
.chosen-container {
    flex: 1 1 25%;
}
.chosen-container-multi .chosen-choices {
    height: 42px!important;
    border: 1px solid #666!important;
    border-radius: 3px!important;
}

/* .filter-search input = name: search */
.filter-search input {
    color: var(--e-global-color-accent);
    background-color: var(--e-global-color-secondary);
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: var(--e-global-color-accent);
    border-radius: 50px 50px 50px 50px;
}
.filter-author .chosen-container {
    border-style:none;
}
.filter-author .chosen-container .chosen-choices {
    color: var(--e-global-color-accent)!important;
    background-color: var(--e-global-color-secondary)!important;
    border-style: solid!important;
    border-width: 2px 2px 2px 2px!important;
    border-color: var(--e-global-color-accent)!important;
    border-radius: 50px 50px 50px 50px!important;
}
.filter-author > div > ul > li.search-field {
    margin-top: 5px!important;
    margin-left: 5px!important;
}
/* last td no background in table */
/*
table.table-events-cat tbody tr td:last-child {
    background-color: transparent!important;
}
 */
/* when the second column, the text is over the width of the column then add ... in the end of the text
 */
table.table-events-cat tbody tr td:nth-child(2) a {

    color: var(--e-global-color-accent);

}

/* Table styling */
.table-events-cat {
    border: 2px solid var(--e-global-color-accent); /* Blue border */
    border-radius: 10px; /* Rounded corners */
    width: 100%;
    border-collapse: separate;
    border-spacing: 0; /* Avoid collapsed border */
    border-color: var(--e-global-color-accent) !important;
}

/* Title row styling */
.table-events-cat thead th {
    background-color: white; /* Blue background */
    color: var(--e-global-color-accent);
    padding: 10px;
    text-align: left;
    font-size: 20px;
    box-shadow: none;
    border-block-start: none !important;
    border: 1px solid hsla(0,0%,50.2%,.5019607843);
}
.table-events-cat thead th:first-child {
    border-radius: 8px 0 0 0;
}
.table-events-cat thead th:last-child {
    border-radius: 0 8px 0 0;
}


/* Table row styling */
.table-events-cat tbody tr {
    border-bottom: 1px solid #ddd; /* Light gray row separators */
}

/* Table cell styling */
.table-events-cat tbody td {
    padding: 10px;
    color: var(--e-global-color-accent); /* Blue text */
}

/* Highlight rows on hover */
.table-events-cat tbody tr:hover {
    background-color: #e0e0ff;
}
table.table-events-cat tbody tr:nth-child(odd):hover {
    background-color: #e0e0ff;
}
/* Styling for striped rows */
table.table-events-cat tbody tr:nth-child(odd) {
    background-color: #f3f3f3; /* Light gray for striped effect */
}

table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: #f3f3f3; /* Light gray for striped effect */
}
table tbody>tr:nth-child(odd)>td:hover, table tbody>tr:nth-child(odd)>th:hover {
    background-color: #e0e0ff;
}
table tbody tr:hover>td, table tbody tr:hover>th {
    background-color: #e0e0ff;
}

/* Rounded bottom corners for the last row */
.table-events-cat tbody tr:last-child td {
    border-radius: 0 0 10px 10px;
}

/* last row in the table */
.table-events-cat tbody tr:last-child td:first-child {
    border-radius: 0 0 0 10px!important;
}
.table-events-cat tbody tr:last-child td {
    border-radius: 0 0 0 0;
}
.table-events-cat tbody tr:last-child td:last-child {
    border-radius: 0 0 10px 0!important;
}




@media only screen and (min-width: 642px) {
    .table-events-cat thead th:nth-child(1),
    .table-events-cat tbody td:nth-child(1) {
        max-width: 50px;
        min-width: 50px;
    }

    .table-events-cat thead th:nth-child(2),
    .table-events-cat tbody td:nth-child(2) {
        width: 50%;
    }

    .table-events-cat thead th:nth-child(3),
    .table-events-cat tbody td:nth-child(3) {
        width: 30%;
    }

    .table-events-cat thead th:nth-child(4),
    .table-events-cat tbody td:nth-child(4) {
        width: 20%;
    }


    .table-events-cat thead th:nth-child(5),
    .table-events-cat tbody td:nth-child(5) {
        width: 10%;
    }
}