.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 COMPACT BILL CARD
=============================== */

.bill-card{
    display:flex;
    flex-direction:column;
    background:#fff;
    margin:8px 10px;
    padding:10px;
    border-radius:10px;

    border:1px solid #f0f0f0;

    box-shadow:0 1px 4px rgba(0,0,0,0.06);

    transition:0.2s ease;
}

.bill-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 10px rgba(0,0,0,0.10);
}

/* ===============================
   HEADER (NAME + DATE)
=============================== */

.bill-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:6px;
    gap:10px;
}

.bill-customer{
    font-size:14px;
    font-weight:600;
    color:#222;
    flex:1;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.bill-header small{
    font-size:11px;
    color:#888;
    white-space:nowrap;
}

/* ===============================
   BODY (TOTAL + DUE)
=============================== */

.bill-body{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-top:4px;
}

.bill-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    padding:2px 0;
}

.bill-row span{
    color:#666;
    font-size:12px;
}

.bill-row strong{
    font-size:13px;
    font-weight:600;
    color:#111;
}

/* Due highlight */
.bill-row.due strong{
    color:#e53935;
}

/* ===============================
   ACTION BUTTONS (COMPACT)
=============================== */

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

/* EDIT BUTTON */
.bill-actions .edit-btn{
    flex:1;
    padding:7px 0;
    background:#2196f3;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
}

/* DELETE BUTTON */
.bill-actions .delete-btn{
    flex:1;
    padding:7px 0;
    background:#f44336;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
}

/* hover effects */
.bill-actions .edit-btn:hover{
    background:#1976d2;
}

.bill-actions .delete-btn:hover{
    background:#d32f2f;
}