.tab-orange.active
{
    background-color: #f14b01 !important;
    color: white !important;
    border-bottom-color: #a21c1c !important;
    font-weight: bold;
    border-bottom: 0.5vh solid;
}

.tab-orange
{
    color: black !important;
}

.orange-background
{
    background-color: #fff9f1 !important;
}

.btn-nav,.btn-nav-2 {
  font-size: 1rem;
  border-color: #f14b01;
  color: #f14b01;
  padding: 10px 20px;
  border-radius: 50px; /* rounded-pill */
  font-weight: 500;
  display: flex;
  align-items: center;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.btn-nav:hover {
  transform: translateY(-2px);
  border-color: #398f00;
  box-shadow: 0px 6px 15px rgba(255, 121, 32, 0.226);
  color: #398f00;
}
.btn-nav-2:hover {
  transform: translateY(-2px);
  border-color: #8f0024;
  box-shadow: 0px 6px 15px rgba(255, 121, 32, 0.226);
  color: #8f0024;
}
.uploaded-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.uploaded-pill {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid #dee2e6;
}

.uploaded-pill i {
    color: #f14b01;
    margin-right: 6px;
}

.uploaded-pill .filename {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delete-pill-btn {
    margin-left: 10px;
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.delete-pill-btn:hover {
    color: #b02a37;
}


.btn-submit {
    --bs-btn-bg: #f14b01;           /* warna background normal */
    --bs-btn-border-color: #f14b01; /* warna border normal */
    --bs-btn-hover-bg: #c03d00;     /* warna background hover */
    --bs-btn-hover-border-color: #c03d00;
    --bs-btn-color: #fff;           /* warna teks normal */
    --bs-btn-hover-color: #fff;     /* warna teks saat hover */
}

.btn-orange-outline {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #f14b01;
    --bs-btn-color: #f14b01;
    --bs-btn-hover-bg: #000000;
    --bs-btn-hover-border-color: #000000;
    --bs-btn-hover-color: #f14b01;
}

/* Tombol Approve - outline hijau */
.btn-approve-outline {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #28a745;  /* hijau */
    --bs-btn-color: #28a745;
    --bs-btn-hover-bg: #28a745;
    --bs-btn-hover-border-color: #28a745;
    --bs-btn-hover-color: #ffffff;
}

/* Tombol Reject - outline merah */
.btn-reject-outline {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #dc3545;  /* merah */
    --bs-btn-color: #dc3545;
    --bs-btn-hover-bg: #dc3545;
    --bs-btn-hover-border-color: #dc3545;
    --bs-btn-hover-color: #ffffff;
}

.collapse.show {
  height: auto !important;
}
.collapse.show,
.collapse.show * {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* FONT SIZE */
.fs-7 {
  font-size: 0.85rem !important; /* misalnya 13.6px */
}

.fs-8 {
  font-size: 0.75rem !important; /* misalnya 12px */
}

.fc-orange {
    color: #f14b01;
}
/* Upload File */
.file-upload-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background-color: #fff;
    flex-wrap: wrap;
}
.file-upload-box:hover {
    background-color: #f9f9f9;
}
.file-upload-icon {
    background-color: #fca26e;
    color: white;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.file-upload-text {
    display: flex;
    flex-direction: column;
    word-break: break-word;
}
.file-upload-text strong {
    font-size: 14px;
    color: #333;
}
.file-upload-text small {
    color: #888;
}
.hidden-file-input {
    display: none;
}
.w-5  { width: 5% !important; }
.w-10 { width: 10% !important; }
.w-15 { width: 15% !important; }
.w-20 { width: 20% !important; }
.w-30 { width: 30% !important; }
.w-35 { width: 35% !important; }
.w-40 { width: 40% !important; }
.w-45 { width: 45% !important; }
.w-55 { width: 55% !important; }
.w-60 { width: 60% !important; }
.w-65 { width: 65% !important; }
.w-70 { width: 70% !important; }
.w-80 { width: 80% !important; }
.w-85 { width: 85% !important; }
.w-90 { width: 90% !important; }
.w-95 { width: 95% !important; }

@media (max-width: 576px) {
    #sidebarMenu {
        width: 250px; /* kecilkan untuk mobile */
    }
    .brand-text {
        font-size: 0.75rem; /* lebih kecil di mobile */
    }
    .navbar-toggler-icon {
        background-size: 1.2rem 1.2rem; /* kecilkan icon */
    }
    .navbar-toggler {
        padding: 0.25rem 0.25rem; /* kurangi padding */
        font-size: 1rem; /* ubah ukuran ikon */
        width: 2rem;
        height: 2rem;
    }
    .btn-nav, .btn-nav-2 {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    .btn-nav i, .btn-nav-2 i {
        font-size: 0.9rem;
    }
    body, 
    nav, 
    .offcanvas, 
    .navbar-brand, 
    .nav-link, 
    .btn {
        font-size: 0.75rem; /* semua teks lebih kecil di mobile */
    }

    .nav-tabs .nav-link {
        font-size: 0.75rem; /* teks tab lebih kecil */
        padding: 0.25rem 0.5rem; /* padding tombol lebih kecil */
    }

    .table td, .table th {
        font-size: 0.75rem; /* teks tabel lebih kecil */
        padding: 0.25rem 0.5rem; /* padding lebih kecil */
    }

    .table .btn-sm {
        font-size: 0.7rem; /* tombol lebih kecil */
        padding: 0.25rem 0.4rem;
    }

    .p-0-m {
        padding: 0 !important; /* hapus semua padding di mobile */
    }

    .p-1-m {
        padding: 0.25rem !important;
    }

    .p-2-m {
        padding: 0.5rem !important;
    }

    .p-3-m {
        padding: 1rem !important;
    }

    .file-upload-text {
        width: 100%; 
    }

    .fs-7 {
        font-size: 0.65rem !important; /* misalnya 13.6px */
    }

    .input-group-text {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

.offcanvas-body {
    padding: 0;
}

.glass-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

input[readonly].form-control {
    background-color: #e9ecef; /* sama seperti disabled di Bootstrap */
    opacity: 1;               /* pastikan tidak transparan */
    cursor: not-allowed;      /* biar lebih jelas */
}

/* .ts-wrapper.disabled {
  pointer-events: none !important;
  opacity: 0.7 !important;        
}

.ts-wrapper.disabled .ts-control {
  background-color: #e9ecef !important;
  cursor: not-allowed !important;
} */

.ts-wrapper.disabled .ts-control {
    background-color: #e9ecef !important; /* sama dengan input readonly */
    border-color: #ced4da !important;     /* samakan dengan border input */
    opacity: 1 !important;                /* jangan transparan */
    cursor: not-allowed !important;
    color: #212529 !important;            /* teks tetap jelas */
}

.ts-wrapper.disabled .ts-control > input {
    display: none !important; /* sembunyikan input text-nya */
}

a {
  color: #ff6600;
  text-decoration: none;
}

a:hover {
  color: #cc5200;
  /* text-decoration: underline; */
}

a:focus {
  color: #cc5200;
  outline: none;
  /* text-decoration: underline; */
}

.form-control::placeholder {
    color: #cfb3a1; 
}

/* .form-check-input[type="radio"]:disabled {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.form-check-input[type="radio"]:disabled:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
  opacity: 0.5;
} */


.form-check-input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #adb5bd;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}


.form-check-input[type="radio"]:checked {
  border-color: #f14b01;
  background-color: #f14b01;
}


.form-check-input[type="radio"]:disabled {
  background-color: #e9ecef;
  border-color: #adb5bd;
  cursor: not-allowed;
}


.form-check-input[type="radio"]:disabled:checked {
  background-color: #6c757d;
  border-color: #6c757d;
}
/* Highlight umum */
.highlight,
input.highlight,
select.highlight,
textarea.highlight {
  background-color: #ffe99f;
  border: 2px solid #ffbf00;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* TomSelect wrapper (single/multi) */
.ts-wrapper.highlight .ts-control {
  background-color: #fff9e0 !important;
  border: 2px solid #ffbf00 !important;
  box-shadow: 0 0 0 .2rem rgba(255,193,7,0.25);
}

/* Kalau multiple, item di dalamnya ikut highlight */
.ts-wrapper.multi.highlight .ts-control .item {
  background-color: #ffecb3 !important;
  border-radius: 4px;
}
/* Radio khusus kalau di-highlight */
.form-check-input[type="radio"].highlight {
  box-shadow: 0 0 0 .15rem rgba(255,193,7,0.6);
  border-color: #ffbf00 !important;
}

/* Kalau highlight + checked */
.form-check-input[type="radio"].highlight:checked {
  background-color: #f14b01 !important; /* kuning bootstrap */
  border-color: #ffbf00 !important;
}
/* Checkbox dasar (sudah ada di CSS kamu mungkin) */
.form-check-input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid #adb5bd;
  border-radius: 0.25rem;
  position: relative;
  cursor: pointer;
}

/* Checkbox checked */
.form-check-input[type="checkbox"]:checked {
  background-color: #f14b01;
  border-color: #f14b01;
}

/* Highlight umum untuk checkbox */
.form-check-input[type="checkbox"].highlight {
  box-shadow: 0 0 0 .2rem rgba(255,193,7,0.6);
  border-color: #ffbf00 !important;
}

/* Checkbox checked + highlight */
.form-check-input[type="checkbox"].highlight:checked {
  background-color: #f14b01 !important;  /* kuning bootstrap */
  border-color: #ffbf00 !important;
}

/* Label kalau input checkbox di-highlight */
.form-check-input[type="checkbox"].highlight + .form-check-label {
  background-color: #fff3cd;   /* kuning pucat */
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

/* efek border muter hijau */
/*
@keyframes rotating-border {
    0% {
        box-shadow: 0 0 0 3px #00c853 inset, 0 0 5px #00c853;
    }
    25% {
        box-shadow: 0 0 0 3px #00e676 inset, 0 0 10px #00e676;
    }
    50% {
        box-shadow: 0 0 0 3px #69f0ae inset, 0 0 15px #69f0ae;
    }
    75% {
        box-shadow: 0 0 0 3px #00e676 inset, 0 0 10px #00e676;
    }
    100% {
        box-shadow: 0 0 0 3px #00c853 inset, 0 0 5px #00c853;
    }
}

.file-upload-box.anim-success {
    animation: rotating-border 2s linear infinite;
    border-radius: 8px;
}
*/


/* .file-upload-box.anim-success {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}


.file-upload-box.anim-success::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px; 
  
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(241, 75, 1, 0.0) 30%,
    rgba(241, 75, 1, 0.9) 50%,
    rgba(241, 75, 1, 0.0) 70%,
    rgba(0, 0, 0, 0) 100%
  );

  background-size: 200% 100%;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: move-highlight 2.8s linear infinite;
  pointer-events: none;
}


@keyframes move-highlight {
  0%   { background-position: 200% 50%; }
  100% { background-position: 0% 50%; }
} */
 .file-upload-box,
.file-upload-box.anim-success {
  display: block;
  width: 100%;
}

.file-upload-box.anim-success {
  position: relative;
  overflow: hidden;
  border-radius: 8px;

  /* Tambahan stabilizer */
  display: inline-block; 
}
.file-upload-box.anim-success::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  border-radius: inherit;
  padding: 3px;

  background: #59C800; /* Border statis */

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
}
