/* --NAVBAR-- */
    .custom-navbar {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* สีม่วง-น้ำเงิน ทันสมัย */
        padding: 0.8rem 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .navbar-brand {
        font-size: 1.4rem;
        letter-spacing: -0.5px;
        color: #fff !important;
    }
    .brand-icon {
        background: rgba(255, 255, 255, 0.2);
        padding: 5px 10px;
        border-radius: 12px;
        margin-right: 8px;
    }
    .text-highlight {
        color: #ffffff;
    }
    .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 500;
        padding: 0.5rem 1.2rem !important;
        transition: all 0.3s ease;
        border-radius: 8px;
        margin: 0 2px;
    }
    .nav-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.1);
    }
    .nav-link.active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.25);
        box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
    }
    .user-pill {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50px;
        padding: 5px 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .user-pill:hover {
        background: rgba(0, 0, 0, 0.2);
    }
    .dropdown-menu {
        border-radius: 12px;
        padding: 10px;
        margin-top: 15px !important;
    }
    .dropdown-item {
        border-radius: 6px;
        padding: 8px 15px;
    }
/* --NAVBAR-- */

/* --FOOTER-- */
    .footer-custom {
        background: #ffffff;
        position: relative;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .footer-top-border {
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2, #00d4ff);
        width: 100%;
    }
    .footer-logo-box {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
        font-size: 1.5rem;
        color: white;
    }
    .text-gradient {
        background: linear-gradient(45deg, #444, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.1rem;
    }
    .footer-link {
        text-decoration: none;
        color: #6c757d;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 5px 10px;
        border-radius: 8px;
    }
    .footer-link:hover {
        color: #764ba2;
        background: rgba(118, 75, 162, 0.05);
    }
    .text-danger-hover:hover {
        color: #dc3545;
        background: rgba(220, 53, 69, 0.05);
    }
    .dot-separator {
        width: 4px;
        height: 4px;
        background: #dee2e6;
        display: inline-block;
        border-radius: 50%;
        margin: 0 8px;
        vertical-align: middle;
    }
    .university-tag {
        font-size: 0.85rem;
        color: #888;
        font-weight: 400;
    }
    .text-laravel {
        color: #ff2d20;
        font-weight: 600;
    }
    .x-small {
        font-size: 0.75rem;
    }
    .uppercase-tracking {
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-size: 0.7rem !important;
    }
    .footer-logo {
        height: 70px;
        width: auto;
    }

    @media (max-width: 991.98px) {
        .footer-logo-box {
            margin-bottom: 1rem;
        }
    }
/* --FOOTER-- */

/* --OVERVIEW-- */
    /* ปรับพื้นหลังและการ์ด */
    .account-card {
        border-radius: 16px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        background: #ffffff;
    }

    .account-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    }

    /* ตกแต่ง Icon Shape */
    .icon-shape {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
    }

    /* สีเสริมแบบ Soft Palette */
    .bg-light-primary { background-color: #e7f1ff; }
    .bg-light-success { background-color: #e6f7ef; }
    .bg-light-info { background-color: #e1f5fe; }
    
    .text-primary { color: #0d6efd !important; }
    .text-success { color: #198754 !important; }
    .text-danger { color: #dc3545 !important; }

    /* TCI */
    .bg-grad-tci {
        background: linear-gradient(135deg, #ffe6e6 0%, #ffe6fa 100%);
        color: #2d5a4c !important;
    }

    /* TIS */
    .bg-grad-tis {
        background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
        color: #3e4b7a !important;
    }

    /* AJAC */
    .bg-grad-ajac {
        background: linear-gradient(135deg, #f9faec 0%, #e0e2c3 100%);
        color: #5d5d5d !important;
    }

    /* DJMP */
    .bg-grad-djmp {
        background: linear-gradient(135deg, #acc0f9 0%, #acf9b6 100%);
        color: #455a64 !important;
    }

    /* ปรับสีตัวอักษรสำหรับโทนพาสเทล */
    .text-pastel-dark { color: rgba(0, 0, 0, 0.6) !important; }
    .text-pastel-heading { color: rgba(0, 0, 0, 0.8) !important; font-weight: 700; }
    
    /* ตัวเลขรายรับ/รายจ่าย ในโทนสว่างควรเข้มขึ้นเพื่อให้มองชัด */
    .summary-card .text-success { color: #28a745 !important; }
    .summary-card .text-danger { color: #dc3545 !important; }
    
    hr.opacity-pastel { border-top: 1px solid rgba(0, 0, 0, 0.1); }
/* --OVERVIEW-- */

/* --summary-card ทุกบัญชี-- */
    .summary-card {
        border-radius: 24px;
        padding: 0.5rem;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .summary-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
    }
    .card-icon {
        position: absolute;
        right: -10px;
        bottom: -10px;
        font-size: 3rem;
        transform: rotate(-15deg);
        transition: 0.3s;
    }

    .summary-card:hover .card-icon {
        transform: rotate(0deg) scale(1.1);
    }
    .bg-grad-total   { background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); } /* ม่วง-น้ำเงิน */
    .bg-grad-primary     { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); } /* ฟ้า-น้ำเงิน */
    .bg-grad-success     { background: linear-gradient(135deg, #10b981 0%, #059669 100%); } /* เขียว */
    .bg-grad-receipt { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); } /* ส้มเหลือง */
    .bg-grad-danger { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); } /* ชมพูแดง */

    .summary-card .card-title {
        font-weight: 500;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        opacity: 0.9;
    }
    .summary-card .card-value {
        font-size: 1.6rem;
        font-weight: 800;
        line-height: 1.2;
    }
    .bg-gradient-blue {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    .bg-soft-primary {
        background-color: rgba(118, 75, 162, 0.1);
    }
    .table thead th {
        border-bottom: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .table tbody tr {
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    .font-lg {
        font-size: 1.1rem;
    }
    .search-box input {
        border-radius: 20px;
        padding-left: 15px;
        border-color: #eee;
    }
/* --summary-card ทุกบัญชี-- */

/* ---Segmented Control DJMP--- */
    /* Wrapper */
    .section-wrapper {
        position: relative;
        overflow: hidden;
    }

    .finance-section {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;

        opacity: 0;
        transform: translateX(40px);
        transition: all 0.45s cubic-bezier(.4,0,.2,1);
        pointer-events: none;
    }

    /* แสดงผล */
    .finance-section.active {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        position: relative;
    }

    /* slide ออก */
    .finance-section.exit-left {
        transform: translateX(-40px);
        opacity: 0;
    }

    .segmented-control {
        display: inline-flex;
        position: relative;
        background: #f1f3f5;
        border-radius: 50px;
        padding: 4px;
        overflow: hidden;
        width: 390px;
    }

    .segment-indicator {
        position: absolute;
        top: 4px;
        left: 4px;
        width: calc(33.333% - 4px);
        height: calc(100% - 8px);
        background: #0d6efd;
        border-radius: 50px;
        transition: transform 0.35s cubic-bezier(.4,0,.2,1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .segment-btn {
        flex: 1;
        border: none;
        background: transparent;
        padding: 6px 0;
        border-radius: 50px;
        font-weight: 500;
        z-index: 2;
        transition: color 0.3s ease, transform 0.15s ease;
    }

    .segment-btn.active {
        color: #fff;
    }

    .segment-btn:not(.active) {
        color: #495057;
    }

    .segment-btn:active {
        transform: scale(0.95);
    }
/* ---Segmented Control DJMP--- */

/* ---Export Excel Button--- */
.dt-button.btn-export-excel {
    background-color: #1D6F42 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
}

.dt-button.btn-export-excel:hover {
    background-color: #155c35 !important;
}
/* ---Export Excel Button--- */