@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Sigmar+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", serif !important;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background: #f3f9ff;
    color: #333;
    overflow: auto !important;
    overflow-x: hidden !important;
}

*,
:after,
:before {
    box-sizing: inherit;
}

/** Common Use CSS **/
/* a {
    text-decoration: none;
    color: var(--font-color);
} */

.noScroll {
    overflow: hidden;
}

.noPadding {
    padding: 0 !important;
}

.noPaddingX {
    padding: 15px 0 !important;
}

.noPaddingY {
    padding: 0 15px !important;
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.full-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fluid {
    width: 100%;
}

input, select{
    font-family: "Poppins", serif !important;
    color: #333;
}

button{
    position: relative;
    font-family: "Poppins", serif !important;
    overflow: hidden;
    cursor: pointer;
    width: fit-content;
    height: 32px;
    border: none;
    border-radius: 4px;
}
  
button:before {
    content: "";
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: white;
    box-shadow: 0 0 15px 3px white;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
    -o-transform: skewX(-20deg);
    transform: skewX(-20deg);
}
  
button:hover:before {
    -webkit-animation: shine 0.4s 0s linear;
    -moz-animation: shine 0.4s 0s linear;
    animation: shine 0.4s 0s linear;
}
  
@keyframes shine {
  from {
    opacity: 0;
    left: 0%;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0;
    left: 100%;
  }
}

@-webkit-keyframes shine {
  from {
    opacity: 0;
    left: 0%;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0;
    left: 100%;
  }
}

  
button:disabled:hover:before{
    display: none;
}

button.danger{
    background: #f94141;
    color: #fff;
}

button.success{
    background: #4ca44c;
    color: #fff;
}

.text-success{
    color:#198754;
    font-weight: 600;
}
.text-danger{
    color:#dc3545;
    font-weight: 600;
}
.text-warning{
    color:#ff8100;
    font-weight: 600;
}

button.secondary{
    color: #fff;
    background-color: #6c757d;
}

button.warning{
    color: #444;
    background-color: #ffc107;
}

button.info{
    color: #fff;
    background-color: #17a2b8;
}

button.neutral{
    background: #535353;
    color: #fff;
}

button.primary{
    background: var(--primary-color);
    color: #fff;
}
.btn-lg{
    line-height: 0.5;
    font-size: 14px;
    padding: .8rem 1rem;
}

.modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    z-index: -1;
    opacity: 0;
    display: flex;
    align-items: center;
}

.modal.active{
    opacity: 1;
    z-index: 3;
}

.modal-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    backdrop-filter: blur(2px);
    display: none;
}

.modal-container.big {
    width: 100%;
    max-width: 870px;
    height: 100%;
    background-color: white;
    overflow: auto;
}


/* Modal Styles */
/* Tab container for modal positioning */
.tab-container-variant {
    position: relative; /* modal will be positioned relative to this */
    overflow: hidden;   /* optional: prevent modal from overflowing */
}

/* Modal overlay and centering */
.modal-box-variant {
    display: none; /* hidden by default */
    position: absolute; /* relative to tab container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* semi-transparent overlay */
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    z-index: 1000;
    padding: 10px;
}

/* Modal content */
.modal-content-variant {
    background: #fff;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px; /* spacing between items */
}

/* Modal headings */
.modal-content-variant h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* Form items */
.modal-content-variant .form-item-variant {
    display: flex;
    flex-direction: column;
}

.modal-content-variant .form-item-variant label {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-content-variant .form-item-variant input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Modal footer */
.modal-footer-variant {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.modal-footer-variant button-variant {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.modal-footer-variant .confirm-btn-variant {
    background-color: #28a745;
    color: #fff;
}

.modal-footer-variant .cancel-btn-variant {
    background-color: #6c757d;
    color: #fff;
}

/* Buttons general */
.btn-variant {
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    border: none;
}

/* Modal close button */
.btn-close-variant {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Fade in animation */
@keyframes fadeIn-variant {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* .modal-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0, .5);
    backdrop-filter: blur(2px);
    display: none;
} */

/* .modal-container.big{
    max-width: 870px;
} */

.modal-container{
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    padding: 16px;
    border-radius: var(--border-radius);
    z-index: 4;
    transition: .2s ease-in-out;
    top: 100%;
}

.modal.active .modal-container{
    top: 0;
}

.modal.active .modal-bg{
    display: block;
}

.modal-header{
    position: relative;
    margin-bottom: 16px;
}

.modal-content{
    position: relative;
}

.modal-content.scrollable{
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
}

@media(max-height: 620px){
    .modal-content.scrollable{
        max-height: 65vh;
    }
}

.modal-header label{
    font-weight: bold;
    font-size: 16px;
}

.modal-footer{
    position: relative;
    margin-top: 16px;
    min-height: 32px;
}

.modal-footer--btn{
    position: absolute;
    right: 0;
    top: 0;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer--btn button{
    width: fit-content;
    height: 32px;
    border: none;
    border-radius: var(--border-radius);
    padding: 0 16px;
}

.close-modal{
    position: absolute;
    right: 0;
    top: 0;
    font-size: 30px;
    color: #aeaeae;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

.close-modal:hover{
    color: #333;
}

/* Container */
.toggle-container {
  display: flex;
  align-items: center;
}

/* Hide real checkbox */
.toggle-input {
  display: none;
}

/* Track (grey by default) */
.toggle-track {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  background-color: #ccc;   /* <-- default grey */
  border-radius: 999px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* Knob */
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Checked state (ON = blue) */
.toggle-input:checked + .toggle-track {
  background-color: #4ca44c;
}

.toggle-input:checked + .toggle-track .toggle-knob {
  transform: translateX(24px);
}

/* Label text */
.toggle-label {
  margin-left: 10px;
  font-weight: 600;
  color: #666;
}

/* Label turns blue when enabled */
.toggle-input:checked ~ .toggle-label {
  color: #4ca44c;
}

.checkbox {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox.no-text{
    padding-left: 24px;
}
  
.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
  
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}
  
.checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}
  
.checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
  
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
  
.checkbox input:checked ~ .checkmark:after {
    display: block;
}
  
.checkbox .checkmark:after {
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkbox.small{
    font-size: 12px;
    padding-left: 5px;
}

.checkbox.small .checkmark{
    width: 16px;
    height: 16px;
}

.checkbox.small .checkmark:after{
    left: 4px;
    top: 2px;
    width: 5px;
    height: 8px;
}

.swal2-styled{
    padding: 0 16px;
    font-size: 12px !important;
}

.swal2-actions button{
    position: relative;
    overflow: hidden !important;
}

.swal-cancel--btn{
    background: #fff !important;
    color: #696969 !important;
}

.swal2-styled.swal2-cancel{
    background: #ddd !important;
    color: #696969 !important;
}

.swal2-title{
    font-size: 16px !important;
}

.swal2-html-container{
    font-size: 12px !important;
    color: #a2a2a2 !important;
}

/* .swal2-popup{
    width: fit-content !important;
} */

.swal2-container{
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

.tooltip {
    position: relative;
}
  
.tooltip .tooltip-text {
    position: absolute;
    bottom: -32px;
    left: 0;
    font-size: 13px;
    font-weight: normal;
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: left;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(1px);
    z-index: 1;
    visibility: hidden;
}
  
.tooltip:hover .tooltip-text {
    visibility: visible;
}

.tooltip .tooltip-text a{
    text-decoration: underline;
    text-underline-offset: 2px;
}

.table-container{
    position: relative;
    padding: 24px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.table {
    border-collapse: collapse;
    table-layout: auto;
    width: 100%;
}

.table td, .table th {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px;
}

.table tr:nth-child(even) {
    background-color: #fff;
}

.table tr:hover {
    background-color: #fff;
    cursor: pointer;
}

.table tr th {
    position: relative;
    background: var(--primary-color);
    text-align: left;
    color: #fff;
}

.dataTables_wrapper .dataTables_info{
    position: absolute;
    left: 0;
    bottom: 0;
}

table.dataTable thead th, table.dataTable thead td{
    border: none !important;
}

table.dataTable.no-footer{
    border-bottom: 1px solid #ddd !important;
}

.dataTables_wrapper .dataTables_filter{
    margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_filter input{
    border: 1px solid #ddd !important;
    margin-left: 8px !important;
    padding: 8px 16px !important;
}

table.dataTable thead tr th{
    background: var(--primary-color);
    color: #fff !important;
    border: 1px solid #ddd !important;
    font-size: 14px;
    text-align: left;
    padding: 8px 10px;
}

table.dataTable thead tr th:not(:first-of-type){
    border-left: none !important;
}
.dataTables_wrapper .dataTables_length > label{
    display: flex;
    align-items: center;
}
.dataTables_wrapper .dataTables_length > label > select{
    margin: 0 10px;
}

/* table.dataTable thead tr th {
    position: sticky;
    z-index: 1;
    top: 60px;
} */
/* table.product-table tbody tr td:nth-child(2) {
    text-align: center !important;
} */
table.product-table td:nth-child(2),
table.product-table td:nth-child(3),
table.product-table td:nth-child(4),
table.product-table th:nth-child(2),
table.product-table th:nth-child(3),
table.product-table th:nth-child(4) {
    text-align: center !important;
}
table.dataTable tbody tr td{
    background: #fff !important;
    font-size: 14px;
    text-align: left;
    border: 1px solid #eee;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{
    background: #fff !important;
    border: 1px solid #ddd !important;
}

.dataTables_wrapper .dataTables_paginate{
    position: relative;
    top: 10px;
}

.dataTables_scrollBody{
  overflow-x:auto !important;
  overflow-y:hidden !important;
}
.dataTables_wrapper .dataTables_scroll {
    width: 100% !important;
}
.dataTables_scrollHeadInner{
    width: 100% !important;
}
.dt-add--btn{
    background: #535353 !important;
    border-color: #535353;
    color: #fff !important;
    border-radius: 5px;
    padding: .375rem .75rem;
}

.asterisk{
    color: red;
}

.flex{
    display: flex;
    gap: 16px;
}

.grid{
    position: relative;
}

.grid .row{
    position: relative;
    display: flex;
}
.grid .row-widget{
    position: relative;
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.col{
    width: 100%;
}

.col-2{
    width: 50%;
}

.col-3{
    width: 33.33%;
}

.col-4{
    width: 25%;
}

.col-5{
    width: 20%;
}

.m{
    margin: 16px;
}

.mt{
    margin-top: 16px;
}

.mt-15{
    margin-top: 15px;
}
.mt-5{
    margin-top: 5px;
}
.mt-s{
    margin-top: 8px;
}

.mt-b{
    margin-top: 32px;
}

.mb-0{
    margin-bottom: 0 !important;
}
.mb-10{
    margin-bottom: 10px !important;
}
.mb-15{
    margin-bottom: 15px !important;
}
.mb-20{
    margin-bottom: 20px !important;
}
.mb-30{
    margin-bottom: 30px !important;
}
.mb-40{
    margin-bottom: 40px !important;
}
.mt-5{
    margin-top: 5px;
}
.mt-10{
    margin-top: 10px;
}
.mt-20{
    margin-top: 20px;
}
.mt-30{
    margin-top: 30px !important;
}
.mt-40{
    margin-top: 40px !important;
}
.mt-50{
    margin-top: 50px !important;
}
.pt-20{
    padding-top: 20px;
}
.pt-15{
    padding-top: 15px;
}
.p{
    padding: 16px;
}

.check__item {
    position: relative;
}

.check__item label {
    display: flex;
    align-items: center;
    -moz-column-gap: 6px;
         column-gap: 6px;
}
  
.default__check[type=checkbox],
.default__check[type=radio] {
    display: none;
}

.default__check[type=checkbox] ~ .custom__check,
.default__check[type=radio] ~ .custom__check {
    display: flex;
    align-items: center;
    height: 24px;
    border: 2px solid var(--primary-color);
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

.default__check[type=checkbox] ~ .custom__check:after,
.default__check[type=radio] ~ .custom__check:after {
    content: "";
    display: inline-block;
    position: absolute;
    transition: all 0.4s ease;
}

.default__check[type=checkbox]:not(.switchbox) ~ .custom__check,
.default__check[type=radio]:not(.switchbox) ~ .custom__check {
    justify-content: center;
    width: 16px;
}

.default__check[type=checkbox]:not(.switchbox) ~ .custom__check:after,
.default__check[type=radio]:not(.switchbox) ~ .custom__check:after {
    visibility: hidden;
}

.default__check[type=checkbox].switchbox + .custom__check,
.default__check[type=radio].switchbox + .custom__check {
    width: 44px;
}

.default__check[type=checkbox].switchbox + .custom__check:after,
.default__check[type=radio].switchbox + .custom__check:after {
    transform: scale(1.5);
    left: 4px;
}

.default__check[type=checkbox].switchbox:not(:checked) ~ .custom__check:after,
.default__check[type=radio].switchbox:not(:checked) ~ .custom__check:after {
    background-color: var(--primary-color);
}

.default__check[type=checkbox].switchbox:checked ~ .custom__check:after,
.default__check[type=radio].switchbox:checked ~ .custom__check:after {
    left: 24px;
}

.default__check[type=checkbox]:disabled ~ .custom__check,
.default__check[type=radio]:disabled ~ .custom__check {
    opacity: 0.3;
    cursor: not-allowed;
}

.default__check[type=checkbox]:checked ~ .custom__check,
.default__check[type=radio]:checked ~ .custom__check {
    background-color: var(--primary-color);
}

.default__check[type=checkbox]:checked ~ .custom__check:after,
.default__check[type=radio]:checked ~ .custom__check:after {
    visibility: visible;
}
  
.default__check[type=checkbox]:not(.switchbox) ~ .custom__check {
    border-radius: 0.375rem;
}

.default__check[type=checkbox]:not(.switchbox) ~ .custom__check:after {
    height: 7px;
    width: 3px;
    margin-top: -1px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}
  
.default__check[type=radio] ~ .custom__check,
.default__check[type=checkbox].switchbox ~ .custom__check {
    border-radius: 50px;
}

.default__check[type=radio] ~ .custom__check:after,
.default__check[type=checkbox].switchbox ~ .custom__check:after {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50px;
}

.switchbox-label{
    font-weight: 500;
}

.widget{
    position: relative;
    width: 100%;
    background: #fff;
    box-shadow: var(--box-shadow);
}

.widget-header{
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #828282;
}

.widget-content{
    position: relative;
    margin-top: 6px;
    font-size: 24px;
    font-weight: 500;
    color: #333;
}

.widget-definition{
    position: relative;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.input-tb {
    position: relative;
    width: 100%;
    height: 32px;
    background: #fff;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 12px;
}

.input-tb:disabled, .input-tb:read-only{
    background: #eee;
    pointer-events: none;
}

.input-tb:focus{
    outline: none;
}

.input-ta, .richtexteditor{
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    /* height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important; */
    font-size: 12px;
}

.input-ta{
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 10px;
    font-family: var(--font-family);
    color: #333;
}

.input-ta:focus{
    outline: none;
}

.rte-floatpanel-paragraphop{
    display: none !important;
}

.tb-btn--behind{
    position: relative;
}

.tb-btn--behind input{
    padding-right: 40px;
}

.tb-btn--behind button{
    position: absolute;
    top: 3px;
    right: 3px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: var(--border-radius);
    background: #6e6e6e;
    color: #fff;
    font-size: 14px;
}

.tb-btn--behind button{
    top: 9px;
}

select {
    height: 32px;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    background: #fff !important;
    padding: 5px 7px !important;
    font-size: 14px;
    width: 100%;
}

.select2-container{
    /* width: 100% !important; */
    height: 32px;
}

.select2-container .select2-selection--single{
    height: 32px !important;
    border: 1px solid #ddd !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 32px !important;
    color: #333 !important;
    padding-left: 10px !important;
    font-family: "Poppins", serif !important;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 32px !important;
}

.select2-container .select2-selection--multiple{
    min-height: 32px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice{
    margin-top: 5px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple{
    border: 1px solid #ddd !important;
}

.select2-container--default .select2-selection--multiple{
    border: 1px solid #ddd !important;
    padding-bottom: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display{
    font-size: 12px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    height: 100%;
}

.login-wrapper{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    background: url(../img/bg3.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.login-bg{
    width: 60%;
    height: 100%;
    background: url(../img/warehouse-bg-2.png);
    background-size: 64%;
    background-position: center;
    background-repeat: no-repeat;
    /* background-color: #fff; */
}

.login-form{
    width: 40%;
    height: 100%;
    background: #ffffff99;
    display: flex;
    align-items: center;
    padding-right: 150px;
    padding-left: 150px;
}
@media (min-width: 2545px) {
    .login-form {
        padding-right: 250px;
        padding-left: 250px;
    }
}
@media (max-width: 1688px) {
    .login-form {
        padding-right: 50px;
        padding-left: 50px;
    }
    .login-content--btn{
        width: 140px !important;
    }
}
@media (max-width: 719px) {
    .login-content--title{
        font-size: 10px !important;
    }
    .login-bg{
        display: none;
    }
    .login-form {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }
    .login-content--btn{
        width: 120px !important;
    }
}
@media (max-width: 345px) {
    .login-content--btn{
        width: 100px !important;
    }
}
@media (min-width: 720px) and (max-width: 1140px) {
    .login-bg{
        display: none;
    }
    .login-form {
        width: 100%;
        padding-right: 150px;
        padding-left: 150px;
    }
}
.login-content{
    width: 100%;
    background: #fff;
    padding: 32px 44px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.login-content--item{
    position: relative;
    margin-bottom: 16px;
}

.login-content--item label{
    font-size: 14px;
}

.login-content--item input{
    margin-top: 10px;
    position: relative;
    width: 100%;
    height: 50px;
    background: #eeeef6;
    padding-left: 10px;
    border: 1px solid #ddd;
}

.login-content--item input:focus{
    outline: none;
}

.login-content--header{
    position: relative;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.login-content--title{
    position: relative;
    font-size: 14px;
    font-weight: normal;
    padding-left: 74px;
    min-height: 64px;
    color: #979797;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 32px;
}

.login-content--title img{
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
}

.login-content--title span{
    font-weight: bold;
    font-size: 24px;
    color: #333;
}

.login-content--btn{
    position: relative;
    width: 200px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.forgot-password--btn{
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: 100%;
    color: #6d6d6d;
    cursor: pointer;
    transition: .2s ease-in-out;
}

.forgot-password--btn:hover{
    color: #333;
}

/* Dashboard */
.wrapper{
    position: relative;
}



/* .navbar{
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding-left: 285px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 2;
} */

/* .navbar-menu{
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
} */

.username{
    position: relative;
    margin-right: 16px;
    line-height: 1.3;
}

.username small{
    font-weight: 500;
    color: #878787;
}

.setting-btn{
    position: relative;
    width: 32px;
    height: 32px;
    background: #7d7d7d;
    color: #fff;
    border: none;
    margin-right: 8px;
    border-radius: var(--border-radius);
    padding: 0;
}

/* .logout-btn{
    position: relative;
    width: 88px;
    height: 32px;
    background: #dc3737;
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .1px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
}

.logout-btn i{
    font-size: 14px;
    margin-right: 6px;
} */

.menu-item{
    position: relative;
    padding: 16px 16px 16px 20px;
    /* display: flex; */
    align-items: center;
    color: #8a8a8a;
    cursor: pointer;
    transition: var(--transition);
}

.menu-item.active{
    border-left: 5px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    padding-left: 15px;
}

.menu-item i{
    position: relative;
    top: -1px;
    font-size: 20px;
    margin-right: 18px;
}

.menu-item:hover{
    border-left: 5px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    background: #f8f8f8;
}

.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-submenu .submenu {
    display: none;
    padding-left: 0;
    flex-direction: column;
    margin-top: 10px;
}

.submenu-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #8a8a8a;
}

.submenu-item:hover,
.submenu-item.active {
    color: #587ac4;
}

.submenu-arrow {
    font-size: 16px;
    transition: transform 0.3s;
}

.has-submenu.open .submenu {
    display: flex;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.container{
    position: relative;
    padding-top: 0;
    padding-left: 285px;
}

.content-container{
    padding: 11px 20px;
    height: calc(100vh - 60px);
}

/* Product Page */
.tbl-btn--container{
    display: flex;
    gap: 8px;
}

.tbl-btn--container button{
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 5px;
    overflow: unset;
}

.tbl-btn--container button i{
    font-size: 10px;
}

.tbl-edit--btn{
    background: #333;
    color: #fff;
}
.tbl-del--btn{
    background: #d85c5c;
    color: #fff;
}
.tbl-view--btn{
    background: #aaa;
    color: #fff;
}
.tbl-rn--btn{
    background: #9e4bd1;
    color: #fff;
}
.tbl-payment--btn{
    background: #28a745;
    color: #fff;
}
.tbl-invoice--btn{
    background: #34628e;
    color: #fff;
}

.tbl-remove--btn{
    background: #888;
    color: #fff;
}

.btr-btn{
    width: fit-content;
    height: 32px;
    padding: 6px 12px 6px 8px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.btr-btn i{
    font-size: 17px;
    top: 1px;
    margin-right: 6px;
}

.form{
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: calc(100% - 3px);
    overflow: auto;
    overflow-x: hidden;
}

hr{
    margin: 12px 0;
    border: 1px solid #e8e8e8;
}

.form-header{
    font-size: 16px;
    font-weight: bold;
    padding-left: 12px;
    border-left: 5px solid var(--primary-color);
    position: relative;
    margin-bottom: 15px;
}
.form-header-invoice-po{
    font-size: 16px;
    font-weight: bold;
    height: 50px;
    padding-left: 12px;
    border-left: 5px solid var(--primary-color);
    position: sticky;
    top: 0;
    right: 10px;
    background: #fff; /* Match background to avoid overlap issues */
    z-index: 10;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.form-header small{
    font-size: 11px;
    font-weight: normal;
    color: #7f7f7f;
}
.b-shadow-none{
    box-shadow: unset !important;
}
.gap-10{
    gap: 10px;
}
.gap-20{
    gap: 20px;
}
.gap-30{
    gap: 30px;
}

.w-100{
    width: 100%;
}
.w-50px{
    width: 50px;
}
.w-80px{
    width: 80px !important;
}
.w-100px{
    width: 100px !important;
}
.w-120px{
    width: 120px !important;
}
.w-150px{
    width: 150px;
}
.w-200px{
    width: 200px;
}
.youtube-link-wrapper {
    display: flex;
}
.youtube-link-wrapper input {
    width: 400px;
    height: 32px;
    border: 1px solid #ddd;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    padding-left: 10px;
    font-size: 12px;
}

.youtube-link-wrapper input:focus {
    outline: none;
}

.youtube-link-wrapper button {
    padding: 0 15px;
    height: 32px;
    border: 1px solid #ddd;
    /* background: #fff; */
    border-top-right-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
    border-radius: 0;
    cursor: pointer;
    transition: .2s ease-in-out;
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

.youtube-link-wrapper button:focus {
    outline: none;
}

.youtube-link-wrapper button:hover {
    background: #fbfbfb;
}

.file-preview-block iframe{
    height: 120px;
}
.form-header button{ 
    border: none;
    width: fit-content;
    height: 32px;
    padding: 0 10px;
}
.form-header-invoice-po button{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: fit-content;
    height: 32px;
    padding: 0 10px;
}
.form-header button i{
    position: relative;
    top: 1px;
    margin-right: 4px;
}

.form-item{
    position: relative;
    /* margin-bottom: 16px; */
}

.form-item label{
    font-size: 14px;
}

.form-item label.sm-lbl{
    font-size: 14px;
}

.form-item input{
    margin-top: 6px;
    position: relative;
    width: 100%;
    height: 32px;
    background: #fff;
    padding-left: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    border-radius: 5px !important;
}

.form-item input:focus{
    outline: none;
}

.form-item input:disabled, .form-item input:read-only{
    background: #eee;
    pointer-events: auto;
}

.form-item select, .form-item .select2-container, .form-item .richtexteditor{
    margin-top: 6px !important;
}

/* .form .row{
    gap: 32px;
} */
.ql-formats .select2-container{
    display: none !important;
}
.form-footer{
    position: sticky;
    padding: 0 20px; 
    transform: translate(-32px, 20px);
    bottom: 0;
    left: 0;
    width: calc(100% + 64px);
    height: 50px;
    background: #fff;
    z-index: 1;
    border-top: 1px solid #ddd;
    align-items: center;
    display: flex;
    justify-content: end;
}

.form-footer--btn{
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    padding: 0 8px;
}

.form-footer--btn button{
    width: fit-content;
    height: 32px;
    border: none;
    border-radius: 5px;
    padding: 0 16px;
}

.product-variant--stock{
    position: relative;
    text-align: center;
    text-underline-offset: 3px;
    text-decoration: underline;
}

.product-variant--img{
    position: relative;
    width: 44px;
    height: 44px;
    /* left: 50%;
    transform: translateX(-50%); */
}

.pricing-detail--tbl th:last-of-type, .pricing-detail--tbl td:last-of-type{
    text-align: center;
}

.po-info {
    display: grid;
    grid-template-columns: max-content 1fr;
    row-gap: 6px;
    column-gap: 10px;
    font-size: 16px;
}
    .po-info .label {
    font-weight: bold;
    white-space: nowrap;
}

.pricing-detail--tbl input{
    padding: 0 6px;
    text-align: center;
    margin-top: 6px;
}

.stockhistory-outlet{
    position: absolute;
    left: 0;
    z-index: 1;
    height: 35px;
}

#stockhistorytable_wrapper .dataTables_length{
    position: relative;
    left: 200px !important;
}

.price-list--label{
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.price-list--amount{
    position: relative;
}

.price-list--amount input{
    text-align: right;
    padding: 0 16px;
}

.price-list--label.retail{
    font-weight: bold;
    color: var(--primary-color);
}

.price-list--amount.retail input{
    border: none;
    pointer-events: none;
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
}

.current-stock--balance{
    text-align: center;
}

.addstock-tb{
    text-align: center;
    padding-left: 30px;
}

.get-youtube-container {
    position: absolute;
    top: 0;
    display: flex;
    right: 0;
}

.get-youtube-container input {
    width: 400px;
    height: 32px;
    border: 1px solid #ddd;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    padding-left: 10px;
    font-size: 12px;
}

.get-youtube-container input:focus {
    outline: none;
}

.get-youtube-container button {
    padding: 0 15px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    cursor: pointer;
    transition: .2s ease-in-out;
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

.get-youtube-container button:focus {
    outline: none;
}

.get-youtube-container button:hover {
    background: #fbfbfb;
}

.input-file-container {
    position: absolute;
    top: 0;
    right: 410px;
    width: fit-content;
    height: 32px;
    font-weight: normal;
}

.input-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.input-file-trigger {
    display: block;
    height: 32px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 12px;
    transition: all .4s;
    cursor: pointer;
}

.segment-header{
    position: relative;
    font-weight: bold;
    font-size: 16px;
}

.segment-header i{
    position: relative;
    top: 1px;
    font-size: 16px;
    margin-right: 4px;
    color: #828282;
}

.segment-header button{
    position: absolute;
    right: 0;
}

.segment-header button i{
    color: #fff;
}

.cat-header{
    position: relative;
    font-weight: bold;
    color: var(--primary-color);
}

.cat-content{
    position: relative;
    margin-top: 10px;
}

.cat-content div{
    margin-top: 6px;
    color: #828282;
}

.cat-content div i{
    position: relative;
    top: 1px;
    margin-right: 4px;
}

.cat-footer{
    margin-top: 12px;
}


ul.modal-list--item{
    padding-left: 0;
}

ul.modal-list--item.scrollable{
    max-height: 400px;
    overflow: auto;
}

ul.modal-list--item li{
    list-style-type: none;
    margin-top: 6px;
}

ul.modal-list--item li i{
    position: relative;
    color: #828282;
    top: 1.5px;
    margin-right: 6px;
}

.paylabel{
    position: relative;
    background: #aaa;
    color: #fff;
    border-radius: 5px;
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}

.paylabel.received{
    background: #42a942;
}

.paylabel.billed{
    background: #44559a;
}

.paylabel.unpaid{
    background: #f05656;
}

.status-paid {
    color: #4ca44c;
}

.status-partial {
    color: #ffc107; /* or orange is more visible */
}

.status-unpaid {
    color: #f94141;
}

.dealer-details{
    position: relative;
    min-height: 20px;
    padding-left: 120px;
    display: flex;
    margin-top: 4px;
}

.dealer-details label{
    position: absolute;
    left: 0;
}

.dealer-details div{
    padding-left: 16px;
}

#dealerDetails{
    display: none;
}

.product-select--cont{
    position: relative;
    display: flex;
    gap: 16px;
    align-items: end;
}

.product-select--cont button{
    width: 100px;
    background: #535353;
    color: #fff;
    margin-top: 6px;
}

.product-order--selected{
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
    min-height: 32px;
}

.product-order--selected.header{
    margin-top: 16px;
}

.product-order--selected div:first-of-type{
    position: relative;
    width: 682px;
}

.product-order--selected div:nth-child(2){
    position: relative;
    width: 80px;
    text-align: center;
}

.product-order--selected div:nth-child(3){
    position: relative;
    width: 80px;
    text-align: center;
}

.product-order--selected div:nth-child(4){
    position: relative;
    width: 80px;
    text-align: center;
}

.product-order--selected div:last-of-type{
    width: 44px;
}

.remove-product--selected{
    background: #d85c5c;
    color: #fff;
    /* width: 44px; */
    height: 32px;
}
.remove-subcategory--selected{
    background: #d85c5c;
    color: #fff;
    height: 35px;
    font-size: 14px;
    padding: 0 15px;
}


.product-order--selected.header div{
    font-size: 14px;
    font-weight: bold;
}

.product-order--selected input{
    width: 100%;
}

.od-header{
    font-weight: 600;
}

.od-item{
    position: relative;
    display: flex;
    padding-left: 148px;
    margin-top:  4px;
}

.od-item label{
    position: absolute;
    left: 0;
}

.od-item div{
    position: relative;
    padding-left: 16px;
    width: 100%;
}

.order-detail--table{
    position: relative;
    margin-top: 16px;
}
.order-detail--table tr th {
    color: #fff !important;
}
.od-summary{
    text-align: right;
    max-width: 245px;
    position: relative;
    transform: translateX(-100%);
    right: -100%;
}

.od-summary .od-item div{
    text-align: right;
}

.od-item.retail-cost{
    color: #aaa;
}

.od-item.total-amount{
    font-weight: bold;
    color: var(--primary-color);
}

.od-summary {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px 20px;
    max-width: 400px;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.08); */
}

/* Product summary */
.od-summary .od-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 6px;
    color: #333;
}

.od-summary .od-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
    color: #444;
}

.od-summary .od-item label {
    font-weight: 500;
    color: #555;
}

.od-summary .od-item div,
.od-summary .od-item input {
    font-weight: bold;
    font-size: 14px;
    min-width: 100px;
    text-align: right;
}
.pr-8{
    padding-right: 8px;
}

.od-summary .discount-input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 8px;
    width: 120px;
    font-size: 14px;
    text-align: right;
    transition: 0.2s;
}

.od-summary .discount-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 3px rgba(0,123,255,0.4);
}

.od-summary .finalTotal {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
}
/* ... */

#outletAddress{
    display: none;
}

.transferlabel{
    position: relative;
    padding: 4px 6px;
    background: #aaa;
    color: #fff;
    border-radius: var(--border-radius);
}

.transferlabel.received{
    background: #42a942;
}

.transferlabel.created{
    background: #44559a;
}

.transferlabel.intransit{
    background: #449a93;
}

.transferlabel.cancelled{
    background: #f05656;
}

.table-filter{
    /* position: absolute; */
    /* top: 24px; */
    /* right: 310px; */
    display: flex;
    gap: 8px;
    z-index: 1;
    float: right;
    margin-bottom: 10px;
}

.table-filter--btn{
    padding: 0 26px;
}

.table-filter--btn.active{
    background: var(--primary-color);
    color: #fff;
}

.setting-cat--container{
    position: relative;
    max-height: calc(100vh - 150px);
    overflow: auto;
}

.product-cat--list{
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-cat--img{
    width: 40px;
}

.product-cat--img img{
    width: 100%;
}

.product-cat--name{
    font-weight: 500;
}

.product-cat--name small{
    color: #aaa;
}

.form-product--footer{
    position: relative;
    display: flex;
    height: 60px;
    gap: 16px;
    padding: 0 16px;
    align-items: center;
    line-height: 1.8;
}

/* Upload Image */
.uploader {
    display: block;
    clear: both;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
  }

  .uploader label {
    float: left;
    clear: both;
    width: 100%;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    border-radius: 7px;
    border: 3px solid #eee;
    transition: all 0.2s ease;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
  }
  .uploader label:hover {
    border-color: #454cad;
    cursor: pointer;
  }
  .uploader label.hover {
    border: 3px solid #454cad;
    box-shadow: inset 0 0 0 6px #eee;
  }
  .uploader label.hover #start i.fa {
    transform: scale(0.8);
    opacity: 0.3;
  }
  .uploader #start {
    float: left;
    clear: both;
    width: 100%;
  }
  .uploader #start.hidden {
    display: none;
  }
  .uploader #start i {
    font-size: 50px !important;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
  }
  .uploader #response {
    float: left;
    clear: both;
    width: 100%;
  }
  .uploader #response.hidden {
    display: none;
  }
  .uploader #response #messages {
    margin-bottom: 0.5rem;
  }
  .uploader #file-image {
    display: inline;
    margin: 0 auto 0.5rem auto;
    width: auto;
    height: auto;
    max-width: 180px;
  }
  .uploader #file-image.hidden {
    display: none;
  }
  .uploader #notimage {
    display: block;
    float: left;
    clear: both;
    width: 100%;
  }
  .uploader #notimage.hidden {
    display: none;
  }
  .uploader progress,
  .uploader .progress {
    display: inline;
    clear: both;
    margin: 0 auto;
    width: 100%;
    max-width: 180px;
    height: 8px;
    border: 0;
    border-radius: 4px;
    background-color: #eee;
    overflow: hidden;
  }
  .uploader .progress[value]::-webkit-progress-bar {
    border-radius: 4px;
    background-color: #eee;
  }
  .uploader .progress[value]::-webkit-progress-value {
    background: linear-gradient(to right, #393f90 0%, #454cad 50%);
    border-radius: 4px;
  }
  .uploader .progress[value]::-moz-progress-bar {
    background: linear-gradient(to right, #393f90 0%, #454cad 50%);
    border-radius: 4px;
  }
  .uploader input[type=file] {
    display: none;
  }
  .uploader div {
    margin: 0 0 0.5rem 0;
    color: #5f6982;
  }
  .uploader .btn {
    display: inline-block;
    margin: 0.5rem 0.5rem 1rem 0.5rem;
    clear: both;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: initial;
    border: none;
    border-radius: 0.2rem;
    outline: none;
    padding: 0 1rem;
    height: 36px;
    line-height: 36px;
    color: #fff;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    background: #454cad;
    border-color: #454cad;
    cursor: pointer;
  }

  

  .uploader.small{
    width: 60%;
    margin: 0;
  }

  .uploader.small label{
    width: 60%;
  }

  /* elia */

  /* Container */

/* Section Headers */
.section-header {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

/* Info Items */
.info {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}
.info-row {
    display: flex;
    margin-bottom: 4px;
}
.info-label {
    width: 140px; /* Adjust width to suit your labels */
    /* font-weight: bold; */
}
.info-data {
    flex: 1;
}
.text-right{
    text-align: right !important;
}
.mt-6{
    margin-top: 6px;
}
.mb-6{
    margin-bottom: 6px;
}
.mt-20{
    margin-top: 20px;
}
.mt-40{
    margin-top: 40px;
}
.mt-60{
    margin-top: 60px;
}
.mb-20{
    margin-bottom: 20px;
}
.mb-40{
    margin-bottom: 40px;
}
.mb-60{
    margin-bottom: 60px;
}
.mx-auto{
    margin: auto;
}
.d-flex{
    display:flex;
}
.space-between{
    justify-content: space-between;
}
.align-center{
    align-items: center;
}
.align-baseline{
    align-items: baseline;
}
.card {
    /* width: 300px; */
    background: white;
    /* border-radius: 12px; */
    padding: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}
.card-header {
    color: #000;
    font-size: 16px;
}
.card-body {
    padding: 20px;
    font-size: 16px;
    color: #333;
}
.mb-0{
    margin-bottom: 0;
}
.mt-0{
    margin-top: 0 !important;
}
.m-0{
    margin: 0;
}
.badge-success{
    color: #fff;
    background-color: #198754;
}
.badge-primary{
    color: #fff;
    background-color: #0d6efd;
}
.badge-secondary{
    color: #fff;
    background-color: #6c757d;
}
.badge-danger{
    color: #fff;
    background-color: #dc3545;
}
.badge-warning{
    color: #444;
    background-color: #ffc107;
}
.badge-attention{
    color: #fff;
    background-color: #ff8100;
}
.badge-info{
    color: #444;
    background-color: #0dcaf0;
}
.badge-dark{
    color: #fff;
    background-color: #343a40;
}
.badge-pill {
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}
.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    width: 100px;
}
.ql-container.ql-snow{
    border-radius: 0 0 4px 4px !important;
}

.ql-toolbar.ql-snow {
    margin-top: 6px;
    font-family: "Poppins", serif !important;
    border-radius: 4px 4px 0 0;
}
.ql-container {
    font-family: "Poppins", serif !important;
    font-size: 14px !important;
}
#receipt-upload .file-upload{
    width: auto;
    padding: 0;
}
.file-upload {
    background-color: #ffffff;
    /* width: 600px; */
    /* margin: 0 auto; */
    padding: 20px;
  }
  
  .file-upload-btn {
    width: fit-content;
    margin: 0;
    color: #fff;
    background: #535353;
    border: none;
    padding: 0 1rem;
    border-radius: 4px;
    /* border-bottom: 3px solid #454cad; */
    transition: all .2s ease;
    outline: none;
    text-transform: initial;
    font-weight: 700;
  }
  
  .file-upload-btn:hover {
    background: #535353;
    color: #ffffff;
    transition: all .2s ease;
    cursor: pointer;
  }
  
  .file-upload-btn:active {
    border: 0;
    transition: all .2s ease;
  }
  
  .file-upload-content {
    display: none;
    position: relative;
    text-align: center;
    border: 3px solid #eee;
    padding: 2rem 1.5rem;
    border-radius: 7px;
    transition: all 0.2s ease;
    overflow-x: hidden;
  }
  
  .file-upload-input {
    position: absolute !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    outline: none !important;
    opacity: 0 !important;
    cursor: pointer !important;
    pointer-events: visible !important;
  }
  
  .image-upload-wrap {
    margin-top: 20px;
    border: 3px dashed #ccc;
    position: relative;
  }
  
  .image-dropping,
  .image-upload-wrap:hover {
    background-color: #ccc;
    border: 3px dashed #ffffff;
  }
  
  .image-title-wrap {
    padding: 0 15px 15px 15px;
    color: #222;
  }
  
  .drag-text {
    text-align: center;
  }
  
  .drag-text h3 {
    font-weight: 100;
    text-transform: uppercase;
    color: #000;
    padding: 60px 0;
  }
  
  .file-upload-image {
    max-height: 300px;
    max-width: 300px;
    margin: auto;
    padding: 20px;
  }
  
  .remove-image {
    margin-top: 15px;
    background-color: red;
    color: white;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    border-radius: 3px;
  }
  .red{
    color: #c13b2a;
  }
  .grey{
    color: #585858;
  }
  
  .remove-image:hover {
    background: #c13b2a;
    color: #ffffff;
    transition: all .2s ease;
    cursor: pointer;
  }
  
  .remove-image:active {
    border: 0;
    transition: all .2s ease;
  }
  .pdf-preview{
    color: #4ca44c;
    font-weight: 700;
  }

  .profile-card h2 {
    margin: 10px 0 0;
  }


  .stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }

  .stats div {
    text-align: center;
  }

  .info {
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    /* border-top: 1px solid #2a2d5a; */
    padding-top: 15px;
  }




  .post:last-child {
    border-bottom: none;
  }

  .post-date {
    float: right;
    font-size: 13px;
    color: #aaa;
  }

  /* Bootstrap-style grid system */
/* .container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
  } */
  
  .row {
    display: flex;
    flex-wrap: wrap;
  }
  
  [class^="col-lg"] {
    padding: 10px;
    box-sizing: border-box;
  }
  
  /* Generate col-1 to col-12 (1/12th increments) */
  .col-lg-1  { width: 8.3333%; }
  .col-lg-2  { width: 16.6666%; }
  .col-lg-3  { width: 25%; }
  .col-lg-4  { width: 33.3333%; }
  .col-lg-5  { width: 41.6666%; }
  .col-lg-6  { width: 50%; }
  .col-lg-7  { width: 58.3333%; }
  .col-lg-8  { width: 66.6666%; }
  .col-lg-9  { width: 75%; }
  .col-lg-10 { width: 83.3333%; }
  .col-lg-11 { width: 91.6666%; }
  .col-lg-12 { width: 100%; }
  
  /* Optional: Responsive (Tablet and Mobile) */
  @media (max-width: 768px) {
    [class^="col-lg"] {
      width: 100%;
    }
  }

  .justify-end {
    justify-content: end;
  }
  .p-0{
    padding: 0;
  }
  .p-10{
    padding: 10px;
  }
  .pl-0{
    padding-left: 0 !important;
  }
  .pb-0{
    padding-bottom: 0 !important;
  }
  .pb-10{
    padding-bottom: 10px !important;
  }
  .pl-10{
    padding-left: 10px;
  }
  .pl-20{
    padding-left: 20px !important;
  }
  .pr-20{
    padding-right: 20px !important;
  }
  .pr-0{
    padding-right: 0 !important;
  }
  .pr-5{
    padding-right: 5px !important;
  }
  .pr-10{
    padding-right: 10px !important;
  }
  .pt-0{
    padding-top: 0 !important;
  }
  .br-1{
    border-right: 1px solid #ddd;
  }
  .b-r-5{
    border-radius: 5px;
  }
  .b-1px-solid{
    border: 1px solid #ddd;
  }
  .align-strecth{
    align-items: stretch;
  }
  .h-100{
    height: 100%;
  }
  .h-0{
    height: auto !important;
  }
  canvas {
    max-width: 100%;
  }
  .chart-container {
    width: 100%;
      max-width: 700px;
      height: 450px; /* Fixed height */
      min-height: 450px; /* Optional: prevent collapse on smaller screens */
      position: relative;
      margin: auto;
}

.card {
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    width: 100%;
  }
  
  .card-header select {
    padding: 0.3rem 0.6rem !important;
    border-radius: 8px !important;
    border: 1px solid #ccc !important;
    background-color: #f9f9f9 !important;
    width: auto !important;
  }
  
  .card-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  
  .shipment-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  
  .shipment-info .icon {
    font-size: 1.4rem;
  }
  
  .shipment-info h1 {
    font-size: 2.5rem;
    color: #222;
  }
  
  .change {
    font-size: 0.9rem;
    font-weight: bold;
  }
  
  .positive {
    color: #1ecb81;
    background: #eee;
    padding: 5px 10px;
    border-radius: 10px;
  }
  
  .mini-graph {
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #88aaff;
  }
  
  .progress-bar {
    background: #eee;
    border-radius: 8px;
    height: 10px;
    width: 50%;
  }
  
  .progress {
    background: #3b82f6;
    height: 100%;
    width: 70%;
    border-radius: 8px;
  }
  
  .note {
    font-size: 10px;
    color: #666;
  }
  .mini-graph {
    height: 60px;
    position: relative;
    width: 50%;
  }
  
  .mini-graph canvas {
    width: 100% !important;
    height: 100% !important;
  }

  /* test */

  .dashboard-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .column {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.5rem;
    min-width: 250px;
  }
  
  /* Make the heatmap column span 2 rows */
  .heatmap-column {
    flex: 2;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }
  

  .card-number {
    font-size: 2rem;
    font-weight: bold;
  }
  
  .card-note {
    color: green;
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }
  
  /* Heatmap styling (same as earlier) */
  .heatmap {
    
    height: 100%;
  }
  
  .heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 50px);
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .heat-box {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
  }
  
  .legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
  }
  
  .color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 4px;
  }
  
  /* Heat levels */
  .level-1 { background-color: #dbeafe; }
  .level-2 { background-color: #bfdbfe; }
  .level-3 { background-color: #60a5fa; }
  .level-4 { background-color: #2563eb; }
  .level-5 { background-color: #1e3a8a; }
  
  /* Responsive stacking */
  @media (max-width: 960px) {
    .dashboard-layout {
      flex-direction: column;
    }
  
    .heatmap-column {
      order: 3;
    }
  }
  .pr-30{
    padding-right: 30px;
  }

  .column2 {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1.5rem;
    min-width: 250px;
  }
  
  /* Make the heatmap column span 2 rows */
  .column-right {
    flex: 2;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }
  .receipt-chart{
    width: 318px !important;
    height: 318px !important;
  }
  .completion-chart{
    /* width: 450px !important; */
   min-width: 350px !important;
   max-width: 400px !important;
    height: 318px !important;
  }
  table.dashboard thead tr th{
    background: #e1e7f2;
    color: #000 !important;
    font-weight: 500;
    padding: 8px 10px;
  }
    table.dashboard tbody tr td{
    padding: 8px 10px;
  }
  .table-wrapper > table.dashboard.no-datatable th, td {
    border: 1px solid #ddd;
    }
    table .dashboard tbody tr {
    border-bottom: 1px solid #e5e7eb; /* Tailwind gray-200 style */
    }

    table .dashboard tbody tr:last-child {
    border-bottom: none; /* optional, removes the last line */
    }

  table .dashboard {
        border-bottom: 1px solid #ddd !important;
    }
    .border{
        border: 1px solid #ddd;
        width: 215mm;
        min-height: auto;
        margin: auto;
      }
      .b-none{
        border: none;
      }
    .invoice-box {
        width: 210mm;
        /* Remove fixed height to allow automatic adjustment */
        min-height: auto;
        padding: 20mm;
        margin: auto;
        font-family: 'Arial', sans-serif;
        font-size: 14px;
        line-height: 1.4;
        color: #555;
        background: #fff;
        /* border: 1px solid #ddd
        box-sizing: border-box;
        overflow: hidden; /* Important */
      }
     .invoice-box table.dataTable thead tr th {
        background: #f5f5f5 !important;
        color: #333 !important;
     }
      .invoice-box h1 {
        margin-bottom: 20px;
      }
    
      .invoice-box table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 0;
      }
    
      .invoice-box table td {
        padding: 8px;
        vertical-align: top;
      }
    
      .invoice-box table th {
        background: #f5f5f5;
        padding: 8px;
        border: 1px solid #ddd;
        color: #333 !important;
        font-size: 14px;
      }
    
      .invoice-box table td {
        border: 1px solid #eee;
        font-size: 14px;
      }
    
      .invoice-box .total {
        text-align: right;
        font-weight: bold;
        padding-top: 10px;
        font-size: 16px;
      }
    
      .invoice-box .text-right {
        text-align: right;
        font-variant-numeric: tabular-nums; 
      }
    
      .invoice-box .text-center {
        text-align: center;
      }
      .invoice-box .text-left {
        text-align: left;
      }
      .text-left {
        text-align: left !important;
      }
    
    
      .invoice-box .header {
        display: flex;
        justify-content: space-between;
        /* align-items: center; */
      }
    
      .invoice-box .company-info {
        display: flex;
        gap: 20px;
        align-items: center;
      }
      
    
      .invoice-box .logo {
        max-height: 120px;
        width: 120px;
      }
      
      @page {
        size: A4;
        margin: 0;
      }
      @media print {
        body {
            margin: 0;
          }
      }
      .textarea-custom textarea {
        width: 100%;
        min-height: 120px;
        padding: 12px 15px;
        font-size: 14px;
        font-family: inherit;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: #fff;
        resize: vertical; /* Allows user to resize vertically */
        transition: border-color 0.3s, box-shadow 0.3s;
        color: #333;
      }
      
      textarea:focus {
        border-color: #66afe9;
        box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
        outline: none;
      }
      th.date-column {
        width: 120px !important; 
    }
    td:has(.badge) {
        text-align: center !important;
    }
    .text-center {
        text-align: center !important;
    }
    table {
        table-layout: auto; /* allows column width to grow based on content */
        width: 100%;
    }
    table.dataTable.cell-border tbody tr:first-child th, table.dataTable.cell-border tbody tr:first-child td{
        white-space: nowrap;
    }

    .file-preview-block {
        position: relative;
        display: inline-block;
        margin: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 8px;
        width: 150px;
        text-align: center;
        background: #f9f9f9;
      }
      
      .file-upload-image-product {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 4px;
      }
      
      .image-title {
        font-size: 12px;
        margin-top: 5px;
        word-break: break-word;
      }
      
      .remove-preview {
        position: absolute;
        top: 5px;
        right: 5px;
        color: red;
        font-size: 18px;
        cursor: pointer;
      }
      .tbl-delete--btn{
        background: #d85c5c;
        color: #fff;
      }
      .sortable-placeholder {
        height: auto; /* Match your preview block's height */
        width: 150px;
        background: #f0f0f0;
        border: 2px dashed #999;
        margin: 5px 0;
    }
    .file-preview-block {
        margin: 10px 0;
        cursor: move;
    }
    .preview-area {
        display: flex;
        gap: 10px; /* Optional spacing */
        overflow-x: hidden;
    }
    .thumbnail-uploader {
        width: 250px;
        padding: 20px;
        border-radius: 16px;
        background-color: #f9fbfd;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        text-align: center;
    }
    
    .thumbnail-label {
        font-size: 16px;
        margin-bottom: 10px;
        display: block;
    }
    
    .thumbnail-preview {
        position: relative;
        width: 100%;
        padding-top: 100%;
        background-color: #fff;
        border-radius: 12px;
        border: 1px dashed #ccc;
        overflow: hidden;
    }
    
    .thumbnail-preview img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .edit-btn,
    .remove-btn {
        position: absolute;
        background: #ffffff;
        border: none;
        cursor: pointer;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        font-size: 14px;
        line-height: 28px;
        text-align: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        transition: background 0.2s;
    }
    
    .edit-btn:hover,
    .remove-btn:hover {
        background: #f0f0f0;
    }
    
    .edit-btn {
        top: 8px;
        right: 8px;
    }
    
    .remove-btn {
        bottom: 8px;
        right: 8px;
    }
    
    .thumb-note {
        margin-top: 12px;
        font-size: 12px;
        color: #999;
    }
    
    
    .filter-dropdown {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: white;
        cursor: pointer;
    }
    
    .selection-tabs {
        display: flex;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .tab-collection {
        padding: 10px 20px;
        cursor: pointer;
        border-bottom: 2px solid transparent;
    }
    
    .tab-collection.active {
        border-bottom: 2px solid #3498db;
        color: #3498db;
        font-weight: 500;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
        margin-left: auto;
    }
    
    .btn {
        padding: 8px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.2s;
    }
    
    .btn-outline {
        background-color: transparent;
        border: 1px solid #ddd;
    }
    
    .btn-outline:hover {
        background-color: #f5f5f5;
    }
    
    .btn-primary {
        background-color: #3498db;
        color: white;
    }
    
    .btn-primary:hover {
        background-color: #2980b9;
    }
    
    .btn-danger {
        background-color: #e74c3c;
        color: white;
        
    }
    .btn-success {
        background-color: #4ca44c;
        color: white;
        width: 10px;
        height: 20px;
    }
    
    .btn-danger:hover {
        background-color: #c0392b;
    }
    
    
    .checkbox-cell {
        width: 40px;
    }
    
    .pagination {
        display: flex;
        justify-content: center;
        margin: 20px 0;
    }
    
    .page-number {
        padding: 8px 12px;
        margin: 0 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .page-number.active {
        background-color: #3498db;
        color: white;
        border-color: #3498db;
    }
    
    .dataTables_wrapper .dataTables_filter label{
        display: flex;
        align-items: baseline;
    }
    th input[type="checkbox"] {
        pointer-events: auto !important;
      }

    td input[type="checkbox"] {
        pointer-events: auto !important;
      }

      

      .custom-checkbox {
        /* display: flex;
        align-items: center; */
        text-align: center;
        gap: 10px;
        cursor: pointer;
        font-family: sans-serif;
        padding: 10px 0;
      }
      
      .custom-checkbox input[type="checkbox"] {
        display: none;
      }
      
      .custom-checkbox .checkmark {
        height: 20px;
        width: 20px;
        background-color: #f0f0f0;
        border-radius: 6px;
        border: 2px solid #ccc;
        display: inline-block;
        position: relative;
        transition: all 0.2s ease-in-out;
      }
      
      .custom-checkbox input[type="checkbox"]:checked + .checkmark {
        background-color: #79ace9;
        border-color: #79ace9;
      }
      
      .custom-checkbox .checkmark::after {
        content: "";
        position: absolute;
        display: none;
      }
      
      .custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
        display: block;
        left: 6px;
        top: 2px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
      }

      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
      .poppins-font {
        font-family: 'Poppins', sans-serif;
      }

      .use-btn {
        margin-top: 10px;
        padding: 6px 12px;
        background-color: #587ac4;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        transition: background-color 0.3s ease;
      }
      .use-btn:hover {
        background-color: #0056b3;
      }
      .collapsible-box {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease;
        opacity: 0;
      }
      
      .collapsible-box.open {
        max-height: 1000px; /* big enough to fit content */
        opacity: 1;
      }
      .missing-field {
        border: 1px solid #ef5c5c !important;
        background-color: #ffe6e6;
    }
   .select2-po{
    width: 500px !important;
   }
   .w-500px{
    width: 482.328px !important;
   }

  .bg-detail{
    padding: 10px;
    background: #eee;
    margin-top: 10px;
    border-radius: 4px;
  }
  .text-right{
    text-align: right;
  }
  .pr-5{
    padding-right: 5px;
  }
.fw-700{
    font-weight: 700;
}
.fw-600{
    font-weight: 600;
}
.b-1{
    border: 1px solid #ddd;
}

.product-table tbody tr td:first-child input[type="text"] {
    background-color: unset;
    text-align: left !important;
    border: unset;
    padding: 0;
}

#po-table th:nth-child(4),
#po-table td:nth-child(4) {
  text-align: right !important;
}

.update-payment-card {
    background-color: #f9f9f9;       
    border: 1px solid #ddd;         
    border-radius: 8px;              
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); 
  }
  .bg-solid{
    background-color: #f9f9f9 !important;       
  }

  .image-upload-wrap.show {
    display: block;
    opacity: 1;
  }

  .delivery_location {
    display: flex;
    align-items: flex-start;
    gap: 4px;
  }
  
  .delivery_location .prefix {
    flex-shrink: 0; /* Don't allow ':' to wrap or shrink */
  }
  
  .delivery_location .content {
    flex: 1 1 auto;
    word-break: break-word;
  }
  .justify-between{
    justify-content: space-between;
  }
  .scroll-x{
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.profile-dropdown {
    position: relative;
    cursor: pointer;
    background: #ddd;
    padding: 0 15px 0 5px;
    border-radius: 300px;
  }
  
  .profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
  }

  
  .text-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  
  .name {
    font-weight: bold;
  }
  
  .position {
    font-size: 12px;
    color: #444;
  }
  
  .arrow {
    font-size: 12px;
    margin-left: 5px;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    background-color: white;
    min-width: 120px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
  }
  
  .dropdown-item {
    padding: 10px 15px;
    display: block;
    color: #333;
    text-decoration: none;
  }
  
  .dropdown-item:hover {
    background-color: #f2f2f2;
  }

  

  .timeline {
    border-left: 2px solid #587ac4;
    padding-left: 20px;
    margin-top: 25px;
    margin-left: 18px;
  }

  .entry {
    position: relative;
    margin-bottom: 30px;
  }

  .entry::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 1px;
    width: 14px;
    height: 14px;
    background-color: #587ac4;
    border-radius: 50%;
    border: 2px solid #fff;
  }

  .time {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
  }

  .desc {
    font-size: 14px;
    color: #333;
  }
  .avatar {
    width: 28px;
    height: 28px;
    background-color: #2b2b2b;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 0;
  }

  /* product category image */
  
  .image-product-upload {
    /* border: 2px dashed #ccc; */
    /* padding: 20px; */
    border-radius: 10px;
    /* text-align: center; */
    position: relative;
    /* background-color: #fafafa; */
    transition: border-color 0.3s ease;
}
.thumb-product-upload {
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    position: relative;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}
.image-product-upload:hover {
    border-color: #999;
}

.file-upload-input {
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.file-preview-block {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    /* max-width: 110px; */
    align-items: center;
    display: flex;
    flex-direction: column;
}
.rm-border{
    border: unset !important;
    box-shadow: unset !important;
    width: 420px !important;
    max-width: none !important;
    background: none !important;
}

.file-preview-block img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 4px;
}

.file-preview-block button {
    background-color: #ff4d4f;
    border: none;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.file-preview-block button:hover {
    background-color: #d9363e;
}

.thumb-note {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}
  /* Base table styling */
.dataTables_wrapper .dataTables_scroll {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{
    scrollbar-width: thin;
    scroll-behavior: smooth;
}
/* Column width enforcement */
table[data-table-type="po-table"] th:nth-child(1),
table[data-table-type="po-table"] td:nth-child(1) {
    width: 80px !important;
    min-width: 80px !important;
}

/* More specific selector */
#po-table > thead > tr > th:nth-child(6),
#po-table > tbody > tr > td:nth-child(6) {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}
.w-180px{
    width: 180px;
}
/* Add similar rules for other table types */
.subcategory-input{
    width: 600px;
}
table.dataTable thead tr>.dtfc-fixed-left, table.dataTable thead tr>.dtfc-fixed-right, table.dataTable tfoot tr>.dtfc-fixed-left, table.dataTable tfoot tr>.dtfc-fixed-right{
    background-color: #323781 !important;
}
#dynamic-table-placeholder th, #dynamic-table-placeholder td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#dynamic-table-placeholder th:nth-child(1),
#dynamic-table-placeholder td:nth-child(1) {
    width: 200px !important;
}

#dynamic-table-placeholder th:nth-child(2),
#dynamic-table-placeholder td:nth-child(2) {
    width: 200px !important;
}
.terms ol {
    padding-left: 20px;
}

.terms li {
    margin-bottom: 8px;
}

.signature-line {
    border-bottom: 1px solid #000;
    width: 250px;
    margin-top: 80px;
}

.customer-sign {
    margin-top: 5px;
    font-weight: bold;
}

.delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.delivery-table th, .delivery-table td {
    border: 1px solid #000;
    padding: 10px;
    vertical-align: top;
    text-align: left;
}

.delivery-table th {
    text-align: center;
    background-color: #f4f4f4;
}

.signature-box {
    text-align: center;
    padding-top: 30px;
}

.invoice-container {
    max-width: 800px;
    margin: auto;
    border: 1px solid #ddd;
    padding: 20px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.invoice-address {
    width: 32%;
}

.invoice-address h4 {
    margin-bottom: 5px;
}

.invoice-status {
    width: 20%;
    text-align: center;
}

.status-box {
    border: 1px solid #ddd;
    padding: 10px;
}

.status-box p {
    margin: 0;
    font-weight: bold;
}

.paid {
    color: green;
    font-size: 24px;
    margin-top: 5px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-table th, .invoice-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.invoice-table th {
    background: #f4f4f4;
}

.item-code {
    font-size: 12px;
    color: #666;
}

.summary {
    text-align: right;
    margin-top: 10px;
}

.summary p {
    margin: 3px 0;
}

.terms {
    margin-top: 0;
    font-size: 10px;
}

.terms h4 {
    margin-bottom: 10px;
}

.terms ol {
    margin-left: 20px;
}

.note {
    margin-top: 10px;
    font-style: italic;
}

.qr-code {
    margin-top: 10px;
    width: 100px;
}

.invoice-box table.dealer td {
    border: unset !important;
    font-size: 14px;
}
.invoice-so{
    max-height: calc(100% - 30px) !important;
}


/* .sales .card {
        background: #e9f4fb;
        border-radius: 10px;
        padding: 20px;
        width: 300px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    } */
   .sales .tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }
   .sales .tab {
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 5px;
        font-size: 14px;
        color: #555;
        background: transparent;
        border: none;
    }
   .sales .tab.active {
        font-weight: bold;
        color: #587ac4;
        background: #d8ebff;
    }
   .sales .title {
        text-align: center;
        font-size: 14px;
        color: #6c7a89;
        margin-bottom: 5px;
    }
  .sales  .amount {
        text-align: center;
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 15px;
        color: #007bff;
    }
   .sales .line {
        border-top: 1px solid #ccc;
        margin: 10px 0;
    }
    .sales .row {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        padding: 5px 0;
    }
    .sales .label {
        color: #555;
    }
   .sales .value {
        font-weight: bold;
    }


    .payment-overview {
    padding: 1rem;
    }

    .payment-overview h2 {
    margin: 0;
    font-size: 1.2rem;
    }

    .payment-overview .subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    }

    /* .overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    } */

    .overview-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .overview-card .title {
    font-size: 0.9rem;
    color: #333;
    }

    .overview-card .amount {
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
    }
    .stock .title {
        text-align: center;
        font-size: 14px;
        color: #6c7a89;
        margin-bottom: 5px;
    }
    .stock  .amount {
        text-align: center;
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 15px;
        color: #007bff;
    }
   .stock .line {
        border-top: 1px solid #ccc;
        margin: 10px 0;
    }
    .stock .section {
        margin-bottom: 18px;
        padding: 20px;
        background: aliceblue;
    }

    .stock .section:last-child {
        margin-bottom: 0;
    }

    .stock .section-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        font-weight: bold;
        color: #333;
    }

    .stock .section-sub {
        font-size: 12px;
        color: #888;
        margin-top: 4px;
    }
    

    .stock .progress-percent {
        font-size: 14px;
        font-weight: 600;
    }

    .stock .progress-bar {
        height: 6px;
        border-radius: 3px;
        background-color: #e9ecef;
        margin-top: 8px;
        overflow: hidden;
    }

    .stock .progress-fill {
        height: 100%;
        border-radius: 3px;
    }

    .stock .orange {
        background-color: #f79958;
    }

    .stock .blue {
        background-color: #4da3ff;
    }

    .stock .icon-blue {
        color: #00347e;
    }
    .table-wrapper{
        max-height: 360px;
        overflow-y: auto;
    }
    .table-wrapper table {
        border-collapse: collapse;
        width: 100%;
    }

    .table-wrapper thead th {
        position: sticky;
        top: 0;
        background: #f5f5f5; /* Match your table header background */
        z-index: 2; /* Make sure it stays above table rows */
    }
/* } */

.no-sort::after { display: none !important; }
.no-sort { pointer-events: none !important; cursor: default !important; }

/* Fixed version of your rule */

table.datatable-supplier thead th:nth-child(5).sorting,
table.datatable-supplier thead th:nth-child(5).sorting_asc,
table.datatable-supplier thead th:nth-child(5).sorting_desc {
    background-image: none !important;
}
table.datatable-supplier thead th:nth-child(6).sorting,
table.datatable-supplier thead th:nth-child(6).sorting_asc,
table.datatable-supplier thead th:nth-child(6).sorting_desc {
    background-image: none !important;
}

table.datatable-payment thead th:nth-child(5).sorting,
table.datatable-payment thead th:nth-child(5).sorting_asc,
table.datatable-payment thead th:nth-child(5).sorting_desc {
    background-image: none !important;
}

table.datatable-po thead th:nth-child(5).sorting,
table.datatable-po thead th:nth-child(5).sorting_asc,
table.datatable-po thead th:nth-child(5).sorting_desc {
    background-image: none !important;
}
table.datatable-po thead th:nth-child(6).sorting,
table.datatable-po thead th:nth-child(6).sorting_asc,
table.datatable-po thead th:nth-child(6).sorting_desc {
    background-image: none !important;
}
table.datatable-po thead th:nth-child(7).sorting,
table.datatable-po thead th:nth-child(7).sorting_asc,
table.datatable-po thead th:nth-child(7).sorting_desc {
    background-image: none !important;
}

table.datatable-outlet thead th:nth-child(3).sorting,
table.datatable-outlet thead th:nth-child(3).sorting_asc,
table.datatable-outlet thead th:nth-child(3).sorting_desc {
    background-image: none !important;
}

table.datatable-outlet thead th:nth-child(4).sorting,
table.datatable-outlet thead th:nth-child(4).sorting_asc,
table.datatable-outlet thead th:nth-child(4).sorting_desc {
    background-image: none !important;
}
table.datatable-outlet thead th:nth-child(5).sorting,
table.datatable-outlet thead th:nth-child(5).sorting_asc,
table.datatable-outlet thead th:nth-child(5).sorting_desc {
    background-image: none !important;
}



table.datatable-dealer thead th:nth-child(6).sorting,
table.datatable-dealer thead th:nth-child(6).sorting_asc,
table.datatable-dealer thead th:nth-child(6).sorting_desc {
    background-image: none !important;
}
table.datatable-dealer thead th:nth-child(7).sorting,
table.datatable-dealer thead th:nth-child(7).sorting_asc,
table.datatable-dealer thead th:nth-child(7).sorting_desc {
    background-image: none !important;
}


table.datatable-po-supplier thead th:nth-child(4).sorting,
table.datatable-po-supplier thead th:nth-child(4).sorting_asc,
table.datatable-po-supplier thead th:nth-child(4).sorting_desc {
    background-image: none !important;
}
table.datatable-po-supplier thead th:nth-child(5).sorting,
table.datatable-po-supplier thead th:nth-child(5).sorting_asc,
table.datatable-po-supplier thead th:nth-child(5).sorting_desc {
    background-image: none !important;
}

table.datatable-po-supplier thead th:nth-child(6).sorting,
table.datatable-po-supplier thead th:nth-child(6).sorting_asc,
table.datatable-po-supplier thead th:nth-child(6).sorting_desc {
    background-image: none !important;
}


table.datatable-incoming thead th:nth-child(6).sorting,
table.datatable-incoming thead th:nth-child(6).sorting_asc,
table.datatable-incoming thead th:nth-child(6).sorting_desc {
    background-image: none !important;
}
table.datatable-incoming thead th:nth-child(7).sorting,
table.datatable-incoming thead th:nth-child(7).sorting_asc,
table.datatable-incoming thead th:nth-child(7).sorting_desc {
    background-image: none !important;
}

table.datatable-inventoryConsolidation thead th:nth-child(6).sorting,
table.datatable-inventoryConsolidation thead th:nth-child(6).sorting_asc,
table.datatable-inventoryConsolidation thead th:nth-child(6).sorting_desc {
    background-image: none !important;
}
table.datatable-inventoryConsolidation thead th:nth-child(7).sorting,
table.datatable-inventoryConsolidation thead th:nth-child(7).sorting_asc,
table.datatable-inventoryConsolidation thead th:nth-child(7).sorting_desc {
    background-image: none !important;
}

table.datatable-so thead th:nth-child(7).sorting,
table.datatable-so thead th:nth-child(7).sorting_asc,
table.datatable-so thead th:nth-child(7).sorting_desc {
    background-image: none !important;
}


table.datatable-so thead th:nth-child(8).sorting,
table.datatable-so thead th:nth-child(8).sorting_asc,
table.datatable-so thead th:nth-child(8).sorting_desc {
    background-image: none !important;
}
table.datatable-so thead th:nth-child(9).sorting,
table.datatable-so thead th:nth-child(9).sorting_asc,
table.datatable-so thead th:nth-child(9).sorting_desc {
    background-image: none !important;
}

table.datatable-st thead th:nth-child(2).sorting,
table.datatable-st thead th:nth-child(2).sorting_asc,
table.datatable-st thead th:nth-child(2).sorting_desc {
    background-image: none !important;
}
table.datatable-st thead th:nth-child(3).sorting,
table.datatable-st thead th:nth-child(3).sorting_asc,
table.datatable-st thead th:nth-child(3).sorting_desc {
    background-image: none !important;
}

table.datatable-df thead th:nth-child(7).sorting,
table.datatable-df thead th:nth-child(7).sorting_asc,
table.datatable-df thead th:nth-child(7).sorting_desc {
    background-image: none !important;
}

table.datatable-df thead th:nth-child(8).sorting,
table.datatable-df thead th:nth-child(8).sorting_asc,
table.datatable-df thead th:nth-child(8).sorting_desc {
    background-image: none !important;
}

table.datatable-or thead th:nth-child(7).sorting,
table.datatable-or thead th:nth-child(7).sorting_asc,
table.datatable-or thead th:nth-child(7).sorting_desc {
    background-image: none !important;
}

table.datatable-or thead th:nth-child(8).sorting,
table.datatable-or thead th:nth-child(8).sorting_asc,
table.datatable-or thead th:nth-child(8).sorting_desc {
    background-image: none !important;
}

table.datatable-rp thead th:nth-child(3).sorting,
table.datatable-rp thead th:nth-child(3).sorting_asc,
table.datatable-rp thead th:nth-child(3).sorting_desc {
    background-image: none !important;
}

table.datatable-rp thead th:nth-child(4).sorting,
table.datatable-rp thead th:nth-child(4).sorting_asc,
table.datatable-rp thead th:nth-child(4).sorting_desc {
    background-image: none !important;
} 

table.products-table thead th:nth-child(9).sorting,
table.products-table thead th:nth-child(9).sorting_asc,
table.products-table thead th:nth-child(9).sorting_desc {
    background-image: none !important;
} 

table.products-table thead th:nth-child(8).sorting,
table.products-table thead th:nth-child(8).sorting_asc,
table.products-table thead th:nth-child(8).sorting_desc {
    background-image: none !important;
} 

table.datatable-cat thead th:nth-child(3).sorting,
table.datatable-cat thead th:nth-child(3).sorting_asc,
table.datatable-cat thead th:nth-child(3).sorting_desc {
    background-image: none !important;
} 
body table.dataTable thead .sorting_desc {
    background-image: url("../DataTables/DataTables-1.10.25/images/sort_asc_disabled.png") !important;
}

body table.dataTable thead .sorting_asc {
    background-image: url("../DataTables/DataTables-1.10.25/images/sort_desc_disabled.png") !important;
}
.b-color{
    background: #e1e7f2d9;
}

.info-icon {
    display: inline-block;
    position: relative;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    margin-left: 4px;
}

.info-icon:hover {
    color: #007bff; /* highlight on hover */
}

.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    font-size: 0.85rem;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.info-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

.flatpickr-current-month{
    font-size: 110% !important;
}
.flatpickr-months .flatpickr-month{
    height: 45px !important;
}
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month{
    top: 8px !important;
}


th {
  cursor: pointer;
  position: relative;
  padding-right: 20px; /* space for icon */
}

th.sort::after {
  content: "⇅";  /* default unsorted icon */
  position: absolute;
  right: 5px;
  font-size: 12px;
  color: #aaa;
}

th.sort-asc::after {
  content: "▲";  /* up arrow */
  position: absolute;
  right: 5px;
  font-size: 12px;
  color: #000;
}

th.sort-desc::after {
  content: "▼";  /* down arrow */
  position: absolute;
  right: 5px;
  font-size: 12px;
  color: #000;
}
.hidden {
  display: none !important;
}

.dataTables_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
}

/* Restock Picking Table Styling */
table[id^="restockPickingTable_"] {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table[id^="restockPickingTable_"] th,
table[id^="restockPickingTable_"] td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

/* Header styling */
table[id^="restockPickingTable_"] thead th {
    background-color: #587ac4;
    font-weight: 600;
    color: #fff;
}



/* First two columns (SKU & Product Name) */
table[id^="restockPickingTable_"] td[rowspan] {
    background-color: #fafafa;
    font-weight: 500;
}

/* Empty state */
table[id^="restockPickingTable_"] td.text-center {
    text-align: center;
}

@media (min-width: 344px) and (max-width: 1264px){
      .col-dashboard-l { width: 100%; }
      .col-dashboard-r { width: 100%; }
      .col-widget-1 { width: 12% }
      .col-widget-2 { width: 12% }
      .col-widget-3 { width: 12% }
      .col-widget-4 { width: 12% }
      .col-widget-5 { width: 50% }
      .text-ellipsis{
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        pointer-events: auto;
        cursor: pointer;
      }
    .col-so-1 { width: 14%; }
    .col-so-2 { width: 14%; }
    .col-so-3 { width: 14%; }
    .col-so-4 { width: 14%; }
    .col-so-5 { width: 14%; }
    .col-so-6 { width: 14%; }
}

@media (min-width: 1265px) and (max-width: 1399px){
    .col-dashboard-l { width: 100%; }
    .col-dashboard-r { width: 100%; }
    .col-dashboard-l.pl-0 { padding-right: 0; }
    .col-dashboard-r.pr-0 { padding-left: 0; }
    .col-widget-1 { width: 12% }
    .col-widget-2 { width: 12% }
    .col-widget-3 { width: 12% }
    .col-widget-4 { width: 12% }
    .col-widget-5 { width: 50% }
    .text-ellipsis{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    }
    .col-so-1 { width: 15%; }
    .col-so-2 { width: 15%; }
    .col-so-3 { width: 15%; }
    .col-so-4 { width: 15%; }
    .col-so-5 { width: 15%; }
    .col-so-6 { width: 15%; }
}
@media (min-width: 1400px) and (max-width: 1439px){
    .col-dashboard-l { width: 50%; }
    .col-dashboard-r { width: 50%; }
    .col-widget-1 { width: 15% }
    .col-widget-2 { width: 15% }
    .col-widget-3 { width: 15% }
    .col-widget-4 { width: 15% }
    .col-widget-5 { width: 40% }
    .text-ellipsis{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    }

    .col-so-1 { width: 15%; }
    .col-so-2 { width: 15%; }
    .col-so-3 { width: 15%; }
    .col-so-4 { width: 15%; }
    .col-so-5 { width: 15%; }
    .col-so-6 { width: 15%; }
}
@media (min-width: 1440px) and (max-width: 1580px){
      .col-dashboard-l { width: 45%; }
      .col-dashboard-r { width: 55%; }
      .text-ellipsis{
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        pointer-events: auto;
        cursor: pointer;
      }
}
@media (min-width: 1440px) and (max-width: 1549px){
      .col-so-1 { width: 15.444%; }
      .col-so-2 { width: 15.444%; }
      .col-so-3 { width: 15.444%; }
      .col-so-4 { width: 15.444%; }
      .col-so-5 { width: 15.444%; }
      .col-so-6 { width: 15.444%; }
}
@media (min-width: 1550px) and (max-width: 1580px){
      .col-so-1 { width: 16%; }
      .col-so-2 { width: 16%; }
      .col-so-3 { width: 16%; }
      .col-so-4 { width: 16%; }
      .col-so-5 { width: 16%; }
      .col-so-6 { width: 16%; }
}
@media (min-width: 1581px) and (max-width: 1629px){
      .col-so-1 { width: 16%; }
      .col-so-2 { width: 16%; }
      .col-so-3 { width: 16%; }
      .col-so-4 { width: 16%; }
      .col-so-5 { width: 16%; }
      .col-so-6 { width: 16%; }
      
}
.text-ellipsis{
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        pointer-events: auto;
        cursor: pointer;
      }

#inventoryConsolidation-table th,
#inventoryConsolidation-table td {
    white-space: nowrap;   /* prevent wrapping */ 
    
}



.dataTables_scrollHeadInner table,
.dataTables_scrollBody table {
    width: 100% !important;
}

.products-table th,
.products-table td {
  white-space: nowrap;
  /* overflow: hidden; */
  text-overflow: ellipsis; /* optional: add "..." for long text */
}

/* Put this in your CSS */
.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column; /* stack spinner + message */
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none; /* IMPORTANT: allows clicks to pass through */
}

.table-loading-overlay .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.table-loading-overlay .loading-message {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    max-width: 80%;
    line-height: 1.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
table.multiprice-tbl tbody tr:nth-child(odd)  { background: #f7f7f769; }
table.multiprice-tbl tbody tr:nth-child(even) { background: #e1e1e182; }