:root {
    --bg: #f7f8fa;
    --bg-accent: #eef1f5;
    --panel: #ffffff;
    --surface: #f8fafc;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --ink: #1f2937;
    --muted: #6b7280;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-soft: #fff7ed;
    --brand-from: #fb923c;
    --brand-to: #ea580c;
    --brand-glow: rgba(249, 115, 22, .16);
    --success: #16a34a;
    --success-soft: #f0fdf4;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --sidebar-bg: #111827;
    --sidebar-text: #f3f4f6;
    --sidebar-muted: #9ca3af;
    --cream: #f7f8fa;
    --radius: 14px;
    --shadow: 0 16px 40px rgba(15, 23, 42, .10);
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; height: 100%; }
body { background: var(--bg); color: var(--ink); }
#app { min-height: 100%; min-height: 100dvh; }

.content-canvas {
    background:
        radial-gradient(ellipse 95% 60% at 100% -5%, color-mix(in srgb, var(--brand) 34%, transparent), transparent 55%),
        radial-gradient(ellipse 80% 50% at -5% 105%, color-mix(in srgb, var(--brand-dark) 22%, transparent), transparent 52%),
        radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 45%),
        linear-gradient(160deg, var(--bg) 0%, color-mix(in srgb, var(--brand) 14%, #fff) 42%, color-mix(in srgb, var(--brand-dark) 8%, var(--bg-accent)) 100%);
    min-height: 100%;
}

.login-bg {
    background:
        radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 42%),
        radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--brand-dark) 24%, transparent), transparent 36%),
        linear-gradient(145deg, var(--bg), color-mix(in srgb, var(--brand) 18%, #fff) 55%, var(--bg-accent));
}

.field {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.btn-primary {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(165deg, var(--brand-from), var(--brand) 48%, var(--brand-dark));
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px var(--brand-glow);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:disabled { opacity: .65; cursor: wait; }

.btn-ghost, .topbar-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--brand-dark);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}
.btn-ghost:hover, .topbar-icon-btn:hover { background: var(--brand-soft); }

.sidebar {
    background: linear-gradient(180deg, #111827 0%, #151a22 48%, #111827 100%);
    color: var(--sidebar-text);
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    align-self: stretch;
}
#view-app {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: stretch;
}
#view-app > .sidebar,
#view-app > .content-canvas {
    min-height: 100%;
}
.secure-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    color: var(--brand-from);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.side-card {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    padding: 12px;
}
.side-card.accent {
    background: color-mix(in srgb, var(--brand) 18%, transparent);
    border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
.side-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
}
.side-card-label {
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    color: var(--sidebar-muted);
}
.side-card-title {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: #f3f4f6;
    truncate: true;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-card-meta {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--sidebar-muted);
}

.nav-acc { margin-bottom: 2px; }
.nav-acc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--sidebar-muted);
    font: inherit;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.nav-acc-toggle:hover,
.nav-acc.is-open > .nav-acc-toggle {
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: color-mix(in srgb, var(--brand-from) 80%, #fff);
}
.nav-acc-toggle .nav-ico {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 22%, transparent);
    color: var(--brand-from);
    flex-shrink: 0;
}
.nav-acc-toggle .nav-ico svg,
.nav-acc-toggle .nav-chevron {
    color: inherit;
}
.nav-acc-toggle .nav-chevron {
    margin-left: auto;
    transition: transform .2s ease;
    opacity: .7;
}
.nav-acc.is-open > .nav-acc-toggle .nav-chevron { transform: rotate(180deg); }
.nav-acc-body {
    display: none;
    padding: 0 0 4px 10px;
}
.nav-acc.is-open > .nav-acc-body { display: block; }

.nav-item, .mob-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #a8b3c2;
    font: inherit;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.25;
    padding: 7px 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, color .15s;
}
.nav-item .nav-ico {
    width: 18px;
    height: 18px;
    color: var(--brand-from);
    opacity: .9;
    flex-shrink: 0;
}
.nav-item .nav-ico svg { color: inherit; }
.nav-item:hover, .nav-item.is-active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, transparent), color-mix(in srgb, var(--brand-dark) 12%, transparent));
    color: color-mix(in srgb, var(--brand-from) 70%, #fff);
}
.nav-item.is-active {
    font-weight: 700;
}
.nav-item.is-active .nav-ico { opacity: 1; color: var(--brand-from); }

.mob-item {
    width: auto;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    font-size: 10px;
    padding: 6px 8px;
    color: var(--muted);
}
.mob-item svg { color: var(--brand); opacity: .7; }
.mob-item.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.mob-item.is-active svg { opacity: 1; }

/* Topbar alinhado */
.topbar {
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, #fff 88%, var(--brand-soft) 12%);
    backdrop-filter: blur(10px);
}
.topbar-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 8px;
}
@media (min-width: 640px) {
    .topbar-row { padding: 12px 24px 8px; }
}
.topbar-title { min-width: 0; }
.topbar-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.topbar-title h1 { margin: 2px 0 0; line-height: 1.15; }

.topbar-tools {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.tool-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    min-height: 58px;
}
.tool-block-icon { align-items: stretch; }
.tool-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
    height: 12px;
}
.tool-control {
    min-width: 168px;
    height: 42px;
    min-height: 42px;
}
.tool-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.tool-value-row strong {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.store-badge { display: none; }
@media (min-width: 1100px) {
    .store-badge { display: flex; }
}
.store-badge-code {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand-dark);
    text-transform: uppercase;
}

.period-chips {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.period-chips button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
    border-radius: 9px;
    cursor: pointer;
    height: 34px;
}
.period-chips button.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.sync-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 0 16px 10px;
    border-top: 1px solid transparent;
}
@media (min-width: 640px) {
    .sync-strip { padding: 0 24px 10px; }
}
.sync-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-dark);
}
.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent);
    animation: syncPulse 1.6s ease-in-out infinite;
}
.sync-dot.is-stale { background: var(--warning); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 20%, transparent); animation: none; }
.sync-dot.is-off { background: var(--muted); box-shadow: none; animation: none; }
@keyframes syncPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: .7; }
}
.sync-meta {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.kpi-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}
.kpi-card .label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.kpi-card .value {
    margin-top: 8px;
    font-family: Sora, Manrope, sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
    line-height: 1.15;
    word-break: break-word;
}
.kpi-card .hint { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.kpi-card .delta {
    display: inline-flex;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}
.kpi-card .delta.up { background: var(--success-soft); color: var(--success); }
.kpi-card .delta.down { background: var(--danger-soft); color: var(--danger); }
.kpi-card .delta.flat { background: var(--brand-soft); color: var(--brand-dark); }
.kpi-card.is-accent { border-bottom: 3px solid var(--brand); }
.kpi-card.is-ok { border-bottom: 3px solid var(--success); }
.kpi-card.is-warn { border-bottom: 3px solid var(--warning); }
.kpi-card.is-danger { border-bottom: 3px solid var(--danger); }

.panel {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 45%, #fff), var(--panel));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: visible;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}
.panel-head h3 {
    margin: 0;
    font-family: Sora, Manrope, sans-serif;
    font-size: 15px;
    font-weight: 800;
}
.panel-body { padding: 12px 16px 16px; }

.store-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 640px) { .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.store-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(160deg, #fff, var(--brand-soft));
    cursor: pointer;
    text-align: left;
    transition: transform .15s, box-shadow .15s;
}
.store-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-card strong { display: block; font-size: 14px; }
.store-card .code { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.store-card .amt { margin-top: 8px; font-family: Sora, sans-serif; font-size: 20px; font-weight: 800; color: var(--brand-dark); }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    padding: 8px 6px;
    border-bottom: 1px solid var(--line);
}
.data-table td {
    padding: 10px 6px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}
.data-table tr:last-child td { border-bottom: 0; }
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.soft { background: var(--brand-soft); color: var(--brand-dark); }

.chart-wrap {
    position: relative;
    width: 100%;
    height: 240px;
}
.chart-wrap.sm { height: 200px; }

.hour-bars {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(8px, 1fr);
    align-items: end;
    gap: 3px;
    height: 120px;
}
.hour-bars i {
    display: block;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, var(--brand-from), var(--brand-dark));
    min-height: 3px;
    opacity: .9;
}
.hour-bars i.is-peak {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.dre-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
    font-weight: 700;
}
.dre-line:last-child { border-bottom: 0; }
.dre-line.is-result { color: var(--brand-dark); font-size: 15px; }
.dre-line.is-cost, .dre-line.is-expense { color: var(--warning); }

.config-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .config-grid { grid-template-columns: 1fr 1fr; } }

.empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.more-list { display: grid; gap: 8px; }
.more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    cursor: pointer;
}
.more-item .nav-ico {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.more-item strong { display: block; font-size: 14px; font-weight: 800; }
.more-item span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }

.splash {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 42%),
        radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--brand-dark) 18%, transparent), transparent 40%),
        linear-gradient(155deg, #111827 0%, #1a212c 42%, #0f172a 100%);
    transition: opacity .35s ease, visibility .35s ease;
}
.splash.is-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-card {
    text-align: center;
    padding: 32px 24px;
    width: min(360px, calc(100vw - 40px));
    color: #f3f4f6;
}
.splash-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: none;
    border: 0;
    display: block;
    background: transparent;
}
.splash-kicker {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-from);
}
.splash-card h1 { color: #f9fafb !important; }
.splash-card .text-brand-muted,
.splash-card #splashText { color: #9ca3af !important; }
.splash-bar {
    margin: 22px auto 0;
    width: 160px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    overflow: hidden;
}
.splash-bar span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-from), var(--brand-dark));
    animation: splashSlide 1.1s ease-in-out infinite;
}
@keyframes splashSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.login-card {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px 26px;
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.login-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.login-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.login-lead {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.45;
}
.field-wrap { position: relative; }
.field-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-dark);
    opacity: .75;
    pointer-events: none;
}
.field-ico-pad { padding-left: 42px; }
.login-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}
.login-secure svg { color: var(--brand); }

.pwa-install-btn {
    margin-top: 14px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
    background: linear-gradient(145deg, #fff, var(--brand-soft));
    border-radius: 18px;
    padding: 12px 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}
.pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.pwa-install-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: var(--brand-dark);
    flex-shrink: 0;
}
.pwa-install-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pwa-install-copy strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}
.pwa-install-copy small {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.page-enter {
    animation: pageIn .32s cubic-bezier(.22, 1, .36, 1);
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.live-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 900px) {
    .live-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* PDV online — modo imersivo */
body.is-pdv #view-app.pdv-mode {
    display: block !important;
}
body.is-pdv #view-app.pdv-mode > .sidebar {
    display: none !important;
}
body.is-pdv .topbar,
body.is-pdv #mobileNav {
    display: none !important;
}
body.is-pdv #mainContent {
    padding: 10px 12px 14px !important;
    min-height: 100vh;
}
.pdv-shell {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: calc(100vh - 24px);
}
.pdv-chrome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,.06);
}
.pdv-chrome-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}
.pdv-exit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    min-height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.pdv-exit:hover { background: rgba(255,255,255,.12); color: #fff; }
.pdv-cash-status { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pdv-cash-status strong { display: block; font-size: 12px; font-weight: 800; line-height: 1.2; }
.pdv-cash-status p { margin: 0; font-size: 10px; color: #94a3b8; font-weight: 600; line-height: 1.2; }
.pdv-cash-dot {
    width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0;
    background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
}
.pdv-cash-status.is-open .pdv-cash-dot {
    background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}
.pdv-clock {
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: .02em;
    white-space: nowrap;
    padding: 2px 0;
}
.pdv-receipt {
    display: inline-flex;
    padding: 3px;
    border-radius: 12px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.1);
}
.pdv-receipt-opt {
    position: relative;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}
.pdv-receipt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pdv-receipt-opt.is-on {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.pdv-chrome-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdv-op-btn {
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: #f8fafc;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.pdv-op-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.pdv-op-btn.is-danger { background: rgba(220,38,38,.18); border-color: rgba(252,165,165,.38); color: #fee2e2; }
.pdv-store-pick {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.pdv-store-pick span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pdv-store-pick select {
    min-height: 28px;
    min-width: 140px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: #f8fafc;
}
.pdv-chrome-actions .btn-ghost {
    border-color: rgba(255,255,255,.2);
    color: #f3f4f6;
    background: rgba(255,255,255,.06);
}
.pdv-open-cash-btn {
    min-height: 28px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
}
.pdv-fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin-left: 2px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .15s, background .15s, border-color .15s;
}
.pdv-fs-btn:hover {
    color: #f8fafc;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
}
.pdv-fs-btn.is-on {
    color: #e2e8f0;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.14);
}
body.pdv-is-fullscreen.is-pdv #mainContent {
    padding: 8px 10px 10px !important;
    min-height: 100vh;
}
body.pdv-is-fullscreen .pdv-shell {
    min-height: calc(100vh - 18px);
}
.pdv-customer-dock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--brand) 14%, #e2e8f0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.pdv-customer-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pdv-customer-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}
.pdv-customer-input {
    flex: 1;
    min-width: 180px;
    min-height: 36px;
}
.pdv-customer-add {
    min-height: 36px !important;
    font-weight: 800 !important;
}
.pdv-customer-picked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.pdv-customer-picked-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.pdv-customer-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.pdv-customer-picked strong {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.pdv-customer-picked-meta > span:last-child {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.pdv-customer-clear {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}
.pdv-cust-results-dock {
    display: grid;
    gap: 4px;
    max-height: 160px;
    overflow: auto;
}
.pdv-customer-hint,
.pdv-customer-empty {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.pdv-flash {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}
.pdv-flash.is-ok { background: var(--success-soft); color: var(--success); }
.pdv-flash.is-err { background: var(--danger-soft); color: var(--danger); }

.pdv-workspace {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    flex: 1;
    min-height: 0;
}
@media (min-width: 980px) {
    .pdv-workspace {
        grid-template-columns: minmax(300px, .92fr) minmax(0, 1.28fr);
        align-items: stretch;
    }
}
.pdv-pane {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.pdv-pane-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.pdv-pane-head h3 {
    margin: 0;
    font-family: var(--font-display, Sora, Manrope, sans-serif);
    font-size: 15px;
    font-weight: 800;
}
.pdv-pane-head span {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}
.pdv-search-input {
    font-size: 16px;
    min-height: 48px;
    font-weight: 700;
    border-radius: 12px;
}
.pdv-results {
    flex: 1;
    max-height: none;
    min-height: 220px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}
.pdv-results.is-idle {
    justify-content: center;
    align-items: center;
}
.pdv-results.has-hits {
    justify-content: flex-start;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}
@media (min-width: 980px) {
    .pdv-results { min-height: 420px; max-height: calc(100vh - 220px); }
}
.pdv-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fafafa;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.pdv-result:hover {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.pdv-result-name { font-weight: 800; color: var(--ink); font-size: 15px; }
.pdv-result-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    font-size: 13px; font-weight: 600; color: var(--muted);
}
.pdv-result-meta strong { color: var(--brand-dark); font-size: 14px; }
.pdv-empty, .pdv-empty-cell {
    padding: 28px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}
.pdv-empty-hint {
    opacity: .7;
    font-size: 13px;
}
.pdv-cart-scroll {
    flex: 1;
    overflow: auto;
    min-height: 160px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
@media (min-width: 980px) {
    .pdv-cart-scroll { max-height: calc(100vh - 460px); min-height: 240px; }
}
.pdv-cart { width: 100%; border-collapse: collapse; }
.pdv-cart th, .pdv-cart td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    vertical-align: middle;
}
.pdv-cart th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    background: #f8fafc;
    position: sticky;
    top: 0;
}
.pdv-line-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
}
.pdv-line-sku { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.pdv-line-money { font-size: 15px; }
.pdv-line-x {
    border: 0;
    background: transparent;
    color: #dc2626;
    font-weight: 800;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}
.pdv-line-x:hover { background: #fef2f2; }
.pdv-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pdv-qty button {
    width: 28px; height: 28px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}
.pdv-qty input {
    width: 52px;
    min-height: 30px;
    text-align: center;
    padding: 4px;
}
.pdv-checkout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}
.pdv-totals {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 18%, #fff));
    border: 1px solid color-mix(in srgb, var(--brand) 32%, #e5e7eb);
}
.pdv-totals span { font-size: 12px; font-weight: 800; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .04em; }
.pdv-totals strong { font-size: 30px; font-weight: 800; color: var(--brand-dark); font-family: inherit; letter-spacing: -0.02em; }
.pdv-pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
@media (min-width: 720px) {
    .pdv-pay-methods { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.pdv-pay-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    text-align: center;
}
.pdv-pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pdv-pay-opt span { font-size: 12px; font-weight: 800; }
.pdv-pay-opt small { font-size: 9px; color: var(--muted); font-weight: 600; }
.pdv-pay-opt.is-on {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.pdv-pay-opt.is-pix.is-on {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.pdv-pay-actions {
    display: grid;
    gap: 10px;
    align-items: end;
}
@media (min-width: 640px) {
    .pdv-pay-actions { grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr); }
}
.pdv-pay-amount label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 4px;
}
.pdv-pay-amount.is-dim { opacity: .4; pointer-events: none; }
.pdv-finalize {
    min-height: 52px;
    font-size: 15px;
    font-weight: 800;
}
.pdv-help {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
}
.pdv-help kbd {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Modal PIX Efí */
.pdv-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
}
.pdv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}
.pdv-modal-card {
    position: relative;
    width: min(440px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pdv-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.pdv-modal-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-dark);
}
.pdv-modal-head h3 {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 800;
}
.pdv-modal-close {
    border: 0;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
.pdv-modal-card.pdv-pix-card {
    width: min(400px, 100%);
    padding: 0;
    overflow: hidden;
    gap: 0;
}
.pdv-pix-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
}
.pdv-pix-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pdv-pix-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--brand-from), var(--brand-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    flex-shrink: 0;
    box-shadow: 0 8px 18px var(--brand-glow);
}
.pdv-pix-top .pdv-modal-kicker { color: var(--brand-dark); }
.pdv-pix-top h3 {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.pdv-pix-hero {
    text-align: center;
    padding: 4px 18px 14px;
}
.pdv-pix-amount-label {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}
.pdv-pix-amount {
    margin: 0;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.pdv-pix-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px 18px 16px;
}
.pdv-pix-qr {
    width: 228px;
    height: 228px;
    margin: 0;
    display: block;
    border-radius: 16px;
    border: 2px solid color-mix(in srgb, var(--brand) 45%, #e2e8f0);
    background: #fff;
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--brand) 12%, transparent),
        0 14px 32px rgba(15, 23, 42, .10);
    padding: 10px;
    box-sizing: border-box;
}
.pdv-pix-qr-empty {
    width: 228px;
    height: 228px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 2px dashed color-mix(in srgb, var(--brand) 35%, #cbd5e1);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    background: var(--brand-soft);
}
.pdv-pix-scan-hint {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}
.pdv-pix-progress-block {
    padding: 0 18px 14px;
}
.pdv-pix-progress-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.pdv-pix-progress-meta strong {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}
.pdv-pix-progress-meta strong.is-warn { color: #dc2626; }
.pdv-pix-progress {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.pdv-pix-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-from), var(--brand-dark));
    transition: width .25s linear, background .2s;
}
.pdv-pix-progress > span.is-warn {
    background: linear-gradient(90deg, var(--brand), #dc2626);
}
.pdv-pix-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 18px 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
}
.pdv-pix-live.is-ok {
    background: #ecfdf5;
    color: #15803d;
}
.pdv-pix-live.is-err {
    background: #fef2f2;
    color: #b91c1c;
    text-align: center;
}
.pdv-pix-live.is-err .pdv-pix-pulse {
    background: #ef4444;
    animation: none;
    box-shadow: none;
}
.pdv-pix-pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent);
    animation: pdvPixPulse 1.4s ease-out infinite;
    flex-shrink: 0;
}
.pdv-pix-live.is-ok .pdv-pix-pulse {
    background: #22c55e;
    animation: none;
    box-shadow: none;
}
@keyframes pdvPixPulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.pdv-pix-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 18px 18px;
}
.pdv-pix-expired {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 18px;
}
.pdv-pix-expired-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    font-size: 22px;
}
.pdv-pix-expired p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    max-width: 280px;
}
.pdv-pix-ask {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
.pdv-pix-card.is-expired .pdv-pix-hero { opacity: .55; }
.pdv-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}
.pdv-checkout-hint {
    margin: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.pdv-checkout-card {
    width: min(560px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
}
.pdv-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 18%, #fff));
    border: 1px solid color-mix(in srgb, var(--brand) 32%, #e5e7eb);
}
.pdv-checkout-total span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-dark);
}
.pdv-checkout-total strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-dark);
}
.pdv-checkout-block { margin-top: 4px; }
.pdv-checkout-block.is-dim { opacity: .45; pointer-events: none; }
.pdv-checkout-block.hidden { display: none; }
.pdv-field-title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.pdv-pay-methods-modal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
@media (min-width: 560px) {
    .pdv-pay-methods-modal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pdv-pay-opt.is-prom.is-on {
    border-color: #7c3aed;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.pdv-receipt-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
}
.pdv-receipt-modal .pdv-receipt-opt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}
.pdv-receipt-modal .pdv-receipt-opt small {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
}
.pdv-receipt-modal .pdv-receipt-opt.is-on {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.pdv-cash-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(100px, .8fr);
    gap: 10px;
    align-items: stretch;
}
.pdv-combined-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 560px) { .pdv-combined-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pdv-combined-grid label, .pdv-dialog-field { display: flex; flex-direction: column; gap: 4px; }
.pdv-combined-grid label span, .pdv-dialog-field span {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}
.pdv-combined-status {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 700;
}
.pdv-combined-status.is-pending { color: var(--warning); background: var(--warning-soft); border-color: #fde68a; }
.pdv-combined-status.is-over { color: var(--danger); background: var(--danger-soft); border-color: #fecaca; }
.pdv-combined-status.is-ok { color: var(--success); background: var(--success-soft); border-color: #bbf7d0; }
.pdv-change-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
}
.pdv-change-box span { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.pdv-change-box strong { font-size: 16px; font-weight: 800; }
.pdv-cust-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    max-height: 160px;
    overflow: auto;
}
.pdv-cust-hit {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}
.pdv-cust-hit:hover { border-color: var(--brand); }
.pdv-cust-hit span { font-size: 11px; color: var(--muted); font-weight: 600; }
.pdv-cust-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.pdv-quick-cust {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.pdv-quick-cust span { font-size: 11px; font-weight: 700; color: var(--muted); }
.pdv-checkout-actions { margin-top: 8px; }
.pdv-success-card { width: min(420px, 100%); text-align: center; gap: 8px; }
.pdv-success-icon {
    width: 56px; height: 56px; margin: 0 auto;
    border-radius: 999px;
    display: grid; place-items: center;
    background: #dcfce7; color: #15803d;
    font-size: 28px; font-weight: 800;
}
.pdv-success-card h3 { margin: 4px 0 0; font-size: 22px; font-weight: 800; }
.pdv-success-sub { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.pdv-success-total { margin: 8px 0 0; font-size: 32px; font-weight: 800; color: var(--ink); }
.pdv-success-change, .pdv-success-cust { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.pdv-success-ask { margin: 12px 0 4px; font-size: 14px; font-weight: 800; }
.pdv-success-cupom {
    margin: 10px 0 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f0fdfa;
    border: 1px dashed #99f6e4;
    text-align: center;
}
.pdv-success-cupom-title {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f766e;
}
.pdv-success-cupom-url {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    word-break: break-all;
}
.pdv-success-cupom-url a { color: #0f766e; }
.pdv-success-cupom-code {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.pdv-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.pdv-dialog-card { width: min(520px, 100%); }
.pdv-dialog-copy { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 600; }
.pdv-dialog-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(48vh, 380px);
    overflow: auto;
    padding: 2px;
}
.pdv-cash-summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
.pdv-cash-summary span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.pdv-cash-summary strong { font-size: 18px; color: var(--ink); }
.pdv-cash-summary small { font-size: 11px; color: var(--muted); font-weight: 600; }


/* Config Gateway / Fiscal */
.cfg-page { display: flex; flex-direction: column; gap: 14px; max-width: 920px; }
.cfg-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
}
.cfg-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a3b8;
}
.cfg-hero h2 {
    margin: 4px 0 6px;
    font-family: Sora, Manrope, sans-serif;
    font-size: 22px;
    font-weight: 800;
}
.cfg-hero p { margin: 0; font-size: 13px; color: #94a3b8; font-weight: 600; }
.cfg-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255,255,255,.08);
    color: #cbd5e1;
}
.cfg-badge.is-on {
    background: rgba(34, 197, 94, .18);
    color: #86efac;
}
.cfg-badge.is-warn {
    background: rgba(245, 158, 11, .18);
    color: #fcd34d;
}
.evo-instance-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}
.evo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 14px;
    align-items: start;
}
.evo-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.evo-side-sticky {
    position: sticky;
    top: 12px;
}
.evo-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    height: auto !important;
    min-height: 44px;
    padding: 10px 16px !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    place-items: unset;
}
.evo-btn span {
    display: inline;
}
.evo-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.evo-btn.btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand-dark);
}
.evo-btn.btn-ghost:hover {
    background: var(--brand-soft);
}
.evo-btn-danger {
    color: #b91c1c !important;
    border-color: #fecaca !important;
}
.evo-btn-danger:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}
.evo-qr-panel .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.evo-qr-panel .panel-head .evo-btn {
    flex-shrink: 0;
}
.evo-qr-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.evo-qr-body-col {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}
.evo-qr-img {
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 12px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.evo-qr-placeholder {
    width: min(100%, 280px);
    aspect-ratio: 1;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
.evo-qr-meta {
    flex: 1;
    min-width: 0;
}
.evo-qr-lead {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.evo-qr-meta p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.evo-qr-hint { font-size: 12px !important; margin-top: 8px !important; }
.evo-qr-pairing code { font-size: 14px; font-weight: 800; color: var(--text); }
.evo-qr-timer {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.evo-qr-timer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.evo-qr-timer-head strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-dark, #3017A2);
    letter-spacing: 0;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}
.evo-qr-progress {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.evo-qr-progress > span {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-from, #6881F4), var(--brand, #6881F4) 55%, var(--brand-dark, #3017A2));
    transition: width .25s linear;
}
.evo-qr-progress.is-urgent > span {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.evo-qr-progress.is-empty > span {
    width: 0 !important;
}
.evo-idle-panel {
    border-style: dashed;
}
.evo-idle-body {
    text-align: center;
    padding: 28px 18px;
}
.evo-idle-ico {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--brand) 14%, #fff);
    color: var(--brand-dark);
}
.evo-idle-body strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}
.evo-idle-body p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.45;
}
@media (max-width: 980px) {
    .evo-layout { grid-template-columns: 1fr; }
    .evo-side-sticky { position: static; }
}
.evo-qr-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.evo-qr-img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px;
}
.evo-qr-meta {
    flex: 1;
    min-width: 200px;
}
.evo-qr-meta p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.evo-qr-hint { font-size: 12px !important; }
.evo-qr-pairing code { font-size: 14px; font-weight: 800; color: var(--text); }
.evo-online-panel {
    border-color: color-mix(in srgb, #22c55e 35%, #e2e8f0);
    background: color-mix(in srgb, #22c55e 6%, #fff);
}
.evo-online-body {
    display: flex;
    align-items: center;
    gap: 14px;
}
.evo-online-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #15803d;
}
.evo-online-body strong { display: block; font-size: 15px; font-weight: 800; }
.evo-online-body p { margin: 4px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.cfg-form { display: flex; flex-direction: column; gap: 14px; }
.cfg-switch-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
    .cfg-switch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cfg-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}
.cfg-switch strong { display: block; font-size: 13px; font-weight: 800; }
.cfg-switch small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); font-weight: 600; }
.cfg-switch input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.cfg-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
    .cfg-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cfg-fields .full { grid-column: 1 / -1; }
.cfg-fields label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 4px;
}
.cfg-section-label {
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.cfg-cert-status {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.cfg-paper-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
    .cfg-paper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cfg-paper-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 14px 14px 40px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.cfg-paper-opt input {
    position: absolute;
    left: 14px;
    top: 18px;
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}
.cfg-paper-visual {
    display: flex;
    color: var(--brand-dark, #334155);
    margin: 2px 0 4px;
}
.cfg-paper-svg { display: block; }
.cfg-paper-opt strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}
.cfg-paper-opt small {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.35;
}
.cfg-paper-opt.is-on,
.cfg-paper-opt:has(input:checked) {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 8%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}
.cfg-paper-opt.is-on .cfg-paper-visual,
.cfg-paper-opt:has(input:checked) .cfg-paper-visual {
    color: var(--brand);
}
.cfg-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cfg-brand-preview {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: transparent;
}
.cfg-brand-row strong { display: block; font-size: 13px; font-weight: 800; }
.cfg-brand-row small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.color-picker-field label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 4px;
}
.color-picker-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.color-picker-row input[type="color"] {
    width: 48px;
    height: 42px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.brand-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: var(--surface);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}
.brand-preview-swatch {
    width: 120px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-from), var(--brand-dark));
    box-shadow: 0 6px 14px var(--brand-glow);
}
.more-item .nav-ico { color: var(--brand); }

/* —— ERP forms / lookup / modal —— */
.erp-page { display: flex; flex-direction: column; gap: 16px; }
.erp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.erp-toolbar-copy { min-width: 0; }
.erp-toolbar-kicker {
    margin: 0 0 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.erp-toolbar h2 {
    margin: 0;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.erp-toolbar p {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.erp-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.erp-split {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
    .erp-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
    .erp-split.is-list-heavy { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
}
.erp-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.erp-list-toolbar .field {
    flex: 1;
    min-width: 140px;
}
.erp-list-filter {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 120px;
}
.erp-form-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 4px;
}
.erp-row-acts {
    width: 88px;
    text-align: right;
    white-space: nowrap;
}
.erp-row-acts .erp-act { margin-left: 4px; }
.erp-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.erp-act svg {
    display: block;
    flex-shrink: 0;
}
.erp-act:hover {
    border-color: color-mix(in srgb, var(--brand) 35%, #cbd5e1);
    color: var(--brand-dark, #1e3a8a);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.erp-act:active { transform: translateY(1px); }
.erp-act:disabled { opacity: .55; cursor: wait; }
.erp-act-save {
    width: 42px;
    height: 42px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-from, var(--brand)), var(--brand-dark, var(--brand)));
    box-shadow: 0 6px 14px var(--brand-glow, rgba(37, 99, 235, .28));
}
.erp-act-save:hover {
    color: #fff;
    border: none;
    filter: brightness(1.04);
    box-shadow: 0 8px 18px var(--brand-glow, rgba(37, 99, 235, .34));
}
.erp-act-delete { color: #b91c1c; }
.erp-act-delete:hover { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.erp-act-whatsapp {
    color: #128c7e;
    border-color: #a7f3d0;
    background: #ecfdf5;
}
.erp-act-whatsapp:hover { color: #075e54; border-color: #6ee7b7; }
.pdv-wa-card { max-width: 420px; z-index: 2; }
.pdv-wa-modal { z-index: 90; }
.pdv-wa-hint {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.pdv-wa-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.pdv-wa-field span {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}
.pdv-wa-field .field {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
    min-height: 48px;
}
.pdv-wa-ex {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.niver-alert-panel .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.niver-alert-list { display: grid; gap: 8px; }
.niver-alert-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.niver-alert-row.is-today {
    border-color: color-mix(in srgb, #22c55e 30%, #e2e8f0);
    background: color-mix(in srgb, #22c55e 6%, #fff);
}
.niver-alert-row strong { display: block; font-size: 13px; font-weight: 800; }
.niver-alert-row span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.erp-act-new,
.erp-act-nav {
    background: #f8fafc;
    color: #475569;
}
.recv-toolbar-hint {
    margin: 0;
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.recv-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
    .recv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.recv-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.recv-card.is-overdue {
    border-color: color-mix(in srgb, #ef4444 28%, #e2e8f0);
    background: color-mix(in srgb, #ef4444 4%, #fff);
}
.recv-card-main { flex: 1; min-width: 0; }
.recv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.recv-card-top strong {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.recv-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 10px;
}
.recv-card-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.recv-card-values small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.recv-card-values b {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.recv-saldo { color: var(--brand-dark, #1d4ed8) !important; }
.recv-card-act {
    display: flex;
    align-items: center;
}
.recv-modal-card { max-width: 440px; }
.recv-modal-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand) 8%, #f8fafc);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, #e2e8f0);
}
.recv-modal-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, #e2e8f0);
}
.recv-modal-copy { flex: 1; min-width: 0; }
.recv-modal-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}
.recv-modal-copy span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.recv-modal-saldo { text-align: right; }
.recv-modal-saldo small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
}
.recv-modal-saldo b {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.recv-amount-field {
    font-size: 20px !important;
    font-weight: 800 !important;
    min-height: 48px;
}
.recv-modal-acts { justify-content: flex-end; }
.erp-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
    .erp-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.erp-form-grid .full { grid-column: 1 / -1; }
.erp-form-grid label > span,
.erp-field-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 4px;
}
.erp-lookup {
    position: relative;
    z-index: 5;
}
.erp-lookup-drop {
    position: absolute;
    z-index: 90;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 260px;
    overflow: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    display: none;
}
.erp-lookup-drop.is-open { display: block; }
.erp-lookup-drop.is-portal {
    position: fixed;
    right: auto;
    z-index: 120;
}
.erp-lookup-drop li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}
.erp-lookup-drop li:hover,
.erp-lookup-drop li.is-active {
    background: var(--brand-soft);
}
.erp-lookup-drop strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}
.erp-lookup-drop small {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.erp-lookup-drop .is-empty {
    padding: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: default;
}
.erp-lookup-drop .is-empty:hover { background: transparent; }
.erp-picked {
    display: none;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-dark);
}
.erp-picked.is-on { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.erp-picked button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.erp-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.erp-cat-chips button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.erp-cat-chips button.is-on {
    background: var(--brand-soft);
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
    color: var(--brand-dark);
}
.erp-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 16px;
}
.erp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(3px);
}
.erp-modal-card {
    position: relative;
    width: min(560px, 100%);
    max-height: min(92vh, 840px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.erp-modal-card.is-wide { width: min(640px, 100%); }
.erp-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.erp-modal-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-dark);
}
.erp-modal-head h3 {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 800;
}
.erp-modal-close {
    border: 0;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    flex-shrink: 0;
}
.erp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.topbar-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.topbar-page-actions.hidden { display: none !important; }
.topbar-page-actions .btn-primary,
.topbar-page-actions .btn-ghost {
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    width: auto;
    font-size: 12px;
}
.erp-search-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.erp-search-bar .field { flex: 1; min-width: 180px; }

/* —— Relatórios financeiro (DRE / ABC / Lucro) —— */
.report-toolbar,
.dre-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.report-toolbar .field,
.dre-toolbar .field {
    min-height: 40px;
    flex: 1 1 140px;
    min-width: 0;
}
.dre-month-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 220px;
}
.dre-month-input { flex: 1; min-width: 0; }
.report-split,
.dre-split,
.dre-day-cols {
    display: grid;
    gap: 12px;
}
@media (min-width: 900px) {
    .report-split,
    .dre-split,
    .dre-day-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dre-cal {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dre-cal-weekhead,
.dre-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
}
.dre-cal-wh {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-muted, #64748b);
    padding: 4px 0;
}
.dre-cal-cell {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--brand, #f97316) 12%, #e2e8f0);
    background: #fff;
    border-radius: 10px;
    min-height: 84px;
    padding: 6px 5px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.dre-cal-cell.is-pad {
    visibility: hidden;
    pointer-events: none;
    border: 0;
    background: transparent;
}
.dre-cal-cell:not(:disabled):hover {
    border-color: var(--brand, #f97316);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--brand, #f97316) 18%, transparent);
}
.dre-cal-cell.is-selected {
    border-color: var(--brand, #f97316);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #f97316) 28%, transparent);
}
.dre-cal-cell.is-pos { background: color-mix(in srgb, #22c55e 8%, #fff); }
.dre-cal-cell.is-neg { background: color-mix(in srgb, #ef4444 8%, #fff); }
.dre-cal-cell.is-future,
.dre-cal-cell:disabled {
    opacity: 0.45;
    cursor: default;
}
.dre-cal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}
.dre-cal-num {
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-dark, #0f172a);
}
.dre-cal-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 16%, #fff);
    color: var(--brand-dark, #1e3a8a);
}
.dre-cal-line {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dre-cal-line i {
    font-style: normal;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-grid;
    place-items: center;
    font-size: 8px;
    font-weight: 900;
    flex-shrink: 0;
}
.dre-cal-line.is-in { color: #15803d; }
.dre-cal-line.is-in i { background: #dcfce7; color: #166534; }
.dre-cal-line.is-out { color: #b45309; }
.dre-cal-line.is-out i { background: #ffedd5; color: #9a3412; }
.dre-cal-res {
    margin-top: auto;
    font-size: 10px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dre-cal-empty {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
}
.dre-cal-cell.is-pos .dre-cal-res { color: #15803d; }
.dre-cal-cell.is-neg .dre-cal-res { color: #b91c1c; }
.dre-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.dre-leg {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: -1px;
}
.dre-leg.is-in { background: #86efac; }
.dre-leg.is-out { background: #fdba74; }
.dre-leg.is-pos { background: #22c55e; }
.dre-leg.is-neg { background: #ef4444; }
@media (min-width: 640px) {
    .dre-cal-cell { min-height: 96px; padding: 8px; }
    .dre-cal-line, .dre-cal-res { font-size: 10px; }
    .dre-cal-num { font-size: 13px; }
}
.dre-day-panel {
    border: 1px solid color-mix(in srgb, var(--brand, #f97316) 14%, #e2e8f0);
    border-radius: 16px;
    padding: 14px;
    background: color-mix(in srgb, var(--brand, #f97316) 4%, #fff);
}
.dre-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.dre-day-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}
.dre-move-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.dre-move-row:last-child { border-bottom: 0; }
.erp-supplier-quick-wrap { margin-top: -6px; }
.erp-supplier-quick {
    border: 1px dashed color-mix(in srgb, var(--brand, #f97316) 35%, #cbd5e1);
    border-radius: 14px;
    padding: 12px;
    background: color-mix(in srgb, var(--brand, #f97316) 5%, #fff);
}
.erp-receipt-summary {
    text-align: center;
    padding: 8px 0 16px;
}
.erp-receipt-amount {
    font-size: 28px;
    font-weight: 900;
    margin: 10px 0 4px;
    color: var(--brand-dark, #0f172a);
}
.hide-xs { display: none; }
@media (min-width: 720px) {
    .hide-xs { display: table-cell; }
}

.erp-feedback-host { position: relative; z-index: 12000; }
.erp-feedback-card {
    text-align: center;
    padding-top: 28px !important;
    width: min(420px, 100%);
}
.erp-feedback-card.is-ok {
    border-top: 4px solid #16a34a;
}
.erp-feedback-card.is-err {
    border-top: 4px solid #dc2626;
}
.erp-feedback-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}
.erp-feedback-card.is-ok .erp-feedback-icon {
    background: color-mix(in srgb, #16a34a 14%, #fff);
    color: #15803d;
}
.erp-feedback-card.is-err .erp-feedback-icon {
    background: color-mix(in srgb, #dc2626 14%, #fff);
    color: #b91c1c;
}
.erp-feedback-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
    color: var(--brand-dark, #0f172a);
}
.erp-feedback-text {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-muted, #64748b);
    line-height: 1.45;
}
