/* Glyphicons Font Loading */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.eot');
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),
         url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
         url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
         url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Awesome 4 Compatibility */
@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Tajawal Font for Arabic Text */
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/tajawal/Tajawal-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/tajawal/Tajawal-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/tajawal/Tajawal-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Arabic Text Styling - Exclude Font Awesome Icons */
[lang="ar"]:not(.fa):not([class*="fa-"]), 
[lang="ar-*"]:not(.fa):not([class*="fa-"]),
.arabic-text:not(.fa):not([class*="fa-"]),
.rtl:not(.fa):not([class*="fa-"]),
body[dir="rtl"]:not(.fa):not([class*="fa-"]) {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Apply Tajawal to all Arabic text elements - Exclude Font Awesome */
[lang="ar"] *:not(.fa):not([class*="fa-"]),
[lang="ar-*"] *:not(.fa):not([class*="fa-"]),
.arabic-text *:not(.fa):not([class*="fa-"]),
.rtl *:not(.fa):not([class*="fa-"]),
body[dir="rtl"] *:not(.fa):not([class*="fa-"]) {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Specific elements that commonly contain Arabic text - Exclude Font Awesome */
[lang="ar"] h1:not(.fa):not([class*="fa-"]), [lang="ar"] h2:not(.fa):not([class*="fa-"]), [lang="ar"] h3:not(.fa):not([class*="fa-"]), [lang="ar"] h4:not(.fa):not([class*="fa-"]), [lang="ar"] h5:not(.fa):not([class*="fa-"]), [lang="ar"] h6:not(.fa):not([class*="fa-"]),
[lang="ar-*"] h1:not(.fa):not([class*="fa-"]), [lang="ar-*"] h2:not(.fa):not([class*="fa-"]), [lang="ar-*"] h3:not(.fa):not([class*="fa-"]), [lang="ar-*"] h4:not(.fa):not([class*="fa-"]), [lang="ar-*"] h5:not(.fa):not([class*="fa-"]), [lang="ar-*"] h6:not(.fa):not([class*="fa-"]),
.arabic-text h1:not(.fa):not([class*="fa-"]), .arabic-text h2:not(.fa):not([class*="fa-"]), .arabic-text h3:not(.fa):not([class*="fa-"]), .arabic-text h4:not(.fa):not([class*="fa-"]), .arabic-text h5:not(.fa):not([class*="fa-"]), .arabic-text h6:not(.fa):not([class*="fa-"]),
.rtl h1:not(.fa):not([class*="fa-"]), .rtl h2:not(.fa):not([class*="fa-"]), .rtl h3:not(.fa):not([class*="fa-"]), .rtl h4:not(.fa):not([class*="fa-"]), .rtl h5:not(.fa):not([class*="fa-"]), .rtl h6:not(.fa):not([class*="fa-"]),
body[dir="rtl"] h1:not(.fa):not([class*="fa-"]), body[dir="rtl"] h2:not(.fa):not([class*="fa-"]), body[dir="rtl"] h3:not(.fa):not([class*="fa-"]), body[dir="rtl"] h4:not(.fa):not([class*="fa-"]), body[dir="rtl"] h5:not(.fa):not([class*="fa-"]), body[dir="rtl"] h6:not(.fa):not([class*="fa-"]) {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 700;
}

[lang="ar"] p:not(.fa):not([class*="fa-"]), [lang="ar"] span:not(.fa):not([class*="fa-"]), [lang="ar"] div:not(.fa):not([class*="fa-"]), [lang="ar"] a:not(.fa):not([class*="fa-"]), [lang="ar"] button:not(.fa):not([class*="fa-"]), [lang="ar"] input:not(.fa):not([class*="fa-"]), [lang="ar"] textarea:not(.fa):not([class*="fa-"]), [lang="ar"] label:not(.fa):not([class*="fa-"]),
[lang="ar-*"] p:not(.fa):not([class*="fa-"]), [lang="ar-*"] span:not(.fa):not([class*="fa-"]), [lang="ar-*"] div:not(.fa):not([class*="fa-"]), [lang="ar-*"] a:not(.fa):not([class*="fa-"]), [lang="ar-*"] button:not(.fa):not([class*="fa-"]), [lang="ar-*"] input:not(.fa):not([class*="fa-"]), [lang="ar-*"] textarea:not(.fa):not([class*="fa-"]), [lang="ar-*"] label:not(.fa):not([class*="fa-"]),
.arabic-text p:not(.fa):not([class*="fa-"]), .arabic-text span:not(.fa):not([class*="fa-"]), .arabic-text div:not(.fa):not([class*="fa-"]), .arabic-text a:not(.fa):not([class*="fa-"]), .arabic-text button:not(.fa):not([class*="fa-"]), .arabic-text input:not(.fa):not([class*="fa-"]), .arabic-text textarea:not(.fa):not([class*="fa-"]), .arabic-text label:not(.fa):not([class*="fa-"]),
.rtl p:not(.fa):not([class*="fa-"]), .rtl span:not(.fa):not([class*="fa-"]), .rtl div:not(.fa):not([class*="fa-"]), .rtl a:not(.fa):not([class*="fa-"]), .rtl button:not(.fa):not([class*="fa-"]), .rtl input:not(.fa):not([class*="fa-"]), .rtl textarea:not(.fa):not([class*="fa-"]), .rtl label:not(.fa):not([class*="fa-"]),
body[dir="rtl"] p:not(.fa):not([class*="fa-"]), body[dir="rtl"] span:not(.fa):not([class*="fa-"]), body[dir="rtl"] div:not(.fa):not([class*="fa-"]), body[dir="rtl"] a:not(.fa):not([class*="fa-"]), body[dir="rtl"] button:not(.fa):not([class*="fa-"]), body[dir="rtl"] input:not(.fa):not([class*="fa-"]), body[dir="rtl"] textarea:not(.fa):not([class*="fa-"]), body[dir="rtl"] label:not(.fa):not([class*="fa-"]) {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* DataTables and form elements - Exclude Font Awesome */
[lang="ar"] .dataTables_wrapper:not(.fa):not([class*="fa-"]),
[lang="ar-*"] .dataTables_wrapper:not(.fa):not([class*="fa-"]),
.arabic-text .dataTables_wrapper:not(.fa):not([class*="fa-"]),
.rtl .dataTables_wrapper:not(.fa):not([class*="fa-"]),
body[dir="rtl"] .dataTables_wrapper:not(.fa):not([class*="fa-"]) {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Ensure proper line height for Arabic text */
[lang="ar"]:not(.fa):not([class*="fa-"]), [lang="ar-*"]:not(.fa):not([class*="fa-"]), .arabic-text:not(.fa):not([class*="fa-"]), .rtl:not(.fa):not([class*="fa-"]), body[dir="rtl"]:not(.fa):not([class*="fa-"]) {
    line-height: 1.6;
}

/* Ensure Font Awesome and Glyphicons are not affected by Arabic font */
.fa, [class*="fa-"], .fas, .far, .fab,
.glyphicon, [class*="glyphicon-"] {
    font-family: "FontAwesome" !important;
}

/* Force Glyphicons in all contexts - HIGHEST PRIORITY */
.glyphicon,
[class*="glyphicon-"],
i.glyphicon,
i[class*="glyphicon-"],
button .glyphicon,
button [class*="glyphicon-"],
.btn .glyphicon,
.btn [class*="glyphicon-"],
a .glyphicon,
a [class*="glyphicon-"],
.dataTables_wrapper .glyphicon,
.dataTables_wrapper [class*="glyphicon-"],
table.dataTable .glyphicon,
table.dataTable [class*="glyphicon-"],
.dataTables_scrollBody .glyphicon,
.dataTables_scrollBody [class*="glyphicon-"],
[lang="ar"] .glyphicon,
[lang="ar"] [class*="glyphicon-"],
[lang="ar-*"] .glyphicon,
[lang="ar-*"] [class*="glyphicon-"],
.arabic-text .glyphicon,
.arabic-text [class*="glyphicon-"],
.rtl .glyphicon,
.rtl [class*="glyphicon-"],
body[dir="rtl"] .glyphicon,
body[dir="rtl"] [class*="glyphicon-"] {
    font-family: 'Glyphicons Halflings' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    position: relative !important;
    top: 1px !important;
    display: inline-block !important;
}

/* Highest priority rule for forced Glyphicons */
.glyphicon-forced,
.glyphicon-forced[class*="glyphicon-"],
.glyphicon-forced.glyphicon {
    font-family: 'Glyphicons Halflings' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    position: relative !important;
    top: 1px !important;
    display: inline-block !important;
}

/* Specific Glyphicons for action buttons */
.btn .glyphicon,
.btn [class*="glyphicon-"],
.btn-xs .glyphicon,
.btn-xs [class*="glyphicon-"] {
    font-family: 'Glyphicons Halflings' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Override any Arabic font styling for Glyphicons */
[lang="ar"] .glyphicon,
[lang="ar"] [class*="glyphicon-"],
[lang="ar-*"] .glyphicon,
[lang="ar-*"] [class*="glyphicon-"],
.arabic-text .glyphicon,
.arabic-text [class*="glyphicon-"],
.rtl .glyphicon,
.rtl [class*="glyphicon-"],
body[dir="rtl"] .glyphicon,
body[dir="rtl"] [class*="glyphicon-"] {
    font-family: 'Glyphicons Halflings' !important;
}

/* DataTables specific Glyphicons protection */
.dataTables_wrapper .glyphicon,
.dataTables_wrapper [class*="glyphicon-"],
table.dataTable .glyphicon,
table.dataTable [class*="glyphicon-"],
.dataTables_scrollBody .glyphicon,
.dataTables_scrollBody [class*="glyphicon-"] {
    font-family: 'Glyphicons Halflings' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.jquery-top-scrollbar{
    height: 6px !important;
}
.jquery-top-scrollbar div {
    height: 6px !important;
}
.scroll-top-bottom {
    width: 100%;
    overflow: scroll;
}
.scroll-top-bottom::-webkit-scrollbar {
    height: 6px;
}

.scrolltop {
    display:none;
    width:100%;
    margin:0 auto;
    position:fixed;
    bottom:20px;
    right:10px;
}
.scroll {
    position:absolute;
    right:20px;
    bottom:20px;
    background:#b2b2b2;
    background:rgba(178,178,178,0.7);
    padding:7px;
    text-align: center;
    margin: 0 0 0 0;
    cursor:pointer;
    transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    border-radius: 6px;
}
.scroll:hover {
    background:rgba(178,178,178,1.0);
    transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
}
.scroll:hover .fas {
    padding-top:-10px;
}
.scroll .fas {
    font-size:25px;
    margin-top:-5px;
    margin-left:1px;
    transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
}

.f-left {
    float: left;
}
.align-left {
    text-align: left;
}
.align-right {
    text-align: right;
}

.table-pdf {
    border-collapse: collapse;
    width: 100%;
    border-spacing: 8px 10px;
}
.td-border td, .td-border th{
    border-bottom: 1px solid lightgrey;
    padding: 8px 5px;
}

.ws-nowrap {
    white-space:nowrap;
}

.btn-app>.fas, .btn-app>.fab{
    font-size: 20px;
    display: block;
}
.dropdown-menu>li>a>.fas{
    margin-right: 6px;
}
.mt-5 {
    margin-top: 5px !important;
}
.pos-form-actions{
    height: auto;
    padding-top: 12px;
    padding-bottom: 20px;
    position: fixed;
    bottom: 0px;
    background-color: #D1D5DC;
    width: 100%;
    z-index: 1000;
}
.mb-12 {
    margin-bottom: 12px !important;
}
.pb-0{
    padding-bottom: 0px !important;
}
.pr-12{
    padding-right: 12px !important;
}
.main-header .sidebar-toggle:before {
    content: "" !important;
}
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
}
.margin-bottom-20 {
    margin-bottom: 20px !important;
}
.text-white {
    color: #fff;
}
.wizard > .steps > ul > li {
    width: 33.33% !important;
}
.wizard > .content {
    background: #445867 !important;
}
legend {
    color: #fff;
    margin-bottom: 6px;
    border-bottom: none;
}
.left-col {
    background: linear-gradient(0deg,rgba(0, 0, 0, 0.76),rgba(51, 51, 51, 0.32)),url(../img/home-bg.jpg);
    text-align: center;
    background-size: cover;
    background-position: center;
}
.left-col-content {
    color: #1A7BF9;
    width: 100%;
}
.login-header {
    font-size: 27px;
    font-weight: 600;
}
.login-header a {
    color: #fff;
}
.form-header {
    font-size: 18px;
    margin: 16px 0;
}
.btn-login {
    padding: 6px 52px !important;
}
.right-col {
    background-color: #243949;
    color: #fff; height: 100%;
    min-height: 100vh;
}
.right-col a, .text-white a {
    color: #fff;
    font-weight: 600;
    font-size: 15px
}
.right-col a:hover, .text-white a:hover {
    color: #ccc;
}
.right-col-content {
    padding: 10% 16%;
    padding-bottom: 3%;
}
.right-col-content-register {
    padding: 2% 8%;
}

.input_inline {
    width: 100%;
    display: inline-flex;
}
.input_inline input, .input_inline span {
    width: 50%;
}
.bg-manufacturing {
    background-color: #ff851b;
}
.img-thumbnail {
    position: relative;
    width: 70px;
    height: 70px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    transition: border .2s ease-in-out;
    padding: 4px;
    margin: 3px;
    text-align: center;
}
.img-thumbnail>.badge{
    position: absolute;
    top: -5px;
    right: -7px;
    font-size: 9px;
    font-weight: 400;
    cursor: pointer;
}
.navbar-nav>.notifications-menu>.dropdown-menu>li .menu {
    max-height: 350px;
}
.bg-aqua-lite {
    background-color: #7FFFD4;
}
.navbar-nav>.notifications-menu>.dropdown-menu>li .menu>li>a {
    white-space: normal;
}
.spacer {
    margin-top: 20px;
}
#product_list_body {
    max-height: 485px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.div-overlay {
    cursor: not-allowed;
    background: #e9e9e9;
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
}

.d-inline-table {
    display: inline-table;
}

.label-round{
    font-size: 8px;
    border-radius: 44%;
}
.table>tbody+tbody{
    border-top: 0;
}
.table-pl-12 td, .table-pl-12 th{
    padding-left: 12px !important;
}
table tbody td.pl-20-td{
    padding-left: 20px !important;
}
table.table-border-center > tbody > tr > td:first-child,
table.table-border-center > thead > tr > th:first-child,
table.table-border-center > tfoot > tr > td:first-child
{
    border-right: 1px solid darkgray;
}
table.table-border-center-col > tbody > tr > td:nth-child(2),
table.table-border-center-col > thead > tr > th:nth-child(2),
table.table-border-center-col > tfoot > tr > td:nth-child(2)
{
    border-right: 1px solid darkgray;
    border-left: 1px solid darkgray;
}
.bg-transparent{
    background-color: transparent !important;
}
.mb-0{
    margin-bottom: 0;
}

.nav-tabs>li>a{
    font-size: 18px;
    font-weight: 600;
}
.table-transparent, .table-transparent th {
    background-color: transparent !important;
    color: #000 !important;
}
.td-full-width {
    white-space:nowrap;
}
.font-17{
    font-size: 17px !important;
}
table.dataTable tbody>tr.selected{
    background-color: #B0BED9;
}
tr.footer-total > td {
    vertical-align: middle !important;
}
.error{
    color: red !important;
}
/*  pos tab */
div.pos-tab-container{
    z-index: 10;
    background-color: #ffffff;
    padding: 0 !important;
    border-radius: 4px;
    -moz-border-radius: 4px;
    border:1px solid #ddd;
    margin-bottom: 28px;
    -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    -moz-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    background-clip: padding-box;
}
div.pos-tab-menu{
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 0;
}
div.pos-tab-menu div.list-group{
    margin-bottom: 0;
}
div.pos-tab-menu div.list-group>a{
    margin-bottom: 0;
}
div.pos-tab-menu div.list-group>a .glyphicon,
div.pos-tab-menu div.list-group>a .fa {
    color: #5A55A3;
}
div.pos-tab-menu div.list-group>a:first-child{
    border-top-right-radius: 0;
    -moz-border-top-right-radius: 0;
}
div.pos-tab-menu div.list-group>a:last-child{
    border-bottom-right-radius: 0;
    -moz-border-bottom-right-radius: 0;
}
div.pos-tab-menu div.list-group>a.active,
div.pos-tab-menu div.list-group>a.active .glyphicon,
div.pos-tab-menu div.list-group>a.active .fa{
    background-color: #3c8dbc;
    color: #ffffff;
    border-color: #3c8dbc;
}
div.pos-tab-menu div.list-group>a.active:after{
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -13px;
    border-left: 0;
    border-bottom: 13px solid transparent;
    border-top: 13px solid transparent;
    border-left: 10px solid #3c8dbc;
}

div.pos-tab-content{
    background-color: #ffffff;
    /* border: 1px solid #eeeeee; */
    padding-left: 20px;
    padding-top: 20px;
}

div.pos-tab div.pos-tab-content:not(.active){
    display: none;
}

.add-product-price-table th{
    background-color: #5cb85c;
    color: white;
}
.blue-header th {
    background-color: #3c8dbc;
    color: white;
}
.table-th-green th{
    background-color: #5cb85c;
    color: white;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}
.active-cell {
    border: 2px dotted #3c8dbc !important;
}
.cursor-pointer{
    cursor: pointer !important;
}
.pos_product_div{
    min-height: 57vh;
    max-height: 57vh;
    overflow-y: auto;
    margin-bottom: 20px;
}
.bg-lightgray{
    background-color: #F0EDED !important;
}
.balance_due_box >li{
    padding: 11px 5px 0px 5px;
}
.option-div {
    padding: 15px;
    background-color: #d2d6de;
    color: #333;
    border:1px solid #d2d6de;
    cursor: pointer;
}
.option-div input[type="radio"]{
    display: none;
}
.option-div-group .icon {
    color: #d33724;
    display: none;
}
.option-div-group .option-div:hover{
    border:1px solid gray;
}
.option-div-group .active .icon{
    display: block;
}
.margin-left-10 {
    margin-left: 10px;
}
.margin-bottom-12{
    margin-bottom: 12px;
}
.bg-info{
    background-color: #00c0ef !important;
}
.bg-info > a{
    color: #FFFFFF !important;
}
.bg-info>a:hover{
    background-color: #337ab7 !important;
}
ul.dt-button-collection{
    background-color: #00c0ef;
}
td.details-control {
    background: url('/img/details_open.png') no-repeat center center;
    cursor: pointer;
}
tr.details td.details-control {
    background: url('/img/details_close.png') no-repeat center center;
}
.icheckbox_square-blue, .iradio_square-blue{
    margin-right: 10px;
}
.header-right-div{
    right: 10px;
    float: right;
    position: absolute;
    top: 15px;
}
.header-left-div{
    margin-top: 15px;
    display: inline-flex;
}
.m-8 {
    margin: 8px;
}
.mt-10{
    margin-top: 10px;
}
.mt-15{
    margin-top: 15px;
}
.m-5 {
    margin: 5px;
}
.icon-link{
    text-align:center;
    display:block;
    margin-bottom: 18px;
}
.icon-link > a {
    display:grid;
}
.icon-link > .badge{
    position: absolute;
    top: 20px;
    right: 67px;
}
.link-des {
    display: inline-block;
    text-align: left;
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header>img {
    border: none;
    height: auto;
    width: 100%;
    max-height: 120px;
}
.bg-light-green{
    background-color: #98D973 !important;
    color: #fff !important
}
.hover-q {
    font-size: 16px;
    margin-left: 3px;
    cursor: help;
}
.input-group-addon .hover-q{
    margin-left: 0px;
}
.text-bold{
    font-weight: bold;
}
.tour .popover-content{
    padding: 18px 14px;
}
.table-slim>tbody>tr>td, .table-slim>tbody>tr>th, .table-slim>tfoot>tr>td, .table-slim>tfoot>tr>th, .table-slim>thead>tr>td, .table-slim>thead>tr>th{
    padding: 1px;
}

/* Custom scroll bar start*/

/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom scroll bar end*/

.product_cell{
    height: 100px;
    padding: 1%;
}
.product_cell_div{
    height: 100% !important;
    width: 100% !important;
    text-align: center;
    vertical-align: middle;
    padding-top: 5px;
    cursor: pointer;
    overflow: hidden;
}

/*CSS to print receipts*/
.print_section{
    display: none;
}
@media print{
    .print_section{
        display: inline !important;
    }
    .modal-xl{
        width: 100% !important;
    }
    ::-webkit-scrollbar{
        display: none !important;
    }
    #toast-container {
        display: none;
    }
}

.input-number .btn-default{
    background-color: white;
    padding: 6px 9px;
}

.width-50{
    width: 50% !important;
}
.width-40{
    width: 40% !important;
}
.width-60{
    width: 60% !important;
}
.width-100{
    width: 100% !important;
}

.font-30{
    font-size: 30px !important;
}

.font-23{
    font-size: 23px !important;
}
.padding-5{
    padding: 5px !important;
}
.padding-10{
    padding: 10px !important;
}
.padding-side-15{
    /*padding-left: 15px !important;
    padding-right: 15px !important;*/
}
.text-muted-imp{
    color: #A3A3A3 !important;
}

.table-no-top-cell-border td{
    border-top: 0px !important;
    border-bottom: 0px !important;
}
.table-no-top-cell-border th{
    border-top: 0px !important;
    border-bottom: 0px !important;
}

.table-no-side-cell-border td{
    border-left: 0px !important;
    border-right: 0px !important;
}
.table-no-side-cell-border th{
    border-left: 0px !important;
    border-right: 0px !important;
}

.color-555 {
    color: #555555 !important;
}
.color-555 *{
    color: #555555 !important;
}
.color-white {
    color: white !important;
}
.col-no-padding{
    padding-left: 0px;
    padding-right: 0px;
}
.col-2px-padding{
    padding: 2px;
}

.pos-express-btn{
    overflow: hidden !important;
    height: 73px !important;
}
.word-wrap{
    word-wrap: break-word !important;
}

.modal-xl{
    width: 90%; /* respsonsive width */
    margin-left: auto !important;
    margin-right: auto !important;
}
table.ajax_view tbody tr{
    cursor: pointer;
}
.bg-white{
    background-color: #fff;
}

.product-thumbnail-small{
    height: 50px;
    width: 50px;
}

table.table-text-center td, table.table-text-center th{
    vertical-align: middle !important;
}
.product_list{
    padding-left: 8px;
    padding-right: 8px;
}
.product_box{
    width: 100%;
    /*padding-top: 5px;
    padding-bottom: 2px;*/
    margin-bottom: 10px;
    text-align: center;
    cursor: pointer;
    /*border: 1px solid darkgray;*/
    font-weight: 600;
    background-color: #fff;
    border-radius: 2px;
    padding-top: 3px;
}
.product_box .image-container{
    /*width: 95%;*/
    height: 55px;
    margin: auto;
    /*padding-top: 5px;*/

}
.product_box .image-container img{
    height: 45px;
    /*width: 45px*/
}
.eq-height-row{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:flex;
    flex-wrap: wrap;
}
.eq-height-col{
    display: flex;
}

.product_box .text_div{
    margin-top: 3px;
}
.product_box .text{
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* number of lines to show */
    line-height: 14px;        /* fallback */
    max-height: 14px;       /* fallback */
}
.small-box.bg-gray:hover{
    color: #000;
    text-decoration: none;
}

#calendar table tbody td {
    cursor: pointer;
}

.min-height-90hv{
    min-height: 90vh !important;
}

/* Grow Shadow */
.hvr-grow-shadow {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: box-shadow, transform;
    transition-property: box-shadow, transform;
}
.hvr-grow-shadow:hover, .hvr-grow-shadow:focus, .hvr-grow-shadow:active {
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.text-link{
    cursor: pointer;
}

.text-link:hover{
    text-decoration: underline;
}

.v-center{
    vertical-align: middle !important;
}

.bg-woocommerce{
    background-color: #9E458B !important;
}

/*.box, .info-box, .nav-tabs-custom, .external-event{
  box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2) !important;
}*/

.user_avatar {
    border-radius: 50%;
    width: 25px;
    height: 25px;
    margin: 1px;
}

/* Sidebar Menu Text Overflow Fix */
.sidebar-menu .treeview-menu > li > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.sidebar-menu .treeview-menu > li > a span.title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: calc(100% - 30px); /* Account for icon width */
}

/* Ensure sidebar menu items don't break layout */
.sidebar-menu > li > a > span:first-of-type {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: calc(100% - 60px); /* Account for icon and arrow */
}

/* Responsive sidebar improvements */
@media (max-width: 768px) {
    .main-sidebar {
        width: 100% !important;
        max-width: 280px;
    }
    
    .sidebar-menu > li > a > span:first-of-type {
        max-width: calc(100% - 50px);
    }
}

/* Hover tooltip for truncated text */
.sidebar-menu .treeview-menu > li > a:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 10px;
    display: none;
}

.sidebar-menu .treeview-menu > li > a:hover:hover::after {
    display: block;
}

/* Ensure proper spacing for menu items */
.sidebar-menu .treeview-menu > li > a {
    padding: 8px 15px 8px 35px;
    position: relative;
}

.sidebar-menu .treeview-menu > li > a i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
}

/* DataTables Responsive Fix - Show horizontal scroll when needed */
.table-responsive {
    overflow-x: auto;
}

/* Override DataTables max-width issue */
.table-responsive .dataTables_wrapper {
    width: 100%;
}

.table-responsive table.dataTable {
    max-width: 100% !important;
    width: 100% !important;
}

.table-responsive .dataTables_scrollHead,
.table-responsive .dataTables_scrollBody {
    width: 100% !important;
}

/* Ensure table cells don't force width beyond container */
.table-responsive table.dataTable th,
.table-responsive table.dataTable td {
    max-width: none;
    white-space: normal;
    word-wrap: break-word;
}

/* Fix action column width */
.table-responsive table.dataTable th:last-child,
.table-responsive table.dataTable td:last-child {
    min-width: 120px;
    max-width: 150px;
}

/* File Input Button Styling Fixes */
.fileinput-remove {
    background-color: #d9534f !important;
    border-color: #d43f3a !important;
    color: white !important;
}

.fileinput-remove:hover {
    background-color: #c9302c !important;
    border-color: #ac2925 !important;
    color: white !important;
}

.btn-file {
    background-color: #337ab7 !important;
    border-color: #2e6da4 !important;
    color: white !important;
}

.btn-file:hover {
    background-color: #286090 !important;
    border-color: #204d74 !important;
    color: white !important;
}

/* Ensure file input icons display properly */
.fileinput-remove .glyphicon,
.btn-file .glyphicon {
    font-family: 'Glyphicons Halflings' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    position: relative !important;
    top: 1px !important;
    display: inline-block !important;
}

/* File input Font Awesome icons */
.fileinput-remove .fa,
.btn-file .fa {
    font-family: "FontAwesome" !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    position: relative !important;
    top: 1px !important;
    display: inline-block !important;
}

/* Force Font Awesome icons in POS buttons */
.pos-form-actions .fa,
.pos-form-actions .fas,
.pos-form-actions .far,
.pos-form-actions .fab {
    font-family: "FontAwesome" !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    position: relative !important;
    top: 1px !important;
    display: inline-block !important;
}

/* Override any conflicting icon styles */
.btn .fa,
.btn .fas,
.btn .far,
.btn .fab {
    font-family: "FontAwesome" !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    position: relative !important;
    top: 1px !important;
    display: inline-block !important;
}