#createBillScreen {
    position: relative; 
    z-index: 1;
    padding-top: 5px; /* topbar + step-bar height ka total */
}

.step-bar {
    position: absolute; 
    top: -50px; /* adjust according to your topbar height */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px;     
    z-index: 1; 
    
}
/* Connectors */
.step-bar::before {
    content: "";
    position: absolute;
    top: 20px; /* middle of circle */
    left: 10%;
    right: 10%;
    height: 3px;
    background: #ccc;
    z-index: 0;
}

/* STEP */
.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    line-height: 36px;
    font-weight: bold;
    margin: 0 auto 5px auto;
}

/* Active step */
.step.active .circle {
    background: #1565c0;
}

/* Completed steps */
.step.completed .circle {
    background: #1565c0;
    content: "✓";
}

/* Step label */
.step small {
    display: block;
    font-size: 12px;
    color: #555;
}

/* BUTTONS */
.step-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.step-actions button {
    background: #1565c0;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    min-width: 110px;
}

/* ===== VIDEO FORMAT SECTION (UPDATED) ===== */

.video-format-section {
    margin-top: 20px;
    padding: 10px;
}

/* ===== HEADER WITH ICON ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* ===== CARDS CONTAINER ===== */
.format-cards {
    display: flex;
    gap: 10px;
}

/* ===== LANDSCAPE CARD ===== */
.format-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 10px;
    height: 70px; /* 🔥 half height landscape */
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

/* Active (Yellow style) */
.format-card.active {
    background: #fbc02d;
    border-color: #f9a825;
}

/* Icon (left side) */
.format-card .icon {
    font-size: 22px;
}

/* Text container */
.format-card .text {
    display: flex;
    flex-direction: column;
}

/* Title */
.format-card h5 {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
}

/* Subtitle */
.format-card p {
    margin: 0;
    font-size: 11px;
    color: #555;
}

/* Hover */
.format-card:hover {
    transform: translateY(-2px);
}

/* ===== BUTTON ===== */
.format-next-btn {
    margin-top: 14px;
    width: 100%;
    padding: 10px;
    background: #009F1E;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* ===== CUSTOMER DROPDOWN ===== */

/* BILL CUSTOMER DROPDOWN */
#billCustomerList .customer-card{
    background:#fff;
    display:flex;
    align-items:center;
    padding:10px;
    border-radius:12px;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
    margin-bottom:8px;
    cursor:pointer;
    transition:0.3s;
}

#billCustomerList .customer-avatar{
    background:#1565c0;
    color:#fff;
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    margin-right:10px;
}

#billCustomerList .customer-info{
    flex:1;
    display:flex;
    align-items:center;
}

#billCustomerList .customer-name{
    font-weight:bold;
    line-height:1.2;
    margin:0;
}

/* Hover Effect */
#billCustomerList .customer-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
#billCustomerSearch{
    width:100%;
    padding:8px 40px 8px 15px;
    border-radius:25px;
    border:1px solid #ccc;
    border-bottom:3px solid #1565c0;
    outline:none;
    box-sizing:border-box;
    margin-bottom:10px;
    position:relative;
}

.customer-dropdown{
    position: fixed; /* popup style */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;          /* responsive */
    max-width: 400px;    
    max-height: 400px;
    border-radius: 15%;   /* ✅ 15% radius */
    background:#fff;
    padding: 15px;
    box-shadow:0 6px 20px rgba(0,0,0,0.2);
    overflow-y:auto;
    z-index: 9999;        /* above everything */
    display: none;        /* initially hidden */

}
/*===============================
step-2 css
=============================*/
#billProductSearch{
    width:100%;
    padding:10px;
    border-radius:25px;
    border:1px solid #ccc;
    border-bottom:3px solid #1565c0;
    margin-bottom:10px;
}

/* PRODUCT CARD */
.bill-product-card{
    display:flex;
    align-items:flex-start; /* 🔥 center نہیں، start */
    gap:10px;
    background:#fff;
    padding:10px;
    border-radius:12px;
    margin-bottom:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
}
.bill-product-img{
    width:50px;
    height:50px;
    background:#f5f5f5;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.bill-product-img{
    width:50px;
    height:50px;
    min-width:50px;   /* 🔥 IMPORTANT */
    background:#f5f5f5;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.bill-product-right{
    flex:1;
    display:flex;
    flex-direction:column;
    width:100%; /* 🔥 important */
}
.bill-product-left{
    flex-shrink:0; /* 🔥 image squeeze نہ ہو */
}
.bill-product-name{
    font-weight:bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.bill-product-price{
    color:#1565c0;
    font-size:14px;
    font-weight:bold;
}
/* =========================
   ADD TO CART BUTTON
========================= */
.bill-add-to-cart{
    margin-top:8px;
    padding:8px;
    width:100%; /* 🔥 ALWAYS FULL WIDTH */
    background:#009F1E;
    color:#fff;
    border:none;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
}
.bill-add-to-cart:hover {
    background-color: #007b15;
    transform: translateY(-2px);
}

/* =========================
   STOCK INFO
========================= */
.product-stock {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.product-stock.low {
    color: #d32f2f; /* low stock red */
    font-weight: bold;
}

.product-stock.in-stock {
    color: #1565c0; /* blue for available */
}
    

/* STEP 2 FULL HEIGHT FIX */
#step2Content{
    flex:1;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}
/* 🔒 FIXED TOP */
.bill-product-fixed{
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    padding-bottom: 5px;
}

/* 🔍 SEARCH BOX */
#billProductSearch{
    width:100%;
    padding:10px;
    border-radius:25px;
    border:1px solid #ccc;
    border-bottom:3px solid #1565c0;
}

/* 📦 ONLY THIS SCROLLS */
.bill-product-scroll{
    flex:1;
    overflow-y:auto;
    margin-top:10px;
    padding-right:5px;
}
/* ===== CART BAR ===== */
.bill-cart-bar .cart-left {
    font-weight: bold;
}

.bill-cart-bar .cart-right {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.bill-cart-qty {
    background: red;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -10px;
}

/* ===== CART POPUP CONTAINER ===== */

/* Scrollable items area */
.bill-cart-items {
    flex: 1 1 auto;     
    overflow-y: auto;    
    min-height: 0;         
    padding: 10px;
    box-sizing: border-box;
}

/* ===== ITEM CARD ===== */
.bill-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 8px;
}



/* RIGHT SIDE INFO */
.bill-cart-item-info {
    display: flex;
    flex-direction: column; /* column layout */
    justify-content: flex-start;
    gap: 4px;
    flex: 1;
}


/* QTY CONTROLS */
.bill-cart-qty-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.item-img-box .material-icons {
    font-size: 24px;
}

/* REMOVE ICON */
.bill-cart-remove {
    color: red;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

/* ===== FOOTER ===== */
.bill-cart-footer {
    flex-shrink: 0;
    padding: 12px;
    border-top: 2px solid #f9a825;
    background-color: #f9a825; /* same as header */
    color: #fff;               /* text white like header */
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;                  /* fix footer */
    z-index: 20;
}

/* TOTAL */
.bill-cart-total {
    font-weight: bold;
    font-size: 16px;
}