.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; /* or normal spacing */
}
.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{
    text-align:left;

    /* PERFECT WRAP CONTROL */
    white-space:normal;
    word-break:break-word;
    overflow-wrap:break-word;

    font-size:14px;
    color:#333;
}

/* RIGHT SIDE (AMOUNT) */
.done-item strong{
    text-align:right;
    font-size:14px;
    font-weight:600;
    color:#111;

    justify-self:end;
}
.done-item{
    display:grid;
    grid-template-columns: 1fr 120px;
    gap:15px;
    padding:10px 12px;
    margin-bottom:6px;
    background:#fafafa;
    border-radius:10px;
}
.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;
}

/*defual bill card*/
.bill-card{
    display:block;
    background:#fff;
    margin:10px;
    padding:12px;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.bill-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.bill-body{
    margin-top:10px;
}

.bill-row{
    display:flex;
    justify-content:space-between;
    padding:4px 0;
}

.bill-row.due strong{
    color:red;
}

.bill-actions{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.edit-btn{
    flex:1;
    padding:8px;
    background:#2196f3;
    color:#fff;
    border:none;
    border-radius:6px;
}

.delete-btn{
    flex:1;
    padding:8px;
    background:#f44336;
    color:#fff;
    border:none;
    border-radius:6px;
}