/*
=========================================================
 MK2030 REPORTS HUB
 File: assets/css/mk-reports-hub.css
 Version: 1.0.0

 Made with Love.
 Haiti at Heart.
 Built for the World.
=========================================================
*/

:root {
  --reports-bg: #07111f;
  --reports-bg-deep: #030914;
  --reports-surface: rgba(14, 31, 58, 0.95);
  --reports-surface-soft: rgba(23, 46, 79, 0.9);
  --reports-border: rgba(255, 255, 255, 0.1);
  --reports-border-strong: rgba(100, 255, 218, 0.26);

  --reports-text: #f7f9ff;
  --reports-muted: #9eafc9;

  --reports-mint: #64ffda;
  --reports-purple: #7f5af0;
  --reports-pink: #f0aaff;
  --reports-blue: #6ab7ff;
  --reports-gold: #ffd166;
  --reports-danger: #ff7b93;
  --reports-success: #4ce0a1;

  --reports-radius-sm: 12px;
  --reports-radius-md: 18px;
  --reports-radius-lg: 26px;
  --reports-radius-xl: 34px;

  --reports-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  --reports-transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;

  color: var(--reports-text);

  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;

  background:
    radial-gradient(
      circle at 10% 3%,
      rgba(127, 90, 240, 0.24),
      transparent 31%
    ),
    radial-gradient(
      circle at 90% 8%,
      rgba(100, 255, 218, 0.12),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #07111f 0%,
      #10183a 50%,
      #071729 100%
    );
}

body.reports-modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(100, 255, 218, 0.36);
  outline-offset: 3px;
}

::selection {
  color: #06111e;
  background: var(--reports-mint);
}

[hidden] {
  display: none !important;
}

.reports-header {
  position: sticky;
  top: 0;
  z-index: 100;

  min-height: 78px;
  padding: 13px 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  border-bottom: 1px solid var(--reports-border);

  background: rgba(3, 9, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.reports-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.reports-brand__mark {
  width: 50px;
  height: 50px;

  display: grid;
  place-items: center;

  border-radius: 16px;

  color: #06111e;
  font-weight: 1000;

  background:
    linear-gradient(
      135deg,
      var(--reports-purple),
      var(--reports-pink),
      var(--reports-mint)
    );

  box-shadow: 0 14px 34px rgba(100, 255, 218, 0.17);
}

.reports-brand__copy strong,
.reports-brand__copy small {
  display: block;
}

.reports-brand__copy strong {
  font-size: 1.02rem;
}

.reports-brand__copy small {
  margin-top: 3px;

  color: var(--reports-muted);

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.reports-navigation a {
  min-height: 39px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;

  border: 1px solid var(--reports-border);
  border-radius: 999px;

  color: var(--reports-muted);
  background: rgba(255, 255, 255, 0.04);

  font-size: 0.85rem;
  font-weight: 800;

  transition: var(--reports-transition);
}

.reports-navigation a:hover {
  transform: translateY(-2px);

  color: var(--reports-mint);
  border-color: rgba(100, 255, 218, 0.38);
  background: rgba(100, 255, 218, 0.07);
}

.reports-menu-button {
  display: none;

  min-height: 42px;
  padding: 0 15px;

  border: 1px solid var(--reports-border);
  border-radius: 13px;

  color: var(--reports-text);
  background: rgba(255, 255, 255, 0.055);

  font-weight: 900;
}

.reports-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 88px;

  display: grid;
  gap: 24px;
}

.reports-hero {
  position: relative;

  padding: clamp(32px, 5.5vw, 68px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 30px;

  overflow: hidden;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-xl);

  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(240, 170, 255, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 12% 88%,
      rgba(100, 255, 218, 0.08),
      transparent 35%
    ),
    linear-gradient(
      140deg,
      rgba(21, 30, 71, 0.98),
      rgba(7, 22, 44, 0.96)
    );

  box-shadow: var(--reports-shadow);
}

.reports-hero::after {
  content: "";

  position: absolute;
  right: -120px;
  bottom: -150px;

  width: 360px;
  height: 360px;

  border-radius: 50%;

  background: rgba(127, 90, 240, 0.08);
  filter: blur(15px);
  pointer-events: none;
}

.reports-hero__content,
.reports-command-card {
  position: relative;
  z-index: 1;
}

.reports-kicker {
  margin: 0 0 11px;

  color: var(--reports-mint);

  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.reports-hero h1 {
  max-width: 960px;
  margin: 0 0 20px;

  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.reports-hero h1 span {
  display: block;

  color: transparent;

  background:
    linear-gradient(
      90deg,
      var(--reports-text),
      var(--reports-pink),
      var(--reports-mint)
    );

  background-clip: text;
  -webkit-background-clip: text;
}

.reports-hero__description {
  max-width: 850px;
  margin: 0;

  color: var(--reports-muted);

  font-size: 1.04rem;
  line-height: 1.8;
}

.reports-hero__actions {
  margin-top: 26px;

  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.reports-button {
  min-height: 46px;
  padding: 0 18px;

  border-radius: 14px;

  font-weight: 1000;

  transition: var(--reports-transition);
}

.reports-button:hover {
  transform: translateY(-2px);
}

.reports-button--primary {
  color: #06111e;

  background:
    linear-gradient(
      90deg,
      var(--reports-purple),
      var(--reports-pink),
      var(--reports-mint)
    );

  box-shadow: 0 14px 34px rgba(127, 90, 240, 0.22);
}

.reports-button--secondary {
  border: 1px solid var(--reports-border);

  color: var(--reports-text);
  background: rgba(255, 255, 255, 0.055);
}

.reports-button--secondary:hover {
  color: var(--reports-mint);
  border-color: var(--reports-border-strong);
}

.reports-command-card {
  padding: 23px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-lg);

  background: rgba(255, 255, 255, 0.055);
}

.reports-command-card__status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reports-command-card__status strong,
.reports-command-card__status small {
  display: block;
}

.reports-command-card__status strong {
  color: var(--reports-mint);
  font-size: 1.3rem;
}

.reports-command-card__status small {
  margin-top: 3px;
  color: var(--reports-muted);
  line-height: 1.45;
}

.reports-status-dot {
  width: 13px;
  height: 13px;
  flex-shrink: 0;

  border-radius: 50%;

  background: var(--reports-success);

  box-shadow:
    0 0 0 7px rgba(76, 224, 161, 0.09),
    0 0 22px rgba(76, 224, 161, 0.5);

  animation: reportsPulse 2.4s ease-in-out infinite;
}

@keyframes reportsPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.88);
  }
}

.reports-command-card__metrics {
  margin: 24px 0 0;

  display: grid;
  gap: 12px;
}

.reports-command-card__metrics div {
  padding-top: 12px;

  display: flex;
  justify-content: space-between;
  gap: 14px;

  border-top: 1px solid var(--reports-border);
}

.reports-command-card__metrics dt {
  color: var(--reports-muted);
  font-weight: 800;
}

.reports-command-card__metrics dd {
  margin: 0;

  color: var(--reports-text);
  font-weight: 900;
  text-align: right;
}

.reports-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

.reports-stat-card {
  min-width: 0;
  padding: 21px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-lg);

  background: var(--reports-surface);

  box-shadow: var(--reports-shadow);

  transition: var(--reports-transition);
}

.reports-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 255, 218, 0.22);
}

.reports-stat-card span,
.reports-stat-card strong,
.reports-stat-card small {
  display: block;
}

.reports-stat-card span {
  color: var(--reports-muted);

  font-size: 0.84rem;
  font-weight: 900;
}

.reports-stat-card strong {
  margin-top: 8px;

  color: var(--reports-mint);
  font-size: 2rem;
}

.reports-stat-card small {
  margin-top: 4px;
  color: var(--reports-muted);
  font-size: 0.78rem;
}

.reports-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.reports-sidebar {
  position: sticky;
  top: 100px;

  display: grid;
  gap: 18px;
}

.reports-content {
  min-width: 0;

  display: grid;
  gap: 22px;
}

.reports-panel {
  min-width: 0;
  padding: 24px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(17, 37, 68, 0.97),
      rgba(8, 23, 47, 0.95)
    );

  box-shadow: var(--reports-shadow);
}

.reports-panel h2 {
  margin: 0;
}

.reports-panel__header {
  margin-bottom: 20px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.reports-panel__header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.reports-panel__header > span,
.reports-builder-status,
.reports-result-status {
  color: var(--reports-muted);

  font-size: 0.84rem;
  font-weight: 800;
}

.reports-type-list,
.reports-quick-actions {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.reports-type-list button,
.reports-quick-actions button {
  min-height: 44px;
  padding: 0 13px;

  display: flex;
  align-items: center;

  border: 1px solid transparent;
  border-radius: 13px;

  color: var(--reports-muted);
  background: transparent;

  font-weight: 900;
  text-align: left;

  transition: var(--reports-transition);
}

.reports-type-list button:hover,
.reports-type-list button.is-active,
.reports-quick-actions button:hover {
  color: var(--reports-mint);

  border-color: rgba(100, 255, 218, 0.2);
  background: rgba(100, 255, 218, 0.075);
}

.reports-source-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.reports-source-summary article {
  padding: 12px;

  border: 1px solid var(--reports-border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.045);
}

.reports-source-summary span,
.reports-source-summary strong {
  display: block;
}

.reports-source-summary span {
  color: var(--reports-muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.reports-source-summary strong {
  margin-top: 6px;
  color: var(--reports-mint);
  font-size: 1.2rem;
}

.reports-builder-form,
.reports-schedule-form {
  display: grid;
  gap: 18px;
}

.reports-form-grid,
.reports-custom-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reports-builder-form label,
.reports-schedule-form label,
.reports-notes-field {
  display: grid;
  gap: 8px;

  color: var(--reports-muted);
  font-weight: 900;
}

.reports-builder-form input,
.reports-builder-form select,
.reports-builder-form textarea,
.reports-schedule-form input,
.reports-schedule-form select {
  width: 100%;

  border: 1px solid var(--reports-border);
  border-radius: 14px;

  color: var(--reports-text);
  background: rgba(255, 255, 255, 0.065);
}

.reports-builder-form input,
.reports-builder-form select,
.reports-schedule-form input,
.reports-schedule-form select {
  min-height: 50px;
  padding: 0 13px;
}

.reports-builder-form textarea {
  min-height: 120px;
  padding: 13px;
  resize: vertical;
}

.reports-custom-dates {
  padding: 15px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-md);

  background: rgba(255, 255, 255, 0.035);
}

.reports-sections-fieldset {
  margin: 0;
  padding: 17px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-md);
}

.reports-sections-fieldset legend {
  padding: 0 8px;

  color: var(--reports-muted);
  font-weight: 900;
}

.reports-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reports-checkbox-grid label,
.reports-switch-row {
  padding: 13px;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;

  border: 1px solid var(--reports-border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.045);

  color: var(--reports-muted);
  font-weight: 800;
}

.reports-checkbox-grid input,
.reports-switch-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  accent-color: var(--reports-mint);
}

.reports-switch-row strong,
.reports-switch-row small {
  display: block;
}

.reports-switch-row small {
  margin-top: 4px;
  color: var(--reports-muted);
  font-weight: 500;
  line-height: 1.5;
}

.reports-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reports-preview {
  min-height: 360px;
}

.reports-preview-placeholder {
  min-height: 320px;

  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;

  border: 1px dashed rgba(100, 255, 218, 0.25);
  border-radius: var(--reports-radius-md);

  background: rgba(255, 255, 255, 0.03);

  text-align: center;
}

.reports-preview-placeholder > span {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 18px;

  color: #06111e;
  font-size: 1.5rem;
  font-weight: 1000;

  background:
    linear-gradient(
      135deg,
      var(--reports-purple),
      var(--reports-mint)
    );
}

.reports-preview-placeholder h3 {
  margin: 8px 0 0;
}

.reports-preview-placeholder p {
  max-width: 620px;
  margin: 0;

  color: var(--reports-muted);
  line-height: 1.65;
}

.reports-preview-document {
  display: grid;
  gap: 18px;
}

.reports-preview-header {
  padding: 20px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-md);

  background:
    radial-gradient(
      circle at top right,
      rgba(100, 255, 218, 0.08),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.045);
}

.reports-preview-header h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.reports-preview-header p {
  margin: 0;
  color: var(--reports-muted);
  line-height: 1.6;
}

.reports-preview-meta {
  margin-top: 14px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reports-preview-meta span {
  padding: 6px 9px;

  border-radius: 999px;

  color: var(--reports-muted);
  background: rgba(255, 255, 255, 0.06);

  font-size: 0.72rem;
  font-weight: 900;
}

.reports-preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reports-preview-kpis article {
  padding: 16px;

  border: 1px solid var(--reports-border);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.045);
}

.reports-preview-kpis span,
.reports-preview-kpis strong {
  display: block;
}

.reports-preview-kpis span {
  color: var(--reports-muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.reports-preview-kpis strong {
  margin-top: 7px;
  color: var(--reports-mint);
  font-size: 1.45rem;
}

.reports-preview-section {
  padding: 18px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-md);

  background: rgba(255, 255, 255, 0.035);
}

.reports-preview-section h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.reports-preview-section p,
.reports-preview-section li {
  color: var(--reports-muted);
  line-height: 1.65;
}

.reports-preview-section ul {
  margin: 0;
  padding-left: 20px;
}

.reports-preview-source-table {
  width: 100%;
  border-collapse: collapse;
}

.reports-preview-source-table th,
.reports-preview-source-table td {
  padding: 10px;
  border-bottom: 1px solid var(--reports-border);
  text-align: left;
}

.reports-preview-source-table th {
  color: var(--reports-mint);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.reports-preview-source-table td {
  color: var(--reports-muted);
}

.reports-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.reports-insight-list,
.reports-coverage-list {
  display: grid;
  gap: 11px;
}

.reports-insight-item,
.reports-coverage-item {
  padding: 15px;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;

  border: 1px solid var(--reports-border);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.045);
}

.reports-insight-item__mark,
.reports-coverage-item__mark {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: #06111e;
  font-weight: 1000;

  background:
    linear-gradient(
      135deg,
      var(--reports-purple),
      var(--reports-mint)
    );
}

.reports-insight-item strong,
.reports-coverage-item strong {
  display: block;
}

.reports-insight-item p,
.reports-coverage-item p {
  margin: 4px 0 0;
  color: var(--reports-muted);
  line-height: 1.55;
}

.reports-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reports-source-card {
  padding: 16px;

  border: 1px solid var(--reports-border);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.045);
}

.reports-source-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reports-source-card h3 {
  margin: 0;
  font-size: 1rem;
}

.reports-source-card p {
  margin: 10px 0 0;
  color: var(--reports-muted);
  line-height: 1.5;
}

.reports-source-card__meta {
  margin-top: 13px;

  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reports-source-card__meta span {
  padding: 5px 8px;

  border-radius: 999px;

  color: var(--reports-muted);
  background: rgba(255, 255, 255, 0.06);

  font-size: 0.7rem;
  font-weight: 900;
}

.reports-source-status,
.reports-report-status,
.reports-schedule-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 9px;

  border-radius: 999px;

  font-size: 0.68rem;
  font-weight: 1000;
  white-space: nowrap;
}

.reports-source-status--connected,
.reports-report-status--ready,
.reports-schedule-status--enabled {
  color: var(--reports-success);
  background: rgba(76, 224, 161, 0.12);
}

.reports-source-status--empty,
.reports-report-status--sample,
.reports-schedule-status--paused {
  color: var(--reports-gold);
  background: rgba(255, 209, 102, 0.12);
}

.reports-source-status--missing,
.reports-report-status--failed {
  color: var(--reports-danger);
  background: rgba(255, 123, 147, 0.12);
}

.reports-table-wrapper {
  width: 100%;
  overflow-x: auto;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-md);
}

.reports-table {
  width: 100%;
  min-width: 1080px;

  border-collapse: collapse;
}

.reports-table th,
.reports-table td {
  padding: 14px;

  border-bottom: 1px solid var(--reports-border);

  text-align: left;
  vertical-align: top;
}

.reports-table th {
  color: var(--reports-mint);
  background: #10243f;

  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.reports-table td {
  color: var(--reports-muted);
  font-size: 0.86rem;
}

.reports-table tr:last-child td {
  border-bottom: 0;
}

.reports-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.reports-table strong {
  color: var(--reports-text);
}

.reports-table button {
  min-height: 34px;
  padding: 0 10px;

  border: 1px solid var(--reports-border);
  border-radius: 10px;

  color: var(--reports-text);
  background: rgba(255, 255, 255, 0.055);

  font-size: 0.74rem;
  font-weight: 900;

  transition: var(--reports-transition);
}

.reports-table button:hover {
  color: var(--reports-mint);
  border-color: var(--reports-border-strong);
}

.reports-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reports-empty-state {
  padding: 40px 20px;
  text-align: center;
}

.reports-empty-state h3 {
  margin: 0;
}

.reports-empty-state p {
  color: var(--reports-muted);
}

.reports-schedule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reports-schedule-card {
  padding: 18px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-md);

  background:
    radial-gradient(
      circle at top right,
      rgba(100, 255, 218, 0.08),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.045);
}

.reports-schedule-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reports-schedule-card h3 {
  margin: 0;
}

.reports-schedule-card p {
  color: var(--reports-muted);
  line-height: 1.55;
}

.reports-schedule-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.reports-schedule-card__meta article {
  padding: 11px;

  border: 1px solid var(--reports-border);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.035);
}

.reports-schedule-card__meta span,
.reports-schedule-card__meta strong {
  display: block;
}

.reports-schedule-card__meta span {
  color: var(--reports-muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.reports-schedule-card__meta strong {
  margin-top: 5px;
  font-size: 0.86rem;
}

.reports-schedule-card__actions {
  margin-top: 14px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reports-schedule-card__actions button {
  min-height: 36px;
  padding: 0 11px;

  border: 1px solid var(--reports-border);
  border-radius: 10px;

  color: var(--reports-text);
  background: rgba(255, 255, 255, 0.055);

  font-size: 0.76rem;
  font-weight: 900;
}

.reports-closing {
  padding: clamp(34px, 5vw, 66px);

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-xl);

  background:
    radial-gradient(
      circle at top center,
      rgba(100, 255, 218, 0.1),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(127, 90, 240, 0.1),
      transparent 35%
    ),
    var(--reports-surface);

  text-align: center;

  box-shadow: var(--reports-shadow);
}

.reports-closing h2 {
  margin: 0 0 13px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.reports-closing > p:not(.reports-kicker) {
  max-width: 790px;
  margin: 0 auto 23px;

  color: var(--reports-muted);
  line-height: 1.78;
}

.reports-modal[hidden] {
  display: none;
}

.reports-modal {
  position: fixed;
  inset: 0;
  z-index: 300;

  padding: 22px;

  display: grid;
  place-items: center;
}

.reports-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(1, 6, 17, 0.84);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reports-modal__panel {
  position: relative;
  z-index: 1;

  width: min(780px, 100%);
  max-height: 90vh;
  overflow-y: auto;

  padding: 30px;

  border: 1px solid var(--reports-border);
  border-radius: var(--reports-radius-lg);

  background:
    radial-gradient(
      circle at top right,
      rgba(127, 90, 240, 0.08),
      transparent 30%
    ),
    #10243f;

  box-shadow: var(--reports-shadow);
}

.reports-modal__panel--wide {
  width: min(1080px, 100%);
}

.reports-modal__close {
  position: absolute;
  top: 13px;
  right: 13px;

  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid var(--reports-border);
  border-radius: 50%;

  color: var(--reports-text);
  background: rgba(255, 255, 255, 0.07);

  font-size: 1.45rem;
}

.reports-modal__actions {
  margin-top: 20px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reports-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reports-detail-grid article {
  padding: 14px;

  border: 1px solid var(--reports-border);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.045);
}

.reports-detail-grid span,
.reports-detail-grid strong {
  display: block;
}

.reports-detail-grid span {
  color: var(--reports-muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.reports-detail-grid strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.reports-detail-block {
  margin-top: 16px;
  padding: 17px;

  border: 1px solid var(--reports-border);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.045);
}

.reports-detail-block p,
.reports-detail-block li {
  color: var(--reports-muted);
  line-height: 1.7;
}

.reports-toast {
  position: fixed;
  right: 23px;
  bottom: 23px;
  z-index: 400;

  max-width: min(420px, calc(100% - 46px));

  padding: 16px 19px;

  border: 1px solid var(--reports-border);
  border-radius: 15px;

  color: var(--reports-text);
  background: #132c4c;

  box-shadow: var(--reports-shadow);

  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;

  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.reports-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reports-toast[data-type="success"] {
  border-color: rgba(76, 224, 161, 0.4);
}

.reports-toast[data-type="warning"] {
  border-color: rgba(255, 209, 102, 0.42);
}

.reports-toast[data-type="error"] {
  border-color: rgba(255, 123, 147, 0.42);
}

@media (max-width: 1320px) {
  .reports-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reports-preview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .reports-hero,
  .reports-layout {
    grid-template-columns: 1fr;
  }

  .reports-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reports-command-card {
    max-width: 680px;
  }
}

@media (max-width: 980px) {
  .reports-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .reports-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .reports-navigation {
    width: 100%;
    display: none;
    justify-content: flex-start;
  }

  .reports-navigation.is-open {
    display: flex;
  }

  .reports-sidebar,
  .reports-intelligence-grid,
  .reports-source-grid,
  .reports-schedule-list {
    grid-template-columns: 1fr;
  }

  .reports-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .reports-panel__header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .reports-stat-grid,
  .reports-form-grid,
  .reports-custom-dates,
  .reports-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-preview-kpis,
  .reports-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .reports-shell {
    width: min(100% - 20px, 1500px);
  }

  .reports-header {
    padding: 12px;
  }

  .reports-navigation a {
    flex: 1 1 calc(50% - 9px);
    justify-content: center;
  }

  .reports-stat-grid,
  .reports-form-grid,
  .reports-custom-dates,
  .reports-detail-grid {
    grid-template-columns: 1fr;
  }

  .reports-hero,
  .reports-panel,
  .reports-modal__panel {
    padding: 21px;
  }

  .reports-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .reports-hero__actions,
  .reports-builder-actions,
  .reports-modal__actions,
  .reports-panel__header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reports-hero__actions .reports-button,
  .reports-builder-actions .reports-button,
  .reports-modal__actions .reports-button,
  .reports-panel__header-actions .reports-button {
    width: 100%;
  }

  .reports-source-summary,
  .reports-schedule-card__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .reports-navigation a {
    flex-basis: 100%;
  }

  .reports-command-card__metrics div {
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-command-card__metrics dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: #111111;
    background: #ffffff;
  }

  .reports-header,
  .reports-sidebar,
  .reports-hero__actions,
  .reports-panel__header-actions,
  .reports-builder-form,
  .reports-intelligence-grid,
  .reports-source-grid,
  .reports-closing,
  .reports-toast,
  .reports-modal {
    display: none !important;
  }

  .reports-shell,
  .reports-layout,
  .reports-content {
    width: 100%;
    display: block;
  }

  .reports-hero,
  .reports-panel,
  .reports-stat-card,
  .reports-preview-header,
  .reports-preview-section,
  .reports-preview-kpis article {
    margin-bottom: 16px;

    color: #111111;
    background: #ffffff;

    border: 1px solid #cccccc;
    box-shadow: none;
  }

  .reports-hero h1,
  .reports-hero h1 span,
  .reports-panel h2,
  .reports-preview-header h3,
  .reports-table strong {
    color: #111111;
    background: none;
    -webkit-text-fill-color: initial;
  }

  .reports-table th,
  .reports-table td,
  .reports-preview-source-table th,
  .reports-preview-source-table td {
    color: #111111;
    background: #ffffff;
    border-color: #cccccc;
  }
}
