/* ── Select2 custom styles ── */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    color: #495057 !important;
    padding-left: 10px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}
.select2-container {
    width: 100% !important;
}

/* ── Page heading ── */
.news-detail .clVanban .home-group-title {
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 30px;
    padding-bottom: 2px;
}
.news-detail .clVanban .home-group-title h1 {
    font-size: 18px;
    color: #e70507;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 5px;
}

/* ── Filter card ── */
.filter-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #eef2f5;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    align-items: flex-end;
}
@media (min-width: 992px) {
    .filter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.filter-group {
    display: flex;
    flex-direction: column;
}
.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}
.filter-select {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #495057;
    background-color: #fff;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    width: 100%;
}
.filter-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}
.btn-search {
    height: 38px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.btn-search:hover {
    background-color: #004085;
}
.btn-clear {
    height: 38px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: background-color 0.2s ease;
}
.btn-clear:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

/* ── Price table ── */
.price-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
    min-width: 540px;
}
.price-table thead tr {
    background-color: #f8f9fa;
    color: #212529;
    text-align: center;
    font-weight: bold;
}
.price-table th {
    padding: 8px 15px;
    white-space: nowrap;
    text-align: center;
}
.price-table td {
    padding: 12px 15px;
}
.price-table th,
.price-table td {
    border: 1px solid #dee2e6;
    word-break: break-word;
    overflow-wrap: break-word;
}
.price-table th:first-child,
.price-table td:first-child {
    padding-left: 5px !important;
    padding-right: 5px !important;
}
.price-table tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.15s ease;
}
.price-table tbody tr:hover {
    background-color: #f8f9fa;
}
.price-table tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
}
.price-table tbody tr:nth-of-type(even):hover {
    background-color: #f8f9fa;
}

/* ── Price badge ── */
.price-badge {
    background-color: #e2f0d9;
    color: #385723;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    width: 110px;
    text-align: right;
    box-sizing: border-box;
}

/* ── Empty state ── */
.empty-state {
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #6c757d;
}
.empty-icon {
    font-size: 48px;
    color: #ced4da;
    margin-bottom: 15px;
}

/* ── Responsive table ── */
.table-responsive-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .mine-group-section {
        margin-left: 0 !important;
    }
    .price-table {
        width: 100%;
        min-width: 100%;
    }
    .price-table th,
    .price-table td {
        padding: 8px 8px;
        font-size: 13px;
    }
    .price-table th:nth-child(1),
    .price-table td:nth-child(1) {
        width: 45px !important;
        min-width: 45px;
        max-width: 45px;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .price-table th:nth-child(3),
    .price-table td:nth-child(3) {
        width: 45px !important;
        min-width: 45px;
        max-width: 45px;
        padding-left: 4px;
        padding-right: 4px;
    }
    .price-table th:nth-child(6),
    .price-table td:nth-child(6) {
        width: 120px !important;
        min-width: 120px;
        max-width: 120px;
    }
    .price-table .col-hide-mobile {
        display: none;
    }
    .price-table th.col-status,
    .price-table td.col-status {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
    }
    .price-badge {
        width: auto;
        min-width: 80px;
        font-size: 12px;
        padding: 3px 8px;
    }
    .price-table td:nth-child(6) .price-badge {
        width: 100%;
        min-width: 0;
        padding-left: 6px;
        padding-right: 6px;
    }
    .pagination {
        flex-wrap: nowrap !important;
        justify-content: center !important;
        margin-left: auto;
        margin-right: auto;
        display: flex !important;
    }
    .pagination .page-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* ── Stats block ── */
.stats-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
}
.stats-col {
    flex: 1;
    padding-right: 15px;
    border-right: 1px solid #e2e8f0;
}
.stats-col:last-child {
    border-right: none;
    padding-right: 0;
}

@media (max-width: 1024px) {
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    .stats-col {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 15px;
    }
    .stats-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .price-table {
        min-width: 780px !important;
    }
}
