/* An */

/* Nền gradient đồng bộ với card chỉ tiêu VH-XH / Chỉ tiêu TP (trắng → tint nhạt, 135deg) */
:root {
    --dash-card-grad-sky: linear-gradient(135deg, #ffffff 0%, #e6f5fd 100%);
    --dash-card-grad-mint: linear-gradient(135deg, #ffffff 0%, #e1fff1 100%);
    --dash-card-grad-amber: linear-gradient(135deg, #ffffff 0%, #fff7d8 100%);
    --dash-card-grad-lavender: linear-gradient(135deg, #ffffff 0%, #e9e4ff 100%);
    --dash-card-grad-rose: linear-gradient(135deg, #ffffff 0%, #ffe6e9 100%);
    --dash-card-grad-teal: linear-gradient(135deg, #ffffff 0%, #e2fff9 100%);
}

#col-overview-party-recruitment, #col-overview-party-work-stats, #div_chi_tieu_linhvuc {
    display: none;
}

.dashboard-container {
    min-height: calc(100vh - 47px);
    background-color: #f5f5f5;
    position: relative;
}
.dashboard-card{
    position: relative;
}
/* Header */
.dashboard-header {
    background: linear-gradient(154deg, #166983 0%, #c83a23 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: visible;
    position: relative;
    z-index: 1001;
}
.dashboard-header .dropdown-menu {
    z-index: 1050;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    flex-shrink: 0;
}

.header-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-text h1 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-header-info {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}
.dashboard-header-info #currentTime {
    font-weight: 600;
}
.dashboard-header-info #currentDate {
    opacity: 0.9;
}
.dashboard-header-info .dashboard-info-user a,
.dashboard-header-info .dashboard-info-user .dropdown-toggle {
    /*color: #fff !important;*/
}
.dashboard-header-info .dashboard-info-user a:hover,
.dashboard-header-info .dashboard-info-user .dropdown-toggle:hover {
   /* color: rgba(255, 255, 255, 0.85) !important;*/
}
.dashboard-header-info .dropdown-menu {
    z-index: 1050;
}

.header-time {
    font-size: 18px;
    font-weight: 500;
}

.header-date {
    font-size: 14px;
    opacity: 0.9;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.header-user svg {
    width: 20px;
    height: 20px;
}

/* Tabs */
.tabs-container {
    background: white;
    border-bottom: 2px solid #dc3545;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabs-container .nav-tabs {
    border-bottom: none;
   /* max-width: 1400px;*/
    margin: 0 auto;
    padding: 0;
}

/* Thanh thời gian & user (dưới tab, chữ màu xanh) */
.dashboard-info-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
   /* max-width: 1400px;*/
    margin: 0 auto;
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    color: #0d6efd;
    font-size: 14px;
}
.dashboard-info-bar #currentTime {
    font-weight: 600;
    font-size: 16px;
}
.dashboard-info-bar #currentDate {
    opacity: 0.95;
}
.dashboard-info-bar .dashboard-info-user a,
.dashboard-info-bar .dashboard-info-user .dropdown-toggle {
    color: #0d6efd;
}
.dashboard-info-bar .dashboard-info-user a:hover,
.dashboard-info-bar .dashboard-info-user .dropdown-toggle:hover {
    color: #0a58ca;
}
.dashboard-info-bar .dropdown-menu {
    z-index: 1050;
}

.tabs-container .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #115656;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.tabs-container .nav-link .tab-nav-icon {
    flex-shrink: 0;
    opacity: 0.92;
}

.tabs-container .nav-link.active .tab-nav-icon,
.tabs-container .nav-link:hover .tab-nav-icon {
    opacity: 1;
}

.tabs-container .nav-link:hover {
    color: #dc3545;
    border-bottom-color: rgba(220, 53, 69, 0.3);
}

.tabs-container .nav-link.active {
    color: #dc3545;
    background: white;
    border-bottom-color: #dc3545;
    font-weight: bold;
}

/* Dashboard Content */
.dashboard-content {
    margin: 0 auto;
    padding: 30px 0;
}

.loading-spinner {
    text-align: center;
    padding: 50px;
}

/* Dashboard Cards */
/*
.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dashboard-card {
    position: relative;
    min-height: 180px;
}
*/
.kpi-card {
    min-height: 200px;
}

.card-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
    opacity: 0.7;
}

.dashboard-card h3 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    padding-right: 35px;
    line-height: 1.4;
}
 

.dashboard-card h4 {
    font-size: 130%;
    font-weight: bold;
    color: #115656;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e9ecef;
    flex-shrink: 0;
    line-height: 1.3;
    margin: 15px 0 10px 0;
}

.card-value {
    margin: 15px 0;
}

.value-large {
    font-size: 28px;
    font-weight: bold;
    color: #28a745;
    display: block;
    line-height: 1.2;
}

.value-medium {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    display: block;
    margin: 4px 0;
    line-height: 1.3;
}

.value-large.text-danger {
    color: #dc3545;
}

.card-progress {
    margin-top: 15px;
}

.card-progress .progress {
    height: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.card-note {
    font-size: 12px;
    color: #115656;
    line-height: 1.5;
    margin-top: 8px;
}

.card-note strong {
    color: #333;
    font-weight: 600;
}

/* KPI card layout: nhãn | số/số + thanh (Tổng quan — Kết nạp, Kinh Tế Xã Hội, …) */
.kpi-card-ratio-layout {
    position: relative;
}
.kpi-card-ratio-layout .card-icon {
    display: none;
}
.kpi-card-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.kpi-card-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.kpi-card-head-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.kpi-card-head-title {
    font-size: 15px;
    font-weight: bold;
    color: #115656;
    margin: 0;
    padding: 0;
    line-height: 1.35;
}
.kpi-card-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.kpi-card-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}
.kpi-card-divider {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 12px 0;
    opacity: 1;
}
.kpi-ratio-row {
    margin-bottom: 14px;
}
.kpi-ratio-row:last-child {
    margin-bottom: 0;
}
.kpi-ratio-row--tight {
    margin-bottom: 10px;
}
.kpi-ratio-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.kpi-ratio-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.kpi-ratio-value-plain {
    font-size: 15px;
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
}
.kpi-ratio-progress {
    height: 10px;
    border-radius: 6px;
    background-color: #e9ecef;
}
.kpi-card-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}
.kpi-card-footer-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #28a745;
    flex-shrink: 0;
}
.kpi-card-footer-text {
    flex: 1;
    min-width: 0;
}

/* ----- Tab Tổng quan — KPI: radial + linear nền card ----- */
.overview-kpi-card-decor {
    position: relative;
    overflow: hidden;
}
/* Hàng có vòng %: chữ lớn theo tông tab */
#card-overview-feedback .value-large {
    color: #0d6efd;
}
#card-overview-public-investment .value-large {
    color: #e65100;
}
.overview-kpi-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* Kinh tế – Ngân sách: card tóm tắt có vòng % bên phải */
.gov-economy-summary-split {
    margin-top: 0;
    align-items: center;
}
.overview-kpi-split-text {
    flex: 1;
    min-width: 0;
}
.overview-kpi-split-aside {
    flex-shrink: 0;
    align-self: center;
}

/* Pie donut — card Hồ sơ TTHC (tab Tổng quan) */
#card-overview-admin-files .overview-admin-files-pie {
    width: 248px;
    height: 160px;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    #card-overview-admin-files .overview-admin-files-pie {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Vòng % Thu NSNN — chữ giữa không đậm (giống mockup) */
#card-overview-budget-revenue .overview-pct-ring .overview-pct-ring-label {
    font-weight: 400;
}

.overview-pct-ring {
    position: relative;
    width: 88px;
    height: 88px;
}
.overview-pct-ring svg {
    display: block;
}
.overview-pct-ring-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    pointer-events: none;
}
.overview-pct-ring--blue .overview-pct-ring-label {
    color: #0d6efd;
}
.overview-pct-ring--orange .overview-pct-ring-label {
    color: #e65100;
}
.overview-pct-ring--green .overview-pct-ring-label {
    color: #28a745;
}
@media (max-width: 575px) {
    .overview-kpi-split {
        flex-direction: column;
        align-items: stretch;
    }
    .overview-kpi-split-aside {
        align-self: center;
    }
}

/* Nền gradient card KPI Tổng quan (không còn SVG sóng góc phải) */
#card-overview-party-recruitment.overview-kpi-card-decor,
#card-overview-party-ktxh-targets.overview-kpi-card-decor {
    background-image:
        radial-gradient(ellipse 82% 68% at 92% 100%, rgba(40, 167, 69, 0.2), transparent 64%),
        linear-gradient(155deg, #ffffff 0%, #f7fdf9 45%, #eef9f2 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom right, 0 0;
    background-size: 100% 100%, 100% 100%;
}

#card-overview-budget-revenue.overview-kpi-card-decor {
    background-image:
        radial-gradient(ellipse 85% 72% at 90% 100%, rgba(32, 201, 151, 0.22), transparent 65%),
        linear-gradient(155deg, #ffffff 0%, #f4fff9 50%, #e8fdf4 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom right, 0 0;
    background-size: 100% 100%, 100% 100%;
}

#card-overview-admin-files.overview-kpi-card-decor {
    background-image:
        radial-gradient(ellipse 84% 70% at 92% 100%, rgba(220, 53, 69, 0.18), transparent 64%),
        linear-gradient(155deg, #ffffff 0%, #fffafa 48%, #fff0f1 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom right, 0 0;
    background-size: 100% 100%, 100% 100%;
}

#card-overview-feedback.overview-kpi-card-decor {
    background-image:
        radial-gradient(ellipse 84% 70% at 92% 100%, rgba(13, 110, 253, 0.16), transparent 64%),
        linear-gradient(155deg, #ffffff 0%, #f8fbff 50%, #eef5ff 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom right, 0 0;
    background-size: 100% 100%, 100% 100%;
}

#card-overview-public-investment.overview-kpi-card-decor {
    background-image:
        radial-gradient(ellipse 84% 70% at 92% 100%, rgba(253, 126, 20, 0.18), transparent 64%),
        linear-gradient(155deg, #ffffff 0%, #fffdf8 48%, #fff5e6 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom right, 0 0;
    background-size: 100% 100%, 100% 100%;
}

/* Economy card "Khoản đang tiếp tục" - giống trang gốc (an-lac-vision) */
.economy-card-ongoing {
    background: var(--dash-card-grad-mint);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.economy-card-ongoing .economy-card-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.economy-card-ongoing .economy-card-icon-warning {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    background: #ffc107;
    border-radius: 4px;
    line-height: 1;
}

.economy-card-ongoing .economy-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #212121;
}

.economy-card-ongoing .economy-card-value {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
    color: #e65100;
}

.economy-card-ongoing .economy-card-desc {
    font-size: 13px;
    color: #6c757d;
    margin-top: 10px;
    line-height: 1.4;
}

/* Channel Items */
.channel-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.channel-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.channel-value {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin: 8px 0;
}

.channel-percentage {
    font-size: 12px;
    color: #115656;
    margin-top: 5px;
}

/* Stat Box */
.stat-box {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.stat-box h4 {
    font-size: 16px;
    color: #115656;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #28a745;
    margin: 15px 0;
}

.stat-note {
    font-size: 14px;
    color: #115656;
}

/* Section Header */
.section-header {
    /*background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);*/
    background: linear-gradient(135deg, #289dad 0%, #839521 100%);
    color: white;
    padding: 12px 18px;
    margin: 0 0 0 0;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Summary Cards */
.summary-card {
    background: var(--dash-card-grad-sky);
    border-radius: 8px;
    padding: 18px 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.summary-card-success {
    background: var(--dash-card-grad-mint);
    border-color: #c3e6cb;
}

.summary-card-warning {
    background: var(--dash-card-grad-amber);
    border-color: #ffeaa7;
}

.summary-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.2;
}

.summary-card-success .summary-value {
    color: #155724;
}

.summary-card-warning .summary-value {
    color: #856404;
}

.summary-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Investment Table */
.investment-table {
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.investment-table thead {
    background-color: #f8f9fa;
}

.investment-table thead th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 14px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.investment-table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #495057;
}

.investment-table tbody tr {
    transition: background-color 0.2s ease;
}

.investment-table tbody tr:hover {
    background-color: #f8f9fa;
}

.investment-table tbody tr:last-child td {
    border-bottom: none;
}

/* Priority Badge */
.priority-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    text-transform: capitalize;
}

.priority-high {
    background-color: #dc3545;
    color: white;
    border: none;
}

.priority-medium {
    background-color: #ffc107;
    color: #333;
    border: none;
}

.priority-low {
    background-color: #e9ecef;
    color: #495057;
    border: none;
}

/* ĐẦU TƯ XÂY DỰNG CƠ BẢN tab */
.investment-tab-wrap { padding: 0 2px; }
.investment-banner {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    color: #495057;
}
.investment-summary-card {
    background: var(--dash-card-grad-sky);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.investment-card-icon { font-size: 24px; margin-bottom: 8px; }
.investment-card-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #115656;
    margin-bottom: 4px;
}
.investment-card-label { font-size: 13px; color: #6c757d; }
.investment-table-card { border-radius: 10px; }
/* Tiêu đề bảng giống card Chi tiết thu ngân sách (h3 trong dashboard-card) */
.investment-table-card h3.investment-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #115656;
    margin-bottom: 14px;
    padding-right: 0;
}
.investment-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #115656;
    margin-bottom: 14px;
}
.investment-priority-icon { margin-right: 6px; }
.investment-detail-table {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}
.investment-detail-table .investment-detail-col-idx {
    width: 48px;
}
.investment-detail-table .investment-detail-col-name {
    width: 28%;
}
.investment-detail-table .investment-detail-col-sector {
    width: 18%;
}
.investment-detail-table .investment-detail-col-capital {
    width: 12%;
}
.investment-detail-table .investment-detail-col-priority {
    width: 14%;
}
.investment-detail-table .investment-detail-col-disburse {
    width: 20%;
}
.investment-detail-table thead th {
    font-weight: 600;
    color: #495057;
    padding: 12px 10px;
    vertical-align: middle;
}
.investment-detail-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
}
.investment-detail-table td:first-child,
.investment-detail-table th:first-child {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.investment-detail-table tfoot td {
    vertical-align: middle;
}
.investment-high-priority-section { margin-bottom: 24px; }
.investment-high-priority-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 16px 18px;
}
.investment-high-priority-name { font-weight: 600; color: #115656; margin-bottom: 6px; }
.investment-high-priority-amount { font-size: 15px; font-weight: 600; color: #dc3545; }

.investment-chart-card { min-height: 560px; }
.investment-chart-container {
    min-height: 520px;
    width: 100%;
}

/* DÂN VẬN – PHẢN ÁNH tab (giống mẫu an-lac-vision 100%) */
.feedback-tab-wrap { padding: 0 2px; }
.feedback-banner {
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feedback-banner-red {
    /*background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);*/
    background: linear-gradient(135deg, #289dad 0%, #839521 100%);
    color: #fff;
    border: none;
    font-weight: 500;
}
.feedback-banner-icon { font-size: 18px; }
.feedback-summary-card {
    background: var(--dash-card-grad-mint);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.feedback-card-success {
    background: var(--dash-card-grad-mint);
    border-color: rgba(25, 135, 84, 0.28);
}
.feedback-card-warning {
    background: var(--dash-card-grad-amber);
    border-color: rgba(253, 126, 20, 0.28);
}
.feedback-card-icon { font-size: 24px; margin-bottom: 0; flex-shrink: 0; }
.feedback-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.feedback-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}
.feedback-value-red { color: #dc3545; }
.feedback-value-green { color: #198754; }
.feedback-value-orange { color: #e65100; }
.feedback-card-label { font-size: 13px; color: #6c757d; }
.feedback-section { }
.feedback-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #115656;
    margin-bottom: 12px;
}
.feedback-category-card {
    background: var(--dash-card-grad-sky);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.feedback-category-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 4px;
}
.feedback-category-name { font-size: 13px; color: #495057; }
.feedback-activity-card {
    border-radius: 10px;
    padding: 20px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
    border: 1px solid transparent;
}
.feedback-activity-red {
    background: #ffebee;
    border-color: #ffcdd2;
}
.feedback-activity-green {
    background: #e8f5e9;
    border-color: #c8e6c9;
}
.feedback-activity-icon { font-size: 28px; margin-bottom: 0; flex-shrink: 0; }
.feedback-activity-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.feedback-activity-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}
.feedback-activity-red .feedback-activity-value { color: #dc3545; }
.feedback-activity-green .feedback-activity-value { color: #198754; }
.feedback-activity-label { font-size: 13px; color: #6c757d; }
.feedback-detail-card { border-radius: 10px; }
.feedback-detail-list { }
.feedback-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.feedback-detail-row:last-child { margin-bottom: 0; }
.feedback-detail-name {
    min-width: 100px;
    font-size: 14px;
    color: #115656;
    font-weight: 500;
}
.feedback-detail-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.feedback-detail-bar {
    height: 24px;
    background: #28a745;
    border-radius: 4px;
    min-width: 0;
    transition: width 0.3s ease;
}
.feedback-detail-count {
    font-size: 14px;
    font-weight: 600;
    color: #115656;
    min-width: 40px;
    text-align: right;
}
.feedback-assessment-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    color: #115656;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feedback-assessment-icon { color: #198754; font-weight: bold; font-size: 16px; }

/* Channel Details */
.channel-details {
    margin-top: 20px;
}

.channel-detail-item {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e9ecef;
    background: #fafafa;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.channel-detail-item:last-child {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
    padding-bottom: 18px;
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.channel-header .channel-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.channel-header .channel-percentage {
    font-size: 15px;
    font-weight: 700;
    color: #28a745;
}

.channel-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.channel-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.channel-stat .stat-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.channel-stat .stat-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.channel-stat .stat-label {
    font-size: 14px;
    color: #115656;
}

.channel-stat .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
}

/* Overall Assessment */
.overall-assessment {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.overall-assessment strong {
    color: #333;
    font-size: 15px;
    display: block;
    margin-bottom: 8px;
}

.overall-assessment p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* Year Highlights Grid */
.year-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.year-highlight-box {
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    min-height: 60px;
}

.highlight-box-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.highlight-box-text {
    flex-grow: 1;
    color: #333;
    font-weight: 500;
}

.highlight-box-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.highlight-box-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.highlight-box-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

/* Party Work Stats */
.party-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.party-stat-box {
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.party-stat-box.party-stat-red {
    background-color: #f8d7da;
    color: #721c24;
}

.party-stat-box.party-stat-gray {
    background-color: #e2e3e5;
    color: #383d41;
}

.party-stat-box.party-stat-red .party-stat-value {
    color: #dc3545;
}

.party-stat-box.party-stat-gray .party-stat-value {
    color: #6c757d;
}

.party-stat-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.party-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.party-recruitment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.party-recruitment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.party-recruitment-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.party-recruitment-value {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.party-recruitment-status {
    color: #28a745;
    font-weight: 500;
    margin-top: 8px;
    font-size: 14px;
}

.party-recruitment-note {
    margin-top: 10px;
    font-size: 13px;
    color: #115656;
    line-height: 1.6;
}

/* Digital Transformation Grid */
.digital-transformation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.digital-stat-box {
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    background: var(--dash-card-grad-sky);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.digital-stat-box.digital-stat-success {
    background: var(--dash-card-grad-mint);
    border-color: rgba(25, 135, 84, 0.25);
}

.digital-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.digital-stat-box.digital-stat-success .digital-stat-value {
    color: #155724;
}

.digital-stat-label {
    font-size: 13px;
    color: #115656;
    font-weight: 500;
}

.digital-stat-sublabel {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Security Order Grid */
.security-order-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.security-stat-box {
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    background: var(--dash-card-grad-lavender);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.security-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.security-stat-label {
    font-size: 14px;
    color: #115656;
}

.security-order-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    border-radius: 6px;
    color: #155724;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.security-order-note .highlight-icon {
    font-size: 18px;
    flex-shrink: 0;
}


/* Bảng Chi tiết thu ngân sách — cột Tỷ lệ: thanh + số %; Trạng thái chỉ chữ */
.revenue-detail-table {
    table-layout: fixed;
    width: 100%;
}
.revenue-detail-table .revenue-detail-col-name {
    width: 30%;
}
.revenue-detail-table .revenue-detail-col-plan {
    width: 15%;
}
.revenue-detail-table .revenue-detail-col-actual {
    width: 15%;
}
.revenue-detail-table .revenue-detail-col-rate {
    width: 20%;
}
.revenue-detail-table .revenue-detail-col-status {
}
.revenue-detail-table td:first-child,
.revenue-detail-table th:first-child {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.revenue-detail-table th{
    text-align: center;
}

.revenue-detail-rate-cell {
    vertical-align: middle;
}
.revenue-detail-rate-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}
.revenue-detail-pct-bar-track {
    flex: 1 1 auto;
    min-width: 52px;
  /*  max-width: 110px;*/
    height: 10px;
    border-radius: 999px;
    background-color: #e9ecef;
    overflow: hidden;
}
.revenue-detail-pct-bar-fill {
    height: 100%;
    border-radius: 999px;
    min-width: 0;
    transition: width 0.25s ease;
}
.revenue-detail-rate-pct {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #333;
    white-space: nowrap;
}

/* Government Sub-tabs */
#governmentSubTabs {
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    flex-wrap: wrap;
    row-gap: 4px;
}

#governmentSubTabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #115656;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 10px;
    font-size: 14px;
}

#governmentSubTabs .nav-link .tab-nav-icon {
    flex-shrink: 0;
    opacity: 0.92;
}

#governmentSubTabs .nav-link.active .tab-nav-icon,
#governmentSubTabs .nav-link:hover .tab-nav-icon {
    opacity: 1;
}

#governmentSubTabs .nav-link:hover {
    color: #dc3545;
    border-bottom-color: rgba(220, 53, 69, 0.3);
}

#governmentSubTabs .nav-link.active {
    color: #dc3545;
    background: transparent;
    border-bottom-color: #dc3545;
    font-weight: bold;
}

/* Không dùng .tab-content trên #governmentSubTabContent — bổ sung hành vi ẩn/hiện pane giống Bootstrap */
#governmentSubTabContent > .tab-pane {
    display: none;
}
#governmentSubTabContent > .active {
    display: block;
}

/* Highlight List */
.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-icon {
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.highlight-success {
    color: #28a745;
}

.highlight-warning {
    color: #ffc107;
}

.highlight-info {
    color: #17a2b8;
}

/* Progress Comparison */
.progress-comparison {
    margin-top: 15px;
}

.progress-comparison .progress {
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
}

.progress-bar.bg-secondary .progress-text {
    color: #333;
}

.comparison-details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #115656;
    gap: 20px;
}

.comparison-details div {
    flex: 1;
}

/* Stat Label */
.stat-label {
    font-size: 14px;
    color: #115656;
    margin-top: 15px;
    margin-bottom: 5px;
}

.stat-label:first-child {
    margin-top: 0;
}

.stat-box .stat-value {
    font-size: 28px;
    margin: 5px 0 15px 0;
}

/* Chart Container */
canvas {
   /* max-height: 300px;*/
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        margin: 15px 0;
    }

    .tabs-container .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }

    .dashboard-content {
        padding: 15px 0;
    }

    .value-large {
        font-size: 24px;
    }
}

/* Marquee Banner */
.marquee-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 6px 0 8px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.marquee-copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 0px;
    padding: 0;
}
.marquee-credit {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.5);
}
.marquee-credit-link {
    color: #ffd700;
    text-decoration: none;
}
.marquee-credit-link:hover {
    text-decoration: underline;
}

.marquee-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marquee-scroll 60s linear infinite;
}

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

.marquee-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 14px; 
    line-height: 1.5;
}

.marquee-item::before {
    content: "•";
    margin-right: 10px;
    color: #ffd700;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive for marquee */
@media (max-width: 768px) {
    .marquee-banner {
        padding: 10px 0;
    }
    
    .marquee-item {
        font-size: 12px;
        padding: 0 15px;
    }
    
    .marquee-content {
        gap: 30px;
    }
}

/* Party Work Page Styles */
.party-work-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    margin-bottom: 25px;
}

.party-work-banner i {
    font-size: 22px;
    opacity: 0.95;
}

.party-metric-card {
    background: var(--dash-card-grad-amber);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.party-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.party-metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 10px;
    line-height: 1.2;
}

.party-metric-label {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-metric-subtitle {
    font-size: 13px;
    color: #115656;
    font-weight: 400;
}

.party-progress-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 18px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    margin-bottom: 25px;
}

.party-progress-banner i {
    font-size: 26px;
    opacity: 0.95;
}

.party-structure-section {
    margin-top: 40px;
    padding-top: 30px;
    margin-bottom: 0px !important ;
    padding-bottom: 0px !important ;
}

.party-structure-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.party-structure-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #115656;
    margin-bottom: 10px;
}

.party-structure-subtitle {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Funnel Chart Legend */
.funnel-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.funnel-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.funnel-legend-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Chart Container Styling */
.dashboard-card {
    padding: 25px;
    background: var(--dash-card-grad-sky);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Luân phiên gradient chỉ cho card con; khung domain/section (.culture-domain-block) không tô — xem rule kết hợp bên dưới */
.dashboard-content .row > [class*="col-"]:nth-child(4n + 1) > .dashboard-card:not([style*="background"]):not(.culture-domain-block) {
    background: var(--dash-card-grad-sky);
}
.dashboard-content .row > [class*="col-"]:nth-child(4n + 2) > .dashboard-card:not([style*="background"]):not(.culture-domain-block) {
    background: var(--dash-card-grad-mint);
}
.dashboard-content .row > [class*="col-"]:nth-child(4n + 3) > .dashboard-card:not([style*="background"]):not(.culture-domain-block) {
    background: var(--dash-card-grad-amber);
}
.dashboard-content .row > [class*="col-"]:nth-child(4n + 4) > .dashboard-card:not([style*="background"]):not(.culture-domain-block) {
    background: var(--dash-card-grad-lavender);
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #115656;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}


.dashboard-card canvas {
    /* flex: 1;
    min-height: 250px;
    max-height: 300px;
    padding: 10px 0; */
    height: 100%;
}

/* CCHC – Tình hình giải quyết: căn giữa card (center + middle) */
.cchc-resolution-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}
.cchc-resolution-wrapper h4 {
    margin-bottom: 16px;
}
.cchc-resolution-card {
    padding: 4px 0;
    width: 100%;
    max-width: 400px;
}
.cchc-resolution-item {
    margin-bottom: 20px;
}
.cchc-resolution-item:last-child {
    margin-bottom: 0;
}
.cchc-resolution-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #115656;
    margin-bottom: 6px;
}
.cchc-resolution-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cchc-resolution-bar-container {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}
.cchc-resolution-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}
.cchc-resolution-bar-success {
    background: #28a745;
}
.cchc-resolution-bar-warning {
    background: #fd7e14;
}
.cchc-resolution-pct {
    font-size: 14px;
    font-weight: 600;
    color: #115656;
    min-width: 48px;
    text-align: right;
}

/* ===== ĐÔ THỊ – MÔI TRƯỜNG – AN NINH (tab Urban) ===== */
.urban-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #115656;
}
.urban-banner-icon { font-size: 1.2rem; }
.urban-kpi-card {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.urban-kpi-green { background: var(--dash-card-grad-mint); }
.urban-kpi-icon { display: block; font-size: 1.5rem; margin-bottom: 6px; }
.urban-kpi-water { color: #0d6efd; }
.urban-kpi-trash { color: #198754; }
.urban-kpi-check { color: #198754; font-weight: bold; }
.urban-kpi-warning { color: #fd7e14; }
.urban-kpi-label { font-size: 13px; color: #333; margin-bottom: 4px; }
.urban-kpi-value { font-size: 1.5rem; font-weight: 700; }
.urban-kpi-value-green { color: #198754; }
.urban-kpi-value-black { color: #115656; }
.urban-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #115656;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.urban-section-icon { font-size: 1.1rem; }
.urban-icon-shield { color: #dc3545; }
.urban-icon-leaf { color: #198754; }
/* An ninh - Trật tự " + DateTime.Now.Year.ToString() + ": khối chính xanh lá nhạt, full width, bo góc */
.urban-security-section {
    background: #f0f8ee !important;
    border-radius: 12px;
    padding: 20px 24px !important;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.urban-security-section .urban-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #115656;
    margin-bottom: 16px;
}
.urban-security-card {
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.urban-security-green { background: #e8f5e9; }
.urban-security-minor {
    background: #FFF8E7;
}
.urban-security-warning { background: #fff3cd; }
.urban-security-bottom-row {
    width: 100%;
}
.urban-security-bottom-row .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}
.urban-security-bottom-row .urban-security-card {
    width: 100%;
}
.urban-security-highlight {
    padding: 16px 20px;
    border-radius: 10px;
}
.urban-security-value { font-size: 1.35rem; font-weight: 700; }
.urban-value-green { color: #1b5e20; }
.urban-value-orange { color: #e65100; }
.urban-value-black { color: #115656; }
.urban-security-label { font-size: 12px; color: #115656; margin-top: 4px; font-weight: 500; }
.urban-goal-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 0;
    font-size: 14px;
    color: #115656;
}
.urban-goal-icon { color: #198754; font-weight: bold; }
.urban-livelihood-list {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}
.urban-livelihood-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.urban-livelihood-row:last-child { border-bottom: none; }
.urban-livelihood-label { color: #115656; font-weight: 500; }
.urban-livelihood-value { color: #115656; }

/* Donut Charts - Smaller size */
#genderStructureChart,
#ageStructureChart { 
    width: 100% !important;
}

/* Ensure cards in same row have same height */
.party-structure-section .row > div {
    display: flex;
}

.party-structure-section .row > div > .dashboard-card {
    width: 100%;
    padding: 15px;
    min-height: auto;
    
    display: flex;
    flex-direction: column;
}

.party-structure-section .row > div > .dashboard-card > div:first-of-type {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

#memberFluctuationChart {
    max-height: 450px !important;
    min-height: 350px;
}

#developmentSourceFunnelChart {
    width: 100% !important;
    height: 450px !important;
    display: block;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-shrink: 0;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
}

.chart-legend-dot {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* Party Note */
.party-note {
    margin-top: 30px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
}

.party-note p {
    margin: 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

.party-note strong {
    color: #115656;
}

/* ========== Tab CCHC – Chuyển đổi số (100% như hình) ========== */
.cchc-banner {
    /*background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;*/
    background: linear-gradient(135deg, #289dad 0%, #839521 100%);
    color: #fff !important;
    border: none !important;
    padding: 15px 20px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cchc-banner-icon {
    font-size: 1.4rem;
    opacity: 0.95;
}

.cchc-banner-icon-chart {
    font-size: 1.25rem;
}

.cchc-banner-text {
    flex: 1;
}

/* Hàng 1: Tổng hồ sơ, Trực tuyến, Đúng hạn, Trễ hạn */
.cchc-summary-card {
    background: var(--dash-card-grad-sky);
    border-radius: 8px;
    padding: 18px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.cchc-summary-card.cchc-card-online {
    background: var(--dash-card-grad-mint);
}
.cchc-summary-card.cchc-card-ontime {
    background: var(--dash-card-grad-amber);
}
.cchc-summary-card.cchc-card-late {
    background: var(--dash-card-grad-lavender);
}

.cchc-summary-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 4px;
}

.cchc-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #115656;
    line-height: 1.2;
}

.cchc-summary-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.cchc-summary-label .cchc-percent {
    color: #495057;
    font-weight: 500;
}

.cchc-card-doc .cchc-summary-icon { color: #0d6efd; }
.cchc-card-online .cchc-summary-icon { color: #0dcaf0; }
.cchc-card-ontime .cchc-summary-icon { color: #198754; font-weight: bold; }
.cchc-card-late .cchc-summary-icon { color: #dc3545; font-weight: bold; }

/* Tiêu đề section Chuyển đổi số " + DateTime.Now.Year.ToString() + " */
.cchc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #115656;
}

/* Lưới Chuyển đổi số " + DateTime.Now.Year.ToString() + " – độ rộng giống Hình 2: hàng 1 = 4 thẻ đều 25%; hàng 2 = 2 thẻ mỗi thẻ 50%; hàng 3 = 1 thẻ 50% trái */
.cchc-digital-grid {
    margin-bottom: 1.5rem;
}

.cchc-digital-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.cchc-digital-row:last-child {
    margin-bottom: 0;
}

.cchc-digital-row-1 .cchc-digital-col {
    flex: 1 1 calc(25% - 9px);
    min-width: 0;
}

.cchc-digital-row-2 .cchc-digital-col-half,
.cchc-digital-row-3 .cchc-digital-col-half {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
}

.cchc-digital-row-3 .cchc-digital-col-half {
    flex: 0 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
}

.cchc-digital-col .cchc-digital-card {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .cchc-digital-row-1 .cchc-digital-col {
        flex: 1 1 calc(50% - 6px);
    }
    .cchc-digital-row-2 .cchc-digital-col-half,
    .cchc-digital-row-3 .cchc-digital-col-half {
        flex: 1 1 100%;
        max-width: none;
    }
}

.cchc-digital-card {
    border-radius: 8px;
    padding: 14px 12px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Thẻ Chuyển đổi số hàng 1: icon phía trên giá trị (giống cchc-summary-card) */
.cchc-digital-card-stacked {
    gap: 4px;
}
.cchc-digital-icon-top {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 2px;
}
.cchc-digital-pink .cchc-digital-icon-top {
    color: #d60000;
}
.cchc-digital-green.cchc-digital-card-stacked .cchc-digital-icon-top {
    color: #16a249;
}
.cchc-digital-white .cchc-digital-icon-top {
    color: #495057;
}

.cchc-digital-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #115656;
    line-height: 1.2;
}

.cchc-digital-label {
    font-size: 0.8rem;
    color: #495057;
    margin-top: 4px;
}

.cchc-digital-pink {
    background: linear-gradient(135deg, #ffffff 0%, #fce8e8 100%);
    color: #721c24;
}

.cchc-digital-green {
    background: linear-gradient(135deg, #ffffff 0%, #e7f5ec 100%);
    color: #0f5132;
}

.cchc-digital-white {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cchc-digital-red {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #842029;
}

.cchc-digital-rocket {
    background: linear-gradient(135deg, #d1e7dd 0%, #75b798 100%);
    color: #0f5132;
}

/* Thẻ Tổ CĐS cộng đồng: icon + text nằm giữa thẻ */
.cchc-digital-community {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 12px;
    text-align: center;
}

/* Thẻ Ký số VB đi: icon + text, icon có nền tròn */
.cchc-digital-card-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.cchc-digital-icon-sign {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(22, 162, 73, 0.15);
    color: #16a249;
}
.cchc-digital-icon-sign svg {
    display: block;
}

.cchc-digital-community .cchc-digital-icon-people {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
}

.cchc-digital-community .cchc-digital-icon-people svg {
    display: block;
}

.cchc-digital-community .cchc-digital-community-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cchc-digital-icon-people {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.cchc-donut-legend {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #495057;
}

.cchc-donut-legend strong {
    color: #115656;
}

/* Tab Văn hóa xã hội – khối domain = khung trắng; chỉ các .culture-indicator-card bên trong mới gradient */
.culture-society-wrap {
    padding: 0;
}
.dashboard-card.culture-domain-block {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}
.culture-domain-title {
    font-size: 16px;
    font-weight: 600;
    color: #c82333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
}
.culture-indicators-grid {
    display: grid;
    gap: 14px;
}
/* 1 chỉ tiêu: 1 cột 100% */
.culture-indicators-grid.culture-cols-1 {
    grid-template-columns: 1fr;
}
/* 2 chỉ tiêu: 2 cột 50% mỗi cột */
.culture-indicators-grid.culture-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
/* 3+ chỉ tiêu: tối đa 3 cột / 1 dòng */
.culture-indicators-grid.culture-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.culture-indicator-card {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.culture-indicator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.culture-indicator-label {
    font-size: 120%;
    color: #115656;
    line-height: 1.45;
    margin-bottom: 8px;
    font-weight: 400;
}
.culture-indicator-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}
.culture-indicator-card.culture-card-value-only .culture-indicator-value {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
.culture-card-with-progress .culture-indicator-label {
    margin-bottom: 10px;
}
.culture-progress-wrap {
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}
.culture-progress-track {
    width: 100%;
    height: 28px;
    background: #fff;
    border-radius: 999px;
    overflow: hidden;
    box-sizing: border-box;
}
.culture-progress-fill {
    height: 100%;
    min-width: 2.75em;
    max-width: 100%;
    background: #0a953e;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 10px;
    transition: width 0.4s ease;
}
.culture-progress-label {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.culture-indicator-explanation {
    font-size: 100%;
    color: #6d5409;
    line-height: 1.5;
    margin-top: 2px;
    font-style: italic;
}
.culture-indicator-value-plain {
    font-size: 200%;
    font-weight: 600;
    color: #705809;
    line-height: 1.45;
}
/* Màu nền card – luân phiên theo thứ tự (đồng bộ --dash-card-grad-*) */
.culture-card-sky   { background: var(--dash-card-grad-sky); }
.culture-card-mint { background: var(--dash-card-grad-mint); }
.culture-card-amber { background: var(--dash-card-grad-amber); }
.culture-card-lavender { background: var(--dash-card-grad-lavender); }
.culture-card-rose { background: var(--dash-card-grad-rose); }
.culture-card-teal { background: var(--dash-card-grad-teal); }


@media (max-width: 767px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 50%;
    }
    /* Tab Văn hóa xã hội: màn nhỏ chỉ 1 cột */
    .culture-indicators-grid.culture-cols-2,
    .culture-indicators-grid.culture-cols-3 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 991px) {
    .culture-indicators-grid.culture-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tab Chỉ tiêu Thành phố giao — độ rộng cột theo cấu hình (350 / 50 / 250 / 250 px) */
.city-targets-wrap {
    padding: 0 4px 16px;
}
.city-targets-banner {
    /*background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;*/
    background: linear-gradient(135deg, #289dad 0%, #839521 100%);
    color: #fff !important;
    border: none !important;
    font-weight: 500;
}
.city-targets-table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.city-targets-table {
    table-layout: fixed;
    width: 100%;
    min-width: 900px;
    font-size: 13px;
    margin-bottom: 0;
}
.city-targets-table th,
.city-targets-table td {
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.city-targets-head-row th {
    background: #d9e1f2;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
}
.city-targets-section-row td {
    background: #ededed;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 12px;
}
.city-targets-data-row td {
    font-size: 13px;
    line-height: 1.45;
    padding: 8px 10px;
}
.city-targets-row-highlight td {
    background: #fff2cc;
}
.city-targets-cell-indent {
    padding-left: 1.75rem !important;
}
.city-targets-col-unit {
    text-align: center;
    white-space: normal;
}

/* Chỉ tiêu Thành phố giao: thẻ con + tô nổi (đồng bộ bảng Excel) */
.city-target-card-highlight.culture-indicator-card {
    box-shadow: inset 0 0 0 1px #d9a404;
    background: linear-gradient(135deg, #fffdf5 0%, #fff2cc 100%) !important;
}
.city-target-card-sub .culture-indicator-label,
.city-target-card-sub.culture-card-value-only .culture-indicator-value {
    padding-left: 12px;
    border-left: 4px solid #94a3b8;
    margin-left: 2px;
}

/* Chỉ tiêu TP Giao — nền gradient giống tab Thông tin phục vụ quản lý */
.city-targets-activity-wrap .city-target-activity-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.city-targets-activity-wrap .city-target-activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.city-targets-activity-wrap .city-target-activity-card.culture-card-sky {
    background: var(--dash-card-grad-sky);
}
.city-targets-activity-wrap .city-target-activity-card.culture-card-mint {
    background: var(--dash-card-grad-mint);
}
.city-targets-activity-wrap .city-target-activity-card.culture-card-amber {
    background: var(--dash-card-grad-amber);
}
.city-targets-activity-wrap .city-target-activity-card.culture-card-lavender {
    background: var(--dash-card-grad-lavender);
}
.city-targets-activity-wrap .city-target-activity-card.culture-card-rose {
    background: var(--dash-card-grad-rose);
}
.city-targets-activity-wrap .city-target-activity-card.culture-card-teal {
    background: var(--dash-card-grad-teal);
}
.city-targets-activity-wrap .city-target-activity-card .feedback-activity-label {
    font-size: 13px;
    color: #115656;
    line-height: 1.35;
}
.city-targets-activity-wrap .city-target-activity-note {
    color: #6d5409;
    font-style: italic;
}

/* Chỉ tiêu TP Giao — activity card (layout 2 cột) */
.urban-metric-activity-card {
    min-height: 104px;
    height: 100%;
}
.urban-metric-icon {
    font-size: 2rem !important;
    line-height: 1;
}
.urban-metric-activity-card .feedback-activity-body {
    min-width: 0;
    flex: 1;
}
.urban-metric-activity-card .feedback-activity-value {
    font-size: 1.5rem;
    line-height: 1.2;
}
.urban-metric-activity-card .feedback-activity-label {
    font-size: 12px;
    line-height: 1.35;
    color: #495057;
    margin-top: 2px;
}
.overview-metric-activity-card {
    min-height: 104px;
    height: 100%;
}
.overview-metric-activity-card .feedback-activity-body {
    min-width: 0;
    flex: 1;
}
.overview-metric-activity-card .feedback-activity-value {
    font-size: 1.5rem;
    line-height: 1.2;
    word-break: break-word;
}
.overview-metric-activity-card .feedback-activity-label {
    font-size: 90%;
    line-height: 1.35;
    color: #495057;
    margin-top: 2px;
}
.overview-value-default {
    color: #1f4d2a;
    font-size: 1.25rem !important;
}
.overview-value-muted {
    color: #9ca3af;
    font-size: 1.1rem !important;
}
.overview-metric-note {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    line-height: 1.3;
}
.party-metric-activity-card {
    min-height: 104px;
}
.party-work-section .feedback-section-title {
    margin-bottom: 14px;
}
.city-target-activity-card--progress .city-target-activity-body {
    width: 100%;
    min-width: 0;
    flex: 1;
    align-items: stretch;
    align-self: stretch;
}
.city-target-activity-card--progress .city-target-progress-wrap {
    width: 100%;
    margin-bottom: 10px;
    align-self: stretch;
}
.city-target-activity-card--progress .culture-progress-track {
    width: 100%;
    min-height: 28px;
}
.city-target-activity-card--progress .culture-progress-fill {
    max-width: 100%;
}
.city-target-activity-card--progress .feedback-activity-label {
    font-size: 13px;
    line-height: 1.35;
    color: #5c4a3a;
}
.city-target-activity-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b5b4f;
}
.city-target-activity-highlight.feedback-activity-card {
    box-shadow: inset 0 0 0 2px #d9a404, 0 1px 4px rgba(0, 0, 0, 0.06);
}
.city-target-activity-highlight.culture-card-sky,
.city-target-activity-highlight.culture-card-mint,
.city-target-activity-highlight.culture-card-amber,
.city-target-activity-highlight.culture-card-lavender,
.city-target-activity-highlight.culture-card-rose,
.city-target-activity-highlight.culture-card-teal {
    background: linear-gradient(135deg, #fffdf5 0%, #fff2cc 100%) !important;
}
@media (min-width: 992px) {
    .city-targets-activity-wrap .domain-activity-section .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

#governmentSubTabs{
    margin-top: 0px;
}

.div_title_top{
    background: linear-gradient(135deg, #289dad 0%, #839521 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    font-weight: 500;
}

/* Tiêu đề có icon (dashboard.js: dashIcon / sectionHeading) */
.dashboard-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
.dashboard-section-heading-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a9aad;
}
.dashboard-section-heading-label {
    flex: 1;
    min-width: 0;
}
.dashboard-card > .dashboard-section-heading {
    font-size: 18px;
    font-weight: 600;
    color: #115656;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    padding-right: 0;
}
.dashboard-card > .dashboard-section-heading.dashboard-section-heading--h4 {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 8px;
}
.dashboard-card > .dashboard-section-heading.investment-section-title,
.dashboard-card > .dashboard-section-heading.feedback-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
}
.section-header .dashboard-section-heading {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
}
.section-header .dashboard-section-heading-icon {
    color: rgba(255, 255, 255, 0.95);
}
.section-header .dashboard-section-heading-label {
    color: #fff;
}
.party-structure-header .party-structure-main-title.dashboard-section-heading {
    justify-content: center;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 28px;
    font-weight: 700;
    color: #115656;
}
.party-structure-header .party-structure-main-title .dashboard-section-heading-icon {
    color: #1a9aad;
}
.div_title_top-icon {
    display: inline-flex;
    flex-shrink: 0;
    opacity: 0.95;
    color: #fff;
}
.economy-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.economy-kpi-icon--green {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
}
.economy-kpi-icon--teal {
    background: rgba(40, 157, 173, 0.14);
    color: #1a9aad;
}
.economy-card-ongoing .economy-card-icon-warning {
    font-size: 0;
    color: #856404;
}
.economy-card-ongoing .economy-card-icon-warning .dashboard-title-icon-svg {
    display: block;
}
.kpi-card-head-icon {
    display: inline-flex;
    align-items: center;
    color: #1a9aad;
}
.feedback-banner .feedback-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}
.dashboard-section-heading.culture-domain-title {
    font-size: 16px;
    font-weight: 600;
    color: #c82333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
}
.dashboard-section-heading.culture-domain-title .dashboard-section-heading-icon {
    color: #c82333;
}
.dashboard-section-heading.urban-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #115656;
    margin-bottom: 14px;
}
.urban-security-section .dashboard-section-heading.urban-section-title {
    font-size: 18px;
    margin-bottom: 16px;
}
.dashboard-card > .dashboard-section-heading.culture-domain-title {
    border-bottom: 2px solid #dc3545;
}