/* accountants.vebtechno.com — demo-specific styles */

.demo-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
  flex-wrap: wrap;
}
.demo-head__title { font-weight: 600; font-size: 0.95rem; }
.demo-head__badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--forest-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.demo-body { padding: 22px; }

.dropzone {
  border: 1.5px dashed #cbbfa9;
  border-radius: var(--radius-sm);
  background: #fdfbf5;
  padding: 38px 24px;
  text-align: center;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  cursor: pointer;
}
.dropzone:hover,
.dropzone.is-over { border-color: var(--accent); background: #fdf4ee; }
.dropzone svg { margin: 0 auto 14px; color: var(--accent); }
.dropzone strong { display: block; font-size: 1rem; margin-bottom: 5px; }
.dropzone span { font-size: 0.88rem; color: var(--ink-50); }
.dropzone input { display: none; }

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.demo-status {
  font-size: 0.85rem;
  color: var(--ink-50);
  min-height: 1.3em;
}
.demo-status.is-error { color: #b42318; }
.demo-status.is-busy { color: var(--accent-ink); }

.results { margin-top: 4px; }
.results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
@media (max-width: 640px) { .results__grid { grid-template-columns: 1fr; } }

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
}
.result-row:last-child { border-bottom: 0; }
.result-row dt { color: var(--ink-50); margin: 0; }
.result-row dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.result-row dd.is-missing { color: #b42318; font-weight: 500; }
.result-row dd.is-total { color: var(--forest); font-size: 1.05rem; }

.results__section-title {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 26px 0 6px;
}
.results__section-title:first-child { margin-top: 0; }

.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 8px;
}
.items-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 700;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
}
.items-table td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.items-table td:last-child, .items-table th:last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.raw-text {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbf9f3;
}
.raw-text summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-70);
  list-style: none;
}
.raw-text summary::-webkit-details-marker { display: none; }
.raw-text pre {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 0.76rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-70);
  max-height: 320px;
  overflow: auto;
}

.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--ink-50);
  margin-top: 16px;
}
.privacy-note svg { flex: 0 0 16px; margin-top: 2px; color: var(--forest); }

.loading-bar {
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
  margin-top: 14px;
}
.loading-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent);
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.mini-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
}
.mini-nav a { color: var(--ink-70); text-decoration: none; }
.mini-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .mini-nav { display: none; } }
