body {
    padding-top: 70px;
    padding-bottom: 20px;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Thẻ thống kê trên trang chủ */
.stat-box {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.stat-box .stat-number {
    font-size: 30px;
    font-weight: bold;
    color: #005AA9;
    display: block;
}

.stat-box .stat-label {
    color: #555;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

.navbar-text {
    margin-right: 10px;
}

/* ==========================================================================
   CỔNG THÔNG TIN CÔNG CỘNG
   ========================================================================== */
.public-body {
    background: #f4f6f9;
    padding-top: 0;
}

.public-content {
    min-height: 480px;
    padding-top: 20px;
    padding-bottom: 30px;
}

/* ═══════════════ THANH TRÊN CÙNG HIỆN ĐẠI ═══════════════ */
.public-topbar {
    background: linear-gradient(135deg, #002a52 0%, #004A85 40%, #005AA9 100%);
    padding: 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 16px;
}

/* Logo + tên đơn vị */
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-logo-box {
    width: 70px; height: 70px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.topbar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*padding: 4px;*/
    background: #fff;
    border-radius: 10px;
}

/* Xem trước logo trong quản trị */
.logo-preview-box {
    display: inline-block;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    min-height: 50px;
    min-width: 120px;
    vertical-align: middle;
}

.logo-preview-img {
    max-height: 90px;
    max-width: 220px;
}

.topbar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-unit-name {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-sub {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    margin-top: 2px;
}

/* Thông tin liên hệ bên phải */
.topbar-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.topbar-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    white-space: nowrap;
}

.topbar-info-item i {
    font-size: 11px;
    opacity: .6;
}

/* Hotline trên topbar (banner xanh phía trên) */
.topbar-hotline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}

.topbar-hotline i {
    font-size: 13px;
    color: #ffd76a;
}

.topbar-hotline-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
}

.topbar-hotline-number {
    letter-spacing: .02em;
}

.topbar-hotline:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.45);
    color: #fff !important;
}

.topbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.2);
}

.topbar-login {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    padding: 5px 12px;
    border-radius: 6px;
    transition: all .2s;
    white-space: nowrap;
}

.topbar-login:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.4);
}

/* Mobile */
@media (max-width: 991px) {
    .topbar-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 8px 0;
        gap: 8px;
    }
    .topbar-info {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    .topbar-info-item { font-size: 11px; }
    .topbar-divider { display: none; }
    .topbar-hotline { font-size: 13px; padding: 5px 12px; }
}

@media (max-width: 576px) {
    .topbar-logo-box { width: 50px; height: 50px; font-size: 22px; border-radius: 11px; }
    .topbar-unit-name { font-size: 14px; }
    .topbar-sub { font-size: 11px; }
    .topbar-login { font-size: 12px; padding: 4px 10px; }
}

/* ═══════════════ MENU ĐIỀU HƯỚNG ═══════════════ */
.public-navbar {
    border-radius: 0;
    border: none;
    margin-bottom: 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    min-height: 54px;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow .25s ease;
}

/* Dải gradient VNPT ở mép dưới menu */
.public-navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #003a6e, #00a3e0 50%, #003a6e);
    opacity: .9;
    pointer-events: none;
}

.public-navbar.navbar-stuck {
    box-shadow: 0 4px 20px rgba(0,42,82,.18);
}

.public-navbar .navbar-nav {
    margin: 0;
}

/* Desktop: menu nằm trên 1 hàng, không rớt dòng */
@media (min-width: 768px) {
    .public-navbar .navbar-collapse {
        padding: 5px;
        display: flex !important; /* thắng display:block!important của Bootstrap 3 */
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }
    .public-navbar .navbar-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
    }
    .public-navbar .navbar-nav > li { flex-shrink: 0; }
    /* Siết nhẹ khoảng cách để đủ chỗ cho icon */
    .public-navbar .navbar-nav > li > a {
        padding: 15px 10px;
        font-size: 14.5px;
        white-space: nowrap;
    }
    .public-navbar .nav-ico { margin-right: 5px; }
}

/* Màn hình hẹp hơn (tablet/laptop nhỏ): co font + khoảng cách thêm để vẫn đủ 1 hàng */
@media (min-width: 768px) and (max-width: 1199px) {
    .public-navbar .navbar-nav > li > a {
        padding: 15px 7px;
        font-size: 13px;
    }
    .public-navbar .navbar-nav > li > a .caret { margin-left: 4px; }
    .public-navbar .nav-ico { margin-right: 4px; font-size: 12px; }
}

.public-navbar .navbar-nav > li > a {
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    padding: 15px 14px;
    position: relative;
    border-radius: 8px;
    transition: color .2s, background .2s;
    letter-spacing: .01em;
    white-space: nowrap;
}

.public-navbar .navbar-nav > li > a::after {
    display: none !important;
}

.public-navbar .navbar-nav > li > a:hover,
.public-navbar .navbar-nav > li > a:focus {
    color: #005AA9;
    background: rgba(0,90,169,.06);
}

.public-navbar .navbar-nav > li > a:hover::after,
.public-navbar .navbar-nav > li > a:focus::after {
    display: none !important;
}

.public-navbar .navbar-nav > li.active > a,
.public-navbar .navbar-nav > li.active > a:hover,
.public-navbar .navbar-nav > li.active > a:focus {
    background: linear-gradient(135deg, #005AA9, #004A85);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 90, 169, .35);
}

.public-navbar .navbar-nav > li.active > a::after {
    display: none !important;
}

/* Icon menu (đọc từ cột Icon của MenuConfig) */
.public-navbar .nav-ico {
    width: 18px;
    margin-right: 7px;
    font-size: 13px;
    color: #7aa7d8;
    transition: color .2s, transform .2s;
}

.public-navbar .navbar-nav > li > a:hover .nav-ico,
.public-navbar .navbar-nav > li.open > a .nav-ico {
    color: #005AA9;
    transform: scale(1.12);
}

.public-navbar .navbar-nav > li.active > a .nav-ico,
.public-navbar .navbar-nav > li.active > a:hover .nav-ico {
    color: #ffd76a;
}

.public-navbar .dropdown-menu > li > a .nav-ico-sub {
    width: 16px;
    font-size: 12px;
    color: #9db8d6;
}

.public-navbar .dropdown-menu > li > a:hover .nav-ico-sub,
.public-navbar .dropdown-menu > li.active > a .nav-ico-sub {
    color: #005AA9;
}

.public-navbar .navbar-nav > li.open > a,
.public-navbar .navbar-nav > li.open > a:hover {
    color: #005AA9;
    background: rgba(0,90,169,.06);
}

/* Dropdown */
.public-navbar .dropdown-menu {
    border: none;
    border-top: 3px solid #005AA9;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,.16);
    padding: 8px;
    margin-top: 4px;
    min-width: 240px;
    animation: dropdownFade .2s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.public-navbar .dropdown-menu > li > a {
    padding: 10px 14px 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border-radius: 8px;
    margin: 2px 0;
    position: relative;
    transition: all .15s;
}

.public-navbar .dropdown-menu > li > a:hover {
    background: #e9f2fc;
    color: #005AA9;
    padding-left: 24px;
}

.public-navbar .dropdown-menu .divider {
    background: #eef2f7;
    margin: 6px 10px;
}

.public-navbar .dropdown-menu .dropdown-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    padding: 8px 16px 4px;
}

.public-navbar .dropdown-menu > li.active > a,
.public-navbar .dropdown-menu > li.active > a:hover,
.public-navbar .dropdown-menu > li.active > a:focus {
    background: #e9f2fc;
    color: #005AA9;
    font-weight: 700;
    position: relative;
}

.public-navbar .dropdown-menu > li.active > a::before {
    content: '';
    position: absolute;
    left: 4px; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: #005AA9;
}

.public-navbar .dropdown-menu > li > a .caret {
    display: none;
}

.public-navbar .navbar-nav > li > a .caret {
    width: 7px; height: 7px;
    border: none;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .2s, border-color .2s;
    margin: -3px 0 0 7px;
    vertical-align: middle;
}

.public-navbar .navbar-nav > li > a:hover .caret {
    border-color: #005AA9;
}

.public-navbar .navbar-nav > li.open > a .caret {
    transform: rotate(225deg) translateY(1px);
    border-color: #005AA9;
}

/* Nút hamburger */
.public-navbar .navbar-toggle {
    border: none;
    margin-top: 9px;
    padding: 6px 10px;
}

.public-navbar .navbar-toggle .icon-bar {
    background: #005AA9;
    width: 22px;
    border-radius: 3px;
}

.public-navbar .navbar-toggle:hover,
.public-navbar .navbar-toggle:focus {
    background: #e9f2fc;
}

/* Nút đóng offcanvas: chỉ hiển thị trên mobile (dưới 768px) */
.nav-offcanvas-close { display: none; }

/* Menu thu gọn trên mobile — dạng OFFCANVAS trượt ngang từ phải */
@media (max-width: 767px) {
    .public-navbar .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        width: 290px;
        max-width: 86vw;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        border-top: none;
        box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
        overflow-y: auto;
        padding: 14px 12px;
        border-radius: 18px 0 0 18px;
        transform: translateX(100%);
        transition: transform .32s cubic-bezier(.25, .8, .35, 1);
        z-index: 2000;
    }

    /* Bootstrap đã mở menu (class .in) → trượt vào vị trí */
    .public-navbar .navbar-collapse.in {
        transform: translateX(0);
    }

    /* Backdrop mờ sau offcanvas */
    .nav-offcanvas-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
        z-index: 1990;
    }
    body.nav-offcanvas-open .nav-offcanvas-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .public-navbar .navbar-nav {
        margin: 0;
    }

    .public-navbar .navbar-nav > li > a {
        padding: 13px 16px;
        border-radius: 10px;
        margin: 2px 0;
    }

    .public-navbar .navbar-nav > li.open > a {
        background: transparent;
    }

    .public-navbar .navbar-nav > li.open > a .caret {
        transform: rotate(225deg) translateY(1px);
        border-color: #005AA9;
    }

    .public-navbar .dropdown-menu {
        box-shadow: none;
        border: none;
        border-radius: 6px;
        background: transparent;
        padding: 0 0 0 18px;
        margin-top: 0;
        min-width: 0;
        animation: none;
    }

    .public-navbar .dropdown-menu > li > a {
        margin: 0;
        padding: 10px 14px;
        border-radius: 6px;
    }

    .public-navbar .dropdown-menu > li > a:hover {
        padding-left: 18px;
    }

    /* Icon menu to hơn trên offcanvas */
    .public-navbar .nav-ico { width: 22px; font-size: 15px; }

    /* Nút đóng X góc trên phải panel */
    .nav-offcanvas-close {
        display: block;
        align-self: flex-end;
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: #94a3b8;
        cursor: pointer;
        padding: 2px 8px;
        margin: 0 0 4px;
        transition: color .15s, transform .15s;
    }
    .nav-offcanvas-close:hover { color: #e11d48; transform: rotate(90deg); }
}

/* ═══════════════ DẢI BĂNG THÔNG BÁO (MARQUEE) ═══════════════ */
.public-marquee {
    position: sticky;
    top: 50px;
    z-index: 1029;
    background: linear-gradient(90deg, #004A85 0%, #005AA9 50%, #0073CE 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,42,82,.15);
}

.marquee-inner {
    display: flex;
    align-items: center;
    height: 36px;
    gap: 14px;
}

.marquee-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e11d48;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    height: 36px;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.public-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    padding-right: 46px;
}

.marquee-item i {
    font-size: 7px;
    color: #ffd166;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation-duration: 90s; }
}

.marquee-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color .2s;
}

.marquee-close:hover {
    color: #fff;
}

@media (max-width: 767px) {
    .marquee-inner { height: 32px; gap: 8px; }
    .marquee-label { font-size: 10px; padding: 4px 8px; }
    .marquee-item { font-size: 12px; padding-right: 28px; }
}

/* Hamburger icon */
.public-navbar .navbar-toggle {
    border-color: #005AA9;
    margin-top: 10px;
}

.public-navbar .navbar-toggle .icon-bar {
    background: #005AA9;
    width: 22px;
    height: 2px;
    border-radius: 1px;
}

.public-navbar .navbar-toggle:hover, .public-navbar .navbar-toggle:focus {
    background: #e9f2fc;
}

@media (max-width: 768px) {
    .public-navbar .navbar-nav > li > a { padding: 12px 16px; font-size: 15px; }
    .public-navbar .dropdown-menu > li > a { padding: 10px 20px; }
}

/* Slide show hình ảnh bến xe (toàn chiều rộng, phía trên ô tìm kiếm) */
/* ═══════════════ HERO CAROUSEL ═══════════════ */
.hero-slide {
    margin-bottom: 0;
    position: relative;
}

.hero-slide .carousel-inner img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 8s ease;
}

.hero-slide .carousel-inner .active img {
    transform: scale(1.04);
}

.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /*background: linear-gradient(135deg, rgba(0,42,82,.72) 0%, rgba(0,90,169,.35) 50%, rgba(0,42,82,.55) 100%);*/
    z-index: 1;
}

.hero-slide .carousel-caption {
    left: 0; right: 0; bottom: 0;
    background: none;
    padding: 0;
    text-align: center;
    z-index: 2;
}

.hero-caption {
    padding: 60px 20px 50px;
}

.hero-caption .caption-icon {
    display: none !important;
    color: #fff;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.hero-caption h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
    letter-spacing: .01em;
}

.hero-caption p {
    color: rgba(255,255,255,.88);
    font-size: 16px;
    margin-bottom: 22px;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.btn-hero {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: all .25s;
    backdrop-filter: blur(4px);
}

.btn-hero:hover, .btn-hero:focus {
    background: #fff;
    color: #005AA9;
    border-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.hero-slide .carousel-indicators {
    bottom: 18px;
    z-index: 3;
}

.hero-slide .carousel-indicators li {
    width: 32px; height: 4px;
    border-radius: 3px;
    border: none;
    background: rgba(255,255,255,.4);
    margin: 0 4px;
    transition: all .3s;
}

.hero-slide .carousel-indicators li.active {
    width: 48px;
    background: #fff;
}

.hero-slide .carousel-control {
    width: 50px;
    background: none;
    opacity: 1;
    top: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide .carousel-control.left { left: 8px; right: auto; }
.hero-slide .carousel-control.right { right: 8px; left: auto; }

.hero-slide .carousel-control .glyphicon {
    font-size: 22px;
    width: 42px; height: 42px;
    line-height: 42px;
    text-align: center;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #fff;
    transition: all .25s;
    position: static;
    transform: none;
}

.hero-slide .carousel-control:hover .glyphicon {
    background: rgba(255,255,255,.4);
    border-color: #fff;
}

@media (max-width: 768px) {
    .hero-slide .carousel-inner img { height: 220px; }
    .hero-caption { padding: 30px 16px 28px; }
    .hero-caption .caption-icon { display: none !important; }
    .hero-caption h2 { font-size: 20px; }
    .hero-caption p { font-size: 12px; margin-bottom: 14px; }
    .btn-hero { padding: 7px 18px; font-size: 12px; }
    .hero-slide .carousel-control .glyphicon { width: 34px; height: 34px; font-size: 16px; line-height: 34px; }
    .hero-slide .carousel-control.left { left: 4px; }
    .hero-slide .carousel-control.right { right: 4px; }
}

/* ═══════════════ SEARCH SECTION ═══════════════ */
.search-section {
    background: linear-gradient(180deg, #f0f4fa 0%, #fff 100%);
    padding: 32px 0 36px;
    margin-bottom: 0;
}

.search-header {
    text-align: center;
    margin-bottom: 20px;
}

.search-header h1 {
    color: #005AA9;
    font-size: 26px;
    margin: 0 0 4px;
    font-weight: 800;
}

.search-header p {
    color: #6b7a90;
    font-size: 14px;
    margin: 0;
}

.search-header strong { color: #004A85; }

.search-section .search-panel {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    border: 1px solid #dce4f0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0, 90, 169, .10);
}

.search-section .search-panel label {
    color: #4a5568;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.search-section .search-panel label i {
    color: #005AA9;
    margin-right: 3px;
    font-size: 11px;
}

.search-section .search-panel .form-control {
    border-radius: 8px;
    border-color: #dce4f0;
    font-size: 14px;
    padding: 9px 12px;
}

.search-section .search-panel .form-control:focus {
    border-color: #005AA9;
    box-shadow: 0 0 0 3px rgba(0,90,169,.12);
}

.search-section .search-panel .btn-search {
    background: linear-gradient(135deg, #005AA9 0%, #004A85 100%);
    color: #fff;
    font-weight: 700;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all .2s;
}

.search-section .search-panel .btn-search:hover {
    background: linear-gradient(135deg, #004A85 0%, #003a6e 100%);
    box-shadow: 0 4px 16px rgba(0,90,169,.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .search-section .search-panel { padding: 16px; }
    .search-header h1 { font-size: 20px; }
    .search-header p { font-size: 12px; }
}

/* ═══════════════ STATS COUNTER ═══════════════ */
.stats-section {
    background: linear-gradient(135deg, #005AA9 0%, #003a6e 100%);
    padding: 20px 0;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
    padding: 4px 0;
}

.stat-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,.85);
    margin-bottom: 6px;
}

.stat-number {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .stats-section { padding: 16px 0; }
    .stat-number { font-size: 22px; }
    .stat-icon { width: 30px; height: 30px; font-size: 14px; }
}

/* ═══════════════ SECTION HEADERS ═══════════════ */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.section-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #005AA9, #004A85);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.section-header h3 {
    margin: 0;
    color: #005AA9;
    font-size: 18px;
    font-weight: 700;
}

.section-date {
    color: #8899b4;
    font-size: 13px;
}

.schedule-card, .news-list {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.schedule-footer {
    padding: 10px 16px;
    background: #f8fafd;
    border-top: 1px solid #e3e8ef;
    font-size: 12px;
    color: #8899b4;
}

/* ═══════════════ SCHEDULE AUTO-SCROLL ═══════════════ */
.schedule-scroll-wrapper {
    position: relative;
}

.schedule-scroll-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    table-layout: fixed;
    width: 100%;
    min-width: 600px;
}

.schedule-table th {
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 10px 8px;
    white-space: nowrap;
}

.schedule-table td {
    vertical-align: middle;
    font-size: 13px;
    padding: 10px 8px;
    white-space: nowrap;
    overflow: visible;
}

/* Dong bo bo cuc the: gio noi bat -> nha xe / hang tau (chinh) -> tuyen (phu) */
.schedule-table td.cell-gio {
    font-size: 15px;
    font-weight: 800;
    color: #003a6e;
    white-space: nowrap !important;
}

.schedule-table td.cell-nhaxe {
    font-weight: 700;
    color: #0f2a47;
}

.schedule-table td.cell-tuyen {
    color: #64748b;
    font-size: 12.5px;
}

/* ═════ Bảng giờ xuất bến: giao diện tinh gọn, hiện đại ═════
   - Bỏ lưới ô vuông, chỉ kẻ dòng ngang mảnh + xen kẽ màu hàng
   - Giờ đóng pill gradient nổi bật, số xếp đều (tabular)
   - Trạng thái dạng pill mềm có chấm tròn, "Đang chạy" nhấp nháy nhẹ
   - Hàng "Đã đến" làm mờ, hàng "Đã hủy" gạch ngang */
.schedule-table.table-bordered th,
.schedule-table.table-bordered td {
    border: none;
    border-bottom: 1px solid #eef2f7;
}
.schedule-table.table-bordered > tbody > tr:last-child > td {
    border-bottom: none;
}

/* Header bảng: đậm hơn chút, chữ nghiêng khoảng cách rộng */
.schedule-table.table-bordered > thead > tr > th {
    background: linear-gradient(90deg, #0a5a9e, #064a83);
    border: none;
    font-weight: 600;
    padding: 11px 8px;
}

/* Xen kẽ màu hàng (zebra) — đặt ở mức tr để hàng trạng thái ghi đè được */
.schedule-table > tbody > tr:nth-child(odd) {
    background: #fbfdff;
}
.schedule-table > tbody > tr:hover {
    background: #f0f7ff;
}

/* Giờ xuất bến dạng pill */
.gio-pill {
    display: inline-block;
    min-width: 58px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #005AA9, #004A85);
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 2px 6px rgba(0, 90, 169, .25);
}

/* Trạng thái dạng pill mềm có chấm tròn */
.schedule-table .label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}
.schedule-table .label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.schedule-table .label-primary { background: #e0edff; color: #0b57a4; }
.schedule-table .label-success { background: #dcfce7; color: #15803d; }
.schedule-table .label-default { background: #e9eef5; color: #475569; }
.schedule-table .label-danger  { background: #fee2e2; color: #b91c1c; }

/* Chuyến đang chạy: chấm trạng thái nhấp nháy nhẹ + nền hàng hơi xanh */
.schedule-table .label-primary::before {
    animation: trangThaiPulse 1.2s ease-in-out infinite;
}
.schedule-table > tbody > tr.row-running {
    background: #f4f9ff;
}
@keyframes trangThaiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.8); }
}

/* Hàng đã đến: làm mờ, pill giờ chuyển xám */
.schedule-table > tbody > tr.row-done {
    background: #fcfcfd;
}
.schedule-table > tbody > tr.row-done > td {
    color: #94a3b8;
}
.schedule-table > tbody > tr.row-done .gio-pill {
    background: #cbd5e1;
    box-shadow: none;
}

/* Hàng đã hủy: gạch ngang nội dung, nền đỏ nhạt */
.schedule-table > tbody > tr.row-canceled {
    background: #fef6f6;
}
.schedule-table > tbody > tr.row-canceled > td {
    color: #b91c1c;
    text-decoration: line-through;
}
.schedule-table > tbody > tr.row-canceled .label {
    text-decoration: none;
}

.schedule-scroll-header .schedule-table {
    margin-bottom: 0;
}

.schedule-scroll-body {
    max-height: 260px;
    overflow: hidden;
    position: relative;
}

.schedule-scroll-body::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    z-index: 1;
}

.schedule-scroll-track {
    animation: scheduleScroll linear infinite;
}

.schedule-scroll-track .schedule-table {
    margin-bottom: 0;
}

.schedule-scroll-track .schedule-table:last-child {
    border-top: none;
}

@keyframes scheduleScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.schedule-scroll-body:hover .schedule-scroll-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .schedule-scroll-body { max-height: 200px; }
}

/* ===== Dashboard: bảng giờ xuất bến nhúng trong nửa cột (col-md-6) =====
   Partial dùng chung với trang chủ (min-width 600px + colgroup 10/26/21/17/11/15);
   ở Dashboard co bảng vừa đúng nửa cột: bỏ min-width cứng (hết bị cắt cột
   Trạng thái), đổi tỉ lệ cột đủ chỗ cho giá vé + trạng thái giữ 1 dòng. */
#bang-gio-dash .schedule-table,
#bang-gio-tau-dash .schedule-table {
    min-width: 0;
    max-width: 100%;
}

#bang-gio-dash .schedule-scroll-wrapper,
#bang-gio-tau-dash .schedule-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tỉ lệ cột riêng cho nửa cột Dashboard (ghi đè colgroup của trang chủ):
   Giờ 58px · Giá vé 82px · Trạng thái 100px giữ 1 dòng (tổng 240px cố định),
   phần còn lại chia theo % cho Nhà xe / Tuyến / Loại phương tiện (wrap chữ).
   Ở khung hẹp nhất (~455px): 240 + 47% × 455 ≈ 454px — vừa khít không tràn. */
#bang-gio-dash .schedule-table col:nth-child(2),
#bang-gio-tau-dash .schedule-table col:nth-child(2) { width: 18% !important; }
#bang-gio-dash .schedule-table col:nth-child(3),
#bang-gio-tau-dash .schedule-table col:nth-child(3) { width: 16% !important; }
#bang-gio-dash .schedule-table col:nth-child(4),
#bang-gio-tau-dash .schedule-table col:nth-child(4) { width: 13% !important; }
#bang-gio-dash .schedule-table col:nth-child(5),
#bang-gio-tau-dash .schedule-table col:nth-child(5) { width: 82px !important; }
#bang-gio-dash .schedule-table col:nth-child(6),
#bang-gio-tau-dash .schedule-table col:nth-child(6) { width: 100px !important; }

/* Giá vé ("230,000đ") + trạng thái ("Sắp khởi hành") không được ngắt dòng —
   thắng rule toàn cục white-space:normal của layout admin. */
#bang-gio-dash .schedule-table td.text-right,
#bang-gio-tau-dash .schedule-table td.text-right,
#bang-gio-dash .schedule-table td:last-child,
#bang-gio-tau-dash .schedule-table td:last-child {
    white-space: nowrap !important;
}

/* Thu gọn padding ô + cỡ chữ badge để cột số vừa trong nửa cột hẹp:
   "Sắp khởi hành" (badge 11px) ≈ 97px ≤ 100px, giá vé ≈ 80px ≤ 82px. */
#bang-gio-dash .schedule-table td,
#bang-gio-tau-dash .schedule-table td {
    padding: 9px 10px;
}

#bang-gio-dash .schedule-table .label,
#bang-gio-tau-dash .schedule-table .label {
    font-size: 11px;
    padding: .25em .5em;
}

#bang-gio-dash .schedule-scroll-body,
#bang-gio-tau-dash .tau-scroll-body {
    overflow: visible;
    max-height: 300px;
}

#bang-gio-dash .schedule-scroll-body,
#bang-gio-tau-dash .tau-scroll-body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Tắt marquee CSS + ẩn bản clone (Dashboard không chạy cuộn tự động) */
#bang-gio-dash .schedule-scroll-track,
#bang-gio-tau-dash .tau-scroll-track {
    animation: none;
    transform: none;
}

/* Bỏ lớp gradient fade đáy vốn dành cho marquee */
#bang-gio-dash .schedule-scroll-body::after,
#bang-gio-dash .tau-scroll-body::after,
#bang-gio-tau-dash .schedule-scroll-body::after,
#bang-gio-tau-dash .tau-scroll-body::after {
    display: none;
}

/* Cột Giờ tối thiểu đủ chứa "00:00" (10% của nửa cột không đủ, chữ đè sang cột bên cạnh) */
#bang-gio-dash .schedule-table col:first-child,
#bang-gio-tau-dash .schedule-table col:first-child {
    width: 58px !important;
}

@media (max-width: 480px) {
    #bang-gio-dash td.cell-gio,
    #bang-gio-tau-dash td.cell-gio {
        font-size: 13px;
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* Dashboard không chạy JS marquee -> ẩn bản clone để hết dòng lặp */
#bang-gio-dash .schedule-scroll-track > .schedule-table:not(:first-child),
#bang-gio-tau-dash .tau-scroll-track > .schedule-table:not(:first-child) {
    display: none;
}

/* ═══════════════ BẢNG GIỜ TÀU AUTO-SCROLL ═══════════════ */
.tau-scroll-body {
    max-height: 260px;
    overflow: hidden;
    position: relative;
}

.tau-scroll-body::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    z-index: 1;
}

.tau-scroll-track {
    animation: scheduleScroll linear infinite;
}

.tau-scroll-track .tau-table {
    margin-bottom: 0;
}

.tau-scroll-track .tau-table:last-child {
    border-top: none;
}

.tau-scroll-body:hover .tau-scroll-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .tau-scroll-body { max-height: 200px; }
}

.news-pagination {
    text-align: center;
    margin: 20px 0 10px;
}

.news-pagination .pagination {
    margin: 0;
}

.news-pagination .pagination > li > a {
    color: #005AA9;
    border-color: #d4e6f9;
    font-size: 13px;
    padding: 5px 12px;
}

.news-pagination .pagination > li.active > a,
.news-pagination .pagination > li.active > a:hover {
    background: #005AA9;
    border-color: #005AA9;
    color: #fff;
}

.news-pagination .pagination > li > a:hover {
    background: #e8f0fa;
}

.btn-view-all {
    display: block;
    text-align: center;
    border: 1px solid #005AA9;
    color: #005AA9;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 13px;
    transition: all .2s;
}

.btn-view-all:hover {
    background: #005AA9;
    color: #fff;
}

/* ═══════════════ ẢNH THUMBNAIL TIN TỨC ═══════════════ */
.news-thumb {
    width: 130px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
}

.news-thumb-empty {
    width: 130px;
    height: 96px;
    background: #eef2f8;
    color: #005AA9;
    border: 1px solid #d4dce9;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.news-detail-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}

/* Nội dung tin tức CKEditor */
.news-content {
    font-size: 15px;
    line-height: 1.8;
    color: #1e293b;
}
.news-content p {
    margin-bottom: 12px;
}
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}
.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.news-content table td,
.news-content table th {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
}
.news-content table th {
    background: #f1f5f9;
    font-weight: 600;
}
.news-content blockquote {
    border-left: 4px solid #005AA9;
    padding: 10px 16px;
    margin: 12px 0;
    background: #f8fafc;
    color: #475569;
    font-style: italic;
}

/* CKEditor: ẩn thông báo bảo mật version */
.cke_notification { display: none !important; }
.cke_bottom { padding-top: 2px !important; }

.search-panel {
    background: #fff;
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.search-panel label {
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

.search-panel .btn-search {
    background: #005AA9;
    color: #fff;
    font-weight: 700;
    width: 100%;
    padding: 9px 0;
    border: none;
}

.search-panel .btn-search:hover {
    background: #004A85;
}

/* ═══════════════ VÌ SAO CHỌN BẾN ═══════════════ */
.why-section {
    background: #f4f7fd;
    padding: 40px 0;
    margin: 28px 0 0;
}

.why-header h2 {
    color: #005AA9;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.why-header p {
    color: #8899b4;
    font-size: 15px;
    margin-bottom: 36px;
}

.why-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 90, 169, .06);
    border: 1px solid #e8edf4;
    transition: all .3s;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 90, 169, .12);
    border-color: #b9d4ee;
}

.why-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #e9f2fc, #d0e2f7);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #005AA9;
    margin-bottom: 14px;
}

.why-card h4 {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card p {
    color: #6b7a90;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════ QUICK LINKS ═══════════════ */
.quick-links-section {
    padding: 32px 0 44px;
    background: #fff;
    margin-top: 28px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e3ecf5;
    border-radius: 12px;
    padding: 20px 18px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 90, 169, .06);
    transition: all .3s;
    margin-bottom: 16px;
    height: 100%;
}

.quick-link-card:hover {
    background: #f6faff;
    border-color: #b9d4ee;
    box-shadow: 0 12px 32px rgba(0, 90, 169, .12);
    transform: translateY(-3px);
    text-decoration: none;
}

.ql-text {
    flex: 1 1 auto;
    min-width: 0;
}

.ql-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #005AA9, #004A85);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.quick-link-card h4 {
    margin: 0 0 3px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.quick-link-card p {
    margin: 0;
    color: #6b7a90;
    font-size: 13px;
}

.ql-arrow {
    margin-left: auto;
    color: #005AA9;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all .25s;
}

.quick-link-card:hover .ql-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Khối thông tin chung */
.info-box {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
}

.info-box h3 {
    margin-top: 0;
    color: #005AA9;
    font-size: 18px;
}

/* Bảng giờ xuất bến */
.board-table thead th {
    background: #005AA9;
    color: #fff;
}

/* Thẻ tin tức */
.news-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 18px;
    min-height: 150px;
}

.news-card h4 {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.4;
}

.news-card h4 a {
    color: #005AA9;
}

.news-card .news-date {
    color: #888;
    font-size: 12px;
}

.news-card .news-excerpt {
    color: #555;
    font-size: 13px;
}

/* Sơ đồ bến */
.station-map {
    background: #eaf0f9;
    border: 2px solid #b9c9e4;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
}

.station-map .zone {
    border: 2px solid #005AA9;
    border-radius: 6px;
    background: #fff;
    padding: 10px;
    margin: 6px;
    text-align: center;
    min-height: 64px;
}

.station-map .zone .glyphicon {
    font-size: 22px;
    color: #005AA9;
    display: block;
    margin-bottom: 4px;
}

.station-map .zone-road {
    border: 2px dashed #8fa8d6;
    background: #f7faff;
}

/* Dịch vụ tiện ích */
.service-item {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 15px;
}

.service-item .glyphicon {
    font-size: 26px;
    color: #005AA9;
}

.service-item h4 {
    margin: 0 0 4px;
}

.service-item .text-muted {
    font-size: 13px;
}

/* Sơ đồ ghế */
.seat-map {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 18px;
    display: inline-block;
}

.seat-row {
    white-space: nowrap;
    margin-bottom: 8px;
}

.seat {
    display: inline-block;
    width: 40px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    margin: 3px;
    border-radius: 4px;
    border: 1px solid #b9c9e4;
    background: #eef4fd;
    color: #005AA9;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.seat:hover {
    border-color: #005AA9;
}

.seat.aisle {
    background: transparent;
    border: none;
    cursor: default;
    pointer-events: none;
}

.seat.sold {
    background: #f1f1f1;
    color: #bbb;
    border-color: #ddd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.seat.selected {
    background: #005AA9;
    color: #fff;
    border-color: #004A85;
}

.seat-legend {
    font-size: 13px;
}

.seat-legend .seat {
    width: 22px;
    height: 20px;
    line-height: 20px;
    font-size: 0;
    cursor: default;
}

/* Bước quy trình */
.step-indicator {
    margin-bottom: 24px;
}

.step-indicator .step {
    display: inline-block;
    background: #e3e8ef;
    color: #666;
    border-radius: 20px;
    padding: 6px 18px;
    margin-right: 6px;
    font-weight: 600;
    font-size: 13px;
}

.step-indicator .step.active {
    background: #005AA9;
    color: #fff;
}

.step-indicator .step.done {
    background: #28a745;
    color: #fff;
}

/* Thanh toán */
.pay-method {
    border: 2px solid #e3e8ef;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    background: #fff;
}

.pay-method:hover {
    border-color: #005AA9;
}

.pay-method.selected {
    border-color: #005AA9;
    background: #eef3fc;
}

.pay-method .glyphicon {
    font-size: 22px;
    color: #005AA9;
    margin-right: 8px;
}

.pay-method input[type=radio] {
    margin-right: 8px;
}

/* Chân trang */
.public-footer {
    background: #0b1f3d;
    color: #c9d6ee;
    padding: 34px 0 18px;
    margin-top: 30px;
}

.public-footer h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.public-footer h4 i {
    margin-right: 6px;
    opacity: .7;
}

.public-footer p {
    color: #9db4d4;
    font-size: 13px;
    line-height: 1.6;
}

.public-footer a {
    color: #c9d6ee;
    transition: color .2s;
}

.public-footer a:hover {
    color: #fff;
}

.public-footer hr {
    border-color: #243a63;
}

.footer-map {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}

.footer-map iframe {
    display: block;
}

.footer-links {
    padding: 0;
}

.footer-links li {
    padding: 5px 0;
}

.footer-links li a {
    font-size: 13px;
    color: #9db4d4;
    transition: color .2s, padding-left .2s;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 11px;
    opacity: .5;
}

.footer-contact {
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
}

.footer-contact li i {
    width: 16px;
    text-align: center;
    margin-top: 3px;
    color: #5b8cbf;
    flex-shrink: 0;
}

.footer-contact li div {
    line-height: 1.5;
}

.footer-contact li strong {
    color: #c9d6ee;
    font-weight: 600;
}

/* ═══════════════ FLOATING SIDEBAR ═══════════════ */
.floating-sidebar {
    position: fixed;
    right: 18px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.fsb-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
    transition: all .25s;
}

.fsb-btn:hover, .fsb-btn:focus {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0,0,0,.3);
    color: #fff;
    text-decoration: none;
}

.marquee-clock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.marquee-clock i {
    font-size: 13px;
    opacity: 0.8;
}

.fsb-phone {
    background: #22c55e;
}

.fsb-phone:hover {
    background: #16a34a;
}

.fsb-zalo {
    background: #0068ff;
}

.fsb-zalo:hover {
    background: #0052cc;
}

.fsb-facebook {
    background: #1877f2;
}

.fsb-facebook:hover {
    background: #0d65d9;
}

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    right: 18px;
    bottom: 40px;
    z-index: 999;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #005AA9;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,90,169,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #004A85;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,90,169,.4);
}

@media (max-width: 768px) {
    .floating-sidebar { right: 10px; bottom: 90px; gap: 8px; }
    .fsb-btn { width: 42px; height: 42px; font-size: 17px; }
    .scroll-top-btn { right: 10px; bottom: 34px; width: 38px; height: 38px; font-size: 16px; }
}

/* Trang nội dung tĩnh */
.doc-page {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 24px;
    line-height: 1.7;
}

.doc-page h2 {
    color: #005AA9;
    margin-top: 0;
}

.doc-page h4 {
    color: #005AA9;
}

/* Tra cứu */
.filter-panel {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 18px;
}

.trip-result {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.trip-result .route {
    font-size: 17px;
    font-weight: 700;
    color: #005AA9;
}

.trip-result .meta {
    color: #666;
    font-size: 13px;
}

.price-tag {
    font-size: 18px;
    font-weight: 700;
    color: #005AA9;
}

.seat-left {
    font-size: 13px;
}

/* ==========================================================================
   THEME HIỆN ĐẠI (đè lên Bootstrap 3 để giao diện mới, mượt, không cổ điển)
   ========================================================================== */

/* ---------- Nền tảng ---------- */
body {
    font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
    background: #f1f5f9;
    /*color: #1e293b;*/
    color:#005AA9;
    font-size: 14.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 700;
    color: #005AA9;
}

h4, h5, h6 {
    font-weight: 700;
    color: #005AA9;
}

h2 {
    margin-top: 10px;
}

a {
    color: #005AA9;
    transition: color .15s ease;
}

a:hover {
    color: #004A85;
}

/* ---------- Icon: remap Glyphicons -> Font Awesome ---------- */
.glyphicon {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    top: 0 !important;
    font-size: .95em;
}

.glyphicon-search::before { content: "\f002"; }
.glyphicon-road::before { content: "\f018"; }
.glyphicon-ticket::before { content: "\f145"; }
.glyphicon-time::before { content: "\f017"; }
.glyphicon-refresh::before { content: "\f021"; }
.glyphicon-bullhorn::before { content: "\f0a1"; }
.glyphicon-calendar::before { content: "\f133"; }
.glyphicon-envelope::before { content: "\f0e0"; }
.glyphicon-earphone::before { content: "\f095"; }
.glyphicon-user::before { content: "\f007"; }
.glyphicon-map-marker::before { content: "\f041"; }
.glyphicon-log-in::before { content: "\f090"; }
.glyphicon-log-out::before { content: "\f08b"; }
.glyphicon-chevron-left::before { content: "\f053"; }
.glyphicon-chevron-right::before { content: "\f054"; }
.glyphicon-ok-circle::before { content: "\f058"; }
.glyphicon-print::before { content: "\f02f"; }
.glyphicon-info-sign::before { content: "\f05a"; }
.glyphicon-pushpin::before { content: "\f08d"; }
.glyphicon-warning-sign::before { content: "\f071"; }
.glyphicon-tint::before { content: "\f043"; }
.glyphicon-cutlery::before { content: "\f0f5"; }
.glyphicon-lock::before { content: "\f023"; }
.glyphicon-qrcode::before { content: "\f029"; }
.glyphicon-star::before { content: "\f005"; }
.glyphicon-thumbs-up::before { content: "\f164"; }
.glyphicon-send::before { content: "\f1d8"; }
.glyphicon-credit-card::before { content: "\f09d"; }
.glyphicon-phone::before { content: "\f095"; }
.glyphicon-usd::before { content: "\f155"; }

/* ---------- Nút bấm ---------- */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}

.btn-primary {
    background: linear-gradient(135deg, #005AA9, #004A85);
    border-color: #004A85;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004A85, #003a6e);
    border-color: #003a6e;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #dc2626;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #b91c1c;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #16a34a;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #15803d;
}

.btn-warning {
    background: linear-gradient(135deg, #005AA9, #004A85);
    border-color: #004A85;
    color: #fff;
}

.btn-warning:hover {
    color: #fff;
    background: linear-gradient(135deg, #004A85, #003a6e);
    border-color: #003a6e;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-color: #0891b2;
    color: #fff;
}

.btn-info:hover {
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    border-color: #0e7490;
}

.btn-default {
    background: #fff;
    border-color: #dbe2ec;
    color: #334155;
}

.btn-default:hover {
    background: #f8fafc;
    border-color: #c7d2e0;
    color: #0f172a;
}

/* ---------- Ô nhập liệu ---------- */
.form-control {
    border-radius: 8px;
    border-color: #d7dee9;
    box-shadow: none;
    height: 38px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #005AA9;
    box-shadow: 0 0 0 3px rgba(0, 90, 169, .12);
}

textarea.form-control {
    height: auto;
}

/* ---------- Bảng ---------- */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table > thead > tr > th {
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > tfoot > tr > td {
    border-color: #e8edf4;
}

.table-hover > tbody > tr:hover {
    background: #f8fafc;
}

/* ---------- Nhãn trạng thái ---------- */
.label {
    border-radius: 20px;
    font-weight: 600;
    padding: .35em .75em;
    font-size: 11.5px;
}

/* ---------- Thông báo ---------- */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

/* ---------- Khung panel (quản trị) ---------- */
.panel {
    border-radius: 12px;
    border: 1px solid #e8edf4;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.panel-default > .panel-heading {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    color: #005AA9;
    font-size: 15px;
    padding: 13px 16px;
}

/* ---------- Menu dropdown ---------- */
.dropdown-menu {
    border-radius: 10px;
    border: 1px solid #e8edf4;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
    padding: 6px;
}

.dropdown-menu > li > a {
    border-radius: 7px;
    padding: 8px 12px;
    color: #334155;
}

.dropdown-menu > li > a:hover {
    background: #eff6ff;
    color: #004A85;
}

/* ---------- Navbar quản trị (dark) ---------- */
.navbar-inverse {
    background: linear-gradient(90deg, #004a85, #003a6e);
    border: none;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .25);
    min-height: 44px;
}

.navbar-inverse .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 11px 15px;
    letter-spacing: .01em;
}

.navbar-inverse .navbar-nav > li > a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 13px;
    padding: 12px 12px;
}

.navbar-inverse .navbar-nav > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.navbar-inverse .dropdown-menu {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    padding: 6px;
    margin-top: 4px;
}

.navbar-inverse .dropdown-menu > li > a {
    border-radius: 7px;
    padding: 8px 14px;
    font-weight: 500;
    font-size: 13px;
    color: #334155;
    transition: background .12s;
}

.navbar-inverse .dropdown-menu > li > a:hover {
    background: #eff6ff;
    color: #004A85;
}

/* Menu quản trị: đánh dấu mục đang chọn */
.navbar-inverse .navbar-nav > li.active > a,
.navbar-inverse .navbar-nav > li.active > a:hover,
.navbar-inverse .navbar-nav > li.active > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 -2px 0 #5bc0de;
}

.navbar-inverse .dropdown-menu > li.active > a,
.navbar-inverse .dropdown-menu > li.active > a:hover,
.navbar-inverse .dropdown-menu > li.active > a:focus {
    background: #005AA9;
    color: #fff;
    font-weight: 600;
}

.navbar-inverse .navbar-toggle {
    border-color: rgba(255,255,255,.3);
    margin-top: 7px;
    padding: 5px 7px;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background: #fff;
    height: 2px;
    border-radius: 1px;
}

.navbar-inverse .navbar-right > li > a {
    font-size: 12.5px;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ---------- Thẻ thống kê (dashboard) ---------- */
.stat-box {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.stat-box .stat-number {
    color: #005AA9;
}

/* ═══════════════ DASHBOARD QUẢN TRỊ ═══════════════ */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(120deg, #005AA9, #004a85 70%, #003a6e);
    color: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 42, 82, .20);
}

.dash-welcome h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.dash-welcome h2 i {
    margin-right: 8px;
    color: #7dd3fc;
}

.dash-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

.dash-welcome p strong {
    color: #fff;
}

.dash-welcome-actions .btn-primary {
    background: #00a3e0;
    border-color: #00a3e0;
}

.dash-welcome-actions .btn-default {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
}

.dash-welcome-actions .btn-default:hover {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

/* Table cells wrap instead of overflow */
.table td, .table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
}

/* Pikaday date inputs */
.pika-date {
    background-color: #fff !important;
    cursor: pointer !important;
}
.pika-date:focus {
    cursor: pointer !important;
    outline: none;
    box-shadow: none;
    border-color: #ccc;
}

/* Section header trên Dashboard */
.dash-section-header {
    font-size: 15px;
    font-weight: 700;
    color: #005AA9;
    padding: 8px 0 10px;
    margin-bottom: 4px;
    border-bottom: 2px solid #005AA9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-section-header i {
    font-size: 16px;
}

/* Thẻ thống kê có icon */
.stat-card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    padding: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.stat-card-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: transform .18s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.08);
}

.stat-card-body {
    min-width: 0;
}

.stat-card-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.stat-card-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* Màu accent cho từng thẻ */
.sc-blue .stat-card-icon   { background: linear-gradient(135deg, #005AA9, #0072c6); }
.sc-cyan .stat-card-icon   { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.sc-teal .stat-card-icon   { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.sc-green .stat-card-icon  { background: linear-gradient(135deg, #16a34a, #22c55e); }
.sc-amber .stat-card-icon  { background: linear-gradient(135deg, #d97706, #f59e0b); }
.sc-rose .stat-card-icon   { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.sc-violet .stat-card-icon { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.sc-emerald .stat-card-icon{ background: linear-gradient(135deg, #059669, #10b981); }

/* Biểu đồ doanh thu */
.dash-panel {
    margin-bottom: 20px;
}

.dash-panel .panel-heading {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-panel .panel-heading i {
    color: #005AA9;
}

.rev-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    height: 220px;
    padding-top: 10px;
}

.rev-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.rev-bar-wrap {
    flex: 1;
    width: 100%;
    max-width: 54px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.rev-bar {
    width: 100%;
    min-height: 4px;
    background: linear-gradient(180deg, #00a3e0, #005AA9);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: height .4s ease;
}

.rev-bar-value {
    font-size: 10px;
    font-weight: 700;
    color: #005AA9;
    margin-top: 4px;
    white-space: nowrap;
}

.rev-month {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

/* Danh sách chuyến sắp khởi hành */
.dash-trips {
    padding: 6px 16px 10px;
}

.dash-trip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #e8edf4;
}

.dash-trip:last-child {
    border-bottom: none;
}

.dash-trip-date {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.dash-trip-date.today {
    background: #e9f2fc;
    border-color: #005AA9;
}

.dash-trip-day {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.dash-trip-month {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.dash-trip-info {
    flex: 1;
    min-width: 0;
}

.dash-trip-route {
    font-size: 14px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-trip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.dash-trip-meta i {
    margin-right: 3px;
    color: #94a3b8;
}

.dash-trip-status {
    flex: 0 0 auto;
}

/* Truy cập nhanh */
.dash-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-quick-item {
    flex: 1 1 120px;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    transition: all .18s ease;
}

.dash-quick-item:hover {
    background: #e9f2fc;
    border-color: #bcd7f5;
    color: #005AA9;
    transform: translateY(-2px);
    text-decoration: none;
}

.dash-quick-item i {
    font-size: 20px;
    color: #005AA9;
}

.dash-quick-item span {
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .dash-welcome { padding: 16px; }
    .dash-welcome h2 { font-size: 17px; }
    .stat-card-number { font-size: 20px; }
    .rev-chart { height: 170px; }
    .dash-trip-meta { gap: 8px; }
}

/* ---------- Cổng thông tin: thanh trên ---------- */
.public-topbar {
    background: linear-gradient(90deg, #005AA9, #004a85);
    font-size: 13px;
}

/* ---------- Cổng thông tin: menu (đã merge vào section chính above) ---------- */

/* ---------- Cổng thông tin: slide + tìm kiếm ---------- */
.hero-slide .carousel-caption {
    background: linear-gradient(transparent, rgba(2, 6, 23, .8));
}

.search-panel {
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}

.search-panel label {
    color: #334155;
}

.search-section .search-panel {
    box-shadow: 0 10px 28px rgba(0, 90, 169, .12);
}

/* ---------- Cổng thông tin: khối thông tin ---------- */
.info-box {
    border-radius: 12px;
    border-color: #e8edf4;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
    transition: box-shadow .18s ease;
}

.info-box h3 {
    color: #005AA9;
}

.news-card {
    border-radius: 12px;
    border-color: #e8edf4;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.news-card h4 a {
    color: #005AA9;
}

.news-card h4 a:hover {
    color: #005AA9;
}

/* News Grid Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-grid-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #e8edf4;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}

.news-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.news-grid-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f0f7ff;
}

.news-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-grid-card:hover .news-grid-thumb img {
    transform: scale(1.05);
}

.news-grid-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0ecff, #f0f7ff);
}

.news-grid-thumb-empty i {
    font-size: 40px;
    color: #005AA9;
    opacity: 0.3;
}

.news-grid-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-grid-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}

.news-grid-meta i {
    color: #005AA9;
    margin-right: 3px;
}

.news-grid-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-excerpt {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-footer {
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

.news-grid-readmore {
    font-size: 13px;
    font-weight: 600;
    color: #005AA9;
}

.news-grid-readmore i {
    margin-right: 4px;
    transition: transform 0.2s;
}

.news-grid-card:hover .news-grid-readmore i {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-grid-thumb {
        height: 200px;
    }
}

/* ---------- Cổng thông tin: bảng giờ ---------- */
.board-table > thead > tr > th {
    background: linear-gradient(90deg, #005AA9, #004a85);
    color: #fff;
    border: none;
}

/* ---------- Cổng thông tin: tìm chuyến ---------- */
.trip-result {
    border-radius: 12px;
    border-color: #e8edf4;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.trip-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.trip-result .route {
    color: #005AA9;
}

.filter-panel {
    border-radius: 12px;
    border-color: #e8edf4;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
}

/* ---------- Cổng thông tin: ghế ---------- */
.seat-map {
    border-radius: 12px;
    border-color: #e8edf4;
}

.seat {
    border-radius: 6px;
    border-color: #c7d6f0;
    transition: transform .12s ease, box-shadow .12s ease;
}

.seat:not(.sold):hover {
    transform: scale(1.08);
    box-shadow: 0 3px 8px rgba(0, 90, 169, .25);
}

.seat.selected {
    background: linear-gradient(135deg, #005AA9, #004A85);
    border-color: #004A85;
}

/* ---------- Cổng thông tin: thanh toán ---------- */
.pay-method {
    border-radius: 10px;
}

.pay-method.selected {
    background: #eff6ff;
}

.step-indicator .step {
    border-radius: 20px;
}

/* ---------- Cổng thông tin: footer ---------- */
.public-footer {
    background: linear-gradient(180deg, #003a6e, #002a52);
}

/* ---------- Trang nội dung ---------- */
.doc-page {
    border-radius: 12px;
    border-color: #e8edf4;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}

/* ---------- Chi tiết nhỏ ---------- */
.service-item,
.station-map {
    border-radius: 12px;
}

.list-group-item {
    border-color: #e8edf4;
}

hr {
    border-color: #e2e8f0;
}

/* ==========================================================================
   ĐỒNG BỘ MÀU BOOTSTRAP CÒN SÓT -> TÔNG XANH VNPT
   ========================================================================== */

/* Nút thông tin (btn-info): cyan mặc định -> xanh VNPT */
.btn-info {
    background: linear-gradient(135deg, #1f7bc4, #005AA9);
    border-color: #005AA9;
    color: #fff;
}

.btn-info:hover {
    color: #fff;
    background: linear-gradient(135deg, #005AA9, #004A85);
    border-color: #004A85;
}

/* Nút trung tính (btn-default): xám lạnh -> viền/nền xanh VNPT nhạt */
.btn-default {
    background: #fff;
    border-color: #b9cfe6;
    color: #005AA9;
}

.btn-default:hover {
    background: #eff6ff;
    border-color: #005AA9;
    color: #004A85;
}

/* Nút dạng link (Xóa bộ lọc...) */
.btn-link {
    color: #005AA9;
}

.btn-link:hover {
    color: #004A85;
}

/* Nhãn trạng thái primary/info: xanh Bootstrap -> xanh VNPT */
.label-primary {
    background: #005AA9;
}

.label-info {
    background: #2f8fd8;
}

/* Ô thông báo alert-info (ghế đã chọn, chưa có tin...): cyan -> xanh VNPT nhạt */
.alert-info {
    background: #e9f2fc;
    border: 1px solid #b9d4ee;
    color: #0b4a86;
}

/* ==========================================================================
   CAROUSEL HIỆN ĐẠI — arrow tròn, indicator pills, caption đẹp
   ========================================================================== */

/* Vùng chứa: clip img để bo góc */
.hero-slide .carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

.hero-slide .carousel-inner .item img {
    transition: transform 6s ease-out;
}

.hero-slide .carousel-inner .item.active img {
    transform: scale(1.03);
}

/* ---- Ẩn nút pause giữa carousel ---- */
.hero-slide .carousel .pause,
.hero-slide .carousel-pause,
.hero-slide .carousel:hover .pause {
    display: none !important;
    visibility: hidden !important;
}

/* ---- Mũi tên trái/phải: hình tròn bán trong suốt ---- */
.hero-slide .carousel-control {
    width: 50px;
    height: 50px;
    top: 42%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255,255,255,.35);
    border-radius: 50%;
    opacity: 1;
    text-shadow: none;
    line-height: 50px;
    transition: background .2s, transform .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide .carousel-control:hover {
    background: rgba(255,255,255,.75);
    transform: translateY(-50%) scale(1.08);
}

.hero-slide .carousel-control.left {
    left: 14px;
}

.hero-slide .carousel-control.right {
    right: 14px;
}

/* Icon Font Awesome trong nút tròn */
.hero-slide .carousel-control .glyphicon {
    font-size: 20px;
    color: #1e293b;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide .carousel-control .glyphicon-chevron-left,
.hero-slide .carousel-control .glyphicon-chevron-right {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin: auto;
}

/* ---- Chỉ báo (dots): pill ngắn, xanh VNPT ---- */
.hero-slide .carousel-indicators {
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    margin: 0;
    padding: 6px 12px;
    background: rgba(0,0,0,.25);
    border-radius: 20px;
}

.hero-slide .carousel-indicators li {
    width: 28px;
    height: 4px;
    border: none;
    border-radius: 3px;
    background: rgba(255,255,255,.45);
    margin: 0 3px;
    transition: background .2s, width .2s;
}

.hero-slide .carousel-indicators li.active {
    width: 40px;
    background: #fff;
}

/* ---- Caption: gradient đẹp hơn ---- */
.hero-slide .carousel-caption {
    background: linear-gradient(transparent 0%, rgba(0,0,0,.65) 100%);
    padding-bottom: 50px;
    z-index: 10;
}

.hero-slide .carousel-caption h4 {
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.hero-slide .carousel-caption p {
    opacity: .9;
}

@media (max-width: 768px) {
    .hero-slide .carousel-control {
        width: 36px;
        height: 36px;
        line-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-slide .carousel-control .glyphicon {
        font-size: 14px;
    }
    .hero-slide .carousel-control.left  { left: 8px; }
    .hero-slide .carousel-control.right { right: 8px; }
}

/* (menu styles merged into main section above) */

/* ==========================================================================
   HƯỚNG DẪN SỬ DỤNG (quản trị)
   ========================================================================== */
.guide-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #003a6e, #005AA9 60%, #1f7bc4);
    color: #fff;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(0, 90, 169, .25);
}

.guide-hero-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.16);
    border-radius: 14px;
    font-size: 26px;
}

.guide-hero h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.guide-hero p {
    margin: 0;
    font-size: 13px;
    opacity: .85;
}

.guide-section {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
}

.guide-section > h4 {
    color: #005AA9;
    margin: 0 0 10px;
    font-weight: 700;
}

/* Guide section toggle */
.guide-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 10px 14px;
    margin: -20px -22px 16px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fc 100%);
    border-bottom: 2px solid #d4e6f9;
    transition: background .2s;
}

.guide-section-header:hover {
    background: linear-gradient(135deg, #e8f0fc 0%, #dce8f7 100%);
}

.guide-section-header h4 {
    margin: 0;
    flex: 1;
}

.guide-section-toggle-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    color: #005AA9;
    font-size: 12px;
    transition: transform .3s ease, background .2s;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.guide-section.collapsed .guide-section-toggle-icon {
    transform: rotate(-90deg);
    background: #f1f6fc;
}

.guide-section-header:hover .guide-section-toggle-icon {
    background: #e0ecf8;
}

.guide-section-body {
    overflow: hidden;
    transition: max-height .4s ease, opacity .3s ease;
}

.guide-section.collapsed .guide-section-body {
    max-height: 0 !important;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.guide-section.collapsed {
    padding-bottom: 0;
    margin-bottom: 18px;
}

/* Nút Thu gọn/Mở rộng tất cả */
.btn-guide-toggle-all {
    /*background: rgba(255,255,255,.15) !important;
    color: #fff !important;*/
    border: 2px solid rgba(255,255,255,.35) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.btn-guide-toggle-all:hover {
    background: rgba(255,255,255,.3) !important;
    border-color: rgba(255,255,255,.6) !important;
}

@media print {
    .btn-guide-toggle-all {
        display: none !important;
    }
}

.guide-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #005AA9, #004A85);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
}

.guide-card {
    background: #f8fafd;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    height: 100%;
}

.guide-card-blue {
    background: #eef5fc;
    border-color: #b9d4ee;
}

.guide-card-title {
    font-weight: 700;
    color: #0b4a86;
    margin-bottom: 8px;
}

.guide-card-title i {
    color: #005AA9;
    margin-right: 6px;
}

.guide-card ul, .guide-card ol {
    padding-left: 18px;
    margin-bottom: 0;
}

.guide-card li {
    margin-bottom: 4px;
}

.guide-tip {
    border-radius: 8px;
}

.guide-table {
    margin-top: 8px;
}

.guide-table thead th {
    background: #f1f6fc;
    color: #0b4a86;
}

@media (max-width: 768px) {
    .guide-hero { padding: 16px; }
    .guide-hero h2 { font-size: 18px; }
    .guide-hero-icon { width: 46px; height: 46px; min-width: 46px; font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════
   GIAO DIỆN QUẢN TRỊ — chuyên nghiệp, nhất quán
   ═══════════════════════════════════════════════════════════════════ */

/* ---------- Tiêu đề trang (h2) ---------- */
.body-content:not(.public-content) h2 {
    /*color: #003a6e;*/
    font-weight: 700;
    font-size: 22px;
    margin-top: 4px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid #005AA9;
    display: inline-block;
}

.body-content:not(.public-content) h2 i {
    color: #005AA9;
    margin-right: 8px;
}

/* ---------- Bảng quản trị ---------- */
.body-content:not(.public-content) .table > thead > tr > th {
    background: linear-gradient(135deg, #005AA9, #004a85);
    border-bottom: 2px solid #003a6e;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 14px;
    white-space: nowrap;
}

.body-content:not(.public-content) .table-bordered {
    border: 1px solid #d4dee9;
    border-radius: 10px;
    overflow: hidden;
}

.body-content:not(.public-content) .table-bordered > thead > tr > th,
.body-content:not(.public-content) .table-bordered > tbody > tr > td,
.body-content:not(.public-content) .table-bordered > tfoot > tr > th,
.body-content:not(.public-content) .table-bordered > tfoot > tr > td {
    border-color: #d4dee9;
}

.body-content:not(.public-content) .table-bordered > tbody > tr:nth-child(even) {
    background: #f8fafc;
}

.body-content:not(.public-content) .table-bordered > tbody > tr:nth-child(odd) {
    background: #fff;
}

.body-content:not(.public-content) .table-hover > tbody > tr:hover {
    background: #e9f2fc;
}

.body-content:not(.public-content) .table > tbody > tr > td {
    vertical-align: middle;
    padding: 11px 14px;
    font-size: 14px;
    color: #1e293b;
}

.body-content:not(.public-content) .table > thead > tr > th {
    vertical-align: middle;
}

/* ---------- Nút bấm quản trị ---------- */
.body-content:not(.public-content) .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    transition: all .18s ease;
    border: 1px solid transparent;
}

.body-content:not(.public-content) .btn i {
    margin-right: 5px;
}

.body-content:not(.public-content) .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.body-content:not(.public-content) .btn-xs {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
}

.body-content:not(.public-content) .btn-primary {
    background: linear-gradient(135deg, #005AA9, #004A85);
    border-color: #004A85;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 42, 82, .18);
}

.body-content:not(.public-content) .btn-primary:hover,
.body-content:not(.public-content) .btn-primary:focus {
    background: linear-gradient(135deg, #004A85, #003a6e);
    border-color: #003a6e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 42, 82, .22);
}

.body-content:not(.public-content) .btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #15803d;
    color: #fff;
    box-shadow: 0 2px 6px rgba(22, 163, 74, .18);
}

.body-content:not(.public-content) .btn-success:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    border-color: #166534;
    transform: translateY(-1px);
}

.body-content:not(.public-content) .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, .18);
}

.body-content:not(.public-content) .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #b91c1c;
    transform: translateY(-1px);
}

.body-content:not(.public-content) .btn-default {
    background: #fff;
    border-color: #d4dee9;
    color: #005AA9;
}

.body-content:not(.public-content) .btn-default:hover,
.body-content:not(.public-content) .btn-default:focus {
    background: #f1f5f9;
    border-color: #005AA9;
    color: #005AA9;
}

.body-content:not(.public-content) .btn-warning {
    background: linear-gradient(135deg, #005AA9, #004A85);
    border-color: #004A85;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 42, 82, .18);
}

.body-content:not(.public-content) .btn-warning:hover {
    background: linear-gradient(135deg, #004A85, #003a6e);
    border-color: #003a6e;
    color: #fff;
    transform: translateY(-1px);
}

.body-content:not(.public-content) .btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-color: #0891b2;
    color: #fff;
}

.body-content:not(.public-content) .btn-info:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    border-color: #0e7490;
    transform: translateY(-1px);
}

/* ---------- Ô nhập liệu quản trị ---------- */
.body-content:not(.public-content) .form-control {
    border: 1px solid #d4dee9;
    border-radius: 8px;
    box-shadow: none;
    height: 40px;
    font-size: 14px;
    color: #1e293b;
    transition: border-color .2s, box-shadow .2s;
}

.body-content:not(.public-content) .form-control:focus {
    border-color: #005AA9;
    box-shadow: 0 0 0 3px rgba(0, 90, 169, .12);
}

.body-content:not(.public-content) textarea.form-control {
    height: auto;
    min-height: 80px;
}

.body-content:not(.public-content) select.form-control {
    appearance: auto;
}

/* ---------- Label / Nhãn ---------- */
.body-content:not(.public-content) .label {
    border-radius: 6px;
    font-weight: 600;
    padding: .3em .7em;
    font-size: 11.5px;
    letter-spacing: .02em;
    display: inline-block;
    line-height: 1.4;
}

.body-content:not(.public-content) .label-default {
    background: #94a3b8;
}

.body-content:not(.public-content) .label-primary {
    background: #005AA9;
}

.body-content:not(.public-content) .label-success {
    background: #16a34a;
}

.body-content:not(.public-content) .label-danger {
    background: #dc2626;
}

.body-content:not(.public-content) .label-info {
    background: #0891b2;
}

/* ---------- Thông báo (alert) ---------- */
.body-content:not(.public-content) .alert-success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.body-content:not(.public-content) .alert-danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.body-content:not(.public-content) .alert-info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* ---------- Panel quản trị ---------- */
.body-content:not(.public-content) .panel {
    border: 1px solid #d4dee9;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    overflow: hidden;
    background: #fff;
}

.body-content:not(.public-content) .panel-default > .panel-heading {
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
    color: #003a6e;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 18px;
}

.body-content:not(.public-content) .panel-default > .panel-heading i {
    color: #005AA9;
    margin-right: 6px;
}

/* ---------- Form horizontal ---------- */
.body-content:not(.public-content) .form-horizontal .control-label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    padding-top: 8px;
}

.body-content:not(.public-content) .form-horizontal .form-group {
    margin-bottom: 16px;
}

.body-content:not(.public-content) .form-horizontal .form-group:last-child {
    margin-top: 20px;
}

.body-content:not(.public-content) .input-group {
    border-radius: 8px;
}

.body-content:not(.public-content) .input-group-addon {
    background: #f1f5f9;
    border: 1px solid #d4dee9;
    border-radius: 8px 0 0 8px;
    color: #005AA9;
}

/* ---------- Well / Khung xác nhận ---------- */
.body-content:not(.public-content) .well {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: none;
}

/* ---------- Validation errors ---------- */
.body-content:not(.public-content) .text-danger {
    font-size: 12px;
    margin-top: 3px;
}

.body-content:not(.public-content) .validation-summary-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    color: #991b1b;
}

.body-content:not(.public-content) .validation-summary-errors ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.body-content:not(.public-content) .validation-summary-errors ul li {
    margin-bottom: 2px;
    font-size: 13px;
}

/* ---------- Trang xác nhận xóa ---------- */
.body-content:not(.public-content) .text-danger p {
    font-weight: 600;
}

/* ======================================================
   CHI TIẾT / dl-horizontal Admin — Premium Design
   ====================================================== */

/* --- Card container --- */
.body-content:not(.public-content) dl.dl-horizontal {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow:
        0 1px 3px rgba(0, 40, 80, .04),
        0 6px 24px rgba(0, 40, 80, .08),
        0 16px 48px rgba(0, 40, 80, .04);
    position: relative;
}

/* Gradient accent stripe trên cùng card */
.body-content:not(.public-content) dl.dl-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #003a6e 0%, #005AA9 35%, #00a3e0 70%, #005AA9 100%);
    z-index: 1;
}

/* --- Row: dt + dd --- */
.body-content:not(.public-content) dl.dl-horizontal > dt,
.body-content:not(.public-content) dl.dl-horizontal > dd {
    margin: 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 14.5px;
    line-height: 1.7;
    vertical-align: middle;
    transition: background .2s ease, transform .15s ease;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Hover effect: nền xanh nhạt nhẹ nhàng */
.body-content:not(.public-content) dl.dl-horizontal > dt:hover,
.body-content:not(.public-content) dl.dl-horizontal > dd:hover {
    background: #f0f7ff;
}

/* --- dt: label --- */
.body-content:not(.public-content) dl.dl-horizontal > dt {
    padding-left: 22px;
    padding-right: 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: #005AA9;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-right: 2px solid #e4eaf2;
    white-space: nowrap;
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    position: relative;
}

/* Viền trái accent cho dt */
.body-content:not(.public-content) dl.dl-horizontal > dt::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, #005AA9, #00a3e0);
    border-radius: 0 3px 3px 0;
}

/* Icon trong dt */
.body-content:not(.public-content) dl.dl-horizontal > dt i {
    margin-right: 10px;
    font-size: 14px;
    opacity: .7;
    transition: opacity .2s;
}
.body-content:not(.public-content) dl.dl-horizontal > dt:hover i {
    opacity: 1;
}

/* --- dd: giá trị --- */
.body-content:not(.public-content) dl.dl-horizontal > dd {
    padding-left: 44px !important;
    padding-right: 28px;
    color: #1e293b;
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: .01em;
}

/* Borders cuối */
.body-content:not(.public-content) dl.dl-horizontal > dt:last-of-type,
.body-content:not(.public-content) dl.dl-horizontal > dd:last-of-type {
    border-bottom: none;
}

/* Giá trị rỗng */
.body-content:not(.public-content) dl.dl-horizontal > dd:empty::before {
    content: "—";
    color: #94a3b8;
    font-style: italic;
}

/* --- Nút trong trang chi tiết --- */
.body-content:not(.public-content) dl.dl-horizontal + p {
    margin-top: 4px;
    padding: 0 8px 8px;
}
.body-content:not(.public-content) dl.dl-horizontal + p .btn {
    margin-top: 20px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 10px 24px;
    transition: all .2s ease;
}
.body-content:not(.public-content) dl.dl-horizontal + p .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 90, 169, .25);
}
.body-content:not(.public-content) dl.dl-horizontal + p .btn:first-child {
    margin-right: 12px;
}

/* ======================================================
   RESPONSIVE — Chi tiết
   ====================================================== */
@media (max-width: 991px) {
    .body-content:not(.public-content) dl.dl-horizontal > dt {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        font-size: 11.5px;
    }
    .body-content:not(.public-content) dl.dl-horizontal > dd {
        padding-left: 36px !important;
        font-size: 14.5px;
    }
}
@media (max-width: 767px) {
    .body-content:not(.public-content) dl.dl-horizontal {
        border-radius: 12px;
        margin-bottom: 20px;
    }
    .body-content:not(.public-content) dl.dl-horizontal > dt,
    .body-content:not(.public-content) dl.dl-horizontal > dd {
        padding: 12px 16px !important;
        font-size: 13.5px;
        display: block;
        width: 100% !important;
        min-width: auto !important;
        max-width: none !important;
        border-bottom: 1px solid #e8edf4;
    }
    .body-content:not(.public-content) dl.dl-horizontal > dt {
        border-right: none;
        border-bottom: none;
        border-left: none;
        background: linear-gradient(135deg, #005AA9 0%, #0078d4 100%);
        color: #fff;
        font-size: 11px;
        padding: 10px 16px 6px !important;
        letter-spacing: .1em;
    }
    .body-content:not(.public-content) dl.dl-horizontal > dt::after {
        display: none;
    }
    .body-content:not(.public-content) dl.dl-horizontal > dt i {
        color: #fff;
        opacity: .9;
    }
    .body-content:not(.public-content) dl.dl-horizontal > dd {
        padding: 8px 16px 16px !important;
        font-size: 14px;
        background: #fff;
    }
    .body-content:not(.public-content) dl.dl-horizontal + p .btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- Responsive admin ---------- */
@media (max-width: 767px) {
    .body-content:not(.public-content) h2 {
        font-size: 18px;
    }
    .body-content:not(.public-content) .table {
        font-size: 13px;
    }
    .body-content:not(.public-content) .table > thead > tr > th {
        font-size: 11px;
        padding: 10px 8px;
    }
    .body-content:not(.public-content) .table > tbody > tr > td {
        padding: 9px 8px;
        font-size: 13px;
    }
    .body-content:not(.public-content) .btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    .body-content:not(.public-content) .form-horizontal .control-label {
        text-align: left;
        margin-bottom: 4px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN — SIDEBAR TRƯỢT DỌC (thay navbar ngang)
   ═══════════════════════════════════════════════════════════════════ */

.admin-body {
    padding-top: 0;
    background: #eef2f6;
}

/* ---------- Topbar ---------- */
.admin-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: linear-gradient(135deg, #003a6e 0%, #005AA9 60%, #0077c8 100%);
    box-shadow: 0 2px 10px rgba(0, 42, 82, .25);
    z-index: 1040;
}

.admin-topbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    gap: 12px;
}

.admin-sidebar-toggle {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all .18s ease;
    flex-shrink: 0;
}

.admin-sidebar-toggle:hover {
    background: rgba(255, 255, 255, .25);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none !important;
}
    .admin-brand:hover {
        color: #fff !important;
        text-decoration: none !important;
    }

.admin-brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .14);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border: 1px solid rgba(255, 255, 255, .25);
    flex-shrink: 0;
}

.admin-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.admin-brand-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .02em;
}

.admin-brand-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .8);
}

.admin-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}

.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-user-name {
    font-weight: 600;
    font-size: 13.5px;
}

.admin-user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
}

.admin-logout-form {
    margin: 0;
}

.admin-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none !important;
    transition: all .18s ease;
}

.admin-logout:hover {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

/* ---------- Sidebar ---------- */
.admin-sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #0a2f5a 0%, #072244 100%);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1030;
    transition: transform .28s ease, width .28s ease;
    display: flex;
    flex-direction: column;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 3px;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 14px 10px;
}

.admin-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-menu-item a,
.admin-menu-group > .admin-menu-group-toggle {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    color: #cfe0f2;
    font-size: 14px;
    text-decoration: none !important;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all .16s ease;
    white-space: nowrap;
}

.admin-menu-group > .admin-menu-group-toggle {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: #dce8f5;
}

.admin-menu-item a:hover,
.admin-menu-group > .admin-menu-group-toggle:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.admin-menu-item.active > a {
    background: linear-gradient(90deg, rgba(0, 122, 200, .85), rgba(0, 90, 169, .55));
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #6fc3f5;
}

.admin-menu-item a i,
.admin-menu-group > .admin-menu-group-toggle > i:first-child {
    width: 20px;
    text-align: center;
    font-size: 15.5px;
    flex-shrink: 0;
}

.admin-menu-caret {
    margin-left: auto;
    font-size: 11px !important;
    transition: transform .2s ease;
    opacity: .7;
}

.admin-menu-group.open > .admin-menu-group-toggle .admin-menu-caret {
    transform: rotate(180deg);
}

.admin-menu-group.open > .admin-menu-group-toggle {
    color: #fff;
}

/* ---------- Submenu ---------- */
.admin-menu-sub {
    list-style: none;
    margin: 0 0 4px;
    padding: 0 0 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
}

.admin-menu-group.open > .admin-menu-sub {
    max-height: 800px;
}

.admin-menu-sub li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #b9cde4;
    font-size: 13.5px;
    text-decoration: none !important;
    border-radius: 7px;
    margin-bottom: 1px;
    transition: all .16s ease;
    white-space: nowrap;
}

.admin-menu-sub li a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding-left: 16px;
}

.admin-menu-sub li.active a {
    background: rgba(0, 122, 200, .5);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #6fc3f5;
}

.admin-menu-sub li a i {
    width: 18px;
    text-align: center;
    font-size: 13.5px;
    flex-shrink: 0;
}

.admin-menu-group.active > .admin-menu-group-toggle {
    color: #fff;
}

.admin-menu-sep {
    height: 1px;
    background: rgba(255, 255, 255, .12);
    margin: 8px 12px;
}

.admin-menu-subhead {
    padding: 6px 12px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .45);
    font-weight: 600;
}

.admin-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 11px;
    color: rgba(255, 255, 255, .4);
    text-align: center;
}

/* ---------- Main content ---------- */
.admin-main {
    margin-left: 260px;
    padding-top: 58px;
    min-height: 100vh;
    transition: margin-left .28s ease;
}

.admin-main .container {
    width: auto;
    max-width: none;
    padding: 22px 26px 10px;
}

/* ---------- Trạng thái thu gọn (icon-only) ---------- */
body.admin-sidebar-collapsed .admin-sidebar {
    width: 64px;
}

body.admin-sidebar-collapsed .admin-main {
    margin-left: 64px;
}

body.admin-sidebar-collapsed .admin-menu-text,
body.admin-sidebar-collapsed .admin-menu-caret,
body.admin-sidebar-collapsed .admin-menu-sub,
body.admin-sidebar-collapsed .admin-menu-subhead,
body.admin-sidebar-collapsed .admin-menu-sep,
body.admin-sidebar-collapsed .admin-sidebar-footer {
    display: none;
}

body.admin-sidebar-collapsed .admin-menu-item a,
body.admin-sidebar-collapsed .admin-menu-group > .admin-menu-group-toggle {
    justify-content: center;
    padding: 11px 0;
}

body.admin-sidebar-collapsed .admin-menu-item a i,
body.admin-sidebar-collapsed .admin-menu-group > .admin-menu-group-toggle > i:first-child {
    font-size: 17px;
    width: auto;
}

body.admin-sidebar-collapsed .admin-menu-group.open > .admin-menu-sub {
    max-height: 0;
}

/* ---------- Backdrop (mobile) ---------- */
.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 22, 42, .5);
    z-index: 1025;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

/* ---------- Mobile (< 992px): sidebar off-canvas ---------- */
@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 270px;
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0, 0, 0, .3);
    }

    .admin-main {
        margin-left: 0 !important;
    }

    .admin-main .container {
        padding: 16px 14px 10px;
    }

    body.admin-sidebar-mobile-open .admin-sidebar {
        transform: translateX(0);
    }

    body.admin-sidebar-mobile-open .admin-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body.admin-sidebar-collapsed .admin-menu-text,
    body.admin-sidebar-collapsed .admin-menu-caret,
    body.admin-sidebar-collapsed .admin-menu-sub,
    body.admin-sidebar-collapsed .admin-menu-subhead,
    body.admin-sidebar-collapsed .admin-menu-sep,
    body.admin-sidebar-collapsed .admin-sidebar-footer {
        display: block;
    }

    body.admin-sidebar-collapsed .admin-menu-item a,
    body.admin-sidebar-collapsed .admin-menu-group > .admin-menu-group-toggle {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .admin-user-meta {
        display: none;
    }

    .admin-brand-sub {
        display: none;
    }
}

@media (max-width: 480px) {
    .admin-logout-text {
        display: none;
    }
    .admin-logout {
        padding: 7px 10px;
    }
    .admin-brand-name {
        font-size: 14px;
    }
}

/* ===== Trip Grid (TimChuyen) ===== */
.trip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.trip-mini-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15,23,42,.04);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
    border-top: 3px solid #005AA9;
}

.trip-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,90,169,.12);
}

.trip-mini-card.trip-full {
    border-top-color: #dc2626;
    opacity: .75;
}

.trip-mini-card.trip-past {
    border-top-color: #64748b;
    background: #f8fafc;
}

.trip-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.trip-mini-route {
    font-size: 14px;
    font-weight: 700;
    color: #003a6e;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.trip-mini-price {
    font-size: 16px;
    font-weight: 800;
    color: #005AA9;
    white-space: nowrap;
}

.trip-mini-subroute {
    font-size: 12.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: -4px;
}

.trip-mini-time {
    font-size: 15px;
    font-weight: 800;
    color: #003a6e;
}

.trip-mini-time i {
    color: #005AA9;
    margin-right: 2px;
}

.trip-mini-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
}

.trip-mini-info i {
    margin-right: 3px;
    color: #94a3b8;
}

.trip-mini-company {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   ICON DANH SÁCH XE/TÀU trên thẻ chuyến gộp — hover/tap bung danh sách
   ========================================================================== */
.trip-xe-wrap {
    position: relative;
    align-self: flex-start;
}

.trip-xe-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #005AA9;
    background: #f0f7ff;
    border: 1px solid #cce3ff;
    border-radius: 999px;
    padding: 3px 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.trip-xe-trigger:hover,
.trip-xe-trigger:focus {
    background: #dcebff;
    outline: none;
}

.trip-xe-trigger i {
    font-size: 12px;
}

.trip-xe-pop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    min-width: 260px;
    max-width: 320px;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
    padding: 6px;
}

/* Hover chuột HOẶC focus bằng bàn phím/tap mobile đều bung danh sách */
.trip-xe-wrap:hover .trip-xe-pop,
.trip-xe-wrap:focus-within .trip-xe-pop {
    display: block;
}

.trip-xe-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 12px;
    color: #334155;
}

.trip-xe-item + .trip-xe-item {
    border-top: 1px solid #f1f5f9;
    border-radius: 0;
}

.trip-xe-item:hover {
    background: #f0f7ff;
}

.trip-xe-plate {
    font-weight: 700;
    color: #0f2a47;
    white-space: nowrap;
}

.trip-xe-type {
    font-size: 10.5px;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.trip-xe-nx {
    margin-left: auto;
    font-size: 11px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.trip-mini-company i {
    color: #94a3b8;
}

.trip-mini-plate {
    font-size: 11px;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.trip-mini-footer {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.trip-mini-seat {
    font-size: 12px;
    font-weight: 600;
}

.trip-mini-seat.ok {
    color: #16a34a;
}

.trip-mini-seat.full {
    color: #dc2626;
}

.trip-mini-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #005AA9;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0f7ff;
    border: 1px solid #cce3ff;
    transition: all 0.2s;
}

.trip-mini-detail-btn:hover {
    background: #005AA9;
    color: #fff;
    border-color: #005AA9;
    text-decoration: none;
}

@media (max-width: 992px) {
    .trip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .trip-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Chi tiết chuyến tàu ===== */
.detail-row {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
}

.detail-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.detail-label i {
    width: 16px;
    color: #005AA9;
    margin-right: 4px;
}

.detail-value {
    font-size: 15px;
    color: #1e293b;
}

@media (max-width: 600px) {
    .detail-row {
        padding: 10px 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT STYLES — Hướng dẫn sử dụng
   ═══════════════════════════════════════════════════════════════════ */

.guide-print-cover {
    display: none;
}

@media print {
    /* ═══════════════ ẨN TOÀN BỘ CHROME ADMIN ═══════════════ */
    .admin-sidebar,
    .admin-sidebar-backdrop,
    .admin-topbar,
    .admin-sidebar-toggle,
    .admin-sidebar-footer,
    header.admin-topbar,
    div.admin-topbar,
    .admin-main > .container > footer,
    .admin-main > .container > hr,
    .admin-topbar-inner,
    .admin-brand,
    .admin-topbar-right,
    .admin-user,
    .admin-logout,
    .admin-logout-form,
    .admin-user-avatar,
    .admin-user-meta,
    .admin-user-name,
    .admin-user-role,
    .btn,
    .guide-print-btn,
    #btnDownloadPdf,
    #btnDownloadPdfBottom,
    .guide-section-toggle-icon,
    .text-center {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* ═══════════════ RESET BODY ═══════════════ */
    html, body {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
    }

    body.admin-body {
        padding-top: 0 !important;
        position: static !important;
    }

    /* Bỏ fixed position khi in — sidebar/topbar đã ẩn bằng display:none */
    .admin-sidebar, .admin-topbar, .admin-sidebar-toggle {
        position: static !important;
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .admin-main > .container,
    .admin-main > .container.body-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        margin: 0 !important;
    }

    /* ═══════════════ TRANG BÌA ═══════════════ */
    .guide-print-cover {
        display: block !important;
        visibility: visible !important;
        page-break-after: always;
        text-align: center;
        padding: 100px 30px 60px;
        border-bottom: 3px double #005AA9;
        margin-bottom: 20px;
    }

    .guide-print-cover h1 {
        font-size: 28px;
        color: #003a6e;
        font-weight: 800;
    }

    .guide-print-cover h2 {
        font-size: 20px;
        color: #005AA9;
        font-weight: 600;
    }

    /* Ẩn hero */
    .guide-hero {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* ═══════════════ GUIDE SECTIONS ═══════════════ */
    .guide-section {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 12px !important;
        padding: 12px 14px !important;
        background: #fff !important;
    }

    /* Mở rộng collapsed sections khi in */
    .guide-section.collapsed .guide-section-body {
        max-height: none !important;
        height: auto !important;
        opacity: 1 !important;
        overflow: visible !important;
        display: block !important;
    }

    .guide-section.collapsed {
        padding-bottom: 12px !important;
    }

    .guide-section-header {
        background: #f0f6ff !important;
        border-radius: 0 !important;
        margin: -12px -14px 10px !important;
        padding: 6px 12px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .guide-section > h4,
    .guide-section-header h4 {
        color: #003a6e !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }

    .guide-step {
        background: #005AA9 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .guide-card {
        border: 1px solid #ddd !important;
        background: #f9f9f9 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .guide-card-blue {
        background: #eef3fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Bảng */
    .table-bordered > thead > tr > th {
        background: #f1f6fc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .label-primary, .label-default {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Alert */
    .alert-info, .alert-warning {
        border: 1px solid #ccc !important;
        background: #f9f9f9 !important;
        box-shadow: none !important;
    }

    /* Mockup — giữ nguyên khi in */
    .guide-mockup {
        page-break-inside: avoid;
        border: 1px solid #ccc !important;
    }

    /* Footer in */
    .guide-print-footer {
        display: block !important;
        visibility: visible !important;
        text-align: center;
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid #ccc;
        font-size: 11px;
        color: #666;
    }

    /* Row/col */
    .row { display: flex; flex-wrap: wrap; }
    .col-md-3, .col-md-4, .col-md-6 { flex: 0 0 50%; max-width: 50%; }

    /* Links */
    a[href]::after { content: none !important; }
}

/* Print footer — chỉ hiện khi in */
.guide-print-footer {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   GUIDE MOCKUP — Ảnh minh họa CSS cho hướng dẫn sử dụng
   ═══════════════════════════════════════════════════════════════════ */

.guide-mockup {
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0 20px;
    box-shadow: 0 4px 16px rgba(15,23,42,.08);
    background: #f8fafd;
}

.guide-mockup-header {
    background: linear-gradient(135deg, #003a6e, #005AA9);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-mockup-body {
    padding: 16px;
}

.guide-mock-caption {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 10px;
    font-style: italic;
}

/* --- Dashboard Mockup --- */
.guide-mock-row {
    display: flex;
    gap: 12px;
}

.guide-mock-col {
    flex: 1;
    min-width: 0;
}

.guide-mock-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 12px;
    height: 100%;
}

.guide-mock-card-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-mock-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.guide-mock-stat {
    flex: 1;
    text-align: center;
    background: #f1f6fc;
    border-radius: 6px;
    padding: 8px 4px;
}

.guide-mock-num {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #005AA9;
}

.guide-mock-stat span:last-child {
    font-size: 10px;
    color: #64748b;
}

.guide-mock-table {
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    overflow: hidden;
}

.guide-mock-table-head {
    background: #f1f6fc;
    font-size: 11px;
    font-weight: 700;
    color: #0b4a86;
    padding: 6px 10px;
}

.guide-mock-row-item {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 5px 10px;
    border-top: 1px solid #f0f4fa;
    color: #334155;
}

.guide-mock-row-item span:last-child {
    font-weight: 700;
    color: #005AA9;
}

@media (max-width: 768px) {
    .guide-mock-row { flex-direction: column; }
}

/* --- Clone ngày Mockup --- */
.guide-mock-clone {
    max-width: 520px;
    margin: 0 auto;
}

.guide-mock-clone-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.guide-mock-btn-sm {
    background: #f1f6fc;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.guide-mock-btn-info {
    background: linear-gradient(135deg, #005AA9, #004A85);
    color: #fff;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,90,169,.3);
}

.guide-mock-clone-modal {
    background: #fff;
    border: 1px solid #d1d9e6;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,.12);
    overflow: hidden;
}

.guide-mock-modal-title {
    background: linear-gradient(135deg, #003a6e, #005AA9);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
}

.guide-mock-modal-body {
    padding: 16px;
}

.guide-mock-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.guide-mock-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    min-width: 90px;
}

.guide-mock-input {
    flex: 1;
    background: #fff;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1e293b;
}

.guide-mock-arrow {
    text-align: center;
    color: #005AA9;
    font-size: 18px;
    margin: 6px 0;
}

.guide-mock-clone-result {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #065f46;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.guide-mock-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e3e8ef;
    background: #f8fafd;
}

.guide-mock-btn-cancel {
    background: #f1f5f9;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: #64748b;
}

.guide-mock-btn-primary {
    background: linear-gradient(135deg, #005AA9, #004A85);
    color: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Card Grid Mockup --- */
.guide-mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.guide-mock-trip-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,23,42,.06);
    transition: transform .2s, box-shadow .2s;
}

.guide-mock-trip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15,23,42,.12);
}

.guide-mock-trip-route {
    background: linear-gradient(135deg, #005AA9, #004A85);
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-mock-trip-route i {
    font-size: 10px;
    opacity: .7;
}

.guide-mock-trip-info {
    padding: 8px 12px 4px;
    font-size: 11px;
    color: #64748b;
}

.guide-mock-trip-meta {
    padding: 0 12px 8px;
    font-size: 11px;
    color: #94a3b8;
}

.guide-mock-trip-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #f0f4fa;
}

.guide-mock-price {
    font-size: 15px;
    font-weight: 800;
    color: #e11d48;
}

.guide-mock-seats {
    font-size: 11px;
    color: #0a6e3a;
    font-weight: 600;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 12px;
}

.guide-mock-trip-footer {
    padding: 6px 12px 10px;
    text-align: right;
}

.guide-mock-detail-btn {
    font-size: 12px;
    color: #005AA9;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .guide-mock-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .guide-mock-grid { grid-template-columns: 1fr; }
}

/* ==================== Dịch vụ tiện ích (trang công khai) ==================== */
.sv-page { padding-bottom: 60px; }

/* Hero đầu trang */
.sv-hero {
    background: linear-gradient(135deg, #005AA9 0%, #0072CE 55%, #38BDF8 130%);
    color: #fff;
    padding: 42px 0 46px;
    margin-bottom: 34px;
}

.sv-hero-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.sv-hero-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.sv-hero h1 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .2px;
}

.sv-hero p {
    margin: 0;
    font-size: 15px;
    opacity: .92;
    max-width: 720px;
}

/* Nhóm dịch vụ */
.sv-group { margin-bottom: 38px; }

.sv-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sv-group-badge {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: #E8F1FB;
    color: #005AA9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.sv-group-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f2d52;
}

.sv-group-count {
    font-size: 12.5px;
    font-weight: 600;
    color: #005AA9;
    background: #E8F1FB;
    border-radius: 999px;
    padding: 3px 12px;
    margin-left: 4px;
}

/* Lưới thẻ dịch vụ */
.sv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 991px) {
    .sv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .sv-grid { grid-template-columns: 1fr; }
    .sv-hero h1 { font-size: 24px; }
    .sv-hero-icon { width: 56px; height: 56px; flex-basis: 56px; font-size: 24px; }
}

/* Thẻ dịch vụ */
.sv-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 90, 169, .13);
    border-color: #bcd7f2;
}

.sv-card-badge {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #E8F1FB, #F4F9FF);
    border: 1px solid #dbe7f5;
    color: #005AA9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

.sv-card-badge.sv-badge-img {
    background: #fff;
    padding: 0;
}

.sv-card-badge.sv-badge-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-card-body { min-width: 0; }

.sv-card-title {
    margin: 2px 0 6px;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f2d52;
}

.sv-card-desc {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #5b6b80;
    line-height: 1.55;
}

.sv-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #33455c;
    background: #F1F5FA;
    border: 1px solid #e2e9f2;
    border-radius: 999px;
    padding: 4px 12px;
    line-height: 1.4;
}

.sv-chip i { color: #005AA9; font-size: 12px; }

.sv-chip-time {
    color: #0a6e3a;
    background: #EDF9F1;
    border-color: #d3eddd;
}

.sv-chip-time i { color: #0a6e3a; }

/* Trạng thái trống */
.sv-empty {
    text-align: center;
    padding: 70px 20px;
    color: #8fa0b5;
}

.sv-empty i { font-size: 44px; margin-bottom: 14px; display: block; }

.sv-empty p { font-size: 15px; }

/* ==================== Bản đồ dịch vụ ==================== */
.sv-map-section {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

.sv-map-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sv-map-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f2d52;
}

.sv-map-sub {
    margin: 2px 0 0;
    font-size: 13.5px;
    color: #5b6b80;
}

.sv-map-canvas {
    display: block;
    width: 100%;
    height: 380px;
    border-radius: 12px;
    border: 1px solid #e2e9f2;
}

.sv-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sv-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #33455c;
    background: #F1F5FA;
    border: 1px solid #e2e9f2;
    border-radius: 999px;
    padding: 5px 13px 5px 6px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}

.sv-legend-item:hover {
    background: #E8F1FB;
    border-color: #bcd7f2;
    text-decoration: none;
}

.sv-legend-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #005AA9;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Chip chỉ đường trên thẻ dịch vụ */
.sv-chip-map {
    color: #005AA9;
    background: #E8F1FB;
    border-color: #c7ddf3;
    text-decoration: none;
}

.sv-chip-map:hover,
.sv-chip-map:focus {
    background: #d7e8f9;
    text-decoration: none;
    color: #004a8d;
}

/* ==========================================================================
   DANH BẠ NHÀ XE — trang chủ
   ========================================================================== */
/* Lưới danh bạ nhà xe: ép các cột trên cùng hàng cao bằng nhau (BS3 float không làm được)
   + margin dọc giữa các hàng để không dính vào nhau */
.nhaxe-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.nhaxe-grid > [class*="col-"] {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.nhaxe-grid .nhaxe-card {
    height: 100%;
}

.nhaxe-card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.nhaxe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 90, 169, .14);
    border-color: #bcd7f0;
}

.nhaxe-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.nhaxe-logo,
.nhaxe-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid #e8edf4;
    background: #fff;
    padding: 3px;
}

.nhaxe-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf3fc, #d7e8f9);
    color: #005AA9;
    font-size: 20px;
    border: none;
}

.nhaxe-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f2a47;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nhaxe-routes {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.nhaxe-route {
    font-size: 12.5px;
    color: #42566e;
    background: #f2f7fc;
    border-radius: 8px;
    padding: 4px 9px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nhaxe-route i {
    color: #005AA9;
    font-size: 11px;
}

.nhaxe-more {
    color: #7d8ea3;
    font-style: italic;
    background: transparent;
    padding-left: 2px;
}

.btn-nhaxe-call {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 12px;
    letter-spacing: .2px;
}

.btn-nhaxe-call:hover,
.btn-nhaxe-call:focus {
    color: #fff;
    background: linear-gradient(135deg, #15803d, #166534);
    text-decoration: none;
}

.btn-nhaxe-view {
    background: #eaf3fc;
    border: 1px solid #bcd7f0;
    color: #005AA9;
    font-weight: 700;
    border-radius: 10px;
    padding: 8px 12px;
}

.btn-nhaxe-view:hover,
.btn-nhaxe-view:focus {
    background: #d7e8f9;
    color: #004a8c;
    text-decoration: none;
}

/* ==========================================================================
   DROPDOWN NHÀ XE CÓ LOGO + SĐT (form tra cứu chuyến — trang chủ)
   ========================================================================== */
.nx-select-wrap {
    position: relative;
}

/* select gốc ẩn đi nhưng vẫn nhận giá trị khi submit form */
.nx-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nx-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 30px 6px 8px;
    min-height: 34px;
    position: relative;
    cursor: pointer;
}

.nx-toggle::after {
    content: "\f078"; /* chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #6b7280;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.nx-ava {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid #e8edf4;
    background: #fff;
    padding: 2px;
}

.nx-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf3fc, #d7e8f9);
    color: #005AA9;
    font-size: 12px;
    border: none;
}

.nx-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.nx-name {
    font-weight: 600;
    font-size: 13.5px;
    color: #0f2a47;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trong menu mở ra: cho phép tên xuống dòng, hiện đủ thông tin */
.nx-item .nx-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.nx-tel {
    font-size: 11.5px;
    color: #16a34a;
    font-weight: 600;
    white-space: nowrap;
}

.nx-tel i {
    font-size: 10px;
}

.nx-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: auto;
    width: 300px;
    max-width: calc(100vw - 30px);
    z-index: 1050;
    background: #fff;
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
}

.nx-search {
    width: 100%;
    border: 1px solid #e3edf7;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    margin-bottom: 6px;
    outline: none;
}

.nx-search:focus {
    border-color: #7db4e3;
}

.nx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
}

.nx-item:hover {
    background: #f2f7fc;
}

.nx-item.selected {
    background: #eaf3fc;
}

.nx-item.nx-all .nx-name {
    color: #6b7280;
    font-weight: 500;
}

.nx-empty {
    padding: 14px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Mobile: menu neo bởi JS (position fixed, full-width); nâng z-index trên nút nổi A+/A− (1050) */
@media (max-width: 767px) {
    .nx-menu {
        z-index: 1060;
    }
}

/* Chi tiết nhà xe (trang công khai) */
.nx-panel {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    height: 100%;
}

.nx-detail-logo,
.nx-detail-logo-fallback {
    width: 84px;
    height: 84px;
    border-radius: 16px;
}

.nx-detail-logo-fallback {
    font-size: 34px;
}

.nx-chip {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 12px;
}

.nx-chip-blue {
    background: #eaf3fc;
    color: #005AA9;
}

.nx-route-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f2f7fc;
    border: 1px solid #e3edf7;
    border-radius: 10px;
    color: #0f2a47;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.nx-route-link:hover,
.nx-route-link:focus {
    background: #eaf3fc;
    border-color: #bcd7f0;
    color: #005AA9;
    text-decoration: none;
}

.nx-route-link i {
    color: #005AA9;
}

.nx-route-name {
    flex: 1 1 auto;
}

/* Giờ khởi hành của nhà xe theo tuyến — bọc xuống dòng dưới tên tuyến */
.nx-route-gio {
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 500;
    color: #42566e;
    line-height: 1.6;
    word-spacing: 2px;
}

/* ==========================================================================
   NÚT CỠ CHỮ A+ / A− (accessibility)
   ========================================================================== */
.font-size-controls {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fsz-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1f7bc4, #005AA9);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
    transition: transform .2s, box-shadow .2s;
}

.fsz-btn:hover,
.fsz-btn:focus {
    transform: scale(1.08);
    box-shadow: 0 5px 18px rgba(0, 90, 169, .35);
    outline: none;
}

.fsz-btn:active {
    transform: scale(.95);
}

@media (max-width: 768px) {
    .font-size-controls {
        bottom: 84px;
    }

    .fsz-btn {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
}

/* ===== Toolbar danh sách admin: các nút cùng 1 hàng, thẳng baseline =====
   (form Xuất Excel không được lồng trong <p> - HTML tự đóng <p> khiến nút rớt hàng) */
.btn-export-form {
    display: inline-block;
    margin: 0 0 10px 6px;
    vertical-align: middle;
}

.btn-export-form .btn {
    margin-bottom: 0;
}

/* Hàng nút toolbar trên các trang quản lý: cùng hàng + thẳng giữa */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-row .btn,
.btn-row .btn-export-form {
    margin: 0;
}

/* ===== Dashboard mobile (<=768px): 2 bảng giờ xuất bến chuyển thành card xếp dọc =====
   Bỏ cuộn ngang; mỗi chuyến là 1 card, mỗi ô có nhãn mô tả (::before). */
@media (max-width: 768px) {
    #bang-gio-dash .schedule-scroll-wrapper,
    #bang-gio-tau-dash .schedule-scroll-wrapper {
        overflow: visible;
    }

    /* Ẩn header bảng (nhãn đã chuyển thành nhãn trong card) */
    #bang-gio-dash .schedule-scroll-header,
    #bang-gio-tau-dash .schedule-scroll-header {
        display: none;
    }

    #bang-gio-dash .schedule-scroll-body,
    #bang-gio-tau-dash .tau-scroll-body {
        overflow: visible;
        max-height: none;
    }

    #bang-gio-dash .schedule-table,
    #bang-gio-tau-dash .schedule-table {
        min-width: 0;
        display: block;
        border: none;
    }

    #bang-gio-dash .schedule-table tbody,
    #bang-gio-tau-dash .schedule-table tbody {
        display: block;
    }

    /* Mỗi chuyến = 1 card */
    #bang-gio-dash .schedule-table tr,
    #bang-gio-tau-dash .schedule-table tr {
        display: block;
        background: #fff;
        border: 1px solid #e3ecf5;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 90, 169, .06);
        padding: 10px 14px;
        margin-bottom: 10px;
    }

    #bang-gio-dash .schedule-table td,
    #bang-gio-tau-dash .schedule-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        border: none;
        padding: 3px 0;
        text-align: left;
        white-space: normal;
    }

    /* Nhãn mô tả từng dòng */
    #bang-gio-dash .schedule-table td::before,
    #bang-gio-tau-dash .schedule-table td::before {
        font-weight: 600;
        font-size: 12px;
        color: #64748b;
        flex-shrink: 0;
    }

    #bang-gio-dash .schedule-table td.cell-nhaxe::before { content: 'Nhà xe'; }
    #bang-gio-dash .schedule-table td.cell-tuyen::before { content: 'Tuyến'; }
    #bang-gio-dash .schedule-table td:nth-child(4)::before { content: 'Loại xe'; }
    #bang-gio-dash .schedule-table td:nth-child(5)::before { content: 'Giá vé'; }
    #bang-gio-dash .schedule-table td:nth-child(6)::before { content: 'Trạng thái'; }

    #bang-gio-tau-dash .schedule-table td.cell-nhaxe::before { content: 'Hãng tàu'; }
    #bang-gio-tau-dash .schedule-table td.cell-tuyen::before { content: 'Tuyến'; }
    #bang-gio-tau-dash .schedule-table td:nth-child(4)::before { content: 'Tàu'; }
    #bang-gio-tau-dash .schedule-table td:nth-child(5)::before { content: 'Giá vé'; }
    #bang-gio-tau-dash .schedule-table td:nth-child(6)::before { content: 'Trạng thái'; }

    /* Giờ khởi hành: dòng đầu nổi bật, không nhãn */
    #bang-gio-dash .schedule-table td.cell-gio,
    #bang-gio-tau-dash .schedule-table td.cell-gio {
        justify-content: flex-start;
        font-size: 18px;
        font-weight: 800;
        color: #003a6e;
        padding-bottom: 6px;
    }

    #bang-gio-dash .schedule-table td.cell-gio::before,
    #bang-gio-tau-dash .schedule-table td.cell-gio::before {
        content: none;
    }
}

/* ===== Trang chủ mobile (<=768px): 2 bảng giờ xuất bến thành card xếp dọc =====
   Tắt marquee (CSS + inline transform từ initScheduleScroll/initTauScroll);
   mỗi chuyến là 1 card có nhãn mô tả. */
@media (max-width: 768px) {
    #bang-gio .schedule-scroll-header,
    #bang-gio-tau .schedule-scroll-header {
        display: none;
    }

    #bang-gio .schedule-scroll-wrapper,
    #bang-gio-tau .schedule-scroll-wrapper {
        overflow: visible;
    }

    #bang-gio .schedule-scroll-body,
    #bang-gio-tau .tau-scroll-body {
        overflow: visible !important;
        max-height: none;
        position: static;
    }

    #bang-gio .schedule-scroll-body::after,
    #bang-gio-tau .tau-scroll-body::after {
        display: none;
    }

    #bang-gio .schedule-scroll-track,
    #bang-gio-tau .tau-scroll-track {
        animation: none !important;
        transform: none !important;
    }

    /* An ban clone marquee (khong chay marquee tren mobile) */
    #bang-gio .schedule-scroll-track > .schedule-table:not(:first-child),
    #bang-gio-tau .tau-scroll-track > .schedule-table:not(:first-child) {
        display: none;
    }

    #bang-gio .schedule-table,
    #bang-gio-tau .schedule-table {
        min-width: 0;
        display: block;
        border: none;
    }

    #bang-gio .schedule-table tbody,
    #bang-gio-tau .schedule-table tbody {
        display: block;
    }

    #bang-gio .schedule-table tr,
    #bang-gio-tau .schedule-table tr {
        display: block;
        background: #fff;
        border: 1px solid #e3ecf5;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0, 90, 169, .06);
        padding: 10px 14px;
        margin-bottom: 10px;
    }

    #bang-gio .schedule-table td,
    #bang-gio-tau .schedule-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        border: none;
        padding: 3px 0;
        text-align: left;
        white-space: normal;
    }

    #bang-gio .schedule-table td::before,
    #bang-gio-tau .schedule-table td::before {
        font-weight: 600;
        font-size: 12px;
        color: #64748b;
        flex-shrink: 0;
    }

    #bang-gio .schedule-table td.cell-nhaxe::before { content: 'Nhà xe'; }
    #bang-gio .schedule-table td.cell-tuyen::before { content: 'Tuyến'; }
    #bang-gio .schedule-table td:nth-child(4)::before { content: 'Loại xe'; }
    #bang-gio .schedule-table td:nth-child(5)::before { content: 'Giá vé'; }
    #bang-gio .schedule-table td:nth-child(6)::before { content: 'Trạng thái'; }

    #bang-gio-tau .schedule-table td.cell-nhaxe::before { content: 'Hãng tàu'; }
    #bang-gio-tau .schedule-table td.cell-tuyen::before { content: 'Tuyến'; }
    #bang-gio-tau .schedule-table td:nth-child(4)::before { content: 'Tàu'; }
    #bang-gio-tau .schedule-table td:nth-child(5)::before { content: 'Giá vé'; }
    #bang-gio-tau .schedule-table td:nth-child(6)::before { content: 'Trạng thái'; }

    #bang-gio .schedule-table td.cell-gio,
    #bang-gio-tau .schedule-table td.cell-gio {
        justify-content: flex-start;
        font-size: 18px;
        font-weight: 800;
        color: #003a6e;
        padding-bottom: 6px;
    }

    #bang-gio .schedule-table td.cell-gio::before,
    #bang-gio-tau .schedule-table td.cell-gio::before {
        content: none;
    }
}

/* ═══════════════ NÂNG CẤP SINH ĐỘNG — ANIMATION DÙNG CHUNG ═══════════════ */
@keyframes uiFadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes uiFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
@keyframes uiShine {
    from { left: -75%; }
    to   { left: 125%; }
}
@keyframes uiPulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(0,90,169,.35); }
    70%  { box-shadow: 0 0 0 14px rgba(0,90,169,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,90,169,0); }
}
@keyframes uiBobble {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(5px); }
}
.ui-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}
.ui-reveal.ui-reveal-in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .ui-reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ── Hero caption: icon bay + chữ trượt lên lần lượt ── */
.hero-caption .caption-icon { animation: uiFloat 3.2s ease-in-out infinite; }
.hero-caption h2, .hero-caption p, .hero-caption .btn-hero {
    animation: uiFadeUp .7s cubic-bezier(.22,1,.36,1) both;
}
.hero-caption h2 { animation-delay: .1s; }
.hero-caption p  { animation-delay: .25s; }
.hero-caption .btn-hero { animation-delay: .4s; }

/* Nút hero + nút bấm chính: hiệu ứng shine quét ngang */
.btn-hero, .btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-hero::after, .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}
.btn-hero:hover::after, .btn-primary:hover::after {
    animation: uiShine .8s ease;
}

/* ── Band thống kê: icon float liên tục + hover phóng nhẹ ── */
.stat-item .stat-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.18);
    animation: uiFloat 3.4s ease-in-out infinite;
    transition: transform .3s ease, background .3s ease;
}
.stat-item:nth-child(2) .stat-icon { animation-delay: .4s; }
.stat-item:nth-child(3) .stat-icon { animation-delay: .8s; }
.stat-item:nth-child(4) .stat-icon { animation-delay: 1.2s; }
.stat-item:hover .stat-icon {
    transform: scale(1.12);
    background: rgba(255,255,255,.3);
}
.stat-item .stat-number {
    text-shadow: 0 2px 10px rgba(0,0,0,.25);
    animation: uiFadeUp .6s ease both;
}
.stat-item .stat-label {
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: 11px;
}

/* ── Card giờ xuất bến: hover nâng nhẹ + chuyển viền xanh ── */
.schedule-table tbody tr, .tau-table tbody tr {
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.schedule-table tbody tr:hover, .tau-table tbody tr:hover {
    background: #f0f7ff;
    box-shadow: inset 4px 0 0 #005AA9;
}

/* ── Badge trạng thái: ring pulse nhẹ thu hút mắt ── */
.badge-livetrack, .status-badge {
    transition: transform .2s ease;
}
.schedule-table tbody tr:hover .badge-livetrack,
.schedule-table tbody tr:hover .status-badge {
    animation: uiPulseRing 1.8s ease-out infinite;
}

/* ── Nút "xem tất cả" mũi tên nhún khi hover ── */
.section-more:hover .fa-arrow-right, .section-more:hover .fa-angle-right {
    animation: uiBobble 1s ease-in-out infinite;
}

/* ═══════════════ 3D TILT — CARD TIN TỨC + DỊCH VỤ ═══════════════ */
.news-grid-card, .quick-link-card, .nhaxe-card {
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
}
/* Vệt sáng radial đi theo con trỏ (tọa độ do JS ghi qua CSS var) */
.news-grid-card::after, .quick-link-card::after, .nhaxe-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 55%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 2;
}
.news-grid-card:hover::after, .quick-link-card:hover::after, .nhaxe-card:hover::after { opacity: 1; }
@media (hover: none) {
    .news-grid-card::after, .quick-link-card::after, .nhaxe-card::after { display: none; }
}

/* ═══════════════ RIPPLE KHI BẤM NÚT ═══════════════ */
.btn {
    position: relative;
    overflow: hidden;
}
.ui-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    animation: uiRipple .65s ease-out forwards;
}
@keyframes uiRipple {
    to { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ui-ripple { display: none; }
}

/* ═══ Chi tiết chuyến: box "Nhà xe khai thác tuyến" chiều cao cố định + cuộn ═══ */
.nx-khaithac-scroll {
    max-height: 340px;
    overflow-y: scroll; /* luôn giữ chỗ cho thanh cuộn */
    overscroll-behavior: contain; /* cuộn tới cuối không kéo theo cuộn trang */
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #7fb0dd #eef4fb;
}
.nx-khaithac-scroll::-webkit-scrollbar { width: 8px; }
.nx-khaithac-scroll::-webkit-scrollbar-thumb { background: #7fb0dd; border-radius: 4px; }
.nx-khaithac-scroll::-webkit-scrollbar-thumb:hover { background: #4f8cc7; }
.nx-khaithac-scroll::-webkit-scrollbar-track { background: #eef4fb; border-radius: 4px; }

/* Chế độ mở rộng: bỏ giới hạn chiều cao, hiện toàn bộ danh sách */
.nx-khaithac-scroll.nx-khaithac-open {
    max-height: none;
    overflow-y: visible;
}

/* Nút mở rộng / thu gọn */
.nx-khaithac-toggle {
    background: none;
    border: none;
    color: #005AA9;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
}
.nx-khaithac-toggle:hover { color: #003a6e; background: #e0edff; }

/* ═══ Thẻ nhà xe khai thác click được → chuyển tới chi tiết nhà xe ═══ */
.nx-khaithac-item {
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.nx-khaithac-item:hover {
    border-color: #7fb0dd;
    background: #f4f9ff;
    box-shadow: 0 2px 10px rgba(0, 90, 169, .10);
    transform: translateY(-1px);
}
.nx-khaithac-item .nx-khaithac-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
}
.nx-khaithac-item .nx-khaithac-call {
    position: relative;
    z-index: 2; /* nút gọi nổi trên overlay — bấm SĐT không điều hướng */
}
