/* ============================================
CUSTOM FONTS
   ============================================ */
@font-face {
    font-family: 'NEIIA';
    src: url('assets/font/NEIIA_VF-s.p.3bb41c0a.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NEIIA';
    src: url('assets/font/NEIIA_Italic_VF-s.p.31e87b9d.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'NEIIA Display';
    src: url('assets/font/NEIIADisplay_Regular-s.p.9a576876.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'NEIIA', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #006341 0%, #008751 50%, #00A86B 100%);
    color: #333;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #008000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    gap: 2rem;
}

.logo h1 {
    color: #008751;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 32px;
    background: linear-gradient(180deg, #008751, #E8C547);
    border-radius: 4px;
}

.subtitle {
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.global-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.global-filters label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.global-filters select {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-left: 0.5rem;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.global-filters select:hover {
    border-color: #008751;
}

.global-filters select:focus {
    outline: none;
    border-color: #008751;
    box-shadow: 0 0 0 3px rgba(0, 135, 81, 0.15);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #008751;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* KPI Bar Styles */
.kpi-bar {
    background: linear-gradient(90deg, #008751 0%, #00A86B 50%, #E8C547 100%);
    padding: 1.5rem 2rem;
    color: white;
}

.kpi-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.kpi-trend {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    display: inline-block;
}

.kpi-trend.positive {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.kpi-trend.negative {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* 主内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.section-header h2 {
    color: #008751;
    font-size: 1.3rem;
}

.system-entry {
    background: linear-gradient(135deg, #008751 0%, #00A86B 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.system-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 135, 81, 0.4);
}

.finance-entry {
    background: linear-gradient(135deg, #E8C547 0%, #D4A84B 100%);
    color: #333;
}

.finance-entry:hover {
    box-shadow: 0 5px 15px rgba(232, 197, 71, 0.4);
}

/* 图表容器 */
.chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.chart-card h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* 项目状态样式 */
.project-status {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.planning {
    background: #ff9800;
}

.status-dot.in-progress {
    background: #2196f3;
}

.status-dot.completed {
    background: #4caf50;
}

/* 地图样式 */
.map-container {
    height: 200px;
    position: relative;
}

.nigeria-map {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    border: 1px solid #e0e0e0;
}

.region {
    position: absolute;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region:hover {
    transform: scale(1.1);
    z-index: 10;
}

.region.lagos {
    top: 30%;
    left: 20%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 80px;
}

.region.abuja {
    top: 40%;
    left: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    width: 70px;
}

.region.kaduna {
    top: 20%;
    left: 40%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    width: 85px;
}

.region.kano {
    top: 10%;
    left: 45%;
    background: linear-gradient(135deg, #ffe66d, #ffaf4d);
    width: 75px;
}

/* 桑基图容器 */
.sankey-container {
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

/* 底部预警和新闻 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.alert-section,
.news-section {
    max-width: 1400px;
    margin: 0 auto 1.5rem;
}

.alert-section h3,
.news-section h3 {
    color: #008751;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.alert-list,
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.alert-item,
.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.alert-item.warning {
    border-left: 4px solid #ff9800;
}

.alert-item.info {
    border-left: 4px solid #2196f3;
}

.alert-icon,
.news-icon {
    font-size: 1.2rem;
}

.alert-time,
.news-time {
    margin-left: auto;
    color: #666;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .kpi-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .kpi-container {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Finance Module Styles */
.finance-module {
    background: white;
    min-height: 100vh;
}

.finance-header {
    background: linear-gradient(135deg, #008751 0%, #00A86B 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.finance-nav {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.finance-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.finance-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.finance-nav a.active {
    background: #008751;
    color: white;
}

.finance-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-details {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom-color: #E8C547;
    color: #008751;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.gantt-chart {
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    position: relative;
}

.budget-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.budget-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.budget-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #008751;
    margin-bottom: 0.5rem;
}

.back-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #5a6268;
}

/* ==================== Dashboard 专用样式 ==================== */

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f8f9fa;
    color: #333;
    border-radius: 50%;
}

.btn-icon:hover {
    background: #008751;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #008751 0%, #00A86B 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 135, 81, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* KPI Header */
.kpi-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px 30px;
    max-width: 1400px;
    margin: 20px auto;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    color: white;
}

.kpi-green .kpi-icon {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.kpi-red .kpi-icon {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.kpi-blue .kpi-icon {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.kpi-purple .kpi-icon {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.kpi-content {
    flex: 1;
}

.kpi-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #008751;
    margin-bottom: 5px;
}

.kpi-trend {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
}

.kpi-trend.trend-up {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.kpi-trend.trend-down {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.kpi-compare {
    font-size: 11px;
    color: #999;
    margin-left: 5px;
}

/* Main Dashboard */
.main-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    padding: 24px 30px 30px;
    max-width: 1600px;
    margin: 0 auto;
    flex: 1;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.column-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #E8C547;
}

.column-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #008751;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.2px;
}

.column-header i {
    color: #E8C547;
    font-size: 16px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 135, 81, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 135, 81, 0.12);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 135, 81, 0.1);
}

.card-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.chart-legend {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-supply {
    background: #4caf50;
}

.legend-demand {
    background: #ff9800;
}

.card-body {
    position: relative;
    min-height: 220px;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Map Styles */
.map-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.map-stat {
    background: rgba(102, 126, 234, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
}

.map-stat .highlight {
    color: #667eea;
    font-weight: 700;
    font-size: 14px;
}

.map-container {
    height: 250px;
    position: relative;
}

.nigeria-map {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.1));
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.map-region {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.map-region:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.region-north {
    top: 10%;
    left: 25%;
    width: 50%;
    height: 35%;
    background: rgba(76, 175, 80, 0.7);
}

.region-south {
    bottom: 10%;
    left: 20%;
    width: 55%;
    height: 25%;
    background: rgba(76, 175, 80, 0.9);
}

.region-west {
    top: 30%;
    left: 5%;
    width: 25%;
    height: 40%;
    background: rgba(76, 175, 80, 0.8);
}

.region-east {
    top: 35%;
    right: 5%;
    width: 25%;
    height: 35%;
    background: rgba(76, 175, 80, 0.6);
}

/* Bottom Panel */
.bottom-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 30px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.bottom-card {
    max-height: 350px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-warning {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.badge-info {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.alert-list,
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid;
    transition: all 0.3s;
}

.alert-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.alert-critical {
    border-left-color: #f44336;
}

.alert-warning {
    border-left-color: #ff9800;
}

.alert-info {
    border-left-color: #2196f3;
}

.alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-critical .alert-icon {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.alert-warning .alert-icon {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.alert-info .alert-icon {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.alert-time {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.alert-detail {
    font-size: 12px;
    color: #666;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.news-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.news-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.news-time {
    font-size: 11px;
    color: #999;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e3c72;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #f44336;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

/* Finance Modal */
.finance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.finance-kpi-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.finance-kpi-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.finance-kpi-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e3c72;
}

.finance-kpi-trend {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
}

.finance-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.finance-charts .card {
    margin-bottom: 0;
}

.project-table {
    overflow-x: auto;
}

.project-table table {
    width: 100%;
    border-collapse: collapse;
}

.project-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #1e3c72;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.project-table td {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.project-table tbody tr:hover {
    background: #f8f9fa;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .main-dashboard {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-column:last-child {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .main-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-column:last-child {
        grid-column: span 1;
        display: flex;
    }

    .kpi-header {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-panel {
        grid-template-columns: 1fr;
    }

    .finance-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .finance-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .global-filters {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .global-filters select {
        margin-left: 0;
        width: 100%;
    }

    .kpi-header {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 15px;
    }

    .main-dashboard {
        padding: 0 15px 20px;
        gap: 15px;
    }

    .bottom-panel {
        padding: 0 15px 20px;
        gap: 15px;
    }

    .modal-content {
        width: 95%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kpi-card,
.card,
.bottom-card {
    animation: fadeInUp 0.6s ease-out;
}

.kpi-card:nth-child(1) {
    animation-delay: 0.1s;
}

.kpi-card:nth-child(2) {
    animation-delay: 0.2s;
}

.kpi-card:nth-child(3) {
    animation-delay: 0.3s;
}

.kpi-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.status-completed {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-planned {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.status-suspended {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* 卡片操作区 */
.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.card-actions select {
    padding: 0.3rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    background: white;
    color: #333;
}

.card-actions select:focus {
    outline: none;
    border-color: #2196f3;
}

/* KPI橙色样式 */
.kpi-orange .kpi-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 4px solid #008751;
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-toast i {
    font-size: 20px;
}

.notification-success {
    border-left-color: #008751;
}

.notification-success i {
    color: #008751;
}

.notification-error {
    border-left-color: #f44336;
}

.notification-error i {
    color: #f44336;
}

.notification-info {
    border-left-color: #E8C547;
}

.notification-info i {
    color: #E8C547;
}

/* Settings Modal Styles */
.settings-modal-content {
    max-width: 500px;
}

.settings-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section h4 {
    color: #008751;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.settings-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #008751;
    cursor: pointer;
}

.settings-option select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    margin-left: auto;
}

.settings-option select:focus {
    outline: none;
    border-color: #008751;
}

.settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
}

.settings-actions .btn {
    padding: 10px 24px;
}

.settings-actions .btn:not(.btn-primary) {
    background: #f5f5f5;
    color: #666;
}

.settings-actions .btn:not(.btn-primary):hover {
    background: #e0e0e0;
}

/* Finance KPI Grid for Modal */
.finance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.finance-kpi-card {
    background: linear-gradient(135deg, rgba(0, 135, 81, 0.1), rgba(232, 197, 71, 0.1));
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 135, 81, 0.2);
}

.finance-kpi-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finance-kpi-value {
    font-size: 20px;
    font-weight: 700;
    color: #008751;
}

/* Progress Bar */
.progress-bar-container {
    margin-top: 16px;
}

.progress-bar-container label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* Project Table Styling */
.project-table {
    overflow-x: auto;
}

.project-table table {
    width: 100%;
    border-collapse: collapse;
}

.project-table th,
.project-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.project-table th {
    background: linear-gradient(135deg, #008751, #00A86B);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 12px;
}

.project-table th:first-child {
    border-radius: 8px 0 0 0;
}

.project-table th:last-child {
    border-radius: 0 8px 0 0;
}

.project-table tr:hover {
    background: rgba(0, 135, 81, 0.05);
}

.project-table .btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

/* Enhanced Project Table Styling */
.project-table tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.project-table tbody tr:nth-child(even) {
    background: rgba(0, 135, 81, 0.03);
}

.project-table tbody tr:hover {
    background: rgba(0, 135, 81, 0.08);
    transform: translateX(3px);
}

.project-table td {
    color: #333;
    font-weight: 500;
}

/* Action Buttons in Table */
.project-table .btn-sm {
    background: linear-gradient(135deg, #008751, #00A86B);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    margin-right: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-table .btn-sm:hover {
    background: linear-gradient(135deg, #006341, #008751);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 135, 81, 0.3);
}

.project-table .btn-sm i {
    color: white;
}

/* Add Project Button */
.card-actions .btn-sm {
    background: linear-gradient(135deg, #E8C547, #D4A84B);
    color: #333;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-actions .btn-sm:hover {
    background: linear-gradient(135deg, #D4A84B, #C4983B);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 197, 71, 0.4);
}

.card-actions .btn-sm i {
    color: #333;
}

/* Status Badge Improvements */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, rgba(0, 135, 81, 0.15), rgba(0, 168, 107, 0.15));
    color: #008751;
    border: 1px solid rgba(0, 135, 81, 0.3);
}

.status-completed {
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.15), rgba(0, 135, 81, 0.15));
    color: #00A86B;
    border: 1px solid rgba(0, 168, 107, 0.3);
}

.status-planned {
    background: linear-gradient(135deg, rgba(232, 197, 71, 0.15), rgba(212, 168, 75, 0.15));
    color: #B8860B;
    border: 1px solid rgba(232, 197, 71, 0.3);
}

/* Bottom Panel Card */
.bottom-panel {
    padding: 0 30px 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.bottom-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.bottom-card .card-header {
    background: linear-gradient(135deg, rgba(0, 135, 81, 0.05), rgba(232, 197, 71, 0.05));
    border-radius: 14px 14px 0 0;
    padding: 18px 24px;
    border-bottom: 2px solid rgba(0, 135, 81, 0.1);
}

.bottom-card .card-header h4 {
    color: #008751;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom-card .card-header h4 i {
    color: #E8C547;
}

/* ============================================
   PROFESSIONAL DROPDOWN STYLING
   ============================================ */

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

.custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #008751;
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* Enhanced Select Styling */
.enhanced-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.enhanced-select:hover {
    border-color: #008751;
    box-shadow: 0 4px 12px rgba(0, 135, 81, 0.15);
}

.enhanced-select:focus {
    outline: none;
    border-color: #008751;
    box-shadow: 0 0 0 4px rgba(0, 135, 81, 0.15);
}

/* Select with Icon */
.select-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 4px 4px 4px 14px;
    transition: all 0.25s ease;
}

.select-with-icon:hover {
    border-color: #008751;
}

.select-with-icon:focus-within {
    border-color: #008751;
    box-shadow: 0 0 0 4px rgba(0, 135, 81, 0.15);
}

.select-with-icon .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008751;
}

.select-with-icon select {
    appearance: none;
    border: none;
    background: transparent;
    padding: 8px 32px 8px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    min-width: 120px;
}

.select-with-icon select:focus {
    outline: none;
}

/* ============================================
   SVG ICON BUTTON STYLING
   ============================================ */

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    cursor: pointer;
    transition: all 0.25s ease;
    color: #666;
}

.icon-btn:hover {
    border-color: #008751;
    color: #008751;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 135, 81, 0.2);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

.icon-btn:hover svg {
    transform: scale(1.1);
}

/* Primary Icon Button */
.icon-btn-primary {
    background: linear-gradient(135deg, #008751, #00A86B);
    border-color: #008751;
    color: white;
}

.icon-btn-primary:hover {
    background: linear-gradient(135deg, #006341, #008751);
    border-color: #006341;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 135, 81, 0.35);
}

/* Gold Icon Button */
.icon-btn-gold {
    background: linear-gradient(135deg, #E8C547, #D4A84B);
    border-color: #E8C547;
    color: #333;
}

.icon-btn-gold:hover {
    background: linear-gradient(135deg, #D4A84B, #C4983B);
    border-color: #D4A84B;
    box-shadow: 0 4px 15px rgba(232, 197, 71, 0.4);
}

/* ============================================
   FILTER BAR STYLING
   ============================================ */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label svg {
    width: 16px;
    height: 16px;
    color: #008751;
}

/* ============================================
   ACTION BUTTONS GROUP
   ============================================ */

.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tooltip for buttons */
.icon-btn[title] {
    position: relative;
}

.icon-btn[title]::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: #333;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.icon-btn[title]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: -4px;
}

.icon-btn[title]:hover::before,
.icon-btn[title]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   FIXED TABLE ALIGNMENT - Investment Project List
   ============================================ */

.project-table {
    overflow-x: auto;
    margin: 0;
    padding: 0;
}

.project-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* Column Widths */
.project-table th:nth-child(1),
.project-table td:nth-child(1) {
    width: 22%;
}

/* Project Name */

.project-table th:nth-child(2),
.project-table td:nth-child(2) {
    width: 14%;
}

/* Investment Type */

.project-table th:nth-child(3),
.project-table td:nth-child(3) {
    width: 10%;
    text-align: right;
}

/* Investment */

.project-table th:nth-child(4),
.project-table td:nth-child(4) {
    width: 10%;
    text-align: right;
}

/* Disbursed */

.project-table th:nth-child(5),
.project-table td:nth-child(5) {
    width: 10%;
    text-align: center;
}

/* Progress */

.project-table th:nth-child(6),
.project-table td:nth-child(6) {
    width: 8%;
    text-align: center;
}

/* ROI */

.project-table th:nth-child(7),
.project-table td:nth-child(7) {
    width: 12%;
    text-align: center;
}

/* Status */

.project-table th:nth-child(8),
.project-table td:nth-child(8) {
    width: 14%;
    text-align: center;
}

/* Actions */

/* Table Header */
.project-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.project-table th {
    background: linear-gradient(135deg, #008751 0%, #00A86B 100%);
    color: white;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 12px;
    border: none;
    white-space: nowrap;
}

.project-table th:first-child {
    border-radius: 10px 0 0 0;
}

.project-table th:last-child {
    border-radius: 0 10px 0 0;
}

/* Table Body */
.project-table tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.project-table tbody tr:nth-child(even) {
    background: #f8faf9;
}

.project-table tbody tr:hover {
    background: rgba(0, 135, 81, 0.06);
}

.project-table td {
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #eef2f0;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.project-table tbody tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

/* Table Action Buttons */
.project-table td:last-child {
    white-space: nowrap;
}

.project-table .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0 3px;
    border-radius: 8px;
    background: linear-gradient(135deg, #008751, #00A86B);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-table .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 135, 81, 0.35);
}

.project-table .btn-sm i {
    font-size: 13px;
}

/* Status Badges in Table */
.project-table .status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   FULL-WIDTH INVESTMENT PROJECT LIST
   ============================================ */

.bottom-panel {
    padding: 0 30px 40px;
    max-width: 100%;
    margin: 0;
}

.bottom-panel .card.bottom-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 135, 81, 0.1);
}

.bottom-panel .card.bottom-card .card-header {
    background: linear-gradient(135deg, #008751 0%, #00A86B 100%);
    padding: 20px 28px;
    border-radius: 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-panel .card.bottom-card .card-header h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-panel .card.bottom-card .card-header h4 i {
    color: #E8C547;
    font-size: 18px;
}

.bottom-panel .card.bottom-card .card-body {
    padding: 0;
}

.bottom-panel .card.bottom-card .card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bottom-panel .card.bottom-card .enhanced-select {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 10px 36px 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Remove duplicate container styling */
.full-width {
    width: 100%;
}

/* ============================================
   INVESTMENT PROJECT PANEL - FULL WIDTH PRO
   ============================================ */

.investment-project-panel {
    margin: 24px 30px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 135, 81, 0.12);
}

.investment-project-panel .panel-header {
    background: linear-gradient(135deg, #008751 0%, #006341 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.investment-project-panel .panel-header h3 {
    color: white;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.investment-project-panel .panel-header h3 i {
    color: #E8C547;
    font-size: 20px;
}

.investment-project-panel .panel-header .enhanced-select {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 10px 40px 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.investment-project-panel .panel-body {
    padding: 0;
}

/* Investment Table - Full Width */
.investment-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.investment-table thead {
    background: linear-gradient(180deg, #f8faf9 0%, #eef2f0 100%);
}

.investment-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #008751;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #E8C547;
}

/* Column Widths */
.investment-table th:nth-child(1) {
    width: 24%;
}

.investment-table th:nth-child(2) {
    width: 14%;
}

.investment-table th:nth-child(3) {
    width: 10%;
    text-align: right;
}

.investment-table th:nth-child(4) {
    width: 10%;
    text-align: right;
}

.investment-table th:nth-child(5) {
    width: 10%;
    text-align: center;
}

.investment-table th:nth-child(6) {
    width: 8%;
    text-align: center;
}

.investment-table th:nth-child(7) {
    width: 12%;
    text-align: center;
}

.investment-table th:nth-child(8) {
    width: 12%;
    text-align: center;
}

.investment-table td {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #eef2f0;
    vertical-align: middle;
}

.investment-table td:nth-child(3),
.investment-table td:nth-child(4) {
    text-align: right;
    font-weight: 600;
    color: #008751;
}

.investment-table td:nth-child(5),
.investment-table td:nth-child(6) {
    text-align: center;
}

.investment-table td:nth-child(7),
.investment-table td:nth-child(8) {
    text-align: center;
}

.investment-table tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.investment-table tbody tr:nth-child(even) {
    background: #fafcfb;
}

.investment-table tbody tr:hover {
    background: rgba(0, 135, 81, 0.06);
}

/* Action buttons in investment table */
.investment-table .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, #008751, #00A86B);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.investment-table .btn-sm:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 135, 81, 0.4);
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

/* Table Scroll Wrapper - Enables horizontal scrolling */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
    display: none;
    text-align: center;
    padding: 10px;
    color: #008751;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(0, 135, 81, 0.1) 0%, rgba(232, 197, 71, 0.1) 100%);
    border-radius: 8px;
    margin-bottom: 12px;
}

@media (max-width: 1024px) {
    .investment-project-panel {
        margin: 16px;
    }

    .bottom-panel {
        padding: 0 16px 24px;
    }

    .investment-table th,
    .investment-table td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .project-table th,
    .project-table td {
        padding: 10px 8px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {

    /* Panel Header Mobile */
    .investment-project-panel .panel-header {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .investment-project-panel .panel-header h3 {
        font-size: 14px;
    }

    .bottom-panel .card.bottom-card .card-header {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .bottom-panel .card.bottom-card .card-header h4 {
        font-size: 14px;
    }

    .bottom-panel .card.bottom-card .card-actions {
        width: 100%;
        justify-content: stretch;
    }

    .bottom-panel .card.bottom-card .enhanced-select {
        flex: 1;
        min-width: 100%;
    }

    /* Table Scrollable Container */
    .project-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .project-table table {
        min-width: 800px;
        table-layout: auto;
    }

    .investment-table {
        min-width: 800px;
    }

    /* Column Auto-width for mobile scroll */
    .project-table th,
    .project-table td,
    .investment-table th,
    .investment-table td {
        width: auto !important;
        white-space: nowrap;
        padding: 10px 12px;
    }

    /* Status Badge Mobile */
    .status-badge {
        padding: 4px 10px;
        font-size: 10px;
    }

    /* Action Buttons Mobile */
    .project-table .btn-sm,
    .investment-table .btn-sm {
        width: 30px;
        height: 30px;
        margin: 0 2px;
    }

    .project-table .btn-sm i,
    .investment-table .btn-sm i {
        font-size: 11px;
    }

    /* Filter Bar Mobile */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-group {
        width: 100%;
    }

    .enhanced-select {
        width: 100%;
        min-width: 100%;
    }

    .action-buttons {
        justify-content: center;
    }

    /* Cards Mobile */
    .bottom-panel {
        padding: 0 12px 20px;
    }

    .investment-project-panel {
        margin: 12px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {

    /* Smaller Mobile */
    .investment-project-panel {
        margin: 8px;
    }

    .investment-project-panel .panel-header h3 {
        font-size: 12px;
        gap: 8px;
    }

    .investment-project-panel .panel-header h3 i {
        font-size: 16px;
    }

    .project-table table,
    .investment-table {
        min-width: 700px;
    }

    .project-table th,
    .project-table td,
    .investment-table th,
    .investment-table td {
        padding: 8px 10px;
        font-size: 11px;
    }

    /* Stats Cards Mobile */
    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Hide less important columns on very small screens */
    .project-table th:nth-child(5),
    .project-table td:nth-child(5),
    .project-table th:nth-child(6),
    .project-table td:nth-child(6),
    .investment-table th:nth-child(5),
    .investment-table td:nth-child(5),
    .investment-table th:nth-child(6),
    .investment-table td:nth-child(6) {
        display: none;
    }
}

/* Scroll indicator for tables */
.table-scroll-hint {
    display: none;
    text-align: center;
    padding: 8px;
    color: #666;
    font-size: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .table-scroll-hint {
        display: block;
    }
}