/* ============================
CONTRIBUTION PROGRESS CARD
============================ */


.progress-card{

background:white;

border:1px solid #ddd;

border-radius:14px;

padding:20px;

margin-top:20px;

}



.progress-header{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:15px;

}



.progress-header h3{

margin:0;

}



.progress-header span{

font-weight:bold;

color:#555;

}



.progress-track{

height:12px;

background:#eee;

border-radius:20px;

overflow:hidden;

}



.progress-fill{

height:100%;

background:#2196f3;

border-radius:20px;

transition:.3s;

}



.progress-footer{

display:flex;

justify-content:space-between;

margin-top:12px;

font-size:12px;

color:#555;

}
/* ==============================
PAGE KPI CARDS
============================== */


.page-kpi-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(120px,1fr));

gap:15px;

margin-top:20px;

}



.kpi-card{

background:white;

border:1px solid #ddd;

border-radius:14px;

padding:20px;

}



.kpi-title{

font-size:14px;

color:#666;

margin-bottom:10px;

}



.kpi-value{

font-size:16px;

font-weight:bold;

color:#111;

}

.slot{

    width:50px;

    height:50px;

    border:1px solid #ccc;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:8px;

    font-weight:bold;

    background:#f5f5f5;

}

/* =========================
SLOT QUICK ACTIONS
========================= */


.slot-actions{

display:flex;

flex-wrap:wrap;

gap:10px;

margin-top:20px;

}



.slot-actions button{

padding:10px 15px;

border-radius:8px;

border:1px solid #ddd;

background:white;

cursor:pointer;

font-weight:600;

}



.slot-actions button:hover{

background:#f3f7ff;

}
.slot-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(120px,1fr));

gap:15px;

}



.slot-card{

border:1px solid #ddd;

border-radius:12px;

padding:15px;

cursor:pointer;

background:white;

transition:.2s;

}

.modal{

display:none;

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(0,0,0,.5);

align-items:center;

justify-content:center;

z-index:999;

}


.modal-box{

background:white;

padding:25px;

border-radius:15px;

width:90%;

max-width:400px;

}


.modal.active{

display:flex;

}

.modal-content{

background:white;

padding:25px;

border-radius:12px;

width:90%;

max-width:420px;

}
.slot-card input{

display:none;

}



.slot-card:hover{

transform:translateY(-3px);

}



.slot-card:has(input:checked){

background:#e8f5ff;

border-color:#2196f3;

}

.slot-card:has(input:checked)::after{

content:"✓ Selected";

display:block;

color:#2196f3;

font-size:12px;

margin-top:8px;

font-weight:bold;

}

.slot-card.paid{

background:#e8f7ed;

border-color:#28a745;

cursor:not-allowed;

}



.slot-number{

font-weight:bold;

font-size:18px;

}



.slot-amount{

margin-top:10px;

font-size:15px;

}



.slot-status{

margin-top:8px;

font-size:13px;

}
.payment-summary-card{

background:#fff;

border-radius:14px;

padding:20px;

margin-top:20px;

border:1px solid #ddd;

}



.summary-row{

display:flex;

justify-content:space-between;

padding:12px 0;

border-bottom:1px solid #eee;

font-size:16px;

}



.summary-row:last-child{

border-bottom:none;

}
/* ==========================
STICKY PAYMENT BAR
========================== */


.sticky-payment-bar{

position:fixed;

bottom:0;

left:0;

right:0;

background:white;

border-top:1px solid #ddd;

padding:12px 15px;

display:flex;

justify-content:space-between;

align-items:center;

gap:15px;

z-index:2000;

box-shadow:
0 -3px 12px rgba(0,0,0,.12);

}



.sticky-summary{


display:flex;


gap:25px;


}



.sticky-summary div{


display:flex;


flex-direction:column;


font-size:13px;


}



.sticky-summary span{


color:#777;


}



.sticky-summary strong{


font-size:18px;


}



.sticky-pay-btn{


background:#198754;


color:white;


border:none;


padding:12px 22px;


border-radius:10px;


font-weight:bold;


cursor:pointer;


}



.sticky-pay-btn:hover{


opacity:.9;


}

.money-input{

    width:100%;

    padding:12px 15px;

    border:1px solid #d7dbe7;

    border-radius:8px;

    font-size:16px;

    font-weight:600;

    text-align:right;

    background:#fff;

    transition:.2s;

}

.money-input:focus{

    outline:none;

    border-color:#2b6df8;

    box-shadow:0 0 0 3px rgba(43,109,248,.15);

}

@media(min-width:768px){


.sticky-payment-bar{


display:none;


}


}


@media(max-width:767px){

.sticky-payment-bar{

left:0;

}

}

.contribution-layout{
    display:grid;
    grid-template-columns:7fr 3fr;
    gap:20px;
    align-items:start;
}


.slot-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:8px;
}


.slot-card{
    padding:8px;
    font-size:12px;
    min-height:65px;
}


.contribution-sidebar{
    position:sticky;
    top:20px;
}


@media(max-width:768px){

.contribution-layout{
    grid-template-columns:1fr;
}


.slot-grid{
    grid-template-columns:repeat(4,1fr);
}


.contribution-sidebar{
    position:static;
}

}
/* ================================
   MOBILE SIDEBAR COLLAPSE
================================ */

@media (max-width: 768px){

    .sidebar{
        transform: translateX(-100%);
        position: fixed;
        z-index: 999;
        height:100vh;
        transition:0.3s ease;
    }


    .sidebar.active{
        transform:translateX(0);
    }


    .main-content{
        margin-left:0 !important;
        width:100%;
    }


    .menu-toggle{
        display:block;
    }

}
.contribution-container{

width:100%;
max-width:1200px;
margin:auto;
padding:15px;

}


@media(max-width:768px){

.contribution-container{

padding:10px;

}


h2{
font-size:20px;
}


h3{
font-size:17px;
}

}
.slot-grid{

display:grid;

grid-template-columns:
repeat(8,1fr);

gap:8px;

}


.slot-card{

padding:8px;

font-size:12px;

border-radius:8px;

}


.slot-number{

font-size:12px;
font-weight:600;

}


.slot-amount{

font-size:11px;

}


.slot-status{

font-size:10px;

}
@media(max-width:768px){


.slot-grid{

grid-template-columns:
repeat(4,1fr);

gap:6px;

}


.slot-card{

padding:6px;

min-height:60px;

}


.slot-number{

font-size:11px;

}


.slot-amount{

font-size:10px;

}


.slot-status{

font-size:9px;

}

}
.page-kpi-grid{

display:grid;

grid-template-columns:
repeat(5,1fr);

gap:10px;

}


@media(max-width:768px){

.page-kpi-grid{

grid-template-columns:
repeat(2,1fr);

}


.kpi-card{

padding:10px;

}


.kpi-title{

font-size:12px;

}


.kpi-value{

font-size:15px;

}

}
.slot-actions{

display:flex;

gap:8px;

flex-wrap:wrap;

}


@media(max-width:768px){

.slot-actions{

overflow-x:auto;

flex-wrap:nowrap;

}


.slot-actions button{

white-space:nowrap;

font-size:12px;

padding:6px 10px;

}


}
.dropdown-menu{
    border-radius:12px;
    border:0;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}


.dropdown-item{
    padding:10px 15px;
}


.dropdown-item i{
    width:18px;
    margin-right:8px;
}


/* Customer table dropdown fix */

.desktop-table .dropdown {
    position: relative;
}


.desktop-table .dropdown-menu {
    position: absolute !important;
    z-index: 2000;
    min-width: 180px;
}


.desktop-table .dropdown-toggle::after {
    margin-left: 6px;
}


.table-responsive {
    overflow: visible !important;
}
.customer-table-wrapper {
    overflow: visible !important;
}

.action-dropdown {
    position: relative;
}


.action-dropdown .dropdown-menu {

    position: absolute !important;

    top: 100% !important;

    right: 0 !important;

    left: auto !important;

    z-index: 9999;

    display: none;

}


.action-dropdown .dropdown-menu.show {

    display: block;

}


.desktop-table td:last-child {

    position: relative;

}


.table-responsive {

    overflow-x: auto;

    overflow-y: visible !important;

}
.customer-table {
    position: relative;
}


.customer-table tbody tr {
    position: relative;
}
/* Keep table dropdowns above rows without affecting layout */
.desktop-table .table-responsive {
    overflow: visible;
}


.desktop-table tbody tr {
    position: relative;
}


.desktop-table .dropdown {
    position: relative;
}


.desktop-table .dropdown-menu {
    z-index: 1055;
    position: absolute;
    right: 0;
    left: auto;
    min-width: 180px;
}
.wallet-pagination-wrapper{
    display:flex;
    justify-content:center;
    margin-top:25px;
}


.wallet-pagination-wrapper .pagination{
    display:flex;
    gap:6px;
    list-style:none;
    padding-left:0;
}


.wallet-pagination-wrapper .page-item{
    display:block;
}


.wallet-pagination-wrapper .page-link{

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

    min-width:38px;
    height:38px;

    border-radius:8px;

    border:1px solid #dee2e6;

    text-decoration:none;

    color:#333;

    background:#fff;

}


.wallet-pagination-wrapper .page-item.active .page-link{

    background:#0d6efd;

    color:white;

    border-color:#0d6efd;

}


.wallet-pagination-wrapper .page-link:hover{

    background:#f1f5ff;

}
.wallet-pagination-wrapper ul.pagination {
    display:flex !important;
    list-style:none !important;
    margin:0;
    padding:0;
}

.wallet-pagination-wrapper ul.pagination li {
    display:block !important;
}

.wallet-pagination-wrapper ul.pagination li a {
    text-decoration:none;
}
.pagination {
    display:flex;
    padding-left:0;
    list-style:none;
}

.pagination .page-item {
    display:block;
}

.pagination .page-link {
    text-decoration:none;
}