/* =====================================================================
   Reports → Tasks summary — iOS 26
   ---------------------------------------------------------------------
   The part appFilters loads under the filter bar of
   app/Views/tasks/reports/tasks_summary.php: a strip of figure tiles,
   then flat chart sections (hairline, no shadow — they sit inside the
   report's card, so they are sections, not cards in a card).

   The status strip above it is the shared .nz-list-statusbar of
   list-ios26.css; the Day / Week / Month switch is a standard nav-tabs.
   Colours come from the --ios26-* tokens, which the dark theme
   re-declares, so there is no dark-mode copy of these rules.
   Scoped to .nz-tsum26 (set on #page-content).
   ===================================================================== */

.nz-tsum26 .nz-tsum {
    padding: 16px 20px 20px;
}

/* ------------------------------------------------------------ tiles --- */

.nz-tsum26 .nz-tsum-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.nz-tsum26 .nz-tsum-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--ios26-hairline);
    border-radius: var(--ios26-radius);
    background: var(--ios26-fill);
}

/* a long task title is cut inside its cell, so the hours stay on screen */
.nz-tsum26 .nz-tsum-section-table {
    --nz-cell-clamp: 340px;
}

.nz-tsum26 .nz-tsum-tile-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ios26-muted);
}

.nz-tsum26 .nz-tsum-tile-value {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--ios26-text);
}

.nz-tsum26 .nz-tsum-tile-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ios26-muted);
}

.nz-tsum26 .nz-tsum-tile-alert .nz-tsum-tile-value {
    color: #ff453a;
}

.nz-tsum26 .nz-tsum-progress {
    height: 6px;
    margin-top: 8px;
    border-radius: var(--ios26-pill);
    background: var(--ios26-hairline);
}

.nz-tsum26 .nz-tsum-progress .progress-bar {
    border-radius: var(--ios26-pill);
    background: #34c759;
}

/* --------------------------------------------------------- sections --- */

.nz-tsum26 .nz-tsum-section {
    min-width: 0;
    padding: 16px 0 18px;
    border-top: 1px solid var(--ios26-hairline);
}

.nz-tsum26 .nz-tsum-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.nz-tsum26 .nz-tsum-section-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ios26-text);
}

.nz-tsum26 .nz-tsum-section-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ios26-muted);
}

/* the Day / Week / Month switch: a standard tab strip, only unboxed */
.nz-tsum26 .nz-tsum-period {
    flex: 0 0 auto;
    border: 0;
    background: transparent !important;
}

.nz-tsum26 .nz-tsum-chart {
    position: relative;
    height: 300px;
}

.nz-tsum26 .nz-tsum-note,
.nz-tsum26 .nz-tsum-empty {
    margin: 10px 0 0;
    font-size: 12px;
}

.nz-tsum26 .nz-tsum-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .nz-tsum26 .nz-tsum-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

@media (max-width: 575px) {
    .nz-tsum26 .nz-tsum {
        padding: 12px 16px 16px;
    }

    .nz-tsum26 .nz-tsum-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nz-tsum26 .nz-tsum-chart {
        height: 240px;
    }
}
