.demo-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 16px;
    color: #d9ead8;
    background: #203222;
    border-bottom: 1px solid rgba(157, 226, 151, .2);
    font-size: .78rem;
    position: fixed;
    inset: 60px 0 auto;
    z-index: 800;
}

.demo-notice::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9de297;
    box-shadow: 0 0 0 3px rgba(157, 226, 151, .12);
}

body:has(.demo-notice) { padding-top: 104px; }

.nav-link[aria-current="page"],
.navbar .dropdown a[aria-current="page"] {
    background: #304534;
    color: #fff;
}

.demo-reset {
    border: 0;
    background: transparent;
    color: #b9c4bb;
    padding: 0;
    min-height: auto;
    font-size: .76rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.demo-reset:hover { color: #fff; transform: none; }

.demo-toast {
    position: fixed;
    right: 24px;
    bottom: 76px;
    z-index: 3000;
    max-width: 420px;
    padding: 13px 18px;
    border: 1px solid rgba(157, 226, 151, .35);
    border-radius: 8px;
    color: #f5fff4;
    background: #203222;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .32);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: .2s ease;
}

.demo-toast.is-visible { opacity: 1; transform: translateY(0); }

.empty-state {
    padding: 28px;
    text-align: center;
    color: #626b65;
}

.status-button {
    border: 0;
    min-height: 30px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 700;
}

.status-button:hover { transform: none; }

.status-gerada { color: #245728; background: #e7f4e5; }
.status-paga { color: #1d5e3a; background: #dff3e7; }
.status-processando, .status-enviando, .status-gerando { color: #7b570a; background: #fff1c9; }
.status-negada, .status-rejeitada, .status-erro { color: #852c2c; background: #fde2e2; }
.status-nao-gerada { color: #4c5350; background: #ecefed; }

.dialog-native {
    width: min(560px, calc(100% - 32px));
    border: 0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.dialog-native::backdrop { background: rgba(0, 0, 0, .62); }
.dialog-native__body { padding: 24px; }
.dialog-native__body h2 { margin: 0 0 8px; }
.dialog-native__body p { color: #59615c; line-height: 1.55; }
.dialog-native__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.dialog-native__actions button { border: 0; padding: 9px 16px; }
.button-secondary { color: #fff; background: #2b2b2d; }
.button-primary { color: #fff; background: #15400e; }

.report-preview {
    width: min(980px, calc(100% - 32px));
    max-height: 88vh;
}

.report-sheet {
    margin: 0 24px 24px;
    padding: 28px;
    background: #fff;
    border: 1px solid #dfe4e0;
    color: #202420;
}

.report-sheet__header { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #15400e; padding-bottom: 16px; }
.report-sheet__header h3 { margin: 0; font-size: 1.35rem; }
.report-sheet table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .8rem; }
.report-sheet th, .report-sheet td { padding: 8px; border-bottom: 1px solid #dde2de; text-align: left; }
.report-sheet th { color: #15400e; }
.report-sheet__totals { display: flex; justify-content: flex-end; gap: 30px; margin-top: 18px; font-size: .9rem; }

@media (max-width: 900px) {
    .demo-notice { inset: 60px 0 auto; text-align: center; }
    body:has(.demo-notice) { padding-top: 104px; }
}

@media (max-width: 600px) {
    .demo-notice { font-size: .7rem; }
    .demo-toast { left: 16px; right: 16px; bottom: 90px; }
    .dialog-native__actions { flex-direction: column-reverse; }
    .dialog-native__actions button { width: 100%; }
}

@media print {
    .navbar, .demo-notice, .global-footer, .dialog-native__actions { display: none !important; }
    body { padding: 0 !important; background: #fff !important; }
    dialog[open] { position: static; width: 100%; max-height: none; box-shadow: none; }
    dialog[open]::backdrop { display: none; }
    .report-sheet { border: 0; margin: 0; }
}
