@media (max-width: 767px) {
    .main-header .navbar-custom-menu {
        float: none !important;
        display: block !important;
    }
    .main-header .navbar-custom-menu .dropdown-menu {
        left: auto !important;
    }
    .skin-blue-light .main-header .navbar .dropdown-menu li a {
        color: #777;
    }
    .main-header .navbar {
      height: auto;
    }
}
.bg-danger {
    background-color: #f2dede !important;
}
.btn-big {
    padding: 10px 30px;
    font-size: 18px;
    line-height: 1.3333333;
}

/* Unfreeze DataTables scroll panes — page scroll + sticky header (like product list) */
:root {
    --upos-top-nav-height: 60px;
    --upos-list-nav-height: 0px;
    --upos-content-header-height: 0px;
    --upos-list-nav-sticky-top: 60px;
    --upos-list-sticky-offset: 60px;
    --upos-table-sticky-top: 60px;
}

.upos-sticky-top-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1040;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    body:not(.lockscreen) .upos-sticky-top-nav {
        left: 16rem;
    }
}

main {
    padding-top: var(--upos-top-nav-height, 60px);
}

aside.side-bar .upos-sticky-sidebar-brand {
    height: var(--upos-top-nav-height, 60px);
    min-height: var(--upos-top-nav-height, 60px);
    max-height: var(--upos-top-nav-height, 60px);
    overflow: hidden;
}

aside.side-bar .upos-sticky-sidebar-brand img,
aside.side-bar .upos-sidebar-brand-logo {
    display: block;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 50%;
    object-fit: cover !important;
    flex-shrink: 0;
}

aside.side-bar {
    overflow-x: hidden;
}

body.lockscreen .upos-sticky-top-nav.pos-header {
    z-index: 1050;
    background-color: #fff;
}

/* Sidebar: fixed viewport, header fixed, menu list scrolls with styled scrollbar */
@media (min-width: 1024px) {
    body:not(.lockscreen) .app-shell {
        padding-left: 16rem;
    }

    aside.side-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 16rem;
        display: flex;
        flex-direction: column;
        height: 100vh;
        max-height: 100vh;
        min-height: 0;
        overflow: hidden;
        z-index: 1038;
    }

    aside.side-bar .upos-sticky-sidebar-brand {
        position: relative;
        top: auto;
        z-index: 4;
        flex-shrink: 0;
        height: var(--upos-top-nav-height, 60px);
        min-height: var(--upos-top-nav-height, 60px);
        max-height: var(--upos-top-nav-height, 60px);
        overflow: hidden;
    }

    aside.side-bar #side-bar {
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 0;
        flex: 1 1 auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #6b7280 #e5e7eb;
    }

    aside.side-bar #side-bar::-webkit-scrollbar {
        width: 10px;
    }

    aside.side-bar #side-bar::-webkit-scrollbar-track {
        background: #e5e7eb;
        border-radius: 999px;
        margin: 4px 0;
    }

    aside.side-bar #side-bar::-webkit-scrollbar-thumb {
        background: #6b7280;
        border-radius: 999px;
        border: 2px solid #e5e7eb;
        min-height: 48px;
    }

    aside.side-bar #side-bar::-webkit-scrollbar-thumb:hover {
        background: #4b5563;
    }

    aside.side-bar {
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    body.sidebar-collapse:not(.lockscreen) .app-shell {
        padding-left: 0;
    }

    body.sidebar-collapse:not(.lockscreen) .upos-sticky-top-nav {
        left: 0;
    }

    body.sidebar-collapse aside.side-bar {
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
    }

    body.sidebar-collapse .side-bar-collapse svg {
        transform: scaleX(-1);
    }
}

@media (max-width: 1023px) {
    :root {
        --upos-top-nav-height: 52px;
        --mobile-sidebar-width: min(78vw, 280px);
    }

    aside.side-bar {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: var(--mobile-sidebar-width);
        max-width: var(--mobile-sidebar-width);
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        z-index: 1038;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.25s ease, visibility 0.25s ease;
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    body.mobile-sidebar-collapsed aside.side-bar {
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
    }

    body:not(.mobile-sidebar-collapsed):not(.lockscreen) .upos-sticky-top-nav {
        left: 0;
    }

    body:not(.mobile-sidebar-collapsed):not(.lockscreen) main {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    body:not(.mobile-sidebar-collapsed) .overlay {
        display: block !important;
    }

    body.mobile-sidebar-open {
        overflow: hidden;
    }

    aside.side-bar {
        z-index: 1050;
    }

    .upos-sticky-top-nav {
        z-index: 1060;
    }

    .overlay {
        display: none;
        z-index: 1040;
    }

    aside.side-bar #side-bar {
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 0;
        flex: 1 1 auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #6b7280 #e5e7eb;
    }

    aside.side-bar #side-bar span,
    aside.side-bar #sidebar-menu-home span,
    aside.side-bar .drop_down span,
    aside.side-bar .chiled a span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.35;
    }

    aside.side-bar #side-bar a,
    aside.side-bar #sidebar-menu-home,
    aside.side-bar .drop_down {
        white-space: normal;
    }

    aside.side-bar .side-bar-heading {
        font-size: 0.95rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .side-bar-collapse {
        display: inline-flex !important;
        min-width: 2.5rem;
        min-height: 2.5rem;
        flex-shrink: 0;
    }

    .side-bar-collapse svg {
        transition: transform 0.25s ease;
    }

    body.mobile-sidebar-collapsed .side-bar-collapse svg {
        transform: none;
    }

    body:not(.mobile-sidebar-collapsed) .side-bar-collapse svg {
        transform: scaleX(-1);
    }
}

/* Module / HRM list menu navigator (tabs bar under main header) */
#scrollable-container section.no-print > nav.navbar.navbar-default,
.upos-sticky-list-nav {
    position: sticky;
    top: var(--upos-list-nav-sticky-top, var(--upos-top-nav-height, 60px));
    z-index: 1035;
    background-color: #fff;
    margin: 0 0 12px 0 !important;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Page title (content-header) scrolls with the page — not frozen */
#scrollable-container section.content-header {
    position: static;
    z-index: auto;
    background-color: transparent;
    box-shadow: none;
}

.upos-unfreeze-scroll,
.product-table-scroll {
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

/* Single horizontal scrollbar: host scrolls, table content keeps full width */
.upos-unfreeze-scroll > .dataTables_wrapper,
.table-responsive > .dataTables_wrapper {
    overflow: visible !important;
    width: max-content;
    min-width: 100%;
    max-width: none !important;
}

.table-responsive .upos-unfreeze-scroll,
[class*="overflow-x-auto"] .upos-unfreeze-scroll,
.upos-unfreeze-scroll [class*="overflow-x-auto"] {
    overflow-x: visible !important;
    overflow-y: visible !important;
    width: 100%;
    max-width: 100%;
}

.dataTables_wrapper {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
}

.upos-unfreeze-scroll table.dataTable,
.table-responsive table.dataTable {
    width: auto !important;
    min-width: 100%;
    max-width: none !important;
}

.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollFoot {
    overflow: hidden !important;
}

/* One horizontal bar at the bottom: the inner DataTables scroller must not add a second one. */
.table-responsive .dataTables_wrapper,
.upos-unfreeze-scroll .dataTables_wrapper,
.product-table-scroll .dataTables_wrapper {
    overflow: visible !important;
    max-width: none !important;
}
.dataTables_scroll,
.dataTables_scrollHead,
.dataTables_scrollHeadInner,
.dataTables_scrollFoot,
.dataTables_scrollFootInner,
.dataTables_scrollBody {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}
.table-responsive,
.upos-unfreeze-scroll,
.product-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
}
.upos-unfreeze-scroll table.dataTable thead th,
.upos-unfreeze-scroll .dataTables_scrollBody table.dataTable thead th {
    position: sticky;
    top: var(--upos-table-sticky-top, var(--upos-top-nav-height, 60px));
    z-index: 2;
    background-color: #f5f5f5;
    box-shadow: 0 1px 0 #e0e0e0;
}

/* Product list: single header row — sticky per-cell breaks column alignment */
#product_table_wrapper table.dataTable thead th,
#product_table thead th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
}

/* Fallback: neutralize legacy DataTables frozen panes if scrollY slipped through */
.dataTables_wrapper .dataTables_scrollBody {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.dataTables_wrapper .dataTables_scroll {
    overflow: visible !important;
}

@media print {
    body:not(.lockscreen) aside.side-bar,
    body:not(.lockscreen) .upos-sticky-top-nav,
    body:not(.lockscreen) .sage-rail-toggle,
    body:not(.lockscreen) .sage-right-rail,
    #scrollable-container section.no-print > nav.navbar.navbar-default,
    section.content-header {
        display: none !important;
    }
}

.of-visible {
    overflow: visible !important;
}

#online_indicator {
  font-size: 8px;
  vertical-align: middle;
}

.pt-0 {
  padding-top: 0px;
}
.f-right {
  float: right;
}
.mb-10 {
  margin-bottom: 10px;
}
.discount-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 18px;
  padding: 7px;
}

.discount-badge-small {
  position: absolute;
  top: -2px;
  left: 10px;
  font-size: 12px;
  padding: 6px;
}
.product-info-table td, .product-info-table th {
  font-size: 12px;
}
.catalogue {
  max-height: 127px;
  margin: auto;
  margin-bottom: 18px;
}
.catalogue-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
  margin-bottom: 10px;
}
.bg-light-gray {
  background-color: #f8f8f8 !important;
}
.p-5-5 {
  padding: 5px 5px !important;
}
.m-4 {
  margin: 4px;
}
.skin-black .main-header, .skin-black-light .main-header {
  color: #525f7f !important;
}
.skin-black .main-header .navbar .nav .open>a {
  color: #999 !important;
}
.skin-black .main-header .navbar .nav>li>a:hover{
  color: #999 !important;
}
.skin-black .main-header .navbar > .sidebar-toggle:hover {
  color: #999 !important;
}
.mt-0{
  margin-top: 0 !important;
}
.table-pdf thead tr{
  background-color: #357ca5 !important;
  color: #fff;
}
.table-pdf thead tr th {
  color: #fff !important;
}
.blue-heading {
  background-color: #357ca5;
  color: #fff;
}

.table-pdf .odd {
    background-color: #DCE6F1;
}
.p-4{
  padding: 4px;
}
.p-10{
  padding: 10px !important;
}
.jquery-top-scrollbar {
    height: var(--upos-scrollbar-size) !important;
}
.jquery-top-scrollbar div {
    height: var(--upos-scrollbar-size) !important;
    border-radius: 999px;
    background: var(--upos-scrollbar-thumb) !important;
}
.scroll-top-bottom {
  width: 100%; 
  overflow: scroll;
}

.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: #fff;
  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: #044555 !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: #fff;
  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: #044555;
  height: 100%;
  min-height: 70vh;
} */

/* Background color added by Prashant */
.right-col {
  background: linear-gradient(to right, #9c0707, #044555);
  height: 200%;
  min-height: 70vh;
}

/* .right-col label {
  color: #fff;
}

.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;
}
.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a .notif-icon {
  width: 40px !important;
  line-height: 40px !important;
}
.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: var(--pos-tab-icon, #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,
div.pos-tab-menu div.list-group > a.active .glyphicon,
div.pos-tab-menu div.list-group > a.active .fa {
  background: linear-gradient(to right, var(--pos-tab-active-from, #1B6C93), var(--pos-tab-active-to, #155a7a));
  color: var(--pos-tab-active-text, #ffffff);
  border-color: var(--pos-tab-active-from, #1B6C93);
}


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 var(--pos-tab-active-from, #1B6C93);
}

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: #216D91;
    color: white;
}
.blue-header th {
	background-color: #3c8dbc;
    color: white;
}
.table-th-green th{
	background-color: #216D91;
    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: 47vh;
    max-height: 57vh; */
    overflow-y: auto;
    /* margin-bottom: 20px; */
    height: 40vh !important;
}
body.pos-create-page.lockscreen .pos_product_div {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}
.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,
div.dt-button-collection {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
    padding: 8px !important;
}
ul.dt-button-collection .dt-button,
div.dt-button-collection .dt-button,
ul.dt-button-collection button.dt-button,
div.dt-button-collection button.dt-button,
ul.dt-button-collection a.dt-button,
div.dt-button-collection a.dt-button {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
ul.dt-button-collection .dt-button.active,
ul.dt-button-collection .dt-button:active:not(.disabled),
div.dt-button-collection .dt-button.active,
div.dt-button-collection .dt-button:active:not(.disabled) {
    background: #216D91 !important;
    background-color: #216D91 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #216D91 !important;
}
ul.dt-button-collection .dt-button:hover:not(.active),
div.dt-button-collection .dt-button:hover:not(.active) {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    border-color: #d1d5db !important;
}
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 — tactile, visible partout */
:root {
    --upos-scrollbar-size: 16px;
    --upos-scrollbar-track: #eceff3;
    --upos-scrollbar-thumb: #5a6472;
    --upos-scrollbar-thumb-hover: #434b57;
    scrollbar-color: var(--upos-scrollbar-thumb) var(--upos-scrollbar-track);
    scrollbar-width: auto;
}

html {
    overflow-y: scroll;
}

@media print {
    html, body {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        scrollbar-width: none !important;
    }
    *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

html,
body,
#scrollable-container,
.modal-body,
.modal-content,
.table-responsive,
.dataTables_wrapper,
.dataTables_scrollBody,
.select2-results__options,
.dropdown-menu,
.well,
.pos-create-sidebar-wrap,
#product_list_body,
.scroll-top-bottom,
.jquery-top-scrollbar,
[class*="overflow-auto"],
[class*="overflow-y-auto"],
[class*="overflow-x-auto"] {
    scrollbar-color: var(--upos-scrollbar-thumb) var(--upos-scrollbar-track);
    scrollbar-width: auto;
    -webkit-overflow-scrolling: touch;
}

*::-webkit-scrollbar {
    width: var(--upos-scrollbar-size);
    height: var(--upos-scrollbar-size);
}

*::-webkit-scrollbar-track {
    background: var(--upos-scrollbar-track);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--upos-scrollbar-thumb);
    border-radius: 999px;
    border: 3px solid var(--upos-scrollbar-track);
    min-height: 56px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--upos-scrollbar-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
    background-color: #363c47;
}

*::-webkit-scrollbar-corner {
    background: var(--upos-scrollbar-track);
}

.scroll-top-bottom::-webkit-scrollbar {
    height: var(--upos-scrollbar-size);
}

.dataTables_wrapper .jquery-top-scrollbar {
    display: none !important;
}

/* 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{
    .upos-h-bar,
    .sell-h-bar {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
    }
    /* Infobulles POS (ex. taxe de commande) — ne jamais imprimer à côté du ticket */
    .popover,
    .tooltip,
    .popover-content,
    .tooltip-inner {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    .print_section{
        display: inline !important;
    }

    /* Bon de livraison / bordereau / facture depuis /sells (hors POS ticket 80mm) */
    body.printing-document:not(.lockscreen) aside.side-bar,
    body.printing-document:not(.lockscreen) .upos-sticky-top-nav,
    body.printing-document:not(.lockscreen) #scrollable-container,
    body.printing-document:not(.lockscreen) .scrolltop,
    body.printing-document:not(.lockscreen) .overlay,
    body.printing-document:not(.lockscreen) #app,
    body.printing-document:not(.lockscreen) .modal,
    body.printing-document:not(.lockscreen) .small-view-side-active {
        display: none !important;
    }

    body.printing-document:not(.lockscreen) main {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }

    body.printing-document:not(.lockscreen) .print_section {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        color: #000 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document,
    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .row {
        display: block !important;
        width: 100% !important;
        clear: both !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .row:before,
    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .row:after {
        display: table !important;
        content: " " !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .row:after {
        clear: both !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .invoice-col,
    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .width-50,
    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .col-md-6 {
        float: left !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .col-xs-12,
    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .width-100,
    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .width-80 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .table {
        width: 100% !important;
        page-break-inside: auto !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .table td,
    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document .table th {
        border: 1px solid #333 !important;
        padding: 4px 6px !important;
        vertical-align: top !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document img {
        max-width: 100% !important;
        height: auto !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .sales-a4-document img.invoice-signature-img {
        display: block !important;
        width: 46mm !important;
        height: 30mm !important;
        max-width: 46mm !important;
        max-height: 30mm !important;
        object-fit: contain !important;
        object-position: right center !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .modern-blue-invoice,
    body.printing-document:not(.lockscreen) #receipt_section .marine-inv-wrap,
    body.printing-document:not(.lockscreen) #receipt_section .ticket {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .marine-inv-totals,
    body.printing-document:not(.lockscreen) #receipt_section .marine-inv-totals-inner {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8mm 10mm !important;
        color: #111827 !important;
        font-size: 12px !important;
        background: #fff !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .no-print {
        display: none !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .modal-header,
    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .modal-body,
    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-detail-header {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: 0 !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-detail-header {
        background: #1B6C93 !important;
        color: #fff !important;
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-detail-title {
        color: #fff !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .table td,
    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .table tbody th {
        border: 1px solid #cbd5e1 !important;
        padding: 4px 6px !important;
        color: #111827 !important;
        background: #fff !important;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-show-lines-table thead th,
    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-show-payment-table thead th {
        background: #1B6C93 !important;
        color: #fff !important;
        border-color: #155a7a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-show-lines-table tbody tr:nth-child(even) td {
        background: #f8fbfd !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-show-totals-table tr.purchase-total-row th,
    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-show-totals-table tr.purchase-total-row td {
        background: #eef8fb !important;
        color: #0f4a62 !important;
        font-weight: 700 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document .purchase-note-box {
        background: #f3f9fc !important;
        border: 1px solid #c5dde8 !important;
        border-left: 4px solid #1B6C93 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.printing-document:not(.lockscreen) #receipt_section .purchase-print-document img {
        max-width: 100% !important;
        height: auto !important;
    }

    body.lockscreen {
        width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }
    /* Facture POS : pas de bande vide au-dessus du logo (espace réservé au header fixe) */
    html:has(body.lockscreen),
    body.lockscreen .tw-min-h-screen,
    body.lockscreen main,
    body.lockscreen #scrollable-container,
    body.lockscreen #app {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        overflow: visible !important;
    }
    body.lockscreen .pos-header,
    body.lockscreen .upos-sticky-top-nav,
    body.lockscreen .no-print,
    body.lockscreen #app,
    body.lockscreen .scrolltop,
    body.lockscreen .overlay,
    body.lockscreen .modal,
    body.lockscreen #scrollable-container > *:not(.print_section):not(#receipt_section),
    body.lockscreen main > #receipt_section:not(:has(.ticket)):not(:has(.pos-thermal-receipt)) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    body.lockscreen #scrollable-container > #receipt_section {
        display: block !important;
        height: auto !important;
        overflow: hidden !important;
    }
    body.lockscreen:has(#receipt_section .marine-inv-wrap),
    body.lockscreen:has(#receipt_section .modern-blue-invoice),
    body.lockscreen:has(#receipt_section .sales-a4-document),
    body.lockscreen.printing-a4-invoice {
        width: 210mm !important;
        max-width: 210mm !important;
    }
    body.lockscreen .print_section{
        display: block !important;
        width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 auto !important;
        padding: 0 3mm 2mm !important;
        padding-top: 0 !important;
        overflow: hidden !important;
    }
    body.lockscreen:has(#receipt_section .marine-inv-wrap) .print_section,
    body.lockscreen:has(#receipt_section .modern-blue-invoice) .print_section,
    body.lockscreen:has(#receipt_section .sales-a4-document) .print_section,
    body.lockscreen.printing-a4-invoice .print_section {
        width: 210mm !important;
        max-width: 210mm !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    body.lockscreen #receipt_section {
        width: 100% !important;
        max-width: 100% !important;
        font-family: Arial, Helvetica, 'Liberation Sans', sans-serif !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        color: #000000 !important;
        font-weight: 700 !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
        letter-spacing: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt,
    body.lockscreen #receipt_section .pos-thermal-receipt * {
        -webkit-font-smoothing: auto !important;
        -moz-osx-font-smoothing: auto !important;
        text-rendering: geometricPrecision !important;
        letter-spacing: 0.03em !important;
        text-shadow: none !important;
        filter: none !important;
        opacity: 1 !important;
        -webkit-text-stroke: 0 transparent !important;
        font-kerning: normal !important;
        font-feature-settings: "kern" 1 !important;
        transform: none !important;
    }
    body.lockscreen #receipt_section,
    body.lockscreen .print_section {
        background: #fff !important;
        background-color: #fff !important;
    }
    body.lockscreen #receipt_section * {
        box-sizing: border-box;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.lockscreen #receipt_section p,
    body.lockscreen #receipt_section span,
    body.lockscreen #receipt_section div,
    body.lockscreen #receipt_section td,
    body.lockscreen #receipt_section li {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-total-highlight .pos-thermal-total-label,
    body.lockscreen #receipt_section .pos-thermal-total-highlight .pos-thermal-total-label * {
        color: #000000 !important;
        font-weight: 700 !important;
        -webkit-font-smoothing: auto !important;
        text-rendering: geometricPrecision !important;
        -webkit-text-stroke: 0 transparent !important;
        text-shadow: none !important;
    }
    body.lockscreen #receipt_section .pos-thermal-total-highlight .pos-thermal-total-value {
        color: #000000 !important;
        font-weight: 800 !important;
        -webkit-font-smoothing: antialiased !important;
        text-rendering: optimizeLegibility !important;
        -webkit-text-stroke: 0 transparent !important;
        text-shadow: none !important;
    }
    body.lockscreen #receipt_section th {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    body.lockscreen #receipt_section strong,
    body.lockscreen #receipt_section b {
        color: #000000 !important;
        font-weight: 700 !important;
    }
    body.lockscreen #receipt_section .headings {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.28 !important;
        white-space: normal !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .sub-headings {
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1.32 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .f-8 {
        font-size: 9px !important;
        line-height: 1.25 !important;
    }
    body.lockscreen #receipt_section .table-f-12:not(.pos-thermal-lines-table) th,
    body.lockscreen #receipt_section .table-f-12:not(.pos-thermal-lines-table) td {
        font-size: 12px !important;
        padding: 2px 3px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section table:not(.pos-thermal-lines-table) th,
    body.lockscreen #receipt_section table:not(.pos-thermal-lines-table) td {
        padding: 2px 3px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section img {
        max-height: 34px !important;
        max-width: 42px !important;
        height: auto !important;
        width: auto !important;
    }
    body.lockscreen #receipt_section .ticket,
    body.lockscreen #receipt_section .modern-blue-invoice,
    body.lockscreen #receipt_section .text-box,
    body.lockscreen #receipt_section .flex-box {
        width: 100% !important;
        max-width: 100% !important;
    }
    body.lockscreen #receipt_section .modern-blue-invoice {
        max-width: 78mm !important;
        margin: 0 !important;
    }
    body.lockscreen #receipt_section .modern-blue-header {
        padding: 6px 8px !important;
        flex-wrap: wrap;
    }
    body.lockscreen #receipt_section .modern-blue-body {
        padding: 6px 8px !important;
    }
    body.lockscreen #receipt_section .modern-blue-invoice-title {
        font-size: 12px !important;
        margin-bottom: 3px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }
    body.lockscreen #receipt_section .modern-blue-company-name {
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
    }
    body.lockscreen #receipt_section .modern-blue-logo {
        width: 38px !important;
        height: 38px !important;
        font-size: 11px !important;
    }
    body.lockscreen #receipt_section .modern-blue-section-title {
        font-size: 11px !important;
        margin-bottom: 3px !important;
        font-weight: 700 !important;
    }
    body.lockscreen #receipt_section .modern-blue-info-line,
    body.lockscreen #receipt_section .modern-blue-invoice-info {
        font-size: 11px !important;
        line-height: 1.28 !important;
        font-weight: 500 !important;
    }
    body.lockscreen #receipt_section .modern-blue-table thead th,
    body.lockscreen #receipt_section .modern-blue-table tbody td {
        padding: 2px 2px !important;
        font-size: 9px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        vertical-align: top !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt {
        font-family: 'Times New Roman', Times, serif !important;
        font-size: 12px !important;
        line-height: 1.38 !important;
        color: #000000 !important;
        font-weight: 500 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-logo-fallback {
        display: block !important;
        text-align: center !important;
    }
    body.lockscreen #receipt_section .pos-thermal-logo-wrap {
        margin: 0 auto 6px !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-logo-letter,
    body.lockscreen #receipt_section .pos-thermal-receipt .logo-circle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 auto 3px !important;
        border-radius: 50% !important;
        background-color: transparent !important;
        background: none !important;
        color: #000000 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        border: 2px solid #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-header-block {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 6px !important;
        line-height: 1.35 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-header-line {
        margin: 0 0 3px !important;
        padding: 0 2px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        text-align: center !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-header-line.pos-thermal-company {
        font-size: 15px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-header-line.pos-thermal-address {
        line-height: 1.3 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-header-line.pos-thermal-contact {
        margin-bottom: 4px !important;
    }
    body.lockscreen #receipt_section .pos-thermal-header-line.pos-thermal-doc-title {
        margin-top: 6px !important;
        margin-bottom: 4px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #111 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .textbox-info {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        margin-bottom: 2px !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .textbox-info p {
        display: inline-block !important;
        width: 49% !important;
        vertical-align: top !important;
        margin: 0 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .textbox-info .f-left {
        text-align: left !important;
        float: left !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .textbox-info .f-right {
        text-align: right !important;
        float: right !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .border-top {
        border-top: 1px solid #999 !important;
        margin-top: 4px !important;
        padding-top: 4px !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table {
        table-layout: fixed !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table col.col-num { width: 4% !important; }
    body.lockscreen #receipt_section .pos-thermal-lines-table col.col-product { width: 26% !important; }
    body.lockscreen #receipt_section .pos-thermal-lines-table col.col-qty { width: 12% !important; }
    body.lockscreen #receipt_section .pos-thermal-lines-table col.col-unit { width: 29% !important; }
    body.lockscreen #receipt_section .pos-thermal-lines-table col.col-total { width: 29% !important; }
    body.lockscreen #receipt_section .pos-thermal-lines-table .thermal-h-short {
        display: inline !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .thermal-h-long {
        display: none !important;
    }
    body.lockscreen #receipt_section .thermal-h-short {
        display: inline !important;
    }
    body.lockscreen #receipt_section .thermal-h-long {
        display: none !important;
    }
    body.lockscreen #receipt_section .qty-inline {
        display: none !important;
    }
    body.lockscreen #receipt_section .qty-stacked {
        display: inline !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table thead th {
        font-size: 13px !important;
        font-weight: 700 !important;
        padding: 2px 2px 3px !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        line-height: 1.2 !important;
        overflow: visible !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table thead th.serial_number,
    body.lockscreen #receipt_section .pos-thermal-lines-table thead th.description {
        text-align: left !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table thead th.quantity {
        text-align: center !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table thead th.unit_price,
    body.lockscreen #receipt_section .pos-thermal-lines-table thead th.price {
        text-align: right !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table tbody tr {
        border-bottom: 1px dotted #888 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table tbody td {
        font-size: 12px !important;
        padding: 2px 1px 3px !important;
        vertical-align: top !important;
        line-height: 1.35 !important;
        overflow: hidden !important;
        font-weight: 700 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .description {
        max-width: 0 !important;
        word-break: break-word !important;
        white-space: normal !important;
        text-align: left !important;
        overflow-wrap: break-word !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .serial_number {
        text-align: left !important;
        white-space: nowrap !important;
        word-break: normal !important;
        padding-left: 0 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .line-product-name {
        display: inline !important;
        font-weight: 700 !important;
        text-transform: none !important;
        line-height: 1.35 !important;
        margin-bottom: 0 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .line-product-sku {
        display: block !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #000000 !important;
        word-break: break-all !important;
        margin-top: 1px !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .quantity,
    body.lockscreen #receipt_section .pos-thermal-lines-table .unit_price,
    body.lockscreen #receipt_section .pos-thermal-lines-table .price {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        font-weight: 700 !important;
        font-variant-numeric: tabular-nums !important;
        padding-left: 1px !important;
        padding-right: 0 !important;
        color: #000000 !important;
        overflow: hidden !important;
        max-width: 0 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .quantity {
        text-align: center !important;
        font-size: 11px !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .unit_price,
    body.lockscreen #receipt_section .pos-thermal-lines-table .price {
        text-align: right !important;
        font-size: 10px !important;
    }
    body.lockscreen #receipt_section .pos-thermal-lines-table .qty-num,
    body.lockscreen #receipt_section .pos-thermal-lines-table .qty-unit {
        display: none !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .headings,
    body.lockscreen #receipt_section .pos-thermal-header-line.pos-thermal-company {
        font-size: 14px !important;
        text-transform: none !important;
        color: #000000 !important;
        font-weight: 800 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-col-optional {
        display: none !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .sub-headings {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .flex-box p {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .flex-box .sub-headings {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #000000 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-receipt .flex-box .width-50.text-right:last-child {
        font-weight: 600 !important;
        font-variant-numeric: tabular-nums !important;
    }
    body.lockscreen #receipt_section .pos-thermal-total-highlight {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
        padding: 6px 7px !important;
        background-color: #ffffff !important;
        border-top: 2px solid #000 !important;
        border-bottom: 2px solid #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        gap: 6px !important;
    }
    body.lockscreen #receipt_section .pos-thermal-total-highlight .pos-thermal-total-label,
    body.lockscreen #receipt_section .pos-thermal-total-highlight .pos-thermal-total-label * {
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        text-align: left !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        color: #000000 !important;
        font-variant-numeric: tabular-nums !important;
        white-space: nowrap !important;
    }
    body.lockscreen #receipt_section .pos-thermal-total-highlight .pos-thermal-total-value {
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        flex: 0 0 auto !important;
        text-align: right !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        color: #000000 !important;
        font-variant-numeric: tabular-nums !important;
        white-space: nowrap !important;
    }
    body.lockscreen #receipt_section .pos-thermal-grand-total > .flex-box:not(.pos-thermal-total-highlight):not(.pos-thermal-ht-row):not(.pos-thermal-vat-row),
    body.lockscreen #receipt_section .pos-thermal-total-row:not(.pos-thermal-total-highlight):not(.pos-thermal-ht-row),
    body.lockscreen #receipt_section .flex-box:has(+ .pos-thermal-total-highlight):not(.pos-thermal-total-highlight):not(.pos-thermal-ht-row):not(.pos-thermal-vat-row),
    body.lockscreen #receipt_section .flex-box:has(+ .pos-thermal-grand-total):has(.sub-headings):not(.pos-thermal-ht-row) {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    body.lockscreen #receipt_section .pos-thermal-ht-row,
    body.lockscreen #receipt_section .pos-thermal-vat-row {
        display: flex !important;
        height: auto !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    body.lockscreen #receipt_section .pos-thermal-grand-total:has(.pos-thermal-total-highlight) {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table),
    body.lockscreen #receipt_section .table-f-12.pos-receipt-lines-table:not(.pos-thermal-lines-table) {
        table-layout: fixed !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .col-index,
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .serial_number {
        width: 6% !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .col-product,
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .description {
        width: 34% !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .col-qty,
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .quantity {
        width: 14% !important;
        text-align: right !important;
        white-space: nowrap !important;
        word-break: normal !important;
    }
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .col-unit,
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .unit_price {
        width: 22% !important;
        text-align: right !important;
        white-space: nowrap !important;
        word-break: normal !important;
    }
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .col-subtotal,
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) .price {
        width: 24% !important;
        text-align: right !important;
        white-space: nowrap !important;
        word-break: normal !important;
    }
    body.lockscreen #receipt_section .pos-receipt-lines-table:not(.pos-thermal-lines-table) thead th {
        font-size: 9px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }
    body.lockscreen #receipt_section .pos-th-long {
        display: none !important;
    }
    body.lockscreen #receipt_section .pos-th-short {
        display: inline !important;
    }
    body.lockscreen #receipt_section .line-product-sku {
        font-size: 12px !important;
        color: #222 !important;
        display: block !important;
        margin-top: 1px !important;
    }
    body.lockscreen #receipt_section .line-product-name {
        display: block;
        font-weight: 600 !important;
    }
    body.lockscreen #receipt_section .flex-box {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
    }
    body.lockscreen #receipt_section .flex-box .width-50 {
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    body.lockscreen #receipt_section .flex-box .width-50.text-right:last-child {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        text-align: right !important;
    }
    body.lockscreen #receipt_section .modern-blue-totals-table {
        width: 100% !important;
        max-width: 100% !important;
        display: table !important;
    }
    body.lockscreen #receipt_section .modern-blue-totals-table td {
        font-size: 9px !important;
        padding: 2px 4px !important;
        white-space: nowrap !important;
    }
    body.lockscreen #receipt_section .modern-blue-totals-table td:first-child {
        white-space: normal !important;
        word-break: break-word !important;
    }
    body.lockscreen #receipt_section .modern-blue-customer-info {
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
        flex-direction: column;
    }
    body.lockscreen #receipt_section .modern-blue-footer,
    body.lockscreen #receipt_section .modern-blue-footer--split {
        padding: 5px 8px !important;
        font-size: 9px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
    }
    body.lockscreen #receipt_section .dgi-emcf-security-block {
        font-size: 9px !important;
        line-height: 1.28 !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
    }
    body.lockscreen #receipt_section .dgi-emcf-security-block * {
        font-size: inherit !important;
        color: #000 !important;
        line-height: inherit !important;
    }
    body.lockscreen #receipt_section .dgi-emcf-ribbon-title,
    body.lockscreen #receipt_section .dgi-emcf-isf {
        font-size: 9px !important;
        font-weight: 700 !important;
    }
    body.lockscreen #receipt_section .dgi-emcf-qr-wrap img {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
    }
    body.lockscreen #receipt_section .border-top,
    body.lockscreen #receipt_section .border-bottom {
        border-color: #777 !important;
    }
    body.lockscreen #receipt_section .border-bottom-dotted {
        border-bottom-color: #888 !important;
    }
    body.lockscreen #receipt_section p,
    body.lockscreen #receipt_section .textbox-info p,
    body.lockscreen #receipt_section .flex-box p {
        margin-bottom: 0 !important;
    }
    .pos-invoice-copy-separator {
        page-break-before: always;
        break-before: page;
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
    }
    .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{
    font-size: 23px !important;
    overflow: hidden !important;
    height: 73px !important;
    white-space: normal;
}
.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: 3px;
    padding-right: 3px;
}
.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: 12px;
  padding: 8px;
}
.product_box .image-container{
  height: 50px;
  margin: auto;
  width: 100%;
  margin-bottom: 4px;
  
}
.product_box .image-container img{
  height: 100%;
  width: 100%;
  border-radius: 12px;
}
.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;
}

.fs-10 {
  font-size: 10px;
}

.timeline-lode-more-btn {
  margin-left: 50px;
  margin-top: 25px;
  padding-right: 12px;
  padding-left: 12px;
}

.pa-0 {
  padding: 0px !important;
}

.mt-56{
  margin-top: 56px !important;
}

.m-2{
  margin: 2px !important;
}

.treeview-menu i{
  display: none !important;
}
.treeview-menu a{
  padding-left: 25px !important;
  font-size: 95% !important;
}
.treeview-menu a::before{
  content: "\2192 ";
}

@media only screen and (max-width: 600px) {
  .pos-form-actions{
    position: absolute;
  }
}
.mr-8 {
  margin-right: 8px !important;
}

@media (max-width: 1024px) {
   .pos_form_totals{
        margin-bottom: 40px;
    }
}

.swal-modal .swal-text {
    text-align: center;
}

.pos-total {
    /* display: inline-block; */
    padding: 8px 10px;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 5px;
}
.pos-total span.number{
    font-size: 26px;
    vertical-align: middle;
    font-weight: bolder;
}

.pos-total span.text{
    font-weight: bolder;
    display: inline-block;
    width: 60px;
    vertical-align: middle;
}
.mb-40 {
    margin-bottom: 40px !important;
}

@media print {
    a:after { content:''; }
    a[href]:after { content: none !important; }
}

.fa-times{
    font-size: 30px
}
.mb-5{
  margin-bottom: 5px !important;
}
.tree-actions {
  margin-left: 20px;
  display: none;
}
.jstree-hovered .tree-actions {
  display: inherit;
}

/* ── Mobile / téléphone ───────────────────────────────────────────── */
@media (max-width: 1023px) {
    :root {
        --upos-top-nav-height: 52px;
    }

    aside.side-bar.small-view-side-active {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--mobile-sidebar-width, min(78vw, 280px));
        max-width: var(--mobile-sidebar-width, min(78vw, 280px));
        z-index: 1050;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    }

    aside.side-bar #side-bar::-webkit-scrollbar {
        width: 10px;
    }

    aside.side-bar #side-bar::-webkit-scrollbar-track {
        background: #e5e7eb;
        border-radius: 999px;
        margin: 4px 0;
    }

    aside.side-bar #side-bar::-webkit-scrollbar-thumb {
        background: #6b7280;
        border-radius: 999px;
        border: 2px solid #e5e7eb;
        min-height: 48px;
    }

    aside.side-bar #side-bar::-webkit-scrollbar-thumb:hover {
        background: #4b5563;
    }

    body.mobile-sidebar-open {
        overflow: auto;
    }

    /* Devis / facture projet — scroll mobile */
    #scrollable-container:has(.project-billing-page) {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .project-billing-page .box,
    .project-billing-page .box-solid,
    .project-billing-page .widget {
        overflow: visible;
    }

    .project-billing-page .project-billing-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0.75rem;
        border-radius: 4px;
    }

    .project-billing-page #billing_lines_table {
        min-width: 960px;
        margin-bottom: 0;
    }

    .project-billing-page #billing_lines_table th,
    .project-billing-page #billing_lines_table td {
        vertical-align: middle;
    }

    .project-billing-page #billing_lines_table .form-control {
        min-width: 6.5rem;
    }

    .project-billing-page [class*="col-md-"],
    .project-billing-page [class*="col-sm-"] {
        float: none;
        width: 100%;
    }

    .project-billing-page .pull-right {
        float: none !important;
        width: 100%;
    }

    .project-billing-page button[type="submit"].btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }

    .project-billing-page .content-header h1 {
        font-size: 1.25rem;
        line-height: 1.35;
    }
}

@media (max-width: 767px) {
    .project-billing-page {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    }

    .project-billing-page .input-group {
        display: flex;
        flex-wrap: wrap;
    }

    .project-billing-page .input-group .form-control,
    .project-billing-page .input-group-btn,
    .project-billing-page .input-group-addon {
        width: auto;
        flex: 1 1 auto;
    }
}

/* Icône info forfait actif (Superadmin) — visible sur /home et toutes les pages */
.upos-sticky-top-nav .header-nav-row {
    display: flex;
    align-items: center;
    min-width: 0;
}

.upos-sticky-top-nav .header-nav-start {
    flex: 0 0 auto;
}

.upos-sticky-top-nav .header-active-subscription {
    display: inline-flex !important;
    align-items: center;
    flex: 1 1 auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.upos-sticky-top-nav .header-active-subscription:not(:has(.header-subscription-expiry)) {
    flex: 0 0 auto;
}

.upos-sticky-top-nav .header-subscription-cluster {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    width: auto;
}

.upos-sticky-top-nav .header-subscription-expiry {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    color: #fb923c !important;
    -webkit-text-fill-color: #fb923c !important;
    font-family: var(--sys-font, ui-sans-serif, system-ui, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    white-space: normal;
}

.upos-sticky-top-nav .header-subscription-expiry.is-urgent {
    color: #f87171 !important;
    -webkit-text-fill-color: #f87171 !important;
}

.upos-sticky-top-nav .header-subscription-expiry i {
    flex-shrink: 0;
    font-size: 14px;
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}

.upos-sticky-top-nav .header-subscription-expiry__text {
    min-width: 0;
    flex: 0 1 auto;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

.upos-sticky-top-nav .header-subscription-renew-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    padding: 4px 10px;
    border: 0;
    border-radius: 9999px;
    background: #ea580c !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: var(--sys-font, ui-sans-serif, system-ui, sans-serif);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}

.upos-sticky-top-nav .header-subscription-expiry.is-urgent .header-subscription-renew-btn {
    background: #dc2626 !important;
}

.upos-sticky-top-nav .header-subscription-renew-btn:hover,
.upos-sticky-top-nav .header-subscription-renew-btn:focus {
    background: #c2410c !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
}

.upos-sticky-top-nav .header-subscription-expiry.is-urgent .header-subscription-renew-btn:hover,
.upos-sticky-top-nav .header-subscription-expiry.is-urgent .header-subscription-renew-btn:focus {
    background: #b91c1c !important;
}

.upos-sticky-top-nav .header-subscription-cluster:has(.header-subscription-expiry) .header-subscription-info-icon,
body.module-dashboard-home .upos-sticky-top-nav .header-subscription-cluster:has(.header-subscription-expiry) .header-subscription-info-icon {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.upos-sticky-top-nav .header-subscription-info-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1;
    padding: 0.25rem;
    cursor: pointer;
    font-family: inherit !important;
    font-weight: inherit !important;
}

.upos-sticky-top-nav .header-subscription-info-icon::before,
.upos-sticky-top-nav .header-subscription-info-icon::after {
    content: none !important;
    display: none !important;
}

.upos-sticky-top-nav .header-subscription-info-icon .subscription-info-icon-svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    stroke: none !important;
}

.upos-sticky-top-nav .header-subscription-info-icon .subscription-info-icon-svg * {
    stroke: none !important;
}

/* Icône forfait actif sur la bannière /home */
.dashboard-theme-area .home-active-subscription {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
}

.dashboard-theme-area .header-subscription-info-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    color: #0f766e !important;
    -webkit-text-fill-color: #0f766e !important;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.dashboard-theme-area .header-subscription-info-icon .subscription-info-icon-svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 1.35rem;
    height: 1.35rem;
}

.upos-sticky-top-nav .header-documentation-link,
.upos-sticky-top-nav .header-documentation-icon {
    display: none !important;
}


@media (max-width: 1023px) {
    .upos-sticky-top-nav:has(.header-subscription-expiry) {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    html:has(.header-subscription-expiry) {
        --upos-top-nav-height: 108px;
    }

    .upos-sticky-top-nav .header-nav-row {
        flex-wrap: wrap;
        align-items: center;
    }

    .upos-sticky-top-nav .header-nav-start {
        order: 1;
        flex: 0 0 auto;
    }

    .upos-sticky-top-nav .header-actions-bar {
        order: 2;
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
        max-width: none;
    }

    .upos-sticky-top-nav .header-active-subscription:has(.header-subscription-expiry) {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100% !important;
        min-width: 0;
        margin-top: 6px;
    }

    .upos-sticky-top-nav .header-active-subscription:not(:has(.header-subscription-expiry)) {
        order: 1;
        flex: 0 0 auto;
        max-width: none;
    }

    .upos-sticky-top-nav .header-subscription-expiry {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        width: auto;
        max-width: 100%;
        gap: 10px;
    }

    .upos-sticky-top-nav .header-subscription-expiry__text {
        flex: 0 1 auto;
        min-width: 0;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.35;
        white-space: nowrap;
    }

    .upos-sticky-top-nav .header-subscription-renew-btn {
        flex: 0 0 auto;
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    :root {
        --upos-top-nav-height: 48px;
    }

    html:has(.header-subscription-expiry) {
        --upos-top-nav-height: 108px;
    }

    .upos-sticky-top-nav .header-actions-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .upos-sticky-top-nav details.tw-dw-dropdown > summary {
        list-style: none;
    }

    .upos-sticky-top-nav details.tw-dw-dropdown > summary::-webkit-details-marker {
        display: none;
    }

    .upos-sticky-top-nav details.tw-dw-dropdown > ul {
        position: fixed;
        top: calc(var(--upos-top-nav-height, 48px) + 0.35rem);
        z-index: 1065;
        margin-top: 0 !important;
        width: min(12rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
        box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    }

    .upos-sticky-top-nav details.header-profile-dropdown > ul {
        right: 0.75rem;
        left: auto;
    }

    .upos-sticky-top-nav details.header-nav-dropdown > ul {
        left: 0.75rem;
        right: auto;
    }

    .upos-sticky-top-nav .header-actions-bar::-webkit-scrollbar {
        display: none;
    }

    .upos-sticky-top-nav .header-actions-bar a[href*="pos/create"] span {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        white-space: nowrap;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .upos-sticky-top-nav .header-subscription-info-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        line-height: 1;
        padding: 0.25rem;
        cursor: pointer;
        font-family: inherit !important;
        font-weight: inherit !important;
    }

    .upos-sticky-top-nav .header-subscription-info-icon .subscription-info-icon-svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        stroke: none !important;
    }

    .upos-sticky-top-nav .header-active-subscription {
        display: inline-flex !important;
        align-items: center;
        min-width: 0;
    }

    .upos-sticky-top-nav .header-active-subscription:has(.header-subscription-expiry) {
        max-width: 100% !important;
        width: 100%;
    }

    .upos-sticky-top-nav .header-subscription-expiry__text {
        display: block;
        overflow: visible;
        white-space: normal;
    }

    @media (max-width: 360px) {
        .upos-sticky-top-nav .header-subscription-expiry {
            flex-wrap: wrap;
        }
        .upos-sticky-top-nav .header-subscription-renew-btn {
            margin-left: 22px;
        }
    }

    .upos-sticky-top-nav .header-documentation-link,
    .upos-sticky-top-nav .header-documentation-icon {
        display: none !important;
    }

    .dashboard-theme-area {
        padding-bottom: 1rem !important;
    }

    .dashboard-theme-area > .tw-px-5 {
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
    }

    .dashboard-theme-area h1 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }

    .dashboard-theme-area .sm\:tw-flex {
        gap: 0.75rem !important;
    }

    body:not(.lockscreen) .box-body,
    body:not(.lockscreen) .content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .table-excel-wrap,
    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

}

/* Product line rows (purchases, PO, sells): align fields and keep TVA readable */
#purchase_entry_table > thead > tr > th,
#purchase_entry_table > tbody > tr > td,
body:not(.lockscreen) #pos_table > thead > tr > th,
body:not(.lockscreen) #pos_table > tbody > tr > td {
    vertical-align: top !important;
}

#purchase_entry_table > tbody > tr > td .form-control,
body:not(.lockscreen) #pos_table > tbody > tr > td > .form-control,
body:not(.lockscreen) #pos_table > tbody > tr > td > .input-group {
    margin-top: 0;
}

.line-vat-cell {
    min-width: 180px !important;
    width: 180px;
}

.line-vat-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 168px;
    width: 100%;
}

.line-vat-wrap > select.form-control,
.line-vat-wrap .select2-container {
    width: 100% !important;
    min-width: 168px;
}

.line-vat-wrap .select2-container .select2-selection--single {
    height: 30px;
    display: flex;
    align-items: center;
}

.line-vat-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    padding-right: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.line-vat-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px;
}

.select2-container--open .select2-dropdown .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    padding: 6px 8px !important;
    height: 30px !important;
    font-size: 13px !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 4px;
}

.pos-create-form-block #pos_table .line-vat-wrap .select2-container {
    height: 26px !important;
}

.line-vat-amount,
.purchase_product_unit_tax_text.line-vat-amount,
.pos_line_tax_text.line-vat-amount {
    display: block;
    text-align: center;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

#purchase_entry_table .row_subtotal_before_tax,
#purchase_entry_table .row_subtotal_after_tax {
    display: block;
    min-height: 30px;
    line-height: 30px;
}

.select2-container--open {
    z-index: 99999;
}