/*@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");*/


/* include roboto font from google fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');


:root {

  --fis-header-strip:#012834;
  --fis-txt-dark-clr:#012834;
  --fis-txt-light-clr:#fff;
  --fis-theme-clr:#2E404E;

  --fis-btn-bg-clr:#012834;
  --fis-btn-border-clr:#012834;
  --fis-disable-clr:#e7e7e7;

  --app-btn-disabled:gray;

  --app-btn-disabled-hover:#cecece;

  --div-patch-clr:#5993fd !important;


  --app-sp-discount-bg-clr: #f77a0e;
  --app-sp-discount-txt-clr: white;
  --app-overdue-txt-clr: #e0737b;
  --app-overdue2-txt-clr: #eebc5f;
  --app-deferment-txt-clr: #989aa2;
  --app-cashdiscount-txt-clr: #57b99d;
  --app-ticker-txt-clr: white;
  --app-partially-paid-txt-clr: #eebc5f;
  --app-confirmedCD-txt-clr: #eebc5f; 


  --fis-btn-primary:#012834;
  --fis-btn-text-clr:#ffff;
  --bs-blue: var(--bs-warning);
  --bs-indigo: #675aa9;
  --bs-purple: #6559cc;
  --bs-pink: #f672a7;
  --bs-red: #4bcd3e;
  --bs-orange: #fd7e14;
  --bs-yellow: #f7b84b;
  --bs-green: #1abc9c;
  --bs-teal: #02a8b5;
  --bs-cyan: #3bafda;
  --bs-white: #fff;
  --bs-gray: #98a6ad;
  --bs-gray-dark: #343a40;
  --bs-primary: #0072BC;
  --bs-primary-dark: #0056b3;
  --bs-secondary: #6c757d;
  --bs-success: #1abc9c;
  --bs-info: #3bafda;
  --bs-warning: #ff1f3e;
  --bs-warning-dark: #e0001f;
  --bs-danger: var(--bs-warning);
  --bs-light: #f1f5f7;
  --bs-dark: #323a46;
  --bs-pink: #f672a7;
  --bs-purple: #6559cc;
  --bs-black: #000000;
  --bs-font-sans-serif: "Poppins", sans-serif;
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --white: #fff;
  --black: #000;
  --ntt: #0072BC;
  --ntt-dark: #2E404E;
  --green: #008770;
  --ntt-dark-rgba: rgba(46, 64, 78, 0.5);
  --dark-blue: #001973;
  --disabled: #C8C8C8;
  --footer: #262626;
  --electric-blue: #19a3fc;
  --gray-dark: #949494;
  --gray-light: #F0EEE8;
  --warm-white: #F0EEE8;
  --calm-pink: #E0CDE4;
  --calm-teal: #C7E8E6;
  --calm-blue: #BAD2ED;
  --cold-grey: #e8e8e8;
  --silver: #C8C8C8;
  --slate: #2E404D
}



/*
@font-face {
  font-family: source_sans_proregular, sans-serif;
   src:url("/fonts/Harlow_Solid_Italic.ttf");
} */
body{
  font-size: 0.87rem !important;
  font-family: 'Roboto';

}
.width90{
  width: 90% !important;
}
input{
  display: block;
  max-height: 48px;
    padding: 0.75rem 1rem;
    
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1.5px solid #e0e0e0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    border-radius: 8px;
    transition: all 0.3s ease;
}

input:focus {
  border-color: #0072BC;
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
  outline: none;
}

input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.adjustConfirmPinMsg{
  /* margin-left: 94px; */
  text-align: justify;
  color: #000;
  background-color: #fdf1db;
  border: #fdf1db;
}

.currency-container{
  position:relative;
}

.currency-symbol-1{
  position:absolute;
  /* left:8px; */
  top:7px;
  width: 2.5rem;
  text-align: end;
}

.currency-symbol-2{
  position:absolute;
  width: 2.375rem;
  right: 8px;
  top: 7px;
  text-align: start;
}

.text-currency{
  /* padding:10px 20px; */
  padding-left: 2.375rem;
  border:solid 1px #ccc;
  /* border-radius:5px; */
}

/* .invsignFullTXT{
  background: var(--fis-theme-clr);
  color: white;
  border-radius: 30px;
  text-align: center;
  padding: 4px;
  border: 1px solid black;
  width: 60px;
  font-size: 11px;
 } */

select{
  display: block;
  color: #495057;
  padding: 0.45rem 1.9rem 0.45rem 0.9rem;

  line-height: 1.5;
  max-height: 34px;
  
  /* Hide native browser dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  /* Add custom dropdown arrow */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px 12px;
  border: 1px solid #dce1e5;
  border-radius: 0.25rem;

}

.addCardLabel{
  width: 200px;
  margin-left: 16px;
}
.addCardInput{
  width: 28% !important;
    margin-bottom: 5px;
  height: 32px;

}

.border-top {
  border-top: 1px solid gray!important;
  padding-top: 10px;
}

.mainHeadContainer{
  min-width: 200px;
}

@media (min-width: 576px){
  .modal-md {
    max-width:50%
  }

  .modal-lg {
    max-width: 70%;
  }
}

.divbatchtag{
  background-color: var(--div-patch-clr);
  color: var(--fis-txt-light-clr);
  padding: 2px;
  border-radius: 0.25rem;
}

.modal-header{
  background-color: var(--fis-header-strip);
  color: var(--fis-txt-light-clr);
  padding: 0.5rem 1rem !important;
}

.modal-title{
  color: var(--fis-txt-light-clr) !important;
  background-color: var(--fis-header-strip);
}

.popupHeaderTxt{
  color: var(--fis-txt-light-clr) !important;
}

/* .form-input-txt{
  width: 50% !important;
}

.form-select{
  width: 50% !important;
}

.input-group{
  width: 50% !important;
}

.formSize{
  padding-left: 1%;

}
 */


.total-cn-assign {

  padding-left: 5%;
}


/* Type scale: Bold only for top-level headings, Medium + weight for sub-headings */
h1, .h1 {
  font-family: 'Clan Bold', sans-serif !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: 'Clan Bold', sans-serif !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.01em;
}
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: 'Clan', sans-serif !important;
  font-weight: 500;
}
.navbar-custom {
  background-color: var(--fis-btn-primary);
}

th{
  font-family: 'Clan', sans-serif !important;
  font-weight: 500;
  color: var(--fis-theme-clr);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Modern table styling - ensure table body cells are not bold */
table tbody td,
.table tbody td {
  font-weight: 400 !important;
  font-family: 'Clan', sans-serif !important;
}

/* Table rows should have normal weight */
table tbody tr td,
.table tbody tr td {
  font-weight: 400 !important;
}
.btn{
  font-family: 'Clan', sans-serif !important;
}

.leftTxtAlign{
  text-align: left;
}


.tbleHeader{


  text-align: left;
}

.logo-box {
  background-color: var(--fis-btn-primary);
}

.page-item.active .page-link {
  z-index: 3;
  color: var(--fis-txt-dark-clr);
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.sc-ion-alert-md-h{
  max-width: 100% !important;
}

.alert-message{
  margin-top: 15px;
  padding: 0px 15px 15px !important;
  font-size: 0.8rem !important;
  text-align: justify;
}

.alert-head{
  background-color: var(--fis-btn-primary);
  padding: 12px !important;
  height: 42px;
}

.alert-1-hdr{
  font-size: 1.1rem !important;
}

.alert-title{
  color: white !important;
  font-size: 15px !important;
  --text-transform: initial !important;
}
.alert-title.sc-ion-alert-md{
  font-size: 15px !important;
  --text-transform: unset !important;
}

.customDialog .alert-wrapper .alert-head .alert-title{
  font-size: 14px !important;
  text-transform: none !important;
}

.alert-danger{
  color: var(--fis-btn-primary);;
  background-color: #ffeade;
  border-color: #ffeade;

}

.alert-warning{
  color: var(--fis-btn-primary);;
  background-color: #ffeade;
  border-color: #ffeade;

}


.alert-button{
  color: var(--fis-txt-dark-clr) !important;
  background-color: var(--fis-txt-light-clr) !important;

  border: 2px solid var(--fis-theme-clr) !important;
  border-radius: 24px !important;
  text-decoration: none !important;
  height: 38px !important;
  width: 35% !important;
}

.alert-button:hover{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
  text-decoration: none;
  border: 2px solid var(--fis-theme-clr);

  border-radius: 24px;
}

.alert-button-inner.sc-ion-alert-md{
  justify-content:center;
}



.filter-border{
  border-top: 0.5px solid #d4d4d4;
  border-bottom: 0.5px solid #d4d4d4;
}

.bg-theme{
  background-color: var(--fis-header-strip) !important;
  color: white;
}

.customAlert>div.alert-button-group button{
  color:red;
  background-color: #02a8b5;
}


.customAlert .alert-wrapper .alert-button-group>button:hover{
  color:red;
  background-color: #02a8b5;
}


.testCustom{
  --color-hover: blue;
}

.alert-button-inner.sc-ion-alert-md{
  justify-content:center;
}

.iFrameCard{
  /* background intentionally left to component default */
}

#iFrameCard{
  /* background intentionally left to component default */
}

.overdue{
  background-color: #f94449;
  color: var(--fis-btn-text-clr);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pending{
  background-color: #6bf5f6;
  color: var(--fis-btn-primary);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cashdiscount{
  background-color: #47f2b0;
  color: var(--fis-btn-primary);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.approve{
  background-color: #90EE90;
  color: var(--fis-btn-primary);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.success{
  background-color: #006400;
  color: var(--fis-btn-text-clr);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.p-l-r{ 
  padding-left: 10%;
  padding-right: 10%;
}



.fis-btn{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px !important;
  text-decoration: none;
}

.fis-btn:hover{
  color: var(--warm-white);
  background-color: var(--fis-theme-clr);
}


.fis-btn:active{
  color: var(--fis-txt-dark-clr);
  background-color: var(--app-btn-disabled-hover);
  text-decoration: none;
  border: 2px solid var(--app-btn-disabled);
}

.fis-btn:disabled{
  color: var(--app-btn-disabled) !important;
  background-color: var(--fis-disable-clr) !important;
  border: 2px solid var(--fis-disable-clr) !important;
}

.fis-btn:focus{
  color: var(--fis-txt-dark-clr);
  background-color: var(--app-btn-disabled-hover);
  text-decoration: none;
  border: 2px solid var(--app-btn-disabled);
}













.btn-outline-dark{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);

  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
  text-decoration: none;
}

.btn-outline-dark:hover{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
  text-decoration: none;
  border: 2px solid var(--fis-theme-clr);

  border-radius: 24px;
}


.btn-dark{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px !important;
  text-decoration: none;
}

.btn-dark:hover{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
  text-decoration: none;
  border: 2px solid var(--fis-theme-clr);

  border-radius: 24px;
}


.btn-dark:active{
  color: var(--fis-txt-dark-clr);
  background-color: var(--app-btn-disabled-hover);
  text-decoration: none;
  border: 2px solid var(--app-btn-disabled);
}


.btn-primary {
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);

  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
  text-decoration: none;
}

.adjustBtnStyle{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);

  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
  text-decoration: none;
}

.btn-primary:hover {
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
  text-decoration: none;
  border: 2px solid var(--fis-theme-clr);

  border-radius: 24px;
}

.btn-check:focus+.btn-primary,
.btn-primary:focus {
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);

  border: 2px solid var(--fis-btn-border-clr);
  box-shadow: 0 0 0 0.15rem rgb(129 242 151 / 50%);
}

.btn-check:checked+.btn-primary,
.btn-check:active+.btn-primary,
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
  color: var(--bs-black);
  background-color: var(---fis-txt-dark-clr);
  border-color: var(--fis-txt-dark-clr);
}

.btn-check:checked+.btn-primary:focus,
.btn-check:active+.btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus,
.show>.btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.15rem rgb(129 242 151 / 50%);
}

.btn-primary:disabled,
.btn-primary.disabled {
  color: var(--app-btn-disabled);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-disable-clr);
}

.btn-check:focus+.btn-primary, .btn-primary:focus {
  box-shadow: 0 0 0 0.15rem rgb(129 242 151 / 50%);
}


/* .btn-info{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
}

.btn-info:hover{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
} */

.btn-info{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
}

.btn-info:hover{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
}

.btn-secondary {
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;

}

.btn-secondary:hover {
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);

  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;

}

.btn-secondary:disabled,
.btn-secondary.disabled {
  color: var(--app-btn-disabled);
  background-color: var(--fis-disable-clr);
  border: 2px solid var(--fis-disable-clr);
}

.btn-link {
  font-weight: 400;

  text-decoration: none;

  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
}


.btn-link:hover {
  color: var(--fis-txt-dark-clr);
  text-decoration: none;
  background-color: var(--fis-theme-clr);

  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;

}

.btn-link:focus {
  text-decoration: none;
}

.btn-link:disabled,
.btn-link.disabled {
  color: var(--app-btn-disabled);
}

.show>.btn-primary.dropdown-toggle {
  color: var(--fis-txt-dark-clr);
  background-color: var(--app-btn-disabled-hover);
  text-decoration: none;
  border: 2px solid var(--app-btn-disabled);
}



.btn-deactivate-card{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);

  border: 2px solid var(--bs-warning);;
  border-radius: 24px;
}

.btn-deactivate-card:hover{
  color: var(--fis-txt-light-clr);
  background-color: var(--bs-warning);
  border: 2px solid var(--bs-warning);
  border-radius: 24px;
}

.btn-deactivate-card:active{
  color: var(--fis-txt-dark-clr);
  background-color: var(--app-btn-disabled-hover);
  text-decoration: none;
  border: 2px solid var(--app-btn-disabled);
}


.btn-activate-card{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);

  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
}

.btn-activate-card:hover{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr) !important;
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
}

.btn-activate-card:active{
  color: var(--fis-txt-dark-clr);
  background-color: var(--app-btn-disabled-hover);
  text-decoration: none;
  border: 2px solid var(--app-btn-disabled);
}

.adjWidth{
  width: auto;
}
/* 

.btn-info{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);

  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
}

.btn-info:hover{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
} */


.btn-sz-130{
  width: 130px !important;
  padding: 7px;
}

.fix-wd-55{
  width: 55px !important;
}


.addDeductionBtn{
  font-size: 20px;
    padding: 2px 10px;
  border-radius: 5px;
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
}

.addDeductionBtn:hover{
  font-size: 20px;
    padding: 2px 10px;
  border-radius: 5px;
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
}



/* .btn-danger {
  text-decoration: none;

  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
  border-color: var(--bs-warning);
}
.btn-danger:hover {
  color: var(--fis-txt-dark-clr);
  background: var(--fis-theme-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 15px; 
  } */

  .btn-danger {
    /* color: #fff;
    background-color: var(--bs-warning); */
    color: var(--fis-txt-dark-clr);
    background-color: var(--fis-txt-light-clr);
    border-color: var(--bs-warning); 
  }

  .btn-danger:hover {
    color: #fff;
    background-color: var(--bs-warning-dark);
    border-color: var(--bs-warning-dark);
   }
  
   .btn-check:focus + .btn-danger, .btn-danger:focus {
    color: #fff;
    background-color: var(--bs-warning-dark);
    border-color: var(--bs-warning-dark);
    box-shadow: 0 0 0 0.15rem rgba(114, 163, 253, 0.5); }
  .btn-check:checked + .btn-danger,
  .btn-check:active + .btn-danger, .btn-danger:active, .btn-danger.active,
  .show > .btn-danger.dropdown-toggle {
    color: #fff;
    background-color: var(--bs-warning-dark);
    border-color: #436ebe; }
    .btn-check:checked + .btn-danger:focus,
    .btn-check:active + .btn-danger:focus, .btn-danger:active:focus, .btn-danger.active:focus,
    .show > .btn-danger.dropdown-toggle:focus {
      box-shadow: 0 0 0 0.15rem rgba(173, 18, 1, 0.5); }
  .btn-danger:disabled, .btn-danger.disabled {
    color: var(--app-btn-disabled);
    background-color: var(--bs-warning);
    border-color: var(--bs-warning); }

    .btn-outline-danger {
      color: var(--bs-warning);
      border-color: var(--bs-warning); }
      .btn-outline-danger:hover {
        color: #fff;
        background-color: var(--bs-warning);
        border-color: var(--bs-warning); }
      .btn-check:focus + .btn-outline-danger, .btn-outline-danger:focus {
        box-shadow: 0 0 0 0.15rem rgba(89, 147, 253, 0.5); }
      .btn-check:checked + .btn-outline-danger,
      .btn-check:active + .btn-outline-danger, .btn-outline-danger:active, .btn-outline-danger.active, .btn-outline-danger.dropdown-toggle.show {
        color: #fff;
        background-color: var(--bs-warning);
        border-color: var(--bs-warning); }
        .btn-check:checked + .btn-outline-danger:focus,
        .btn-check:active + .btn-outline-danger:focus, .btn-outline-danger:active:focus, .btn-outline-danger.active:focus, .btn-outline-danger.dropdown-toggle.show:focus {
          box-shadow: 0 0 0 0.15rem rgba(89, 147, 253, 0.5); }
      .btn-outline-danger:disabled, .btn-outline-danger.disabled {
        color: var(--app-btn-disabled);
        background-color: transparent; }


.filterIconBtn{
  border-radius: 15px;
  border: 2px solid var(--fis-theme-clr);
  background-color: var(--fis-txt-light-clr);

  padding: 5px;
  color: var(--fis-txt-dark-clr);

}

.filterIconBtn:hover {
  color: var(--fis-txt-dark-clr);
  background: var(--fis-theme-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 15px;

}


button:disabled{
  color: var(--app-btn-disabled) !important;
  background-color: var(--fis-disable-clr) !important;
  border: 2px solid var(--fis-disable-clr) !important;
}

.btn-check:focus{
  color: var(--app-btn-disabled) !important;
  background-color: var(--fis-disable-clr) !important;
  border: 2px solid var(--fis-disable-clr) !important;
}
.btn-check:active{
  color: var(--fis-txt-dark-clr);
  background-color: var(--app-btn-disabled-hover);
  text-decoration: none;
  border: 2px solid var(--app-btn-disabled);
}


.txtAlignRight{
  text-align: right;
}
.height100{
  height: 100%;
}
.lightBgClr{
  background-color: white;
}

.width100{
  width: 100% !important;
}
.width50{
  width: 50%;
}
.width55{
  width: 55%;
}
.width45{
  width: 45% !important;
}
.width35{
  width: 35% !important;
}
.width10{
  width: 10%;
}
.width15{
  width: 15%;
}
.width20{
  width: 20%;
}
.width25{
  width: 25%;
}
.width30{
  width: 30%;
}
.width40{
  width: 40%;
}
.width60{
  width: 60%;
}
.width70{
  width: 70%;
}
.width80{
  width: 80%;
}
.width1400{
  width: 1400px;
}

.fix-h-400{
  height: 410px;
}

.scroll-content{
  /* overflow-x: hidden !important; */
  overflow-x: visible !important;
  width: 98%;
 
}

.font-size5rm{
  font-size: 5rem;
}

.margin-Left0{
  margin-left: 0px !important;
}

.popover-content {
  width: 50% !important;
  max-width: 50% !important;
}


  


a {
  color: var(--bs-primary);
  text-decoration: none;
}

a:hover {
  color: var(--bs-primary-dark);
  text-decoration: underline;
}



#sidebar-menu>ul>li>a:active,
#sidebar-menu>ul>li>a:focus{
  font-family: 'Clan', sans-serif !important;
  color: var(--bs-primary) !important;
  text-decoration: none;
}

#sidebar-menu>ul>li>a:hover {
  font-family: 'Clan', sans-serif !important;
  font-weight: 600;
  color: var(--fis-txt-dark-clr) !important;
  text-decoration: none;
}


#sidebar-menu>ul>li>a {
  font-family: 'Clan', sans-serif !important;
  font-size: 0.82rem !important;
  color: var(--fis-theme-clr);
  letter-spacing: 0.01em;
}

#sidebar-menu .menuitem-active>a {
  color: var(--bs-primary);
  font-size: 0.82rem !important;
  font-weight: 600;
}

#sidebar-menu .menuitem-active .active {
  color: var(--bs-primary);
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-check-input:focus {
  border-color: var(--bs-primary);
  outline: 0;
  /* box-shadow: 0 0 0 0.15rem rgb(240 107 120 / 25%); */
  box-shadow: var(--bs-primary);
}



    
.custom-day.range{
  background-color:var(--bs-primary) !important;
}
.custom-day:hover{
  background-color:rgba(75, 205, 62, 0.5) !important;
}
.custom-day.faded{
  background-color:rgba(75, 205, 62, 0.5) !important;

}
.bg-primary{
  background-color:var(--bs-primary) !important;
}

.table-sm>:not(caption)>*>*{
  vertical-align: middle;
  text-align: left;
}
.flexCenter{
  display: flex;
  justify-content: center;
  align-items: center;
}
.form-check-input[type=checkbox]{
  width: 20px;
  height: 20px;
  padding: 0px !important;
}

.alert-button.sc-ion-alert-md {
  width: auto !important;
}
.alert-button:hover {

  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr) !important;

}

.alert-button{
  color: var(--fis-txt-dark-clr) !important;
  background-color: var(--fis-txt-light-clr) !important;
  font-size: 12px !important;
  border: 2px solid var(--fis-theme-clr) !important;
  border-radius: 24px !important;
  text-decoration: none !important;
  height: 38px !important;
  width: 35% !important;


}


.page-title-left{
 float:left !important;
}



.headerTab{

  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px !important;
  text-decoration: none;
}

.headerTab:hover {
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
  text-decoration: none;
  border: 2px solid var(--fis-theme-clr);

  border-radius: 24px;
}

.headerTab:active{
  color: var(--fis-txt-dark-clr);
  background-color: var(--app-btn-disabled-hover);
  text-decoration: none;
  border: 2px solid var(--app-btn-disabled);
}





.cpgImg{
  width: 80%;
}
.left-side-menu{
  z-index: 100!important;

}

.btn-min-size{
  min-width: 80px;
}

.mobile-btn-group{
  display: flex;
  justify-content: left;
}

.amount-bold{
  font-weight: 500;
}

.appTitleContainer{
  font-size: 1.05rem;
  padding: 0px;
  font-family: 'Clan', sans-serif;
  font-weight: 600;
  color: var(--fis-theme-clr);
 }

 .invsign{
  background: var(--fis-theme-clr);
  color: white;
  border-radius: 4px;
  text-align: center;
  padding: 2px 6px;
  width: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
 }

 .creditViewBtn{
   border-top: 1px solid lightgray;
 }

 .nav-justified .nav-item, .nav-justified>.nav-link{
  flex-basis:auto;
 }

 .navbar-custom .button-menu-mobile{
   width: 40px !important;
 }

.filter-container{
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

/* Custom scrollbar styling for filter container */
.filter-container::-webkit-scrollbar {
  width: 8px;
}

.filter-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.filter-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.filter-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

 #iframe{
   width: 50%;
 }

 .lbl-card{
   font-size: 0.87rem !important;
  width: 40.5% !important;
  padding-right: 5px;
  font-weight: normal;
  font-family: 'Clan';
  color: #6c757d;
 }

 .lbl-check{
  font-size: 0.87rem !important;
  width: 40.5% !important;
  padding-right: 5px;
  font-family: 'Clan';
  color: #6c757d;
 }

 .creditNoteMaxScreen{
  max-height: 300px;
  overflow: auto;
}

.dropdown-toggle{
  border: 1px solid #dce1e5 !important;
  height: 32px;

  padding-left: 10px;
  text-align: left;
  font-size: 0.82rem;
  color: #495057;
}
.card-widgets{
  height: 30px !important;
}

.txt-enter-credential{
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
}


/* Nokia Lumia 520 */
@media screen and (max-width: 321px) and (min-width: 319px) {

  .btn-min-size{
    min-width: 60px;
    font-size: 0.6rem;
  }

  .statementContainer{
    font-size: 0.6rem !important;
  }

  .fis-btn{
    font-size: 0.6rem;
  }
}


/* Media Query for Mobile Devices */
@media only screen and (max-width: 480px) {
.btn-min-size{
  min-width: 60px;
  font-size: 0.6rem;
}

.statementContainer{
  font-size: 0.6rem !important;
}

.fis-btn{
  font-size: 0.6rem;
}

}



@media (max-width: 576px) { 

  .txt-enter-credential{
    font-size: 0.875rem;
  }

  body{
    font-size: 0.7rem !important;
    padding-bottom:0px;
  }

  #iframe{
    width: 100%;
  }

  .filter-container{
    max-height: 400px;
    overflow: auto;
  }

  .modal{
    position: relative !important;
    top: -85% !important;
  }

  .modal-dialog{
    margin-left: 5% !important;
  }

  .lightBgClr{
    background-color: rgb(245 243 243);
  }

  .mobile-btn-group{
    display: flex;
    justify-content: center;
  }
  .page-title-box{
    padding: 0px;
    margin: 0 -27px 1px !important;
  }
  .headerTab{
    color: var(--fis-txt-light-clr);
    background-color: var(--fis-theme-clr);
    border: 2px solid var(--fis-theme-clr);
    width: 100%;
    border-radius: 0px !important;
    text-decoration: none;
  }


  

  

  .cpgImg{
    width: 50%;
  }

  .left-side-menu{
    z-index: 10000!important;
    padding-top: 0px !important;
  }

  .buyerHeading{
    display: flex !important;
    height: 70px;
    color: white;
    justify-content: center;
    align-items: center;
    background-color: var(--fis-btn-primary);
  }
}


@media (max-width: 768px) {
  body{
    font-size: 0.7rem !important;
    padding-bottom:0px;
  }

  .form-control{
    font-size: 0.875rem !important;
    height: 44px;
  }

  #iframe{
    width: 100%;
  }

  .filter-container{
    max-height: 400px;
    overflow: auto;
  }

  .modal{
    position: relative !important;
    top: -85% !important;
  }

 

  .lightBgClr{
    background-color: rgb(245 243 243);
  }
  .mobile-btn-group{
    display: flex;
    justify-content: center;
  }
  .page-title-box{
    padding: 0px;
    margin: 0 -27px 1px !important;
  }
  .left-side-menu{
    z-index: 10000!important;
    padding-top: 0px !important;
  }

  .buyerHeading{
    display: flex !important;
    height: 70px;
    color: white;
    justify-content: center;
    align-items: center;
    background-color: var(--fis-btn-primary);
  }
  .headerTab{
    color: var(--fis-txt-light-clr);
    background-color: var(--fis-theme-clr);
    border-right: 1px solid var(--fis-txt-light-clr);
    width: 100%;
    border-radius: 0px !important;
    text-decoration: none;
  }


  

  .cpgImg{
    width: 50%;
  }
  

 }
 
 @media (max-width: 991.98px) {

  .dropdown-toggle{
    border: 1px solid #ced4da !important;
    height: 32px;
    font-size: 0.7rem;
    padding-left: 10px;
 
  }
  body{
     font-size: 0.70rem !important;
    padding-bottom:0px;
  }


  #iframe{
    width: 100%;
  }
  
  .filter-container{
    max-height: 400px;
    overflow: auto;
  }

  .modal{
    position: relative !important;
    top: -95% !important;
  }

 

  .left-side-menu{
    padding-top: 70px !important;
  }

   .buyerHeading{
    display: flex !important;
    height: 70px;
    color: white;
    justify-content: center;
    align-items: center;
    background-color: var(--fis-btn-primary);
  }
  .lightBgClr{
    background-color: rgb(245 243 243);
  }
  .mobile-btn-group{
    display: flex;
    justify-content: center;
  }
  .page-title-box{
    padding: 0px;
    margin: 0 -27px 1px !important;
  }
  .headerTab{
    color: var(--fis-txt-light-clr);
    background-color: var(--fis-theme-clr);
    border-right: 1px solid var(--fis-txt-light-clr);
    width: 100%;
    border-radius: 0px !important;
    text-decoration: none;
  }

  
  
  
  

  .cpgImg{
    width: 50%;
  }
 }


 .carousel-indicators [data-bs-target]{
  
   background-color:black !important
 }

 .carousel-control-next{
  background: #979696;
  height: 30px;
  width: 20px;
  top: 50%;
 }

 .carousel-control-prev{
  background: #979696;
  height: 30px;
  width: 20px;
  top: 50%;
 }

 
 .d-contents{
  display: contents !important;
}

.apexcharts-yaxis-texts-g{
  transform: translate(12px, 10px);
}

.apexcharts-inner, .apexcharts-graphical{
  transform: translate(30%, 10px);
}

.browseBtn{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-txt-light-clr);
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px !important;
  text-decoration: none;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.browseBtn:hover{
  color: var(--fis-txt-dark-clr);
  background-color: var(--fis-theme-clr);
  text-decoration: none;
  border: 2px solid var(--fis-theme-clr);
  border-radius: 24px;
}

/* ========== PAYMENTS DUE TABLE - PHASE 1 IMPROVEMENTS ========== */

/* Table Container - Enable horizontal scroll with proper overflow */
.table-responsive {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* Hide native vertical scrollbar when slimscroll is active */
/* Slimscroll handles vertical scrolling, so hide native vertical scrollbar */
[appSlimScroll] {
  overflow-y: hidden !important;
  scrollbar-width: none !important; /* Firefox - hide all scrollbars */
  -ms-overflow-style: none !important; /* IE and Edge */
}

[appSlimScroll]::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera - hide all scrollbars */
  width: 0 !important;
  height: 0 !important;
}

/* Table-responsive inside slimscroll: hide vertical scrollbar, keep horizontal */
[appSlimScroll] .table-responsive {
  overflow-y: hidden !important; /* No vertical scrollbar - slimscroll handles it */
  overflow-x: auto !important; /* Keep horizontal scroll for wide tables */
  /* Show horizontal scrollbar when needed */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #b0b8bf #f0f2f4;
}

/* Webkit: Show horizontal scrollbar only (vertical is hidden by parent) */
[appSlimScroll] .table-responsive::-webkit-scrollbar {
  height: 8px; /* Horizontal scrollbar height */
  width: 8px; /* Vertical scrollbar width - hidden by overflow-y: hidden */
}

[appSlimScroll] .table-responsive::-webkit-scrollbar-track {
  background: #f0f2f4;
  border-radius: 10px;
}

[appSlimScroll] .table-responsive::-webkit-scrollbar-thumb {
  background-color: #b0b8bf;
  border-radius: 10px;
  border: 1px solid #e0e3e6;
}

/* Sticky Checkbox Column (Left) */
.table-sortable thead th:first-child,
.table-sortable tbody th:first-child {
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 10;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
  min-width: 50px;
  width: 50px;
}

.table-sortable thead th:first-child {
  background: #f8f9fa;
  z-index: 15;
}

/* Sticky Expand Button Column (Second from left) */
.table-sortable thead th:nth-child(2),
.table-sortable tbody th:nth-child(2) {
  position: sticky;
  left: 50px; /* After checkbox column */
  background: #ffffff;
  z-index: 10;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
  min-width: 40px;
  width: 40px;
}

.table-sortable thead th:nth-child(2) {
  background: #f8f9fa;
  z-index: 15;
}

/* Sticky Action Column (Right) */
.table-sortable thead th:last-child,
.table-sortable tbody th:last-child,
.table-sortable thead th#action,
.table-sortable tbody th#action {
  position: sticky;
  right: 0;
  background: #ffffff;
  z-index: 10;
  box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
  min-width: 140px;
  white-space: nowrap;
}

.table-sortable thead th:last-child,
.table-sortable thead th#action {
  background: #f8f9fa;
  z-index: 15;
}

/* Logo column (third from left, after checkbox and expand button) */
.table-sortable thead th:nth-child(3),
.table-sortable tbody th:nth-child(3) {
  min-width: 60px;
  width: 60px;
  padding: 8px;
}

/* Improved Table Row Hover States */
.table-hover tbody tr {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.table-hover tbody tr:hover {
  background-color: #f9fafb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Improved Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Overdue Badge - Enhanced */
.badge.bg-danger,
.badge.badge.bg-danger {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca;
  font-weight: 600;
}

.badge.bg-danger::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Cash Discount Badge - Enhanced */
.badge.cashdiscount,
.badge.text-success {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0;
  font-weight: 600;
}

.badge.cashdiscount::before,
.badge.text-success::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Compact Cash Discount Display */
.cash-discount-compact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 120px;
  cursor: help;
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.cash-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  width: fit-content;
  line-height: 1.2;
}

.cash-discount-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  color: #059669;
  opacity: 0.8;
}

.cash-discount-percentage {
  font-weight: 700;
  color: #059669;
}

.cash-discount-amount {
  color: #059669;
  font-weight: 600;
  margin-left: 2px;
}

.cash-discount-date {
  font-size: 0.625rem;
  color: #9ca3af;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  font-weight: 500;
}

/* Hover tooltip effect */
.cash-discount-compact:hover .cash-discount-badge {
  background: #d1fae5;
  border-color: #6ee7b7;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2);
}

@media (max-width: 768px) {
  .cash-discount-compact {
    max-width: 120px;
  }
  
  .cash-discount-badge {
    font-size: 0.6875rem;
    padding: 3px 6px;
  }
  
  .cash-discount-date {
    font-size: 0.625rem;
    max-width: 120px;
  }
}

/* Document Type Badge (INV/DN) - Enhanced */
.badge.bg-secondary {
  background: #e5e7eb !important;
  color: #374151 !important;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.badge.bg-info {
  background: #dbeafe !important;
  color: #1e40af !important;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

/* Amount Column - Monospace Font and Right Alignment */
.table tbody td.amount,
.table tbody td.text-end.amount,
td[ng-class*="amount"],
td[ng-class*="text-end"]:has(.amount-value),
td:has(app-app-currency-display) {
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace !important;
  font-weight: 600;
  text-align: right !important;
  letter-spacing: 0.02em;
}

/* Ensure amount headers are also right-aligned */
.table thead th.text-end {
  text-align: right !important;
}

/* Action Buttons - Improved Styling */
.table tbody th:last-child .button-list,
.table tbody th:last-child .btn,
.table tbody th#action .button-list,
.table tbody th#action .btn,
.table tbody th.text-center .button-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.table tbody th.text-center {
  text-align: center;
}

.table tbody th:last-child .btn-sm,
.table tbody th#action .btn-sm {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1.5px solid;
  white-space: nowrap;
}

.table tbody th:last-child .btn-sm.fis-btn,
.table tbody th#action .btn-sm.fis-btn {
  background: var(--bs-primary);
  color: #ffffff;
  border-color: var(--bs-primary);
}

.table tbody th:last-child .btn-sm.fis-btn:hover,
.table tbody th#action .btn-sm.fis-btn:hover {
  background: var(--bs-primary-dark);
  border-color: var(--bs-primary-dark);
  box-shadow: 0 2px 4px rgba(0, 114, 188, 0.2);
  transform: translateY(-1px);
}

.table tbody th:last-child .btn-sm:not(.fis-btn),
.table tbody th#action .btn-sm:not(.fis-btn) {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

.table tbody th:last-child .btn-sm:not(.fis-btn):hover,
.table tbody th#action .btn-sm:not(.fis-btn):hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Table Header Improvements */
.table-sortable thead th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  padding: 12px 16px;
  border-bottom: 2px solid #e5e7eb;
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Sortable Column Indicators - More Visible */
.sortableCol {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sortableCol:hover {
  background: #f1f5f9;
}

.sortableCol i {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.sortableCol:hover i {
  color: var(--bs-primary);
}

.sortableCol .ri-arrow-up-line,
.sortableCol .ri-arrow-down-line {
  color: var(--bs-primary) !important;
  font-weight: 700;
}

/* ========== PHASE 2: CONSOLIDATED COLUMNS & EXPANDABLE ROWS ========== */

/* Expand Button */
.expand-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
}

.expand-btn:hover {
  background: #f3f4f6;
  color: var(--bs-primary);
}

.chevron-icon {
  transition: transform 0.2s ease;
  color: currentColor;
}

.chevron-icon.expanded {
  transform: rotate(90deg);
}

/* Document Cell - Consolidated */
.doc-cell {
  font-family: 'Monaco', 'Courier New', monospace;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.doc-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.doc-link {
  color: var(--bs-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.doc-link:hover {
  color: var(--bs-primary-dark);
  text-decoration: underline;
  border-bottom-color: var(--bs-primary-dark);
}

.doc-link:focus {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Party Cell - Seller/Buyer Consolidated */
.party-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.party-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.party-code {
  font-size: 0.75rem;
  color: #6b7280;
  font-family: 'Monaco', 'Courier New', monospace;
}

/* Date Cell - Due Date Primary, Doc Date Secondary */
.date-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.date-primary {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.date-value {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.date-secondary {
  font-size: 0.75rem;
  color: #9ca3af;
}

.date-overdue {
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 2px;
  text-align: right;
}

/* Amount Cell - Enhanced */
.amount-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.amount-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
}

.amount-secondary {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Expanded Row Details */
.expanded-row {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.expanded-details-cell {
  padding: 0 !important;
  background: #f9fafb;
}

.expanded-content {
  padding: 24px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-group-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: baseline;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  flex: 1;
}

.detail-value {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

.detail-value.error {
  color: #dc2626;
}

.detail-item.highlight {
  background: #ffffff;
  margin: 0 -12px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .table-sortable thead th:first-child,
  .table-sortable tbody th:first-child {
    min-width: 45px;
    width: 45px;
  }
  
  .table-sortable thead th:last-child,
  .table-sortable tbody th:last-child,
  .table-sortable thead th#action,
  .table-sortable tbody th#action {
    min-width: 120px;
  }
  
  .table tbody th:last-child .btn-sm,
  .table tbody th#action .btn-sm {
    padding: 4px 12px;
    font-size: 0.8125rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .table-sortable {
    font-size: 0.8125rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  
  .expanded-content {
    padding: 16px;
  }
  
  .details-grid {
    gap: 12px;
  }
}

/* Improved Search Input Styling */
.search-container {
  position: relative;
}

.search-container .input-group-merge {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.search-container .input-group-merge:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
}

.search-container .search-icon-wrapper {
  border-color: #ced4da;
  border-radius: 20px 0 0 20px;
  padding: 0.5rem 0.75rem;
  border-right: none;
}

.search-container .search-icon-wrapper i {
  font-size: 16px;
  color: #6c757d;
}

.search-container .search-input {
  border-color: #ced4da;
  border-radius: 0 20px 20px 0;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-left: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-container .search-input:focus {
  border-color: #0072BC;
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
  outline: none;
}

.search-container .search-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.search-container .search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: none;
  background: transparent;
  padding: 0.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.search-container .search-clear-btn:hover {
  color: #495057;
  background: transparent;
}

.search-container .search-clear-btn i {
  font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    min-width: 200px !important;
    max-width: 100% !important;
  }
}

/* Cash Discount Indicator */
.cash-discount-indicator {
  margin-top: 6px;
  font-size: 0.8125rem;
}

.cash-discount-indicator .text-success {
  color: #059669 !important;
}

.cash-discount-indicator .text-muted {
  color: #6b7280 !important;
  font-size: 0.75rem;
}

/* ===== Invoice Pay - Inline PDF Preview ===== */
.pdf-preview-container {
  height: 600px;
  border-left: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.pdf-preview-frame {
  width: 100%;
  height: 100%;
}

.pdf-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  padding: 0;
}

.pdf-nav-btn .fe {
  font-size: 14px;
  line-height: 1;
  color: #4b5563; /* neutral gray for visibility */
}

@media (max-width: 991.98px) {
  .pdf-preview-container {
    display: none;
  }
}

/* Invoice Pay - prevent long doc no overlapping */
.doc-no-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ===== Invoice List Cards (Payment Due) ===== */
.invoice-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.invoice-card-disabled {
  opacity: 0.6;
}

.invoice-card-avatar img.cpgImg {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.invoice-select-checkbox {
  width: 20px;
  height: 20px;
}

.invoice-card-seller .seller-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.invoice-card-seller .seller-doc {
  font-size: 0.8125rem;
}

.invoice-amount {
  font-weight: 600;
  font-size: 0.9375rem;
}

.invoice-due {
  font-size: 0.8125rem;
}

.invoice-doc-type {
  font-size: 0.75rem;
}

.invoice-status-wrapper .invoice-status-badge {
  border-radius: 0;
}

.invoice-card-actions .btn {
  border-radius: 0;
}

/* ========== REQUEST TO RECONCILE (RTR) IMPROVEMENTS ========== */

/* Filter Section */
.rtr-filter-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.rtr-filter-section .form-label {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 8px;
}

.rtr-select {
  padding: 0.45rem 0.9rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.5;
  height: auto;
  min-height: 40px;
  transition: all 0.2s ease;
}

.rtr-select:focus {
  border-color: #0072BC;
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
  outline: none;
}

.rtr-select.is-invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.invalid-feedback {
  display: block;
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 4px;
}

/* Summary Metrics */
.rtr-summary-metrics {
  margin-bottom: 24px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.metric-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: #0072BC;
}

.metric-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

/* RTR Table Section */
.rtr-table-section {
  margin-top: 24px;
}

.rtr-table {
  font-size: 0.9375rem;
}

.rtr-table thead th {
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid #e5e7eb;
}

.rtr-table tbody td {
  padding: 16px;
  vertical-align: middle;
}

.rtr-table-row {
  transition: background-color 0.15s ease;
}

.rtr-table-row:hover {
  background-color: #f9fafb;
}

.rtr-table-row td:first-child {
  font-weight: 600;
  color: #1f2937;
}

.utr-code {
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Offset Invoices Button */
.btn-offset-invoices {
  background: #0072BC;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-offset-invoices:hover {
  background: #005a94;
  box-shadow: 0 2px 4px rgba(0, 114, 188, 0.2);
  transform: translateY(-1px);
}

.btn-offset-invoices i {
  font-size: 0.875rem;
}

/* Empty State */
.rtr-empty-state {
  margin-top: 40px;
  margin-bottom: 40px;
}

.empty-state-card {
  background: #ffffff;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.empty-state-message {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* Loading State */
.rtr-loading-state {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rtr-loading-state p {
  font-size: 0.9375rem;
  color: #6b7280;
}

/* Responsive adjustments for RTR */
@media (max-width: 768px) {
  .rtr-filter-section {
    padding: 16px;
  }

  .rtr-summary-metrics .metric-card {
    margin-bottom: 12px;
  }

  .rtr-table {
    font-size: 0.875rem;
  }

  .rtr-table thead th,
  .rtr-table tbody td {
    padding: 12px 8px;
  }

  .btn-offset-invoices {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }

  .empty-state-card {
    padding: 32px 16px;
  }

  .empty-state-icon {
    font-size: 2.5rem;
  }
}

/* Clickable Document Count */
.clickable-document-count {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  user-select: none;
}

.clickable-document-count:hover {
  color: #0072BC !important;
}

.clickable-document-count i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
  color: #0072BC;
}