:root {
  --ivqa-ink: #0f313a;
  --ivqa-ink-2: rgba(15, 49, 58, 0.78);
  --ivqa-border: rgba(15, 49, 58, 0.12);
  --ivqa-soft: rgba(13, 110, 253, 0.06);
}

/* Documents toolbar */
.ivqa-docs-toolbar.card {
  border: 1px solid var(--ivqa-border);
  border-radius: 14px;
}

.ivqa-docs-toolbar .form-floating > .form-control {
  padding-left: 46px;
}

.ivqa-docs-toolbar .form-control,
.ivqa-docs-toolbar .btn {
  height: 44px;
}

.ivqa-docs-toolbar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ivqa-docs-toolbar .form-floating > label {
  padding-left: 46px;
}

.ivqa-docs-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  color: rgba(15, 49, 58, 0.55);
  pointer-events: none;
}

.ivqa-docs-actions .btn {
  border-radius: 10px;
  font-weight: 700;
}

.ivqa-btn-primary {
  border: 0;
  background: linear-gradient(135deg, rgba(11, 86, 100, 1), rgba(13, 110, 253, 1));
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.22);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.ivqa-btn-primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.ivqa-btn-primary:active {
  transform: translateY(0);
}

/* Table */
.ivqa-docs-table.card {
  border: 1px solid var(--ivqa-border);
  border-radius: 14px;
}

.ivqa-docs-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.ivqa-docs-empty {
  max-width: 900px;
  margin: 0 auto;

  /* Home-page button palette (scoped) */
  --tv-theme-1: #0052cc;
  --tv-common-white: #ffffff;
}

.ivqa-docs-empty .ivqa-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ivqa-soft);
  color: rgba(13, 110, 253, 0.95);
}

.ivqa-docs-empty h5 {
  color: var(--ivqa-ink);
  font-weight: 700;
  font-size: 24px;
}

.ivqa-docs-empty p {
  color: var(--ivqa-ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* “Bring from home page”: same shape/energy, but stable markup for portal */
.ivqa-docs-empty .ivqa-home-btn {
  padding: 10px 26px;
  min-height: 44px;
  border-radius: 18px 0 18px 0;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.ivqa-docs-empty .ivqa-home-btn i {
  flex: 0 0 auto;
}

.ivqa-docs-empty .ivqa-home-btn span {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-block;
  white-space: nowrap;
}

/* Responsive sizing: mobile full-width, desktop auto */
.ivqa-docs-empty-actions {
  justify-content: center;
}

.ivqa-docs-empty-actions .ivqa-home-btn {
  width: 100%;
}

@media (min-width: 576px) {
  .ivqa-docs-empty-actions .ivqa-home-btn {
    width: auto;
  }
  .ivqa-docs-empty-actions {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .ivqa-docs-empty-actions .ivqa-home-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

.ivqa-docs-empty .ivqa-home-btn-primary {
  background: linear-gradient(135deg, var(--primary, #1f6feb), #0ea5e9);
  border: 1px solid rgba(31, 111, 235, 0.35);
  color: var(--tv-common-white);
  box-shadow: 0 12px 26px rgba(0, 82, 204, 0.18);
}

.ivqa-docs-empty .ivqa-home-btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(0, 82, 204, 0.35);
  color: rgba(15, 49, 58, 0.92);
}

.ivqa-docs-empty .ivqa-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 82, 204, 0.20);
}

.ivqa-docs-empty .ivqa-home-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0, 82, 204, 0.16);
}

.ivqa-docs-empty .ivqa-home-btn:focus-visible {
  outline: 3px solid rgba(0, 82, 204, 0.25);
  outline-offset: 2px;
}

.ivqa-docs-empty .ivqa-home-btn i {
  font-size: 16px;
}
