@font-face {
  font-family: "Phesrath OT";
  /* set name */
  src: url('../fonts/phetsrath_ot.ttf');
  /* url of the font */
}

@font-face {
  font-family: "Calibre";
  /* set name */
  font-weight: normal;
  src: url('../fonts/calibri.ttf');
  /* url of the font */
}

@font-face {
  font-family: "Calibre";
  /* set name */
  font-weight: bold;
  src: url('../fonts/calibri_bold.ttf');
  /* url of the font */
}

body {
  font-family: "Calibre", "Phesrath OT" !important;
}

/* custom table styles */
.table-responsive {
  width: 100% !important;
  overflow-x: auto;
}

.table-row-link {
  cursor: pointer;
}
.supplier-items-table th,
.supplier-items-table td {
  vertical-align: middle;
}

th{ 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
} 


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

.box-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-title {
  font-size: 16px;
}

.box-list {
  width: 100% !important;   
}

.btn-delete-supplier-items {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  height: 2.2rem;
  width: 2.2rem;
  padding: 0; 
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================ custom card styles ============================ */

.card { 
  border: 1px solid #e5e7eb;
  /* border-radius: 1rem; */
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.05);
  background: #fff;
}

.supplier-quote-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem; 
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.05);
  background: #fff;
}

.card-animate {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.05);
  background: #fff;
}

.card-animate { 
  transition: all 0.2s ease;
  cursor: pointer;
}

.card-animate:hover {
  border-color: #86b7fe;
  box-shadow: 0 0.75rem 1.75rem rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.card-active {
   border-color: #198754;
  box-shadow: 0 0.85rem 2rem rgba(25, 135, 84, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf6 100%);
}

.approval-page-shell {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 1.25rem;
  /* padding: 1rem; */
}

.approval-stat-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.06);
  height: 100%;
}

.approval-stat-card .icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.approval-panel,
.supplier-option-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.05);
  background: #fff;
}

.supplier-option-card {
  padding: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.supplier-option-card:hover {
  border-color: #86b7fe;
  box-shadow: 0 0.75rem 1.75rem rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.supplier-option-card.is-selected {
  border-color: #198754;
  box-shadow: 0 0.85rem 2rem rgba(25, 135, 84, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf6 100%);
}

.supplier-radio-indicator {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #adb5bd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.supplier-option-card.is-selected .supplier-radio-indicator {
  border-color: #198754;
}

.supplier-option-card.is-selected .supplier-radio-indicator::after {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #198754;
}

.decision-sidebar {
  position: sticky;
  top: 1rem;
}

.metric-chip {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.decision-summary-box {
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
  border: 1px solid #dbeafe;
  padding: 1rem;
} 

@media (max-width: 991.98px) {
  .decision-sidebar {
    position: static;
  }
}

/* custom label form */
.form-label {
  margin-bottom: 0.2rem!important;
}

/* custom width sweet alert */
.swal2-popup {
  width: 350px !important;
}

/* custom menu button on sweet alert */
.swal2-actions .swal2-confirm,
.swal2-actions .swal2-cancel {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

.one-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo {
    max-width: 60px;
    height: auto;
}
.img-signature {
      max-height: 35px;
      object-fit: contain;
  }



  /* add styte for loading page */

    #page-loader {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        /* background: rgba(0, 0, 0, 0.45); */
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    #page-loader.show {
        opacity: 1;
        visibility: visible;
    }

    .loader-card {
        background: #fff;
        border-radius: 16px;
        padding: 36px 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        min-width: 200px;
    }

    .loader-dots {
        display: flex;
        gap: 10px;
    }

    .loader-dots span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #0B3C61;
        animation: loader-bounce 0.8s infinite ease-in-out;
    }

    .loader-dots span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .loader-dots span:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes loader-bounce {

        0%,
        80%,
        100% {
            transform: scale(0.6);
            opacity: 0.4;
        }

        40% {
            transform: scale(1.1);
            opacity: 1;
        }
    }

    .loader-text {
        font-size: 0.85rem;
        font-weight: 600;
        color: #555;
        letter-spacing: 0.5px;
    }