/* Service Container */
.service-container {
    background: #ffffff;
    min-height: 100vh;
}

/* Hero Section */
.service-hero {
    background: #0051a5;
    color: white;
    position: relative;
}

/* Main Content */
.service-content {
    padding: 30px 0;
    background: #f5f5f5;
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.results-header {
    background: #0051a5;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

    .results-title i {
        margin-right: 10px;
    }

.results-count {
    font-size: 15px;
    opacity: 0.95;
}

    .results-count strong {
        font-size: 18px;
        font-weight: 700;
    }

/* Table Container with Fixed Height */
.table-container {
    height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

    .table-container::-webkit-scrollbar {
        width: 10px;
    }

    .table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: #0051a5;
        border-radius: 5px;
    }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: #003d7a;
        }

/* Table Styles */
.table-services {
    margin-bottom: 0;
    width: 100%;
}

.thead-sticky {
    position: sticky;
    top: 0;
    background: white;
    color: black;
    z-index: 10;
}

    .thead-sticky th {
        border: none;
        border: none;
        padding: 10px 20px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

/* Group Header Row */
.group-header-row {
    background: linear-gradient(135deg, #0051a5 0%, #003d7a 100%);
    border: none;
}

    .group-header-row td {
        padding: 0 !important;
        border: none;
    }

.group-header {
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .group-header i {
        font-size: 18px;
        color: #ffd700;
    }

/* Service Row */
.service-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
    background: white;
}

    .service-row:hover {
        background-color: #f8f9fa;
    }

    .service-row td {
        padding: 10px 20px;
        vertical-align: middle;
        font-size: 15px;
        color: #333;
    }

        .service-row td:first-child {
            text-align: center;
            font-weight: 600;
            color: #666;
            width: 10%;
        }

        .service-row td:nth-child(2) {
            width: 65%;
        }

        .service-row td:last-child {
            width: 25%;
            text-align: left;
        }

.loading-cell {
    padding: 80px 20px !important;
    color: #666;
}

    .loading-cell .spinner-border {
        width: 3rem;
        height: 3rem;
    }

/* Note Section */
.note-section {
    margin-top: 30px;
}

.note-card {
    background: white;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 5px solid #0051a5;
}

.note-title {
    color: #0051a5;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

    .note-title i {
        margin-right: 10px;
    }

.note-list {
    padding-left: 20px;
    margin: 0;
}

    .note-list li {
        margin-bottom: 12px;
        line-height: 1.6;
        color: #555;
    }

.hotline-link {
    color: #0051a5;
    text-decoration: none;
    font-weight: 700;
}

    .hotline-link:hover {
        text-decoration: underline;
    }

/* Sidebar Filter Widget */
.sidebar-section {
    position: sticky;
    top: 20px;
}

.filter-widget {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #0051a5;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

    .filter-widget-title i {
        margin-right: 10px;
    }

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

    .filter-label i {
        margin-right: 8px;
        color: #0051a5;
    }

.filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

    .filter-input:focus {
        outline: none;
        border-color: #0051a5;
        box-shadow: 0 0 0 3px rgba(0, 81, 165, 0.1);
    }

.search-box-sidebar {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #333;
    transition: all 0.3s;
}

    .filter-select:focus {
        outline: none;
        border-color: #0051a5;
        box-shadow: 0 0 0 3px rgba(0, 81, 165, 0.1);
    }

.btn-search-sidebar {
    width: 100%;
    padding: 14px 24px;
    background: #0051a5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .btn-search-sidebar:hover {
        background: #003d7a;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 81, 165, 0.3);
    }

    .btn-search-sidebar i {
        margin-right: 8px;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

    .empty-state i {
        font-size: 64px;
        margin-bottom: 20px;
        color: #d1d5db;
    }

    .empty-state h4 {
        font-size: 20px;
        margin-bottom: 10px;
        color: #666;
    }

/* Responsive */
@media (max-width: 992px) {
    .results-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .table-container {
        height: 400px;
    }

    .sidebar-section {
        position: static;
        margin-top: 30px;
    }

    /* Đảo thứ tự: sidebar filter lên trên, bảng dịch vụ xuống dưới */
    .service-content .row {
        display: flex;
        flex-direction: column;
    }

    .service-content .col-lg-9 {
        order: 2;
    }

    .service-content .col-lg-3 {
        order: 1;
        margin-top: 0 !important;
    }

    .sidebar-section {
        margin-top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .results-title {
        font-size: 20px;
    }

    .table-services thead th {
        font-size: 12px;
        padding: 12px 10px;
    }

    .service-row td {
        font-size: 13px;
        padding: 12px 10px;
    }

    .group-header {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .results-header {
        padding: 15px 20px;
    }

    .note-card {
        padding: 20px;
    }

    .table-container {
        height: 500px;
    }

    .table-services {
        font-size: 12px;
    }

    .filter-widget {
        padding: 20px;
    }
}
