/* Select global. Tampilan list opsinya memakai dropdown-list.css.
   Satu komponen, dua varian:
   - Tanpa nama: <select class="pantau-select">…</select>
   - Filter: <label class="pantau-select-field"><span class="pantau-select-field-label">Status</span><select class="pantau-select">…</select></label>
     Header filter tidak terlihat; namanya hanya dibaca screen reader.
   - Filter bulan global: tambah .pantau-select-field-titled pada label agar headernya terlihat.
     Kelompokkan beberapa filter dalam <div class="pantau-select-field-group">. */

select.pantau-select {
  min-height: 44px;
}

select.pantau-select:focus {
  outline: none !important;
  border-color: var(--pantau-green) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .25) !important;
}

/* Semua dropdown global memakai tampilan filter Status di Data Karyawan. */
.pantau-native-select-wrap {
  position: relative;
}

.pantau-native-select-wrap>.pantau-native-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--pantau-border);
  background: #fff;
  color: #000;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  transition: border-color .15s,box-shadow .15s,background .15s;
}

.pantau-native-select-wrap>.pantau-native-select-trigger:focus-visible {
  outline: 2px solid var(--pantau-green);
  outline-offset: 2px;
}

.pantau-native-select-wrap>.pantau-native-select-trigger[aria-expanded="true"] {
  border-color: var(--pantau-green);
  box-shadow: 0 0 0 2px rgba(16,185,129,.18);
}

/* Label opsi tetap satu baris; teks yang terlalu panjang dipotong dengan elipsis. */
.pantau-native-select-trigger .pantau-native-select-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pantau-native-select-trigger .pantau-native-select-chevron {
  font-size: 11px;
  color: var(--pantau-muted);
  flex: 0 0 auto;
}

.pantau-native-select-menu {
  position: fixed;
  z-index: 2147483600;
  top: 0;
  left: 0;
}

.pantau-native-select-wrap>select.pantau-native-select-hidden {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
}

/* Kedua dropdown jumlah data memakai ukuran dan tampilan yang sama persis. */
#pageSizeSelect,
#employeePageSize {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  height: 44px !important;
  margin: 4px 0 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 7.5 4.5 4.5 4.5-4.5' fill='none' stroke='%2364748b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: right 10px center !important;
}

#pageSizeSelect:focus,
#employeePageSize:focus {
  outline: none !important;
  border-color: var(--pantau-green) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, .25) !important;
}

/* Varian filter: lebar seragam di semua menu. */
.pantau-select-field {
  display: flex;
  flex-direction: column;
  width: 180px;
  max-width: 100%;
  margin: 0;
}

.pantau-select-field-label {
  all: unset;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Filter bulan global: header terlihat, jarak ke dropdown 4px. */
.pantau-select-field-titled {
  gap: 4px;
}

.pantau-select-field-titled > .pantau-select-field-label {
  position: static;
  display: block;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  color: var(--pantau-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

/* Lebar dari select-menu.js ditulis inline saat dibuat; varian ini selalu mengikuti lebar field. */
.pantau-select-field > .pantau-native-select-wrap {
  width: 100% !important;
}

.pantau-select-field-group {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 12px;
}
