/* Theme colors
    blue: #0968a8
    blue Light: #65b7ff
    blue dark: #005b9b
    Orange: #ff8f00
    Orange light: #ffc246
    Orange dark: #c56200
*/
/*----------------------------------------------------
    MATERIAL ICONS
------------------------------------------------------*/
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/material-icons/MaterialIcons-Regular.eot); /* For IE6-8 */
    src: local('Material Icons'),
        local('MaterialIcons-Regular'),
        url(/fonts/material-icons/MaterialIcons-Regular.woff2) format('woff2'),
        url(/fonts/material-icons/MaterialIcons-Regular.woff) format('woff'),
        url(/fonts/material-icons/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

/* Ultra-compact mobile: enforce tighter sizes for small phones */
@media only screen and (max-width: 420px) {
    .modal {
        top: 2% !important;
        bottom: 2% !important;
    }
    .modal .modal-content{
        width:90% !important;
        max-width:320px !important;
        max-height: calc(100vh - 32px) !important;
        padding:6px !important;
        padding-bottom:12px !important;
    }
    .modal .modal-content label{font-size:0.82rem !important; margin-bottom:8px !important}
    .modal .modal-content input,
    .modal .modal-content select,
    .modal .modal-content textarea{
        font-size:13px !important;
        height:32px !important;
        padding:5px 6px !important;
    }
    .modal .modal-content .btn,
    .modal .modal-content .btn-small{
        height:34px !important;
        font-size:12px !important;
        line-height:34px !important;
        padding:0 8px !important;
    }
    /* Force image and button in a tight single row */
    .product-image-upload-row{
        width:100% !important;
        margin-top:8px !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        align-items:center !important;
        gap:6px !important;
    }
    .product-image-upload-row .product-image-preview-wrapper{
        flex:0 0 auto !important;
        margin-right:8px !important;
        min-width:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }
    .product-image-upload-row .product-image-preview-wrapper img,
    .product-image-upload-row .product-image-preview-wrapper div{
        width:64px !important;
        height:64px !important;
        max-width:none !important;
        border-radius:6px !important;
        flex:0 0 auto !important;
        object-fit:cover !important;
    }
    /* allow button to shrink despite inline min-width */
    .product-image-upload-row .btn-small{
        min-width:0 !important;
    }
    .product-image-upload-row .product-image-upload{
        width:100% !important;
        flex:1 1 auto !important;
        margin-left:0 !important;
        display:flex !important;
        justify-content:flex-start !important;
        align-items:center !important;
        min-width:0 !important;
    }
    .product-image-upload-row .product-image-upload .btn-small{
        width:100% !important;
        max-width:100% !important;
    }
    .product-image-upload-section label {
        display:block !important;
        width:100% !important;
        margin-bottom:8px !important;
    }
    .product-image-upload-row {
        margin-top:0 !important;
    }
    .product-image-upload-row .product-image-upload {
        padding-left:0 !important;
    }
    .file-path{font-size:12px !important; height:32px !important}
    .modal .modal-content .modal-close:not(.btn){font-size:1.3rem !important; top:6px !important; right:6px !important}
}


/* Enforce shrinking behavior for the choose button inside product-image-upload-row */
.modal .product-image-upload-row .btn-small,
.product-image-upload-row .btn-small {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
}
/* Ensure the upload row uses nowrap and items can shrink */
.modal .product-image-upload-row,
.product-image-upload-row {
    flex-wrap: nowrap !important;
    align-items: center !important;
}

/* Additional strict adjustments to ensure single-row layout and smaller sizes on very small phones */
@media only screen and (max-width: 420px) {
    /* ensure row doesn't wrap and items can shrink */
    .product-image-upload-row{
        flex-wrap:nowrap !important;
        gap:6px !important;
        align-items:center !important;
    }
    .product-image-upload-row .product-image-preview-wrapper{
        flex:0 0 auto !important;
        margin-right:8px !important;
        min-width:0 !important;
    }
    .product-image-upload-row .product-image-preview-wrapper img,
    .product-image-upload-row .product-image-preview-wrapper div{
        width:72px !important;
        height:72px !important;
        max-width:none !important;
        object-fit:cover !important;
    }
    .product-image-upload-row .product-image-upload{
        flex:1 1 auto !important;
        min-width:0 !important;
        margin-left:0 !important;
        display:flex !important;
        justify-content:flex-end !important;
    }
    .product-image-upload-row .product-image-upload .btn-small{
        width:100% !important;
        max-width:100% !important;
    }

    /* Scale down modal text and controls */
    .modal .modal-content{
        font-size:13px !important;
        line-height:1.2 !important;
    }
    .modal .modal-content label{font-size:0.82rem !important; margin-bottom:6px !important}
    .modal .modal-content input,
    .modal .modal-content select,
    .modal .modal-content textarea{
        font-size:13px !important;
        height:32px !important;
        padding:4px 6px !important;
    }
    .modal .modal-content .btn,
    .modal .modal-content .btn-small{
        height:34px !important;
        font-size:12px !important;
        padding:0 8px !important;
    }
    /* reduce spacing inside modal */
    .modal .modal-content{padding-left:8px !important; padding-right:8px !important}
    .product-image-upload-row .file-path-wrapper{display:none !important}
}
/* Rules for sizing the icon. */
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-21 { font-size: 21px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }

/*-------- END --------*/
@media only screen and (min-width: 0) {
    html {
        font-size: 13px;
        font-weight: 300;
    }
}

@media only screen and (min-width: 360px) {
    html {
        font-size: 14px;
    }
}

@media only screen and (min-width: 400px) {
    html {
        font-size: 15px;
    }
}

@media only screen and (min-width: 992px) {
    html {
        font-size: 13px;
    }
}

@media only screen and (min-width: 1400px) {
    html {
        font-size: 14px;
    }
}

@media only screen and (min-width: 1600px) {
    html {
        font-size: 15px;
    }
}

/*-----------------------
        FONTS
-------------------------*/
.font11 {font-size:11px !important;}
.font12 {font-size:12px !important;}
.font13 {font-size:13px !important;}
.font14 {font-size:14px !important;}
.font15 {font-size:15px !important;}
.font16 {font-size:16px !important;}
.font17 {font-size:17px !important;}
.font18 {font-size:18px !important;}
.font19 {font-size:19px !important;}
.font20 {font-size:20px !important;}
.font21 {font-size:21px !important;}
.font22 {font-size:22px !important;}
.font25 {font-size:25px !important;}
.font30 {font-size:30px !important;}

.light      { font-weight: 300 !important }
.normal     { font-weight: 400 !important }
.bold       { font-weight: 800 !important }
.semi-bold  { font-weight: 600 !important }
.uppercase {text-transform: uppercase !important;}
/*----------------------------------------------------
    PADDINGS
------------------------------------------------------*/
.pd-0 { padding: 0 !important;}
.pd-5 { padding: 5px !important;}
.pd-10 { padding: 10px !important;}
.pd-15 { padding: 15px !important;}
.pd-20 { padding: 20px !important;}
.pd-25 { padding: 25px !important;}
.pd-30 { padding: 30px !important;}
.pd-40 { padding: 40px !important;}

.pd-l-0 { padding-left: 0px !important;}
.pd-l-10 { padding-left: 10px !important;}
.pd-l-15 { padding-left: 15px !important;}
.pd-l-30 { padding-left: 30px !important;}

.pd-r-0 { padding-right: 0px !important;}

.pd-lr-0 { padding-right: 0px !important;padding-left: 0px !important;}
.pd-lr-5 { padding: 0 5px !important;}
.pd-lr-10 { padding: 0 10px !important;}
.pd-lr-15 { padding: 0 15px !important;}
.pd-lr-20 { padding: 0 20px !important;}
.pd-lr-25 { padding: 0 25px !important;}
.pd-lr-30 { padding: 0 30px !important;}
.pd-lr-40 { padding: 0 40px !important;}

.pd-b-10 { padding-bottom: 10px !important;}
.pd-b-15 { padding-bottom: 15px !important;}
.pd-b-20 { padding-bottom: 20px !important;}
.pd-b-30 { padding-bottom: 30px !important;}

.pd-t-5 { padding-top: 5px !important;}
.pd-t-10 { padding-top: 10px !important;}
.pd-t-15 { padding-top: 15px !important;}
.pd-t-20 { padding-top: 20px !important;}
.pd-t-25 { padding-top: 25px !important;}
.pd-t-30 { padding-top: 30px !important;}

.pd-tb-5  { padding-top: 5px !important; padding-bottom: 5px !important;}
.pd-tb-10 { padding-top: 10px !important; padding-bottom: 10px !important;}
.pd-tb-15 { padding-top: 15px !important; padding-bottom: 15px !important;}
.pd-tb-50 { padding-top: 50px !important; padding-bottom: 50px !important;}

/*----------------------------------------------------
    MARGINS
------------------------------------------------------*/
.mg-0       { margin: 0px !important;}
.mg-r-5     { margin-right: 5px !important;}
.mg-r-10    { margin-right: 10px !important;}
.mg-r-15    { margin-right: 15px !important;}
.mg-l-5     { margin-left: 5px !important;}
.mg-l-10    { margin-left: 10px !important;}
.mg-l-15    { margin-left: 15px !important;}
.mg-t-5     { margin-top: 5px !important; }
.mg-t-0     { margin-top: 0px !important; }
.mg-t-10    { margin-top: 10px !important; }
.mg-t-15    { margin-top: 15px !important; }
.mg-t-20    { margin-top: 20px !important; }
.mg-t-30    { margin-top: 30px !important; }
.mg-t-40    { margin-top: 40px !important; }
.mg-b-0     { margin-bottom: 0px !important; }
.mg-b-5     { margin-bottom: 5px !important; }
.mg-b-10    { margin-bottom: 10px !important; }
.mg-b-15    { margin-bottom: 15px !important; }
.mg-b-20    { margin-bottom: 20px !important; }
.mg-b-30    { margin-bottom: 30px !important; }

/*----------------------------------------------------
    BORDERS
------------------------------------------------------*/
.border-bottom{ border-bottom: 1px solid #eee !important; }

body{
    background-color: #fff;
    color: #212529;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

body {
    overflow: auto;
}

::-webkit-scrollbar {
    width: 4px;
    height: 0;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.2);
    -moz-box-shadow: inset 0 0 6px rgba(0,0,0,.2);
    box-shadow: inset 0 0 6px rgba(0,0,0,.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(210,210,210,.8);
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.5);
    -moz-box-shadow: inset 0 0 6px rgba(0,0,0,.5);
    box-shadow: inset 0 0 6px rgba(0,0,0,.5);
}

::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(210,210,210,.4);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 0.8rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.no-records{ background-color: #fff; color: #454545; font-size: 18px; text-align: center; width: 100%; padding: 80px 0; }
.no-records:before{ background: url('/images/no-records.png') center no-repeat; background-size: cover; content: ""; display: block; height: 80px; margin: auto; margin-bottom: 15px; width: 80px; }

.pos-relative{
    position: relative;
}
.pos-absolute{
    position: absolute;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] { -moz-appearance:textfield;}

select{
    height: 37px;
    border: 1px solid #ccc;
}

/* THIS REMOVES THE YELLOW BACKGROUND COLOR FROM CHROME'S AUTOFILL INPUTS */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0px 30px white inset !important;}

.error{
    font-size: 13px;
    margin-top: 5px;
}
.error:before{
    display: inline-block;
    margin-right: 5px;
    content: "\f06a";
    font-family: FontAwesome;
    font-size: 14px;
    color: #c00;
}
.input-field>label{
    color: #666666;
}
.input-field>label:not(.label-icon).active{
    color: #999999;
}
/*----------------------------------------------------
    MATERIAL OVERIDES
------------------------------------------------------*/
a {
    color: #035ce5;
    cursor: pointer;
}
.card .card-action a:not(.btn):not(.btn-large):not(.btn-large):not(.btn-floating), .card .card-action a:not(.btn):not(.btn-large):not(.btn-large):not(.btn-floating):hover {
    color: #035ce5;
}
.btn-block{
    display: block;
    width: 100%;
}
.btn-back{
    float: left;
    margin-right: 10px;
}
.btn-back i.material-icons{
    vertical-align: middle;
}
.btn_rounded{
    border-radius: 50px;
}
.btn-flat{
    border: 1px solid transparent;
}
.btn.btn-flat:hover {
    background-color: transparent;
    border: 1px solid;
}
.btn.small{
    font-size: 14px;
    height: 30px;
    line-height: 30px;
    vertical-align: top;
}
.file-field.small .btn{
    font-size: 14px;
    height: 30px;
    line-height: 30px;
    vertical-align: top;
}
.file-field.small .file-path{
    font-size: 14px;
    height: 30px;
    line-height: 30px;
    vertical-align: top;
}
.dropdown-content li>a, .dropdown-content li>span {
    font-size: 14px;
    color: #000;
    display: block;
    line-height: 22px;
}
.dropdown-content li>a>i {
    height: inherit;
    line-height: inherit;
    float: left;
    font-size: 16px;
    margin: 0 10px 0 0;
    width: 22px;
}

i.left {
    margin-right: 10px;
}
label {
    color: rgba(0,0,0,0.87);
}
.switch label input[type=checkbox]:checked+.lever:after {
    background-color: rgb(38, 166, 154) !important;
}
.switch label input[type=checkbox]:checked+.lever {
    background-color: rgba(38, 166, 154, 0.6) !important;
}

[type="checkbox"]+span:not(.lever){
    padding-left: 30px;
}
[type="checkbox"]+label {
    height: 15px;
    line-height: 25px;
}
.open-dropdown{
    display: block;
    opacity: 1;
}
[type="checkbox"]+label, [type="radio"]+label{
    padding-left:10px;
    cursor:pointer;
    display:inline-block;
    height:25px;
    line-height:25px;
    font-size:1rem;
    -webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none
}
[type="checkbox"]:not(.browser-default)+label, [type="radio"]:not(.browser-default):not(:checked)+label, [type="radio"]:not(.browser-default):checked+label {
    padding-left: 30px;
}
[type="checkbox"].filled-in:not(:checked)+label:after, [type="checkbox"]+label:before, [type="checkbox"]:not(.filled-in)+label:after {
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 1px solid #5a5a5a;
    border-radius: 2px;
    top: 3px;
}
[type="checkbox"].filled-in:checked+label:after {
    height: 18px;
    width: 18px;
    top: 3px;
}
[type="checkbox"].filled-in:checked+label:before {
    width: 7px;
    height: 12px;
    top: 3px;
}
.small[type="checkbox"].filled-in:not(:checked)+span:not(.lever):after{
    width: 16px;
    height: 16px;
}
.small[type="checkbox"].filled-in:not(:checked)+span:not(.lever):after,
.small[type="checkbox"].filled-in:checked+span:not(.lever):after{
    width: 16px;
    height: 16px;
}
.small[type="checkbox"].filled-in:checked+span:not(.lever):before{
    width: 6px;
    height: 11px;
}
.small[type="checkbox"]+span:not(.lever){
    padding-left: 20px;
    height: 16px;
    line-height: 16px;
}
input.browser-default.small,
select.browser-default.small{
    height: calc(1.6rem + 2px);
    padding: 0.1rem 0.2rem;
    font-size: 0.9rem;
}
.select-wrapper input.select-dropdown {
    height: calc(2.8rem);
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    border: 1px solid #999;
    border-radius: 2px;
    outline: none;
    padding-left: 10px;
    width: calc(100% - 10px);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.select-wrapper .select-dropdown [type="checkbox"]:not(.browser-default)+label{
    height: 18px;
}
.select-wrapper span.caret {
    right: 10px;
}

.material-tooltip {
    font-size: 12px;
}
.material-tooltip > .backdrop {
    background-color:#2a2a2a;
}

#toast-container {
    top: 0;
    left: 0;
    bottom: auto;
    text-align: center;
    margin: auto;
    max-width: 600px;
    width: 100%;
}
.toast{
    font-size: 1rem;
    word-break: normal;
    text-align: center;
}
.toast{
    z-index: 11;
}
.toast .toast-action {
    margin-left: 0;
}

@media only screen and (min-width : 601px) and (max-width : 1260px)
{
    .toast {
        width: 100%;
        border-radius: 0;
    }
}

@media only screen and (min-width : 1261px)
{
    .toast {
        width: 100%;
        border-radius: 0;
    }
}

@media only screen and (min-width : 601px) and (max-width : 1260px)
{
    #toast-container {
        right: 0%;
        left: 0%;
    }
}

@media only screen and (min-width : 1261px)
{
    #toast-container {
        right: 0%;
    }
}

.chips {
    border-radius: 2px;
    min-height: 45px;
    padding: 0px;
}
.chip.small{
    height: 26px;
    font-size: 12px;
    line-height: 26px;
}

.tabs .tab a {
    color: rgba(2,2,2,0.5);
}
.tabs .tab a:hover, .tabs .tab a.active {
    color: #EB5D26;
}
.tabs .indicator {
    background-color: #26a69a;
}

.custom-tabs {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    height: 48px;
    width: 100%;
    background-color: #fff;
    margin: 0 auto;
    white-space: nowrap;
}
.custom-tabs li {
    display: inline-block;
    text-align: center;
    line-height: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}
.custom-tabs li a {
    color: rgba(2,2,2,0.5);
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 24px;
    font-size: 14px;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-transition: color .28s ease;
    transition: color .28s ease;
}
.custom-tabs li a:hover {
    color: #000;
}
.custom-tabs li a.active {
    background-color: rgba(255, 143, 0, 1);
    color: #fff;
}

.tab-content > div {
    display: none;
}
.tab-content > div.active{
    display: block;
}

.flatpickr-input{
    border-bottom: 1px solid #9e9e9e !important;
    color: #333 !important;
}

.browser-default{
    width: 100%;
    height: calc(2.4rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
textarea.browser-default {
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    border-radius: 2px;
    color: #565656;
    padding: 12px;
    height: 80px;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-bottom: 0;
}
.input-group {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}
.input-group-append, .input-group-prepend {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.input-group-prepend {
    margin-right: -1px;
}
.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle), .input-group>.input-group-append:last-child>.input-group-text:not(:last-child), .input-group>.input-group-append:not(:last-child)>.btn, .input-group>.input-group-append:not(:last-child)>.input-group-text, .input-group>.input-group-prepend>.btn, .input-group>.input-group-prepend>.input-group-text{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: .375rem .75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #E9F6F5;
    border: 1px solid #ccc;
    border-radius: 2px;
}
.input-group>.custom-select:not(:first-child), .input-group>.browser-default:not(:first-child){
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.input-group>.custom-file, .input-group>.custom-select, .input-group>.browser-default {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
}
.input-group-text .secondary_input{
    border: none;
    background: transparent;
    height: 28px;
    width: 50px;
}

/*----------------------------------------------------
    SUMMERNOTE EDITOR OVERIDES
------------------------------------------------------*/
.note-editor .note-editing-area p{
    margin: 0 !important;
}
/*----------------------------------------------------
    FOOTABLE OVERIDES
------------------------------------------------------*/
table caption{
    color: #888;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}
table.bordered>tbody>tr.footable-detail-row{
    background-color: #f4f4f4;
    border: none;
    padding: 0;
}
table.bordered>tbody>tr.footable-detail-row > td{
    padding-bottom: 0;
}

table.footable>tbody>tr.footable-empty>td{
    font-size: 25px;
}

table.bordered>thead>tr, table.bordered>tbody>tr {
    border-bottom: 1px solid #ececec;
}

.fooicon {
    display: inline-block;
    font-size: inherit;
    font-family: themify!important;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0,0);
}
.fooicon-plus:before {
    content: "\e64b";
}
.fooicon-minus:before {
    content: "\e648";
}
table>tbody>tr>td>span.footable-toggle {
    margin-right: 8px;
    opacity: 1;
}

/*----------------------------------------------------
    ALERTBOX
------------------------------------------------------*/

.alertbox-error{ color: #f05050; font-size: 16px; }
.alertbox-error:before{ content: "!"; color: #f05050; display: block; border: 1px solid #f05050; border-radius: 50px; font-size: 30px; height: 50px; width: 50px; margin: 0 auto; margin-bottom: 10px; }

.alertbox-success{ color: #518d33; font-size: 16px; }
.alertbox-success:before{
    display: block;
    content: "\f164";
    font-family: FontAwesome;
    font-size: 30px;
    color: #518d33;
    border: 1px solid #518d33;
    border-radius: 50px;
    height: 50px;
    width: 50px;
    line-height: 50px;
    margin: 0 auto;
    margin-bottom: 10px;
}

#ConfirmDiv .btn-flat{
    border: 1px solid #eee;
}
#ConfirmDiv .btn-flat:hover{
    border: 1px solid #2196F3;
}
/*----------------------------------------------------
    TABLE SORT ARROWS
------------------------------------------------------*/

th a {
    color: #333;
}
th a.sort-by {
    padding-right: 18px;
    position: relative;
}
a.sort-by:before,
a.sort-by:after {
    border: 4px solid transparent;
    content: "";
    display: block;
    height: 0;
    right: 5px;
    top: 50%;
    position: absolute;
    width: 0;
}
a.sort-by:before {
    border-bottom-color: #666;
    margin-top: -9px;
}
a.sort-by:after {
    border-top-color: #666;
    margin-top: 1px;
}
a.sort-by.desc:before {
    border-bottom: none;
    margin-top: 1px;
}
a.sort-by.asc:after {
    border-top: none;
    margin-top: 1px;
}

.card-panel{
    position: relative;
    padding: 15px 20px;
}
.records-per-page{
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1;
}
.records-per-page select{
    border: 1px solid #ccc;
    font-size: 13px;
    height: 35px;
}
.chip.fi{
    position: relative;
}
.chip.fi .floatingIcon{
    cursor: pointer;
    position: absolute;
    right: -10px;
    top: -10px;
}

@media(max-width: 600px)
{
    .card-panel{
        padding: 15px;
    }
}

/*----------------------------------------------------
    SPINNER
------------------------------------------------------*/

.spinner { position: relative; opacity: 1; color: transparent !important; text-shadow: none !important; }
.spinner:hover,.spinner:active,.spinner:focus { color: transparent; outline: none !important; box-shadow: none;}
.spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border-radius: 50%;
    border-style: solid;
    border-width: 3px;
    border-color: #fff;
    border-top-color: #333;
    -webkit-animation: spinner 0.8s linear infinite;
    -moz-animation:    spinner 0.8s linear infinite;
    -o-animation:      spinner 0.8s linear infinite;
    animation:         spinner 0.8s linear infinite;
}
.large.spinner:before { margin-top: -19px; margin-left: -19px; width: 38px; height: 38px;}
.medium.spinner:before { margin-top: -12px; margin-left: -12px; width: 24px; height: 24px;}
.small.spinner:before { border-width: 2px; border-top-color: #333; margin-top: -9px; margin-left: -9px; width: 18px; height: 18px;}
.xsmall.spinner:before { border-width: 2px; border-top-color: #333; margin-top: -7px; margin-left: -7px; width: 14px; height: 14px;}

.spinner.blue.spinner:before { border-color: #69b1e5; border-top-color: #000; }
.spinner.gray.spinner:before { border-color: #ccc; border-top-color: #000; }

@keyframes spinner {
    to {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);  /* IE 9 */
        transform: rotate(360deg);
    }
}
.modal{
    background: none;
    height: auto;
    max-height: 90%;
    width: 100%;
    max-width: none;
    top: 5% !important;
    left: 0 !important;
    bottom: 5% !important;
    text-align: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out !important;
    transform: translateZ(0) translateY(0) !important;
    opacity: 1 !important;
}
.modal .modal-content{
    background: #fff;
    height: auto;
    max-height: calc(100vh - 120px);
    min-height: 150px;
    width: 90%;
    max-width: 100%;
    position: relative;
    display: inline-block;
    margin-top: 0;
    text-align: left;
    padding-bottom: 24px;
    overflow-y: auto;
}

@media only screen and (max-width: 600px) {
    .modal {
        width: 95%;
        max-height: 95%;
        top: 3% !important;
        bottom: 3% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .modal .modal-content {
        width: 95%;
        max-width: 420px;
        max-height: calc(100vh - 60px);
        margin: 0 auto;
        padding: 12px;
        padding-bottom: 24px;
    }
    .modal .modal-content .file-field .btn-small {
        width: 100%;
        display: block;
    }
    .modal .modal-content .file-path-wrapper {
        margin-top: 10px;
    }
}

/* Final targeted fix: explicit percentage widths for preview and upload area on small phones */
@media only screen and (max-width: 480px) {
    .product-image-upload-section { padding:10px !important; }
    .product-image-upload-row {
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        align-items:center !important;
        gap:8px !important;
    }
    .product-image-upload-row .product-image-preview-wrapper{
        flex:0 0 38% !important;
        max-width:38% !important;
        min-width:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding-right:4px !important;
    }
    .product-image-upload-row .product-image-preview-wrapper img{
        width:100% !important;
        height:auto !important;
        max-height:120px !important;
        object-fit:contain !important;
    }
    .product-image-upload-row .product-image-upload,
    .product-image-upload-row .file-field{
        flex:0 0 60% !important;
        max-width:60% !important;
        min-width:0 !important;
        margin-left:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
    }
    .product-image-upload-row .file-field .btn-small,
    .product-image-upload-row .btn-small{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        padding:6px 10px !important;
        font-size:13px !important;
        white-space:normal !important;
    }
    /* shrink labels and inputs */
    .modal .modal-content { font-size:13px !important; }
    .modal .modal-content label{font-size:12px !important}
    .modal .modal-content input, .modal .modal-content select, .modal .modal-content textarea{font-size:13px !important; height:32px !important}
}

/* Aggressive compacting: force smaller text for everything inside modal on small screens */
@media only screen and (max-width: 600px) {
    .modal .modal-content { font-size: 12px !important; }
    .modal .modal-content * { font-size: 12px !important; }
    .modal .modal-content h3, .modal .modal-content h4, .modal .modal-content h5 { font-size: 14px !important; }
    .modal .modal-content label, .product-image-upload-section label { font-size: 11px !important; }
    .modal .modal-content input, .modal .modal-content select, .modal .modal-content textarea,
    .modal .modal-content .browser-default { font-size: 12px !important; height: 32px !important; padding:4px 6px !important; }
    .modal .modal-content .materialize-textarea { font-size: 12px !important; }
    .modal .modal-content .btn, .modal .modal-content .btn-small { font-size: 12px !important; height: 34px !important; padding:4px 8px !important; }
    .modal .modal-content .row { margin-bottom: 6px !important; }
    .modal .modal-content .col { padding-left: 6px !important; padding-right: 6px !important; }
}

/* Reduce overall modal font sizes and spacing on small screens */
@media only screen and (max-width: 600px) {
    .modal .modal-content {
        font-size: 13px !important;
        padding-top: 8px !important;
        padding-bottom: 12px !important;
    }
    .modal .modal-content h5,
    .modal .modal-content h4 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    .modal .modal-content label,
    .product-image-upload-section label {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }
    .modal .modal-content input,
    .modal .modal-content textarea,
    .modal .modal-content select,
    .modal .modal-content .browser-default {
        font-size: 13px !important;
        height: 34px !important;
        padding: 6px 8px !important;
    }
    .modal .modal-content .materialize-textarea {
        font-size: 13px !important;
    }
    .modal .modal-content .btn,
    .modal .modal-content .btn-small {
        font-size: 13px !important;
        height: 34px !important;
        padding: 6px 10px !important;
    }
    /* tighten row spacing */
    .modal .modal-content .row { margin-bottom: 8px !important; }
    .modal .modal-content .col { padding-left: 6px !important; padding-right: 6px !important; }
}

/* Target selects and browser-default controls inside modal to be compact */
@media only screen and (max-width: 600px) {
    .modal .modal-content select.browser-default,
    .modal .modal-content select {
        height:34px !important;
        padding:4px 6px !important;
        font-size:13px !important;
        line-height:34px !important;
    }
    .modal .modal-content .product-image-preview-wrapper {
        display:flex; align-items:center; justify-content:center;
    }
    .modal .modal-content .product-image-preview-wrapper img { display:block; }
}
.modal .modal-content h5{
    margin-top: 0;
}
.modal .modal-content .modal-close:not(.btn){
    position: absolute;
    right: 5px;
    top: 5px;
    color: #666;
    font-size: 2rem;
}
.modal .modal-content .modal-close:not(.btn):hover{
    color: #eee;
}
.modal .processing{
    color: #999;
    display: none;
}
.product-image-upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.product-image-upload-row .product-image-preview-wrapper {
    min-width: 84px;
}
.product-image-upload-row .product-image-preview-wrapper img,
.product-image-upload-row .product-image-preview-wrapper div {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.product-image-upload-row .product-image-upload {
    flex: 1;
    min-width: 140px;
}
.product-image-upload-row .file-field .btn-small {
    width: 100%;
    white-space: normal;
}
/* Layout override: keep image on left, make choose button area 70% and right-aligned */
.product-image-upload-row {
    /* prefer single-row layout on wider screens */
    flex-wrap: nowrap;
}
.product-image-upload-row .product-image-preview-wrapper {
    flex: 0 0 auto;
    margin-right: 12px;
}
.product-image-upload-row .product-image-preview-wrapper img,
.product-image-upload-row .product-image-preview-wrapper div {
    width: 84px;
    height: 84px;
    object-fit: cover;
}
.product-image-upload-row .product-image-upload {
    /* occupy 70% of the row and push to the right */
    flex: 0 0 70%;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.product-image-upload-row .product-image-upload .btn-small {
    /* button fills its container (70% of row) */
    width: 100%;
}

@media only screen and (max-width: 600px) {
    /* revert to stacked layout on small screens */
    .product-image-upload-row {
        flex-direction: column;
        align-items: stretch;
    }
    .product-image-upload-row .product-image-upload {
        flex: 1 0 auto;
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
    .product-image-upload-row .product-image-preview-wrapper img,
    .product-image-upload-row .product-image-preview-wrapper div {
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 1/1;
    }
}
.product-image-upload-section label {
    position: static !important;
    transform: none !important;
    display: block;
    margin-bottom: 20px;
}
@media only screen and (max-width: 600px) {
    .modal .modal-content {
        width: 95% !important;
        max-width: 420px !important;
        padding: 12px !important;
        padding-bottom: 24px !important;
    }
    .modal .modal-content .file-field .btn-small {
        width: 100%;
        font-size: 13px;
        height: 34px;
        line-height: 34px;
    }
    .product-image-upload-row {
        flex-direction: column;
        align-items: stretch;
    }
    .product-image-upload-row .product-image-preview-wrapper,
    .product-image-upload-row .product-image-upload {
        width: 100%;
    }
    .product-image-upload-row .product-image-preview-wrapper img,
    .product-image-upload-row .product-image-preview-wrapper div {
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 1/1;
    }
    .product-image-upload-row .file-path-wrapper {
        margin-top: 10px;
    }
}
#AlertBox .modal-content, #ConfirmDiv .modal-content{
    height: auto;
    /* min-height: 100px; */
    width: 80%;
    max-width: 600px;
    min-width: 200px;
    padding-bottom: 100px;
}
#AlertBox .modal-content .alert-ok, #ConfirmDiv .modal-content .confirm-actions-buttons{
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
}
#ConfirmDiv .modal-content .message-wrapper:before{
    content: 'CONFIRM YOUR ACTION';
    display: block;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #c00;
    border-bottom: #ddd solid 1px;
}
@media only screen and (max-width: 600px) {
    .modal {
        top: 50% !important;
        bottom: auto !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    .modal .modal-content {
        width: 95% !important;
        max-width: 420px !important;
        padding-bottom: 16px !important;
        margin: 0 auto;
    }
    #AlertBox .modal-content .alert-ok,
    #ConfirmDiv .modal-content .confirm-actions-buttons {
        position: static !important;
        width: auto;
        bottom: auto;
        left: auto;
        padding-top: 8px;
        margin: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    #ConfirmDiv .modal-content .confirm-actions-buttons .btn,
    #ConfirmDiv .modal-content .confirm-actions-buttons .btn-flat {
        min-width: 100px;
        margin: 0;
    }
}
.processingModal {
    background-color: transparent;
    box-shadow: none;
    text-align: center;
    color: #fff;
}
.processingModal .modal-content{
    text-align: center;
    background: no-repeat;
}
.processingModal p{
    margin-top: 15px;
}
.spinner-white, .spinner-white-only {
    border-color: #ffffff;
}/* ===== SIMPLE QR CODE MODAL STYLES ===== */
.qr-modal-simple {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow-y: auto;
    padding: 20px;
    pointer-events: auto;
}

/* Extra small screen tweaks: keep modal compact and reduce preview image size */
@media only screen and (max-width: 480px) {
    .modal .modal-content {
        width: 92% !important;
        max-width: 360px !important;
        max-height: calc(100vh - 40px) !important;
        padding: 10px !important;
        padding-bottom: 16px !important;
        box-sizing: border-box;
    }
    .product-image-upload-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .product-image-upload-row .product-image-preview-wrapper img,
    .product-image-upload-row .product-image-preview-wrapper div {
        max-width: 160px;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
    .product-image-upload-row .product-image-upload {
        flex: 0 0 60% !important;
        margin-left: auto;
        display: flex;
        justify-content: flex-end;
    }
    .product-image-upload-row .product-image-upload .btn-small {
        width: 70%;
    }
    .modal .modal-content .modal-close:not(.btn) {
        font-size: 1.6rem;
    }
}

/* Strong mobile overrides to make modal compact and component sizes small
   Keep image and choose-button on the same row like desktop */
@media only screen and (max-width: 600px) {
    .modal .modal-content{
        width:92% !important;
        max-width:360px !important;
        max-height: calc(100vh - 40px) !important;
        padding:8px !important;
        padding-bottom:16px !important;
    }
    .modal .modal-content label{font-size:0.88rem !important;}
    .modal .modal-content input,
    .modal .modal-content select,
    .modal .modal-content textarea{
        font-size:14px !important;
        height:34px !important;
        padding:6px 8px !important;
    }
    .modal .modal-content .btn,
    .modal .modal-content .btn-small{
        height:36px !important;
        font-size:13px !important;
        line-height:36px !important;
        padding:0 10px !important;
    }
    /* Force image+button in one row */
    .product-image-upload-row{
        flex-direction:row !important;
        align-items:center !important;
        gap:8px !important;
    }
    .product-image-upload-row .product-image-preview-wrapper img,
    .product-image-upload-row .product-image-preview-wrapper div{
        width:120px !important;
        height:120px !important;
        max-width:40% !important;
        object-fit:cover !important;
        border-radius:10px !important;
    }
    .product-image-upload-row .product-image-upload{
        flex:0 0 70% !important;
        margin-left:auto !important;
        display:flex !important;
        justify-content:flex-end !important;
        align-items:center !important;
    }
    .product-image-upload-row .product-image-upload .btn-small{width:100% !important;}
    .file-path{font-size:13px !important; height:34px !important;}
    .modal .modal-content .modal-close:not(.btn){font-size:1.4rem !important; top:6px !important; right:6px !important}
}

.qr-modal-box-simple {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    animation: slideDown 0.3s ease-out;
    overflow: visible;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.qr-modal-header-simple {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.qr-modal-header-simple h3,
.qr-modal-header-simple h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.qr-close-simple {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-close-simple:hover {
    color: #333;
}

.qr-modal-body-simple {
    padding: 20px;
    text-align: center;
}

.qr-display-area-simple {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qr-modal-buttons-simple {
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    padding: 15px 20px 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-btn-simple {
    flex: 0 1 auto;
    width: 120px;
    padding: 8px 14px;
    min-height: 40px;
    line-height: 1.2;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.qr-btn-simple i {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.qr-btn-blue {
    background: #0968a8;
    color: white;
}

.qr-btn-blue:hover {
    background: #0d4f8b;
    box-shadow: 0 2px 8px rgba(9, 104, 168, 0.3);
}

.qr-btn-red {
    background: #d32f2f;
    color: white;
}

.qr-btn-red:hover {
    background: #b71c1c;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

@media (max-width: 768px) {
    .qr-modal-box-simple {
        max-width: 95%;
        margin: 10px;
    }
    
    .qr-modal-header-simple {
        padding: 15px;
    }
    
    .qr-modal-header-simple h3 {
        font-size: 16px;
    }
    
    .qr-modal-body-simple {
        padding: 15px;
    }
    
    .qr-display-area-simple {
        min-height: 250px;
        padding: 20px;
    }
    
    .qr-modal-buttons-simple {
        gap: 8px;
        padding-top: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .qr-btn-simple {
        font-size: 12px;
        padding: 8px 12px;
        flex: 1 1 100%;
        width: auto;
        min-width: 0;
        max-width: 100%;
    }
}

/* =====================================================
   GROCERY EDIT MODE STYLES
   ===================================================== */

.grocery-edit-icon {
    transition: color 0.3s ease;
}

.grocery-edit-icon:hover {
    color: #0d4f8b !important;
}

.order-items-view-mode,
.order-items-edit-mode {
    transition: opacity 0.3s ease;
}

.order-items-view-mode.hide,
.order-items-edit-mode.hide {
    display: none;
}

.order-items-edit-mode {
    margin-top: 15px;
}

.editable-table {
    width: 100%;
    border-collapse: collapse;
}

.editable-table thead {
    background-color: #f5f5f5;
}

.editable-table thead th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.editable-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.editable-table tbody tr:hover {
    background-color: #fafafa;
}

.editable-table td {
    padding: 8px 4px;
    vertical-align: middle;
}

.editable-table input {
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    font-family: inherit;
}

.editable-table input:focus {
    outline: none;
    border-color: #0968a8;
    box-shadow: 0 0 4px rgba(9, 104, 168, 0.3);
}

.editable-table .product-input {
    width: 100%;
}

.editable-table .price-input,
.editable-table .qty-input {
    width: 100%;
    text-align: right;
}

.editable-table .qty-input {
    text-align: center;
}

.editable-table .total-cell {
    font-weight: 600;
    color: #0968a8;
    padding: 8px 4px;
}

.editable-table .remove-row-btn {
    cursor: pointer;
    color: #d32f2f;
    font-size: 18px;
    transition: color 0.2s ease;
    padding: 4px;
}

.editable-table .remove-row-btn:hover {
    color: #b71c1c;
}

.order-items-edit-mode .mg-t-15 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.order-items-edit-mode .btn {
    margin-bottom: 0;
}

.order-items-edit-mode .blue {
    background-color: #0968a8;
}

.order-items-edit-mode .blue:hover {
    background-color: #0d4f8b;
}

.order-items-edit-mode .green {
    background-color: #4caf50;
}

.order-items-edit-mode .green:hover {
    background-color: #388e3c;
}

.order-items-edit-mode .gray {
    background-color: #999;
}

.order-items-edit-mode .gray:hover {
    background-color: #777;
}

.order-items-edit-mode .btn-small {
    padding: 0 15px;
    font-size: 12px;
    height: 36px;
    line-height: 36px;
}

.order-items-edit-mode .material-icons {
    font-size: 18px;
    margin-right: 5px;
}

.order-items-summary {
    padding-top: 15px;
    font-size: 14px;
}
    }
    
    .qr-btn-simple i {
        font-size: 16px;
    }
}

/* FINAL OVERRIDES: ensure one-row compact image+button on small phones (up to 600px) */
@media only screen and (max-width: 600px) {
    .product-image-upload-row {
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        align-items:center !important;
        gap:8px !important;
    }
    .product-image-upload-row .product-image-preview-wrapper{
        flex:0 0 auto !important;
        min-width:0 !important;
        margin-right:8px !important;
    }
    .product-image-upload-row .product-image-preview-wrapper img,
    .product-image-upload-row .product-image-preview-wrapper div{
        width:64px !important;
        height:64px !important;
        max-width:none !important;
        object-fit:cover !important;
        border-radius:8px !important;
    }
    .product-image-upload-row .file-field,
    .product-image-upload-row .product-image-upload{
        flex:1 1 auto !important;
        min-width:0 !important;
        margin-left:0 !important;
        display:flex !important;
        justify-content:flex-end !important;
        align-items:center !important;
    }
    .product-image-upload-row .file-field .btn-small,
    .product-image-upload-row .btn-small{
        width:auto !important;
        min-width:0 !important;
        padding:6px 10px !important;
        font-size:13px !important;
        height:34px !important;
    }
    /* ensure button is visible and can shrink instead of being hidden */
    .product-image-upload-row .file-field { overflow: visible !important; }
    .product-image-upload-row .product-image-upload { justify-content: flex-start !important; }
    .product-image-upload-row .file-field .btn-small,
    .product-image-upload-row .btn-small{
        max-width:220px !important;
        width:auto !important;
        min-width:0 !important;
    }
    .modal .modal-content { box-sizing: border-box; }
}

/* Ensure category/product image label stays above the upload row inside modals */
.modal .modal-content .product-image-upload-section {
    display: block !important;
    width: 100% !important;
}
.modal .modal-content .product-image-upload-section > label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}
.modal .modal-content .product-image-upload-row {
    margin-top: 0 !important;
}

@media (max-width: 480px) {
    .qr-modal-box-simple {
        max-width: 100%;
        border-radius: 0;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .qr-modal-header-simple {
        padding: 12px;
        position: sticky;
        top: 0;
        background: #f9f9f9;
        border-bottom: 1px solid #eee;
    }
    
    .qr-modal-header-simple h3 {
        font-size: 14px;
    }
    
    .qr-close-simple {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    
    .qr-modal-body-simple {
        padding: 12px;
    }
}

/* Product Autocomplete Styles */
.product-suggestion-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-suggestion-item:hover {
    background-color: #f5f5f5;
}

.product-suggestion-item strong {
    color: #0968a8;
    font-weight: 600;
}

.product-suggestion-item small {
    color: #999;
    font-size: 12px;
}

/* Autocomplete Portal - Floats above modal */
.autocomplete-dropdown-portal {
    position: fixed !important;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.autocomplete-dropdown-portal::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown-portal::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.autocomplete-dropdown-portal::-webkit-scrollbar-thumb {
    background: #0968a8;
    border-radius: 3px;
}

.autocomplete-dropdown-portal::-webkit-scrollbar-thumb:hover {
    background: #0d4f8b;
}

/* Out of Stock Product Styling - Like Zepto/Blinkit */
.shop-card--out-of-stock {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.shop-card--out-of-stock .shop-card__actions,
.shop-card--out-of-stock button,
.shop-card--out-of-stock input {
    pointer-events: none;
    opacity: 0.5;
}

.shop-card__preview--faded {
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.75;
    position: relative;
}

.shop-card__content--disabled {
    opacity: 0.75;
    color: #999;
}

.out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}
