/* MEI Controle — mesmo visual do front React (Tailwind extend + body) */
:root {
  --bg-page: #0d1117;
  --bg-card: #151c24;
  --border-card: #1e293b;
  --sidebar-bg: #0f1419;
  --sidebar-hover: #1a2332;
  --sidebar-active: #1e3a5f;
  --sidebar-border: #1e293b;
  --text: #e6edf3;
  --muted: #94a3b8;
  --blue: #2563eb;
  --blue-hover: #3b82f6;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100vh; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-page); color: var(--text); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }

a { color: #60a5fa; text-decoration: none; }
a:hover { color: #93c5fd; }

.container-page { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Auth guest (alinhado React Login.jsx / Cadastro.jsx) */
.guest-shell { min-height: 100vh; background: #0d1117; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.guest-inner { width: 100%; max-width: 28rem; }
.guest-auth-logo {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center; margin-bottom: 2rem;
  text-decoration: none; color: inherit;
}
.guest-auth-logo:hover { opacity: 0.95; }
.guest-auth-logo-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: #2563eb;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; color: #fff;
}
.guest-auth-logo-text { font-weight: 600; font-size: 1.25rem; color: #fff; }
.guest-auth-card {
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 2rem;
}
.guest-auth-title { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1.2; }
.guest-auth-lead { margin: 0 0 1.5rem; font-size: 0.875rem; color: #94a3b8; line-height: 1.45; }
.guest-auth-form { display: flex; flex-direction: column; gap: 1rem; }
.guest-field { display: block; }
.guest-label { display: block; font-size: 0.875rem; color: #94a3b8; margin-bottom: 0.25rem; }
.guest-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid var(--border-card);
  background: #0d1117; color: #fff; font-size: 1rem; font-family: inherit;
}
.guest-input::placeholder { color: #64748b; }
.guest-input:focus { outline: none; box-shadow: 0 0 0 1px #3b82f6; border-color: transparent; }
.guest-forgot-row { text-align: right; margin-top: 0.25rem; }
.guest-link-forgot { font-size: 0.75rem; color: #60a5fa; text-decoration: none; }
.guest-link-forgot:hover { color: #93c5fd; }
.guest-btn-submit {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem; border: none; background: #2563eb; color: #fff;
  font-weight: 500; font-size: 1rem; cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.guest-btn-submit:hover:not(:disabled) { background: #3b82f6; }
.guest-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.guest-alert { padding: 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; }
.guest-alert-error { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.guest-alert-ok { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.guest-auth-footer { margin: 1.5rem 0 0; text-align: center; font-size: 0.875rem; color: #94a3b8; }
.guest-auth-footer a { color: #60a5fa; text-decoration: none; }
.guest-auth-footer a:hover { color: #93c5fd; }
.guest-auth-back-wrap { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: #64748b; }
.guest-auth-back-wrap a { color: #64748b; text-decoration: none; }
.guest-auth-back-wrap a:hover { color: #94a3b8; }
.guest-auth-badge-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.guest-auth-badge {
  display: inline-block; padding: 0.125rem 0.5rem; border-radius: 0.25rem;
  background: rgba(16, 185, 129, 0.2); color: #34d399; font-size: 0.75rem; font-weight: 500;
}
.guest-trial-hint {
  display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.75rem; border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3);
}
.guest-trial-hint svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: #60a5fa; margin-top: 0.125rem; }
.guest-trial-hint p { margin: 0; font-size: 0.875rem; color: #cbd5e1; line-height: 1.4; }
.guest-trial-hint strong { color: #e2e8f0; }
.guest-auth-footer-link { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; }
.guest-auth-footer-link a { color: #60a5fa; text-decoration: none; }
.guest-auth-footer-link a:hover { color: #93c5fd; }

.guest-demo-panel {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(30, 58, 138, 0.2);
}
.guest-demo-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.guest-demo-panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
}
.guest-demo-accounts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.guest-demo-account {
  margin: 0;
  padding: 0.75rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-card);
}
.guest-demo-role {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.125rem;
}
.guest-demo-hint {
  display: block;
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.guest-demo-creds {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}
.guest-demo-creds > span { display: block; }
.guest-demo-k {
  display: inline-block;
  min-width: 2.75rem;
  color: #64748b;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.guest-demo-creds code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  color: #93c5fd;
  word-break: break-all;
}
.guest-demo-foot {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.45;
}

/* Forms */
.label { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.25rem; }
.input { width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid var(--border-card); background: var(--bg-page); color: #fff; font-size: 1rem; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field { margin-bottom: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1rem; border-radius: 0.5rem; border: none; font-weight: 500; cursor: pointer; font-size: 1rem; transition: background 0.15s; }
.btn-primary { background: var(--blue); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.875rem; width: auto; }
.btn-danger { background: rgba(239,68,68,0.25); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }
.btn-danger:hover { background: rgba(239,68,68,0.35); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border-card); }
.btn-ghost:hover { color: #fff; border-color: #475569; }

.alert { padding: 0.75rem 1rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.875rem; }
.alert-error { background: rgba(239,68,68,0.2); color: #fca5a5; }
.alert-ok { background: rgba(34,197,94,0.2); color: #86efac; }

/* Landing (alinhado ao React meipro/src/pages/Landing.jsx) */
.landing-wrap { background: #0d1117; color: #fff; min-height: 100vh; }
.landing-wrap a.landing-contact-card { color: #e2e8f0; }
.landing-container { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.landing-topbar { border-bottom: 1px solid #1e293b; }
.landing-topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.landing-brand { display: flex; align-items: center; gap: 0.5rem; }
.landing-logo-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: #2563eb;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; color: #fff;
}
.landing-logo-text { font-weight: 600; font-size: 1.25rem; color: #fff; }
.landing-topbar-actions { display: flex; align-items: center; gap: 1rem; }
.landing-link-nav { color: #cbd5e1; text-decoration: none; font-size: 1rem; transition: color 0.15s; }
.landing-link-nav:hover { color: #fff; }
.landing-btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: 0.5rem; background: #2563eb; color: #fff; font-weight: 500;
  text-decoration: none; transition: background 0.15s;
}
.landing-btn-nav:hover { background: #3b82f6; color: #fff; }

.landing-main { padding: 4rem 1.5rem 0; width: 100%; }
@media (min-width: 768px) { .landing-main { padding-top: 5rem; padding-bottom: 0; } }

.landing-hero { text-align: center; margin-bottom: 6rem; }
.landing-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; margin: 0 auto 1.5rem; max-width: 36rem;
}
.landing-accent { color: #60a5fa; }
.landing-hero-lead { font-size: 1.25rem; color: #94a3b8; margin: 0 auto 2.5rem; max-width: 42rem; line-height: 1.5; }
.landing-hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.landing-btn-primary-lg {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: 0.75rem; background: #2563eb; color: #fff; font-weight: 600; font-size: 1.125rem;
  text-decoration: none; transition: background 0.15s;
}
.landing-btn-primary-lg:hover { background: #3b82f6; color: #fff; }
.landing-btn-outline-lg {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: 0.75rem; border: 1px solid #475569; color: #cbd5e1; font-weight: 600; font-size: 1.125rem;
  text-decoration: none; transition: border-color 0.15s, color 0.15s;
}
.landing-btn-outline-lg:hover { border-color: #64748b; color: #fff; }
.landing-hero-note { margin-top: 1.5rem; font-size: 0.875rem; color: #64748b; }

.landing-features {
  display: grid; gap: 1.5rem; margin-bottom: 6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .landing-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .landing-features { grid-template-columns: repeat(4, 1fr); } }

.landing-feature-card {
  border-radius: 0.75rem; background: var(--bg-card); border: 1px solid var(--border-card); padding: 1.5rem;
  transition: border-color 0.15s;
}
.landing-feature-card:hover { border-color: #475569; }
.landing-feature-icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem; background: rgba(59, 130, 246, 0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: #60a5fa;
}
.landing-feature-card h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 600; color: #fff; }
.landing-feature-card p { margin: 0; font-size: 0.875rem; color: #94a3b8; line-height: 1.4; }

.landing-why {
  border-radius: 1rem; background: var(--bg-card); border: 1px solid var(--border-card);
  padding: 2rem; margin-bottom: 0;
}
@media (min-width: 768px) { .landing-why { padding: 3rem; } }
.landing-why h2 { margin: 0 0 2.5rem; font-size: 1.5rem; font-weight: 700; text-align: center; color: #fff; }
@media (min-width: 768px) { .landing-why h2 { font-size: 1.5rem; } }
.landing-why-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .landing-why-grid { grid-template-columns: repeat(2, 1fr); } }
.landing-why-row { display: flex; align-items: center; gap: 0.75rem; color: #cbd5e1; font-size: 1rem; }
.landing-check {
  width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: rgba(16, 185, 129, 0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #34d399;
}
.landing-check-svg { width: 1rem; height: 1rem; }

.landing-footer {
  position: relative; z-index: 20; margin-top: 6rem; border-top: 1px solid rgba(30, 41, 59, 0.8); background: #0d1117;
}
.landing-footer-glow {
  pointer-events: none; position: absolute; left: 0; right: 0; top: 0; height: 1px; max-width: 72rem; margin: 0 auto;
  background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.45), transparent);
}
.landing-footer-inner { position: relative; padding: 4rem 1.5rem 7rem; }
@media (min-width: 768px) { .landing-footer-inner { padding-bottom: 5rem; } }

.landing-footer-grid {
  display: grid; gap: 3rem; align-items: start;
}
@media (min-width: 1024px) {
  .landing-footer-grid { grid-template-columns: 5fr 4fr 3fr; gap: 2.5rem; }
  .landing-footer-col-contact { border-left: 1px solid rgba(30, 41, 59, 0.6); padding-left: 2.5rem; }
}

.landing-footer-brand-row { display: flex; align-items: center; gap: 0.75rem; }
.landing-footer-logo-mark {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: #2563eb;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; color: #fff;
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.25);
}
.landing-footer-brand-title { margin: 0; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.025em; color: #fff; }
.landing-footer-brand-sub { margin: 0; font-size: 0.875rem; color: #64748b; }
.landing-footer-desc { margin: 1.25rem 0 0; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: #94a3b8; }

.landing-footer-col-contact h3 { margin: 0; font-size: 0.875rem; font-weight: 600; color: #fff; }
.landing-footer-contact-hint { margin: 0.25rem 0 0; font-size: 0.75rem; color: #64748b; }
.landing-contact-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.landing-contact-list li + li { margin-top: 0.75rem; }

.landing-contact-card {
  display: flex; align-items: center; gap: 0.75rem; border-radius: 0.75rem; padding: 0.75rem 1rem;
  border: 1px solid var(--border-card); background: rgba(21, 28, 36, 0.8); text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.landing-contact-card:hover { border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.06); color: inherit; }
.landing-contact-card-wa {
  border-color: rgba(16, 185, 129, 0.2); background: rgba(16, 185, 129, 0.04);
}
.landing-contact-card-wa:hover { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.08); }

.landing-contact-icon {
  position: relative;
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.landing-contact-icon .landing-icon-sm { width: 1.25rem; height: 1.25rem; }
.landing-icon-xs { width: 1rem; height: 1rem; }
.landing-contact-icon.mail { background: rgba(59, 130, 246, 0.15); color: #60a5fa; box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2); }
.landing-contact-icon.wa { background: rgba(16, 185, 129, 0.15); color: #34d399; box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25); }

.landing-contact-body { min-width: 0; flex: 1; text-align: left; }
.landing-contact-label { display: block; font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.landing-contact-value { display: block; font-size: 0.875rem; font-weight: 500; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-contact-card:hover .landing-contact-value { color: #fff; }

.landing-contact-label-wa { display: block; font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(16, 185, 129, 0.8); }
.landing-contact-value-wa { display: block; font-size: 0.875rem; font-weight: 500; color: rgba(209, 250, 229, 0.9); }
.landing-contact-card-wa:hover .landing-contact-value-wa { color: #ecfdf5; }

.landing-contact-arrow { flex-shrink: 0; color: #475569; opacity: 0; transition: opacity 0.15s, transform 0.15s, color 0.15s; }
.landing-contact-card:hover .landing-contact-arrow { opacity: 1; transform: translateX(2px); color: #60a5fa; }
.landing-contact-card-wa:hover .landing-contact-arrow.wa { color: #6ee7b7; opacity: 1; }

.landing-contact-empty {
  margin-top: 1.25rem; border-radius: 0.75rem; border: 1px dashed rgba(51, 65, 85, 0.8); background: rgba(15, 23, 42, 0.3);
  padding: 1.5rem 1rem; text-align: center;
}
.landing-contact-empty p { margin: 0; font-size: 0.875rem; color: #64748b; }

.landing-footer-cta-title { margin: 0; font-size: 0.875rem; font-weight: 600; color: #fff; }
@media (min-width: 1024px) { .landing-footer-cta-title { text-align: right; } }

.landing-footer-cta-btns { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 640px) and (max-width: 1023px) {
  .landing-footer-cta-btns { flex-direction: row; justify-content: flex-end; }
}
@media (min-width: 1024px) { .landing-footer-cta-btns { align-items: stretch; } }

.landing-footer-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.75rem; background: #2563eb; color: #fff; font-size: 0.875rem; font-weight: 600;
  padding: 0.75rem 1rem; text-decoration: none; box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2); transition: background 0.15s;
}
.landing-footer-btn-primary:hover { background: #3b82f6; color: #fff; }
@media (min-width: 1024px) { .landing-footer-btn-primary { text-align: center; } }

.landing-footer-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.75rem; border: 1px solid rgba(71, 85, 105, 0.9); background: rgba(15, 23, 42, 0.4);
  color: #e2e8f0; font-size: 0.875rem; font-weight: 500; padding: 0.75rem 1rem; text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.landing-footer-btn-outline:hover { border-color: #64748b; background: rgba(30, 41, 59, 0.5); color: #fff; }

.landing-footer-bottom {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(30, 41, 59, 0.6);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 640px) {
  .landing-footer-bottom { flex-direction: row; }
  .landing-copy { order: 1; text-align: left; }
  .landing-footer-links { order: 2; }
}
.landing-copy { margin: 0; font-size: 0.75rem; color: #64748b; text-align: center; }
@media (min-width: 640px) { .landing-copy { text-align: left; } }
.landing-footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; font-size: 0.75rem; color: #64748b; }
.landing-footer-links a { color: #64748b; text-decoration: none; transition: color 0.15s; }
.landing-footer-links a:hover { color: #60a5fa; }
.landing-footer-sep { display: none; color: #334155; }
@media (min-width: 640px) { .landing-footer-sep { display: inline; } }

.landing-wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s, background 0.15s;
}
.landing-wa-float:hover { background: #20bd5a; transform: scale(1.03); color: #fff; }
.landing-wa-float:active { transform: scale(0.98); }
.landing-wa-float svg { width: 2rem; height: 2rem; }

/* util compartilhado */
.btn-xl { padding: 1rem 2rem; border-radius: 0.75rem; font-size: 1.125rem; font-weight: 600; }

/* Dashboard + sidebar (alinhado meipro Layout.jsx + Sidebar.jsx) */
.is-hidden { display: none !important; }

.layout-dash { display: flex; min-height: 100vh; }

.sidebar {
  width: 16rem;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100dvh;
  max-height: 100vh;
  z-index: 30;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-head {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.sidebar-brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-brand-text { font-weight: 600; font-size: 1.125rem; color: #fff; }

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0.75rem 0.5rem;
}

.nav-svg { display: block; flex-shrink: 0; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 0.125rem;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-link.active { background: var(--sidebar-active); color: #93c5fd; }
.sidebar-link-ico { display: flex; color: inherit; }
.sidebar-link-ico .nav-svg { width: 1.25rem; height: 1.25rem; }

.nav-group { margin-bottom: 0.125rem; }
.nav-group > summary.nav-parent {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-group > summary.nav-parent::-webkit-details-marker { display: none; }
.nav-parent-left { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.nav-parent-left .nav-svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.nav-chevron { display: flex; color: inherit; opacity: 0.9; }
.nav-chevron .nav-svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.nav-group[open] > summary .nav-chevron .nav-svg { transform: rotate(180deg); }

.nav-group > summary.nav-parent:hover { background: var(--sidebar-hover); color: #fff; }
.nav-group:has(a.sub.active) > summary.nav-parent { background: var(--sidebar-active); color: #93c5fd; }

.sidebar .sub {
  display: block;
  padding: 0.5rem 0.75rem 0.5rem 2.75rem;
  margin: 0 0.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.sidebar .sub:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar .sub.active { background: var(--sidebar-active); color: #93c5fd; }

.sidebar-foot {
  padding: 0.75rem;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  background: var(--sidebar-bg);
}

.sidebar-user { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: 0.5rem; margin-bottom: 0.5rem; }
.sidebar-user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #475569;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--sidebar-border);
  position: relative;
}
.sidebar-user-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-user-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.sidebar-user-meta { min-width: 0; flex: 1; }
.sidebar-user-name { margin: 0; font-size: 0.875rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-email { margin: 0; font-size: 0.75rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-badge { margin: 0.125rem 0 0; font-size: 0.625rem; color: #64748b; }

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.sidebar-logout .nav-svg { width: 1rem; height: 1rem; }
.sidebar-logout:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-logout-muted { margin-bottom: 0.35rem; justify-content: center; }

.main-dash,
.main-admin {
  flex: 1;
  margin-left: 16rem;
  min-height: 100vh;
  background: #0d1117;
}

.dash-pad { padding: 1.5rem; }
@media (min-width: 1024px) {
  .dash-pad { padding: 2rem; }
}

/* Visão geral — cards como VisaoGeral.jsx */
.dash-page-head { margin-bottom: 2rem; }
.dash-h1 { margin: 0; font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1.2; }
.dash-subline { margin: 0.25rem 0 0; font-size: 0.875rem; color: #94a3b8; line-height: 1.5; }
.dash-sub-strong { color: #cbd5e1; }
.dash-sub-muted { color: #64748b; }

.dash-trial-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.dash-trial-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  flex-shrink: 0;
}
.dash-trial-ico .nav-svg { width: 1.25rem; height: 1.25rem; }
.dash-trial-title { margin: 0; font-size: 0.875rem; font-weight: 600; color: #6ee7b7; }
.dash-trial-text { margin: 0.125rem 0 0; font-size: 0.875rem; color: rgba(52, 211, 153, 0.95); line-height: 1.45; }

/* Assinatura — Planos / Histórico (alinhado ao meipro) */
.dash-assin-banner {
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
.dash-assin-banner--ok {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.dash-assin-banner-strong { margin: 0; font-weight: 600; color: #6ee7b7; }
.dash-assin-banner-sub { margin: 0.25rem 0 0; font-size: 0.8125rem; color: #94a3b8; }
.dash-assin-planos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
}
@media (min-width: 768px) {
  .dash-assin-planos-grid { grid-template-columns: repeat(2, 1fr); }
}
.dash-assin-empty-wide {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}
.dash-assin-plano-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.dash-assin-plano-card--destaque {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
}
.dash-assin-economia-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.dash-assin-plano-name { margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 600; color: #fff; }
.dash-assin-plano-price { margin: 0; font-size: 1.875rem; font-weight: 700; color: #fff; line-height: 1.2; }
.dash-assin-plano-price-suf { font-size: 1.125rem; font-weight: 400; color: #94a3b8; }
.dash-assin-plano-meta { margin: 0.25rem 0 0; font-size: 0.8125rem; color: #64748b; }
.dash-assin-feats { list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.dash-assin-feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
.dash-assin-feats li:last-child { margin-bottom: 0; }
.dash-assin-check-ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #34d399;
  margin-top: 0.125rem;
}
.dash-assin-cta {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: #cbd5e1;
  box-sizing: border-box;
}
.dash-assin-cta--destaque {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.dash-assin-cta--submit {
  cursor: pointer;
  opacity: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dash-assin-cta--submit:hover {
  color: #fff;
  border-color: #64748b;
}
.dash-assin-cta--destaque.dash-assin-cta--submit:hover {
  filter: brightness(1.08);
  border-color: #2563eb;
}
.dash-assin-checkout-form { margin: 0; }
.dash-assin-colab-note { margin: 0; font-size: 0.8125rem; color: #94a3b8; line-height: 1.45; }
.dash-assin-foot { margin-top: 1.5rem; font-size: 0.75rem; color: #64748b; line-height: 1.55; max-width: 56rem; }
.dash-assin-card-pad { padding: 1.5rem; }
.dash-assin-section-title { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; color: #fff; }
.dash-assin-status-block { margin: 0; }
.dash-assin-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.875rem;
}
.dash-assin-status-row:last-child { border-bottom: none; }
.dash-assin-status-label { color: #94a3b8; }
.dash-assin-status-val { color: #fff; font-weight: 500; text-align: right; }
.dash-assin-status-muted { color: #64748b; }
.dash-assin-spaced { margin-top: 1.5rem; }
.dash-assin-warn-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.dash-assin-warn-title { margin: 0; font-size: 0.875rem; font-weight: 600; color: #fbbf24; }
.dash-assin-warn-text { margin: 0.25rem 0 0; font-size: 0.875rem; color: #94a3b8; line-height: 1.45; }
.dash-assin-invoice-empty { margin: 0; font-size: 0.875rem; color: #64748b; }

/* Perfil — alinhado a Perfil.jsx (meipro) */
.dash-perf-max { max-width: 56rem; }
.dash-perf-stack { display: flex; flex-direction: column; gap: 2rem; }
.dash-perf-hidden-form {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dash-perf-logo-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .dash-perf-logo-row { flex-direction: row; align-items: flex-start; }
}
.dash-perf-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: #0d1117;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dash-perf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-perf-avatar-ph {
  font-size: 0.65rem;
  color: #64748b;
  text-align: center;
  padding: 0 0.5rem;
  line-height: 1.35;
}
.dash-perf-logo-actions { min-width: 0; }
.dash-perf-logo-title { margin: 0 0 0.5rem; font-weight: 600; color: #fff; font-size: 0.9375rem; }
.dash-perf-upload-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: #60a5fa;
  font-size: 0.875rem;
  cursor: pointer;
}
.dash-perf-upload-link:hover { color: #93c5fd; }
.dash-perf-upload-link .nav-svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.dash-perf-file-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.dash-perf-remove-link {
  display: block;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: #f87171;
  font-family: inherit;
  text-align: left;
}
.dash-perf-remove-link:hover { color: #fca5a5; text-decoration: underline; }
.dash-perf-hint { margin: 0.5rem 0 0; font-size: 0.75rem; color: #64748b; line-height: 1.45; max-width: 28rem; }
.dash-perf-pdv-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(37, 99, 235, 0.05);
}
@media (min-width: 640px) {
  .dash-perf-pdv-card { flex-direction: row; align-items: flex-start; }
}
.dash-perf-pdv-preview {
  width: 10rem;
  height: 5rem;
  border-radius: 0.75rem;
  background: #0d1117;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dash-perf-pdv-preview img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 0.25rem; }
.dash-perf-pdv-fallback { opacity: 0.85; }
.dash-perf-pdv-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: #fff;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-perf-pdv-title-ico { display: flex; color: #60a5fa; }
.dash-perf-pdv-title-ico .nav-svg { width: 1rem; height: 1rem; }
.dash-perf-pdv-desc { margin: 0 0 0.75rem; font-size: 0.875rem; color: #64748b; line-height: 1.45; max-width: 28rem; }
.dash-perf-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
  .dash-perf-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.dash-perf-plano-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #0d1117;
  border: 1px solid var(--border-card);
}
.dash-perf-plano-ico { display: flex; color: #fbbf24; }
.dash-perf-plano-ico .nav-svg { width: 1.25rem; height: 1.25rem; }
.dash-perf-plano-txt { color: #fff; font-weight: 500; }
.dash-perf-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}
.dash-perf-status .nav-svg { width: 1rem; height: 1rem; }
.dash-perf-status.is-ativo { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.dash-perf-status.is-inativo { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.dash-perf-actions { margin-top: 0.25rem; }
.dash-perf-btn-save { padding: 0.75rem 1.5rem; }
.dash-perf-senha { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border-card); max-width: 56rem; }
.dash-perf-senha-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.dash-perf-senha-ico { display: flex; color: #94a3b8; }
.dash-perf-senha-ico .nav-svg { width: 1.25rem; height: 1.25rem; }
.dash-perf-senha-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: #fff; }
.dash-perf-senha-sub { margin: 0 0 1.5rem; font-size: 0.875rem; color: #94a3b8; line-height: 1.45; max-width: 36rem; }
.dash-perf-senha-form { max-width: 36rem; }
.dash-perf-pw-wrap { position: relative; }
.dash-perf-pw-wrap .dash-fin-input { padding-right: 2.75rem; }
.dash-perf-pw-eye {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 0.375rem;
}
.dash-perf-pw-eye:hover { color: #cbd5e1; }
.dash-perf-pw-eye .nav-svg { width: 1rem; height: 1rem; }
.dash-perf-btn-senha {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  background: #334155;
  color: #fff;
  border: 1px solid var(--border-card);
  transition: background 0.15s;
}
.dash-perf-btn-senha:hover { background: #475569; color: #fff; }

/* Usuários — UsuariosEmpresa.jsx (meipro) */
.dash-usu-wrap { max-width: 64rem; }
.dash-usu-head .dash-h1 { margin-bottom: 0.25rem; }
.dash-usu-intro { max-width: 36rem; }
.dash-usu-btn-novo { text-decoration: none; color: #fff; }
.dash-usu-btn-novo:hover { color: #fff; }
.dash-usu-empty { padding: 2rem 1.5rem; }
.dash-fin-table-wrap { overflow-x: auto; }
.dash-usu-table { min-width: 32rem; }
.dash-usu-td-nome { color: #e2e8f0 !important; }
.dash-usu-th-actions,
.dash-usu-td-actions { text-align: right; white-space: nowrap; }
.dash-usu-td-actions { vertical-align: middle; }
.dash-usu-ico-form { display: inline; margin: 0; padding: 0; vertical-align: middle; }
.dash-usu-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-left: 0.125rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  vertical-align: middle;
  text-decoration: none;
}
.dash-usu-ico-btn:hover { color: #60a5fa; background: rgba(30, 41, 59, 0.45); }
.dash-usu-ico-btn--danger:hover { color: #f87171; }
.dash-usu-ico-btn .nav-svg { width: 1rem; height: 1rem; }

/* Não definir display:flex no dialog fechado — isso anula o display:none nativo e o formulário aparece na página. */
.dash-usu-dialog:not([open]) {
  display: none;
}
/* showModal() define [open] e coloca o dialog na camada superior. */
.dash-usu-dialog[open] {
  padding: 1rem;
  border: none;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  box-sizing: border-box;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.dash-usu-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.dash-usu-dialog-panel {
  width: 100%;
  max-width: 32rem;
  border-radius: 0.75rem;
  background: #161b22;
  border: 1px solid var(--border-card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  max-height: 90vh;
  overflow-y: auto;
}
.dash-usu-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-card);
}
.dash-usu-dialog-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: #fff; }
.dash-usu-dialog-close {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
}
.dash-usu-dialog-close:hover { color: #fff; background: var(--sidebar-hover); }
.dash-usu-dialog-close,
.dash-usu-btn-cancel {
  font-family: inherit;
  cursor: pointer;
}
button.dash-usu-dialog-close {
  border: none;
  background: transparent;
}
button.dash-usu-btn-cancel {
  border: 1px solid var(--border-card);
  background: transparent;
}
.dash-usu-dialog-close .nav-svg { width: 1.25rem; height: 1.25rem; }
.dash-usu-dialog-body { padding: 1rem; }
.dash-usu-perm-title { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; color: #cbd5e1; }
.dash-usu-perm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .dash-usu-perm-grid { grid-template-columns: repeat(2, 1fr); }
}
.dash-usu-perm-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  cursor: pointer;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.dash-usu-perm-item:hover { border-color: #64748b; }
.dash-usu-perm-item input { accent-color: #2563eb; }
.dash-usu-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-card);
}
.dash-usu-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  color: #cbd5e1;
  font-size: 0.875rem;
  text-decoration: none;
  background: transparent;
}
.dash-usu-btn-cancel:hover { background: var(--sidebar-hover); color: #fff; }
.dash-usu-btn-save { padding: 0.5rem 1rem; font-size: 0.875rem; }

.dash-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.dash-period-form { display: inline; margin: 0; }
.dash-btn-pdv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.dash-btn-pdv:hover { background: #3b82f6; color: #fff; }
.dash-btn-pdv .nav-svg { width: 1rem; height: 1rem; }

.dash-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.dash-icon-btn:hover { color: #fff; border-color: #64748b; }
.dash-icon-btn .nav-svg { width: 1rem; height: 1rem; }
.dash-icon-btn-static { cursor: default; }

.dash-select {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #cbd5e1;
  font-size: 0.875rem;
  font-family: inherit;
}
.dash-select:focus { outline: none; box-shadow: 0 0 0 1px #3b82f6; border-color: transparent; }

.dash-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .dash-metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dash-metric-grid { grid-template-columns: repeat(4, 1fr); } }

.dash-metric-card {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1rem;
  transition: border-color 0.15s;
}
.dash-metric-card:hover { border-color: #475569; }
.dash-metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.dash-metric-label { margin: 0 0 0.25rem; font-size: 0.875rem; color: #94a3b8; }
.dash-metric-val { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.dash-c-emerald { color: #34d399; }
.dash-c-red { color: #f87171; }
.dash-c-amber { color: #fbbf24; }
.dash-c-slate { color: #cbd5e1; }

.dash-metric-ico-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-metric-ico-wrap .nav-svg { width: 1.25rem; height: 1.25rem; }
.dash-bg-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.dash-bg-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.dash-bg-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.dash-bg-slate { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; }

.dash-lembretes {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.dash-lembretes-title {
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.dash-lembretes-ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
}
.dash-lembretes-ico .nav-svg { width: 1.25rem; height: 1.25rem; }
.dash-lembretes-list { margin: 0; padding: 0; list-style: none; }
.dash-lembretes-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
.dash-lembretes-list li:last-child { margin-bottom: 0; }
.dash-lembretes-bullet { color: #fbbf24; margin-top: 0.125rem; }

.dash-chart-card {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
}
.dash-chart-title { margin: 0 0 0.25rem; font-size: 1.125rem; font-weight: 600; color: #fff; }
.dash-chart-desc { margin: 0 0 1.5rem; font-size: 0.875rem; color: #94a3b8; }
.dash-chart-canvas-wrap {
  position: relative;
  height: 18rem;
  width: 100%;
}
@media (min-width: 768px) {
  .dash-chart-canvas-wrap { height: 20rem; }
}
.dash-chart-legend { margin: 1rem 0 0; font-size: 0.75rem; color: #94a3b8; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dash-leg-rec, .dash-leg-desp { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; margin-right: 0.35rem; vertical-align: middle; }
.dash-leg-rec { background: linear-gradient(180deg, #34d399, #059669); }
.dash-leg-desp { background: linear-gradient(180deg, #f87171, #dc2626); }

/* Páginas internas do painel (alinhado ao meipro) */
.dash-pad h1.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}
.dash-pad h1.page-title + .page-desc {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0 0 2rem;
  line-height: 1.45;
}
.dash-pad > .grid-cards,
.dash-pad > .flex-between { margin-bottom: 1.5rem; }
.dash-pad > .card {
  margin-bottom: 1.5rem;
  transition: border-color 0.15s;
}
.dash-pad > .card:hover { border-color: #475569; }
.dash-pad .card h2.page-title { font-size: 1.05rem; margin: 0 0 1rem; color: #fff; }
.dash-pad .grid-cards .stat-card { transition: border-color 0.15s; }
.dash-pad .grid-cards .stat-card:hover { border-color: #475569; }
.dash-fin-links { margin: 0 0 1.5rem; font-size: 0.875rem; }
.dash-fin-links a { color: #60a5fa; text-decoration: none; }
.dash-fin-links a:hover { color: #93c5fd; text-decoration: underline; }

/* Financeiro — visão (alinhado meipro FinanceiroVisao.jsx) */
.dash-fin-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .dash-fin-metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dash-fin-metric-grid { grid-template-columns: repeat(4, 1fr); } }

.dash-fin-metric-card {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.dash-fin-metric-card:hover { border-color: #475569; }
.dash-fin-metric-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dash-fin-metric-label { margin: 0 0 0.25rem; font-size: 0.875rem; color: #94a3b8; }
.dash-fin-metric-val { margin: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.dash-fin-metric-desc { margin: 0.25rem 0 0; font-size: 0.75rem; color: #64748b; line-height: 1.35; }
.dash-fin-ico-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-fin-ico-wrap .nav-svg { width: 1.5rem; height: 1.5rem; }

.dash-fin-table-section {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
}
.dash-fin-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-card);
}
.dash-fin-table-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: #fff; }
.dash-fin-table-sub { margin: 0.125rem 0 0; font-size: 0.875rem; color: #94a3b8; }
.dash-fin-table-link {
  font-size: 0.875rem;
  color: #60a5fa;
  text-decoration: none;
  white-space: nowrap;
}
.dash-fin-table-link:hover { color: #93c5fd; }
.dash-fin-empty {
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}
.dash-fin-empty a { color: #60a5fa; margin-left: 0.25rem; }
.dash-fin-empty a:hover { text-decoration: underline; color: #93c5fd; }

.dash-fin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dash-fin-table thead tr { border-bottom: 1px solid var(--border-card); text-align: left; }
.dash-fin-table th {
  padding: 1rem;
  color: #94a3b8;
  font-weight: 500;
}
.dash-fin-th-num { text-align: right; }
.dash-fin-table tbody tr {
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: background 0.12s;
}
.dash-fin-table tbody tr:hover { background: rgba(26, 35, 50, 0.3); }
.dash-fin-table tbody tr:last-child { border-bottom: none; }
.dash-fin-td-desc { padding: 1rem; color: #fff; }
.dash-fin-td-val {
  padding: 1rem;
  text-align: right;
  color: #34d399;
  font-weight: 500;
}
.dash-fin-td-date { padding: 1rem; color: #cbd5e1; }
.dash-fin-td-text { padding: 1rem; color: #cbd5e1; }
.dash-fin-td-val-red {
  padding: 1rem;
  text-align: right;
  color: #f87171;
  font-weight: 500;
}
.dash-fin-td-num-muted {
  padding: 1rem;
  text-align: right;
  color: #cbd5e1;
  font-weight: 500;
}
.dash-fin-th-actions { width: 5.5rem; }
.dash-fin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.dash-fin-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  flex-shrink: 0;
}
.dash-fin-primary-btn:hover { background: #3b82f6; }
.dash-fin-primary-btn .nav-svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.dash-fin-summary-bar {
  padding: 1rem;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.875rem;
  color: #94a3b8;
}
.dash-fin-summary-bar strong { font-size: 1.25rem; font-weight: 600; margin-left: 0.25rem; }
.dash-fin-actions { display: flex; align-items: center; gap: 0.5rem; }
.dash-fin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, background 0.12s;
}
.dash-fin-icon-btn:hover { color: #fff; background: rgba(26, 35, 50, 0.5); }
.dash-fin-icon-btn.dash-fin-icon-btn-danger:hover { color: #f87171; background: rgba(239, 68, 68, 0.12); }
.dash-fin-icon-btn .nav-svg { width: 1rem; height: 1rem; }
.dash-fin-pago-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: none;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
.dash-fin-pago-btn:hover { background: rgba(16, 185, 129, 0.3); }
.dash-fin-pago-btn .nav-svg { width: 0.75rem; height: 0.75rem; }
.dash-fin-status-pago { font-size: 0.875rem; color: #34d399; }
.dash-fin-dialog {
  border: none;
  padding: 0;
  border-radius: 0.75rem;
  background: var(--bg-card);
  color: #fff;
  max-width: 28rem;
  width: calc(100% - 2rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}
.dash-fin-dialog-lg {
  max-width: 42rem;
  width: calc(100% - 2rem);
}
.dash-fin-dialog-scroll {
  max-height: min(70vh, 28rem);
  overflow-y: auto;
}
.dash-fin-dialog-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.dash-fin-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .dash-fin-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.dash-fin-field-span {
  grid-column: 1 / -1;
}
.dash-fin-form-grid .dash-fin-field {
  margin-bottom: 0;
}
.dash-fin-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dash-fin-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-card);
}
.dash-fin-dialog-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: #fff; }
.dash-fin-dialog-sub { margin: 0.25rem 0 0; font-size: 0.875rem; color: #94a3b8; line-height: 1.4; }
.dash-fin-dialog-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, background 0.12s;
}
.dash-fin-dialog-close:hover { color: #fff; background: rgba(26, 35, 50, 0.5); }
.dash-fin-dialog-close .nav-svg { width: 1.25rem; height: 1.25rem; }
.dash-fin-dialog-body { padding: 1.5rem; }
.dash-fin-field { margin-bottom: 1rem; }
.dash-fin-field:last-of-type { margin-bottom: 0; }
.dash-fin-label { display: block; font-size: 0.875rem; color: #94a3b8; margin-bottom: 0.25rem; }
.dash-fin-input,
.dash-fin-select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}
.dash-fin-input::placeholder { color: #64748b; }
.dash-fin-input-wrap { position: relative; }
.dash-fin-input-wrap .dash-fin-cal-ico {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
}
.dash-fin-input-wrap .dash-fin-cal-ico .nav-svg { width: 1rem; height: 1rem; }
.dash-fin-input-wrap .dash-fin-input { padding-right: 2.5rem; }
.dash-fin-dialog-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.5rem; margin-top: 0.5rem; }
.dash-fin-btn-submit {
  flex: 1;
  min-width: 8rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.dash-fin-btn-submit:hover { background: #3b82f6; }
.dash-fin-btn-submit.dash-fin-btn-block { flex: none; width: 100%; }
.dash-fin-btn-cancel {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: transparent;
  color: #94a3b8;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, border-color 0.12s;
}
.dash-fin-btn-cancel:hover { color: #fff; border-color: #64748b; }
.dash-fin-pend-card {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}
.dash-fin-pend-card strong { font-size: 1.25rem; font-weight: 600; margin-left: 0.25rem; }

/* Estoque — badges tipo movimentação */
.dash-estoque-tipo {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}
.dash-estoque-tipo-ent {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.dash-estoque-tipo-sai {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}

/* Notas fiscais — status */
.dash-nf-st {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}
.dash-nf-st-pen {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.dash-nf-st-emi {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.dash-nf-st-can {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}

/* Notas fiscais — atalhos emissão (links externos) */
.dash-nf-atalhos-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  padding: 1rem 1.5rem 1.5rem;
}
@media (min-width: 640px) {
  .dash-nf-atalhos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .dash-nf-atalhos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dash-nf-atalho-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  padding: 1rem 1.15rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.dash-nf-atalho-card:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}
.dash-nf-atalho-card:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.dash-nf-atalho-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.dash-nf-atalho-ico {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}
.dash-nf-atalho-ico .nav-svg {
  width: 1.1rem;
  height: 1.1rem;
}
.dash-nf-atalho-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.dash-nf-atalho-desc {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.45;
}
.dash-nf-atalho-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #60a5fa;
}
.dash-nf-atalho-foot .nav-svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* DAS — pago */
.dash-das-pago {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.dash-das-pago-sim {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.dash-das-pago-nao {
  background: rgba(100, 116, 139, 0.22);
  color: #cbd5e1;
}

/* DAS mensal — layout meipro (alerta, gov, status) */
.dash-das-alert-venc {
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.dash-das-alert-venc p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fde68a;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}
.dash-das-alert-venc .nav-svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
}
.dash-das-gov-panel {
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(37, 99, 235, 0.1);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.dash-das-gov-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-das-gov-panel h3 .nav-svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #60a5fa;
  flex-shrink: 0;
}
.dash-das-gov-lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.55;
}
.dash-das-gov-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
a.dash-das-gov-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
a.dash-das-gov-btn:hover {
  background: #3b82f6;
  color: #fff !important;
}
a.dash-das-gov-btn .nav-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
a.dash-das-gov-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: transparent;
  color: #60a5fa !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
a.dash-das-gov-btn-outline:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd !important;
}
a.dash-das-gov-btn-outline .nav-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.dash-das-footer-note {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  padding: 1rem 1.25rem;
}
.dash-das-footer-note p {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
}
.dash-das-st {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.dash-das-st-pago {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.dash-das-st-pend {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
button.dash-das-marcar-pago {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: none;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
button.dash-das-marcar-pago:hover {
  background: rgba(16, 185, 129, 0.3);
}
button.dash-das-marcar-pago .nav-svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Tarefas — agenda meipro */
.dash-tar-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.dash-tar-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  padding: 1rem 1.25rem;
}
@media (min-width: 1024px) {
  .dash-tar-card {
    padding: 1.5rem;
  }
}
.dash-tar-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dash-tar-cal-nav-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
  font-family: inherit;
}
.dash-tar-cal-nav-btn:hover {
  color: #fff;
  background: rgba(26, 35, 50, 0.45);
}
.dash-tar-cal-title {
  font-weight: 500;
  color: #fff;
  text-transform: capitalize;
}
.dash-tar-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  text-align: center;
}
.dash-tar-cal-dow {
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}
.dash-tar-cal-cell {
  padding: 0.25rem 0;
}
.dash-tar-cal-day {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.25rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  font-family: inherit;
  transition: background 0.12s;
  text-decoration: none;
  box-sizing: border-box;
}
.dash-tar-cal-day:hover {
  background: rgba(26, 35, 50, 0.45);
}
.dash-tar-cal-day.is-today {
  background: rgba(71, 85, 105, 0.55);
  color: #fff;
}
.dash-tar-cal-day.is-sel {
  background: #1e40af;
  color: #fff;
}
.dash-tar-cal-day.is-sel:hover {
  background: #1d4ed8;
}
.dash-tar-cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}
.dash-tar-dia-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
}
.dash-tar-muted {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
}
.dash-tar-pad {
  padding: 1.5rem 0;
}
.dash-tar-dia-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-tar-dia-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.12s;
}
.dash-tar-dia-item:hover {
  background: rgba(26, 35, 50, 0.35);
}
.dash-tar-inline-form {
  margin: 0;
  display: inline;
}
.dash-tar-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  transition: color 0.12s;
}
.dash-tar-toggle:hover {
  color: #34d399;
}
.dash-tar-toggle.is-done {
  color: #34d399;
}
.dash-tar-toggle .nav-svg {
  width: 1.25rem;
  height: 1.25rem;
}
.dash-tar-dia-body {
  flex: 1;
  min-width: 0;
}
.dash-tar-dia-title {
  margin: 0;
  font-weight: 500;
  color: #fff;
}
.dash-tar-dia-title.is-done {
  color: #94a3b8;
  text-decoration: line-through;
}
.dash-tar-dia-meta {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
.dash-tar-del {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.12s, background 0.12s;
}
.dash-tar-del:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}
.dash-tar-del .nav-svg {
  width: 1rem;
  height: 1rem;
}
.dash-tar-filtros-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dash-tar-filtros-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-tar-filtros-title .nav-svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
  flex-shrink: 0;
}
.dash-tar-count {
  font-size: 0.875rem;
  color: #64748b;
}
.dash-tar-filtros-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .dash-tar-filtros-row {
    flex-direction: row;
    align-items: flex-end;
  }
}
.dash-tar-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.dash-tar-search-wrap .nav-svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #64748b;
  pointer-events: none;
}
.dash-tar-search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}
.dash-tar-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.dash-tar-select {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  color: #e2e8f0;
  font-size: 0.875rem;
  min-width: 140px;
  font-family: inherit;
}
.dash-tar-table-shell {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid rgba(30, 41, 59, 0.5);
}
.dash-tar-th-narrow {
  width: 2.75rem;
}
.dash-tar-td-title {
  font-weight: 500;
  color: #fff;
}
.dash-tar-td-title-done {
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}
.dash-tar-mobile-meta {
  display: block;
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
@media (min-width: 768px) {
  .dash-tar-mobile-meta {
    display: none;
  }
}
.dash-tar-td-md {
  display: none;
}
@media (min-width: 768px) {
  .dash-tar-td-md {
    display: table-cell;
  }
}
.dash-tar-td-sm {
  display: none;
}
@media (min-width: 640px) {
  .dash-tar-td-sm {
    display: table-cell;
  }
}
.dash-tar-td-lg {
  display: none;
}
@media (min-width: 1024px) {
  .dash-tar-td-lg {
    display: table-cell;
  }
}
.dash-tar-desc {
  max-width: 220px;
  color: #94a3b8;
  font-size: 0.875rem;
}
.dash-tar-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Botões secundários em linha (Emitida, Pagar, etc.) */
.dash-fin-sec-btn {
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-card);
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.dash-fin-sec-btn:hover {
  color: #e2e8f0;
  border-color: #64748b;
  background: rgba(26, 35, 50, 0.35);
}

/* Tutoriais — layout meipro */
.dash-tuto-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
}
.dash-tuto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .dash-tuto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.dash-tuto-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.15s;
}
.dash-tuto-card:hover {
  border-color: #475569;
}
.dash-tuto-ico-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-tuto-ico-wrap .nav-svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #60a5fa;
}
.dash-tuto-body {
  flex: 1;
  min-width: 0;
}
.dash-tuto-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.dash-tuto-desc {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.45;
}
.dash-tuto-material {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #60a5fa;
  text-decoration: none;
}
.dash-tuto-material:hover {
  color: #93c5fd;
}
.dash-tuto-material .nav-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.dash-tuto-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}
.dash-tuto-soon .nav-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.dash-tuto-tip {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
}
.dash-tuto-tip-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.dash-tuto-tip-text {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
}
.dash-tuto-tip-text a {
  color: #60a5fa;
  text-decoration: none;
}
.dash-tuto-tip-text a:hover {
  text-decoration: underline;
  color: #93c5fd;
}

/* Calculadoras — alinhado ao meipro (Precificação / Pró-labore) */
.dash-calc-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.dash-calc-tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.dash-calc-tab:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.dash-calc-tab.is-active {
  background: var(--sidebar-active);
  color: #93c5fd;
}
.dash-calc-mei-wrap {
  max-width: 42rem;
}
.dash-calc-mei-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  overflow: hidden;
}
.dash-calc-mei-card-head {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-card);
}
.dash-calc-mei-card-head h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.dash-calc-mei-card-head p {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.45;
}
.dash-calc-mei-card-body {
  padding: 1.5rem;
}
.dash-calc-mei-card-body .dash-fin-form-grid {
  margin-bottom: 1.5rem;
}
.dash-calc-field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}
.dash-calc-margem-inner {
  display: flex;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  overflow: hidden;
}
.dash-calc-margem-inner .dash-calc-margem-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.dash-calc-margem-btns {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-card);
}
.dash-calc-step-btn {
  padding: 0.2rem 0.4rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
}
.dash-calc-step-btn:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.dash-calc-step-btn .nav-svg {
  width: 1rem;
  height: 1rem;
}
.dash-calc-submit-full {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.dash-calc-submit-full:hover {
  background: #3b82f6;
}
.dash-calc-mei-results {
  display: none;
  padding: 1.5rem;
  border-top: 1px solid var(--border-card);
}
.dash-calc-mei-results.is-visible {
  display: block;
}
.dash-calc-res-h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.dash-calc-res-block + .dash-calc-res-block {
  margin-top: 1.5rem;
}
.dash-calc-res-val {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}
.dash-calc-res-val--blue {
  color: #60a5fa;
}
.dash-calc-res-val--emerald {
  color: #34d399;
}
.dash-calc-res-val--red {
  color: #f87171;
}
.dash-calc-res-val--lg {
  font-size: 1.25rem;
}
.dash-calc-res-label {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}
.dash-calc-res-hint {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
  max-width: 36rem;
}
.dash-calc-res-muted {
  margin: 0;
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Vendas — lista + filtros */
.dash-vendas-filtros { margin-bottom: 1rem; }
.dash-vendas-filtros-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.dash-vendas-search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 28rem; }
.dash-vendas-search-ico {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  display: flex;
}
.dash-vendas-search-ico .nav-svg { width: 1rem; height: 1rem; }
.dash-vendas-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}
.dash-vendas-select {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: #cbd5e1;
  font-size: 0.875rem;
  font-family: inherit;
}
.dash-vendas-select { min-width: 10rem; }
.dash-vendas-filtro-data {
  min-width: 9.5rem;
  max-width: 11rem;
}
.dash-vendas-table { min-width: 720px; }
.dash-vendas-desc { max-width: 20rem; font-size: 0.8125rem; line-height: 1.35; }

/* PDV fullscreen */
.pdv-dialog {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.pdv-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.pdv-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  background: #030712;
  color: #e2e8f0;
  color-scheme: dark;
}
.pdv-shell.pdv-light {
  background: #f1f5f9;
  color: #0f172a;
  color-scheme: light;
}
.pdv-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
}
.pdv-light .pdv-head {
  border-bottom-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
}
.pdv-head-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.pdv-head-ico {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #93c5fd;
}
.pdv-head-ico--logo {
  display: flex;
  padding: 0.2rem;
  overflow: hidden;
}
.pdv-head-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0.5rem;
}
.pdv-light .pdv-head-ico {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #2563eb;
}
@media (min-width: 640px) {
  .pdv-head-ico { display: flex; }
}
.pdv-head-title-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pdv-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: #fff; line-height: 1.2; }
.pdv-light .pdv-title { color: #0f172a; }
.pdv-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.pdv-light .pdv-badge {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
.pdv-sub { margin: 0.25rem 0 0; font-size: 0.8125rem; color: #94a3b8; }
.pdv-light .pdv-sub { color: #475569; }
.pdv-head-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.pdv-total-block { display: none; text-align: right; padding-right: 0.75rem; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.pdv-light .pdv-total-block { border-right-color: #cbd5e1; }
@media (min-width: 640px) {
  .pdv-total-block { display: block; }
}
.pdv-total-lab { display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; }
.pdv-total-val { font-size: 1.125rem; font-weight: 700; color: #34d399; }
.pdv-light .pdv-total-val { color: #059669; }
.pdv-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
.pdv-light .pdv-icon-btn {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #334155;
}
.pdv-icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.pdv-icon-btn .nav-svg { width: 1.25rem; height: 1.25rem; }
.pdv-form { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.pdv-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem 1rem;
  overflow: auto;
}
@media (min-width: 1024px) {
  .pdv-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    padding: 1rem 1.5rem 1.25rem;
    gap: 1.25rem;
  }
}
.pdv-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
}
@media (min-width: 1024px) {
  .pdv-aside { min-height: 0; align-items: stretch; }
}
.pdv-iniciais {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 22rem);
  aspect-ratio: 1;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(255, 255, 255, 0.08), rgba(16, 185, 129, 0.25));
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  user-select: none;
}
.pdv-light .pdv-iniciais {
  background: linear-gradient(135deg, #dbeafe, #fff, #d1fae5);
  color: #0f172a;
}
.pdv-iniciais--logo {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0;
  line-height: 0;
}
.pdv-light .pdv-iniciais--logo {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.pdv-aside-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pdv-panel {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.45);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}
.pdv-light .pdv-panel {
  border-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.pdv-warn { margin: 0; font-size: 0.875rem; color: #fbbf24; }
.pdv-light .pdv-warn { color: #b45309; }
.pdv-warn a { color: #60a5fa; }
.pdv-panel-h { margin: 0; font-size: 0.875rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.pdv-light .pdv-panel-h { color: #0f172a; }
.pdv-panel-h::before { content: ''; width: 1.5rem; height: 0.25rem; border-radius: 9999px; background: #34d399; }
.pdv-panel-hint { margin: 0; font-size: 0.6875rem; color: #64748b; }
.pdv-add-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; }
.pdv-field-grow { flex: 1; min-width: 200px; position: relative; }
.pdv-field-qtd { width: 5rem; }
.pdv-lbl { display: block; font-size: 0.75rem; font-weight: 500; color: #94a3b8; margin-bottom: 0.35rem; }
.pdv-light .pdv-lbl { color: #475569; }
.pdv-input-icon { position: relative; }
.pdv-input-icon .nav-svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #64748b;
  pointer-events: none;
}
.pdv-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.65);
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}
.pdv-input-icon .pdv-input { padding-left: 2.5rem; }
.pdv-light .pdv-input {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
}
.pdv-select { cursor: pointer; }
.pdv-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  max-height: 14rem;
  overflow-y: auto;
  z-index: 50;
  border-radius: 0.75rem;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.pdv-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
}
.pdv-dd-item:hover { background: rgba(26, 35, 50, 0.5); }
.pdv-light .pdv-dd-item { color: #0f172a; }
.pdv-light .pdv-dd-item:hover { background: #f1f5f9; }
.pdv-add-btn { white-space: nowrap; }
.pdv-cart-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pdv-cart-h { margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 600; color: #94a3b8; }
.pdv-cart { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 12rem; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0.5rem; }
.pdv-light .pdv-cart { border-color: #e2e8f0; }
.pdv-cart-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  font-size: 0.8125rem;
}
.pdv-light .pdv-cart-line { border-bottom-color: #e2e8f0; }
.pdv-cart-line:last-child { border-bottom: none; }
.pdv-cart-nome { flex: 1; color: #cbd5e1; }
.pdv-light .pdv-cart-nome { color: #334155; }
.pdv-cart-preco { font-weight: 600; color: #34d399; }
.pdv-cart-del {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.25rem;
}
.pdv-cart-del:hover { color: #f87171; }
.pdv-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .pdv-bottom-grid { grid-template-columns: 1fr 1fr; }
}
.pdv-span2 { grid-column: 1 / -1; }
.pdv-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: #94a3b8; cursor: pointer; }
.pdv-light .pdv-check { color: #475569; }
.pdv-actions { padding-top: 0.25rem; }
.pdv-final-btn { width: 100%; justify-content: center; }

/* Cards / tables (conteúdo interno das páginas) */
.page-title { font-size: 1.5rem; font-weight: 600; color: #fff; margin: 0 0 0.25rem; }
.page-desc { color: var(--muted); font-size: 0.875rem; margin-bottom: 2rem; }
.card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.data th, table.data td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border-card); }
table.data th { color: var(--muted); font-weight: 500; }
table.data tr:hover td { background: rgba(255,255,255,0.02); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 0.75rem; padding: 1.25rem; }
.stat-card h3 { margin: 0; font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.stat-card .val { font-size: 1.5rem; font-weight: 600; margin-top: 0.5rem; }
.stat-card-note {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.35;
}

/* Admin dashboard — alinhado meipro AdminDashboard.jsx */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.admin-stat-card {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.admin-stat-card:hover { border-color: #475569; }
.admin-stat-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.admin-stat-body { min-width: 0; flex: 1; }
.admin-stat-k {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.3;
}
.admin-stat-val {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.admin-stat-val--blue { color: #60a5fa; }
.admin-stat-val--emerald { color: #34d399; }
.admin-stat-val--sky { color: #38bdf8; }
.admin-stat-val--violet { color: #c4b5fd; }
.admin-stat-val--slate { color: #cbd5e1; }
.admin-stat-note {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.35;
}
.admin-stat-icon-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-stat-icon-wrap .nav-svg {
  width: 1.5rem;
  height: 1.5rem;
}
.admin-stat-icon-wrap--blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.admin-stat-icon-wrap--emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.admin-stat-icon-wrap--sky { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }
.admin-stat-icon-wrap--violet { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.admin-stat-icon-wrap--slate { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; }

.admin-quick-actions { margin-bottom: 0; }
.admin-quick-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.admin-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #d97706;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s;
}
.admin-quick-btn:hover { background: #f59e0b; color: #fff; }
.admin-quick-btn .nav-svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Admin — lista de empresas (alinhado meipro AdminEmpresas.jsx) */
.admin-emp-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .admin-emp-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.admin-emp-lead { margin-top: 0.25rem; }
.admin-emp-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .admin-emp-toolbar {
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
  }
}
.admin-emp-search-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
}
@media (min-width: 640px) {
  .admin-emp-search-wrap { min-width: 17.5rem; width: auto; }
}
@media (min-width: 768px) {
  .admin-emp-search-wrap { min-width: 20rem; }
}
.admin-emp-search-ico {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: #64748b;
  pointer-events: none;
}
.admin-emp-search-ico .nav-svg { width: 1rem; height: 1rem; }
.admin-emp-search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}
.admin-emp-search-input::placeholder { color: #64748b; }
.admin-emp-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px #3b82f6;
  border-color: transparent;
}
.admin-emp-limit-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.admin-emp-limit-label {
  font-size: 0.875rem;
  color: #94a3b8;
  white-space: nowrap;
}
.admin-emp-select {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
}

.admin-emp-table-card {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
}
.admin-emp-empty {
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}
.admin-emp-table-scroll { overflow-x: auto; }
.admin-emp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-emp-table thead tr {
  border-bottom: 1px solid var(--border-card);
  text-align: left;
  color: #94a3b8;
}
.admin-emp-table th {
  padding: 1rem;
  font-weight: 500;
  white-space: nowrap;
}
.admin-emp-th-num { text-align: center; }
.admin-emp-th-action { width: 4rem; padding: 1rem; }
.admin-emp-table tbody tr {
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: background 0.12s;
}
.admin-emp-table tbody tr:hover { background: rgba(26, 35, 50, 0.3); }
.admin-emp-table td { padding: 1rem; vertical-align: middle; }
.admin-emp-td-empresa { min-width: 8rem; }
.admin-emp-empresa-nome {
  margin: 0;
  font-weight: 500;
  color: #fff;
}
.admin-emp-td-muted { color: #cbd5e1; }
.admin-emp-td-num {
  text-align: center;
  color: #cbd5e1;
}
.admin-emp-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.admin-emp-badge--ok {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.admin-emp-badge--exp {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.admin-emp-td-action { width: 4rem; text-align: right; }
.admin-emp-row-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}
.admin-emp-row-link:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}
.admin-emp-row-link .nav-svg { width: 1rem; height: 1rem; }

.admin-emp-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-card);
  background: rgba(13, 17, 23, 0.4);
}
@media (min-width: 640px) {
  .admin-emp-footer {
    flex-direction: row;
  }
}
.admin-emp-footer-meta {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
  text-align: center;
}
@media (min-width: 640px) {
  .admin-emp-footer-meta { text-align: left; }
}
.admin-emp-footer-strong { color: #cbd5e1; }
.admin-emp-pager {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.admin-emp-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  font-size: 0.875rem;
  color: #cbd5e1;
  text-decoration: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
a.admin-emp-page-btn:hover { background: rgba(26, 35, 50, 0.5); color: #fff; }
.admin-emp-page-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}
.admin-emp-page-btn .nav-svg { width: 1rem; height: 1rem; }
.admin-emp-page-label {
  font-size: 0.875rem;
  color: #94a3b8;
  padding: 0 0.5rem;
}

/* Admin — planos (alinhado meipro AdminPlanos.jsx) */
.admin-plan-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .admin-plan-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.admin-plan-head-text { min-width: 0; }
.admin-plan-lead { margin-top: 0.25rem; }
.admin-plan-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #d97706;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.admin-plan-btn-new:hover { background: #f59e0b; color: #fff; }
.admin-plan-btn-new-ico { display: flex; line-height: 0; }
.admin-plan-btn-new-ico .nav-svg { width: 1.25rem; height: 1.25rem; }
.admin-plan-money {
  color: #34d399;
  font-weight: 500;
}
.admin-plan-dest {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}
.admin-plan-dest--yes {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.admin-plan-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}
.admin-plan-inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}
.admin-plan-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
  transition: color 0.12s, background 0.12s;
}
.admin-plan-icon-btn .nav-svg { width: 1rem; height: 1rem; }
.admin-plan-icon-btn--edit:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}
.admin-plan-icon-btn--del:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}
.admin-plan-dialog:not([open]) {
  display: none;
}
.admin-plan-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
}
.admin-plan-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.admin-plan-dialog-panel {
  width: min(28rem, calc(100vw - 2rem));
  border-radius: 0.75rem;
  background: #1e293b;
  border: 1px solid var(--border-card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.admin-plan-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-card);
}
.admin-plan-dialog-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.admin-plan-dialog-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.12s, background 0.12s;
}
.admin-plan-dialog-close:hover {
  color: #fff;
  background: rgba(26, 35, 50, 0.5);
}
.admin-plan-dialog-close .nav-svg { width: 1.25rem; height: 1.25rem; }
.admin-plan-dialog-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-plan-field { min-width: 0; }
.admin-plan-label {
  display: block;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}
.admin-plan-input,
.admin-plan-select,
.admin-plan-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}
.admin-plan-input::placeholder,
.admin-plan-textarea::placeholder { color: #64748b; }
.admin-plan-textarea {
  min-height: 5rem;
  resize: vertical;
  line-height: 1.45;
}
.admin-plan-input:focus,
.admin-plan-select:focus,
.admin-plan-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px #3b82f6;
  border-color: transparent;
}
.admin-plan-grid2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 480px) {
  .admin-plan-grid2 { grid-template-columns: 1fr; }
}
.admin-plan-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.admin-plan-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #d97706;
  cursor: pointer;
}
.admin-plan-dialog-foot {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}
.admin-plan-btn-cancel {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: transparent;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-plan-btn-cancel:hover { background: rgba(51, 65, 85, 0.5); }
.admin-plan-btn-submit {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #d97706;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-plan-btn-submit:hover { background: #f59e0b; }

/* Admin — tutoriais (modal mais largo, alinhado meipro AdminTutoriais.jsx) */
.admin-plan-dialog-panel.admin-tut-dialog-lg {
  width: min(32rem, calc(100vw - 2rem));
  max-height: min(90vh, 36rem);
  overflow-y: auto;
}
.admin-tut-inline-strong {
  color: #cbd5e1;
}
.admin-tut-th-ordem {
  width: 5rem;
  white-space: nowrap;
}
.admin-tut-link {
  display: inline-block;
  max-width: 11.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: #94a3b8;
  font-size: 0.875rem;
}
.admin-tut-ativo {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  background: rgba(71, 85, 105, 0.35);
  color: #64748b;
}
.admin-tut-ativo--yes {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.admin-tut-textarea {
  min-height: 5.5rem;
}

/* Admin — configurações (alinhado meipro AdminConfiguracoes.jsx) */
.admin-cfg-page {
  max-width: 48rem;
}
.admin-cfg-head {
  margin-bottom: 2rem;
}
.admin-cfg-lead {
  margin-top: 0.25rem;
}
.admin-cfg-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.admin-cfg-card {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
}
.admin-cfg-h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.admin-cfg-h2--spaced {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-card);
}
.admin-cfg-h2-ico {
  display: flex;
  line-height: 0;
  flex-shrink: 0;
}
.admin-cfg-h2-ico .nav-svg {
  width: 1.25rem;
  height: 1.25rem;
}
.admin-cfg-h2-ico--emerald {
  color: #34d399;
}
.admin-cfg-h2-ico--amber {
  color: #fbbf24;
}
.admin-cfg-h2-ico--sky {
  color: #38bdf8;
}
.admin-cfg-intro {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}
.admin-cfg-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-cfg-link {
  color: #fbbf24;
  text-decoration: none;
}
.admin-cfg-link:hover {
  text-decoration: underline;
}
.admin-cfg-strong {
  color: #cbd5e1;
  font-weight: 600;
}
.admin-cfg-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}
.admin-cfg-hint--block {
  display: block;
  margin-top: 0.5rem;
}
.admin-cfg-hint--inline {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.admin-cfg-code {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}
.admin-cfg-callout {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(253, 230, 138, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.1);
}
.admin-cfg-callout-strong {
  color: #fde68a;
  font-weight: 600;
}
.admin-cfg-pass-wrap {
  position: relative;
}
.admin-cfg-pass-input {
  padding-right: 2.75rem;
}
.admin-cfg-eye {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
  transition: color 0.12s, background 0.12s;
}
.admin-cfg-eye:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.admin-cfg-eye .nav-svg {
  width: 1rem;
  height: 1rem;
}
.admin-cfg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background: #d97706;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, opacity 0.12s;
  width: fit-content;
}
.admin-cfg-submit:hover {
  background: #f59e0b;
}
.admin-cfg-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-cfg-wa-test-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}
@media (min-width: 640px) {
  .admin-cfg-wa-test-row {
    flex-direction: row;
    align-items: flex-start;
  }
}
.admin-cfg-btn-wa-test {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: transparent;
  color: #7dd3fc;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
}
.admin-cfg-btn-wa-test:hover {
  background: rgba(56, 189, 248, 0.1);
}
.admin-cfg-btn-wa-ico {
  display: flex;
  line-height: 0;
}
.admin-cfg-btn-wa-ico .nav-svg {
  width: 1rem;
  height: 1rem;
}
.admin-cfg-msg-block {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.admin-cfg-btn-send-test {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #0284c7;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, opacity 0.12s;
}
.admin-cfg-btn-send-test:hover:not(:disabled) {
  background: #0ea5e9;
}
.admin-cfg-btn-send-test:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-cfg-wa-msg {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}
.admin-cfg-wa-msg--ok {
  color: #34d399;
}
.admin-cfg-wa-msg--err {
  color: #f87171;
}

/* Admin — detalhe da empresa (alinhado meipro AdminEmpresaDetalhe.jsx) */
.admin-edet-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.12s;
}
.admin-edet-back:hover { color: #fff; }
.admin-edet-back .nav-svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.admin-edet-page-head { margin-bottom: 2rem; }

.admin-edet-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-edet-card {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.5rem;
}
.admin-edet-card-spaced { margin-top: 1.5rem; }
.admin-edet-card-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.admin-edet-card-desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.45;
}
.admin-edet-card .admin-edet-card-desc + .admin-edet-grid2 { margin-top: 0; }

.admin-edet-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .admin-edet-grid2 { grid-template-columns: repeat(2, 1fr); }
}
.admin-edet-grid-max { max-width: 42rem; }
.admin-edet-span2 { grid-column: 1 / -1; }
.admin-edet-grid-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .admin-edet-grid-bottom { grid-template-columns: repeat(2, 1fr); }
}

.admin-edet-field { min-width: 0; }
.admin-edet-label {
  display: block;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}
.admin-edet-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}
.admin-edet-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px #3b82f6;
  border-color: transparent;
}
.admin-edet-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}
.admin-edet-hint--warn { color: #f87171; }

.admin-edet-label-sub {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}
.admin-edet-trial-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.admin-edet-trial-date {
  flex: 1;
  min-width: 10rem;
}
.admin-edet-trial-time {
  width: 100%;
  max-width: 9.5rem;
}
@media (min-width: 480px) {
  .admin-edet-trial-time { width: auto; }
}

.admin-edet-logo-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 640px) {
  .admin-edet-logo-row { flex-direction: row; }
}
.admin-edet-logo-preview {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: #0d1117;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-edet-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-edet-logo-ph {
  font-size: 0.625rem;
  color: #475569;
  text-align: center;
  padding: 0 0.25rem;
}
.admin-edet-logo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.admin-edet-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-card);
  background: transparent;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-edet-btn-upload:hover { background: rgba(26, 35, 50, 0.5); }
.admin-edet-btn-upload .nav-svg { width: 1rem; height: 1rem; }
.admin-edet-inline-form { display: inline; margin: 0; padding: 0; }
.admin-edet-btn-remove {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.875rem;
  color: #f87171;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.admin-edet-btn-remove:hover { color: #fca5a5; }

.admin-edet-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.admin-edet-btn-save {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-edet-btn-save:hover { background: #3b82f6; }

.admin-edet-kv {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}
.admin-edet-kv li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-card);
}
.admin-edet-kv li span { color: #94a3b8; }
.admin-edet-kv li strong { color: #fff; font-weight: 500; }
.admin-edet-kv-last { border-bottom: none !important; }
.admin-edet-money--in { color: #34d399 !important; }
.admin-edet-money--out { color: #f87171 !important; }

.admin-edet-trial-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}
.admin-edet-trial-dias { width: 8rem; flex-shrink: 0; }
.admin-edet-btn-trial {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #d97706;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-edet-btn-trial:hover { background: #f59e0b; }

.row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Chart simple bars */
.chart-row { display: flex; align-items: flex-end; gap: 0.35rem; height: 140px; padding-top: 1rem; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.chart-bar { width: 100%; max-width: 36px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #34d399, #059669); min-height: 4px; }
.chart-bar.desp { background: linear-gradient(180deg, #f87171, #dc2626); }
.chart-label { font-size: 0.65rem; color: var(--muted); }

.muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
