/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}
.text-right {
  text-align: right;
}
.mg0 {
  margin: 0 !important;
}
.name-holder, .role-holder {
  text-transform: capitalize;
}
.pull-right {
  float: right;
}
.pull-left {
  float: left;
}
.pointer {
  cursor: pointer !important;
}
.clear {
  clear: both;
}
.clear10 {
  clear: both;
  height: 10px;
}
.clear20 {
  clear: both;
  height: 20px;
}
.clear30 {
  clear: both;
  height: 30px;
}
.clear40 {
  clear: both;
  height: 40px;
}
.clear50 {
  clear: both;
  height: 50px;
}
.bg-label-success {
  background-color: rgba(26,160,83,.1) !important;
  color: #17904b !important;
}
/* /LOADER */
.loading-content h5.loading-short,.loading-content h5.loading-long {
    font-weight: bold;
    min-height: 16px;
}
.loading-content p.loading-short,.loading-content p.loading-long {
    height: 14px;
}
.loading-short {
  background-color: #e0e0e0;  
  width: 70%;
  margin-bottom: 10px;
  animation: loadingAnimation 1.5s infinite;
}

.loading-long {
  background-color: #e0e0e0;  
  width: 90%;
  animation: loadingAnimation 1.5s infinite;
}

@keyframes loadingAnimation {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link { 
  color: #172c5c;
 }
 .bg-menu-theme .menu-inner > .menu-item.active:before {
  background: #172c5c;
 }
 a,.text-primary,.bg-label-primary {
      color: #172c5c !important;
  }
  .btn-outline-primary {
    border-color: #172c5c;
  }
  .dataTables_filter {
    float: left !important;
  }
  .dataTables_length {
    float: right !important;
  }
  .dataTables_filter,.dataTables_info {
    padding-top: 15px;
    padding-left: 15px;
    padding-bottom: 15px;
  }
  .dataTables_length,.dataTables_paginate {
    padding-top: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
  }
  .table.dataTable.no-footer {
    margin-bottom: 15px;
  }
  .btn-toastr {
    width: 100px;
    margin-right: 15px;
  }
  .btn-toastr:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  }
  .btn-toastr-no {
    border-color: #fff;
    color: #fff !important;    
  }
  .btn-toastr-yes {
    background-color: #fff;
    color: #222;
  }
  .dataTables_wrapper .dataTables_filter select {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    background-color: transparent;
    margin-left: 3px;
    height: 34.95px;
    min-width: 100px;
}
.wi-100 {
  width: 100px;
}
.wi-150 {
  width: 150px;
}
.relative {
  position: relative;
}
#dropdownProductContainer,#dropdownProductContainer2, #dropdownAccountContainer, #dropdownManagerContainer {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background-color: #fff;
  margin-top: -3px;
  z-index: 9999;
}
#dropdownProductContainer > div,#dropdownProductContainer2 > div,#dropdownAccountContainer > div,#dropdownManagerContainer > div {
  padding: 5px 10px;
  transition: 0.2s;
}
#dropdownProductContainer > div:hover,#dropdownProductContainer2 > div:hover,#dropdownAccountContainer > div:hover, #dropdownManagerContainer > div:hover {
  background-color: #fafafa;
  cursor: pointer !important;
}
.alert-tertiary {
  background-color: #fafafa;
  border-color: #fafafa;
}
.swal2-backdrop-show {
  z-index: 2000;
}
.table td {
  font-size: 1rem;
}
.btn-success {
  background-color: #4bb543 !important;
  border-color: #4bb543 !important;
}
.text-success {
  color: #4bb543 !important;
}
.bg-success {
  background-color: #4bb543 !important;
}
.text-highlight {
  background-color: #FBF719;color:#000;font-weight: bold;
  padding: 2px 5px;
}
tr.text-highlight td {
 background-color: #FBF719 !important;
 --bs-table-accent-bg: #FBF719 !important;
}
.bold {
  font-weight: bold !important;
}
* {
  color: #000 !important;
}
.bg-success,.btn-success, .btn-primary, .btn-primary > span, .btn-primary > i, .toast-error > div, .toast-success > div {
  color: #fff !important;
}
.draggable-resizable.ui-widget-content {
  width: 800px;
  height: 500px;
  padding: 5px;
  border-radius: 5px;
  position: fixed;
  left:40%;
  top: 10px;
  z-index: 9999;    
  background-color: #000;
  cursor: move;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.6)
}
.draggable-resizable.ui-widget-content .btn-close {
  color: #fff !important;
  background-color: #000;
  border-radius: 100%;
  position: absolute;
  right: -8px;    
  padding: 5px;
  top: -6px;
  z-index: 99999;
  cursor: pointer;
}
.draggable-resizable.ui-widget-content iframe {
  width: 100%;
  height: 100%;
}
.dropdownContainer {    
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background-color: #fff;
  border-top: 0;
  z-index: 99;
}
#filterBox .dropdownContainer {
  position: absolute;
}
.dropdownContainer > div {
  padding: 5px 10px;
  transition: 0.2s;
}
.dropdownContainer > div:hover,.dropdownContainer > div.hover {
  background-color: #f1f1f1;
  cursor: pointer !important;
} 
.form-inline {
  border: 0;
  outline: none;
  width: 100%;
  padding: 5px;
}
.f-16 {
  font-size: 16px !important;
}
.f-20 {
  font-size: 20px !important;
}
.box-shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
.t-2 {
  top: 2px;
}
.t-4 {
  top: 4px;
}
.l-4 {
  left: 4px;
}
.f-20 {
  font-size: 20px;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm, div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
  color: #fff !important;
}
div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content {
  color: #facea8 !important;
}
.suggestions, .suggestions2 {
  border: 1px solid #ccc; /* Light grey border */
  background-color: #fff; /* White background for the suggestions */
  max-height: 200px; /* Optional: limits the height with overflow */
  overflow-y: auto; /* Optional: adds scrolling to the suggestions box */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  position: absolute; /* Ensures the dropdown does not affect layout */
  width: 500px; /* Match or set according to the input field's width */
  z-index: 1000;
}

.suggestions div, .suggestions2 div {
    padding: 4px;
    border: 0.5px solid #ccc;
    cursor: pointer;
    background-color: #fff;
}

.suggestions div:hover, .suggestions2 div:hover {
    background-color: #f0f0f0;
}

#printSection {
  display: none;
}

#printSectionSI {
  position: relative !important;
  display: none;
  width: 100%;
}

.input-field {
  position: absolute;
  border: none;
  font-size: 12px;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

    /* Set up a full-page container */
    .containerSI {
      position: relative;
      font-family: Arial, sans-serif;
      width: 100%;
  }

        /* Placeholder styles for fields - adjust based on exact measurements of the printed form */
        /* Customer details section */
        /* #sold-to { top: 1.5in; left: 0.5in; width: 3in; }
        #address { top: 1.8in; left: 0.5in; width: 3in; }
        #so-number { top: 1.5in; left: 4.5in; width: 1in; }
        #territory-manager { top: 1.5in; left: 6in; width: 1.5in; }
        #tin { top: 1.8in; left: 4.5in; width: 3in; }
        #date { top: 1.5in; left: 5.5in; width: 1.5in; }
        #terms { top: 1.8in; left: 5.5in; width: 1.5in; } */

        /* Product details section - dynamically generated below */

        /* Summary and totals */
        /* #total-sales { top: 8.5in; left: 6.5in; width: 1.5in; }
        #less-vat { top: 8.7in; left: 6.5in; width: 1.5in; }
        #total-net-vat { top: 8.9in; left: 6.5in; width: 1.5in; }
        #sc-pwd-discount { top: 9.1in; left: 6.5in; width: 1.5in; }
        #amount-due { top: 9.3in; left: 6.5in; width: 1.5in; }
        #add-vat { top: 9.5in; left: 6.5in; width: 1.5in; }
        #total-amount-due { top: 9.7in; left: 6.5in; width: 1.5in; } */

        /* VAT details */
        /* #vatable-sales { top: 10in; left: 6.5in; width: 1.5in; }
        #vat-exempt-sales { top: 10.2in; left: 6.5in; width: 1.5in; }
        #zero-rated-sales { top: 10.4in; left: 6.5in; width: 1.5in; }
        #vat-amount { top: 10.6in; left: 6.5in; width: 1.5in; } */

        /* VAT details */
        /* #total-sales { top: 8.5in; left: 6.5in; width: 1.5in; }
        #less-vat { top: 8.7in; left: 6.5in; width: 1.5in; }

        #vatable-sales { top: 8.9in; left: 0.5in; width: 5in; }
        #vat-exempt-sales { top: 9.1in; left: 0.5in; width: 5in; }
        #zero-rated-sales { top: 9.3in; left: 0.5in; width: 5in; }
        #vat-amount { top: 9.7in; left: 0.5in; width: 5in; }

        #total-net-vat { top: 8.9in; left: 6.5in; width: 1.5in; }
        #sc-pwd-discount { top: 9.1in; left: 6.5in; width: 1.5in; }
        #amount-due { top: 9.3in; left: 6.5in; width: 1.5in; }
        #add-vat { top: 9.5in; left: 6.5in; width: 1.5in; }
        #total-amount-due { top: 9.7in; left: 6.5in; width: 1.5in; } */

/* print.css */
@media print {
  body,html {
    background-color: #fff !important;
      margin: 0;
      padding: 0;
      width: 100%;
  }  
  #printSection {
    background-color: #fff !important;
      display: block;
      width: auto;
      margin: 0.8cm;
      box-sizing: border-box;
      padding: 0;
      font-family: Arial, serif;
      font-size: 9pt;
      line-height: 1.5;
  }

  .print-si {
    visibility: visible; /* Make the selected table visible */
    display: block !important;
    /* position: absolute; */
    /* top: 0;
    left: 0; */
    width: 100%;
    height: 27.3cm !important;
}

  #printSectionSI {
    background-color: #fff !important;
      display: none;
      padding: 0;
      font-family: Arial, serif;
      /* font-size: 10pt; */
      font-size: 12pt;
  }

  #printSection.deliveryreceipt {
    width: 15cm !important;
  }

  #printSectionSI.deliveryreceipt {
    /* width: 97% !important; */
    margin: 0 !important;
    padding: 0 !important;
  }

  #printSection table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
  }

  /* Hide everything else */
  body * {
      visibility: hidden;
  }

  #printSection, #printSection * {
      visibility: visible;
  }

  #printSectionSI, #printSectionSI * {
    visibility: visible;
  }

  #printSection {
      position: absolute;
      left: 0;
      top: 0;
  }

  #printSectionSI {
    position: relative !important;
    margin: 0;
  }

  .containerSI {
    position: relative;
    font-size: 10px;
}
.input-field {
    /* border: none; */
    background: none;
}
}