/* Shared Apple-like tables (portal-wide) */
.table-wrap-apple{
  border-radius: 16px;
  overflow: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.22);
  background-clip: padding-box;
  /* Keep scrollbar visuals clipped inside rounded corners */
  clip-path: inset(0 round 16px);
}

/* Force horizontal scrollbar visibility when needed */
.table-wrap-apple.force-scroll-x{
  overflow-x: scroll;
}

/* JSON panes on IOC detail pages */
.json-pre{
  max-width: 100%;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}
.json-pre::-webkit-scrollbar{ height: 10px; width: 10px; }
.json-pre::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
.json-pre::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.table-wrap-apple::-webkit-scrollbar{ height: 10px; width: 10px; }
.table-wrap-apple::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
.table-wrap-apple::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}
.table-wrap-apple::-webkit-scrollbar-corner{
  background: transparent;
}

.table-darkish {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
  border: 1px solid rgba(255,255,255,.06);
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

.table-darkish thead th {
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #eaeaea;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 12px 14px !important;
  background: rgba(255,255,255,.015);
  vertical-align: middle;
}

.table-darkish td, .table-darkish th { border-color: rgba(255,255,255,.06); }
.table-darkish tbody td {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 11px 14px !important;
  vertical-align: middle;
}

.table-darkish tbody tr:first-child td { border-top-color: rgba(255,255,255,.08); }
.table-darkish tbody tr:nth-child(even) td{ background: rgba(255,255,255,.012); }

.row-hover tbody tr:hover { background: rgba(255,255,255,.05); cursor: pointer; }

.table-wrap-apple .table-darkish thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(6px);
  background: rgba(30,30,30,.92);
  background-clip: padding-box;
}
.table-wrap-apple .table-darkish thead th:first-child{
  border-top-left-radius: 14px;
}
.table-wrap-apple .table-darkish thead th:last-child{
  border-top-right-radius: 14px;
}

/* Avoid dark corner artifacts in rounded table containers */
.table-wrap-apple .table-darkish{
  border: 0;
  background: transparent;
}
.table-wrap-apple .table-darkish tbody tr:last-child td:first-child{
  border-bottom-left-radius: 14px;
  background-clip: padding-box;
}
.table-wrap-apple .table-darkish tbody tr:last-child td:last-child{
  border-bottom-right-radius: 14px;
  background-clip: padding-box;
}

/* Unified selects for period/limit controls */
.period-select{
  width: auto;
  background: rgba(255,255,255,.06);
  color: #f4f4f4;
  border: 1px solid rgba(255,255,255,.08);
}
.period-select option{
  color: #111 !important;
  background: #fff !important;
}
