#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;
}

/*===============================
Temporary New bill Screen
===============================*/
/* =========================
   NEW BILL SCREEN
========================= */

#newBillScreen{
    padding:15px;
}

.new-bill-card{

    background:#fff;

    border-radius:18px;

    padding:18px;

    margin-top:10px;

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

    border:1px solid #ececec;
}

.new-bill-header{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:20px;
}

.new-bill-icon{

    width:50px;
    height:50px;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        #8e24aa,
        #ab47bc
    );

    color:#fff;

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

    font-size:24px;
}

.new-bill-title h3{

    margin:0;

    font-size:18px;

    color:#222;
}

.new-bill-title p{

    margin:3px 0 0;

    font-size:12px;

    color:#777;
}

.new-bill-save{

    margin-top:15px;

    background:linear-gradient(
        135deg,
        #8e24aa,
        #ab47bc
    ) !important;

    border:none;

    border-radius:12px;

    padding:12px;

    font-weight:600;
}
/* =========================
TODAY SALES LIST
========================= */

.sale-card{

    background:#fff;

    border-radius:16px;

    padding:16px;

    margin-bottom:12px;

    box-shadow:
    0 2px 10px rgba(0,0,0,.08);

}

.sale-card-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.sale-customer{

    font-size:16px;

    font-weight:700;

    color:#222;

}

.sale-date{

    font-size:12px;

    color:#777;

    margin-top:4px;

}

.sale-tag{

    background:#e8f5e9;

    color:#009f1e;

    font-size:11px;

    font-weight:700;

    padding:6px 12px;

    border-radius:30px;

}

.sale-card-bottom{

    margin-top:15px;

    padding-top:12px;

    border-top:1px solid #eee;

}

.sale-amount-label{

    font-size:12px;

    color:#777;

}

.sale-amount{

    font-size:22px;

    font-weight:700;

    color:#009f1e;

    margin-top:4px;

}

.empty-bill{

    text-align:center;

    padding:40px 20px;

    color:#777;

    font-size:14px;

}
/* ===== BILL CREATE CUSTOMER / PRODUCT TOOLBAR ===== */
.bill-customer-panel{padding:12px;}
.bill-customer-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:14px;box-shadow:0 3px 12px rgba(0,0,0,.06);}
.bill-customer-avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1565c0;color:#fff;font-weight:800;font-size:20px;flex:0 0 48px;}
.bill-customer-main{min-width:0;flex:1;}
.bill-customer-label{font-size:10px;color:#999;text-transform:uppercase;letter-spacing:.5px;}
.bill-customer-name{font-size:16px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bill-customer-receivable{font-size:11px;color:#777;margin-top:3px;}
.bill-customer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;}
.customer-action-btn{border:0;border-radius:10px;padding:10px;font-weight:700;cursor:pointer;}
.customer-action-btn.choose{background:#1565c0;color:#fff;}
.customer-action-btn.add{background:#f2f7ff;color:#1565c0;}
.customer-inline-list{margin-top:10px;background:#fff;border:1px solid #eee;border-radius:14px;padding:10px;max-height:360px;overflow:auto;}
.customer-search-wrap{position:sticky;top:0;background:#fff;padding-bottom:8px;z-index:2;}
#billCustomerSearch{margin:0;}
#billCustomerList .customer-card{display:flex;align-items:center;padding:9px;border-radius:11px;margin-bottom:6px;cursor:pointer;}
#billCustomerList .customer-card.active{background:#eef6ff;}
#billCustomerList .customer-balance{font-size:10px;color:#888;margin-top:2px;}
.bill-product-search-wrap{position:relative;display:flex;align-items:center;}
.bill-product-search-wrap #billProductSearch{padding-right:44px;}
.bill-filter-mini{position:absolute;right:6px;width:32px;height:28px;border:0;border-radius:8px;background:#f1f5f9;color:#1565c0;font-weight:800;cursor:pointer;}
.bill-product-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 0 4px;}
.bill-tool-add,.bill-tool-filter{border:0;background:transparent;text-align:center;padding:7px 4px;font-size:12px;font-weight:700;cursor:pointer;border-radius:8px;}
.bill-tool-add{color:#1565c0;}
.bill-tool-filter{color:#64748b;}
.bill-filter-menu{background:#fff;border:1px solid #eee;border-radius:11px;padding:5px;box-shadow:0 6px 18px rgba(0,0,0,.12);margin-bottom:8px;}
.bill-filter-menu button{display:block;width:100%;border:0;background:#fff;text-align:left;padding:9px 10px;border-radius:8px;font-size:12px;cursor:pointer;}
.bill-filter-menu button:hover{background:#f5f5f5;}
.bill-cart-action-row{display:flex;align-items:center;gap:6px;margin-top:5px;}
.bill-cart-action-row .bill-add-to-cart{flex:1;}
.bill-cart-mini{position:relative;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;color:#1565c0;}
.bill-cart-mini .material-icons{font-size:22px;}
.bill-cart-mini b{position:absolute;right:-2px;top:-5px;min-width:15px;height:15px;padding:0 3px;border-radius:9px;background:#e53935;color:#fff;font-size:9px;line-height:15px;text-align:center;}


/* ===== BILL STEP 1: FULL INLINE CUSTOMER PICKER ===== */
#step1Content .bill-customer-panel{width:100%;}
#customerDropdown.customer-inline-list{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important;z-index:2!important;margin-top:12px;}
#customerDropdown .customer-search-wrap{position:sticky;top:0;z-index:3;background:#fff;padding:4px 0 10px;}
#customerDropdown #billCustomerList{max-height:none!important;overflow:visible!important;padding-bottom:16px;}
#billCustomerList .customer-card{min-height:58px;border:1px solid #edf0f4;margin-bottom:8px;box-sizing:border-box;}
#billCustomerList .customer-card.active{border-color:#1565c0;box-shadow:0 0 0 2px rgba(21,101,192,.10);}
#billCustomerSearch{margin-bottom:0!important;background:#fff;}

/* ===== BILL STEP 2 SEARCH / FILTER ===== */
.bill-product-tools{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;align-items:center;margin-top:2px;}
.bill-tool-add,.bill-tool-filter{min-height:38px;border-radius:10px!important;font-size:12px!important;font-weight:700;cursor:pointer;}
.bill-tool-filter{color:#1565c0!important;background:#f5f8ff!important;border:1px solid #d7e3ff!important;}
.bill-filter-menu{position:relative!important;top:auto!important;right:auto!important;z-index:20!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:12px!important;box-shadow:0 8px 24px rgba(0,0,0,.12)!important;margin:7px 0!important;padding:6px!important;}
.bill-filter-menu button{display:block;width:100%;text-align:left;padding:10px 12px;border:0;border-radius:8px;background:#fff;color:#222!important;font-size:12px;font-weight:600;}
.bill-filter-menu button:hover{background:#f3f6fb;color:#1565c0!important;}
.bill-no-products{padding:35px 15px;text-align:center;color:#777;display:flex;flex-direction:column;align-items:center;gap:6px;}
.bill-no-products .material-icons{font-size:32px;color:#aaa;}
.bill-no-products strong{font-size:14px;color:#444;}
.bill-no-products small{font-size:11px;color:#999;}
