/* Custom Styling untuk Capsule Ukuran Besar (H1 Level) */
.nav-pills-lg > li > a.btn-capsule-lg {
    border-radius: 50px !important;     /* Kapsul rounded */
    padding: 6px 18px !important;        /* Padding lebih tebal */
    font-size: 18px !important;         /* Font seukuran font header/sub-header */
    font-weight: 600 !important;        /* Semi-bold agar tegas */
    color: #438eb9;
    background-color: #f5f5f5;
    border: 1.5px solid #d5d5d5;
    display: inline-flex;
    align-items: center;
    gap: 8px;                           /* Jarak antara Icon dan Teks */
    transition: all 0.2s ease-in-out;
}

/* Ukuran Icon di dalam Capsule */
.nav-pills-lg > li > a.btn-capsule-lg i {
    font-size: 18px !important;
}

/* Hover State */
.nav-pills-lg > li > a.btn-capsule-lg:hover {
    background-color: #e8e8e8;
    color: #1b6aaa;
    border-color: #b5b5b5;
}

/* Active State (Status Aktif) */
.nav-pills-lg > li.active > a.btn-capsule-lg,
.nav-pills-lg > li.active > a.btn-capsule-lg:hover,
.nav-pills-lg > li.active > a.btn-capsule-lg:focus {
    background-color: #428bca !important; /* Warna biru khas Ace Admin */
    color: #ffffff !important;
    border-color: #428bca !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.nav-pills-lg > li.active > a.btn-capsule-lg i {
    color: #ffffff !important;
}

/* Styling Header Compact & Modern */
.panel-header-compact {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: 2px solid #ced4da;
    border-radius: 6px 6px 0 0;
    padding: 6px 12px;
    height: 40px; /* Tinggi seragam untuk ketiga kolom */
}

/* Akses garis aksen warna di sebelah kiri judul */
.panel-header-compact.header-orders { border-left: 4px solid #6c757d; }
.panel-header-compact.header-invoice { border-left: 4px solid #0d6efd; }
.panel-header-compact.header-packing { border-left: 4px solid #198754; }

.panel-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #495057;
    text-transform: uppercase;
}

/* Highlight soft-yellow untuk baris terdaftar */
#tabOutstanding tr.order-row.selected-row,
#tabOutstanding tr.order-row.selected-row > td {
    background-color: #fff9c4 !important; /* Soft Yellow */
}

.selected-row {
    background-color: #fff9c4 !important; /* Soft Yellow */
}

/* Pointer cursor untuk menandai baris bisa diklik */
#tabOutstanding tr.order-row {
    cursor: pointer;
}

/* Badge ID Style Soft */
.badge-soft-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    font-weight: 600;
    font-size: 11px;
    padding: 3px 8px;
}

/* Button Micro Size */
.btn-micro {
    font-size: 10px;
    padding: 2px 8px;
    font-weight: 600;
    border-radius: 4px;
}

/* Styling Panel Body Compact & Modern */
.panel-body-compact {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-top: none; /* Menyatu langsung dengan garis header */
    border-radius: 0 0 6px 6px;
    height: 800px; /* Locked height seragam untuk ketiga panel */
    overflow-y: auto; /* Scrollbar internal jika data panjang */
    position: relative;
}

/* Custom Scrollbar tipis agar tampilan tidak bulky */
.panel-body-compact::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.panel-body-compact::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 6px 0;
}
.panel-body-compact::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.panel-body-compact::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Styling Tabel di dalam Compact Body */
.panel-body-compact table {
    margin-bottom: 0 !important;
}

/* Tombol Submit Ticket - Tema Pappice */
.btn-ticket {
    background: #1a73e8 !important;
    border: 2px solid #1a73e8 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3) !important;
}

.btn-ticket:hover {
    background: #1557b0 !important;
    border-color: #1557b0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Ikon ticket (opsional) */
.btn-ticket::before {
    content: "🎫 ";
    font-size: 18px;
}

/* Tombol Submit Ticket - Versi Navbar Compact */
.btn-ticket-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(26, 115, 232, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important; /* Border tipis putih */
    color: #ffffff !important; /* Teks putih agar cocok dengan navbar gelap */
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 4px 14px !important;
    /*border-radius: 20px !important;*/
    height: 30px !important;
    margin: 3px 12px 3px 6px !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}

.btn-ticket-nav:hover {
    background: #1a73e8 !important; /* Biru solid saat hover */
    border-color: #1a73e8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(26, 115, 232, 0.4) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

/* Ikon kecil di depan teks */
.btn-ticket-nav::before {
    content: "🎫";
    font-size: 14px;
    line-height: 1;
}

/* Versi mobile */
@media (max-width: 480px) {
    .btn-ticket-nav {
        font-size: 11px !important;
        padding: 2px 10px !important;
        height: 26px !important;
    }
    .btn-ticket-nav::before {
        font-size: 12px;
    }
}

.btn-ticket-nav-subtle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    height: 30px !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

/* 1. Custom-dropdown untuk manuver mirip Select2 */
.custom-dropdown {
    position: relative;
}

.custom-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 220px;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.custom-dropdown .dropdown-search {
    width: 100%;
    padding: 4px 8px;
    margin-bottom: 6px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.custom-dropdown .dropdown-options {
    max-height: 180px; /* Membatasi tinggi agar bisa di-scroll jika > 30 opsi */
    overflow-y: auto;
}

.custom-dropdown .dropdown-options label {
    display: block;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.custom-dropdown .dropdown-options label:hover {
    background-color: #f0f0f0;
}

/* Container tombol utama agar bisa menampung tag */
.custom-dropdown .dropdown-btn {
    text-align: left;
    height: auto !important;
    min-height: 30px;
    padding: 2px 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

/* Style badge item pilihan */
.custom-dropdown .po-tag {
    background-color: #e4e6e9;
    border: 1px solid #b5b5b5;
    color: #438eb9;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Tombol hapus (x) pada tag */
.custom-dropdown .po-tag .remove-tag {
    cursor: pointer;
    font-weight: bold;
    color: #777;
}

.custom-dropdown .po-tag .remove-tag:hover {
    color: #d15b47;
}

.custom-tooltip,
.normal-tooltip {
  position: relative;
  display: inline-block;
}

/* Kotak tooltip */
.custom-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #212529; /* Hitam kontras */
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  
  /* Animasi mulus */
  opacity: 0;
  animation: tooltip-fade 0.2s forwards;
}

/* Panah kecil di bawah kotak */
.custom-tooltip:hover::before {
  content: "";
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #212529 transparent transparent transparent;
  z-index: 1000;
  pointer-events: none;
  
  /* Animasi mulus */
  opacity: 0;
  animation: tooltip-fade 0.2s forwards;
}

@keyframes tooltip-fade {
  to {
    opacity: 1;
  }
}
/* 2. Normal Tooltip (Di Bawah + Background Overlay Light) */
.normal-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%; /* Muncul tepat di bawah kursor/teks */
  left: 20px; /* Sedikit geser ke kanan agar gaya kursor alami */
  
  /* Styling khas native OS */
  background-color: #e8e8e8; /* Warna background krem/abu terang bawaan OS */
  color: #222222; /* Warna teks abu-abu gelap */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  line-height: 1.2;
  
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid #b8b8b8; /* Border tipis khas OS */
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Soft shadow di kanan-bawah */
  
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}
/* Modal Extra Large / Near Fullscreen */
.modal-dialog-xl {
    width: 95% !important;
    max-width: 1600px !important;
    margin: 20px auto !important;
}

.modal-popup {
    padding: 10px 15px;background-color: #e2f8ef;
}

@media (max-width: 768px) {
    .modal-dialog-xl {
        width: 98% !important;
        margin: 10px auto !important;
    }
}

/* Style untuk highlight baris tabel yang aktif */
#listInvoiceTable tbody tr.active-row-highlight {
    background-color: #fff9d6 !important; /* Warna kuning soft / terang */
    transition: background-color 0.3s ease;
}