/* Unified Apple-like visual layer for all portal pages */

.tile {
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.012)),
    rgba(34,34,34,.78);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05);
}
.tile:hover {
  box-shadow: 0 14px 34px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}
.tile .tile-head {
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.015);
}

.btn-outline-light {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  color: #f4f4f4 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(120,169,255,.48);
  color: #ffffff !important;
}
.btn-outline-light:focus,
.btn-outline-light:active {
  color: #ffffff !important;
}
.btn-outline-light.active,
.btn-outline-light:not(:disabled):not(.disabled):active,
.show > .btn-outline-light.dropdown-toggle {
  color: #111 !important;
  background: #dce9ff !important;
  border-color: rgba(120,169,255,.85) !important;
  text-shadow: none;
}

/* Группа кнопок периода — один вытянутый блок (сегментированный вид) */
.btn-group.spark-range,
.spark-range {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.08);
}
.spark-range .btn {
  border-radius: 0 !important;
  margin-left: -1px;
  min-width: 92px;
  font-weight: 600;
  letter-spacing: .05em;
}
.spark-range .btn:first-child {
  border-radius: 10px 0 0 10px !important;
  margin-left: 0;
}
.spark-range .btn:last-child {
  border-radius: 0 10px 10px 0 !important;
}

/* Единый вид выпадающих списков периода: фон и рамка; стрелка — нативная (как на Портале) */
.period-select,
select.top-period,
#filterType,
#expType,
#expSort,
#expLimit {
  background: rgba(255,255,255,.08) !important;
  color: #f4f4f4 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.period-select:focus,
select.top-period:focus,
#filterType:focus,
#expType:focus,
#expSort:focus,
#expLimit:focus {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(120,169,255,.56) !important;
  box-shadow: 0 0 0 .2rem rgba(120,169,255,.16) !important;
}

select.period-select option,
select.top-period option,
#filterType option,
#expType option,
#expSort option,
#expLimit option {
  color: #111 !important;
  background: #fff !important;
}

#bulkInput {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.14) rgba(255,255,255,.06);
}
#bulkInput::-webkit-scrollbar { width: 10px; }
#bulkInput::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
#bulkInput::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

.jqvmap-zoomin,
.jqvmap-zoomout {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(20,20,20,.68);
  color: #f4f4f4;
  font-weight: 700;
  font-size: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.jqvmap-zoomin:hover,
.jqvmap-zoomout:hover {
  transform: translateY(-1px);
  background: rgba(34,34,34,.78);
  border-color: rgba(120,169,255,.52);
}
.jqvmap-zoomin:focus,
.jqvmap-zoomout:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(120,169,255,.22), 0 8px 22px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
}

/* Ensure horizontal scrolls inside rounded cards stay clipped */
.tile .table-responsive {
  border-radius: 14px;
  overflow: auto;
  background: rgba(255,255,255,.02);
  clip-path: inset(0 round 14px);
}
.tile .table-responsive::-webkit-scrollbar { width: 10px; height: 10px; }
.tile .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
.tile .table-responsive::-webkit-scrollbar-track {
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}
.tile .table-responsive::-webkit-scrollbar-corner {
  background: transparent;
}
