/*
|--------------------------------------------------------------------------
| REMOVE THEME WRAPPER ISSUES
|--------------------------------------------------------------------------
*/

body.page .site,
body.page .site-content,
body.page .content-area,
body.page .entry-content,
body.page .site-main,
body.page .container,
body.page .ast-container{

    max-width:100% !important;

    width:100% !important;

    margin:0 !important;

    padding:0 !important;

    background:transparent !important;

    box-shadow:none !important;

}

/*
|--------------------------------------------------------------------------
| MAIN WRAPPER
|--------------------------------------------------------------------------
*/

.wm-wrapper{

    width:100%;

    max-width:1200px;

    margin:10px auto;

    padding:15px;

    background:#fff;

    border-radius:8px;

    box-sizing:border-box;

}

/*
|--------------------------------------------------------------------------
| TABS
|--------------------------------------------------------------------------
*/

.wm-tabs{

    display:flex;

    flex-wrap:nowrap;

    gap:10px;

    margin-bottom:20px;

    overflow-x:auto;

}

.wm-tab-btn{

    background:#2271b1;

    color:#fff;

    border:none;

    padding:10px 16px;

    border-radius:6px;

    cursor:pointer;

    white-space:nowrap;

    font-size:14px;

    flex:none;

}

.wm-tab-btn.active{

    background:#135e96;

}

/*
|--------------------------------------------------------------------------
| TAB CONTENT
|--------------------------------------------------------------------------
*/

.wm-tab-content{

    display:none;

}

.wm-tab-content.active{

    display:block;

}

/*
|--------------------------------------------------------------------------
| GRID
|--------------------------------------------------------------------------
*/

.wm-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

/*
|--------------------------------------------------------------------------
| FIELD
|--------------------------------------------------------------------------
*/

.wm-field{

    display:flex;

    flex-direction:column;

}

.wm-full{

    grid-column:1 / -1;

}

.wm-field label{

    margin-bottom:6px;

    font-size:14px;

    font-weight:600;

}

/*
|--------------------------------------------------------------------------
| INPUTS
|--------------------------------------------------------------------------
*/

.wm-field input,
.wm-field select,
.wm-field textarea{

    width:100%;

    padding:10px;

    border:1px solid #dcdcdc;

    border-radius:6px;

    font-size:14px;

    box-sizing:border-box;

    background:#fff;

}

.wm-field textarea{

    min-height:90px;

    resize:vertical;

}

/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.wm-btn{

    background:#2271b1;

    color:#fff;

    border:none;

    padding:12px 18px;

    border-radius:6px;

    cursor:pointer;

    font-size:14px;

}

.wm-btn:hover{

    background:#135e96;

}

/*
|--------------------------------------------------------------------------
| SEARCH ROW
|--------------------------------------------------------------------------
*/

.wm-search-row{

    display:flex;

    gap:10px;

    margin-bottom:20px;

}

.wm-search-row input{

    flex:1;

    padding:10px;

    border:1px solid #dcdcdc;

    border-radius:6px;

}

/*
|--------------------------------------------------------------------------
| WORKORDER BOX
|--------------------------------------------------------------------------
*/

.wm-workorder-box{

    background:#f7f7f7;

    border:1px solid #ddd;

    border-radius:6px;

    padding:15px;

    margin-bottom:20px;

}

.wm-workorder-box p{

    margin:5px 0;

}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:768px){

    .wm-grid{

        grid-template-columns:1fr;

    }

    .wm-search-row{

        flex-direction:column;

    }

}

/* Return-entry SKU/quantity grid */
.wm-return-table-wrap{
    overflow-x:auto;
    margin-top:15px;
}

.wm-return-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.wm-return-table th,
.wm-return-table td{
    border:1px solid #ddd;
    padding:9px;
    text-align:left;
    vertical-align:middle;
}

.wm-return-table th{
    background:#f1f3f5;
    font-weight:600;
}

.wm-return-table input{
    width:100%;
    min-width:110px;
    box-sizing:border-box;
    padding:8px;
    border:1px solid #dcdcdc;
    border-radius:5px;
}

.wm-return-table .wm-return-sku{
    background:#f3f3f3;
    color:#333;
    font-weight:600;
}

.wm-return-table .wm-return-qty{
    background:#fff;
}

.wm-return-help{
    color:#666;
    font-size:13px;
    margin-top:10px;
}

/* Due Amount is calculated by the system and cannot be edited. */
#due_amount,
#due_amount:focus,
#due_amount:hover{
    background:#eeeeee !important;
    color:#555 !important;
    border-color:#cfcfcf !important;
    cursor:not-allowed;
    box-shadow:none;
}


/* Cutting Lot is available only for Tailoring/Nighty Stitching handovers. */
.cutting-lot-wrap.wm-cutting-lot-disabled {
    opacity: 0.55;
}
.cutting-lot-wrap.wm-cutting-lot-disabled input,
.cutting-lot-wrap.wm-cutting-lot-disabled select {
    background: #eeeeee !important;
    color: #777 !important;
    cursor: not-allowed;
}
