/* Central do Monitoramento — menu de ações nos relatórios Traccar */
.cm-report-actions {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.cm-report-menu-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.55rem 0.85rem 0.35rem;
}

/* Coluna do menu Relatórios */
.cm-report-actions-sidebar {
    width: 100%;
    max-width: 100%;
    margin: 0.35rem 0 0.75rem;
    padding: 0.15rem 0 0.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
}

.cm-report-actions-floating {
    position: fixed !important;
    top: 50%;
    left: 0.55rem;
    transform: translateY(-50%);
    z-index: 13000 !important;
    width: min(220px, calc(100vw - 1.2rem));
    padding: 0.35rem 0.25rem 0.45rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
    border: 1px solid #e2e8f0;
}

.cm-report-menu-item {
    appearance: none;
    -webkit-appearance: none;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    transition: background 0.12s ease;
}

.cm-report-menu-item:hover:not(:disabled) {
    background: rgba(15, 118, 110, 0.08);
}

.cm-report-menu-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cm-report-menu-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.cm-report-menu-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
    pointer-events: none;
}

.cm-report-menu-icon-geocode { background: #0f766e; }
.cm-report-menu-icon-wa { background: #25d366; }
.cm-report-menu-icon-pdf { background: #b91c1c; }
.cm-report-menu-icon-pdf-wa { background: #1e3a5f; }

.cm-report-menu-label {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
}

.cm-report-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 14000;
    max-width: min(360px, calc(100vw - 2rem));
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.8125rem;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cm-report-toast.cm-report-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.cm-report-toast.cm-report-toast-error {
    background: #7f1d1d;
}

@media print {
    .cm-report-actions,
    .cm-report-toast {
        display: none !important;
    }
}
