body.app-shell--pos .content {
    padding-top: 18px;
}

.app-pos-content {
    padding-bottom: 18px;
}

.app-pos-layout {
    display: block;
}

.app-pos-stage {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.app-pos-stage__main,
.app-pos-stage__sidebar {
    min-width: 0;
}

.app-pos-stage__main {
    flex: 1 1 60%;
}

.app-pos-stage__sidebar {
    flex: 1 1 40%;
}

@media (min-width: 1200px) {
    .app-pos-stage {
        flex-wrap: nowrap;
        gap: 14px;
    }

    .app-pos-stage__sidebar {
        order: 1;
        flex: 0 0 40%;
        width: 40% !important;
        max-width: 40%;
    }

    .app-pos-stage__main {
        order: 2;
        flex: 1 1 0;
        width: auto !important;
        max-width: none;
    }

    .app-pos-stage__sidebar .product_list {
        margin-bottom: 10px;
    }

    .app-pos-stage__sidebar .product_box {
        border-radius: 14px;
    }

    .app-pos-stage__sidebar .product_box .image-container {
        height: 92px;
        margin: 8px 8px 0;
        border-radius: 12px;
    }

    .app-pos-stage__sidebar .product_box .text_div {
        padding: 8px 10px 10px;
    }

    .app-pos-stage__sidebar .product_box .text {
        font-size: 12px;
        line-height: 1.3;
    }
}

.app-pos-stage__surface {
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--app-shadow-sm);
    overflow: hidden;
}

.app-pos-header .app-pos-header__panel,
.app-pos-header > div > div {
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--app-shadow-xs) !important;
}

.app-pos-header .app-pos-header__location {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-pos-header .app-pos-header__location-select {
    min-width: 180px;
    flex: 0 0 180px;
}

.app-pos-header .curr_datetime {
    font-family: var(--app-font-sans);
    letter-spacing: 0;
}

.app-pos-header #select_location_id,
.app-pos-header .app-pos-header__actions select {
    min-width: 180px;
}

.app-pos-header .app-pos-header__actions > a,
.app-pos-header .app-pos-header__actions > button,
.app-pos-header .app-pos-header__actions > span > i,
.app-pos-header .app-pos-header__actions > div > a,
.app-pos-header .app-pos-header__actions > div > button {
    min-height: 42px;
    border-radius: 14px !important;
}

.app-pos-header .app-pos-header__actions > a,
.app-pos-header .app-pos-header__actions > button {
    border: 1px solid rgba(203, 213, 225, 0.88) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: none !important;
}

.app-pos-header .app-pos-header__actions > a:hover,
.app-pos-header .app-pos-header__actions > button:hover {
    transform: translateY(-1px);
    box-shadow: var(--app-shadow-xs) !important;
}

.app-pos-content .input-group,
.app-pos-content .select2-container--default .select2-selection--single,
.app-pos-content .form-control {
    font-size: 14px;
}

.app-pos-content .pos_product_div {
    padding-bottom: 4px;
}

.app-pos-content #pos_table {
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 20px;
    overflow: hidden;
}

.app-pos-content #pos_table > thead > tr > th {
    padding-top: 16px;
    padding-bottom: 16px;
}

.app-pos-content #pos_table > tbody > tr > td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.app-pos-content .pos_form_totals {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.96));
}

.app-pos-content .pos_form_totals table td {
    padding: 10px 12px;
    border-color: rgba(203, 213, 225, 0.62);
}

.pos-form-actions {
    margin-top: 18px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--app-shadow-xs) !important;
}

.pos-form-actions button,
.pos-form-actions a {
    border-radius: 16px !important;
    box-shadow: none !important;
}

.pos-form-actions button:hover,
.pos-form-actions a:hover {
    transform: translateY(-1px);
}

.pos-total {
    padding: 10px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(37, 99, 235, 0.08));
}

.product_list {
    margin-bottom: 14px;
}

.product_box {
    height: 100%;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    box-shadow: var(--app-shadow-xs);
    overflow: hidden;
}

.product_box:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-sm);
}

.product_box .image-container {
    height: 136px;
    margin: 12px 12px 0;
    border-radius: 18px;
    background-color: rgba(248, 250, 252, 0.94);
    background-size: cover !important;
}

.product_box .text_div {
    padding: 14px 14px 16px;
}

.product_box .text {
    display: block;
    color: var(--app-text) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.product_box small.text-muted {
    color: var(--app-text-soft) !important;
}

#product_category_div .tw-dw-drawer-content > label,
#product_brand_div .tw-dw-drawer-content > label {
    min-height: 52px;
    border-radius: 18px;
    box-shadow: var(--app-shadow-xs);
}

#product_list_body {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 8px;
}

.app-pos-stage__sidebar .box-widget,
.app-pos-stage__sidebar .tw-dw-menu,
.app-pos-stage__sidebar .tw-dw-card,
.app-pos-stage__sidebar .recent-transactions-box,
.app-pos-stage__sidebar .box {
    border-radius: 22px;
}

.app-pos-stage__sidebar .box-widget,
.app-pos-stage__sidebar .box {
    border: 1px solid rgba(203, 213, 225, 0.84);
    box-shadow: var(--app-shadow-xs);
}

.app-pos-stage__sidebar .box-header {
    background: transparent;
}

#mobile_product_suggestion_modal .modal-content {
    border-radius: 24px;
}

@media (max-width: 1199px) {
    .app-pos-stage {
        display: block;
    }

    .app-pos-stage__main,
    .app-pos-stage__sidebar {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .product_box .image-container {
        height: 110px;
    }

    .pos-form-actions {
        border-radius: 20px;
    }
}