/* Project-specific overrides on top of assets/styles/adminlte.css. */

/*
 * The brand mark is white artwork on a transparent background, so wherever it
 * sits on a light surface it needs a dark plate underneath.
 */
.brand-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    border-radius: 0.75rem;
    background-color: #1b2431;
}

/*
 * Every figure on the dashboard is either a total over the chosen period or the
 * state of things at this moment, and the two cannot be compared. The badge says
 * which one is being looked at — without it, "1 248 events" next to "€428 500"
 * reads as if both belonged to the same week.
 */
.scope {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.scope-period {
    color: #0b5ed7;
    background-color: rgba(13, 110, 253, 0.1);
}

.scope-now {
    color: #146c43;
    background-color: rgba(25, 135, 84, 0.1);
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
}

/* Charts get their height from here: a canvas has no size of its own. */
.chart-box {
    position: relative;
    height: 260px;
}

.chart-box-sm {
    position: relative;
    height: 200px;
}

/*
 * The doughnut's hole is the natural place for the total it is a breakdown of.
 * Pointer events off, so the slices underneath stay hoverable.
 */
.chart-centre {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

/*
 * Bootstrap has no purple among its theme colours, and the API channel needs one
 * of its own — it is a separate line of business, not a shade of the website.
 */
.text-purple {
    color: #6f42c1;
}

.bg-purple-subtle {
    background-color: rgba(111, 66, 193, 0.12);
}
