label.consent:has(input[type="checkbox"]) {
    display: flex !important;
    align-items: flex-start !important;
}
label.consent input[type="checkbox"] {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: max(0px, calc((1lh - 18px) / 2)) 0 0 !important;
}

.revenue-readout {
    margin: 8px 0 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.revenue-scroll { overflow-x: auto; }
.revenue-table { margin-top: 25px; }

.revenue-chart .revenue-tap {
    appearance: none;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-height: 0;
    cursor: pointer;
    touch-action: manipulation;
}
.revenue-tap[aria-pressed="true"] .revenue-bar { background: var(--p, #6940cf); }
.revenue-tap[aria-pressed="true"] .revenue-bar.negative { background: #a73b59; }
.revenue-tap:focus-visible {
    outline: 2px solid var(--p, #6940cf);
    outline-offset: -2px;
}

.sidebar .admin-history-toggle {
    border: 0;
    background-color: transparent;
    color: inherit;
    flex-shrink: 0;
    font-family: inherit;
    line-height: inherit;
}
.sidebar .admin-history-toggle.active,
.sidebar .admin-history-toggle[aria-expanded="true"] {
    color: var(--p, #6940cf);
    background: #f0eafa;
}
.admin-history-chevron { width: 15px; height: 15px; margin-left: auto; }
.admin-history-toggle[aria-expanded="true"] .admin-history-chevron { transform: rotate(180deg); }
.admin-history-panel {
    position: fixed;
    z-index: 1000;
    width: min(252px, calc(100vw - 16px));
    max-height: calc(100vh - 16px);
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--line, #e5deee);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px #30204c24;
}
.admin-history-panel[hidden] { display: none; }
.admin-history-panel .sidebutton {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    margin: 0;
    white-space: normal;
}
