/* Create a wrapper for the table with proper overflow handling */
.round_table {
    border-radius: 0.25em;
    background-color: white;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow-x: auto; /* Apply overflow to the container */
    display: block; /* This ensures the container takes full width */
}

.table_main_db {
    width: 100%;
    min-width: 600px; /* Set a minimum width to prevent squishing on mobile */
}

.table_header_db {
    font-size: var(--text-size-100);
    font-weight: 600;
    border-bottom: 2px solid #cdcdcd;
    line-height: var(--sp-mm);
    color: black;
    text-align: left;
}

.table_cell_db {
    padding: 1rem;
}

/* Base table row styling */
.table_row_db {
    border-top: 1px solid #cdcdcd;
}

/* Alternating row colors */
.table_row_db:nth-child(even) {
    background-color: #f9f9f991; /* Light gray for even rows */
}

.table_row_db:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
}


.flex_icons_db {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.flex_icons_db_end{
    text-align: end;
    width: 85px;
}

.flex_icons_db_st {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}


.flex_text_test_author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.text_test_short {
    font-size: 16px;
    font-weight: bold;
}

.text_test_author {
    font-size: var(--text-size-90);
    color: grey;
}

.text_seperator {
    height: 16px;
    width: 1px;
    margin: 0 10px;
    background-color: #CDCDCD;
    align-self: center;
}


.flex_test_details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.favorite_th {
    text-align: right;
    width: 0px;
}

.favorite_icon {
    text-align: center;
    line-height: inherit;
    height: auto;
}


/* PILL */

.pill_table {
    padding: var(--sp-xs) var(--sp-s);
    border-radius: 1.5em;
    font-size: 16px;
}


.rectangle {
    padding: 5px 10px;
    border-radius: 2px;
}

.active {
    background-color: #6191CD;
    color: white;
}

.inactive {
    background-color: #ededed;
    color: #3a3a3a;
}

.digital_table {
    background-color: white;
    border: 1px solid #c6d9f1;
    color: #4279BC;
    font-size: var(--text-size-90);
}

.digital_table_d {
    border: 1px solid #c6d9f1;
    color: #4279BC;
    font-size: var(--text-size-90);
    background:#4279bc0f;
}

.paper_table {
    background-color: white;
    color: grey;
    font-size: var(--text-size-90);
    border: 1px solid lightgrey;
}

.paper_table_d {
    background-color: white;
    color: grey;
    font-size: var(--text-size-90);
    border: 1px solid lightgrey;
}


.svg_color_fill {
    fill: #414144;
}

.long_test_name {
    word-break: break-word; /* Prevent text from overflowing */
}

.main_td {
    width: 80%;
}

@media (max-width: 768px) {
    .main_td {
        width: auto; /* More flexible width on mobile */
    }
    
    .flex_text_test_author {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .text_seperator {
        display: none; /* Hide separator on small screens */
    }
    
    .pill_table {
        padding: var(--sp-xs) var(--sp-xs);
        font-size: 14px;
    }
}

.fav_td {
    width: 5%;
}

.options_td {
    width: 15%;
}

.test_details_link {
    font-size: 14px;
}

.details_column {
    display: flex;
    justify-content: center;
}

.text_test_short_d {
    font-size: var(--text-size-90);
    color: grey;
    min-width:fit-content;
}

.svg_detail_a {
    display: flex;
    width: 30px;
    height: 30px;
    border-radius: 5em;
    background-color: #b8d7ff96;
    box-shadow: 0px 9px 9px -6px rgba(161, 161, 161, 0.5);
    -webkit-box-shadow: 0px 9px 9px -6px rgba(161, 161, 161, 0.5);
    -moz-box-shadow: 0px 9px 9px -6px rgba(161, 161, 161, 0.5);
    align-items: center;
    justify-content: center;
}

.svg_detail_a:hover {
    background-color: #b8d7ff52;
    box-shadow: inset 0px 1px 0px hsla(var(--mc4-color-white-hsl), 0.1), 0px 0px 0px 1px hsla(var(--mc4-color-black-hsl), 0.02), 0px 1px 3px -1px hsla(var(--mc4-color-black-hsl), 0.2), 0 0.1px 0.3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.no_test_found_div {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.no_found_button {
    display: flex;
    background-color: white;
    color: #4279BC;
    font-size: var(--text-size-100);
    cursor: pointer;
    border-radius: 0.15em;
    text-decoration: none;
    align-items: center;
    padding: var(--sp-xs) var(--sp-s);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.2s ease;
    box-shadow: inset 0px 1px 0px hsla(var(--mc4-color-white-hsl), 0.1),
        0px 0px 0px 1px hsla(var(--mc4-color-black-hsl), 0.02),
        0px 1px 3px -1px hsla(var(--mc4-color-black-hsl), 0.2),
        0 0.3px 0.4px rgba(0, 0, 0, 0.025),
        0 0.9px 1.5px rgba(0, 0, 0, 0.05),
        0 3.5px 6px rgba(0, 0, 0, 0.1);
}

.no_found_button:hover {
    background-color: rgb(248, 248, 248);
    box-shadow: inset 0px 1px 0px hsla(var(--mc4-color-white-hsl), 0.1), 0px 0px 0px 1px hsla(var(--mc4-color-black-hsl), 0.02), 0px 1px 3px -1px hsla(var(--mc4-color-black-hsl), 0.2), 0 0.1px 0.3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.aling_right_db {
    text-align: end;
    max-width: fit-content;
}

.pill_test_info {
    box-shadow: 0px 9px 9px -9px rgba(161, 161, 161, 0.5);
    font-size: var(--text-size-100);
    padding: var(--sp-s) var(--sp-m);

}