:root {
    --primary: #991b1b;        /* Đỏ cờ / Đỏ đô trang trọng */
    --primary-dark: #7f1d1d;
    --primary-light: #b91c1c;
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    
    --secondary: #1e3a8a;      /* Xanh đậm chính quyền */
    --secondary-50: #eff6ff;
    
    --accent: #d97706;         /* Vàng hoàng gia / gold */
    --accent-light: #fef3c7;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Merriweather', "Times New Roman", Georgia, serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--slate-800);
    background-color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-utility-bar {
    background: #fde047;
    color: #c90a15;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-left-info {
    display: flex;
    align-items: center;
    gap: 18px;
}
.live-clock {
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-links a {
    color: #c90a15;
    margin-left: 14px;
}
.top-links a:hover {
    color: #000;
    text-decoration: underline;
}

/* BRAND HEADER */
.main-header {
    background: linear-gradient(135deg, #b31217 0%, #c90914 45%, #e02424 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 4px 20px rgba(201, 9, 20, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.main-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.16) 0%, transparent 60%);
    pointer-events: none;
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    position: relative;
    z-index: 2;
}
.brand-identity {
    display: flex;
    align-items: center;
    gap: 22px;
}
.brand-emblem {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.brand-emblem:hover {
    transform: scale(1.04);
}
.brand-text-block {
    display: flex;
    flex-direction: column;
}
.brand-sup {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fde047;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.brand-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.brand-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* NAVIGATION BAR */
.main-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}
.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: all 0.2s ease;
}
.nav-menu a:hover {
    color: var(--primary);
    background: var(--slate-50);
}
.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-50);
}
.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
}
.nav-quick-search {
    display: flex;
    align-items: center;
}
.btn-rss {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-rss:hover {
    background: #ffedd5;
    color: #9a3412;
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */
.page-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 25px;
    margin-top: 0;
    margin-bottom: 40px;
}

/* SIDEBAR CARDS */
.sidebar-panel {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}
.panel-header {
    background: linear-gradient(to right, var(--slate-50), #ffffff);
    padding: 14px 18px;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* YEAR SELECTOR & GAZETTE TREE */
.year-select-wrap {
    padding: 14px 18px 10px;
    background: #fafafa;
    border-bottom: 1px solid var(--slate-100);
}
.modern-select {
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    background: #fff;
    border: 1.5px solid var(--slate-300);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}
.modern-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.1);
}

.gazette-tree {
    padding: 8px 0;
    max-height: 480px;
    overflow-y: auto;
    transition: opacity 0.2s ease;
}
.gazette-tree.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.no-issues-tree {
    padding: 16px 18px;
    text-align: center;
    color: var(--slate-500);
    font-size: 13px;
}
.month-group {
    border-bottom: 1px solid var(--slate-100);
}
.month-group:last-child {
    border-bottom: none;
}
.month-trigger {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13px;
    color: var(--slate-700);
    background: #fafafa;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.month-trigger:hover {
    background: var(--slate-100);
    color: var(--primary);
}
.month-trigger i {
    color: var(--primary);
    margin-right: 7px;
}
.month-badge {
    background: var(--slate-200);
    color: var(--slate-700);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}
.issue-items {
    padding: 4px 10px;
    background: #ffffff;
}
.issue-items.is-collapsed {
    display: none;
}
.issue-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 3px 0;
    border-radius: var(--radius-sm);
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.issue-link i {
    margin-right: 6px;
    opacity: 0.75;
}
.issue-link:hover {
    background: var(--slate-100);
    color: var(--primary);
    transform: translateX(3px);
}
.issue-link.active {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 700;
    border-left: 3px solid var(--primary);
}
.issue-date-tag {
    font-size: 11px;
    color: var(--slate-400);
    font-weight: normal;
}
.issue-link.active .issue-date-tag {
    color: var(--primary-light);
}

/* LINK TREE */
.links-list {
    list-style: none;
    padding: 8px 14px;
}
.links-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--slate-700);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.links-list li a:hover {
    background: var(--slate-50);
    color: var(--secondary);
    padding-left: 14px;
}
.icon-red {
    color: #dc2626;
}
.icon-amber {
    color: #d97706;
}
.icon-blue {
    color: #2563eb;
}
.icon-emerald {
    color: #059669;
}
.icon-purple {
    color: #7c3aed;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}
.stat-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}
.stat-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.stat-val .stat-icon-online {
    color: #16a34a;
    font-size: 14px;
    margin-right: 4px;
}
.stat-val .stat-icon-views {
    color: #2563eb;
    font-size: 14px;
    margin-right: 4px;
}
.stat-label {
    font-size: 11px;
    color: var(--slate-500);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ==========================================================================
   CENTER MAIN CONTENT
   ========================================================================== */
.main-content-panel {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    min-height: 700px;
    transition: opacity 0.2s ease;
}
.main-content-panel.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.toc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 4px;
}
.toc-toolbar-note {
    font-size: 13px;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.toc-toolbar-note i {
    color: #22c55e;
    font-size: 15px;
}
.toc-sign-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 12px;
    font-weight: 600;
}
.toc-sign-badge i {
    color: #059669;
    font-size: 12px;
}
.toc-sign-meta {
    font-weight: 400;
    color: #047857;
}
.btn-download-full {
    padding: 7px 18px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c90914;
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.btn-download-full:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* SEARCH COMPONENT (TÁCH RIÊNG TRÊN CÙNG) */
.search-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.search-bar-row {
    display: flex;
    gap: 10px;
}
.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input-wrap svg,
.search-input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    font-size: 15px;
    color: var(--slate-400);
    fill: var(--slate-400);
}
.search-input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    font-size: 14px;
    border: 1.5px solid var(--slate-300);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.12);
}
.btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(153, 27, 27, 0.3);
}
.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.btn-toggle-adv {
    background: transparent;
    border: 1px dashed var(--slate-300);
    color: var(--slate-600);
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-toggle-adv .fa-chevron-down {
    font-size: 11px;
}
.btn-toggle-adv:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

/* ADVANCED SEARCH DRAWER */
.adv-search-drawer {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--slate-200);
}
.adv-search-drawer.is-open {
    display: block;
}
.adv-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-600);
    margin-bottom: 5px;
}
.form-field label i {
    color: var(--primary);
    margin-right: 4px;
}
.form-field input, .form-field select {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    outline: none;
    background: #fff;
}
.form-field input:focus, .form-field select:focus {
    border-color: var(--primary);
}

.toc-sheet-card {
    background: #ffffff;
    padding: 30px 40px;
    color: #1e293b;
    position: relative;
}

/* Dòng trên cùng: Số ... (trái, đỏ) & Ngày xuất bản (phải, đỏ) */
.toc-sheet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 17px;
    font-weight: 700;
}
.toc-top-code {
    color: #cc0000;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.toc-top-date {
    color: #cc0000;
    font-size: 17px;
    font-weight: 600;
}

/* Tiêu đề MỤC LỤC lớn ở giữa kèm thanh gạch đỏ */
.toc-sheet-title-box {
    text-align: center;
    margin: 15px 0 25px 0;
}
.toc-sheet-title {
    color: #cc0000;
    font-family: var(--font-sans);
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
    margin: 0;
}
.toc-sheet-underline {
    width: 140px;
    height: 4px;
    background-color: #cc0000;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Chữ "Trang" ở góc phải */
.toc-sheet-page-label {
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 15px;
    padding-right: 15px;
}

/* Các tiêu đề nhóm và cơ quan ở chính giữa */
.toc-group-heading {
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 30px 0 14px 0;
}
.toc-section + .toc-section .toc-group-heading {
    margin-top: 35px;
}
.toc-agency-heading {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 18px 0;
}
.toc-items-table + .toc-agency-heading {
    margin-top: 25px;
}

/* Bảng văn bản phẳng, sạch, xen kẽ dòng như hình mẫu */
.toc-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.toc-items-table tr {
    transition: background 0.15s ease;
}
.toc-items-table tr.row-even {
    background-color: #f8fafc;
}
.toc-items-table tr.row-odd {
    background-color: #ffffff;
}
.toc-items-table tr:hover {
    background-color: #f1f5f9;
}
.toc-items-table td {
    padding: 14px 16px;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.55;
    color: #1e293b;
    border: none;
}
.toc-col-date {
    width: 130px;
    color: #334155;
    white-space: nowrap;
    font-weight: 500;
}
.toc-col-text {
    text-align: justify;
    padding-right: 25px !important;
}
.toc-doc-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    display: inline;
}
.toc-doc-link:hover {
    color: var(--primary);
    text-decoration: underline;
}
.toc-col-page {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: #334155;
    padding-right: 15px !important;
}

/* ==========================================================================
   GROUP / CATEGORY DOCUMENTS TABLE (VIEWCAT)
   ========================================================================== */
.group-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--primary);
    gap: 12px;
    flex-wrap: wrap;
}
.group-doc-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.group-doc-count {
    font-size: 13px;
    color: var(--slate-600);
    background: var(--slate-100);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
}
.group-doc-count strong {
    color: var(--primary);
    font-weight: 700;
}
.group-doc-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    background: #ffffff;
}
.group-doc-table {
    width: 100%;
    border-collapse: collapse;
}
.group-doc-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #eaeff5 100%);
    color: var(--secondary);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    padding: 12px 14px;
    border-bottom: 1.5px solid var(--slate-300);
    border-right: 1px solid var(--slate-300);
}
.group-doc-table thead th:last-child {
    border-right: none;
}
.group-doc-table tbody td {
    padding: 12px 14px;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.55;
    color: var(--slate-800);
    border-bottom: 1px solid var(--slate-200);
    border-right: 1px solid var(--slate-200);
}
.group-doc-table tbody td:last-child {
    border-right: none;
}
.group-doc-table tbody tr:last-child td {
    border-bottom: none;
}
.group-doc-table tbody tr.row-even {
    background-color: var(--slate-50);
}
.group-doc-table tbody tr.row-odd {
    background-color: #ffffff;
}
.group-doc-table tbody tr:hover {
    background-color: var(--primary-50);
}
.group-doc-table .col-code {
    width: 155px;
    white-space: nowrap;
}
.group-doc-table .doc-code-link {
    color: var(--primary);
    font-weight: 700;
}
.group-doc-table .doc-code-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.group-doc-table .col-date {
    width: 125px;
    text-align: center;
    white-space: nowrap;
    color: var(--slate-700);
    font-weight: 500;
}
.group-doc-table .col-org {
    width: 210px;
    color: var(--slate-700);
    font-weight: 500;
}
.group-doc-table .col-abstract {
    text-align: justify;
}
.group-doc-table .doc-abstract-link {
    color: var(--slate-800);
    font-weight: 500;
}
.group-doc-table .doc-abstract-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* PAGINATION */
.congbao-pagination {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}
.congbao-pagination ul.pagination {
    display: inline-flex;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.congbao-pagination ul.pagination li a,
.congbao-pagination ul.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    background: #ffffff;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.congbao-pagination ul.pagination li a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}
.congbao-pagination ul.pagination li.active a,
.congbao-pagination ul.pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}
.congbao-pagination ul.pagination li.disabled a,
.congbao-pagination ul.pagination li.disabled span {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   UTILITIES, BREADCRUMBS & STATIC PAGE MODULE (/gioi-thieu.html)
   ========================================================================== */
.hidden {
    display: none !important;
}
.clear,
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-bold {
    font-weight: 700;
}
.margin-bottom-lg {
    margin-bottom: 18px;
}

/* BREADCRUMBS (.third-nav) */
.third-nav {
    max-width: 1240px;
    margin: 16px auto 0;
    padding: 0 20px;
}
.breadcrumbs-wrap {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    box-shadow: var(--shadow-sm);
}
.breadcrumbs-wrap .display,
.breadcrumbs-wrap .subs-breadcrumbs {
    display: none;
}
.breadcrumbs-wrap .temp-breadcrumbs {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 13px;
}
.breadcrumbs-wrap .temp-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--slate-600);
    font-weight: 500;
}
.breadcrumbs-wrap .temp-breadcrumbs li + li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--slate-400);
    margin-right: 8px;
    font-size: 11px;
}
.breadcrumbs-wrap .temp-breadcrumbs li a {
    color: var(--slate-600);
    font-weight: 600;
}
.breadcrumbs-wrap .temp-breadcrumbs li a:hover {
    color: var(--primary);
}
.breadcrumbs-wrap .temp-breadcrumbs li:last-child a {
    color: var(--primary);
    font-weight: 700;
}

/* PAGE MODULE CARD (/gioi-thieu.html) */
.page.panel,
.page .panel {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 24px 0 28px;
    overflow: hidden;
}
.page .panel-body {
    padding: 32px 38px;
}
.page h1.title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.4;
    padding-bottom: 16px;
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--primary);
}
.page .social-share-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
}
.page .social-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.page .social-share-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.page .social-share-facebook,
.page .social-share-twitter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.page .social-share-facebook {
    background: #1877f2;
}
.page .social-share-twitter {
    background: #0f172a;
}
.page .social-share-facebook:hover,
.page .social-share-twitter:hover {
    opacity: 0.9;
}
.page .hometext {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-700);
    line-height: 1.7;
    padding: 16px 20px;
    background: var(--primary-50);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 22px;
}
.page figure.article {
    margin: 0 0 20px 0;
}
.page figure.article.left {
    float: left;
    margin: 0 20px 14px 0;
}
.page figure.article.center {
    text-align: center;
}
.page .img-thumbnail {
    max-width: 100%;
    height: auto;
    padding: 4px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
}
.page figure figcaption {
    font-size: 13px;
    color: var(--slate-500);
    font-style: italic;
    margin-top: 6px;
    text-align: center;
}
.page #page-bodyhtml,
.page .bodytext {
    font-size: 15px;
    line-height: 1.8;
    color: var(--slate-800);
}
.page #page-bodyhtml p,
.page .bodytext p {
    margin-bottom: 14px;
    text-align: justify;
}
.page #page-bodyhtml h2,
.page #page-bodyhtml h3,
.page #page-bodyhtml h4,
.page .bodytext h2,
.page .bodytext h3,
.page .bodytext h4 {
    color: var(--slate-900);
    font-weight: 700;
    margin: 22px 0 10px;
    line-height: 1.4;
}
.page #page-bodyhtml ul,
.page #page-bodyhtml ol,
.page .bodytext ul,
.page .bodytext ol {
    margin: 0 0 16px 24px;
}
.page #page-bodyhtml li,
.page .bodytext li {
    margin-bottom: 6px;
}
.page #page-bodyhtml table,
.page .bodytext table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.page #page-bodyhtml table th,
.page #page-bodyhtml table td,
.page .bodytext table th,
.page .bodytext table td {
    border: 1px solid var(--slate-300);
    padding: 10px 14px;
}
.page #page-bodyhtml img,
.page .bodytext img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
.page .nv-list-item {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page .nv-list-item li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--slate-200);
    display: flex;
    align-items: center;
    gap: 8px;
}
.page .nv-list-item li:last-child {
    border-bottom: none;
}
.page .nv-list-item li i {
    color: var(--primary);
    font-size: 12px;
}
.page .nv-list-item li a {
    color: var(--slate-700);
    font-weight: 600;
}
.page .nv-list-item li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* ADMIN ACTION BUTTONS & ALERTS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn + .btn {
    margin-left: 8px;
}
.btn-primary {
    background: var(--secondary);
    color: #ffffff;
}
.btn-primary:hover {
    background: #172554;
    color: #ffffff;
}
.btn-danger {
    background: var(--primary);
    color: #ffffff;
}
.btn-danger:hover {
    background: var(--primary-dark);
    color: #ffffff;
}
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
}
.alert-danger {
    background: var(--primary-50);
    color: var(--primary-dark);
    border: 1px solid var(--primary-100);
}
.alert-info {
    background: var(--secondary-50);
    color: var(--secondary);
    border: 1px solid #bfdbfe;
}
.alert-warning {
    background: var(--accent-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ==========================================================================
   DOCUMENT DETAIL PAGE (.congbao-detail-box) & STATUS BADGES
   ========================================================================== */
.congbao-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.congbao-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.congbao-badge.badge-active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.congbao-badge.badge-active::before {
    background: #10b981;
}
.congbao-badge.badge-part-expired {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.congbao-badge.badge-part-expired::before {
    background: #f59e0b;
}
.congbao-badge.badge-expired {
    background: var(--primary-50);
    color: var(--primary-dark);
    border: 1px solid var(--primary-100);
}
.congbao-badge.badge-expired::before {
    background: var(--primary);
}
.congbao-badge.badge-pending {
    background: var(--secondary-50);
    color: var(--secondary);
    border: 1px solid #bfdbfe;
}
.congbao-badge.badge-pending::before {
    background: var(--secondary-light);
}

.congbao-detail-box {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Alert when document is replaced */
.detail-alert-danger {
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--primary-dark);
}
.detail-alert-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 6px;
}
.detail-alert-list {
    margin: 0 0 0 22px;
    padding: 0;
}
.detail-alert-list li {
    margin-bottom: 4px;
}
.detail-alert-list li a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
}
.detail-alert-list li a:hover {
    color: var(--primary);
}

/* Alert when document is pending approval (admin preview) */
.detail-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 12px;
}
.detail-alert-warning i {
    font-size: 20px;
    color: #f59e0b;
    flex-shrink: 0;
}
.detail-alert-warning .alert-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Document Header */
.doc-header {
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}
.doc-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.doc-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.doc-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--secondary);
    background: var(--secondary-50);
    border: 1px solid #dbeafe;
    padding: 3px 10px;
    border-radius: 4px;
}
.doc-code-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.3;
}
.doc-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.doc-quick-tools,
.detail-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-doc-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
    background: #ffffff;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-doc-tool i {
    color: var(--slate-500);
}
.btn-doc-tool:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}
.btn-doc-tool:hover i {
    color: var(--primary);
}
.doc-abstract {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.65;
    padding: 14px 18px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Section Card (Metadata, Files, PDF Viewer) */
.detail-section-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.detail-section-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 18px;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.detail-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-800);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.detail-section-title i {
    color: var(--primary);
    font-size: 15px;
}

/* Metadata Table */
.detail-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.congbao-meta-table {
    width: 100%;
    border-collapse: collapse;
}
.congbao-meta-table tbody tr {
    border-bottom: 1px solid var(--slate-200);
}
.congbao-meta-table tbody tr:last-child {
    border-bottom: none;
}
.congbao-meta-table td {
    padding: 11px 16px;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: middle;
}
.congbao-meta-table td.meta-label {
    width: 210px;
    background: var(--slate-50);
    color: var(--slate-600);
    font-weight: 600;
    border-right: 1px solid var(--slate-200);
    white-space: nowrap;
}
.congbao-meta-table td.meta-value {
    color: var(--slate-800);
    background: #ffffff;
}
.congbao-meta-table .meta-code {
    color: var(--primary);
    font-size: 15px;
}
.congbao-meta-table .meta-link {
    color: var(--secondary);
    font-weight: 600;
}
.congbao-meta-table .meta-link:hover {
    color: var(--primary);
    text-decoration: underline;
}
.congbao-meta-table .signer-pos {
    color: var(--slate-500);
    font-size: 13px;
}
.congbao-meta-table .meta-issue-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.congbao-meta-table .meta-issue-badge:hover {
    background: var(--primary);
    color: #ffffff;
}
.congbao-meta-table .meta-issue-page {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 4px 10px;
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* Attached Files */
.detail-files-list {
    display: flex;
    flex-direction: column;
}
.detail-file-item {
    border-bottom: 1px solid var(--slate-200);
}
.detail-file-item:last-child {
    border-bottom: none;
}
.detail-file-row {
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.detail-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.detail-file-icon {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}
.detail-file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-800);
    word-break: break-all;
}
.detail-file-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-preview-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    background: var(--secondary-50);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-preview-file:hover,
.btn-preview-file.is-active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}
.btn-download-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.btn-download-file i {
    color: var(--primary);
    font-size: 13px;
}
.btn-download-file:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(185, 28, 28, 0.2);
}
.btn-download-file:hover i {
    color: #ffffff;
}
.file-preview-collapse {
    display: none;
    border-top: 1px solid var(--slate-200);
    background: var(--slate-800);
    height: 700px;
}
.file-preview-collapse.is-open {
    display: block;
}
.file-preview-collapse iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Related / Replaced Documents */
.congbao-relation-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.congbao-relation-box:empty {
    display: none;
}
.congbao-relation-group {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}
.congbao-relation-group.rel-group-replaces {
    background: #fffafa;
    border-color: var(--primary-100);
}
.congbao-relation-group .rel-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
}
.congbao-relation-group.rel-group-replaces .rel-heading {
    color: var(--primary);
}
.congbao-relation-group .rel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.congbao-relation-group .rel-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--slate-200);
    font-size: 14px;
    line-height: 1.5;
}
.congbao-relation-group .rel-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.congbao-relation-group .rel-list li a {
    color: var(--slate-800);
}
.congbao-relation-group .rel-list li a strong {
    color: var(--primary);
}
.congbao-relation-group .rel-list li a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.congbao-relation-group .rel-date {
    color: var(--slate-500);
    font-size: 12px;
    margin-left: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: #fde047;
    color: #981b1b;
    padding: 45px 0 25px;
    border-top: 4px solid var(--primary);
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-info h4 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-info p {
    margin-bottom: 8px;
    line-height: 1.6;
}
.footer-info p i {
    width: 18px;
    text-align: center;
    margin-right: 4px;
}
.footer-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
}
.cert-badge {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}
.cert-badge img {
    height: 48px;
    width: auto;
}
.footer-cert-desc {
    font-size: 11px;
    color: #64748b;
    text-align: right;
    line-height: 1.5;
}
.footer-bottom-bar {
    border-top: 1px solid rgb(231 206 72);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.chromeframe {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: 0;
    width: 100% !important;
    z-index: 99999999999999 !important;
    background-color: #ffff00 !important;
    color: #000 !important;
    height: 25px;
    line-height: 25px;
    padding: 0.2em 0;
    text-align: center !important;
}

#timeoutsess {
    display: none;
}

#timeoutsess a {
    color: #2f70a7 !important;
}


/* ==========================================================================
   RESPONSIVE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 28px;
    }
    .page-layout .main-content-panel {
        order: 1;
        min-height: auto;
    }
    .page-layout .sidebar-col {
        order: 2;
    }
    .gazette-tree {
        max-height: 320px;
    }
    .adv-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .toc-sheet-card {
        padding: 20px 18px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-badges {
        align-items: flex-start;
    }
    .footer-cert-desc {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Top utility bar */
    .top-utility-bar {
        padding: 5px 0;
        font-size: 11px;
    }
    .top-bar-content {
        flex-wrap: wrap;
        gap: 6px;
    }
    .top-links {
        display: none;
    }

    /* Header & Brand */
    .header-wrapper {
        padding: 14px 0;
    }
    .brand-identity {
        gap: 12px;
    }
    .brand-emblem {
        width: 56px;
        height: 56px;
    }
    .brand-sup {
        font-size: 11px;
        letter-spacing: 0.8px;
    }
    .brand-title {
        font-size: 20px;
        line-height: 1.2;
    }
    .brand-sub {
        font-size: 11px;
        line-height: 1.35;
        margin-top: 3px;
    }

    /* Navigation bar: horizontal touch scroll */
    .nav-content {
        gap: 8px;
    }
    .nav-menu {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2px;
    }
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    .nav-menu li {
        flex-shrink: 0;
    }
    .nav-menu a {
        padding: 11px 13px;
        font-size: 13px;
        gap: 6px;
        white-space: nowrap;
    }
    .nav-quick-search {
        display: none;
    }

    /* Breadcrumbs */
    .third-nav {
        padding: 0 12px;
        margin-top: 12px;
    }
    .breadcrumbs-wrap {
        padding: 8px 12px;
    }
    .breadcrumbs-wrap .temp-breadcrumbs {
        font-size: 12px;
    }

    /* Search Card */
    .search-card {
        padding: 14px;
        margin-top: 14px;
        margin-bottom: 16px;
        border-radius: var(--radius-md);
    }
    .search-bar-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .search-input-wrap {
        flex: 1 1 100%;
    }
    .search-input {
        padding: 10px 12px 10px 38px;
        font-size: 14px;
    }
    .btn-search,
    .btn-toggle-adv {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }
    .adv-search-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .form-field input,
    .form-field select {
        min-height: 38px;
        font-size: 14px;
    }

    /* Main Content Panel & TOC */
    .main-content-panel {
        padding: 14px;
        border-radius: var(--radius-md);
    }
    .toc-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0;
    }
    .toc-toolbar-note {
        font-size: 12.5px;
    }
    .btn-download-full {
        justify-content: center;
        width: 100%;
        padding: 9px 14px;
    }
    .toc-sheet-card {
        padding: 10px 2px;
    }
    .toc-sheet-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 16px;
    }
    .toc-top-code,
    .toc-top-date {
        font-size: 15px;
    }
    .toc-sheet-title-box {
        margin: 10px 0 18px;
    }
    .toc-sheet-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    .toc-sheet-underline {
        width: 100px;
        height: 3px;
    }
    .toc-sheet-page-label {
        font-size: 13px;
        padding-right: 6px;
        margin-bottom: 10px;
    }
    .toc-group-heading {
        font-size: 15.5px;
        margin: 20px 0 10px;
        line-height: 1.4;
    }
    .toc-agency-heading {
        font-size: 14.5px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    .toc-items-table td {
        padding: 10px 8px;
        font-size: 13.5px;
        line-height: 1.5;
    }
    .toc-col-date {
        width: 86px;
        font-size: 12.5px;
    }
    .toc-col-text {
        text-align: left;
        padding-right: 8px !important;
    }
    .toc-col-page {
        width: 38px;
        padding-right: 6px !important;
        font-size: 13px;
    }

    /* Group / Search Header */
    .group-doc-header {
        padding-bottom: 10px;
        margin-bottom: 14px;
    }
    .group-doc-title {
        font-size: 15.5px;
    }
    .group-doc-count {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* Detail Page */
    .doc-code-title {
        font-size: 18px;
    }
    .doc-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .doc-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .doc-abstract {
        font-size: 14px;
        padding: 12px 14px;
    }
    .congbao-meta-table td {
        padding: 9px 12px;
        font-size: 13.5px;
    }
    .congbao-meta-table td.meta-label {
        width: 128px;
        white-space: normal;
        font-size: 13px;
    }
    .detail-file-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }
    .detail-file-actions {
        width: 100%;
    }
    .btn-preview-file,
    .btn-download-file {
        flex: 1;
        justify-content: center;
    }
    .file-preview-collapse {
        height: 460px;
    }

    /* Static Page (/gioi-thieu.html) */
    .page.panel,
    .page .panel {
        margin: 14px 0 20px;
        border-radius: var(--radius-md);
    }
    .page .panel-body {
        padding: 18px 14px;
    }
    .page h1.title {
        font-size: 18px;
        padding-bottom: 12px;
        margin-bottom: 14px;
    }
    .page .hometext,
    .page #page-bodyhtml,
    .page .bodytext {
        font-size: 14px;
    }
    .page #page-bodyhtml p,
    .page .bodytext p {
        text-align: left;
    }

    /* Footer */
    .main-footer {
        padding: 28px 0 18px;
    }
    .footer-info h4 {
        font-size: 15px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    /* Transform 4-column category/search table into clean mobile cards */
    .group-doc-table-wrap {
        border: none;
        background: transparent;
        overflow-x: visible;
    }
    .group-doc-table,
    .group-doc-table tbody {
        display: block;
        width: 100%;
    }
    .group-doc-table thead {
        display: none;
    }
    .group-doc-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px 10px;
        padding: 13px 14px;
        margin-bottom: 10px;
        border: 1px solid var(--slate-200);
        border-left: 3px solid var(--primary);
        border-radius: var(--radius-sm);
        background: #ffffff !important;
        box-shadow: var(--shadow-sm);
    }
    .group-doc-table tbody tr:last-child {
        margin-bottom: 0;
        border-bottom: 1px solid var(--slate-200);
    }
    .group-doc-table tbody td {
        border: none;
        padding: 0;
    }
    .group-doc-table .col-code {
        order: 1;
        width: auto;
        font-size: 14px;
    }
    .group-doc-table .col-date {
        order: 2;
        width: auto;
        font-size: 12px;
        background: var(--slate-100);
        padding: 2px 8px;
        border-radius: 12px;
    }
    .group-doc-table .col-org {
        order: 3;
        width: 100%;
        font-size: 12.5px;
        color: var(--slate-500);
    }
    .group-doc-table .col-org::before {
        content: "\f19c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-right: 5px;
        font-size: 11px;
        color: var(--slate-400);
    }
    .group-doc-table .col-abstract {
        order: 4;
        width: 100%;
        text-align: left;
        font-size: 13.5px;
        line-height: 1.5;
        padding-top: 4px;
        border-top: 1px dashed var(--slate-200);
    }
}

@media (max-width: 480px) {
    .brand-emblem {
        width: 48px;
        height: 48px;
    }
    .brand-title {
        font-size: 18px;
    }
    .brand-sub {
        display: none;
    }
    .toc-items-table tr {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 10px 8px;
        border-bottom: 1px solid var(--slate-200);
    }
    .toc-items-table td {
        padding: 0;
    }
    .toc-col-date {
        order: 1;
        width: auto;
        font-size: 12px;
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 4px;
    }
    .toc-col-page {
        order: 2;
        width: auto;
        font-size: 12px;
        background: var(--slate-100);
        padding: 1px 7px !important;
        border-radius: 10px;
        margin-bottom: 4px;
    }
    .toc-col-page::before {
        content: "Tr. ";
        font-weight: 500;
        color: var(--slate-500);
    }
    .toc-sheet-page-label {
        display: none;
    }
    .toc-col-text {
        order: 3;
        width: 100%;
        padding-right: 0 !important;
        font-size: 13.5px;
    }
}

/* ==========================================================================
   ISSUES LIST & ISSUE DETAIL EXTRAS (.congbao-issue-grid, .toc-toolbar-actions)
   ========================================================================== */
.toc-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.issue-pdf-collapse {
    margin-bottom: 18px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.toc-sheet-note {
    text-align: center;
    font-size: 13.5px;
    font-style: italic;
    color: var(--slate-600);
    margin: -8px 0 14px;
}
.issue-year-filter-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.issue-year-filter-select {
    width: auto;
    min-width: 140px;
    padding: 6px 32px 6px 12px;
    font-size: 13px;
}
.congbao-issue-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.congbao-issue-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.congbao-issue-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.issue-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.issue-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.issue-card-title-wrap {
    min-width: 0;
    flex: 1;
}
.issue-card-code {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.3;
    margin-bottom: 4px;
}
.issue-card-code:hover {
    color: var(--primary);
}
.issue-card-date {
    font-size: 12.5px;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 5px;
}
.issue-card-body {
    padding-top: 10px;
    border-top: 1px dashed var(--slate-200);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.issue-card-stat {
    font-size: 13px;
    color: var(--slate-700);
    display: flex;
    align-items: center;
    gap: 6px;
}
.issue-card-stat i {
    color: var(--primary);
}
.issue-card-stat strong {
    color: var(--primary);
}
.issue-card-note {
    font-size: 12.5px;
    color: var(--slate-500);
    font-style: italic;
}
.issue-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-issue-toc {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    background: var(--secondary-50);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.btn-issue-toc:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}
.btn-issue-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.btn-issue-pdf:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

@media (max-width: 992px) {
    .congbao-issue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .congbao-issue-grid {
        grid-template-columns: 1fr;
    }
    .toc-toolbar-actions {
        width: 100%;
    }
    .toc-toolbar-actions .btn-preview-file,
    .toc-toolbar-actions .btn-download-full {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   PRINT STYLES (.congbao-detail-box ONLY)
   ========================================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .top-utility-bar,
    .main-header,
    .main-nav,
    .third-nav,
    .search-card,
    .sidebar-col,
    .main-footer,
    #admin-toolbar,
    .doc-quick-tools,
    .detail-toolbar-actions {
        display: none !important;
    }
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .page-layout {
        display: block !important;
        margin: 0 !important;
    }
    .main-content-panel {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
    }
    .congbao-detail-box {
        width: 100% !important;
    }
}