/*
 * Hasil kompilasi platform/resources/js/src/views/pages/ticket-train-visa/ticket-train-visa.scss
 * (skin excel halaman /ticket-train-visa; di platform di-import dari index.vue, jadi tidak ikut core.css).
 * Kompilasi ulang: platform/node_modules/.bin/sass --no-source-map --style=expanded <scss> <css>
 */
/**
 * Skin excel gaya Finance untuk halaman /ticket-train-visa.
 *
 * Nama kelas `excel-*` dipakai bersama ~32 halaman lain, jadi SEMUA aturan di sini
 * wajib berada di bawah `.ttv-sheet` supaya tidak bocor ke halaman lain.
 * Menimpa CSS scoped milik ExcelTable.vue, jadi butuh `!important` di beberapa tempat.
 */
/* ===== Sheet tabs (salinan pola payment-management/index.vue) ===== */
.excel-sheet-tabs {
  display: flex;
  background: #fff;
  padding: 0;
  margin-bottom: 0;
  border-bottom: 2px solid #d0d0d0;
}

.excel-sheet-tab {
  padding: 8px 20px;
  cursor: pointer;
  border: 1px solid #b0b0b0;
  border-bottom: none;
  font-size: 12px;
  font-weight: 500;
  background: #d8d8d8;
  color: #555;
  user-select: none;
  margin-right: -1px;
  border-radius: 4px 4px 0 0;
  position: relative;
  top: 2px;
}
.excel-sheet-tab:hover {
  background: #eee;
}
.excel-sheet-tab.active {
  background: #fff;
  color: #222;
  font-weight: 600;
  border-bottom: 2px solid #fff;
  z-index: 1;
}

/* ===== Skin tabel ===== */
.ttv-sheet {
  /* kolom menyesuaikan isi (default komponen `fixed` memotong nilai panjang) */
  /* Header */
  /* Sel read-only */
  /* Sel editable — tinggi mengikuti satu baris konten */
  /* Notes/Description textarea: satu baris, rata tengah vertikal */
  /* v-select dalam sel: satu baris, chevron menempel kanan */
  /* Zebra + hover. Tanpa !important supaya bg_color inline (baris berwarna) tetap menang. */
  /* Baris ber-bg_color: sel beku ikut diwarnai (default komponen memaksa putih) */
  /* Focus ring emas (warna brand halaman ini, bukan hijau bawaan komponen) */
  /* Scrollbar 12px ala halaman finance */
}
.ttv-sheet .excel-table {
  table-layout: auto !important;
  font-family: "Calibri", "Segoe UI", Arial, sans-serif;
}
.ttv-sheet .excel-table-wrapper {
  border: 1px solid #b0b0b0;
}
.ttv-sheet .excel-th {
  background-color: #e8eaed !important;
  border-right: 1px solid #b0b0b0;
  border-bottom: 2px solid #8a8a8a;
  padding: 6px 8px !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  text-align: center !important;
  white-space: nowrap;
}
.ttv-sheet thead .excel-col-frozen {
  background-color: #e8eaed !important;
}
.ttv-sheet .excel-td {
  border-right: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
}
.ttv-sheet .excel-cell-text {
  min-height: 0 !important;
  padding: 4px 8px !important;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.ttv-sheet .excel-input-container {
  min-height: 0 !important;
  align-items: center;
}
.ttv-sheet .excel-input-container .excel-raw-input,
.ttv-sheet .excel-input-container .excel-textarea {
  padding: 4px 8px !important;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.ttv-sheet .excel-input-container .form-control {
  min-height: 0 !important;
  height: auto !important;
  padding: 4px 8px !important;
  font-size: 12px;
  line-height: 1.4;
}
.ttv-sheet .excel-input-container .excel-textarea {
  height: auto !important;
  align-self: center !important;
}
.ttv-sheet .excel-input-container .excel-v-select {
  width: 100% !important;
}
.ttv-sheet .excel-input-container .vs__dropdown-toggle {
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  padding: 1px 4px !important;
  border: none;
  align-items: center !important;
}
.ttv-sheet .excel-input-container .vs__selected-options {
  align-items: center !important;
  flex-wrap: nowrap !important;
  flex: 1 1 auto !important;
}
.ttv-sheet .excel-input-container .vs__selected {
  margin: 0 2px !important;
  padding: 0 2px !important;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.ttv-sheet .excel-input-container .vs__search {
  margin: 1px 2px !important;
  padding: 0 2px !important;
  font-size: 12px;
  line-height: 1.4;
}
.ttv-sheet .excel-input-container .vs__actions {
  padding: 0 4px !important;
  flex-shrink: 0 !important;
}
.ttv-sheet .excel-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}
.ttv-sheet .excel-table tbody tr:nth-child(even) td.excel-col-frozen {
  background-color: #f8f9fa !important;
}
.ttv-sheet .excel-table tbody tr:hover td {
  background-color: #e3f2fd !important;
}
.ttv-sheet .excel-table tbody tr[style*=background-color] td.excel-col-frozen {
  background-color: inherit !important;
}
.ttv-sheet .excel-input-container .excel-raw-input:focus,
.ttv-sheet .excel-input-container .excel-textarea:focus,
.ttv-sheet .excel-input-container .excel-flatpickr:focus,
.ttv-sheet .excel-input-container .form-control:focus,
.ttv-sheet .excel-input-container .excel-v-select.vs--open .vs__dropdown-toggle {
  box-shadow: inset 0 0 0 2px #e4b022 !important;
}
.ttv-sheet .excel-table-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.ttv-sheet .excel-table-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.ttv-sheet .excel-table-scroll::-webkit-scrollbar-thumb {
  background: #b0b0b0;
  border-radius: 2px;
}
.ttv-sheet .excel-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* ===== Lebar & perataan kolom TAB Ticket Train ===== */
/* Urutan: 1 No, 2 Trip Name, 3 Date, 4 Departure, 5 Arrived, 8 Pax */
.ttv-sheet.ttv-express {
  /* Trip Name menyesuaikan isi, tidak tumpang tindih */
  /* Nilai No/Date/Departure/Arrived/Pax rata tengah */
  /* Angka: lebar digit seragam */
  /* Input mengisi penuh sel yang sudah disempitkan */
  /* Description (10) & Notes (13): teks bebas panjang — wrap + tinggi baris
     menyesuaikan isi, BUKAN melebarkan kolom (beda dari kolom lain di tab ini
     yang sengaja nowrap+auto-width). Opt-in ke autosize CSS-only ExcelTable.vue. */
}
.ttv-sheet.ttv-express .excel-table thead tr th:nth-child(2),
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(2) {
  width: auto !important;
  min-width: 340px !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}
.ttv-sheet.ttv-express .excel-table thead tr th:nth-child(1),
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(1) {
  width: 34px !important;
  min-width: 0 !important;
  max-width: 34px !important;
}
.ttv-sheet.ttv-express .excel-table thead tr th:nth-child(3),
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(3) {
  width: 100px !important;
  min-width: 0 !important;
  max-width: 100px !important;
}
.ttv-sheet.ttv-express .excel-table thead tr th:nth-child(4),
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(4) {
  width: 92px !important;
  min-width: 0 !important;
  max-width: 92px !important;
}
.ttv-sheet.ttv-express .excel-table thead tr th:nth-child(5),
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(5) {
  width: 82px !important;
  min-width: 0 !important;
  max-width: 82px !important;
}
.ttv-sheet.ttv-express .excel-table thead tr th:nth-child(8),
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(8) {
  width: 52px !important;
  min-width: 0 !important;
  max-width: 52px !important;
}
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(1) .excel-cell-text,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(3) .excel-cell-text,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(4) .excel-cell-text,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(5) .excel-cell-text,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(8) .excel-cell-text,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(1) .excel-raw-input,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(3) .excel-raw-input,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(4) .excel-raw-input,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(5) .excel-raw-input,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(8) .excel-raw-input,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(3) .form-control,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(4) .form-control,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(5) .form-control {
  text-align: center !important;
}
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(8) .excel-raw-input,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(11) .excel-raw-input,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(12) .excel-raw-input {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(8) .excel-raw-input {
  text-align: center;
}
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(1) .excel-input-container .excel-raw-input,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(3) .excel-input-container .form-control,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(4) .excel-input-container .form-control,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(5) .excel-input-container .form-control,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(8) .excel-input-container .excel-raw-input {
  width: 100% !important;
  min-width: 0 !important;
}
.ttv-sheet.ttv-express .excel-table thead tr th:nth-child(10),
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(10),
.ttv-sheet.ttv-express .excel-table thead tr th:nth-child(13),
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(13) {
  width: 240px !important;
  max-width: 240px !important;
  white-space: normal !important;
}
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(10) .excel-grow-wrap,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(13) .excel-grow-wrap {
  display: grid !important;
  width: 100%;
}
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(10) .excel-grow-wrap::after,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(13) .excel-grow-wrap::after {
  content: attr(data-replicated-value) " ";
  white-space: pre-wrap;
  word-break: break-word;
  visibility: hidden;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.4;
  grid-area: 1/1/2/2;
}
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(10) .excel-textarea,
.ttv-sheet.ttv-express .excel-table tbody tr td:nth-child(13) .excel-textarea {
  grid-area: 1/1/2/2;
  white-space: pre-wrap !important;
  word-break: break-word;
  overflow: hidden;
  height: 100% !important;
  align-items: flex-start !important;
}

/* ===== Lebar & perataan kolom TAB Payment & Deposit Visa ===== */
/* Urutan: 1 No, 2 Trip Name, 3 Notes, 4 NO. GROUP, 5 PAX, 6 CURRENCY, 7 HARGA,
   8 NOMINAL PAYMENT, 9 KETERANGAN, 10 BIS THAIF, 11 BIS NON THAIF, 12 NUMBER */
.ttv-sheet.ttv-visa {
  /* Notes (baru): teks bebas panjang — wrap + tinggi baris menyesuaikan isi,
     sama seperti Description/Notes di TAB Ticket Train (bukan melebarkan kolom). */
  /* NOMINAL PAYMENT & KETERANGAN: jarak kiri-kanan 5px */
  /* KETERANGAN "ISSUED VISA": warna tetap saat baris zebra/hover */
  /* No / PAX rata tengah */
  /* Kolom uang: rata kanan, lebar digit seragam */
  /* Input mengisi penuh sel yang sudah disempitkan */
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(2),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(2) {
  width: auto !important;
  min-width: 340px !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(1),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(1) {
  width: 34px !important;
  min-width: 0 !important;
  max-width: 34px !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(3),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(3) {
  width: 220px !important;
  min-width: 0 !important;
  max-width: 220px !important;
  white-space: normal !important;
}
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(3) .excel-grow-wrap {
  display: grid !important;
  width: 100%;
}
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(3) .excel-grow-wrap::after {
  content: attr(data-replicated-value) " ";
  white-space: pre-wrap;
  word-break: break-word;
  visibility: hidden;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.4;
  grid-area: 1/1/2/2;
}
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(3) .excel-textarea {
  grid-area: 1/1/2/2;
  white-space: pre-wrap !important;
  word-break: break-word;
  overflow: hidden;
  height: 100% !important;
  align-items: flex-start !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(4),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(4) {
  width: 100px !important;
  min-width: 0 !important;
  max-width: 100px !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(5),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(5) {
  width: 84px !important;
  min-width: 0 !important;
  max-width: 84px !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(6),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(6) {
  width: 96px !important;
  min-width: 0 !important;
  max-width: 96px !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(7),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(7) {
  width: 72px !important;
  min-width: 0 !important;
  max-width: 72px !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(8),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(8) {
  width: 122px !important;
  min-width: 0 !important;
  max-width: 122px !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(9),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(9) {
  width: 90px !important;
  min-width: 0 !important;
  max-width: 90px !important;
}
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(8),
.ttv-sheet.ttv-visa .excel-table thead tr th:nth-child(9),
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(8) .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(9) .excel-textarea {
  padding-left: 5px !important;
  padding-right: 5px !important;
}
.ttv-sheet.ttv-visa .excel-table tbody tr td.ttv-issued-visa {
  background-color: #3EF1FA !important;
}
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(1) .excel-cell-text,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(5) .excel-cell-text,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(1) .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(5) .excel-raw-input {
  text-align: center !important;
}
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(7) .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(8) .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(10) .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(11) .excel-raw-input {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(1) .excel-input-container .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(4) .excel-input-container .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(5) .excel-input-container .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(7) .excel-input-container .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(8) .excel-input-container .excel-raw-input,
.ttv-sheet.ttv-visa .excel-table tbody tr td:nth-child(9) .excel-input-container .excel-textarea {
  width: 100% !important;
  min-width: 0 !important;
}

/* ===== TAB Manifest Train (urutan kolom berbeda) ===== */
.ttv-sheet.ttv-manifest {
  /* Kolom pendek/tanggal rata tengah: 2,4,5,7,10,11,13,15 */
  /* Jamaah Name (beku): satu baris + ellipsis */
}
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(2) .excel-cell-text,
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(4) .excel-cell-text,
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(5) .excel-cell-text,
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(7) .excel-cell-text,
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(10) .excel-cell-text,
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(11) .excel-cell-text,
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(13) .excel-cell-text,
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(15) .excel-cell-text {
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.ttv-sheet.ttv-manifest .excel-table tbody tr td:nth-child(3) .excel-cell-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== TAB Manifest Visa ===== */
/* Urutan: 1 No, 2 Title, 3 Name, 4 Gender, 5 Age, 6 Place Of Birth, 7 Date Of Birth,
   8 Passport No, 9 Place Issue, 10 Date Of Issue, 11 Date Of Expired, 12 Visa Number,
   13 File Visa, 14 Tanpa Visa, 15 Booking Order */
.ttv-sheet.ttv-manifest-visa {
  /* Jamaah Name (beku): satu baris + ellipsis */
  /* Visa Number (kolom 12, input inline) rata tengah */
}
.ttv-sheet.ttv-manifest-visa .excel-table tbody tr td:nth-child(2) .excel-cell-text,
.ttv-sheet.ttv-manifest-visa .excel-table tbody tr td:nth-child(4) .excel-cell-text,
.ttv-sheet.ttv-manifest-visa .excel-table tbody tr td:nth-child(5) .excel-cell-text,
.ttv-sheet.ttv-manifest-visa .excel-table tbody tr td:nth-child(7) .excel-cell-text,
.ttv-sheet.ttv-manifest-visa .excel-table tbody tr td:nth-child(10) .excel-cell-text,
.ttv-sheet.ttv-manifest-visa .excel-table tbody tr td:nth-child(11) .excel-cell-text {
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.ttv-sheet.ttv-manifest-visa .excel-table tbody tr td:nth-child(3) .excel-cell-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ttv-sheet.ttv-manifest-visa .excel-table tbody tr td:nth-child(12) .excel-raw-input {
  text-align: center !important;
}

/* ===== Panel filter ===== */
/* Month picker memakai komponen bersama @core/components/month-filter (punya style sendiri). */
.ticket-train-visa {
  /* Semua kontrol di panel filter berlatar putih */
  /* Sel Route: teks ellipsis + tombol ikon tetap, tidak meluber */
  /* Placeholder saat keberangkatan belum dipilih */
  /* Kartu ringkasan versi ringkas */
}
.ticket-train-visa .filter-data-row .form-control,
.ticket-train-visa .filter-data-row select.form-control,
.ticket-train-visa .filter-data-row .vs__dropdown-toggle,
.ticket-train-visa .filter-data-row .drop-view {
  background-color: #ffffff !important;
}
.ticket-train-visa .route-cell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.ticket-train-visa .route-cell .route-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.ticket-train-visa .per-page-selector {
  width: 90px;
}
.ticket-train-visa .ttv-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.ticket-train-visa .ttv-summary-card .card-body {
  padding: 0.9rem 1rem;
}
.ticket-train-visa .ttv-summary-card h3 {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.ticket-train-visa .ttv-summary-card .ttv-summary-value {
  font-size: 1.35rem;
  margin-bottom: 0;
}

/* Opsi dropdown panjang (nama trip) dibungkus. Menu di-append ke body, tidak bisa di-scope. */
.vs__dropdown-menu .vs__dropdown-option {
  white-space: normal !important;
  line-height: 1.35;
}
