.border > div{
    border:1px solid red;
}

a:hover{

    text-decoration: none;
}

/*****Padding *******/
.ui-pl-10{padding-left: 10px;}
.ui-pl-15{padding-left: 15px;}
.ui-pl-20{padding-left: 20px;}
.ui-pl-25{padding-left: 25px;}
.ui-pl-30{padding-left: 30px;}
.ui-pl-35{padding-left: 30px;}
.ui-pl-40{padding-left: 40px;}
.ui-pl-45{padding-left: 45px;}
.ui-pl-50{padding-left: 50px;}
.ui-pl-55{padding-left: 55px;}
.ui-pl-60{padding-left: 60px;}

.ui-pr-10{padding-right: 10px;}
.ui-pr-15{padding-right: 15px;}
.ui-pr-20{padding-right: 20px;}
.ui-pr-25{padding-right: 25px;}
.ui-pr-30{padding-right: 30px;}
.ui-pr-35{padding-right: 30px;}
.ui-pr-40{padding-right: 40px;}
.ui-pr-45{padding-right: 45px;}




/*****Margin *******/
.ui-mt-5{margin-top: 5px;}
.ui-mt-8{margin-top: 8px;}
.ui-mt-10{margin-top: 10px;}
.ui-mt-30{margin-top: 30px;}
.ui-mt-50{margin-top: 50px;}
.ui-mt-120{margin-top: 120px;}
.ui-mt-130{margin-top: 130px;}
.ui-mt-140{margin-top: 140px;}
.ui-mt-150{margin-top: 150px;}

.ui-mb-20{margin-bottom: 20px;}

.ui-mtb-150{margin-top: 150px; margin-bottom: 150px;}


.ui-txt-transform-none{text-transform: none;}
.ui-txt-transform-lowercase{text-transform: lowercase;}


.ui-col{
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 0;
    padding-left: 0;
}

.isPC .ui-col-md-x5, .isTablet .ui-col-md-x5{
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
}

ul {
    padding-inline-start: 0;
}

ul.list-bullet{
    list-style: disc; 
    margin-left: 15px;
}
ul.list-bullet li{
    margin-bottom: 10px;
}

ol {
  padding-left: 20px; 
}


.text-error{
    color:red;
}

hr.h-line {
    border-top: 1px solid rgba(255, 255, 255, .2);
}

/****************************************************************************/
/********* BUTTON STYLE  */
/****************************************************************************/
.form-btn-gp{
    
}
.btn-gp{
    display: flex;
    gap:5px;
    align-items: center;
}
.ui-btn, .ui-btn-s {
    display: inline-block;
    font-weight: 400;
    color: white;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 15px;
    padding: 0.3rem 0.85rem;
    background: #ea0d0e;
    background: linear-gradient(142deg, rgb(248 123 123) 10%, rgb(240 54 54) 100%);
    background: linear-gradient(85deg, #ff2626 10%, #cd2228 100%);
    margin: 0.2rem;
    transition: all -.7s ease; 
    white-space: nowrap;
    text-transform: uppercase
}

a.ui-btn:hover{
    color:white;
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.btn-long{
    padding-left:4rem;
    padding-right:4rem;
}
.btn-line{
    background: transparent;
    border: 2px solid var(--color-orange);
    padding: 3px;
    color: var(--color-orange);
}

.btn-fit, .bth-fit{
    width:100%;
}

.btn-lg{
     padding: 10px 20px!important;
}

.btn-s{
    padding:2px 5px;
    font-size: 0.6rem;
}

.btn-disable{
    filter: grayscale(1);
    opacity: 0.3;
}
/****************************************************************************/
/********* INPUT  */
/****************************************************************************/

::placeholder {
  color:#929393!important;
  opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Edge 12 -18 */
  color:#929393!important;
}

input[type="file"]{
    -webkit-appearance: none;
    appearance: none;
}
.custom-file-input {
    position: absolute;
    z-index: 2;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    top:0;
    left:0;
}

.filter-option-gp > [class*='col-']{
    align-self: center;  
}

.filter-option-gp .form-control{
   padding-top: 3px;
   padding-bottom: 3px;
   line-height: 1;
   height: calc(1em + .75rem + 2px); 
}

select.form-control{
    padding-top: 3px;
    padding-bottom: 3px;
    line-height: 1;
    height: calc(1em + .75rem + 2px);
    font-size: 1.1em;
}
/****************************************************************************/
/*********TXT CHOPPED */
/****************************************************************************/

li:has(.txt-chopped), div:has(.txt-chopped),a:has(.txt-chopped){
   /*max-width: 200px; */
}



/*Parent need to define width*/
.txt-chopped{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;  
      display: block;
  flex-grow: 1;
  min-width: 0; /* required for ellipsis to work with flex */
}
.txt-chopped-1line-only{
  display: -webkit-box;
  -webkit-line-clamp: 1;      
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.txt-chopped-2line-only{
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/****************************************************************************/
/*********ROW GRID LAYOUT */
/****************************************************************************/

.row-grid-layout {
    margin-left:-10px;
    margin-right:-10px;
}
.row-grid-layout > [class*='col-']{
    padding-left:10px;
    padding-right:10px;
}

.row-gap-md{
    margin-left:-8px;
    margin-right:-8px;
}
    .row-gap-md > [class*='col']{
        padding-left:8px;
        padding-right:8px;
    }

.row-gap-sm{
    margin-left:-5px;
    margin-right:-5px;
}
    .row-gap-sm > [class*='col']{
        padding-left:5px;
        padding-right:5px;
    }


/****************************************************************************/
/*********INPUT DATE */
/****************************************************************************/

input[type="date"]::-webkit-calendar-picker-indicator {
/*    display: none;
    -webkit-appearance: none;*/
   /* width: 15px;
    padding: 0px;
    margin: 0px;
    margin-top: 10px;*/
    filter: var(--color-filter-orange);
}

/****************************************************************************/
/*********CHECK BOX */
/****************************************************************************/
input[type="checkbox"]{
  
}
.ui-checkbox {
  display: block;
  position: relative;

  cursor: pointer;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

    .ui-checkbox input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
      height: 0;
      width: 0;
    }
    .ui-checkbox .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 15px;
        width: 15px;
        border-radius: 3px;
        transition: all 1s ease;
        border: 2px solid  #f6ab08;
    }
    .ui-checkbox:hover input ~ .checkmark {
       background-color: #ccc;
        border: 2px solid #f6ab08;
    }
    .ui-checkbox input:checked ~ .checkmark {
      background-color: var(--color-orange);
    }
    .ui-checkbox .checkmark:after {
      content: "";
      position: absolute;
      display: none;
    }
    .ui-checkbox input:checked ~ .checkmark:after {
      display: block;
    }
    .ui-checkbox .checkmark:after {
        left: 3px;
        top: 0px;
        width: 5px;
        height: 10px;
        border: solid #fff;
        border-width: 0 3px 3px 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
    }

/****************************************************************************/
/********* STRETCH PANE FULL HEIGHT */
/****************************************************************************/

body.stretch-to-fill {
  display: flex!important;
  flex-direction: column;
  min-height: 100vh;
}

.stretch-to-body {
  flex-grow: 1;
  display: flex!important;
  flex-direction: column;
}

.stretch-inside {
  flex: 1;
  display: flex!important;
  flex-direction: column;
}

/****************************************************************************/
/*********GRID Layout */
/****************************************************************************/
.grid-layout {
    display: grid!important;
    /*flex-wrap: wrap;*/
    grid-gap: 5px;
    gap: 10px; /* modern version of grid-gap */
    grid-template-columns: repeat(7, 1fr);
}



.grid-layout-auto-fit {
     display: grid!important;
     grid-gap: 5px;
    gap: 5px; /* modern version of grid-gap */
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr))
}
/****************************************************************************/
/*********TAB WIT HORIZONTAL DISPLAY LOGO*/
/****************************************************************************/
.tab-wit-hlogo .nav-link{
    flex-direction: row!important;
    flex-shrink: 0;
    justify-content: center;
    margin:0!important;

}

.tab-wit-hlogo .inner-wrapper{
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.tab-wit-hlogo .logo img{
    width:20px;
    margin-right: 5px;
}
/****************************************************************************/
/*********EQUAL WIDTH TAB */
/****************************************************************************/

.equal-width-tabs .nav-item {
  flex: 1 1 0;
}

.equal-width-tabs .nav-link {
  width: 100%;
  text-align: center;
}




/* Use JS to auto-detect the widest link and apply it */
.tab-wrap-equal-width .nav-link {
  min-width:  var(--tab-width);
  text-align: center;
}

.tab.scroll-x .nav-item > .nav-link{
    white-space: nowrap;
}
/****************************************************************************/
/*********TAB A (PILL STAYLE) */
/****************************************************************************/

.tab-a .nav-link{
    background: var(--color-lg-grey);
    background: linear-gradient(146deg, #ededed 10%, #d5d6d9 100%);
    margin: 5px;
    color:black;
    border-radius: 10px;
}

.tab-a .nav-link.active{
/*    background: linear-gradient(142deg, #f991ae 10%, #e3385d 100%);
    background: linear-gradient(142deg, #fdf4da 30%, #f9d38d 100%);*/
    background: linear-gradient(142deg, #fdedbe 30%, #f9d38d 100%);
    font-weight: 600;
    color:var(--color-orange);
}

/****************************************************************************/
/*********TAB B (LEFT SHARP & RIGHT EOUND CORNER) */
/****************************************************************************/

.tab-gp.tab-b .nav-link.active {
/*    background: linear-gradient(142deg, #f991ae 10%, #e3385d 100%);*/
    background: linear-gradient(142deg, #f7ce8f 10%, #ffa700  100%);
    /*background: linear-gradient(142deg, #ffe1b2 10%, #efb038 100%);*/
    color: black;
    font-weight: 600;
}


.tab-gp.tab-b .nav-link {
    font-size: 0.75rem;
    padding: .3rem 0.5rem;
    border-top-left-radius: 0rem;
    border-top-right-radius: 0.5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #e7e1e1;
    padding-bottom: 0.2rem;
    margin-right: 0.5rem;
    color: #4d4b4b;
    white-space: nowrap;
}

.tab-gp.tab-b.tab-fat .nav-link{
    padding: 0.5rem 0.8rem;
    padding-bottom: 0.5rem;
}

/****************************************************************************/
/*********TAB C (UNDERLINE STAYLE) */
/****************************************************************************/
.tab-c > .nav-item {
    margin: 0 9px;
}
.tab-c > .nav-item > a{
    padding:0;
}
.tab-c .nav-item a.active{
    color: #fe5a43;
    font-weight: 600;
    border-bottom: 2px solid #fe5a43;
    border-radius: 0;
    background: transparent;
}
/****************************************************************************/
/*********TAB D  */
/****************************************************************************/
.tab-d {
    padding: 5px;
    border-radius: 3rem;
    background: #f3f5f6;
    background:#ebebeb;
}
.tab-d .nav-item a{
    color: #8899a4;
}
.tab-d .nav-item a.active{
    color: white;
    font-weight: 600;
    border-radius: 3rem;
    background: #ff8a00;
}
/****************************************************************************/
/*********BOX EQUAL HEIGH */
/****************************************************************************/
.nav-pills {
  display: flex;
  align-items: stretch;
}

.nav-pills .nav-item {
  /*flex: 1 1 auto;*/ /* optional: allow tabs to grow evenly */
  display: flex;
  align-items: stretch;
}

.nav-pills .nav-link {
  display: flex;
  flex-direction: column;
/*  justify-content: center;*/
  align-items: center;
  width: 100%; /* ensure it fills parent */
}

/****************************************************************************/
/*********ALIGN ITMS */
/****************************************************************************/

.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.scroll-x{
    overflow-x: auto;
}
.scroll-x > div, .scroll-x > ul {
    overflow-x: auto;
    -ms-flex-wrap: nowrap!important;
    flex-wrap: nowrap !important;
}

/****************************************************************************/
/*********SCROLLBAR */
/****************************************************************************/

.hide-scrollbar{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}



/****************************************************************************/
/*********TABLE STYLE */
/****************************************************************************/
.table-scroll, .table-scroll-x{
    overflow-x: auto;
    width:100%;
}
    .mobile .table-scroll, .mobile .table-scroll-x{
        overflow-x: auto;
        width:100%;
    }
    .mobile .table-scroll::-webkit-scrollbar , .mobile .table-scroll-x::-webkit-scrollbar {
        display: none;
    }

.table-scroll > table, .table-scroll-x > table{
   /* width: max-content;*/ /* Ensures the table can exceed container width */
   /* min-width: 100%;
    border-collapse: collapse;*/
}

table {
    font-size: 0.95em;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 7px;
    margin-bottom: 10px;
    color: black;
}

.rounded-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}

.table-alt tbody tr:nth-child(odd){
    background: #edecec; 
    background: var(--color-md1-grey); 
}
/*
.table-round{
    border-radius: 10px;
}
    .table-round thead tr th:first-child{
        border-top-left-radius: 10px;
    }
    .table-round thead tr th:last-child{
        border-top-right-radius: 10px;
    }
    .table-round tbody tr:last-child td:first-child{
        border-bottom-left-radius: 10px;
    }
    .table-round tbody tr:last-child td:last-child{
        border-bottom-right-radius: 10px;
    }
*/

table.no-wrap thead tr th,  table.no-wrap tbody tr td{
    white-space: nowrap;
}
table tbody.no-wrap tr td{
    white-space: nowrap;
}

table thead tr th{
    padding: 0px 8px;
}
table tbody tr {
   background: var(--color-md1-grey);
}
table.row-hover tbody tr:hover {
   background: #ffe8d3;
   cursor: pointer;
}
table tr td {
    padding: 8px;
}
table tr td:first-child {
    border-top-left-radius: 0.65rem;
    border-bottom-left-radius: 0.65rem;
}
table tr td:last-child {
    border-top-right-radius: 0.65rem;
    border-bottom-right-radius: 0.65rem;
}
.table-alt tbody tr:nth-child(odd) {
    background: #edecec;
    background: var(--color-lg-grey);
}
table .logo{
    width: 40px;
    margin-right: 5px;
    margin-left: 10px;
}
table .icon-act-gp{
    text-align: right;
    padding-right: 15px;
}
table .icon-action{
    padding: 5px 5px;
    border-radius: 15px;
    display: inline-block;
    background: #f1eaea;
    margin-right: 5px;
}
table .icon-action:hover{
    /*background: var(--color-orange);*/
    
}
table .icon-action:hover> img{
    /*filter: var(--color-filter-white);  */
}
table .icon-action > img{
    width: 25px;
    filter: var(--color-filter-orange);
    
}


/***************************************************************/



.note{
    font-size: 0.65rem;
    color:rgba(0,0,0,0.65);
}


/**************************************************************************************************/
/*** START Customize scrollbar ******************************************************************************/
/**************************************************************************************************/
/* width */
::-webkit-scrollbar {
  width: 5px;
  height:5px;
  margin:0;

}

/* Track */
::-webkit-scrollbar-track {
   background: #ccc; 
   border-radius: 50px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #FFC107;  
    background: #666464;
  border-radius: 50px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #d7ef10; 
}



/**************************************************************************************************/
/*** BTN ******************************************************************************/
/**************************************************************************************************/

.neumorphism-eff, .emboss-eff{
    position: relative;
    background: linear-gradient(138deg, rgba(244, 242, 242, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 1) 100%);
    border: 2px solid white;
    box-shadow: 10px 20px 15px 0px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}
.neumorphism-eff, .emboss-eff:before{
    content: "";
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: -10px -5px 15px 5px rgba(255, 255, 255, 0.9);
   
}

/**************************************************************************************************/
/*** ICON EMAIL / CHAT / NOTIFICATION ******************************************************************************/
/**************************************************************************************************/
.ui-icon-email.top-right span:after{
    content: attr(data-value);
    position: absolute;
    top: -5px;
    right: 4px;
    border-radius: 3rem;
    background: #f15252;
    min-width: 20px;
    text-align: center;
    font-size: 0.8em;
    padding-right: 3px;
    padding-left: 3px;
    color: white; 
}

/**************************************************************************************************/
/*** MARQUEE ******************************************************************************/
/**************************************************************************************************/

.ui-marquee{
    width: 100%;
    overflow-x: hidden;
}

@keyframes infiniteScroll {
  from {transform: translateX(0)}
  to {transform: translateX(-50%)}
}

.horizontal-scrolling-items {
  
  color:white;
  display: flex;
  width: 100%;
  animation-name: infiniteScroll;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
    .horizontal-scrolling-items:hover{
        animation-play-state: paused;
        cursor: pointer;
    }

.horizontal-scrolling-items__item {
  white-space: nowrap;
}

.horizontal-scrolling-items__item span{
    color:#FFEB3B;
    color: #ad0b42;
    margin: 0 0.5rem;
    font-size: 1em;
}
.horizontal-scrolling-items__item bold{
    font-size: 1.1em;
    font-weight: 600;
    color:#ff8f00;
}


/**************************************************************************************************/
/*** TOGGLE SWITCH  ******************************************************************************/
/**************************************************************************************************/
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch.switch-s {
   width: 50px;
    height: 25px; 
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
.switch.switch-s .slider:before {
    height: 19px;
    width: 19px;
    left: 1px;
}

input:checked + .slider {
  background-color: #2196F3;
  background-color: #ffa700;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/**************************************************************************************************/
/*** FORM SELECT PHONE FLAG  ******************************************************************************/
/**************************************************************************************************/
.custom-select-phone {
  position: relative;
  width: 100%;
}
    .custom-select-phone .options {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      display: none;
      flex-direction: column;
      background: #fff;
      border: 1px solid  var(--color-md1-grey); 
      border-radius: .25rem;;
      z-index: 10;
     width:200px;
    }
    .custom-select-phone.open .options {
      display: flex;
    }
    .custom-select-phone.open .options li span{
      margin-left: 5px;
    }

    .custom-select-phone .selected{
        font-size: 0.95rem;
        border:1px solid var(--color-form-itm);
        border-radius: 15px;
        padding: 12px 15px;
        height: auto;
    }

    .custom-select-phone .options li{
        margin: 3px 0;
        padding: 7px 10px;
    }
    .custom-select-phone .selected,
    .custom-select-phone .options li {
      display: flex;
      align-items: center;
      background: #fff;
      cursor: pointer;

    }

    .custom-select-phone img {
      width: 20px;
      margin-right: 10px;
      border-radius: 50%;
    }

/**************************************************************************************************/
/*** FORM INPUT WTH INNER BTN  ******************************************************************************/
/**************************************************************************************************/

.input-with-button {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px; /* adjust as needed */
}

.input-with-button input {
  padding-right: 120px; /* make space for button */
  box-sizing: border-box;
}

.input-with-button button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  padding: 8px 10px;
   background: linear-gradient(85deg, #ff2626 10%, #cd2228 100%);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

/**************************************************************************************************/
/*** BANNER RATIO CONTAINER  ******************************************************************************/
/**************************************************************************************************/

/*Aspect-ratio  only support in all modern browser*/
/*  aspect-ratio: 16 / 6.7; */
.aspect-16-7-fill{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7; 
  display: block;
  object-fit:fill;/*Stretch the img to fit the container*/
}
.aspect-16-7-contain{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7; 
  display: block;
  object-fit:contain;/*fit to the container with keep ratio, so will display center*/
}
.aspect-16-7-chop{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7; 
  display: block;
  object-fit:cover;/*choppped img to fit in the container*/
}

.aspect-16-4-fill{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 4; 
  display: block;
  object-fit:fill;/*Stretch the img to fit the container*/
}



/*FAllback method for Safari < 15 , aspect-ratio only support in Safari 15 and above */
.aspect-ratio-16-7-box{
  position: relative;
  width: 100%;
  padding-top: 43.75%; /* 16:7 ratio = 7/16 * 100 */
  overflow: hidden;
}
.aspect-ratio-16-7-box img{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit:fill;
}

 /* Optional: Reset padding if native aspect-ratio is supported */
 @supports (aspect-ratio: 16 / 7) {
  .aspect-ratio-16-7-box {
    aspect-ratio: 16 / 7;
    padding-top: 0;         /* cancel fallback */
    position: relative;     /* still needed for absolute image */
  }

/*  .aspect-ratio-box img {
    position: absolute;
    width: 100%;
    height: 100%;
  }*/
}

