/* Shared component styles that are used across dashboard and application flows. */
.native-custom-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 74, 156, .14);
  border-radius: 15px;
  background: rgba(255, 255, 255, .84);
  color: var(--cpv-text);
  font: 650 .94rem var(--cpv-font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.custom-select-trigger:hover,
.custom-select.is-open .custom-select-trigger {
  border-color: rgba(8, 120, 184, .52);
  box-shadow: var(--cpv-focus-ring);
  background: #fff;
}

.custom-select.is-disabled .custom-select-trigger,
.custom-select-trigger:disabled {
  cursor: not-allowed;
  border-color: rgba(23, 74, 156, .1);
  background: rgba(247, 250, 253, .78);
  color: rgba(28, 43, 65, .62);
  box-shadow: none;
}

.custom-select.is-disabled .custom-select-trigger i,
.custom-select-trigger:disabled i {
  color: rgba(28, 43, 65, .42);
}

.custom-select-trigger i {
  color: var(--cpv-blue);
  transition: transform .2s ease;
}

.custom-select.is-open .custom-select-trigger i {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 8;
  display: grid;
  gap: 4px;
  max-height: 230px;
  padding: 7px;
  border: 1px solid rgba(23, 74, 156, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 38px rgba(23, 74, 156, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
  overflow: auto;
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cpv-blue);
  font-family: var(--cpv-font-heading);
  font-size: .88rem;
  font-weight: 740;
  text-align: left;
  cursor: pointer;
}

.custom-select-option:hover {
  background: rgba(234, 246, 255, .9);
}

.custom-select-option.is-active,
.custom-select-option[aria-selected="true"] {
  background: rgba(255, 194, 26, .22);
  color: var(--cpv-blue);
}

.cpv-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--cpv-radius-md);
}

.cpv-table-wrap .cpv-table {
  min-width: 720px;
}

.cpv-empty-state,
.application-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px dashed rgba(23, 74, 156, .18);
  border-radius: var(--cpv-radius-lg);
  background: rgba(248, 252, 255, .76);
  color: var(--cpv-text);
  text-align: center;
}

.cpv-empty-state i,
.application-empty i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 194, 26, .2);
  color: var(--cpv-blue);
  font-size: 1.35rem;
}

.cpv-empty-state h1,
.cpv-empty-state h2,
.cpv-empty-state h3,
.application-empty h1,
.application-empty h2,
.application-empty h3 {
  margin: 0;
  color: var(--cpv-blue);
  font-family: var(--cpv-font-heading);
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-weight: 800;
  line-height: 1.12;
}

.cpv-empty-state p,
.application-empty p {
  max-width: 58ch;
  margin: 0;
  color: var(--cpv-muted);
  line-height: 1.58;
}

.cpv-meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cpv-meta-item {
  display: grid;
  grid-template-columns: minmax(110px, .32fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--cpv-line);
  border-radius: var(--cpv-radius-sm);
  background: rgba(255, 255, 255, .72);
}

.cpv-meta-item dt {
  color: var(--cpv-muted);
  font-family: var(--cpv-font-heading);
  font-size: .78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.cpv-meta-item dd {
  margin: 0;
  color: var(--cpv-text);
  font-weight: 720;
}

.cpv-action-panel {
  display: grid;
  gap: 16px;
}

@media (max-width: 640px) {
  .cpv-meta-item {
    grid-template-columns: 1fr;
  }

  .cpv-table-wrap .cpv-table {
    min-width: 640px;
  }
}
