/* Réplica estática de Neith para la página pública. No es la aplicación en vivo. */

.neith-demo {
  font-family: Roboto, "Helvetica Neue", system-ui, sans-serif;
  font-size: 14px;
  color: #1e293b;
  background: #f4f6fb;
  box-sizing: border-box;
}

.neith-demo *,
.neith-demo *::before,
.neith-demo *::after {
  box-sizing: border-box;
}

.neith-product-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0 0 1.25rem;
  background: #fff;
}

.neith-product-frame-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #e8eaed;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

.neith-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dadce0;
}

.neith-dot:nth-child(1) { background: #ff5f57; }
.neith-dot:nth-child(2) { background: #febc2e; }
.neith-dot:nth-child(3) { background: #28c840; }

.neith-frame-url {
  margin-left: 8px;
  font-family: ui-monospace, monospace;
}

.neith-shell {
  display: flex;
  min-height: 34rem;
  background: #f4f6fb;
}

.neith-sidenav {
  width: 232px;
  flex: 0 0 232px;
  background: #fff;
  border-right: 1px solid #dbe4ee;
  display: flex;
  flex-direction: column;
}

.neith-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 72px;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  padding: 0 12px;
  background: #3f51b5;
  color: #fff;
  text-decoration: none;
}

.neith-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.neith-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.neith-brand-name {
  font-size: 1rem;
  font-weight: 600;
}

.neith-brand-tagline {
  font-size: 0.68rem;
  opacity: 0.92;
}

.neith-brand-orvics {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.neith-nav {
  padding: 8px 0 16px;
}

.neith-nav-section {
  margin: 10px 8px 4px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.neith-nav-section--bodega {
  color: #c2410c;
  background: rgba(194, 65, 12, 0.1);
}

.neith-nav-section--comercial {
  color: #00695c;
  background: rgba(0, 105, 92, 0.1);
}

.neith-nav a {
  display: block;
  margin: 2px 8px;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.neith-nav a:hover {
  background: rgba(63, 81, 181, 0.08);
}

.neith-nav a:focus-visible {
  outline: 2px solid #3f51b5;
  outline-offset: 2px;
}

.neith-nav a.active {
  background: rgba(63, 81, 181, 0.14);
  color: #283593;
  font-weight: 600;
  border-left-color: #3f51b5;
}

.neith-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.neith-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 72px;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  padding: 0 12px;
  background: #3f51b5;
  color: #fff;
}

.neith-toolbar .material-icons {
  font-size: 22px;
}

.neith-content {
  padding: 20px 20px 28px;
}

.neith-content h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0f172a;
}

.neith-lead {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.9rem;
}

.neith-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.neith-period {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.85rem;
}

.neith-period.is-current {
  border-color: #3f51b5;
  color: #283593;
  box-shadow: inset 0 0 0 1px #3f51b5;
}

.neith-range {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.85rem;
}

.neith-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.neith-kpi {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.neith-kpi-label,
.neith-kpi-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
}

.neith-kpi-value {
  margin: 4px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.neith-group-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.neith-report {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.neith-report strong {
  display: block;
  font-weight: 600;
}

.neith-report span {
  color: #64748b;
  font-size: 0.8rem;
}

.neith-invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.neith-invoice-head h2 {
  margin-bottom: 8px;
}

.neith-section-title {
  margin: 16px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.neith-dian-state {
  margin: 0 0 8px;
}

.neith-cufe {
  margin: 0 0 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #475569;
  word-break: break-all;
}

.neith-qr {
  margin: 0 0 10px;
}

.neith-link {
  color: #3f51b5;
  font-size: 0.85rem;
  font-weight: 600;
}

.neith-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.neith-btn {
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.neith-btn:hover {
  background: #f8fafc;
}

.neith-btn:focus-visible {
  outline: 2px solid #3f51b5;
  outline-offset: 2px;
}

.neith-btn--primary {
  border-color: #3f51b5;
  background: #3f51b5;
  color: #fff;
  font-weight: 600;
}

.neith-btn--primary:hover:not(:disabled) {
  background: #303f9f;
}

.neith-btn:disabled {
  border-color: #e2e8f0;
  background: #e2e8f0;
  color: #94a3b8;
  cursor: default;
}

.neith-nc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.neith-nc li {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.neith-nc label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.neith-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e7f6ee;
  color: #146c43;
  font-weight: 600;
}

.neith-meta {
  margin: 0 0 14px;
  color: #475569;
  font-size: 0.85rem;
}

.neith-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.neith-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

.neith-table th {
  background: #3f51b5;
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.neith-table td {
  padding: 10px 12px;
  border-top: 1px solid #eef2f7;
}

.neith-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.neith-table--fit {
  min-width: 0;
}

.neith-table--fit td:nth-child(2) {
  white-space: normal;
}

.neith-col-alert {
  width: 5.5rem;
  text-align: center;
}

.neith-alert {
  color: #b45309;
  font-size: 22px;
  vertical-align: middle;
}

.neith-totals {
  margin-top: 12px;
  padding-right: 13px;
}

.neith-totals div {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 2rem;
  padding: 4px 0;
}

.neith-totals span:last-child {
  flex: 0 0 11rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.neith-totals .grand {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #cbd5e1;
  font-weight: 700;
}

.neith-client {
  margin-bottom: 12px;
}

.neith-client h3 {
  margin: 0;
  font-size: 1.05rem;
}

.neith-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.85rem;
}

.neith-note--after {
  margin: 12px 0 0;
}

.neith-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.neith-chip--ok {
  background: #e7f6ee;
  color: #146c43;
}

.neith-chip--wait {
  background: #fff4e5;
  color: #9a3412;
}

.neith-chip--quiet {
  background: #f1f5f9;
  color: #334155;
}

.neith-demo-context {
  min-height: 7.5rem;
}

.neith-demo-context-note[hidden] {
  display: none;
}

.neith-demo-context-note {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #3f51b5;
}

.neith-demo-context-note h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.neith-demo-context-note p {
  margin: 0 0 0.4rem;
  color: #475569;
  line-height: 1.55;
}

.neith-demo-context-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .neith-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .neith-shell {
    flex-direction: column;
    min-height: 0;
  }

  .neith-sidenav {
    width: 100%;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid #dbe4ee;
  }

  .neith-brand {
    display: none;
  }

  .neith-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
  }

  .neith-nav-section {
    display: none;
  }

  .neith-nav a {
    white-space: nowrap;
    margin: 0;
    border-radius: 8px;
    border-left: 0;
  }

  .neith-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .neith-product-frame {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neith-demo-context {
    scroll-behavior: auto;
  }
}
