
/* Show sub-menu when parent has 'open' class */
#side-nav ul li.open > .sub-menu {
    display: block;
}

/* SCREEN */

#salesOrdersScreen{
    width:100%;
    padding:0;
    margin:0;
}

/* ==================================================
   SUMMARY CARDS
================================================== */

.msoSummaryWrap{

    display:grid;

    grid-template-columns:
    repeat(4,minmax(0,1fr));

    gap:6px;

    padding:6px 3px;

    width:100%;
    box-sizing:border-box;
}

.msoCard{

    background:#fff;

    border-radius:10px;

    padding:8px 4px;

    text-align:center;

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

    border:1px solid #f1f1f1;
}

.msoCard span{

    display:block;

    font-size:16px;

    font-weight:700;

    color:#1565c0;

    line-height:1.2;
}

.msoCard small{

    display:block;

    margin-top:2px;

    font-size:10px;

    font-weight:600;

    color:#666;

    line-height:1.2;
}

/* ==================================================
   FILTER TABS
================================================== */

.msoTabsWrap{

    display:flex;

    gap:6px;

    overflow-x:auto;

    padding:0 3px 8px;

    scrollbar-width:none;
}

.msoTabsWrap::-webkit-scrollbar{
    display:none;
}

.msoTab{

    flex-shrink:0;

    background:#fff;

    border:1px solid #e9e9e9;

    border-radius:999px;

    padding:8px 12px;

    font-size:11px;

    font-weight:700;

    color:#666;

    cursor:pointer;

    transition:.25s;
}

.msoTab.active{

    background:#1565c0;

    color:#fff;

    border-color:#1565c0;
}

/* ==================================================
   ORDER LIST
================================================== */

#sales-orders-content{

    display:flex;

    flex-direction:column;

    gap:8px;

    padding:0 3px 12px;

    width:100%;

    box-sizing:border-box;
}

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

.sale-block{

    width:100%;

    background:#fff;

    border-radius:14px;

    padding:12px;

    box-sizing:border-box;

    border:1px solid #f0f0f0;

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

    transition:.25s;
}

.sale-block:active{

    transform:scale(.99);
}

.sale-avatar{

    width:42px;

    height:42px;

    min-width:42px;

    border-radius:50%;

    background:#1565c0;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:15px;

    font-weight:700;

    margin-right:10px;
}

.sale-info{

    flex:1;
}

.sale-info h3{

    margin:0;

    font-size:13px;

    font-weight:700;

    line-height:1.4;

    color:#222;
}

.sale-info p{

    margin:2px 0;

    font-size:11px;

    color:#666;
}

.sale-view{

    width:34px;

    height:34px;

    border-radius:50%;

    background:#f5f5f5;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    font-size:16px;
}

/* ==================================================
   STATUS BADGES
================================================== */

.orderBadge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:4px 10px;

    border-radius:999px;

    margin-left:5px;

    font-size:10px;

    font-weight:700;

    text-transform:capitalize;
}

.orderBadge.pending{

    background:#fff3cd;
    color:#856404;
}

.orderBadge.confirmed{

    background:#d4edda;
    color:#155724;
}

.orderBadge.processing{

    background:#d1ecf1;
    color:#0c5460;
}

.orderBadge.delivered{

    background:#d4f8e8;
    color:#0f7a4b;
}

.orderBadge.cancelled{

    background:#ffe1e1;
    color:#d10000;
}

/* ==================================================
   REWARD TAG
================================================== */

.rewardUsedTag{

    display:inline-block;

    margin-top:4px;

    background:#fff7d6;

    color:#9b7200;

    border-radius:8px;

    padding:4px 8px;

    font-size:10px;

    font-weight:700;
}

/* ==================================================
   POPUP OVERLAY
================================================== */

.sale-order-modal-overlay{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    z-index:99999;

    background:rgba(0,0,0,.55);

    display:flex;

    justify-content:center;

    align-items:center;

    padding:10px;

    box-sizing:border-box;
}

/* ==================================================
   POPUP WIDTH INCREASED
================================================== */

.sale-order-modal{

    width:100%;

    max-width:700px;

    max-height:92vh;

    overflow-y:auto;

    background:#fff;

    border-radius:18px;

    padding:18px;

    box-sizing:border-box;

    position:relative;

    box-shadow:
    0 10px 30px rgba(0,0,0,.18);
}

.close-btn{

    position:absolute;

    right:14px;

    top:14px;

    font-size:18px;

    cursor:pointer;
}

/* ==================================================
   PRODUCT CARDS
================================================== */

.product-card{

    background:#fff;

    border:1px solid #e9edf5;

    border-radius:14px;

    padding:10px;

    margin-bottom:2px;
}

.product-card h4{

    margin:0 0 10px;

    color:#222;

    font-size:14px;

    font-weight:700;
}

.product-meta{

    display:flex;

    gap:10px;
}

.qty-box,
.price-box{

    background:#1B5E20;

    color:#fff;

    border:1px solid #dbe3f0;

    border-radius:10px;

    padding:8px 10px;

    font-size:11px;

    font-weight:700;

    min-width:80px;

    text-align:center;
}
/* ==================================================
   STATUS FIELD
================================================== */

.statusField{

    margin:15px 0;
}

.statusField label{

    display:block;

    margin-bottom:6px;

    font-size:12px;

    font-weight:700;
}

.statusField select{

    width:100%;

    height:44px;

    border-radius:12px;

    border:1px solid #ddd;

    padding:0 12px;

    outline:none;

    font-size:13px;

    font-weight:600;
}

/* ==================================================
   RECEIPT
================================================== */

.orderReceiptBox{

    background:#fafafa;

    border-radius:12px;

    padding:12px;

    margin-top:10px;
}

.receiptRow{

    display:flex;

    justify-content:space-between;

    margin-bottom:8px;

    font-size:13px;
}

.finalRow{

    font-size:15px;

    font-weight:700;

    color:#1565c0;
}

.rewardRow{

    color:#e67e22;

    font-weight:700;
}

/* ==================================================
   CANCELLED BOX
================================================== */

.cancelledOrderBox{

    background:#fff0f0;

    border:1px solid #ffd6d6;

    color:#d10000;

    border-radius:12px;

    padding:14px;

    text-align:center;

    font-size:14px;

    font-weight:700;

    margin:12px 0;
}

/* ==================================================
   MOBILE
================================================== */

@media(max-width:480px){

    .msoSummaryWrap{

        grid-template-columns:
        repeat(4,minmax(0,1fr));
    }

    .msoCard{

        padding:7px 3px;
    }

    .msoCard span{

        font-size:14px;
    }

    .msoCard small{

        font-size:9px;
    }

    .sale-order-modal{

        max-width:100%;
    }
}

/*================================Old steup all css 
=============================*/



