@import url(fonts.css);

/* GLOBAL STYLES
-------------------------------------------------- */
body { background-color: #eff6f9; font-family: 'Roboto', sans-serif; }
.pos-container { margin: 0 auto; /*max-width: 1170px;*/ overflow-x: hidden; position: relative; width: 100%; }

/* HEADER
-------------------------------------------------- */
.top-blue-header { background-color: #004766; float: left; margin: 0; padding: 12px 20px; width: 100%; }
.top-blue-header .nav-list { float: left; list-style: none; margin-bottom: 0; padding-left: 0; }
.top-blue-header .nav-list li { float: left; margin: 0 16px 0 0; }
.top-blue-header .nav-list li .form-control { border: 1px solid #ccd4d7; border-radius: 6px; font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 400; height: 40px; line-height: 38px; padding: 0 17px; width: 254px; }
.top-blue-header .top-dropdown { float: right; position: relative; }
.top-blue-header .top-dropdown .user-link { background: url(../img/dropdown-arrow-icon.png) no-repeat right 16px; color: #fff; display: inline-block; font-family: 'Roboto', sans-serif; font-size: 18px; line-height: 40px; font-weight: 700; padding: 0 22px 0 0; }
.top-blue-header .top-dropdown .user-link:hover { text-decoration: none; }
.top-blue-header .top-dropdown .user-link img { margin-right: 8px; }
.top-blue-header .top-dropdown .dropdown-menu { background: none; border: none; border-radius: 0; padding: 5px 0 0; top: 33px; width: 100%; }
.top-blue-header .top-dropdown:hover .dropdown-menu { display: block; }
.top-blue-header .top-dropdown .dropdown-menu:hover { display: block; }
.top-blue-header .top-dropdown .dropdown-menu .dropdown-inner { background-color: #004766; border: 1px solid #316a82; border-radius: 6px; padding: 0 10px; width: 100%; }
.top-blue-header .top-dropdown .dropdown-menu ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.top-blue-header .top-dropdown .dropdown-menu ul li { margin: 0; padding:  0; width: 100%; }
.top-blue-header .top-dropdown .dropdown-menu ul li a { color: #fff; display: block; font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; padding: 10px 0; }

.bottom-header { display: flex; float: left; margin: 0; padding: 0; width: 100%; }
.bottom-header .left-bottom-header { padding: 12px 0 0 20px; width: 68%; }
.bottom-header .left-bottom-header .btn-link { float: left; list-style: none; margin: 0; padding: 0; width: 100%; }
.bottom-header .left-bottom-header .btn-link li { float: left; margin: 0 6px 0 0; padding: 0; }
.bottom-header .left-bottom-header .btn-link li a { border-radius: 5px; background: #004766; color: #fff; display: inline-block; font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700; line-height: 40px; padding: 0 22px; }
.bottom-header .left-bottom-header .btn-link li a:hover { text-decoration: none; }
.bottom-header .left-bottom-header .btn-link .active a { background-color: #004766; color: #fff; }
.bottom-header .left-bottom-header .custom-input-list { float: left; list-style: none; margin: 14px 0 0; padding: 0; width: 100%; }
.bottom-header .left-bottom-header .custom-input-list li { float: left; margin-right: 6px; }
.bottom-header .left-bottom-header .custom-input-list li a { display: block; }
.bottom-header .left-bottom-header .custom-input-list li .form-control { background-color: #fff; border: 1px solid #ccd4d7; border-radius: 6px; color: #6d6d6d; float: left; font-size: 18px; font-weight: 400; height: 40px; line-height: 38px; padding: 0 16px 0 16px; width: 360px; }
.bottom-header .left-bottom-header .custom-input-list li .phone-control { border-right: none; border-radius: 6px 0 0 6px; width: 271px; }
.bottom-header .left-bottom-header .custom-input-list li .form-control:focus { box-shadow: none; }
.bottom-header .left-bottom-header .custom-input-list li .form-control[disabled] { background-color: #ddeaef; border: 1px solid #ccd4d7; color: #b8c8ce; }
.bottom-header .left-bottom-header .custom-input-list li .form-control[disabled]::placeholder { color: #b8c8ce; opacity: 1; /* Firefox */ }
.bottom-header .left-bottom-header .custom-input-list li .form-control[disabled]::-ms-input-placeholder { /* Edge 12-18 */  color: #b8c8ce; }
.bottom-header .left-bottom-header .custom-input-list li .enter-btn { background: url(../img/btn-arrow.png) no-repeat center #004766; border: none; border-radius: 0 6px 6px 0; cursor: pointer; height: 40px; width: 62px; }
.bottom-header .left-bottom-header .custom-input-list li .delete-icon { height: auto; width: 32px; }
.bottom-header .left-bottom-header .remove-btn { background-color: #004766; border: none; border-radius: 6px; color: #fff; cursor: pointer; float: right; font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 700; height: 36px; line-height: 36px; margin: 5px 45px 0 0; padding: 0 30px 0 30px; text-transform: uppercase; }
.bottom-header .right-bottom-header { background-color: #e2f4fb; border: 1px solid #c5d3d9; border-right: none; padding: 14px 54px 6px 23px; position: relative; width: 32%; }
.bottom-header .right-bottom-header .cross-icon { position: absolute; right: 28px; top: 23px; }
.bottom-header .right-bottom-header ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.bottom-header .right-bottom-header ul li { color: #004766; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700; line-height: 32px; margin: 0; padding: 0; width:  100%; }
.bottom-header .right-bottom-header ul li a { color: #004766; display: block; }
/* HEADER End
-------------------------------------------------- */

/* BODY
-------------------------------------------------- */
.custom-body { float: left; margin: 0; padding: 0 20px 30px; position: relative; width: 100%; }
.toggle-btn { background: url(../img/toggle-btn-arrow.png) no-repeat 50px 15px #004766; border-radius: 7px 7px 0 0; color: #fff; cursor: pointer; font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 700; line-height: 48px; margin-top: -36.5px; padding:  25px 22px 0 22px; position: absolute; right: -27px; top: 50%; text-transform: uppercase; transform: rotate(-90deg); transition: all .3s ease; }
.active-btn { background-image: url(../img/toggle-btn-active-arrow.png); right: 195px; }
.toggle-btn:hover { color: #fff; text-decoration: none; }
.slide-box { background-color: #fff; border-left: 1px solid #c5d3d9; bottom: 0; padding: 15px 14px 1px; position: absolute; right: -240px; top: 0; transition: all .3s ease; width: 220px; z-index: 1; }
.active-slide { right: 0; }
.slide-box ul { list-style: none; margin-bottom: 0; margin-left: -5.5px; margin-right: -5.5px; padding-left: 0; padding-right: 0; }
.slide-box ul li { display: flex; margin-bottom: 14px; padding-left: 5.5px; padding-right: 5.5px; }
.slide-box ul li .anchor-link { align-items: center; background-color: #004766; border-radius: 5px; color: #f5f4f4; display: flex; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700; height: 35px; justify-content: center; line-height: 20px; text-align: center; width: 100%; }
.slide-box ul li .anchor-link:hover { text-decoration: none; }

.login-mein { align-items: center; background-color: #fff; border: 42px solid #004766; display: flex; flex-direction: row; justify-content: center; margin: 0; min-height: 100vh; padding: 40px 0; width: 100%; }
.login-inner { text-align: center; width: 484px; }
.login-inner h3 { color: #004766; font-family: 'Roboto', sans-serif; font-size: 48px; font-weight: 700; margin: 0 0 15px; }
.login-inner h4 { color: #004766; font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 700; margin: 0 0 50px; }
.login-inner .form-control { background-color: #fff; border: 1px solid #ccd4d7; border-radius: 6px; color: #6d6d6d; font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 400; height: 54px; line-height: 52px; margin-bottom: 29px; padding: 0 47px 0 23px; width: 100%; }
.login-inner .user-control { background-image: url(../img/user-form-icon.png); background-repeat: no-repeat; background-position: 95% 14px; }
.login-inner .password-control { background-image: url(../img/password-form-icon.png); background-repeat: no-repeat; background-position: 95% 14px; }
.login-inner .form-control:focus { box-shadow: none; }
.login-inner .btn { background-color: #004766; border: none; border-radius: 10px; color: #fff; cursor: pointer; float: right; font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 700; height: 59px; line-height: 59px; margin: 0; padding: 0; text-transform: uppercase; width: 100%; }
.login-inner .btn:focus { background-color: #004766; box-shadow: none; }
.login-inner .btn:active { background-color: #004766 !important; }
.login-inner .btn:active:focus { background-color: #004766; box-shadow: none !important; }

/* FOOTER
-------------------------------------------------- */
.footer { background-color: #004766; float: left; margin: 0; padding: 0; width: 100%; }
.footer .half-list { float: left; list-style: none; margin: 0; padding: 0; width: 100%; }
.footer .half-list li { border-right: 1px solid #316a82; float: left; list-style: none; margin: 0; padding: 0; width: 50%; }
.footer .half-list li:last-child { border-right: none; }
.footer .half-list li table { border-collapse: collapse; }
.footer .half-list li table th { border-bottom: 1px solid #316a82; color: #fff; font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 700; line-height: 47px; padding: 0 20px; text-transform: uppercase; }
.footer .half-list li table td { border-bottom: 1px solid #316a82; color: #fff; font-family: 'Roboto', sans-serif; font-size: 20px; font-weight: 700; line-height: 47px; padding: 0 20px; text-align: right; }
.footer .half-list li table tr:last-child th { border-bottom: none; }
.footer .half-list li table tr:last-child td { border-bottom: none; }
/* FOOTER End
-------------------------------------------------- */

/* MODAL
-------------------------------------------------- */
#customerModel .modal-dialog { max-width: 1100px; }
.add-customer-form-list { list-style: none; padding-left: 30px; padding-right: 30px; }
.add-customer-form-list li { margin-bottom: 20px; }
.add-customer-form-list li .form-control { border: 1px solid #ccd4d7; font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 400; height: 50px; padding-bottom: 10px; padding-top: 10px; }
.add-customer-form-list li .form-control:focus { box-shadow: none; }
.add-customer-form-list li .custom-input-group .input-group-prepend .form-control { margin-right: 30px; }
.add-customer-form-list li .btn { background-color: #004766; border-color: #004766; border-radius: 8px; font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 700; padding: 12px 35px; text-transform: uppercase; }
.add-customer-form-list li .btn:focus { box-shadow: none; }
.add-customer-form-list li .btn:active { background-color: #004766; border-color: #004766; }

#returnModel .modal-dialog { max-width: 1100px; }
#returnModel .error-span { color: #f00; float: left; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 400; margin-top: -10px; width: 100%; }
.return-form-list { float: left; list-style: none; padding-left: 0; }
.return-form-list li { float: left; margin-right: 10px; }
.return-form-list li:last-child { margin-right: 0; }
.return-form-list li .or-span { float: left; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 400; line-height: 50px; }
.return-form-list li .form-control { border: 1px solid #ccd4d7; font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 400; height: 50px; padding-bottom: 10px; padding-top: 10px; }
.return-form-list li .form-control:focus { box-shadow: none; }
.return-form-list li .btn { background-color: #004766; border: 2px solid #004766; border-radius: 8px; font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 700; line-height: 46px; padding: 0 35px; text-transform: uppercase; }
.return-form-list li .btn:focus { box-shadow: none; }
.return-form-list li .btn:active { background-color: #004766; border-color: #004766; }
.return-form-list li .return-link { background-color: red; font-size: 11px; line-height: normal; padding: 6px 15px; }

#bundle_prdct_popup .modal-dialog { max-width: 700px; }
.bundle-form-list { float: left; list-style: none; padding-left: 0; }
.bundle-form-list li { float: left; margin-right: 10px; }
.bundle-form-list li #loader_bundle_prdct img { max-height: 50px; width: auto; }
.bundle-form-list li .form-control { border: 1px solid #ccd4d7; font-family: 'Roboto', sans-serif; font-size: 18px; font-weight: 400; height: 50px; padding-bottom: 10px; padding-top: 10px; width: 450px; }
.bundle-form-list li .form-control:focus { box-shadow: none; }

.payment-tbl { float:left; width:100%; margin-bottom: 20px; background: #efefef;}
.payment-tbl td { padding: 10px; border: 1px solid #f2f2f2; font-size: 14px; }
.payment-tbl td:last-child {font-weight: 700; text-align: right}
.Search-Customer .lft { float: left; width:49%; clear:both;}
.Search-Customer .bar-code { float: right; width: 49%; margin-top: 20px;}

#offer_info .alert { padding: 5px;}
#offer_info .alert a { font-size:12px;}

.create-offer { width:100%; float:left; margin:25px 0 0 0; }
.create-offer form .form-group { float:left; width:100%; }
.create-offer form .form-group label { width:100%; float:left; margin:0 0 5px 0; }
.create-offer form .form-group .form-control { width:300px; float:left; }
.create-offer form .form-group ul.review-option { width:auto; height:auto; float:left; padding:0; margin:0; list-style-type:none; border:none; }
.create-offer form .form-group ul.review-option li { width:auto; float:left; padding:0; margin:0 30px 0 0; }
.create-offer form .form-group ul.review-option li:last-child { margin:0; }
.create-offer form .form-group ul.review-option li label { display:block; margin:0 !important; width:auto; font-weight:400; }
.create-offer form .form-group ul.review-option li input[type="radio"] { margin:4px 5px 0 0; float:left; }
.create-offer form .form-group ul.review-option li a {}

.review-content ul.days { width:auto; float:left; padding:0; margin:10px 0 0 0; list-style: none;}
.review-content ul.days li { width:auto; float:left; padding:0; margin:0 20px 0 0; }
.review-content ul.days li:last-child { margin:0; }
.review-content ul.days li label { width:auto; margin:0; font-weight:normal; }
.review-content ul.days li label input[type="checkbox"] { float:left; margin:4px 4px 0 0; }

.payment-info a.send-otp-btn{
    cursor: pointer;
    color: #fff;
    background-color: #0085be;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
}
.payment-info a.verify-otp-btn{
    float:right;
    cursor: pointer;font:normal 12px/20px;   line-height: 20px;
    color: #fff;
    background-color: #0085be;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    margin-top: 6px;
}
.payment-info a.resend-otp-btn{
    float:right;
    cursor: pointer;font:normal 12px/20px;   line-height: 20px;
    color: #fff;
    background-color: #2fbffc;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    margin-top: 6px;
}
.payment-info a.cancel-otp-btn{
    float:right;
    cursor: pointer;font:normal 12px/20px;   line-height: 20px;
    color: #fff;
    background-color: darkgrey;
    padding: 5px;
    border: none;
    border-radius: 5px;
}


#goAheadModal .modal-header .close { position: absolute; right: 16px; font-size: 26px; padding: 7px 10px; opacity: 1;}
#goAheadModal .modal-header h4 { font-size: 18px;}
#goAheadModal .modal-body { padding-bottom: 30px;}
#goAheadModal .modal-body h5 { font-size: 15px; text-align: center;}
#goAheadModal .btnDiv2 { margin-top: 25px;}
#goAheadModal .btnDiv2 span { text-align: center;}
#goAheadModal .btnDiv2 span a { padding: 10px 15px; border-radius: 5px; color: #fff; text-decoration: none; font-size: 14px; background: #004766;}

#payment_popup .modal-dialog { max-width: 900px;}
#payment_popup .modal-header .close { position: absolute; right: 16px; font-size: 26px; padding: 7px 10px; opacity: 1;}
#payment_popup .modal-header h4 { font-size: 18px;}
#payment_popup .payment-tbl td { padding: 7px 10px;}
#payment_popup #paymntTbl th { padding: 7px 10px; font-size: 14px;}
#payment_popup #paymntTbl td { padding: 7px 10px; font-size: 14px;}
#payment_popup #paymntTbl td:last-child { text-align: center;}
#payment_popup #paymntTbl td img { max-height: 17px;}
#payment_popup .payment-info { position: relative; margin-bottom: 30px; border: 1px solid #d1d1d1; border-radius: 5px; padding: 10px 10px;}
#payment_popup .payment-info h5 { font-size: 18px;}
#payment_popup .payment-info ul { padding: 0; list-style: none;}
#payment_popup .payment-info ul li { list-style: none;}
#payment_popup .payment-info ul li select { width: 100%; border-radius: 5px; padding: 12px 12px; border: 1px solid #d1d1d1; font-size: 14px; margin-bottom: 10px;}
#payment_popup .payment-info ul li input[type="text"] { width: 100%; padding: 12px 12px; border: 1px solid #d1d1d1; border-radius: 5px; font-size: 14px; outline: none !important;}
#remaining_refund { margin-bottom: 20px;}
#payment_popup .radio label { font-size: 15px; margin-right: 20px;}
#payment_popup .btnDiv2 .add-btn { display: block; text-align: center; padding: 10px 15px; border-radius: 5px; color: #fff; text-decoration: none; font-size: 14px; background: #004766;}

#send_offer_otp_popup .modal-header .close { background: url(../img/modal-cross.svg) no-repeat center; background-size: 16px auto; height: 18px; position: absolute; font-size: 26px; padding: 7px 10px; opacity: 1; right: 30px; top: 30px; width: 18px; }
#send_offer_otp_popup .modal-header h4 { font-size: 18px; }
.verify_offer_customer h4 { font-size: 18px; }
.verify_offer_customer label { font-size: 14px; margin-bottom: 5px; }
.verify_offer_customer .col-md-12 { margin-bottom: 15px; }
.verify_offer_customer .input-group { align-items: center; }
.verify_offer_customer .input-group .input-group-addon { margin-right: 15px; }
.verify_offer_customer .input-group .btn-success { margin-left: 15px; }

.reportDiv { border: 1px solid #dee2e6; /* float: right; */ max-width: 300px; position: absolute; right: 20px; top: 100px; width: 100%; }
.reportDiv .table { margin-bottom: 0; }
.reportDiv .table tr:first-child th, .reportDiv .table tr:first-child td { border-top: none; }
.reportDiv .table tr td { text-align: right; }
.errorDiv .errorText { color: #f00; text-align: center; }
.clearfix { clear: both; }


/* ===== report page ===== */
.bottom-header ~ .bottom-header { margin-bottom: 25px; justify-content: center;}
.bottom-header ~ .bottom-header .left-bottom-header { width: 64%; padding: 0 20px; margin-top: 30px;}
.bottom-header ~ .bottom-header .btn-link li { margin: 0 4px 4px 2px;}
.bottom-header ~ .bottom-header .btn-link li a { background: #004766; padding: 0 15px; font-size: 12px; color: #fff;}
.custom-body h3 { margin-bottom: 20px !important; font-size: 20px;}











/* RESPONSIVE CSS
-------------------------------------------------- */
@media (hover: hover) and (min-width: 600px) {

}

@media (min-width: 40em) {

}

@media (min-width: 62em) {

}

@media screen and (max-width: 1366px) {
	.bottom-header ~ .bottom-header .left-bottom-header {
		 width: 100%;
	}
}

@media screen and (max-width: 1259px) {

    .bottom-header .left-bottom-header .custom-input-list li .form-control { width: 266px; }
	.bottom-header .left-bottom-header .custom-input-list li .phone-control { width: 197px; }
}

@media screen and (max-width: 1025px) {
    .bottom-header .left-bottom-header .custom-input-list { align-items: center; display: flex; }
    .bottom-header .left-bottom-header .custom-input-list li { margin-right: 7px; }
    .bottom-header .left-bottom-header .custom-input-list li:last-child { margin-right: 0; }
    .bottom-header .left-bottom-header .custom-input-list li .form-control { width: 186px; }
	.bottom-header .left-bottom-header .custom-input-list li .phone-control { width: 190px; }
    .bottom-header .left-bottom-header .custom-input-list li:nth-child(5) img { height: auto; margin-top: 5px; width: 120px; }
    .bottom-header .left-bottom-header .custom-input-list li .return-link { padding: 5px 4px; }
}

/* ── Mobile / tablet (≤ 768px) ───────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    /* Stack header inputs vertically */
    .bottom-header .left-bottom-header .custom-input-list { flex-wrap: wrap; }
    .bottom-header .left-bottom-header .custom-input-list li { margin-bottom: 6px; }
    .bottom-header .left-bottom-header .custom-input-list li .form-control,
    .bottom-header .left-bottom-header .custom-input-list li .phone-control { width: 100%; max-width: 280px; }

    /* Cart grid: allow horizontal scroll on small screens */
    #myGrid { min-width: 0 !important; overflow-x: auto; }

    /* Footer totals: stack columns */
    .footer-section { flex-direction: column; }

    /* New Order badge in header: smaller text */
    .new-order-label { font-size: 12px; padding: 4px 8px; }
}

/* ── Phone (≤ 480px) ─────────────────────────────────────────────────────── */
@media screen and (max-width: 480px) {
    /* Top header store/date: hide date on very small screens to save space */
    .top-header .date-field { display: none; }

    /* Modals: full-width on phone */
    .modal-dialog { margin: 8px; }
    .modal-dialog[style*="max-width:960px"],
    .modal-dialog[style*="max-width:480px"] { max-width: calc(100vw - 16px) !important; }

    /* AG-Grid inside modals: shorter height */
    #holdGrid  { height: 320px !important; }
    #myGrid    { height: 300px !important; }

    /* Buttons panel: make touch targets bigger */
    .anchor-link { padding: 10px 6px; font-size: 13px; }
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS
   13" laptop (≤ 1280px) · tablet (≤ 768px) · mobile (≤ 480px)
   ============================================================ */

/* ── 13" / small laptop (≤ 1280px) ───────────────────────────────────────── */
@media screen and (max-width: 1280px) {
    /* Constrain oversized modals to the actual viewport */
    #customerModel .modal-dialog,
    #returnModel .modal-dialog    { max-width: min(1100px, 95vw); }
    #payment_popup .modal-dialog  { max-width: min(900px, 92vw); }
    /* Grid height is controlled by fitGridHeight() JS — no override needed here */
}

/* ── Tablet / mobile (≤ 768px) ───────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    /* Stack the 68%/32% header panels */
    .bottom-header { flex-wrap: wrap; }
    .bottom-header .left-bottom-header  { width: 100% !important; padding: 8px 10px 4px; }
    .bottom-header .right-bottom-header { width: 100% !important; border-right: 1px solid #c5d3d9; padding: 8px 10px; }

    /* Customer search bar: wrap items, full-width inputs */
    .bottom-header .left-bottom-header .custom-input-list { display: flex; flex-wrap: wrap; }
    .bottom-header .left-bottom-header .custom-input-list li .form-control,
    .bottom-header .left-bottom-header .custom-input-list li .phone-control { max-width: 260px; width: 100%; }

    /* Modals: nearly full width */
    #customerModel .modal-dialog,
    #returnModel .modal-dialog,
    #payment_popup .modal-dialog { max-width: calc(100vw - 20px) !important; margin: 10px auto; }

    /* ── Action buttons: replace right-side slide panel with fixed bottom bar ── */
    .toggle-btn { display: none !important; }
    .slide-box {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        border-left: none !important;
        border-top: 2px solid #004766;
        padding: 6px 8px !important;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.2);
        transition: none !important;
        z-index: 1050 !important;
    }
    /* Prevent the JS active-slide class from animating position on mobile */
    .slide-box,
    .slide-box.active-slide { right: 0 !important; }

    /* Horizontal scrollable row — override Bootstrap .row and col-md-6 */
    .slide-box ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;        /* override Bootstrap .row flex-wrap:wrap */
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 !important;               /* override Bootstrap .row negative margins */
        padding: 0 !important;
        gap: 6px;
    }
    .slide-box ul::-webkit-scrollbar { display: none; }
    .slide-box ul li {
        flex: 0 0 auto !important;          /* override Bootstrap col flex-grow:1 */
        width: auto !important;
        max-width: none !important;         /* override Bootstrap col max-width:100% */
        padding: 0 !important;              /* override Bootstrap col padding:15px */
        margin: 0 !important;
    }
    .slide-box ul li .anchor-link {
        white-space: nowrap;
        height: 40px;
        padding: 0 16px !important;
        font-size: 13px;
        width: auto !important;
        border-radius: 6px;
    }

    /* Push content above the fixed bottom bar */
    .custom-body { padding-bottom: 65px; }

    /* All modals: full-width */
    .modal-dialog { margin: 6px auto !important; max-width: calc(100vw - 12px) !important; }
    .modal-content { border-radius: 8px; }

    /* Payment modal body: scrollable on small screens */
    #payment_popup .modal-body { max-height: 72vh; overflow-y: auto; }

    /* Salesman suggestion: keep inside viewport */
    #salesman-suggesstion-div { width: calc(100vw - 30px) !important; }

    /* Footer: compact */
    .footer { padding: 4px 8px; }

    /* ── Reports page ── */
    /* Totals box: pull out of absolute positioning so it flows in the document */
    .reportDiv, #reportDivTotal {
        position: static !important;  /* static ignores top/right/bottom/left entirely */
        max-width: 100% !important;
        width: auto !important;
        margin: 8px 10px !important;
        border-radius: 6px;
    }

    /* First bottom-header (Dashboard / Reports / Posting nav) */
    .bottom-header .btn-link { display: flex !important; flex-wrap: wrap !important; gap: 4px; padding: 6px 0 2px !important; }
    .bottom-header .btn-link li { float: none !important; }
    .bottom-header .btn-link li a { line-height: 34px !important; padding: 0 14px !important; font-size: 13px !important; }

    /* Second bottom-header (report-type buttons) */
    .bottom-header ~ .bottom-header { margin-bottom: 8px !important; }
    .bottom-header ~ .bottom-header .left-bottom-header { width: 100% !important; margin-top: 0 !important; padding: 6px 10px !important; }
    .bottom-header ~ .bottom-header .btn-link { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
    .bottom-header ~ .bottom-header .btn-link li { float: none !important; margin: 0 !important; }
    .bottom-header ~ .bottom-header .btn-link li a {
        height: 38px !important; line-height: 38px !important;
        padding: 0 14px !important; font-size: 13px !important;
        border-radius: 6px !important; white-space: nowrap;
    }
}

/* ── Mobile phone (≤ 480px) ─────────────────────────────────────────────── */
@media screen and (max-width: 480px) {
    /* Top header: compact height */
    .top-blue-header { padding: 6px 10px; }
    .top-blue-header .nav-list li .form-control { font-size: 13px; height: 34px; width: 130px; }

    /* Customer inputs: stretch to viewport */
    .bottom-header .left-bottom-header { padding: 6px 8px 4px; }
    .bottom-header .left-bottom-header .custom-input-list li .form-control,
    .bottom-header .left-bottom-header .custom-input-list li .phone-control {
        max-width: calc(100vw - 90px);
        width: 100%;
        font-size: 14px;
    }

    /* Scale box (weight): full-width on mobile */
    #scale-box { max-width: 100% !important; float: none !important; margin: 0 0 8px !important; }
}
