/* Painel no desenho do Diamond (PrimeNG): menu agrupado, topo com usuário,
   cartões com ícone e tabelas com barra de ferramentas. O login segue escuro. */

#view-app {
  --sidebar-w: 272px;
  --bg-primary: #eef1f6;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --white: #0f172a;
  --white-dim: #64748b;
  --white-faint: #f1f5f9;
  --border-gold: #e6eaf0;
  --border-gold-bright: #d5dbe3;
  --gold-primary: #8a6820;
  --gold-light: #6b5014;
  --gold-glow: #fbf6ea;
  background: #eef1f6;
  color: #0f172a;
  font-family: Inter, sans-serif;
}

.particles { display: none; }

/* ── Menu lateral ── */
#view-app .sidebar {
  width: 272px;
  min-width: 272px;
  background: #0b1220;
  border-right: none;
  box-shadow: none;
}
#view-app .sidebar-logo {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#view-app .sidebar-logo img { width: 132px; filter: none; }
#view-app .sidebar-product {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}
#view-app .sidebar-nav {
  padding: 14px 12px 20px;
  gap: 2px;
}
#view-app .nav-caption {
  margin: 16px 10px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
#view-app .nav-caption:first-child { margin-top: 4px; }
#view-app .nav-item {
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
}
#view-app .nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
#view-app .nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
}
#view-app .nav-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  flex-shrink: 0;
}
#view-app .nav-ico .pi { font-size: 0.95rem; }
#view-app .nav-item.active .nav-ico {
  background: #C9A84C;
  color: #1c1408;
}
#view-app .sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#view-app .btn-logout {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  background: transparent;
  font-size: 0.82rem;
}
#view-app .btn-logout:hover { background: rgba(239, 68, 68, 0.12); color: #fff; }

/* ── Topo ── */
html:has(#view-app.active),
body:has(#view-app.active) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
#view-app.active {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
#view-app .sidebar {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
#view-app .sidebar-nav {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#view-app .sidebar,
#view-app .sidebar-overlay,
#view-app .hamburger { display: none !important; }
#view-app .main {
  margin-left: 0;
  width: 100%;
  background: #eef1f6;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
#view-app .header {
  position: relative;
  flex-shrink: 0;
}
#view-app .header {
  height: 76px;
  min-height: 76px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #e6eaf0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  backdrop-filter: none;
}
#view-app .header-right { display: flex; align-items: center; gap: 12px; }
#view-app .page-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
#view-app .page-title {
  font-family: Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}
#view-app .page-subtitle { font-size: 0.8rem; color: #64748b; margin-top: 1px; }
#view-app .hamburger {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e6eaf0;
  background: #fff;
  color: #0f172a;
  display: none;
  align-items: center;
  justify-content: center;
}
#view-app .api-status {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  color: #334155;
  font-weight: 600;
}
#view-app .header-datetime {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  color: #475569;
  font-size: 0.78rem;
}
#view-app .header .user-info {
  margin: 0;
  padding: 4px 12px 4px 4px;
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  border-radius: 999px;
  gap: 8px;
}
#view-app .user-avatar {
  width: 32px;
  height: 32px;
  background: #0b1220;
  color: #f8f1dc;
  font-size: 0.72rem;
}
#view-app .user-name { color: #0f172a; font-size: 0.8rem; }
#view-app .user-role { color: #64748b; letter-spacing: 0.04em; }

/* ── Conteúdo e cartões ── */
#view-app .page-content {
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 24px 28px calc(124px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scroll-padding-bottom: 84px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
#view-app .page-content::-webkit-scrollbar { width: 10px; height: 10px; }
#view-app .page-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #eef1f6;
}
#view-app .page-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
#view-app .stats-grid { gap: 16px; margin-bottom: 16px; }
#view-app .stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#view-app .stat-card::before { display: none; }
#view-app .stat-card:hover {
  transform: none;
  border-color: #e6eaf0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
#view-app .stat-icon {
  position: static;
  order: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  opacity: 1;
}
#view-app .stat-icon .pi { font-size: 1.25rem; }
#view-app .stat-icon-indigo { background: #eef2ff; color: #4338ca; }
#view-app .stat-icon-green { background: #ecfdf5; color: #047857; }
#view-app .stat-icon-amber { background: #fff7ed; color: #c2410c; }
#view-app .stat-icon-slate { background: #f1f5f9; color: #475569; }
#view-app .stat-body { min-width: 0; }
#view-app .stat-label {
  margin: 0 0 4px;
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: #64748b;
  font-weight: 600;
}
#view-app .stat-value {
  font-family: Inter, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: #0f172a;
}
#view-app .chart-card,
#view-app .table-card,
#view-app .form-card,
#view-app .settings-card {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#view-app .chart-card { padding: 8px 8px 16px; }
#view-app .chart-title,
#view-app .settings-card > .chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #eef2f6;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #0f172a;
}
#view-app .chart-title .pi { color: #8a6820; font-size: 1rem; }
#view-app .chart-container { height: 240px; margin: 12px 8px 0; }
#view-app .charts-row { gap: 16px; }

/* ── Tabelas ── */
#view-app .table-header {
  padding: 16px 18px;
  align-items: center;
  border-bottom: 1px solid #eef2f6;
}
#view-app .table-header-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #0f172a;
}
#view-app .table-header-sub { margin-top: 2px; font-size: 0.78rem; color: #64748b; }
#view-app .input-icon { position: relative; display: block; }
#view-app .input-icon > .pi {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}
#view-app .input-icon .filter-input { padding-left: 34px; min-width: 220px; height: 40px; }
#view-app thead { background: #f8fafc; }
#view-app th {
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e6eaf0;
}
#view-app td {
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
#view-app tbody tr:hover { background: #f8fafc; }
#view-app tbody tr:hover td { color: #0f172a; }
#view-app .td-name { color: #0f172a; font-weight: 600; }
#view-app .td-value { color: #0f172a; }
#view-app .td-ref { color: #94a3b8; }
#view-app .btn-action {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e6eaf0;
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#view-app .btn-action .pi { font-size: 0.9rem; }
#view-app .btn-action:hover { border-color: #C9A84C; color: #6b5014; background: #fbf6ea; }
#view-app .btn-action.btn-delete:hover,
#view-app .btn-action.btn-trash:hover { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
#view-app .pagination {
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #eef2f6;
  gap: 12px;
}
#view-app .page-nav { display: flex; align-items: center; gap: 6px; }
#view-app .page-info { margin-right: auto; color: #64748b; font-size: 0.78rem; font-weight: 600; }
#view-app .page-gap { color: #94a3b8; padding: 0 2px; }
#view-app .page-btn:disabled { opacity: 0.35; cursor: default; }
#view-app .page-btn:disabled:hover { background: #fff; color: #334155; border-color: #e6eaf0; }
#view-app .page-btn .pi { font-size: 0.85rem; }
#view-app .page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e6eaf0;
  background: #fff;
  color: #334155;
}
#view-app .page-btn:hover,
#view-app .page-btn.active {
  background: #0b1220;
  border-color: #0b1220;
  color: #fff;
}

/* ── Formulários ── */
#view-app .form-card,
#view-app .settings-card { padding: 8px 22px 18px; }
#section-settings .settings-body { padding: 2px 0 0; }
#view-app .form-label {
  letter-spacing: 0.04em;
  color: #64748b;
  font-size: 0.72rem;
}
#view-app .form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0 0 0 12px;
  border: none;
  border-left: 3px solid #C9A84C;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #0f172a;
}
#view-app .form-input,
#view-app .filter-input,
#view-app textarea.form-input,
#view-app select.form-input,
#view-app select.filter-input {
  background: #fff;
  border: 1px solid #d5dbe3;
  color: #0f172a;
  border-radius: 10px;
  min-height: 42px;
}
#view-app .form-input::placeholder,
#view-app .filter-input::placeholder { color: #94a3b8; }
#view-app .form-input:focus,
#view-app .filter-input:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.22);
}
#view-app select.filter-input option,
#view-app select.form-input option { background: #fff; color: #0f172a; }
#view-app .client-selector-wrap {
  margin: 16px 0 8px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6eaf0;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0;
}
.btn-primary-gold {
  background: #C9A84C;
  color: #1c1408;
  border: 1px solid #C9A84C;
}
.btn-primary-gold:hover { background: #d4b56a; transform: none; box-shadow: none; }
.btn-outline-gold {
  background: #fff;
  border-color: #e4d3a4;
  color: #6b5014;
}
.btn-outline-gold:hover { background: #fbf6ea; }

#view-app .badge {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 3px 8px;
}
#view-app .badge-green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
#view-app .badge-amber { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
#view-app .badge-gold { background: #fbf6ea; color: #7c5b12; border: 1px solid #ead7a1; }
#view-app .badge-gray { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
#view-app .badge-blue { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
#view-app .badge-red { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.modal-backdrop.open {
  align-items: safe center;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  max-width: 720px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.modal-header,
.modal-footer { border-color: #eef2f6; }
.modal-title { font-family: Inter, sans-serif; color: #0f172a; }
.modal-subtitle,
.modal .preview-key { color: #64748b; }
.modal-close { color: #64748b; background: #f8fafc; border-color: #e6eaf0; border-radius: 10px; }
.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal .form-input {
  background: #fff;
  border: 1px solid #d5dbe3;
  color: #0f172a;
}
.modal .btn-primary-gold { background: #0f172a; color: #fff; border-color: #0f172a; }
.modal .btn-primary-gold:hover { background: #1e293b; }
.modal .btn-outline-gold { background: #fff; color: #334155; border-color: #e2e8f0; }
.modal .btn-outline-gold:hover { background: #f8fafc; }

.pix-sheet {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  overflow: hidden;
}
.pix-layout {
  display: grid;
  grid-template-columns: 168px 1fr;
}
.pix-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  background: #f8fafc;
  border-right: 1px solid #eef2f6;
}
.pix-qr-frame {
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px #e6eaf0;
}
.pix-qr-frame img { width: 128px; height: 128px; display: block; }
.pix-qr-hint { font-size: 0.72rem; color: #64748b; text-align: center; }
.pix-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
}
.pix-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pix-amount {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0f172a;
  line-height: 1.1;
}
.pix-facts { display: grid; gap: 8px; margin-top: 4px; }
.pix-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: baseline; }
.pix-facts dt { font-size: 0.75rem; color: #94a3b8; font-weight: 600; }
.pix-facts dd { margin: 0; font-size: 0.86rem; color: #0f172a; font-weight: 600; }
.pix-copy {
  padding: 12px 14px 14px;
  border-top: 1px solid #eef2f6;
}
.pix-copy-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.pix-inputgroup { display: flex; gap: 8px; }
.pix-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}
.pix-copy-btn,
.pix-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: Inter, sans-serif;
}
.pix-copy-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  flex-shrink: 0;
}
.pix-copy-btn:hover { background: #0d9488; }
.pix-copy-btn.is-copied,
.pix-link-btn.is-copied { background: #047857; color: #fff; }
.pix-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6eaf0;
  color: #64748b;
}
.pix-link-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #334155;
}
.pix-link-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e6eaf0;
}

.charge-block { display: flex; flex-direction: column; gap: 10px; }
.charge-block-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.modal .info-grid { margin: 0; gap: 12px 18px; }
.modal .info-key { color: #94a3b8; letter-spacing: 0.04em; }
.modal .info-val,
.modal .info-val.gold {
  color: #0f172a;
  font-family: Inter, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}
.modal .event-item {
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  border-left: 3px solid #14b8a6;
  border-radius: 10px;
}
.modal .event-type { color: #0f172a; text-transform: capitalize; }
.modal .event-time,
.modal .event-status { color: #64748b; }

#modal-view .modal {
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 0 0 8px rgba(255, 255, 255, 0.28),
    0 22px 50px rgba(15, 23, 42, 0.18);
}
#modal-view .modal-header { padding: 14px 18px 12px; }
#modal-view .modal-body { padding: 12px 16px 4px; gap: 10px; }
#modal-view .modal-footer { padding: 10px 16px 14px; flex-wrap: wrap; }
.btn-send-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}
.btn-send-wa:hover { background: #115e59; }
.btn-send-wa:disabled { opacity: 0.7; cursor: wait; }
#modal-view .pix-side { padding: 12px 16px; gap: 6px; }
#modal-view .pix-qr-stage { padding: 12px 10px; }
#modal-view .pix-copy { padding: 10px 12px; }
#modal-view .info-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px 16px; }
#modal-view .info-item[style*="grid-column"] { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .pix-layout { grid-template-columns: 1fr; }
  .pix-qr-stage { border-right: none; border-bottom: 1px solid #eef2f6; }
}

.settings-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#section-settings .settings-card {
  width: 100%;
  max-width: none;
}
#section-settings .form-grid-2 { grid-template-columns: 1fr 1fr; }
.settings-kicker {
  margin: 18px 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.settings-kicker:first-of-type { margin-top: 0; }
.settings-note { margin: -4px 0 12px; font-size: 0.78rem; color: #64748b; }
.settings-badge-row { min-height: 8px; margin: 10px 0 4px; }
.settings-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.settings-badge.is-on { background: #ecfdf5; color: #047857; }
.settings-badge.is-off { background: #fef2f2; color: #b91c1c; }
.form-grid-address {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 2.2fr) minmax(110px, 0.6fr) minmax(72px, 0.35fr);
  gap: 12px 14px;
}
.form-grid-address .span-2 { grid-column: span 2; }
#section-settings .cnpj-row { align-items: flex-end; margin-bottom: 0; }
#section-settings .btn-lookup {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  border-radius: 10px;
}
#section-settings .btn-lookup:hover { background: #1e293b; }
.settings-body { padding: 2px 0 0; }
.settings-lead {
  margin: 0 0 16px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
}
.settings-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.settings-api-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
#conn-result:empty, #conn-result[hidden] { display: none; }
.settings-save {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 8px;
  padding: 18px 0 4px;
  background: linear-gradient(to bottom, rgba(238, 241, 246, 0), #eef1f6 42%);
}
.settings-save .btn-sm,
.settings-api-actions .btn-sm { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1100px) {
  .form-grid-address { grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1.6fr) minmax(100px, 0.6fr) 72px; }
}
@media (max-width: 760px) {
  #view-app .page-content { padding: 16px 16px 20px; }
  #view-app .header { padding: 0 16px; }
  #section-settings .form-grid-2,
  .form-grid-address { grid-template-columns: 1fr; }
  .form-grid-address .span-2 { grid-column: auto; }
  .settings-save { justify-content: stretch; }
  .settings-save .btn-sm { width: 100%; justify-content: center; }
  #section-settings .cnpj-row { flex-direction: column; align-items: stretch; }
  #section-settings .btn-lookup { width: 100%; justify-content: center; }
}

.notice-wa {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.84rem;
}
.notice-policy {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.notice-step {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 10px 12px;
}
.notice-step strong { display: block; font-size: 0.82rem; color: #0f172a; }
.notice-step span { display: block; margin-top: 2px; font-size: 0.72rem; color: #64748b; }
.notice-stack { display: flex; flex-direction: column; gap: 16px; }
.notice-fold-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.notice-fold-toggle .pi {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
}
.notice-fold-copy { min-width: 0; }
.notice-fold-copy .table-header-title,
.notice-fold-copy .table-header-sub { display: block; }
.notice-fold.is-collapsed .table-header { border-bottom: 0; }
.notice-fold-body[hidden] { display: none; }
#notice-root .notice-client {
  display: block;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#notice-root .table-card th,
#notice-root .table-card td { padding-top: 9px; padding-bottom: 9px; }
#notice-root .notice-table-scroll { overflow-x: auto; }
#notice-root .notice-table-scroll table { min-width: 640px; }
#notice-root .table-card .pagination { margin-top: auto; }
#notice-root .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notice-messages { margin-top: 16px; }
.notice-vars { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.notice-vars button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.notice-templates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px 16px; }
.notice-templates label { display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; font-weight: 700; color: #334155; }
.notice-templates textarea {
  min-height: 168px;
  resize: vertical;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #0f172a;
  background: #fff;
}
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tone {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.tone-preventivo { background: #eef2ff; color: #4338ca; }
.tone-hoje { background: #fff7ed; color: #c2410c; }
.tone-atraso { background: #fef2f2; color: #b91c1c; }
.tone-cobranca { background: #fff1f2; color: #9f1239; }
.tone-inadimplencia { background: #0f172a; color: #fff; }
.sit-paga { color: #047857; font-weight: 700; }
.sit-em_aberto { color: #c2410c; font-weight: 700; }
.sit-nao_gerada { color: #b91c1c; font-weight: 700; }
.sit-aguarda { color: #64748b; font-weight: 600; }
.aging-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.aging-cell { background: #f8fafc; border: 1px solid #e6eaf0; border-radius: 12px; padding: 10px; }
.aging-cell b { display: block; font-size: 0.95rem; color: #0f172a; }
.aging-cell span { font-size: 0.72rem; color: #64748b; }

@media (max-width: 900px) {
  .notice-policy, .aging-row { grid-template-columns: 1fr 1fr; }
  .notice-templates, #notice-root .stats-grid { grid-template-columns: 1fr; }
  #notice-root .table-header { align-items: stretch; }
  #notice-root .notice-head { flex-wrap: wrap; }
  #notice-root table { min-width: 640px; }
}

@media (max-width: 900px) {
  #view-app .hamburger { display: none; }
  #view-app .header .user-details { display: none; }
  #view-app .header-datetime { display: none; }
}
@media (max-width: 1100px) {
  #view-app .stats-grid { grid-template-columns: 1fr 1fr; }
}

#view-app .empty-state { color: #64748b; }
#view-app .empty-title {
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}
#view-app .empty-sub { margin-bottom: 16px; color: #64748b; font-size: 0.84rem; }
#view-app .empty-state .btn-sm { margin-top: 4px; }

#charge-composer[hidden] { display: none !important; }
#charge-composer {
  width: 100%;
  max-width: none;
  margin-bottom: 16px;
}
#charge-composer > .chart-title { justify-content: space-between; }
#charge-composer .composer-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#charge-composer .composer-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e6eaf0;
  background: #fff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#charge-composer .composer-close:hover { border-color: #cbd5e1; color: #0f172a; }
#charge-composer .composer-body { padding: 16px 2px 4px; }
#charge-composer .composer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(180px, 0.9fr) minmax(220px, 1.3fr);
  gap: 12px 14px;
}
#charge-composer .span-2 { grid-column: span 2; }
#charge-composer .span-3 { grid-column: 1 / -1; }
#charge-composer .form-group { margin-bottom: 0; }
#charge-composer .form-hint { color: #64748b; }
#charge-composer .client-dropdown {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  margin-top: 6px;
}
#charge-composer .client-dropdown-item { border-bottom: 1px solid #f1f5f9; }
#charge-composer .client-dropdown-item:hover { background: #f8fafc; }
#charge-composer .client-dropdown-item .cd-name { color: #0f172a; }
#charge-composer .client-dropdown-item .cd-doc,
#charge-composer .client-dropdown-item .cd-email { color: #64748b; }
#charge-composer .client-selected-card {
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  margin-top: 0;
}
#charge-composer .client-selected-name { color: #0f172a; }
#charge-composer .client-selected-doc { color: #64748b; }
#charge-composer .btn-clear-client {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  color: #b91c1c;
  background: #fff;
}
#charge-composer .composer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
#charge-composer .composer-link:hover { color: #115e59; }
#charge-composer .composer-payer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 14px;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #f8fafc;
}
#charge-composer .composer-payer[hidden] { display: none !important; }
#charge-composer .composer-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f6;
}
#charge-composer .composer-summary {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(120px, 1.2fr) auto auto;
  gap: 12px 18px;
  min-width: 0;
}
#charge-composer .composer-summary strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 600;
}
#charge-composer .composer-k {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#charge-composer .composer-amount strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
#charge-composer .composer-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
#charge-composer .composer-repeat {
  padding: 14px 16px;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #f8fafc;
}
#charge-composer .composer-repeat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
#charge-composer .composer-repeat-head strong {
  display: block;
  color: #0f172a;
  font-size: 0.92rem;
}
#charge-composer .composer-repeat-head .form-hint { display: block; margin-top: 4px; max-width: 62ch; }
#charge-composer .composer-repeat-head input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0f766e;
  flex-shrink: 0;
}
#charge-composer .composer-repeat-fields {
  display: grid;
  grid-template-columns: 160px 180px 1fr;
  gap: 12px 14px;
  align-items: end;
  margin-top: 14px;
}
#charge-composer .composer-repeat-fields[hidden] { display: none !important; }
#charge-composer .composer-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
}
#charge-composer .composer-check input { width: 16px; height: 16px; accent-color: #0f766e; }
#section-charges .td-name .badge { margin-left: 8px; vertical-align: middle; }
#section-charges .table-filters .input-icon { min-width: 0; }
#section-charges .table-filters .filter-input { min-width: 0; }

@media (max-width: 900px) {
  #charge-composer .composer-grid,
  #charge-composer .composer-summary,
  #charge-composer .composer-repeat-fields { grid-template-columns: 1fr 1fr; }
  #charge-composer .composer-check { grid-column: 1 / -1; }
  #charge-composer .span-3,
  #charge-composer .composer-payer .span-2 { grid-column: 1 / -1; }
  #charge-composer .composer-foot { align-items: stretch; flex-direction: column; }
  #charge-composer .composer-actions { width: 100%; }
  #charge-composer .composer-actions .btn-sm { flex: 1; }
}
@media (max-width: 640px) {
  #charge-composer .composer-grid,
  #charge-composer .composer-payer,
  #charge-composer .composer-summary,
  #charge-composer .composer-repeat-fields { grid-template-columns: 1fr; }
  #charge-composer .composer-check { min-height: 0; }
  #section-charges .table-header { align-items: stretch; }
  #section-charges .table-filters { width: 100%; }
  #section-charges .table-filters .input-icon,
  #section-charges .table-filters .filter-input,
  #section-charges #btn-open-composer { width: 100%; }
}

/* ── WhatsApp ── */
#section-whatsapp { width: 100%; }
.wa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}
.wa-card {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.wa-card-body { flex: 1; }
.wa-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #eef2f6;
}
.wa-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}
.wa-ico-green { background: #ecfdf5; color: #047857; }
.wa-ico-slate { background: #f1f5f9; color: #475569; }
.wa-ico-amber { background: #fff7ed; color: #c2410c; }
.wa-ico-indigo { background: #eef2ff; color: #4338ca; }
.wa-card-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: #0f172a; }
.wa-card-sub { margin-top: 3px; font-size: 0.8rem; line-height: 1.45; color: #64748b; }
.wa-card-body, .wa-card-foot { padding: 16px 18px 18px; }
.wa-card-foot { border-top: 1px solid #eef2f6; }
#section-whatsapp .btn-wa-connect {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
}
#section-whatsapp .btn-wa-connect:hover { background: #115e59; transform: none; opacity: 1; }
.wa-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wa-or::before, .wa-or::after { content: ""; flex: 1; height: 1px; background: #e6eaf0; }
.wa-phone-btn {
  width: 100%;
  margin-top: 10px;
  height: 42px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wa-steps { list-style: none; margin: 0; padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.wa-steps li { display: flex; gap: 12px; align-items: flex-start; }
.wa-steps li > span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}
.wa-steps strong { display: block; font-size: 0.86rem; color: #0f172a; }
.wa-steps p { margin: 2px 0 0; font-size: 0.78rem; color: #64748b; }
#section-whatsapp .wa-error-box {
  max-width: none;
  margin-bottom: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.wa-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 0.84rem;
  font-weight: 700;
}
.wa-qr-stage { display: flex; justify-content: center; padding: 22px 18px 24px; }
.wa-qr-stage img { width: 240px; height: 240px; border-radius: 12px; border: 1px solid #e6eaf0; background: #fff; }
.wa-qr-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px; color: #64748b; font-size: 0.82rem; }
.wa-code {
  margin: 18px;
  padding: 22px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #d5dbe3;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0f172a;
}
#section-whatsapp textarea.form-input { min-height: 148px; resize: vertical; }
.wa-result { margin: 12px 0; padding: 12px 14px; border-radius: 12px; font-size: 0.82rem; }
.wa-result.is-ok { background: #ecfdf5; color: #047857; }
.wa-result.is-bad { background: #fef2f2; color: #b91c1c; }
#section-whatsapp .btn-outline-red { display: inline-flex; align-items: center; gap: 6px; }

/* ── Clientes ── */
.client-person { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.client-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.client-meta { margin-top: 2px; font-size: 0.75rem; color: #64748b; }
.client-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.client-pill.is-pf { background: #eef2ff; color: #4338ca; }
.client-pill.is-pj { background: #fbf6ea; color: #6b5014; }
.client-line { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #334155; }
.client-line + .client-line { margin-top: 4px; }
.client-line .pi { color: #94a3b8; font-size: 0.8rem; }
.client-missing { color: #94a3b8; }
#section-clients .table-card { overflow: hidden; }
#section-clients table { min-width: 760px; }

#section-client-form .cpf-page-title {
  font-family: Inter, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}
#section-client-form .cpf-back-btn {
  height: 36px;
  border-radius: 10px;
  border-color: #e6eaf0;
  color: #475569;
  background: #fff;
}
#section-client-form .cpf-back-btn:hover { background: #f8fafc; border-color: #d5dbe3; }
#section-client-form .cpf-main-card {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#section-client-form .cpf-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  border: none;
  color: #4338ca;
}
#section-client-form .cpf-section-icon .pi { font-size: 0.95rem; }
#section-client-form .cpf-section-text {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #0f172a;
}
#section-client-form .cpf-section-line { background: #e6eaf0; }
#section-client-form .cpf-section-divider { border-top-color: #eef2f6; }
#section-client-form .person-type-seg {
  background: #f8fafc;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
}
#section-client-form .person-seg-btn { color: #64748b; border-radius: 9px; }
#section-client-form .person-seg-btn.active {
  background: #fff;
  color: #0f172a;
  border-color: #e6eaf0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
#section-client-form .cpf-footer-bar { border-top-color: #eef2f6; }
#section-client-form .btn-sm,
#section-client-form .cpf-top-actions .btn-sm,
#section-client-form .cpf-footer-bar .btn-sm { display: inline-flex; align-items: center; gap: 6px; }
#section-client-form .btn-lookup {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  border-radius: 10px;
}
#section-client-form .btn-lookup:hover { background: #1e293b; }

@media (max-width: 900px) {
  .wa-layout { grid-template-columns: 1fr; }
  #section-clients .table-header { align-items: stretch; }
  #section-clients .table-filters { width: 100%; }
  #section-clients .table-card { overflow-x: auto; }
}
@media (max-width: 760px) {
  #section-client-form .cpf-section div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  #section-client-form .cpf-section > div[style*="display:flex"] { flex-direction: column; align-items: stretch !important; }
  #section-client-form .cpf-section > div[style*="display:flex"] .form-group { width: 100% !important; min-width: 0 !important; flex: none !important; }
  #section-client-form .person-type-seg { width: 100%; min-width: 0; }
}

#view-app .mobile-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 999px;
  border: 1px solid #e6eaf0;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
}
#view-app .dock {
  display: block;
  position: fixed;
  left: 50%;
  width: min(760px, calc(100% - 24px));
  height: 88px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 70;
  filter: drop-shadow(0 14px 28px rgba(11, 18, 32, 0.28));
}
#view-app .dock-skin { position: absolute; inset: 0; width: 100%; height: 100%; }
#view-app #dock-path { fill: #0b1220; }
#view-app .dock-bead {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f6f0e2;
  color: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(201, 168, 76, 0.9);
  pointer-events: none;
  z-index: 2;
}
#view-app .dock-bead .pi { font-size: 1.15rem; }
#view-app .dock-items {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 1;
}
#view-app .dock-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(248, 241, 220, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0 0 10px;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
#view-app .dock-item .pi { font-size: 1.12rem; line-height: 1; }
#view-app .dock-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #f8f1dc;
  opacity: 0;
  height: 0;
}
#view-app .dock-item.active .pi { opacity: 0; }
#view-app .dock-item.active .dock-label { opacity: 1; height: 16px; }

@media (max-width: 900px) {
  #view-app .header { padding: 10px 16px; gap: 10px; }
  #view-app .page-kicker { font-size: 0.68rem; }
  #view-app .page-title { font-size: 1.12rem; }
  #view-app .page-subtitle { font-size: 0.75rem; line-height: 1.35; }
  #view-app .page-content {
    padding: 16px 16px calc(118px + env(safe-area-inset-bottom));
  }
  #view-app .stat-card,
  #view-app .table-header { padding-left: 16px; padding-right: 16px; }
  #view-app .stat-card { padding: 14px; gap: 10px; }
  #view-app .stat-icon { width: 42px; height: 42px; border-radius: 12px; }
  #view-app .stat-value {
    font-size: 1.05rem;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #view-app .stat-label { font-size: 0.72rem; }
  #view-app .stat-sub { font-size: 0.7rem; }
}
