/* Vristo page compositions translated to the Tailwind 4 + daisyUI 5 portal. */
html[data-portal-ui="vristo"] {
  --vristo-page-muted: #888ea8;
  --vristo-page-line: #e0e6ed;
  --vristo-page-soft: #f6f7f9;
}

/* Faithful Tailwind 4 ports of Vristo users-profile/account-settings.
 * The purchased templates set heading sizes with utilities; this selector
 * keeps those utilities authoritative over the generic portal heading bridge. */
html[data-portal-ui="vristo"] #portal-main-container
  :where(.vristo-profile-page, .vristo-account-settings-page)
  :where(h1, h2, h3, h4, h5, h6).text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

html[data-portal-ui="vristo"] #portal-main-container
  :where(.vristo-profile-page, .vristo-account-settings-page)
  :where(.rounded.border, form.rounded-md.border, section.rounded-md.border) {
  border-color: var(--vristo-page-line);
}

html[data-portal-ui="vristo"] #portal-main-container
  .vristo-account-settings-page :where(form.rounded-md, section.rounded-md) {
  background: var(--vristo-panel);
  color: var(--vristo-ink);
}

html[data-portal-ui="vristo"] #portal-main-container
  .vristo-account-settings-page h3.font-semibold {
  font-size: 1rem;
  line-height: 1.5rem;
}

html[data-portal-ui="vristo"] #portal-main-container
  .vristo-account-settings-page .btn-ghost {
  color: var(--vristo-ink);
}

html[data-portal-ui="vristo"] #portal-main-container
  .vristo-account-settings-page > .pt-5 > nav {
  scrollbar-width: none;
}

html[data-portal-ui="vristo"] #portal-main-container
  .vristo-account-settings-page > .pt-5 > nav::-webkit-scrollbar {
  display: none;
}

html[data-portal-ui="vristo"] #portal-main-container
  :where(.vristo-profile-page, .vristo-account-settings-page) .border-base-300 {
  border-color: var(--vristo-page-line);
}

html[data-portal-ui="vristo"] #portal-main-container
  :where(.vristo-profile-page, .vristo-account-settings-page) .bg-base-300 {
  background: var(--vristo-page-line);
}

html[data-portal-ui="vristo"] #portal-main-container
  .vristo-profile-page .divide-y > :not(:last-child) {
  border-color: var(--vristo-page-line);
}

html[data-portal-ui="vristo"] #portal-main-container
  .vristo-profile-page .table-responsive {
  color: var(--vristo-subtle);
}

html[data-portal-ui="vristo"] #portal-main-container .vristo-profile-page .table-responsive {
  overflow-x: auto;
}

html[data-portal-ui="vristo"] #portal-main-container .vristo-profile-page .table-responsive > table {
  min-width: 40rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-panel {
  border: 0;
  border-radius: 0.375rem;
  background: var(--vristo-panel);
  box-shadow: var(--vristo-panel-shadow);
}

html[data-portal-ui="vristo"] #portal-main-container .v-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-panel-head + .v-panel-body,
html[data-portal-ui="vristo"] #portal-main-container .v-panel-head + .v-table-wrap {
  border-top: 1px solid var(--vristo-page-line);
}

html[data-portal-ui="vristo"] #portal-main-container .v-panel-body {
  padding: 1.25rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-panel-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

html[data-portal-ui="vristo"] #portal-main-container .v-panel-subtitle {
  margin-top: 0.25rem;
  color: var(--vristo-page-muted);
  font-size: 0.8125rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-settings-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.375rem;
  border-radius: 0.375rem;
  background: var(--vristo-panel);
  box-shadow: var(--vristo-panel-shadow);
  scrollbar-width: none;
}

html[data-portal-ui="vristo"] #portal-main-container .v-settings-nav::-webkit-scrollbar { display: none; }

html[data-portal-ui="vristo"] #portal-main-container .v-settings-nav a {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.375rem;
  padding: 0.625rem 0.875rem;
  color: var(--vristo-page-muted);
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

html[data-portal-ui="vristo"] #portal-main-container .v-settings-nav a:hover,
html[data-portal-ui="vristo"] #portal-main-container .v-settings-nav a[aria-current="page"] {
  background: rgb(67 97 238 / 0.1);
  color: var(--vristo-primary);
}

html[data-portal-ui="vristo"] #portal-main-container .v-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-profile-mark {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #4361ee, #805dca);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgb(67 97 238 / 0.22);
}

html[data-portal-ui="vristo"] #portal-main-container .v-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--vristo-page-line);
  border-radius: 0.375rem;
  overflow: hidden;
}

html[data-portal-ui="vristo"] #portal-main-container .v-info-cell {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--vristo-page-line);
  border-bottom: 1px solid var(--vristo-page-line);
}

html[data-portal-ui="vristo"] #portal-main-container .v-info-cell:nth-child(2n) { border-right: 0; }
html[data-portal-ui="vristo"] #portal-main-container .v-info-cell:nth-last-child(-n + 2) { border-bottom: 0; }

html[data-portal-ui="vristo"] #portal-main-container .v-info-label {
  color: var(--vristo-page-muted);
  font-size: 0.75rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-info-value {
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
  font-weight: 600;
}

html[data-portal-ui="vristo"] #portal-main-container .v-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--vristo-page-line);
  border-radius: 0.375rem;
  overflow: hidden;
}

html[data-portal-ui="vristo"] #portal-main-container .v-stat {
  padding: 1rem;
  border-right: 1px solid var(--vristo-page-line);
}

html[data-portal-ui="vristo"] #portal-main-container .v-stat:last-child { border-right: 0; }
html[data-portal-ui="vristo"] #portal-main-container .v-stat strong { display: block; margin-top: 0.25rem; font-size: 1.5rem; }
html[data-portal-ui="vristo"] #portal-main-container .v-stat span { color: var(--vristo-page-muted); font-size: 0.75rem; }

html[data-portal-ui="vristo"] #portal-main-container .v-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-service-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--vristo-page-line);
  border-radius: 0.375rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html[data-portal-ui="vristo"] #portal-main-container .v-service-card:hover {
  border-color: rgb(67 97 238 / 0.42);
  box-shadow: 0 10px 20px -12px rgb(67 97 238 / 0.32);
  transform: translateY(-1px);
}

html[data-portal-ui="vristo"] #portal-main-container .v-service-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.375rem;
  background: rgb(67 97 238 / 0.1);
  color: var(--vristo-primary);
}

html[data-portal-ui="vristo"] #portal-main-container .v-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.375rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-field-wide { grid-column: 1 / -1; }
html[data-portal-ui="vristo"] #portal-main-container .v-field-wide.border-t { border-color: var(--vristo-page-line); }
html[data-portal-ui="vristo"] #portal-main-container [data-pw-bar].bg-base-300 { background: var(--vristo-page-line); }

html[data-portal-ui="vristo"] #portal-main-container .v-table-wrap { overflow-x: auto; }
html[data-portal-ui="vristo"] #portal-main-container .v-table-wrap .table { min-width: 720px; }
html[data-portal-ui="vristo"] #portal-main-container .v-table-wrap .table :where(th, td) { padding: 0.75rem 1rem; }
html[data-portal-ui="vristo"] #portal-main-container .v-table-wrap .table tbody tr:hover { background: rgb(67 97 238 / 0.035); }

html[data-portal-ui="vristo"] #portal-main-container .v-empty {
  display: grid;
  min-height: 16rem;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

html[data-portal-ui="vristo"] #portal-main-container .v-empty-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  place-items: center;
  border-radius: 9999px;
  background: rgb(67 97 238 / 0.1);
  color: var(--vristo-primary);
  font-size: 1.25rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html[data-portal-ui="vristo"] #portal-main-container .v-message {
  max-width: min(86%, 48rem);
  padding: 0.875rem 1rem;
  border-radius: 0.375rem;
  background: var(--vristo-page-soft);
}

html[data-portal-ui="vristo"] #portal-main-container .v-message.is-support {
  margin-left: auto;
  background: rgb(67 97 238 / 0.09);
}

html[data-portal-ui="vristo"] #portal-main-container :where(.portal-licenses-page, .portal-license-detail-page) .portal-license-hero,
html[data-portal-ui="vristo"] #portal-main-container .portal-license-detail-page .portal-license-detail-hero {
  border: 0;
  border-radius: 0.375rem;
  box-shadow: var(--vristo-panel-shadow);
}

html[data-portal-ui="vristo"] #portal-main-container :where(.portal-licenses-page, .portal-license-detail-page) :where(.portal-license-hero, .portal-license-detail-hero) > .card-body {
  gap: 1rem;
  padding: 1.25rem;
}

html[data-portal-ui="vristo"] #portal-main-container :where(.portal-licenses-page, .portal-license-detail-page) :where(.portal-license-hero, .portal-license-detail-hero) h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

html[data-portal-ui="vristo"] #portal-main-container :where(.portal-license-hero-icon, .portal-license-key-mark) {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  background: rgb(67 97 238 / 0.1);
  color: var(--vristo-primary);
}

html[data-portal-ui="vristo"] #portal-main-container :where(.portal-license-stat, .portal-license-card) {
  border-color: transparent;
  border-radius: 0.375rem;
  background: var(--vristo-panel);
  box-shadow: var(--vristo-panel-shadow);
}

html[data-portal-ui="vristo"] #portal-main-container .portal-license-stat {
  padding: 1rem;
}

html[data-portal-ui="vristo"] #portal-main-container .portal-license-card > .card-body {
  gap: 1rem;
  padding: 1.25rem;
}

html[data-portal-ui="vristo"] #portal-main-container .portal-license-card :where(.rounded-2xl, .rounded-xl) {
  border-radius: 0.375rem;
}

html[data-portal-ui="vristo"][data-theme="graphite"] {
  --vristo-page-line: #17263c;
  --vristo-page-soft: #121e32;
}

@media (min-width: 1024px) {
  html[data-portal-ui="vristo"] #portal-main-container .v-settings-grid {
    grid-template-columns: 13rem minmax(0, 1fr);
    align-items: start;
  }

  html[data-portal-ui="vristo"] #portal-main-container .v-settings-nav {
    position: sticky;
    top: 6rem;
    flex-direction: column;
    overflow: visible;
  }
}

@media (max-width: 767px) {
  html[data-portal-ui="vristo"] #portal-main-container :where(.v-info-grid, .v-stat-grid, .v-service-grid, .v-form-grid) {
    grid-template-columns: 1fr;
  }

  html[data-portal-ui="vristo"] #portal-main-container .v-info-cell,
  html[data-portal-ui="vristo"] #portal-main-container .v-info-cell:nth-child(2n),
  html[data-portal-ui="vristo"] #portal-main-container .v-stat {
    border-right: 0;
    border-bottom: 1px solid var(--vristo-page-line);
  }

  html[data-portal-ui="vristo"] #portal-main-container .v-info-cell:last-child,
  html[data-portal-ui="vristo"] #portal-main-container .v-stat:last-child { border-bottom: 0; }

  html[data-portal-ui="vristo"] #portal-main-container .v-field-wide { grid-column: auto; }
}
