/* port from old*/
.uline { text-decoration:line-through;}
.st-paid, .st-due, .st-partial, .st-canceled,.st-rejected,.st-pending,.st-accepted,.st-approved,.st-Recurring,.st-Stopped
{
text-transform: capitalize;
    color: #fff;
    padding: 4px;
    border-radius: 11px;
    font-size: 10px;
}

.st-paid,.st-accepted,.st-approved
{
 background-color: #5ed45e;
}

.st-due,.st-Stopped
{
 background-color: #ff6262;
}

.st-partial,.st-pending,.st-Recurring
{
 background-color: #5da6fb;
}
.st-customer_approved
{
 background-color: #845dfb;
}
.st-canceled,.st-rejected
{
 background-color: #848030;
}
.task_Progress, .task_Due, .task_Done
{
text-transform: capitalize;
    color: #fff;
    padding: 4px;
    border-radius: 11px;
    font-size: 10px;
}
.task_Done
{
 background-color: #5ed45e;
}
.task_Due
{
 background-color: #d45e7f;
}
.task_Progress
{
 background-color: #848030;
}
.quantity {
  position: relative;
    padding: 2px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button
{
  -webkit-appearance: none;
  margin: 0;
}

input[type=number]
{
  -moz-appearance: textfield;
}

.quantity input {
    width: 70px;
    height: 34px;
    line-height: 1.45;
    float: left;
    display: block;
    padding: 0;
    margin-top: 3px;
    padding-left: 2px;
    border: 1px solid #eee;
}

.quantity input:focus {
  outline: 0;
}

.quantity-nav {
  float: left;
  position: relative;
  height: 42px;
}

.quantity-button {
  position: relative;
  cursor: pointer;
  border-left: 1px solid #eee;
  width: 20px;
  text-align: center;
  color: #333;
  font-size: 13px;
  font-family: "Trebuchet MS", Helvetica, sans-serif !important;
  line-height: 1.7;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.quantity-button.quantity-up {
  position: absolute;
  height: 50%;
  top: 0;
  border-bottom: 1px solid #eee;
    background: #81ffa2;
}

.quantity-button.quantity-down {
  position: absolute;
  bottom: -1px;
  height: 50%;
    background: #ff9e9e;
}
.horizontal-layout.chat-application .app-content{
        min-height: calc(100% - 65px) !important;
}
.pos_stripe tbody tr:nth-child(4n+1),.pos_stripe tbody tr:nth-child(4n+2){
       background-repeat: repeat-x;
    background-image: linear-gradient(45deg, #3cb4f5, #b5e1f5);
}
.tfr td {
    padding: 5px;
}

/* ballsWaveG{
    position:relative;
    width:144px;
    height:34px;
    margin: 10px auto;
} */

.ballsWaveG{
    position:absolute;
    top:0;
    background-color:rgb(4,162,219);
    width:18px;
    height:18px;
    animation-name:ballsWaveG;
    -o-animation-name:ballsWaveG;
    -ms-animation-name:ballsWaveG;
    -webkit-animation-name:ballsWaveG;
    -moz-animation-name:ballsWaveG;
    animation-duration:1.3s;
    -o-animation-duration:1.3s;
    -ms-animation-duration:1.3s;
    -webkit-animation-duration:1.3s;
    -moz-animation-duration:1.3s;
    animation-iteration-count:infinite;
    -o-animation-iteration-count:infinite;
    -ms-animation-iteration-count:infinite;
    -webkit-animation-iteration-count:infinite;
    -moz-animation-iteration-count:infinite;
    animation-direction:normal;
    -o-animation-direction:normal;
    -ms-animation-direction:normal;
    -webkit-animation-direction:normal;
    -moz-animation-direction:normal;
    border-radius:9px;
    -o-border-radius:9px;
    -ms-border-radius:9px;
    -webkit-border-radius:9px;
    -moz-border-radius:9px;
}

#ballsWaveG_1{
    left:0;
    animation-delay:0.52s;
    -o-animation-delay:0.52s;
    -ms-animation-delay:0.52s;
    -webkit-animation-delay:0.52s;
    -moz-animation-delay:0.52s;
}

#ballsWaveG_2{
    left:18px;
    animation-delay:0.65s;
    -o-animation-delay:0.65s;
    -ms-animation-delay:0.65s;
    -webkit-animation-delay:0.65s;
    -moz-animation-delay:0.65s;
}

#ballsWaveG_3{
    left:36px;
    animation-delay:0.78s;
    -o-animation-delay:0.78s;
    -ms-animation-delay:0.78s;
    -webkit-animation-delay:0.78s;
    -moz-animation-delay:0.78s;
}

#ballsWaveG_4{
    left:54px;
    animation-delay:0.91s;
    -o-animation-delay:0.91s;
    -ms-animation-delay:0.91s;
    -webkit-animation-delay:0.91s;
    -moz-animation-delay:0.91s;
}

#ballsWaveG_5{
    left:72px;
    animation-delay:1.04s;
    -o-animation-delay:1.04s;
    -ms-animation-delay:1.04s;
    -webkit-animation-delay:1.04s;
    -moz-animation-delay:1.04s;
}

#ballsWaveG_6{
    left:90px;
    animation-delay:1.17s;
    -o-animation-delay:1.17s;
    -ms-animation-delay:1.17s;
    -webkit-animation-delay:1.17s;
    -moz-animation-delay:1.17s;
}

#ballsWaveG_7{
    left:108px;
    animation-delay:1.3s;
    -o-animation-delay:1.3s;
    -ms-animation-delay:1.3s;
    -webkit-animation-delay:1.3s;
    -moz-animation-delay:1.3s;
}

#ballsWaveG_8{
    left:126px;
    animation-delay:1.43s;
    -o-animation-delay:1.43s;
    -ms-animation-delay:1.43s;
    -webkit-animation-delay:1.43s;
    -moz-animation-delay:1.43s;
}
.my_stripe tbody tr:nth-child(4n+1), .my_stripe tbody tr:nth-child(4n+2) {
    background-color: #ededed;
}
.sub_c {
    background-color: #fff !important;
}
#customer-box-result ol,#supplier-box-result ol, #customer-box-kpi-result ol, #employee-box-kpi-result ol, #job-box-kpi-result ol {
  color: #ccc;
  list-style-type: none;
}
#customer-box-result ol li,#supplier-box-result ol li, #customer-box-kpi-result ol li,  #employee-box-kpi-result ol li,  #job-box-kpi-result ol li  {
  position: relative;
  font-size:16px;
  font-weight:600;
  margin-top: 10px;
  margin-bottom: 5px;
}

#customer-box-result p,#supplier-box-result p, #customer-box-kpi-result p, #employee-box-kpi-result p, #job-box-kpi-result p {
  font-size: 14px;
  padding-left: 14px;
  color: #555;
}

#customer-box-result span,#supplier-box-result span, #customer-box-kpi-result span, #employee-box-kpi-result span, #job-box-kpi-result span {
  position: absolute;
}
.ui-front li {
    list-style: none;
    margin-left: -40px;
}
.ui-menu-item-wrapper {
    background-color: #b3d8e4;
    max-width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 4px;
}
.st-sub2
{
 background-color: #5ed45e;
 padding:4pt;
 border-radius:2pt;
 color:#fff;
}
.st-sub3
{
 background-color: #5da6fb;
  padding:4pt;
 border-radius:2pt;
 color:#fff;
}
.st-sub4
{
 background-color: #fb5de8;
 padding:4pt;
 border-radius:2pt;
 color:#fff;
}
.has-error {
    color: #ff2a2a;
    border: 1px solid !important;
    padding: 0px;
}
.ui-helper-hidden-accessible { display:none; }
.project_Progress, .project_Pending, .project_Finished, .project_Waiting,.project_Terminated
{
text-transform: capitalize;
    color: #fff;
    padding: 4px;
    border-radius: 11px;
    font-size: 10px;
}
.project_Progress,.st-progress
{
 background-color: #4979d0;
}
.project_Finished,.st-finished
{
 background-color: #5ed45e;
}
.project_Waiting,.st-waiting
{
 background-color: #d45e7f;
}
.project_Pending,.st-pending
{
 background-color: #49d0b7;
}
.project_Terminated,.st-terminated
{
 background-color: #848030;
}
.timeline {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}
.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 50%;
    margin-left: -1.5px;
}
.timeline > li {
    margin-bottom: 20px;
    position: relative;
}
.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline > li:before,
.timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline > li > .timeline-panel {
    width: 50%;
    float: left;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    padding: 20px;
    position: relative;
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}
.timeline > li.timeline-inverted + li:not(.timeline-inverted),
.timeline > li:not(.timeline-inverted) + li.timeline-inverted {
    margin-top: -60px;
}

.timeline > li:not(.timeline-inverted) {
    padding-right:90px;
}

.timeline > li.timeline-inverted {
    padding-left:90px;
}
.timeline > li > .timeline-panel:before {
    position: absolute;
    top: 26px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid #ccc;
    border-right: 0 solid #ccc;
    border-bottom: 15px solid transparent;
    content: " ";
}
.timeline > li > .timeline-panel:after {
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: " ";
}
.timeline > li > .timeline-badge {
    color: #fff !important;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    background-color: #999999;
    z-index: 100;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}
.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}
.timeline-badge.primary {
    background-color: #2e6da4 !important;
}
.timeline-badge.success {
    background-color: #3f903f !important;
}
.timeline-badge.warning {
    background-color: #f0ad4e !important;
}
.timeline-badge.danger {
    background-color: #d9534f !important;
}
.timeline-badge.info {
    background-color: #5bc0de !important;
}
.timeline-title {
    margin-top: 0;
    color: inherit;
}
.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
}
.timeline-body > p + p {
    margin-top: 5px;
}

.sbox-result ol {
  color: #ccc;
  list-style-type: none;
}
.sbox-result  p {
  font-size: 14px;
  padding-left: 14px;
  color: #555;
}

.sbox-result  span {
  position: absolute;
}
/* port from old end*/
.brand-logo {max-height: 2.5rem;}

    #openChatBtn {
      position: fixed;
      right: 50px;
      bottom: 50px;
      background: linear-gradient(135deg, #007bff, #1A1D46);
      color: white;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      font-size: 28px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
      transition: all 0.3s ease;
      z-index: 1000;
    }

    #openChatBtn:hover {
      transform: scale(1.1);
      box-shadow: 0 12px 24px rgba(0, 123, 255, 0.6);
    }

    #chatPanel {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 360px;
      height: 480px;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      display: none;
      flex-direction: column;
      overflow: hidden;
      z-index: 999;
      animation: slideIn 0.3s ease-in-out;
    }

    @keyframes slideIn {
      from { transform: translateY(50px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    #chatPanelHeader {
      background-color: #1A1D46;
      color: white;
      padding: 12px 16px;
      font-size: 16px;
      font-weight: bold;
      position: relative;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
    }

    #closeBtn {
      position: absolute;
      top: 10px;
      right: 12px;
      font-size: 20px;
      cursor: pointer;
    }

    #chatBody {
      flex-grow: 1;
      padding: 16px;
      overflow-y: auto;
      background-color: #fdfdfd;
    }

    #chatBody .userMessage,
    #chatBody .assistantMessage {
      margin-bottom: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      max-width: 90%;
      word-wrap: break-word;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-size: 14px;
    }

    #chatBody .userMessage {
      background-color: #f0f2f5;
      align-self: flex-end;
      text-align: right;
      margin-left: auto;
    }

    #chatBody .assistantMessage {
      background-color: #e6f2ff;
      align-self: flex-start;
      margin-right: auto;
    }

    #chatInput {
      display: flex;
      padding: 10px;
      border-top: 1px solid #ddd;
      background-color: #ffffff;
    }

    #chatInput input {
      flex-grow: 1;
      padding: 8px 12px;
      border-radius: 12px;
      border: 1px solid #ccc;
      font-size: 14px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    #chatInput button {
      background-color: #1A1D46;
      color: white;
      padding: 8px 14px;
      margin-left: 8px;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      font-size: 14px;
    }

    #chatInput button:hover {
      background-color: #0f1131;
    }

@media (min-width: 992px) {
    .sidebar {
        vertical-align: top;
        width: 600px !important;
    }
    body .content-right {
    width: -webkit-calc(100% - 600px) !important;
    width: -moz-calc(100% - 600px) !important;
    width: calc(100% - 600px) !important;
    float: right;
}
.chat-application .chat-fixed-search {
    width: 600px !important;
}
.chat-application .chat-fixed-search input {
    width: 300px !important;
}
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar {
        vertical-align: top;
        width: 330px !important;
    }
    body .content-right {
    width: -webkit-calc(100% - 330px) !important;
    width: -moz-calc(100% - 330px) !important;
    width: calc(100% - 330px) !important;
    float: right;
}
.chat-application .chat-fixed-search {
    width: 330px !important;
}

.invoices_date_search_btn{
    margin-right:-15px !important;
}
}
@media (max-width: 767.98px) and (max-width: 576px) {
    .sidebar {
        vertical-align: top;
        width: 280px !important;
    }
    body .content-right {
    width: -webkit-calc(100% - 280px) !important;
    width: -moz-calc(100% - 280px) !important;
    width: calc(100% - 280px) !important;
    float: right;
}
.chat-application .chat-fixed-search {
    width: 280px !important;
}
}

#pos_items .row:nth-child(2n) {
    background-repeat: repeat-x;
    background-image:  linear-gradient(45deg, #e0eaf0, #f3f5f6);
}
.error{
    color:#CC0000;
}
.st-Waiting, .st-Solved, .st-Processing
{
text-transform: capitalize;
    color: #fff;
    padding: 4px;
    border-radius: 11px;
    font-size: 10px;
}
.st-Solved
{
 background-color: #5ed45e;
}
.st-Waiting
{
 background-color: #5da6fb;
}
.st-Processing
{
 background-color: #848030;
}

.navbar-wrapper {
    max-height: 8rem;
}
@media (min-width: 576px) {
    .navbar-expand-sm .navbar-nav .dropdown-menu {
        margin: 0;
    }
}
.dt-buttons {
   display: inline;
    margin-right: 1rem;
}
.dataTables_length{
    display: inline;
     margin-right: 1rem;
}
.dataTables_filter{
     display: inline;
    float: right;
}
.buttons-excel, .buttons-pdf, .buttons-print, .buttons-html5{
    padding: .2rem !important;
    background: #28b9ff !important;
}
   .p-mobile {
        padding: 0.3rem !important;
    }
@media (max-width: 968px) {
    .p-mobile {
        padding: 0.3rem !important;
    }
    .p-width {
            width: 145% !important;
    }
}

.form-control-sm {
    height: -webkit-calc(1.375rem + 2px);
    height: -moz-calc(1.375rem + 2px);
    height: calc(1.375rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: 0.21rem;
}

.dataTables_length select {
    padding-right: 15px;
}
.reverse_align {
    text-align: right;
}
.select2{
        min-width: 14rem;
}
.pac-container { 
    z-index: 9999 !important;
}

.ui-widget-content{
    z-index: 9999 !important;
}

.ui-autocomplete {
    position: absolute;
    max-height: 150px; /* Set a maximum height for the dropdown to enable scrolling if needed */
    overflow-y: auto; /* Enable vertical scrolling if the dropdown content exceeds the maximum height */
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 1; /* Ensure the dropdown appears above other elements */
  }
  
  /* Style for individual autocomplete items */
  
  /* Highlight on hover */
  .ui-menu-item:hover {
    background-color: #f0f0f0;
  }
  
  /* Style for the selected item */
  .ui-state-active {
    background-color: #007bff;
    color: #fff;
  }

  span.dtr-data[data-color="red"] {
    color: red;
}

/* Define styles for 'green' text */
span.dtr-data[data-color="green"] {
    color: green;
}

/* Define styles for 'yellow' text */
span.dtr-data[data-color="yellow"] {
    color: yellow;
}

.custom-card-header-bg{
    background-color : #4DD5E7;
}

  /* Invoices Tabs Design  */

#tile-1 .tab-pane
{
  margin-top:25px;
}
#tile-1 .nav-tabs
{
  position:relative;
  border:none!important;
  background-color:#fff;
/*   box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2); */
  border-radius:6px;
}
#tile-1 .nav-tabs li
{
  margin:0px!important;
}
#tile-1 .nav-tabs li a
{
  position:relative;
  margin-right:0px!important;
  padding: 20px 10px !important;
  font-size:14px;
  border:none!important;
  color:#333;
}
#tile-1 .nav-tabs a:hover
{
  background-color:#fff!important;
  border:none;
}
#tile-1 .slider
{
  display:inline-block;
  width:30px;
  height:4px;
  border-radius:3px;
  background-color:#39bcd3;
  position:absolute;
  /* z-index:1200; */
  bottom:0;
  transition:all .4s linear;
  
}
#tile-1 .nav-tabs .active
{
  background-color:transparent!important;
  border:none!important;
  color:#39bcd3!important;
}

/* Tooltip container */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Tooltip text */
.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the text */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip-container .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show the tooltip text when hovering over the tooltip container */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.circle-container {
    display: flex;
    justify-content: flex-end; /* Aligns the items to the right */
    gap: 10px; /* Space between the items */
}

.inv-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the circle and the text */
}

.small-circle {
    width: 10px; /* Size of the small circle */
    height: 10px; /* Size of the small circle */
    border-radius: 50%;
}

.light-orange {
    background-color: #FFA07A;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.invoice-circle {
    background-color: white;
    border: 2px dashed #FFA07A; /* Dashed border for the invoice circle */
}

.inv-item span {
    font-size: 10px; /* Text size */
    color: #333; /* Text color */
    font-family: Arial, sans-serif; /* Font style */
    font-weight: bold; /* Text weight */
}


/* Specific colors */
.invoice-circle {
    background-color: #ffffff; /* Blue color for Invoice */
}

.credit-note {
    background-color: #ff6f61; /* Coral color for Credit Note */
}

.debit-note {
    background-color: #ffeb3b; /* Yellow color for Debit Note */
}

.refund-note {
    background-color: #4caf50; /* Green color for Refund Note */
}

.light-orange {
    background-color: #FFA07A; /* Light orange color for Self Billing Invoice */
}

.self-billing-credit-note {
    background-color: #ff9800; /* Orange color for Self Billing Credit Note */
}

.self-billing-debit-note {
    background-color: #e91e63; /* Pink color for Self Billing Debit Note */
}

.self-billing-refund-note {
    background-color: #9c27b0; /* Purple color for Self Billing Refund Note */
}
/* 
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: black;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 320px;
    height: 240px;
    margin-top: 20px;
    position: relative;
}
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.captured_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: none; 
} */

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: black;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%; /* Full width of the parent */
    max-width: 320px; /* Limit maximum width */
    height: 240px; /* Fixed height for video container */
    margin-top: 20px;
    position: relative;
}

video, .captured_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.captured_img {
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* Hide the image by default */
}


/* Overlay Styling */
.att_rep_pop_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
}

/* Popup Container */
.att_rep_pop_container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 90%;
    max-height: 90%;
    animation: att_rep_pop_fadeIn 0.3s ease-in-out;
}

/* Image Styling */
.att_rep_pop_image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    display: block;
    margin: auto;
}

/* Close Button */
.att_rep_pop_close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.att_rep_pop_close:hover {
    background: red;
}

.table-profile-icon {
    width: 35px;
    border-radius: 99px;
    margin-right: 10px;
}

/* Fade-in Animation */
@keyframes att_rep_pop_fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


@media (max-width: 991.98px) { /* Adjust the breakpoint as needed */
    #invoice_color_codes {
        display: none;
    }
}


#customer-box-result ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

#customer-box-result ol li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#customer-box-result ol li:hover {
    background-color: #f0f0f0; /* Light gray highlight */
}

.form-group.position-relative {
    position: relative; /* parent context for absolute */
}

#employee-box-kpi-result {
    position: absolute;
    top: 100%;  /* directly below input */
    left: 0;
    z-index: 1000;
    background: #fff;
    width: 100%; /* exactly input width */
    border: 1px solid #ccc;
    border-top: none;
    box-sizing: border-box;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none; /* only show when needed */
}

#employee-box-kpi-result ol {
    margin: 0;
    padding: 0;
}

#employee-box-kpi-result li {
    list-style: none;
    padding: 3px 12px;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#employee-box-kpi-result li:hover {
    background-color: #d6d6d6;
}


/* Filter Bar */
.pr-filter-bar {
    background: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}
.pr-filter-bar .filter-label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .8px; color: #868e96; margin-bottom: 5px; display: block;
}
.pr-filter-bar .form-control {
    border-radius: 8px; border: 1.5px solid #dee2e6;
    font-size: 13px; height: 38px; padding: 6px 12px;
    transition: border-color .2s, box-shadow .2s;
}
.pr-filter-bar .form-control:focus {
    border-color: #1F4E79; box-shadow: 0 0 0 3px rgba(31,78,121,0.1);
}
.pr-filter-bar select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    -webkit-appearance: none; appearance: none; padding-right: 30px;
}
.btn-load-report {
    background: linear-gradient(135deg,#1F4E79,#2980b9);
    color: #fff; border: none; border-radius: 8px;
    height: 38px; padding: 0 22px; font-size: 13px; font-weight: 700;
    letter-spacing: .3px; transition: all .2s;
    display: inline-flex; align-items: center; gap: 7px;
}
.btn-load-report:hover { background: linear-gradient(135deg,#174069,#1c6ea0); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(31,78,121,0.3); color:#fff; }
.btn-reset {
    background: #f8f9fa; color: #495057; border: 1.5px solid #dee2e6;
    border-radius: 8px; height: 38px; width: 38px; padding: 0;
    font-size: 14px; transition: all .2s; display: inline-flex;
    align-items: center; justify-content: center;
}
.btn-reset:hover { background: #e9ecef; border-color: #adb5bd; transform: rotate(90deg); }

/* Period badge strip */
.period-strip {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 14px; background: #f0f7ff; border-radius: 10px;
    border: 1px solid #cce0f5; margin-bottom: 18px; font-size: 12px;
}
.period-strip .ps-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #1F4E79; color: #fff; border-radius: 20px;
    padding: 4px 12px; font-weight: 700; font-size: 12px;
}
.period-strip .ps-pill {
    background: #fff; border: 1px solid #cce0f5; color: #495057;
    border-radius: 20px; padding: 3px 10px; font-size: 11px;
}

/* Stat cards */
.stat-card {
    border-radius: 14px; cursor: pointer;
    transition: transform .18s, box-shadow .18s;
    border: none; position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.18) !important; }
.stat-card .card-body { padding: 18px 20px; }
.stat-card .card-icon {
    position: absolute; right: 16px; top: 12px;
    font-size: 36px; opacity: 0.15;
}
.stat-card .card-label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .8px; opacity: .85; margin-bottom: 3px;
}
.stat-card .card-value { font-size: 21px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; }
.stat-card .card-sub { font-size: 10px; opacity: .7; margin-top: 4px; }
.stat-card .card-split {
    display: flex; gap: 8px; margin-top: 10px;
    padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.22);
}
.stat-card .card-split-item { flex: 1; text-align: center; }
.stat-card .card-split-item .sl { font-size: 9px; opacity: .8; line-height: 1.2; }
.stat-card .card-split-item .sv { font-size: 12px; font-weight: 700; margin-top: 2px; }
.stat-card .card-breakdown {
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 10px; opacity: .8;
}
.stat-card .click-hint {
    position: absolute; bottom: 8px; right: 10px;
    font-size: 9px; opacity: .6;
    display: flex; align-items: center; gap: 3px;
}

/* Label cards */
.label-card {
    border-radius: 12px; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    border: 1px solid #e9ecef; border-left: 5px solid;
    background: #fff;
}
.label-card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(0,0,0,0.10); border-color: #dee2e6; }
.label-card.earning  { border-left-color: #28a745; }
.label-card.deduction{ border-left-color: #dc3545; }

/* Section header */
.section-header {
    display: flex; align-items: center; gap: 10px;
    margin: 26px 0 14px; padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.section-header h6 { margin: 0; font-weight: 800; font-size: 13px; color: #343a40; letter-spacing: .3px; }
.section-header .sh-badge {
    background: #e9ecef; color: #495057; font-size: 10px;
    font-weight: 700; padding: 2px 8px; border-radius: 10px;
}

/* Download buttons */
.dl-btn-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.dl-btn-group .btn { border-radius: 8px; font-size: 12px; font-weight: 700; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Loading / empty */
#loadingState { display: none; text-align: center; padding: 60px 0; }
#loadingState .spinner-border { width: 2.5rem; height: 2.5rem; }
#dashboardContent { display: none; }
#emptyState { display: none; text-align: center; padding: 50px 0; color: #adb5bd; }
#emptyState i { font-size: 48px; margin-bottom: 12px; }

/* Modal table */
.modal-xl .modal-content { border-radius: 0; overflow: hidden; }
#modalTable { font-size: 12.5px; }
#modalTable thead th { background: #1F4E79; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; vertical-align: middle; }
#modalTable tbody tr:nth-child(even) { background: #f8fbff; }
#modalTable tbody tr:hover { background: #eaf3ff; }
#modalTable tfoot td { background: #fff9e6; font-weight: 800; font-size: 12px; border-top: 2px solid #ffc107; }
.modal-header-themed { background: linear-gradient(135deg,#1F4E79,#2980b9); color: #fff; }

/* OT sub-table */
.ot-sub-table { font-size: 11.5px; }
.ot-sub-table thead th { background: #0e6655; color: #fff; font-size: 10px; }
.ot-sub-table tfoot td { background: #d4efdf; font-weight: 700; }

/* Tab nav in modal */
.modal-tabs .nav-link { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 8px 8px 0 0; }
.modal-tabs .nav-link.active { background: #1F4E79; color: #fff; border-color: #1F4E79; }

/* Salary breakdown inline table */
.breakdown-mini { font-size: 11px; width: 100%; }
.breakdown-mini td { padding: 2px 6px; }
.breakdown-mini .bm-label { color: rgba(255,255,255,0.75); }
.breakdown-mini .bm-val   { font-weight: 700; text-align: right; }

/* Color schemes */
.bg-salary { background: linear-gradient(135deg,#1F4E79,#2980b9); color:#fff; }
.bg-gross  { background: linear-gradient(135deg,#1a7a4a,#27ae60); color:#fff; }
.bg-deduct { background: linear-gradient(135deg,#922b21,#e74c3c); color:#fff; }
.bg-net    { background: linear-gradient(135deg,#154360,#1abc9c); color:#fff; }
.bg-epf    { background: linear-gradient(135deg,#6c3483,#9b59b6); color:#fff; }
.bg-socso  { background: linear-gradient(135deg,#117a65,#1abc9c); color:#fff; }
.bg-eis    { background: linear-gradient(135deg,#784212,#e67e22); color:#fff; }
.bg-pcb    { background: linear-gradient(135deg,#922b21,#c0392b); color:#fff; }
.bg-cost   { background: linear-gradient(135deg,#1c2833,#566573); color:#fff; }
.bg-ot     { background: linear-gradient(135deg,#0e6655,#1abc9c); color:#fff; }
.bg-absent { background: linear-gradient(135deg,#78281f,#e74c3c); color:#fff; }

