:root { --page-bg: #f5f7fb; }
body { background: var(--page-bg); color: #172033; min-height: 100vh; }
.navbar { background: var(--cor-secundaria); }
.admin-view-selector { display: flex; align-items: center; gap: .4rem; padding: .28rem .4rem .28rem .65rem; border: 1px solid rgba(255,255,255,.28); border-radius: .55rem; color: #fff; }
.admin-view-selector label { font-size: .68rem; font-weight: 800; white-space: nowrap; text-transform: uppercase; }
.admin-view-selector select { max-width: 145px; border: 0; background: transparent; color: #fff; font-size: .78rem; font-weight: 700; }
.admin-view-selector option { color: #172033; background: #fff; }
.admin-view-banner { padding: .65rem 0; color: #713f12; background: #fef3c7; border-bottom: 1px solid #fde68a; }
.admin-preview-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem 1.5rem; border: 1px solid #c7d2fe; border-radius: 1rem; background: linear-gradient(135deg, #fff, #eef2ff); }
.admin-preview-card .form-select { min-width: 210px; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: #fff; }
.brand-logo-cifrelio { border-radius: 0; background: transparent; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--cor-primaria); font-weight: 800; }
.auth-card { max-width: 520px; }
.eyebrow { color: var(--cor-primaria); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.btn-brand { background: var(--cor-primaria); border-color: var(--cor-primaria); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--cor-primaria), #000 15%); border-color: transparent; color: #fff; }
.btn-outline-brand { color: var(--cor-primaria); border-color: var(--cor-primaria); }
.btn-outline-brand:hover { color: #fff; background: var(--cor-primaria); }
a { color: var(--cor-primaria); }
.status-badge { color: var(--cor-primaria); background: color-mix(in srgb, var(--cor-primaria), transparent 88%); padding: .65rem .9rem; }
.connection-dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 5px #f1f5f9; }
.connection-dot.connected { background: #22c55e; box-shadow: 0 0 0 5px #dcfce7; }
.table th { padding: 1rem 1.5rem; color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; background: #f8fafc; }
.table td { padding: 1rem 1.5rem; }
.logo-preview, .logo-placeholder { width: 140px; height: 80px; border: 1px solid #e2e8f0; border-radius: 12px; object-fit: contain; background: #fff; }
.logo-placeholder { display: grid; place-items: center; color: #94a3b8; }
.theme-preview { background: #f8fafc; }
.form-control-color { height: 44px; }
.qr-code { width: min(100%, 320px); aspect-ratio: 1; object-fit: contain; }
@media (max-width: 576px) { .navbar .container { align-items: flex-start; } .navbar .d-flex { gap: .6rem !important; font-size: .875rem; } }
@media (max-width: 991.98px) { .admin-preview-card { align-items: stretch; flex-direction: column; gap: 1rem; } .admin-view-selector label { display: none; } }
.calendar-wrap { min-width: 860px; overflow-x: auto; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); }
.calendar-weekdays div { padding: .75rem; background: #f8fafc; color: #64748b; text-align: center; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.calendar-day { min-height: 130px; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: .55rem; }
.calendar-empty { background: #f8fafc; }
.calendar-today { background: color-mix(in srgb, var(--cor-primaria), transparent 94%); }
.day-number { display: block; color: #64748b; font-size: .8rem; font-weight: 700; margin-bottom: .4rem; }
.appointment { border-left: 3px solid var(--cor-primaria); background: #f1f5f9; border-radius: 5px; padding: .4rem; margin-bottom: .4rem; font-size: .72rem; }
.appointment strong, .appointment span { display: block; }
.appointment select { width: 100%; margin-top: .3rem; border: 0; background: transparent; color: #64748b; font-size: .68rem; }
.appointment-concluido { opacity: .65; border-color: #22c55e; }
.appointment-cancelado { opacity: .5; text-decoration: line-through; border-color: #ef4444; }
.consent-autorizado { border-color: #22c55e; color: #15803d; }
.consent-recusado { border-color: #ef4444; color: #b91c1c; }
.metric-card small { display: block; color: #64748b; min-height: 2.5em; }
.metric-card strong { display: block; color: var(--cor-secundaria); font-size: 1.8rem; margin-top: .35rem; }
.vehicle-card { color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.vehicle-card:hover { transform: translateY(-2px); }
.plate { display: inline-block; width: fit-content; border: 2px solid #172033; border-radius: 5px; padding: .15rem .5rem; background: #fff; color: #172033; font-weight: 800; letter-spacing: .08em; }
.totals > div, .print-totals > div { display: flex; justify-content: space-between; gap: 2rem; padding: .3rem 0; }
.totals .grand-total, .print-totals .grand-total { border-top: 2px solid #172033; margin-top: .4rem; padding-top: .7rem; font-size: 1.15rem; }
.pre-line { white-space: pre-line; }
.print-page { background: #fff; color: #111; }
.print-logo { width: 140px; height: 65px; object-fit: contain; object-position: left center; margin-bottom: .5rem; }
.print-totals { max-width: 380px; }
.print-signatures { margin-top: 7rem; }
@media print { .no-print { display: none !important; } .print-page main { max-width: none; padding: 0 !important; } @page { size: A4; margin: 15mm; } }
.legal-page { max-width: 850px; }
.presence-dot { width: .7rem; height: .7rem; border-radius: 50%; background: #94a3b8; flex: 0 0 auto; }
.presence-dot.online { background: #22c55e; box-shadow: 0 0 0 .2rem rgba(34, 197, 94, .16); }
.landing-hero { background: radial-gradient(circle at 90% 0, rgba(79,70,229,.2), transparent 40%), linear-gradient(135deg, #fff, #eef2ff); overflow: hidden; }
.landing-pill { display: inline-flex; padding: .45rem .8rem; border-radius: 999px; color: #4338ca; background: #e0e7ff; font-size: .8rem; font-weight: 700; }
.hero-panel { padding: 2rem; border-radius: 1.25rem; color: #fff; background: linear-gradient(145deg, #172033, #293654); transform: rotate(1deg); }
.hero-panel small { color: #a5b4fc; }
.hero-stat { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.feature-card { padding: 1.75rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; }
.feature-check { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .7rem; color: #fff; background: var(--cor-primaria); font-weight: 800; }
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: passo; }
.steps-list li { position: relative; padding: .25rem 0 1.5rem 3.5rem; counter-increment: passo; }
.steps-list li::before { content: counter(passo); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: #fff; background: var(--cor-primaria); font-weight: 800; }
.steps-list span { display: block; color: #64748b; }
.landing-price { background: #fff; border: 1px solid #e0e7ff; }
.price-copy { max-width: 650px; }
.pricing-card { border-top: 4px solid var(--cor-primaria) !important; }
.cookie-consent { position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; width: min(420px, calc(100% - 2rem)); padding: 1.1rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; }
.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.75rem 2rem; border: 1px solid #e0e7ff; border-radius: 1.25rem; background: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--cor-primaria), transparent 82%), transparent 32%), #fff; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.dashboard-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .8rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569; font-size: .82rem; font-weight: 700; }
.dashboard-chip .connection-dot { width: .55rem; height: .55rem; box-shadow: none; }
.dashboard-metric { position: relative; height: 100%; padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; box-shadow: 0 .3rem 1rem rgba(15, 23, 42, .04); }
.dashboard-metric strong { display: block; color: var(--cor-secundaria); font-size: 2rem; line-height: 1; margin: .9rem 0 .4rem; }
.dashboard-metric strong span { color: #94a3b8; font-size: 1rem; }
.dashboard-metric small { color: #64748b; }
.dashboard-metric-featured { border-color: color-mix(in srgb, var(--cor-primaria), transparent 65%); background: linear-gradient(145deg, color-mix(in srgb, var(--cor-primaria), transparent 93%), #fff); }
.dashboard-metric strong.metric-currency { font-size: clamp(1.35rem, 2vw, 2rem); }
.metric-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 1.7rem; padding: 0 .45rem; border-radius: .5rem; background: color-mix(in srgb, var(--cor-primaria), transparent 88%); color: var(--cor-primaria); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.metric-warning { border-color: #fecaca; background: #fffafa; }
.metric-warning .metric-icon { background: #fee2e2; color: #b91c1c; }
.card-header-clean { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid #eef2f7; background: #fff; }
.card-header-clean a { flex: 0 0 auto; font-size: .85rem; font-weight: 700; text-decoration: none; }
.dashboard-list-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid #f1f5f9; }
.dashboard-list-item:last-child { border-bottom: 0; }
.dashboard-list-item > time { min-width: 3.2rem; color: var(--cor-primaria); font-weight: 800; }
.dashboard-list-item strong, .dashboard-list-item span { display: block; }
.dashboard-list-item .flex-grow-1 > span { color: #64748b; font-size: .86rem; }
.dashboard-list-item.compact { padding: .8rem 1.25rem; }
.date-tile { width: 2.8rem; padding: .35rem; border-radius: .65rem; background: #f1f5f9; text-align: center; }
.date-tile strong, .date-tile span { display: block; line-height: 1.05; }
.date-tile span { color: #64748b; font-size: .68rem; text-transform: uppercase; }
.notification-state { color: #16a34a; font-weight: 800; }
.quick-actions-grid { display: grid; gap: .75rem; }
.quick-action { display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: .9rem; color: #172033; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.quick-action:hover, .quick-action:focus { border-color: color-mix(in srgb, var(--cor-primaria), transparent 45%); color: #172033; box-shadow: 0 .45rem 1rem rgba(15, 23, 42, .07); transform: translateY(-1px); }
.quick-action > span:last-child { min-width: 0; }
.quick-action strong, .quick-action small { display: block; }
.quick-action small { margin-top: .15rem; color: #64748b; }
.quick-action-icon { display: grid; place-items: center; flex: 0 0 auto; width: 2.55rem; height: 2.55rem; border-radius: .8rem; background: color-mix(in srgb, var(--cor-primaria), transparent 88%); color: var(--cor-primaria); font-size: .75rem; font-weight: 900; }
.notification-item { min-height: 76px; }
.notification-time { min-width: 3.4rem; text-align: center; }
.notification-time strong, .notification-time span { display: block; }
.notification-time strong { color: #334155; }
.notification-time span { color: #94a3b8; font-size: .68rem; text-transform: uppercase; }
.notification-badge { display: inline-flex !important; align-items: center; padding: .35rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.notification-badge.ready { color: #15803d; background: #dcfce7; }
.notification-badge.waiting { color: #a16207; background: #fef3c7; }
.notification-badge.blocked { color: #b91c1c; background: #fee2e2; }
.dashboard-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; padding: 2rem; color: #64748b; text-align: center; }
.dashboard-empty strong { color: #334155; margin-bottom: .35rem; }
.dashboard-table td strong, .dashboard-table td small { display: block; }
.dashboard-table td small { color: #64748b; margin-top: .15rem; }
.activity-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; }
.activity-item:last-child { border-bottom: 0; }
.activity-item strong, .activity-item span { display: block; }
.activity-item span { color: #64748b; font-size: .8rem; }
.activity-item time { color: #94a3b8; font-size: .75rem; white-space: nowrap; }
.activity-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #94a3b8; }
.activity-dot.status-enviada, .activity-dot.status-entregue, .activity-dot.status-lida { background: #22c55e; }
.activity-dot.status-falhou { background: #ef4444; }
.activity-dot.status-pendente, .activity-dot.status-aguardando { background: #f59e0b; }
.settings-panel { padding: 1rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #f8fafc; }
.clients-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.75rem; border: 1px solid #e0e7ff; border-radius: 1.1rem; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--cor-primaria), transparent 94%)); }
.client-stat { height: 100%; padding: 1rem 1.15rem; border: 1px solid #e2e8f0; border-radius: .9rem; background: #fff; }
.client-stat span, .client-stat strong { display: block; }
.client-stat span { color: #64748b; font-size: .82rem; }
.client-stat strong { margin-top: .35rem; color: #334155; font-size: 1.6rem; }
.client-stat-success { border-bottom: 3px solid #22c55e; }
.client-stat-warning { border-bottom: 3px solid #f59e0b; }
.client-stat-danger { border-bottom: 3px solid #ef4444; }
.consent-pill, .status-soft { display: inline-flex; align-items: center; width: fit-content; padding: .3rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.consent-pill-autorizado { color: #15803d; background: #dcfce7; }
.consent-pill-pendente { color: #a16207; background: #fef3c7; }
.consent-pill-recusado { color: #b91c1c; background: #fee2e2; }
.import-guide { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: .8rem; background: #f8fafc; color: #475569; }
.import-guide strong { color: #334155; }
.history-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; }
.history-row:last-child, .history-notification:last-child { border-bottom: 0; }
.history-row strong, .history-row small { display: block; }
.history-row small, .history-row time, .history-notification time { color: #64748b; font-size: .78rem; }
.history-notification { padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; }
.history-notification p { margin: .45rem 0; color: #475569; font-size: .88rem; white-space: pre-line; }
.status-soft { color: #475569; background: #f1f5f9; }
.status-soft-concluido, .status-soft-enviada, .status-soft-entregue, .status-soft-lida { color: #15803d; background: #dcfce7; }
.status-soft-cancelado, .status-soft-cancelada, .status-soft-falhou { color: #b91c1c; background: #fee2e2; }
.status-soft-faltou { color: #b91c1c; background: #fee2e2; }
.status-soft-agendado, .status-soft-solicitado, .status-soft-pendente, .status-soft-aguardando { color: #a16207; background: #fef3c7; }
@media (max-width: 767.98px) {
  .dashboard-hero { align-items: flex-start; flex-direction: column; padding: 1.35rem; }
  .dashboard-actions { width: 100%; }
  .dashboard-actions .btn { flex: 1; }
  .card-header-clean { padding: 1rem; }
  .dashboard-list-item { padding: .9rem 1rem; }
  .notification-item { align-items: flex-start; flex-wrap: wrap; }
  .notification-item .flex-grow-1 { min-width: calc(100% - 8rem); }
  .notification-badge { margin-left: 3.8rem; }
  .activity-item { grid-template-columns: auto 1fr; }
  .activity-item time { grid-column: 2; }
  .clients-hero { align-items: flex-start; flex-direction: column; padding: 1.25rem; }
  .clients-hero .btn { width: 100%; }
  .history-row { grid-template-columns: auto 1fr; }
  .history-row > time, .history-row > .status-soft { grid-column: 2; }
}
