/* =========================
   GLOBAL FONT
========================= */

*{

    font-family:'Open Sans', sans-serif;

}

/* ===================================
   GLOBAL
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Open Sans',sans-serif;
    background:#f4f6f9;
    overflow-x:hidden;
    color:#111827;
}

/* =========================
   MOBILE RESPONSIVE CALENDAR
========================= */

@media(max-width:768px){

    .flatpickr-calendar{
        width:100% !important;
        max-width:340px;
        left:50% !important;
        transform:translateX(-50%);
        border-radius:18px !important;
    }

    .flatpickr-days{
        width:100% !important;
    }

    .dayContainer{
        width:100% !important;
        min-width:100% !important;
        max-width:100% !important;
        justify-content:space-between;
    }

    .flatpickr-day{
        width:13.5% !important;
        max-width:13.5% !important;
        height:42px !important;
        line-height:42px !important;
        font-size:14px;
        border-radius:10px !important;
    }

    .flatpickr-current-month{
        font-size:16px !important;
    }

    .flatpickr-weekday{
        font-size:12px !important;
    }

    .flatpickr-months{
        padding:12px 0;
    }

    .flatpickr-prev-month,
    .flatpickr-next-month{
        top:10px !important;
    }

    .flatpickr-input{
        font-size:16px !important;
    }

}


/* ===================================
   DATATABLE MODERN BUTTONS
=================================== */

.dt-buttons{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

.dt-buttons .btn{
    border:none !important;
    border-radius:14px !important;
    padding:10px 18px !important;
    font-size:14px !important;
    font-weight:600 !important;
    display:flex;
    align-items:center;
    gap:8px;
    transition:0.25s ease;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
}


/* COPY */
.buttons-copy{
    background:linear-gradient(135deg,#475569,#334155) !important;
    color:#fff !important;
}

/* EXCEL */
.buttons-excel{
    background:linear-gradient(135deg,#22c55e,#16a34a) !important;
    color:#fff !important;
}

/* PDF */
.buttons-pdf{
    background:linear-gradient(135deg,#ef4444,#dc2626) !important;
    color:#fff !important;
}

/* PRINT */
.buttons-print{
    background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
    color:#fff !important;
}


/* HOVER EFFECT */
.dt-buttons .btn:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}


/* SEARCH BOX */
.dataTables_filter input{
    border-radius:14px !important;
    border:1px solid #dbeafe !important;
    padding:10px 14px !important;
    min-width:250px;
    outline:none !important;
    box-shadow:none !important;
}


/* SHOW ENTRIES */
.dataTables_length select{
    border-radius:12px !important;
    border:1px solid #dbeafe !important;
    padding:6px 10px !important;
}


/* PAGINATION */
.dataTables_paginate .paginate_button{
    border-radius:10px !important;
    margin:0 3px !important;
}

.dataTables_paginate .paginate_button.current{
    background:#2563eb !important;
    color:#fff !important;
    border:none !important;
}



/* ===================================
   SIDEBAR
=================================== */

.sidebar{
    width:260px;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    z-index:1040;

    background:linear-gradient(180deg,#0f172a,#111827);

    padding:20px;

    overflow-y:auto;

    transition:0.3s ease;
}


/* LOGO */

.sidebar-logo{
    text-align:center;
    margin-bottom:35px;
}

.sidebar-logo img{
    width:70px;
    margin-bottom:12px;
}

.sidebar-logo h4{
    color:#fff;
    font-size:28px;
    font-weight:700;
    margin-bottom:4px;
}

.sidebar-logo p{
    color:#94a3b8;
    font-size:14px;
}


/* MENU */

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

.sidebar-menu li{
    margin-bottom:10px;
}

.sidebar-menu li a{
    display:flex;
    align-items:center;
    gap:14px;

    padding:14px 16px;

    color:#cbd5e1;
    text-decoration:none;

    border-radius:14px;

    transition:0.25s ease;

    font-size:15px;
    font-weight:600;
}

.sidebar-menu li a i{
    font-size:20px;
}

.sidebar-menu li a:hover{
    background:#2563eb;
    color:#fff;
}

.sidebar-menu li.active a{
    background:#2563eb;
    color:#fff;
}


/* ===================================
   PAGE WRAPPER
=================================== */

.page-wrapper{
    margin-left:260px;
    min-height:100vh;
    transition:0.3s ease;
}


/* ===================================
   TOPBAR
=================================== */

.topbar{
    height:75px;

    background:#fff;

    padding:0 25px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    border-bottom:2px solid #2563eb;

    position:sticky;
    top:0;
    z-index:999;

    box-shadow:0 2px 10px rgba(0,0,0,0.03);
}


/* LEFT */

.topbar-left{
    display:flex;
    align-items:center;
    gap:18px;
}


/* MENU BUTTON */

.menu-btn{
    width:46px;
    height:46px;

    border:none;

    border-radius:14px;

    background:#f1f5f9;

    font-size:22px;

    transition:0.3s ease;
}

.menu-btn:hover{
    background:#e2e8f0;
}


/* RIGHT */

.topbar-right{
    display:flex;
    align-items:center;
}


/* PROFILE BUTTON */

.profile-btn{
    border:none;
    background:#fff;

    display:flex;
    align-items:center;
    gap:12px;

    padding:8px 14px;

    border-radius:14px;

    transition:0.25s ease;
}

.profile-btn:hover{
    background:#f8fafc;
}


/* PROFILE IMAGE */

.profile-img{
    width:46px;
    height:46px;

    border-radius:50%;

    object-fit:cover;
}


/* PROFILE INFO */

.profile-info{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.2;
}

.profile-name{
    font-size:15px;
    font-weight:700;
    color:#111827;
}

.profile-role{
    font-size:12px;
    color:#64748b;
}


/* DROPDOWN */

.dropdown-menu{
    min-width:220px;
    border:none;
    border-radius:18px;
}


/* ===================================
   MAIN CONTENT
=================================== */

.main-content{
    padding:30px;
    min-height:calc(100vh - 75px);
}


/* ===================================
   CARDS
=================================== */

.card{
    border:none;
    border-radius:22px;
}


/* ===================================
   LOGIN PAGE
=================================== */

.login-page{
    width:100%;
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:20px;

    background:linear-gradient(135deg,#2563eb,#111827);
}


/* LOGIN CARD */

.login-card{
    width:420px;

    background:#fff;

    padding:40px;

    border-radius:24px;

    box-shadow:0 10px 40px rgba(0,0,0,0.15);
}


/* FORM */

.form-control,
.form-select{
    height:50px;
    border-radius:12px;
    box-shadow:none !important;
}

textarea.form-control{
    height:auto !important;
}

.form-control:focus,
.form-select:focus{
    border-color:#2563eb;
}


/* BUTTON */

.login-btn{
    height:50px;
    border-radius:12px;
    font-weight:600;
}


/* ===================================
   FOOTER
=================================== */

.footer{
    text-align:center;
    padding:20px;
    color:#64748b;
}


/* ===================================
   DATATABLE
=================================== */

.dt-buttons{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.dt-buttons .btn{
    display:flex;
    align-items:center;
    gap:6px;

    padding:8px 14px;

    border-radius:12px;

    font-size:14px;
    font-weight:600;
}


/* SEARCH */

.dataTables_filter input{
    border-radius:12px !important;
    border:1px solid #d1d5db !important;
    padding:8px 12px !important;
}


/* SELECT */

.dataTables_length select{
    border-radius:12px !important;
}


/* ===================================
   MODERN ACTION BUTTONS
=================================== */

.action-group{
    display:flex;
    align-items:center;
    gap:10px;
}

.action-btn{
    width:42px;
    height:42px;

    border:none;

    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    font-size:16px;

    color:#fff;

    transition:0.25s ease;

    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.action-btn:hover{
    transform:translateY(-3px);
    color:#fff;
}


/* VIEW */

.action-view{
    background:linear-gradient(135deg,#06b6d4,#0891b2);
}


/* EDIT */

.action-edit{
    background:linear-gradient(135deg,#3b82f6,#2563eb);
}


/* LEDGER */

.action-ledger{
    background:linear-gradient(135deg,#374151,#111827);
}


/* PAYMENT */

.action-payment{
    background:linear-gradient(135deg,#22c55e,#16a34a);
}


/* DELETE */

.action-delete{
    background:linear-gradient(135deg,#ef4444,#dc2626);
}


/* ===================================
   COLLAPSE
=================================== */

.sidebar.collapsed{
    width:85px;
}

.sidebar.collapsed .sidebar-logo h4,
.sidebar.collapsed .sidebar-logo p,
.sidebar.collapsed .sidebar-menu span{
    display:none;
}

.sidebar.collapsed .sidebar-menu li a{
    justify-content:center;
}

.page-wrapper.expanded{
    margin-left:85px;
}


/* ===================================
   MOBILE
=================================== */

@media(max-width:991px){

    .sidebar{
    width:260px;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    z-index:1040;

    background:linear-gradient(180deg,#1d4ed8,#1e3a8a);

    padding:20px;

    overflow-y:auto;

    transition:0.3s ease;
}

    .sidebar.show{
        left:0;
    }

    .page-wrapper{
        margin-left:0 !important;
    }

    .topbar{
        padding:0 15px;
    }

    .main-content{
        padding:20px;
    }

}
.sidebar-menu li{
    margin-bottom:5px;
}

.sidebar-menu li a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 15px;
    border-radius:10px;
    color:#fff;
    text-decoration:none;
    transition:0.3s;
}

.sidebar-menu li a:hover{
    background:rgba(255,255,255,0.1);
}

.submenu{
    padding-left:15px;
    margin-top:5px;
}

.submenu li a{
    font-size:14px;
    padding:10px 15px;
    background:rgba(255,255,255,0.04);
}

.submenu li a:hover{
    background:rgba(255,255,255,0.12);
}

.dropdown-toggle::after{
    margin-left:auto;
}
.submenu{
    padding-left:18px;
}

.submenu li{
    margin-bottom:4px;
}

.submenu li a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-radius:10px;
    font-size:14px;
    color:#cbd5e1;
    text-decoration:none;
    transition:0.3s;
}

.submenu li a:hover{
    background:rgba(255,255,255,0.08);
    color:#fff;
}

.dropdown-toggle::after{
    margin-left:auto;
}
.sidebar{
    width:260px;
    min-height:100vh;
    background:#0f172a;
    color:#fff;
    position:fixed;
    left:0;
    top:0;
    overflow-y:auto;
}

.sidebar-menu li{
    margin-bottom:5px;
}

.menu-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 15px;
    border-radius:12px;
    color:#fff;
    text-decoration:none;
    transition:0.3s;
    font-size:15px;
}

.menu-link:hover{
    background:rgba(255,255,255,0.08);
    color:#fff;
}

.menu-link i{
    margin-right:10px;
}

.submenu-box{
    padding-left:15px;
    margin-top:6px;
}

.submenu li a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-radius:10px;
    color:#cbd5e1;
    text-decoration:none;
    font-size:14px;
    transition:0.3s;
}

.submenu li a:hover{
    background:rgba(255,255,255,0.08);
    color:#fff;
}

.submenu li a i{
    font-size:7px;
}

.page-wrapper{
    margin-left:260px;
}
.submenu{
    display:none;
}
/* ===================================
   MOBILE RESPONSIVE FIX
=================================== */


/* MOBILE */

@media(max-width:991px){

    .sidebar{

        position:fixed;
        left:-280px;
        top:0;
        width:260px;
        height:100%;
        z-index:9999;
        transition:.3s ease;

    }

    .sidebar.active{

        left:0;

    }

    .page-wrapper{

        margin-left:0 !important;
        width:100% !important;

    }

    .topbar{

        padding:15px;
        flex-wrap:wrap;
        gap:15px;

    }

    .topbar-left{

        display:flex;
        align-items:center;
        gap:12px;

    }

    .sidebar-toggle{

        display:flex;

    }

    .main-content{

        padding:15px;

    }

    .dashboard-card{

        padding:18px;

    }

    .table-responsive{

        overflow-x:auto;

    }

    table{

        min-width:800px;

    }

    .info-grid{

        grid-template-columns:1fr !important;

    }

    .summary-grid{

        grid-template-columns:1fr !important;

    }

    .row{

        --bs-gutter-x:15px;

    }

    .topbar-right{

        width:100%;
        justify-content:space-between;

    }

}


/* SMALL MOBILE */

@media(max-width:576px){

    .dashboard-card{

        border-radius:16px;

    }

    .card-amount{

        font-size:28px !important;

    }

    .btn-theme,
    .btn{

        width:100%;

    }

    .topbar h4{

        font-size:20px;

    }

    .sidebar{

        width:240px;

    }

}
.sidebar-toggle{

    width:48px;
    height:48px;

    border:none;
    outline:none;

    border-radius:12px;

    background:#2563eb !important;

    color:#fff !important;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    box-shadow:none !important;

    position:relative;

}

.sidebar-toggle i{

    font-size:22px !important;
    color:#fff !important;
    display:block !important;

}

.sidebar-toggle::before,
.sidebar-toggle::after{

    display:none !important;
    content:none !important;

}


/* GLOW EFFECT */

.sidebar-toggle::before{

    content:'';

    position:absolute;

    top:-50%;
    left:-50%;

    width:200%;
    height:200%;

    background:
    linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );

    transform:rotate(25deg);

    transition:.6s;

}


/* HOVER */

.sidebar-toggle:hover{

    transform:
    translateY(-3px)
    scale(1.05);

    box-shadow:
    0 15px 35px rgba(139,92,246,.45),
    0 5px 15px rgba(59,130,246,.35);

}


/* SHINE ANIMATION */

.sidebar-toggle:hover::before{

    left:100%;

}


/* ICON */

.sidebar-toggle i{

    line-height:1;
    position:relative;
    z-index:2;

}
/* DATATABLE DROPDOWN FIX */

.dataTables_length select{

    min-width:80px !important;

    padding:
    6px 35px 6px 12px !important;

    border:1px solid #d1d5db !important;

    border-radius:10px !important;

    background-position:
    right 12px center !important;

    background-size:14px !important;

    appearance:none !important;

    -webkit-appearance:none !important;

    -moz-appearance:none !important;

    background-color:#fff !important;

    cursor:pointer;

    font-weight:500;

}


/* CUSTOM DROPDOWN ICON */

.dataTables_length{

    display:flex;
    align-items:center;
    gap:10px;

}

.dataTables_length label{

    display:flex;
    align-items:center;
    gap:10px;

    font-weight:500;

}


/* ICON */

.dataTables_length{
    position:relative;
}

.dataTables_length::after{

    content:"⌄";

    position:absolute;

    left:92px;

    top:50%;

    transform:translateY(-50%);

    pointer-events:none;

    font-size:14px;

    color:#111827;

}
/* =========================
   REMOVE SELECT ICON
========================= */

.form-select{

    background-image:none !important;

    padding-right:12px !important;

}
/* =========================
   FLATPICKR
========================= */

.flatpickr-input{

    background:#fff !important;

    border:1px solid #dbeafe !important;

    border-radius:12px !important;

    height:48px !important;

    box-shadow:none !important;

}

.flatpickr-calendar{

    border:none !important;

    border-radius:18px !important;

    box-shadow:0 10px 30px rgba(0,0,0,.12) !important;

    overflow:hidden;

}