html {
  --form-invalid-color: #f46a6a;
}

:root {
  --dark: #34495E;
  --light: #ffffff;
  --success: #0ABF30;
  --error: #E24D4C;
  --warning: #E9BD0C;
  --info: #3498DB;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 73px;
  background-color: #fff;
  z-index: 99;
  display: flex;
  align-items: center;
  padding-right: 20px;
  box-shadow: 0 0 30px rgb(12 37 86 / 5%);
}

.layout-wrapper {
  display: flex;
  margin-top: 0;
  height: calc(100vh - 73px);
}

/* Sidebar */
.sidebar {
  width: 260px;
  height: 100%;
  background: #f9f9f9;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 80px;
}

/* Main content */
.main-content-wrapper {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
}

.container-fluid {
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .container-fluid {
    width: 100%;
    max-width: 100%;
  }
}

.wrapper {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}




.col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-xl-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.comp-box{
    width: 100%;
   background-color:#FFFFFF;

}

.comp-space-items{
    display: flex;
    gap: 12px;
    align-items: center;
    width: 560px;
}

.comp-align{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.comp-title{
    color: #202020;
    font-family: 600;
    font-size:18px;
}

/* SEARCH */
.search-container {
  display: flex;
  margin-right: 8px;
  border: 1px solid #E7E7E7;
  align-items: center;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  width: 300px;
  min-height: 36px;
}

.search-container i {
  color: #b0b0b0;
  margin-right: 10px;
}

.search-container form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-container form .material-symbols-rounded {
  color: #b0b0b0;
  font-size: 18px;
  order: 2;
  flex-shrink: 0;
}

.search-container input {
  border: none;
  outline: none;
  background: none;
  font-weight: 300;
  color: #333;
  flex: 1;
  font-size: 14px;
  order: 1;
  padding: 0;
}

.search-container input::placeholder {
  color: #b0b0b0;
}

/* div to hold each row */
.dash-row-wrapper{
   gap: 1%;
    display: flex;
    flex-direction:row ;
    justify-content:space-between;
    flex-wrap: wrap;
    width: 100%;

}




.sup-table-header{
    position: relative;
    width: 100%;
    margin-bottom: 5px;
    min-height: 60px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  /*Filter and search bar*/
  .sup-table-action-wrapper{
    position: relative;
    width: 500px;
    min-height: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: right;
    gap: 8px;
  }

    /*Table*/
  .sup-table-responsive{
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow-x: auto;
 }
  .sup-table {
    position: relative;
    /* width: 100%;
    height: 100%; */
    /* min-height: 500px; */
    color: #495057;
    caption-side: bottom;
    border-collapse: collapse;
    vertical-align: top;
    border-color: #f6f6f6;
    overflow-x: auto;
    table-layout:auto;
    width: 100%;
  }

  /* Loyalty table with equal width columns */
  .loyalty-table {
    table-layout: fixed;
  }

  .loyalty-table th,
  .loyalty-table td {
    width: 20%;
  }

  .loyalty-table td .shimmer-cell {
    width: 100%;
    max-width: 100%;
  }

  /* Loyalty download button styles */
  .loyalty-download-btn {
    background-color: #2869D4;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .loyalty-download-btn:hover:not(:disabled) {
    background-color: #1e5bb3;
  }

  .loyalty-download-btn:disabled {
    background-color: #e3f2fd;
    color: #90caf9;
    cursor: not-allowed;
    opacity: 0.7;
  }

  .loyalty-download-btn:disabled .material-symbols-rounded {
    opacity: 0.5;
  }
  .sup-table thead tr th{
    font-size: 13px;
    padding: 10px;
    text-align: left;
    color: #898989;
    background-color:#F4F4F4 ;
    font-weight: 400;

  }
  .sup-table thead {
    width: 100%;
    height: 60px;
    overflow-x: auto;
  }
 td {
    width: 100%;
    text-align: left;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    font-size: 13px;
    color: #202020;
}
tr:nth-child(even){
  background-color: #F6F6F6;
  height: -30px;
}

/*flex table css*/
.sup-table-row-header{
  width: 100%;
  height: 40px;
  display: flex;
  flex-direction: row;
  background-color:#F4F4F4 ;
}
.sup-table-cell{
    width: 8%;
    text-align: left;
    padding: 10px;
    white-space: nowrap;  /* Prevents text from wrapping */
    overflow: hidden;      /* Hides overflowing text */
    text-overflow: ellipsis;
    white-space: nowrap; /* Keeps text in one line */
    font-family: 'public sans', serif;
    font-weight: 600;
    font-size: 14px;
    color: #202020;
    display: flex;
    align-items: center;

}

.sup-table-cell-larger{
    width: 22%;
    text-align: left;
    padding: 10px;
    white-space: nowrap;  /* Prevents text from wrapping */
    overflow: hidden;      /* Hides overflowing text */
    text-overflow: ellipsis;
    white-space: nowrap; /* Keeps text in one line */
    font-family: 'public sans', serif;
    font-weight: 600;
    font-size: 14px;
    color: #202020;
    display: flex;
    align-items: center;

}

.sup-table-cell-large{
    width: 12%;
    text-align: left;
    padding: 10px;
    white-space: nowrap;  /* Prevents text from wrapping */
    overflow: hidden;      /* Hides overflowing text */
    text-overflow: ellipsis;
    white-space: nowrap; /* Keeps text in one line */
    font-family: 'public sans', serif;
    font-weight: 600;
    font-size: 14px;
    color: #202020;
    display: flex;
    align-items: center;
}

.sup-table-row:nth-child(odd){
  background-color: #F6F6F6;
}
.sup-table-row{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 57px;
  flex: 1;
}

/* Loading spinner start */
.customers-loading-wrapper {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 999;
}

.clickable {
  cursor: pointer;
}

.com-buttton{
    width: 141px;
    height: 40px;
    background-color: #2869D4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.vas-select-fields-mini {
  border-radius: 60px;
  background: #f1f1f3 url(/images/dropdown.svg) no-repeat;
  background-position: calc(100% - 0.8rem) center !important;
  background-size: 13px;
  padding: 4px 14px;
  appearance: none;
  border: 0;
  /* margin-top: 5px; */
  font-size: 12px;
  font-weight: 400;
  width: 120px;
  font-family: Nunito !important;
  color: #142a4a;
  min-width: 0;
  height: 35px;
}

.hideWhenBig {
    display: block !important;
  }

  .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-close {
  cursor: pointer;
  font-size: 20px;
}

.popup-body label {
  display: block;
  margin-top: 10px;
}

.popup-body input {
  width: 100%;
  padding: 6px;
  margin-top: 5px;
  box-sizing: border-box;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.popup-actions button {
  padding: 8px 12px;
}

.popup-actions .cancel {
  background: #ccc;
}

.comp-export-button{
    width: 290px;
    height: 30px;
    font-size: 12px;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    background-color:#2869D4;
    color:#FFFFFF;
    font-weight: 600;
}

.invalid-feedback {
  margin-top: 5px;
  width: 100%;
  margin-bottom: 0.25rem;
  font-size: 87.5%;
  color: var(--form-invalid-color);
}




.notifications {
  position: fixed;
  top: 30px;
  right: 20px;
}
.notifications :where(.toast, .column) {
  display: flex;
  align-items: center;
}
.notifications .toast {
  width: 400px;
  position: relative;
  overflow: hidden;
  list-style: none;
  border-radius: 4px;
  padding: 16px 17px;
  margin-bottom: 10px;
  background: var(--light);
  justify-content: space-between;
  animation: show_toast 0.3s ease forwards;
}
@keyframes show_toast {
  0% {
    transform: translateX(100%);
  }
  40% {
    transform: translateX(-5%);
  }
  80% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-10px);
  }
}
.notifications .toast.hide {
  animation: hide_toast 0.3s ease forwards;
}
@keyframes hide_toast {
  0% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(0%);
  }
  80% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(calc(100% + 20px));
  }
}
.toast::before {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  animation: progress 5s linear forwards;
}
@keyframes progress {
  100% {
    width: 0%;
  }
}
.toast.success::before, .btn#success {
  background: var(--success);
}
.toast.error::before, .btn#error {
  background: var(--error);
}
.toast.warning::before, .btn#warning {
  background: var(--warning);
}
.toast.info::before, .btn#info {
  background: var(--info);
}
.toast .column i {
  font-size: 1.75rem;
}
.toast.success .column i {
  color: var(--success);
}
.toast.error .column i {
  color: var(--error);
}
.toast.warning .column i {
  color: var(--warning);
}
.toast.info .column i {
  color: var(--info);
}
.toast .column span {
  font-size: 1.07rem;
  margin-left: 12px;
}
.toast i:last-child {
  color: #aeb0d7;
  cursor: pointer;
}
.toast i:last-child:hover {
  color: var(--dark);
}
.buttons .btn {
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0 5px;
  color: var(--light);
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 4px;
}
@media screen and (max-width: 530px) {
  .notifications {
    width: 95%;
  }
  .notifications .toast {
    width: 100%;
    font-size: 1rem;
    margin-left: 20px;
  }
  .buttons .btn {
    margin: 0 1px;
    font-size: 1.1rem;
    padding: 8px 15px;
  }
}


.badge {
  display: inline-block;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.success-badge {
  font-size: 0.75rem;
  color: #34c38f;
  background-color: rgba(52, 195, 143, 0.18);
  padding-right: 0.6rem;
  padding-left: 0.6rem;
  border-radius: 50rem;
}

.error-badge {
  font-size: 0.75rem;
  color: #f46a6a;
  background-color: rgba(244, 106, 106, 0.25);
  padding-right: 0.6rem;
  padding-left: 0.6rem;
  border-radius: 50rem;
}

.warning-badge {
  font-size: 0.75rem;
  color: #E9BD0C;
  background-color: rgba(233, 189, 12, 0.25);
  padding-right: 0.6rem;
  padding-left: 0.6rem;
  border-radius: 50rem;
}



.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

.btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* ============================================
   SHIMMER LOADING EFFECT
   ============================================ */

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-row {
  height: 57px;
  margin: 2px 0;
  border-radius: 4px;
}

.shimmer-cell {
  height: 20px;
  border-radius: 4px;
  margin: 0 10px;
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 20px 0;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #E7E7E7;
  border-radius: 4px;
  background: #ffffff;
  color: #202020;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: #F8FAFC;
  border-color: #2869D4;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: #2869D4;
  color: #ffffff;
  border-color: #2869D4;
}

.pagination-info {
  font-size: 14px;
  color: #898989;
  margin: 0 12px;
}
