/* DAC Lab — small additions on top of Bootstrap */

.group-app-row td:first-child {
    padding-left: 2rem;
}

.group-app-first td {
    border-top-width: 2px !important;
}

.app-checkboxes {
    max-height: 220px;
    overflow-y: auto;
}

.navbar-brand {
    font-weight: 600;
}

.trend-up {
    color: var(--bs-danger);
    font-size: 0.85rem;
}

.trend-down {
    color: var(--bs-success);
    font-size: 0.85rem;
}

/* Hours-per-day column chart (views/partials/dev-day-chart.php).
   One series, so one hue: the sequential blue, stepped for the dark card
   surface it sits on (#2b3035) and validated for contrast against it. */
.dev-chart {
    --dev-series-1: #3987e5;
    --dev-chart-grid: rgba(255, 255, 255, 0.12);
    --dev-chart-weekend: rgba(255, 255, 255, 0.035);
    display: flex;
    gap: 0.5rem;
}

.dev-chart-scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    text-align: right;
    white-space: nowrap;
}

.dev-chart-plot {
    display: flex;
    align-items: flex-end;
    /* 2px of surface between adjacent bars, so touching columns stay separate. */
    gap: 2px;
    flex: 1 1 auto;
    height: 140px;
    min-width: 0;
    border-bottom: 1px solid var(--dev-chart-grid);
    border-top: 1px dashed var(--dev-chart-grid);
}

.dev-chart-col {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    height: 100%;
}

.dev-chart-col.is-weekend {
    background: var(--dev-chart-weekend);
}

.dev-chart-bar {
    width: 100%;
    /* Capped so a short month does not turn into slabs. */
    max-width: 24px;
    min-height: 2px;
    background: var(--dev-series-1);
    /* Rounded at the data end, square on the baseline. */
    border-radius: 4px 4px 0 0;
}

/* Only the peak is labelled — sparing labels are why they read at all. */
.dev-chart-peak {
    position: absolute;
    top: -1.15rem;
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.dev-chart-axis {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

/* Proportion bar behind the per-pull-request breakdown. Same single hue as the
   day chart — it is the same measure, just grouped differently. */
.dev-share-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.dev-share-fill {
    height: 100%;
    border-radius: 3px;
    background: #3987e5;
}
