.done-container{
    padding:15px;
}

/* 🔵 HEADER */
.done-header{
    background: linear-gradient(135deg,#3b82f6,#2563eb);
    color:#fff;
    padding:20px;
    border-radius:20px;
    position:relative;
}
.done-header #doneTitle {
    color: #fff !important;
}

.done-close{
    position:absolute;
    top:8px;
    left:10px;
    font-size:20px;
    cursor:pointer;
}

.done-header h3{
    margin:10px 0 5px;
}


.done-amount{
    font-size:22px;
    font-weight:bold;
}

/* ⚪ PRODUCTS */
.done-products{
    background:#fff;
    margin-top:-20px;
    padding:15px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.done-item{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #eee;
}

/* ⚪ FOOTER */
.done-footer{
    margin-top:10px;
    background:#fff;
    padding:15px;
    border-radius:15px;
    display:flex;
    justify-content:space-between;
    font-weight:bold;
}


/* CENTER FLOAT CARD */
.done-center-card{
    position:relative;
    margin:-30px auto 10px;
    background:#fff;
    width:90%;
    padding:15px;
    border-radius:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
    z-index:2;
}
.done-products-title{
    margin:10px 0 5px 5px;
    font-size:12px;
    color:#666;
    font-weight:600;
}
.done-center-card small{
    color:#888;
    font-size:12px;
}

.done-center-card strong{
    display:block;
    font-size:16px;
    color:#000;
}

.center-amount{
    font-size:17px;
    font-weight:bold;
    color:#000;
}
.due-amount{
    color:#e53935;
    font-weight:bold;
}
/* PRODUCTS closer */
.done-products{
    background:#fff;
    margin-top:5px;
    max-height:260px;   /* 🔥 KEY FIX */
    overflow-y:auto;
    padding:8px;
}
.bill-products-header{
    display:flex;
    justify-content:space-between;  /* 🔥 KEY FIX */
    align-items:center;
    width:100%;
    padding:5px 10px;
    margin:10px 0 5px 0;
    font-size:12px;
    color:#777;
    font-weight:600;
    border-bottom:1px solid #eee;
}

/* LEFT TITLE */
.bill-products-header small:first-child{
    text-align:left;
}

/* RIGHT TITLE */
.bill-products-header small:last-child{
    text-align:right;
}

/* FOOTER */
.done-footer{
    margin-top:10px;
    background:#fff;
    padding:15px;
    border-radius:15px;
    display:flex;
    justify-content:space-between;
    font-weight:bold;
    border-top:2px solid #eee;
}
.done-btn-wrap{
    text-align:center;
    margin-top:15px;
}

.done-btn{
    background:#2563eb;
    color:#fff;
    border:none;
    padding:10px 25px;
    border-radius:25px;
    font-weight:600;
    cursor:pointer;
}
.done-item{
    display:grid;
    grid-template-columns: 1fr 100px; /* LEFT + RIGHT FIXED */
    align-items:start;
    gap:10px;
    padding:10px 0;
    border-bottom:1px solid #eee;
}

/* LEFT SIDE (PRODUCT NAME) */
.done-item span{
    font-size:13px;
    color:#333;
    flex:1;
}

.done-item strong{
    font-size:13px;
    font-weight:600;
    min-width:70px;
    text-align:right;
}
.done-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 10px;
    margin-bottom:4px;
    background:#fff;
    border-radius:8px;
    border:1px solid #f0f0f0;
    box-shadow:none;
}
.bill-divider{
    margin:15px 0;
    border-top:2px solid #ddd;
}

/* MAIN BLOCK */
.bill-summary{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:10px 5px;
}

/* LEFT NOTE */
.bill-note{
    flex:1;
    font-size:12px;
    color:#555;
}

.bill-note small{
    font-weight:600;
    display:block;
    margin-bottom:5px;
}

/* RIGHT TOTALS */
.bill-totals{
    text-align:right;
    min-width:120px;
}

.bill-totals .row{
    margin-bottom:8px;
}

.bill-totals small{
    display:block;
    font-size:12px;
    color:#333;
}

.bill-totals strong{
    font-size:14px;
}

/* RECEIVED COLOR */
#doneReceived{
    color:#16a34a;
    font-weight:bold;
}

/* TOTAL BILL */
#doneFinal{
    font-weight:bold;
}
.bill-note small{
    display:block;
    width:100%;
    text-align:center;  /* 🔥 perfect centered heading */
    margin-bottom:5px;
    left:5px;
}

/* ===================================
   MODERN BILL CARD
=================================== */

.bill-card{

    display:flex;
    align-items:center;

    gap:14px;

    width:calc(100% - 20px);

    margin:8px 10px;

    padding:12px;

    background:#fff;

    border:1px solid #ececec;

    border-radius:14px;

    box-shadow:0 2px 8px rgba(0,0,0,.06);

    cursor:pointer;

    transition:.2s;
}

.bill-card:hover{

    transform:translateY(-2px);

}

.bill-left{

    flex-shrink:0;

}

.bill-avatar{

    width:56px;

    height:56px;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}

.bill-avatar strong{

    font-size:18px;

    line-height:18px;

}

.bill-avatar small{

    font-size:10px;

    margin-top:2px;

    letter-spacing:1px;

}

.bill-middle{

    flex:1;

    display:flex;

    flex-direction:column;

    gap:8px;

}

.bill-top{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:10px;

}

.bill-customer{

    font-size:15px;

    font-weight:600;

    color:#222;

}

.bill-number{

    font-size:11px;

    color:#888;

    margin-top:2px;

}

.bill-price{

    font-size:18px;

    font-weight:700;

    color:#111;

    white-space:nowrap;

}

.bill-bottom{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.bill-due{

    font-size:13px;

    color:#e53935;

    font-weight:600;

}

.bill-icons{

    display:flex;

    align-items:center;

    gap:10px;

}

.bill-icons .material-icons{

    font-size:20px;

    cursor:pointer;

    transition:.2s;

}

.bill-icons .edit-btn{

    color:#2563eb;

}

.bill-icons .delete-btn{

    color:#e53935;

}

.bill-icons .material-icons:hover{

    transform:scale(1.15);

}



/*old css*/

/* =========================
   PAYMENT LIST
========================= */

#paymentList{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:10px;
}

/* =========================
   CARD
========================= */

#paymentList .customer-card{

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

    background:#fff;

    border-radius:14px;

    padding:14px;

    border-left:5px solid #2563eb;

    box-shadow:0 4px 14px rgba(0,0,0,.08);

    transition:.25s;

}

#paymentList .customer-card:hover{

    transform:translateY(-2px);

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

}

/* =========================
   DATE AVATAR
========================= */

.payment-avatar{

    width:58px;
    height:58px;

    min-width:58px;

    border-radius:50%;

    background:#2563eb;

    color:#fff;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

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

}

.payment-avatar-day{

    font-size:22px;

    font-weight:700;

    line-height:20px;

}

.payment-avatar-month{

    margin-top:3px;

    font-size:10px;

    font-weight:600;

    letter-spacing:1px;

    text-transform:uppercase;

}

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

.payment-content{

    flex:1;

    min-width:0;

}

/* =========================
   TOP ROW
========================= */

.customer-top{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

}

/* Customer Name */

.customer-top h3{

    flex:1;

    min-width:0;

    margin:0;

    font-size:15px;

    font-weight:600;

    color:#222;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

/* Amount */

.loan-badge{

    flex-shrink:0;

    background:#16a34a;

    color:#fff;

    padding:5px 10px;

    border-radius:20px;

    font-size:13px;

    font-weight:700;

}

/* =========================
   MIDDLE
========================= */

.customer-middle{

    margin-top:8px;

    font-size:13px;

    color:#555;

}

/* =========================
   BOTTOM ROW
========================= */

.customer-bottom{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-top:10px;

    font-size:12px;

    color:#666;

}

/* Payment Number */

.payment-number{

    font-weight:600;

    color:#444;

}

/* Date */

.payment-date{

    color:#999;

    font-size:12px;

}

/* =========================
   ACTIONS
========================= */

.payment-actions{

    display:flex;

    align-items:center;

    gap:10px;

    margin-left:10px;

}

.payment-icon{

    font-size:20px;

    cursor:pointer;

    color:#2563eb;

    transition:.2s;

}

.payment-icon:hover{

    transform:scale(1.15);

}

.payment-icon.delete{

    color:#e53935;

}