.rfiles-table-wrap {
    background: #ffb30000;
    border-radius: 10px;
    word-break: break-word;
word-wrap: break-word;
}

.rfiles-table {
    width: 100%;
    border-collapse: collapse;
    color: #595959;
    font-size: 14px;
}

.rfiles-table th,
.rfiles-table td {
    padding: 10px;
    text-align: center;
}

.rfiles-table th {
    background-color: #c71d2a;
    color: #ddd;
    font-weight: 600;
}

.rfiles-table td small {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-top: 3px;
}

.V-download a {
        display: inline-block;
        width: 100%;
        text-align: center;
        background: #0f8a5f;
        color: #fff;
        border-radius: 6px;
        padding: 6px 0;
        text-decoration: none;
        font-weight: bold;
        transition: background 0.3s ease-in-out;
    }
.V-download a:hover {
        background: #b22222; /* dark red hover */
    }


.new-badge {
       background-color: #e63946;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
    display: inline-block;
    line-height: 12px;
}

/* Desktop: Row layout */
@media screen and (min-width: 601px) {
    .rfiles-search-box {
        width: 60%;
    }

    .rfiles-count-box {
        width: 38%;
        text-align: right;
    }
}


/* Load more button */
#rfiles-load-more {
    background: #ffb300;
    color: #1e1e1e;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}
#rfiles-load-more:hover {
    background: #ffd700;
}
.rfiles-table tr {
 border: 1px solid #ddd;

    }
.V-filename{
    text-align: left !important;
    color: #195fd1;
    font-weight: 600;
}

.V-version, .V-size, .V-coun{
    color: #878787;
}



        .rfiles-table-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #f0f0f1;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Search Box Wrapper --- */
.rfiles-search-box {
    flex: 1;
    position: relative;
    min-width: 220px;
}

.rfiles-search-box i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #0d3b66;
    font-size: 14px;
}

.rfiles-search-box input {
    width: 70%;
    padding: 8px 12px 8px 32px; /* left padding for icon */
    border: 1px solid #949494;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #f9f9f9;
    transition: 0.3s;
}

.rfiles-search-box input:focus {
    border-color: #b22222;
    box-shadow: 0 0 6px rgba(178, 34, 34, 0.4);
}

/* --- Count Box --- */
.rfiles-count-box {
    font-size: 14px;
    font-weight: 600;
    color: #0d3b66;
    background: #fffbea; /* light yellow */
    border: 1px solid #f4d35e; /* dark yellow border */
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rfiles-count-box i {
    color: #b22222; /* dark red icon */
}

/* --- Mobile Responsive Table --- */
@media (max-width: 768px) {
    table {
        width: 100%;
        border-collapse: collapse;
    }
    table thead {
        display: none; /* hide table headers on mobile */
    }
    table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
       
    }
    table td {
        display: block;
        text-align: left;
        border: none;
        padding: 4px 0;
    }

    /* Hide size and count columns */
    .V-size, .V-count {
        display: none;
    }

    /* Version and Download button together */
    .V-version::before {
        content: "Version: ";
        font-weight: bold;
        color: #888;
        top: 10px;
    }

    .V-version {
        margin-top: 8px;
    }

    .rfiles-table-top {
        flex-direction: column;
        align-items: stretch;
    }
    .rfiles-count-box {
        justify-content: center;
    }
    .rfiles-search-box input{
        width: 78% !important;
    }
    
    .rfiles-table th,
.rfiles-table td {
    padding: 7px !important;
}
}