.floating-search {
  position: sticky;
  top: 12px;
  z-index: 11000;
}
.card-shadow {
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
}
.custom-select {
  position: relative;
}
.custom-select .options {
  position: absolute;
  background: #fff;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 100%;
}
.custom-select .option {
  padding: 8px 12px;
  cursor: pointer;
}
.custom-select .option:hover {
  background: #f3f4f6;
}
.custom-select .select-toggle {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.custom-select .select-toggle.open {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.custom-select .options {
  margin-top: 6px;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
}
.custom-select .option.selected {
  background: #eef2ff;
  font-weight: 600;
}
.custom-select .option:focus {
  outline: none;
  background: #f8fafc;
}

.custom-select .options {
  transform-origin: top center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  opacity: 0;
  transform: scaleY(0.96) translateY(-4px);
  pointer-events: none;
}
.custom-select .options.open {
  opacity: 1;
  transform: scaleY(1) translateY(0);
  pointer-events: auto;
}

.custom-select .select-toggle {
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 120ms ease;
}
@media (max-width: 640px) {
  input,
  button,
  select {
    font-size: 16px;
    height: 44px;
  }
  .table-container {
    margin: 0 -16px;
  }
}
.dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 9999;
  max-height: 12rem;
  overflow-y: auto;
  width: 100%;
  color: #1f2937;
}
.dropdown-option {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #1f2937;
}
.dropdown::-webkit-scrollbar {
  width: 6px;
}
.dropdown::-webkit-scrollbar-track {
  background: #f3f4f6;
}
.dropdown::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}
body {
  padding-bottom: 120px !important;
}

html,
body {
  height: 100%;
  background: transparent;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../icons/icon.svg");
  background-repeat: no-repeat;
  background-position: center center;

  background-size: 48vmin;
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;

  z-index: 9998;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media (max-width: 640px) {
  html::before {
    background-size: 55vmin;
    opacity: 0.04;
  }
}

@media print {
  html::before {
    display: none;
  }
}
:focus {
  outline: none !important;
  box-shadow: none !important;
}

.copyable {
  cursor: pointer;
}

.search-input-filter-btn {
  background: transparent;
  border: none;
  color: #111827;
  padding: 6px;
  cursor: pointer;
}
.search-input-filter-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 6px;
}

#filterBackdrop {
  display: none;
}
#filterBackdrop.show {
  display: block;
}
#filterModal {
  display: none;
}
#filterModal.show {
  display: block;
}

.filter-modal-header {
  border-bottom: 1px solid #e6e9ee;
  padding-bottom: 6px;
}
.filter-select {
  background: #fff;
  border: 1px solid #e6e9ee;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.filter-actions button {
  min-height: 40px;
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
  outline: none;
}
.filter-actions #applyFilterBtn {
  background: #0284c7;
  color: #fff;
  border: none;
}
.filter-actions #applyFilterBtn:hover,
.filter-actions #applyFilterBtn:focus {
  background: #0369a1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}
.filter-actions #applyFilterBtn:active {
  background: #075985;
}
.filter-actions #clearFilterBtn {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.filter-actions #clearFilterBtn:hover,
.filter-actions #clearFilterBtn:focus {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.07);
}
.filter-actions #clearFilterBtn:active {
  background: #e2e8f0;
}
#closeFilterBtn {
  background: transparent;
  color: #64748b;
  border: none;
  transition:
    background 0.15s,
    color 0.15s;
}
#closeFilterBtn:hover,
#closeFilterBtn:focus {
  background: #f1f5f9;
  color: #0f172a;
}
#closeFilterBtn:active {
  background: #e2e8f0;
}
#filterModal {
  width: 92%;
  max-width: 420px;
  padding: 12px;
  border-radius: 12px;
}
#filterBackdrop.show {
  background: rgba(5, 10, 20, 0.45);
}
.copy-indicator {
  display: inline-block;
  margin-left: 0.5rem;
  color: #10b981;
  font-weight: 600;
  font-size: 0.875rem;
}
.field-value {
  font-weight: 400;
  color: inherit;
}
@media (max-width: 640px) {
  input,
  button,
  select {
    font-size: 16px;
    height: 44px;
  }
  .table-container {
    margin: 0 -16px;
  }
}
@media (max-width: 640px) {
  .flex.flex-wrap.gap-3 {
    gap: 0.25rem !important;
  }
}
@media (max-width: 640px) {
  .flex.flex-wrap.gap-3 {
    gap: 0.25rem !important;
  }
}
.offline-card {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.table-container {
  padding: 12px;
}
.table-container > .overflow-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dept-table {
  width: max-content;
  border-collapse: separate;
}
.dept-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid #eef2ff;
  font-size: 0.85rem;
  color: #475569;
  position: sticky;
  top: 0;
  z-index: 2;
}
.dept-table thead th {
  text-align: center;
  vertical-align: middle;
}
.dept-table thead th:first-child {
  text-align: left;
}
.dept-table thead th,
.dept-table td,
.dept-table tbody td {
  white-space: nowrap;
}
.dept-table tbody tr:nth-child(odd) {
  background: #ffffff;
}
.dept-table tbody tr:nth-child(even) {
  background: #fbfdff;
}
.dept-table td {
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #0f172a;
}
.dept-count {
  display: inline-block;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
}
@media (max-width: 640px) {
  .dept-table thead th {
    font-size: 0.75rem;
    padding: 8px 6px;
  }
  .dept-table td {
    padding: 6px 6px;
    font-size: 0.8rem;
  }
  .table-container {
    padding: 8px;
  }
}
