/*-------------pos-----------------*/
.pos_body {
    width: 100%;
    min-height: calc(100vh - 50px);
    padding: 8px;
    background: #f4f6f8;
    position: relative;
    overflow-x: hidden;
}
.poscard {
    background: #fff;
    padding: 12px;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.pos-layout {
    min-height: calc(100vh - 88px);
    margin-left: 0;
    margin-right: 0;
}
.additions_customers label,
.pos-cart-card label {
    color: #4f5b67;
    font-weight: 600;
    font-size: 12px;
}
.pos-catalog-card {
    padding: 10px;
}
.pos-kpi-strip {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    width: 100%;
}
.pos-kpi-strip span {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e4e8ee;
    border-radius: 7px;
    color: #667085;
    font-size: 12px;
}
.pos-kpi-strip strong {
    color: #111827;
    font-size: 13px;
}
.fill-height-auto {
    height: calc(100vh - 202px);
    overflow: auto;
    padding: 2px;
}
.p_box {
    width: 100%;
    min-height: 174px;
    border: 1px solid #d7dee6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding: 8px;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.p_box img {
    width: 100%;
    height: 72px;
    object-fit: contain;
    margin: 14px 0 8px;
}
.pstock {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #146c43;
    color: #fff;
    padding: 2px 7px;
    font-size: 11px;
    border-radius: 999px;
    user-select: none;
}
.pos-product-code {
    position: absolute;
    top: 6px;
    right: 6px;
    max-width: 48%;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pname {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    width: 100%;
    min-height: 32px;
    line-height: 16px;
    overflow: hidden;
    user-select: none;
}
.pos-product-meta {
    color: #667085;
    display: block;
    font-size: 11px;
    line-height: 14px;
    text-align: center;
    min-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pprice {
    text-align: center;
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f7a42;
    margin-top: auto;
    user-select: none;
}
.p_box:focus,
.p_box:hover {
    border-color: var(--color1);
    box-shadow: 0 8px 22px rgba(103, 58, 183, .16);
    transform: translateY(-1px);
}
.p_box.stockout {
    background: #fff5f5;
    border-color: #f0b8b8;
    cursor: not-allowed;
}
.p_box.stockout .pprice,
.p_box.stockout .pos-product-meta {
    color: #b42318;
}
.p_box.stockout .pstock {
    background: #c92a2a;
}
.pos-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
    color: #667085;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}
.pos-cart-card {
    height: calc(100vh - 186px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pos-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pos-cart-header h5 {
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}
.pos-cart-header small {
    color: #64748b;
}
.cart_dtls {
    overflow: auto;
    position: relative;
    min-height: 160px;
    flex: 1;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
}
.cart_dtls .table {
    font-size: 12px;
    vertical-align: middle;
}
.cart_dtls .table thead {
    position: sticky;
    top: -1px;
    z-index: 1;
    left: 0;
}
.pos-cart-table td,
.pos-cart-table th {
    padding: 7px;
}
.pos-cart-product {
    min-width: 132px;
}
.pos-cart-product strong {
    display: block;
    color: #111827;
    line-height: 16px;
}
.pos-cart-product small {
    display: block;
    color: #64748b;
    margin-top: 2px;
}
.qtySelector {
    border: 1px solid var(--color1);
    width: 96px;
    height: 28px;
    margin: auto;
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.qtySelector button {
    width: 30px;
    height: 100%;
    cursor: pointer;
    font-size: 11px;
    background: var(--color1);
    color: #fff;
    border: 0;
}
.qtySelector .qtyValue {
    border: none;
    padding: 3px;
    width: 36px;
    height: 100%;
    text-align: center;
    background: #fff;
}
.priceinp {
    width: 82px;
    border: 1px solid #cbd5e1;
    padding: 3px 5px;
    border-radius: 6px;
    background: #fff;
}
.cart_dtls .table>tbody>tr:nth-of-type(odd) {
    background-color: #fbfdff;
}
.cart_dtls .table>tbody>tr>td .btn {
    padding: 3px 6px;
}
.pos-total-box {
        display: grid;
    gap: 6px;
    padding: 5px;
    background: #f8fafc;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pos-total-box>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #475467;
}
.pos-total-box strong {
    color: #111827;
}
.pos-total-box input {
    max-width: 132px;
}
.pos-total-box .grand {
        padding-top: 0;
    margin-top: 0;
    color: #000000;
    font-size: 14px;
}
.pos_buttons {
    padding: 12px;
    margin-top: 8px;
}
.pos_buttons label {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}
.pos_buttons h6 {
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}
.pos_buttons .btn-group {
    width: 100%;
}
.pos_buttons .btn {
    min-height: 38px;
}
.pos-cart-mobile-btn {
    width: 100%;
}
.cursor-pointer {
    cursor: pointer;
}
.back_pos {
    display: none;
}
.swal-icon:first-child {
    margin-top: 32px;
}
.swal-icon {
    width: 80px;
    height: 80px;
    border-width: 4px;
    border-style: solid;
    border-radius: 50%;
    padding: 0;
    position: relative;
    box-sizing: content-box;
    margin: 20px auto;
}
.swal-icon--warning {
    border-color: #f8bb86;
}
.swal-icon--warning__body,
.swal-icon--warning__dot {
    position: absolute;
    left: 50%;
    background-color: #f8bb86;
}
.swal-icon--warning__body {
    width: 5px;
    height: 47px;
    top: 10px;
    border-radius: 2px;
    margin-left: -2px;
}
.swal-icon--warning__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: -4px;
    bottom: -11px;
}
.holdrefmodal h3 {
    font-size: 21px;
}
.holdrefmodal .form-control {
    max-width: 280px;
    margin: auto;
    height: 40px;
}
@media screen and (max-width: 1199px) {
    .pos-layout {
                min-height: 100%;
        display: flex;
        flex-direction: column;
    }
    .pos-cart-card {
        height: auto;
        min-height: 420px;
    }
    .fill-height-auto {
        height: calc(100vh - 295px);
    }
    .pos_buttons {
        padding-right: 10px;
    }
}
@media only screen and (max-width: 576px) {
    .pos_body {
        padding: 6px;
        /* min-height: calc(100vh - 56px); */
        min-height: 100%;
    }
    .pos-kpi-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .pos-kpi-strip span {
        padding: 3px 4px;
        font-size: 10px;
    }
    .pos-kpi-strip strong {
        font-size: 10px;
    }
    .p_box {
        min-height: 142px;
        padding: 7px;
    }
    .pname {
        font-size: 11px;
        min-height: 28px;
        line-height: 14px;
    }
    .pprice {
        font-size: 12px;
    }
    .p_box img {
        height: 54px;
        margin-top: 12px;
    }
    .pstock,
    .pos-product-code,
    .pos-product-meta {
        font-size: 9px;
    }
    .pos_body .select2-container--classic .select2-selection--single .select2-selection__rendered {
        line-height: 22px;
        font-size: 11px;
    }
    .pos_body .select2-container--classic .select2-selection--single .select2-selection__arrow {
        height: 22px !important;
    }
    .pos_body .select2-container .select2-selection--single {
        height: 24px !important;
    }
    .pos_body .input-group .btn {
        position: relative;
        z-index: 2;
        padding: 2px 6px;
    }
    .pos_body .form-control {
        padding: .175rem .55rem;
        font-size: 1rem;
    }
    .fill-height-auto {
        height: calc(100vh - 358px);
        min-height: 245px;
        background: #ededed;
    }
    .pos_buttons {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 20;
        margin-top: 0;
    }
    .responsive_cart_list {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 100;
        transform: translate(101%, 0);
        transition: all 0.3s;
    }
    .responsive_cart_list.open {
        transform: translate(0, 0);
    }
    .pos-cart-card {
        height: 100vh;
        border-radius: 0;
    }
    .cart_dtls {
        height: auto;
        min-height: 180px;
    }
    .back_pos {
        display: inline-block;
    }
    .pos_buttons label {
        font-size: 11px;
    }
    .pos_buttons h6 {
        font-size: 14px;
    }
    .pos_buttons .btn {
        padding: 6px !important;
    }
    .select2-dropdown {
        border-radius: 0 !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1051;
        bottom: 0 !important;
        max-height: 240px;
        box-shadow: 0 0 20px #0000007a;
    }
}
