/* Container & Layout */
.pub-container {
        display: flex;
        flex-direction: column;
        font-family: sans-serif;
        margin-top: 150px;
}
@media (max-width: 525px){
        .pub-container{
                margin-top: 100px;
        }
}
.pub-header {
        padding: 1rem;
        background: #fff;
        border-bottom: 1px solid #ddd;
        display: flex;
        justify-content: space-between;
        align-items: center;
}

.search-form {
        display: flex;
        gap: .5rem;
}

.search-form input {
        padding: .4rem .6rem;
        border: 1px solid #ccc;
        border-radius: 4px;
}

.search-form button {
        padding: .4rem .8rem;
        background: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
}

.result-count {
        font-weight: 500;
}

/* Body: sidebar + results */
.pub-body {
        display: flex;
        gap: 1rem;
        padding: 1rem;
}

.filters {
        flex: 0 0 200px;
        background: #f9f9f9;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #eee;
}

.filters h3 {
        margin-top: 0;
}

.filters label {
        display: block;
        margin: .75rem 0 .25rem;
        font-weight: 500;
}

.filters select,
.filters input[type="number"] {
        width: 100%;
        padding: .4rem;
        border: 1px solid #ccc;
        border-radius: 4px;
}

.apply-btn {
        margin-top: 1rem;
        width: 100%;
        padding: .5rem;
        background: #28A745;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
}

/* Results */
.results {
        flex: 1;
        overflow-x: auto;
}

.results table {
        width: 100%;
        border-collapse: collapse;
}

.results th,
.results td {
        padding: .6rem .8rem;
        border: 1px solid #ddd;
        text-align: left;
}

.results th {
        background: #f1f1f1;
}

.results a {
        color: #007BFF;
        text-decoration: none;
}

.pagination {
        margin: 1rem 0;
        text-align: center;
}

.pagination a {
        margin: 0 .5rem;
        color: #007BFF;
        text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
        .pub-body {
                flex-direction: column;
        }

        .filters {
                width: 100%;
        }
}

.sidebarCancel,
.sidebar-open-btn {
        display: none;
}
