@charset "UTF-8";
/* ==========================================================================
   PACA - Bộ Công An: Hệ Thống Quản Lý Phản Ánh Tiêu Cực
   Design System & Custom Stylesheet (Vector SVG & Clean CSS Components)
   ========================================================================== */

:root {
    --paca-red-dark: #5e0000;
    --paca-red-main: #8b0000;
    --paca-red-light: #b30000;
    --paca-red-banner: #7a0000;
    --paca-gold-main: #ffc107;
    --paca-gold-dark: #e6a100;
    --paca-gold-light: #fff0b3;
    --paca-gold-gradient: linear-gradient(180deg, #ffe57f 0%, #ffb800 100%);
    --paca-bg-light: #f8f9fa;
    --paca-text-dark: #212529;
    --paca-text-muted: #6c757d;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

section[id],
div[id] {
    scroll-margin-top: 100px;
}

#guide,
.paca-trong-dong-wrapper[id] {
    scroll-margin-top: 190px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px;
    }

    section[id],
    div[id] {
        scroll-margin-top: 75px;
    }

    #guide,
    .paca-trong-dong-wrapper[id] {
        scroll-margin-top: 160px;
    }
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #fdfdfd;
    margin-bottom: 0 !important;
}

/* --- TOP HEADER --- */
.paca-header-top {
    background-color: #610000;
    color: #fff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
}

.paca-header-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.paca-header-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.paca-header-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffda6a;
    letter-spacing: 0.3px;
    margin-top: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.paca-header-slogan {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

.paca-hotline-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.paca-hotline-box:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: var(--paca-gold-main);
    color: var(--paca-gold-main);
}

.paca-hotline-icon {
    width: 36px;
    height: 36px;
    background: var(--paca-red-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.paca-hotline-number {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffda6a;
    line-height: 1;
}

/* --- NAVIGATION BAR --- */
.paca-navbar {
    background-color: #610000;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paca-navbar .navbar-toggler,
.navbar-toggler {
    display: none !important;
}

@media (max-width: 991.98px) {
    .paca-navbar .navbar-nav {
        display: none !important;
    }

    .paca-navbar {
        padding: 4px 0 !important;
    }

    .paca-navbar .container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
}

.paca-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    padding: 13px 18px !important;
    letter-spacing: 0.4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.paca-navbar .nav-link:hover,
.paca-navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffda6a !important;
}

/* --- HERO BANNER --- */
.paca-hero-section {
    background: url('../images/bg-hero.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 60px 0 95px 0;
    min-height: 500px;
}

.paca-hero-title {
    font-size: 2.7rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.paca-hero-title span {
    display: inline-block;
    white-space: nowrap;
}

.paca-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-top: 18px;
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.paca-shield-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffda6a;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 15px;
    backdrop-filter: blur(4px);
}

/* Vector Action Buttons */
.paca-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.paca-btn-gold {
    background: linear-gradient(180deg, #ffe279 0%, #ffab00 100%);
    color: #5c0000 !important;
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 18px rgba(255, 171, 0, 0.45);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.paca-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 171, 0, 0.65);
    color: #400000 !important;
    background: linear-gradient(180deg, #ffeb99 0%, #ffb800 100%);
}

.paca-btn-outline-white {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.25s ease;
}

.paca-btn-outline-white:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.paca-btn-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.paca-btn-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
}

.paca-btn-icon {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .paca-hero-title {
        font-size: 1.65rem;
    }

    .paca-hero-desc {
        font-size: 0.95rem;
    }

    .paca-shield-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .paca-hero-btns {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }

    .paca-btn-gold,
    .paca-btn-outline-white {
        flex: 1 1 0;
        padding: 10px 6px;
        justify-content: center;
        min-width: 0;
    }

    .paca-btn-icon {
        width: 20px;
        height: 20px;
    }

    .paca-btn-title {
        font-size: 0.82rem;
    }

    .paca-btn-subtitle {
        font-size: 0.62rem;
    }

    .paca-step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .paca-hero-title {
        font-size: 1.4rem;
    }
}

/* 3D Mockup Container */
.paca-hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.paca-hero-graphic svg {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

/* --- TRỐNG ĐỒNG ROTATING BACKGROUND --- */
.paca-trong-dong-wrapper {
    position: relative;
    margin-top: -85px;
    padding-top: 25px;
    z-index: 10;
    overflow: hidden;
    background: transparent;
}

.paca-trong-dong-bg-element {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 750px;
    height: 750px;
    background: url('../images/trong-dong.png') center/contain no-repeat;
    opacity: 0.45;
    filter: drop-shadow(0 0 12px rgba(180, 120, 20, 0.4)) contrast(1.2) brightness(0.9);
    pointer-events: none;
    z-index: 1;
    animation: pacaRotateTrongDong 70s linear infinite;
}

@keyframes pacaRotateTrongDong {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- QUICK ACTION FEATURE CARDS --- */
.paca-feature-section {
    margin-top: 0;
    padding-top: 0;
    position: relative;
    z-index: 2;
    padding-bottom: 45px;
    background: transparent !important;
}

.paca-feature-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(156, 4, 1, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 5;
}

.paca-feature-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.16), 0 10px 25px rgba(156, 4, 1, 0.2);
    border-color: rgba(255, 171, 0, 0.75);
}

.paca-icon-badge {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    flex-shrink: 0;
}

.paca-icon-badge-red {
    background: linear-gradient(135deg, #d32f2f 0%, #8b0000 100%);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.35);
}

.paca-icon-badge-gold {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

.paca-feature-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paca-feature-title {
    font-size: 1rem;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.3;
}

.paca-feature-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.paca-feature-link {
    color: #d32f2f;
    font-size: 1.2rem;
    align-self: center;
    margin-top: 0;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.paca-feature-card:hover .paca-feature-link {
    transform: translateX(5px);
}

/* --- PROCESS STEPPER SECTION --- */
.paca-process-section {
    background: transparent;
    position: relative;
    z-index: 2;
}

.paca-section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #8b0000;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.paca-stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 30px 0 20px 0;
    padding: 0 10px;
}

.paca-stepper-line {
    position: absolute;
    top: 24px;
    left: 7%;
    right: 7%;
    height: 2px;
    border-top: 2px dashed #d39e9e;
    z-index: 1;
}

.paca-step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.paca-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #b30000 0%, #700000 100%);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

.paca-step-icon-svg {
    width: 66px;
    height: 66px;
    min-width: 66px;
    min-height: 66px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #f2cfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b0000;
    font-size: 1.85rem;
    margin-bottom: 12px;
    box-shadow: 0 5px 14px rgba(139, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.paca-step-item:hover .paca-step-icon-svg {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 18px rgba(139, 0, 0, 0.2);
    border-color: #8b0000;
}

.paca-step-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #8b0000;
    margin-bottom: 6px;
}

.paca-step-desc {
    font-size: 0.8rem;
    color: #555;
    max-width: 140px;
    line-height: 1.4;
}

/* --- COMMITMENT BANNER --- */
.paca-commitment-banner {
    background-color: #9C0401;
    border-radius: 14px;
    padding: 15px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(156, 4, 1, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.paca-commitment-header {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffda6a;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 6px;
}

.paca-glowing-shield {
    filter: drop-shadow(0 0 12px rgba(255, 130, 0, 0.85)) drop-shadow(0 0 25px rgba(255, 90, 0, 0.65)) drop-shadow(0 0 45px rgba(255, 60, 0, 0.45));
    animation: pacaOrangeGlow 2.8s infinite alternate ease-in-out;
}

@keyframes pacaOrangeGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 120, 0, 0.75)) drop-shadow(0 0 20px rgba(255, 80, 0, 0.55)) drop-shadow(0 0 35px rgba(255, 50, 0, 0.35));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 160, 0, 0.95)) drop-shadow(0 0 38px rgba(255, 110, 0, 0.8)) drop-shadow(0 0 60px rgba(255, 60, 0, 0.6));
    }
}

.paca-commitment-item-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    text-align: center;
    transition: transform 0.25s ease;
    height: 100%;
}

.paca-commitment-item-vertical:hover {
    transform: translateY(-4px);
}

.paca-commitment-icon {
    font-size: 2.5rem;
    color: #ffda6a;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
    margin-bottom: 8px;
    display: inline-block;
}

.paca-commitment-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- NEWS & FAQ SECTION --- */
.paca-news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paca-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.paca-news-img-box {
    width: 100%;
    height: 155px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.paca-news-img-box svg,
.paca-news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.paca-news-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.paca-news-date {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 6px;
}

.paca-news-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #222;
    line-height: 1.45;
    margin-bottom: 8px;
}

.paca-news-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.45;
    margin-bottom: 12px;
    flex-grow: 1;
}

.paca-news-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--paca-red-main);
    text-decoration: none;
}

.paca-news-link:hover {
    text-decoration: underline;
}

/* Accordion Customization */
.paca-accordion .accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.paca-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    background-color: #f8f9fa;
    padding: 14px 18px;
}

.paca-accordion .accordion-button:not(.collapsed) {
    color: var(--paca-red-main);
    background-color: #fdf2f2;
    box-shadow: none;
}

.paca-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(139, 0, 0, 0.25);
}

/* --- FOOTER --- */
.paca-footer {
    background-color: #4a0000;
    color: rgba(255, 255, 255, 0.88);
    padding: 50px 0 0 0;
    font-size: 0.88rem;
    border-top: 3px solid var(--paca-gold-main);
}

.paca-footer-title {
    color: #ffda6a;
    font-size: 0.98rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.paca-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paca-footer-links li {
    margin-bottom: 10px;
}

.paca-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.paca-footer-links a:hover {
    color: #ffda6a;
}

/* Social Buttons */
.paca-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.paca-social-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.paca-social-fb {
    background: linear-gradient(135deg, #1877f2 0%, #0d5cb6 100%);
}

.paca-social-yt {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.paca-social-tiktok {
    background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 100%);
}

.paca-social-zalo {
    background: linear-gradient(135deg, #0068ff 0%, #0045aa 100%);
}

.paca-footer-bottom {
    background-color: #330000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    margin-top: 45px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.paca-footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin-left: 15px;
}

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

/* --- PACA FORM PAGES --- */
.paca-form-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.paca-form-header {
    background: linear-gradient(135deg, #610000 0%, #3e0000 100%);
    padding: 24px 28px;
    color: #fff;
    border-bottom: 3px solid var(--paca-gold-main);
}

.paca-form-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffda6a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paca-form-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

.paca-form-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--paca-red-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f2cfcf;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paca-form-card .form-control,
.paca-form-card .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.paca-form-card .form-control:focus,
.paca-form-card .form-select:focus {
    border-color: var(--paca-red-main);
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.15);
}

.paca-btn-submit {
    background: linear-gradient(135deg, #9C0401 0%, #610000 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid var(--paca-gold-main);
    box-shadow: 0 6px 18px rgba(156, 4, 1, 0.3);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paca-btn-submit:hover {
    background: linear-gradient(135deg, #b80501 0%, #7c0000 100%);
    color: #ffda6a;
    box-shadow: 0 8px 24px rgba(156, 4, 1, 0.45);
    transform: translateY(-2px);
}

/* --- PACA SUCCESS NOTIFICATION PAGE --- */
.paca-success-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 40px rgba(97, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.paca-success-card-header {
    background: linear-gradient(135deg, #610000 0%, #3e0000 100%);
    height: 10px;
    border-bottom: 3px solid #ffda6a;
}

.paca-success-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.35);
    margin-bottom: 24px;
    position: relative;
}

.paca-success-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(46, 125, 50, 0.35);
    animation: pacaSpin 20s linear infinite;
}

@keyframes pacaSpin {
    100% {
        transform: rotate(360deg);
    }
}

.paca-success-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #610000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paca-success-msg-box {
    background: #fdf8e6;
    border: 1.5px solid #f6e095;
    border-radius: 10px;
    padding: 16px 20px;
    color: #610000;
    font-size: 0.98rem;
    line-height: 1.5;
    display: inline-block;
    max-width: 540px;
}

.paca-btn-red {
    background: linear-gradient(135deg, #7a0000 0%, #500000 100%);
    color: #ffffff !important;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1.5px solid #ffda6a;
    box-shadow: 0 6px 16px rgba(122, 0, 0, 0.35);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.paca-btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(122, 0, 0, 0.5);
    background: linear-gradient(135deg, #900000 0%, #600000 100%);
    color: #ffda6a !important;
}

.paca-btn-outline-red {
    background: #ffffff;
    color: #610000 !important;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #610000;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.paca-btn-outline-red:hover {
    transform: translateY(-2px);
    background: #610000;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(97, 0, 0, 0.25);
}

/* ==========================================================================
   PACA ADMIN DASHBOARD STYLES (REDESIGNED)
   ========================================================================== */
.paca-admin-body {
    background-color: #f7f4ee !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2b2b2b;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

/* --- ADMIN HEADER --- */
.paca-admin-header {
    background: linear-gradient(135deg, rgba(124, 0, 0, 0.82) 0%, rgba(70, 0, 0, 0.88) 100%), url('../images/trong-dong-do.jpg') center/cover no-repeat;
    position: relative;
    overflow: visible !important;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1030;
    padding: 12px 24px;
    height: 84px !important;
    flex-shrink: 0;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.paca-admin-header-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.paca-admin-header-right {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

.paca-admin-header .dropdown-menu {
    z-index: 1080 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* --- ADMIN WRAPPER & MAIN CONTENT SCROLL --- */
.paca-admin-wrapper {
    display: flex;
    flex: 1;
    height: calc(100vh - 84px);
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.paca-admin-wrapper>.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.paca-admin-sidebar {
    background: linear-gradient(180deg, #6b0000 0%, #4a0000 100%);
    height: calc(100vh - 84px) !important;
    min-height: calc(100vh - 84px) !important;
    max-height: calc(100vh - 84px) !important;
    position: relative;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.15);
    padding-top: 18px;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

.paca-admin-main-content {
    height: calc(100vh - 84px) !important;
    max-height: calc(100vh - 84px) !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    flex-grow: 1;
}

/* Scrollbars */
.paca-admin-main-content::-webkit-scrollbar,
.paca-admin-sidebar::-webkit-scrollbar,
.paca-history-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.paca-admin-main-content::-webkit-scrollbar-thumb,
.paca-admin-sidebar::-webkit-scrollbar-thumb,
.paca-history-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(211, 47, 47, 0.3);
    border-radius: 4px;
}

.paca-admin-main-content::-webkit-scrollbar-track,
.paca-admin-sidebar::-webkit-scrollbar-track,
.paca-history-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.paca-admin-header-bg {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    background: url('../images/trong-dong.png') center/contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.paca-admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
}

.paca-admin-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.paca-header-gov-title,
.paca-admin-brand-title {
    font-size: 1.15rem;
    font-weight: 800 !important;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.paca-header-sys-title,
.paca-admin-brand-subtitle {
    font-size: 1.02rem;
    font-weight: 800 !important;
    color: #ffda6a !important;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.paca-admin-brand-slogan {
    font-size: 0.76rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1px;
}

.paca-admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.paca-admin-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    position: relative;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.paca-admin-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffda6a;
}

.paca-admin-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #d32f2f;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #610000;
}

.paca-admin-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.paca-admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #610000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
}

/* --- ADMIN SIDEBAR --- */
.paca-admin-sidebar {
    background: linear-gradient(180deg, #6b0000 0%, #4a0000 100%);
    min-height: calc(100vh - 72px);
    position: relative;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.15);
    padding-top: 18px;
    transition: all 0.3s ease;
}

/* Sidebar Collapsed State */
body.paca-sidebar-collapsed .paca-admin-wrapper>.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

body.paca-sidebar-collapsed .paca-admin-sidebar {
    width: 78px !important;
    flex: 0 0 78px !important;
    max-width: 78px !important;
    padding-top: 16px;
}

body.paca-sidebar-collapsed main,
body.paca-sidebar-collapsed .paca-admin-main-content {
    width: calc(100% - 78px) !important;
    flex: 0 0 calc(100% - 78px) !important;
    max-width: calc(100% - 78px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transition: all 0.3s ease;
}

body.paca-sidebar-collapsed .paca-admin-menu {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

body.paca-sidebar-collapsed .paca-admin-menu-item {
    margin-bottom: 8px;
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.paca-sidebar-collapsed .paca-admin-menu-link {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border-radius: 12px;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.paca-sidebar-collapsed .paca-admin-menu-link span,
body.paca-sidebar-collapsed .paca-admin-menu-link .bi-chevron-down,
body.paca-sidebar-collapsed .paca-admin-sidebar-bg {
    display: none !important;
}

/* Floating Submenus in Collapsed Mode */
body.paca-sidebar-collapsed .paca-admin-sidebar {
    overflow: visible !important;
}

body.paca-sidebar-collapsed .paca-has-submenu {
    position: relative !important;
}

body.paca-sidebar-collapsed .paca-has-submenu .paca-admin-submenu-wrapper {
    position: absolute !important;
    left: 72px !important;
    top: 0 !important;
    min-width: 210px !important;
    background: #500000 !important;
    border: 1px solid #ffda6a !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    z-index: 1070 !important;
    display: none !important;
}

body.paca-sidebar-collapsed .paca-has-submenu .paca-admin-submenu-wrapper.show {
    display: block !important;
}

body.paca-sidebar-collapsed .paca-has-submenu .paca-admin-submenu {
    display: block !important;
    padding: 4px 10px !important;
    margin: 0 !important;
}

body.paca-sidebar-collapsed .paca-has-submenu .paca-admin-submenu-link {
    display: block !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.paca-sidebar-collapsed .paca-has-submenu .paca-admin-submenu-link::before {
    display: none !important;
}

body.paca-sidebar-collapsed .paca-has-submenu .paca-admin-submenu-link:hover,
body.paca-sidebar-collapsed .paca-has-submenu .paca-admin-submenu-link.active {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffda6a !important;
    font-weight: 700 !important;
}

body.paca-sidebar-collapsed .paca-admin-menu-link .bi {
    font-size: 1.3rem !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    text-align: center !important;
}

body.paca-sidebar-collapsed .paca-admin-menu-link .bi.bi-chevron-down {
    display: none !important;
}

body.paca-sidebar-collapsed .paca-admin-menu-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffda6a;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

body.paca-sidebar-collapsed .paca-admin-menu-link.active {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #4a0000 !important;
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.45);
    transform: scale(1.05);
}

.paca-admin-sidebar-bg {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: url('../images/logo_ca.png') center/contain no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

.paca-admin-menu {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.paca-admin-menu-item {
    margin-bottom: 6px;
}

.paca-admin-menu-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.paca-admin-menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffda6a;
}

.paca-admin-menu-link.active {
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    color: #4a0000 !important;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.paca-admin-menu-link .bi {
    font-size: 1.15rem;
}

.paca-admin-submenu {
    list-style: none;
    padding-left: 10px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.paca-admin-submenu-link {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
    position: relative;
}

.paca-admin-submenu-link::before {
    display: none;
}

.paca-admin-submenu-link:hover,
.paca-admin-submenu-link.active {
    color: #ffda6a;
    font-weight: 700;
}

/* --- ADMIN STAT CARDS --- */
.paca-stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.paca-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.paca-stat-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.paca-stat-red {
    background: #fff5f5;
}

.paca-stat-red .paca-stat-icon-wrapper {
    background: #fde8e8;
    color: #d32f2f;
}

.paca-stat-blue {
    background: #f0f7ff;
}

.paca-stat-blue .paca-stat-icon-wrapper {
    background: #e3f2fd;
    color: #1976d2;
}

.paca-stat-green {
    background: #f2f9f3;
}

.paca-stat-green .paca-stat-icon-wrapper {
    background: #e8f5e9;
    color: #2e7d32;
}

.paca-stat-purple {
    background: #fbf5fd;
}

.paca-stat-purple .paca-stat-icon-wrapper {
    background: #f3e5f5;
    color: #7b1fa2;
}

.paca-stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.1;
}

.paca-stat-label {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 600;
    margin-top: 4px;
}

/* --- ADMIN CARD PANELS --- */
.paca-card-panel {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.paca-card-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.paca-card-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.paca-card-panel-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d32f2f;
    text-decoration: none !important;
}

.paca-card-panel-link:hover {
    color: #900000;
}

/* Status Badges */
.paca-badge-processing {
    background: #fff3e0;
    color: #e65100;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    display: inline-block;
}

.paca-badge-success {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    display: inline-block;
}

.paca-badge-overdue {
    background: #ffebee;
    color: #c62828;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    display: inline-block;
}

/* System Notifications */
.paca-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.paca-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.paca-notif-red {
    background: #ffebee;
    color: #d32f2f;
}

.paca-notif-yellow {
    background: #fff8e1;
    color: #f57f17;
}

.paca-notif-blue {
    background: #e8eaf6;
    color: #3f51b5;
}

/* --- PREMIUM FILTER CARD & TABLE BUTTON STYLES --- */
.paca-filter-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    padding: 10px;
    margin-bottom: 10px;
}

.paca-filter-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 6px;
}

.paca-filter-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    font-size: 0.88rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.paca-filter-control:focus {
    border-color: #800000;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.12);
}

.paca-table-btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #555555;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.paca-table-btn-action:hover {
    background: #800000;
    color: #ffffff !important;
    border-color: #800000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.3);
}

.paca-table-btn-action.btn-view:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.paca-table-btn-action.btn-edit:hover {
    background: #ff9800;
    border-color: #ff9800;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

/* Soft Badge Colors (Redesign) */
.badge-soft-primary {
    background: #e8f0fe !important;
    color: #1a73e8 !important;
    font-weight: 700;
}

.badge-soft-info {
    background: #e3f2fd !important;
    color: #0288d1 !important;
    font-weight: 700;
}

.badge-soft-warning {
    background: #fff3e0 !important;
    color: #ef6c00 !important;
    font-weight: 700;
}

.badge-soft-success {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    font-weight: 700;
}

.badge-soft-danger {
    background: #ffebee !important;
    color: #c62828 !important;
    font-weight: 700;
}

.badge-soft-secondary {
    background: #f1f3f4 !important;
    color: #5f6368 !important;
    font-weight: 700;
}

/* DataTables Custom Pagination & Toolbar */
table.dataTable thead .sorting::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::before,
table.dataTable thead .sorting_desc::after {
    display: none !important;
}

table.dataTable thead th,
.table-modern thead th {
    padding-right: 12px !important;
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #dee2e6 !important;
    white-space: nowrap !important;
}

.dataTables_wrapper .dataTables_length {
    color: #495057;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Custom DataTables Footer Layout */
.paca-datatable-footer {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.paca-datatable-footer-top,
.paca-datatable-footer-top .row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
}

.paca-datatable-footer-top>div,
.paca-datatable-footer-top .col-sm-12,
.paca-datatable-footer-top .col-md-5,
.paca-datatable-footer-top .col-md-6,
.paca-datatable-footer-top .col-md-7 {
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.paca-datatable-footer-top .dataTables_info {
    display: inline-flex !important;
    align-items: center !important;
    color: #6c757d !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.paca-datatable-footer-top .dataTables_length {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #6c757d !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.paca-datatable-footer-top .dataTables_length label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.paca-datatable-footer-top .dataTables_length select {
    height: 32px !important;
    padding: 2px 24px 2px 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    margin: 0 !important;
}

.paca-datatable-footer-bottom,
.paca-datatable-footer-bottom .row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
}

.paca-datatable-footer-bottom>div,
.paca-datatable-footer-bottom .col-sm-12,
.paca-datatable-footer-bottom .col-md-5,
.paca-datatable-footer-bottom .col-md-6,
.paca-datatable-footer-bottom .col-md-7,
.paca-datatable-footer-bottom .dataTables_paginate {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 768px) {
    .paca-datatable-footer {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .paca-datatable-footer-top {
        width: auto !important;
        gap: 20px;
    }

    .paca-datatable-footer-bottom {
        width: auto !important;
        margin-top: 0 !important;
    }
}

.dataTables_wrapper div.dataTables_length select {
    width: auto !important;
    min-width: 70px !important;
    display: inline-block;
    border-radius: 8px !important;
    border: 1px solid #ced4da !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 10px !important;
    padding-right: 28px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0 !important;
    gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    background: #ffffff !important;
    color: #495057 !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link {
    background: #a70000 !important;
    border-color: #a70000 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(167, 0, 0, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link:hover:not(.active) {
    background: #f1f3f4 !important;
    color: #a70000 !important;
    border-color: #ced4da !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.disabled .page-link {
    background: #f8f9fa !important;
    color: #ccc !important;
    border-color: #e9ecef !important;
}

/* --- STATUS FILTER TABS --- */
.paca-status-tabs .nav-link {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #495057;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 12px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.paca-status-tabs .nav-link:hover {
    background: #ffffff;
    color: #a70000;
    border-color: #a70000;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(167, 0, 0, 0.15);
}

.paca-status-tabs .nav-link.active {
    background: linear-gradient(135deg, #a70000 0%, #7c0000 100%) !important;
    border-color: #a70000 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(167, 0, 0, 0.35) !important;
}

.paca-status-tabs .nav-link.active .badge {
    background-color: #ffffff !important;
    color: #a70000 !important;
    font-weight: 800;
}

.paca-report-code {
    white-space: nowrap !important;
    display: inline-block !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.table-responsive th,
.table-responsive td,
.table-responsive td a {
    white-space: nowrap !important;
}

/* ==========================================================================
   PACA ADMIN MOBILE RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Translucent Backdrop for Mobile Drawer */
.paca-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Tablet & Mobile Screens (< 768px) */
@media (max-width: 767.98px) {

    /* Public Portal Header Scaling & No-Wrap */
    .paca-header-top {
        padding: 10px 0 !important;
    }

    .paca-header-logo {
        width: 58px !important;
        height: 58px !important;
    }

    .paca-header-title {
        font-size: 1.15rem !important;
        white-space: nowrap !important;
        line-height: 1.15 !important;
        letter-spacing: 0.2px;
    }

    .paca-header-subtitle {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    .paca-header-slogan {
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }

    /* Topbar Header Scaling */
    .paca-admin-header {
        height: auto !important;
        min-height: 72px !important;
        padding: 8px 12px !important;
    }

    .paca-admin-logo {
        height: 38px !important;
        width: auto !important;
        flex-shrink: 0;
    }

    .paca-logo-text-wrapper {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
    }

    .paca-header-gov-title {
        display: block !important;
        font-size: 0.85rem !important;
        letter-spacing: 0.3px;
        line-height: 1.2 !important;
    }

    .paca-header-sys-title {
        display: block !important;
        font-size: 0.72rem !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        color: #ffda6a !important;
    }

    /* Hide dropdown caret icon and fine tune avatar on mobile */
    .paca-user-dropdown-link.dropdown-toggle::after,
    .paca-user-dropdown-link::after,
    #userDropdown::after {
        display: none !important;
        content: none !important;
        border: none !important;
        margin: 0 !important;
    }

    .paca-admin-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 1rem !important;
    }

    /* Mobile Offcanvas Sidebar Drawer */
    #adminSidebarMenu,
    #adminSidebarMenu.paca-admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        width: 280px !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        z-index: 1055 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.55) !important;
        overflow-y: auto !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    body.paca-mobile-sidebar-open #adminSidebarMenu,
    body.paca-mobile-sidebar-open #adminSidebarMenu.paca-admin-sidebar {
        display: block !important;
        transform: translateX(0) !important;
    }

    /* Main Content Reset on Mobile */
    .paca-admin-main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 16px !important;
    }

    .paca-admin-wrapper>.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Status Tabs Horizontal Touch Scroll */
    .paca-status-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    .paca-status-tabs .nav-item {
        flex: 0 0 auto !important;
    }

    .paca-status-tabs .nav-link {
        white-space: nowrap !important;
        padding: 6px 14px !important;
        font-size: 0.82rem !important;
    }

    /* PACA Card Panel Responsive */
    .paca-card-panel {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    /* Responsive DataTables Controls */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
        float: none !important;
        margin-bottom: 10px !important;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        text-align: center !important;
        float: none !important;
        margin-top: 12px !important;
    }
}

/* Small Smartphone Screens (< 576px) */
@media (max-width: 575.98px) {
    .paca-header-logo {
        width: 50px !important;
        height: 50px !important;
    }

    .paca-header-title {
        font-size: 0.94rem !important;
        white-space: nowrap !important;
        letter-spacing: 0;
        line-height: 1.15 !important;
    }

    .paca-header-subtitle {
        font-size: 0.72rem !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    .paca-header-slogan {
        font-size: 0.60rem !important;
        white-space: nowrap !important;
    }

    .paca-admin-logo {
        height: 34px !important;
    }

    .paca-header-gov-title {
        font-size: 0.82rem !important;
        line-height: 1.1;
    }

    .paca-header-sys-title {
        font-size: 0.68rem !important;
        line-height: 1.15;
    }

    /* Stack Page Action Buttons */
    .paca-card-panel-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* Touch-friendly full width buttons on forms */
    .paca-card-panel form .d-flex.justify-content-end {
        flex-direction: column-reverse !important;
        width: 100% !important;
    }

    .paca-card-panel form .d-flex.justify-content-end .btn {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
}