/* =========================================================
   REPORTS

   Three pages share this file:

       reports.php          the picker - grouped icon tiles
       report-results.php   one report, as a table
       report-stats.php     the charts

   Loaded after custom.css, so these rules win where they
   overlap.

   Prefixes: .rp- picker, .rr- results, .rs- statistics.
   Nothing here touches a class the rest of the app uses, so
   this file can be deleted without breaking another page.
========================================================= */


/* =========================================================
   ROOM AT THE TOP

   .section-padding is 80px top and bottom, which was drawn
   for a marketing page with a big centred heading. Under the
   app hero it leaves a hole. These three pages sit closer.
========================================================= */

.reports-page,
.report-results,
.report-stats {
    padding-top: 30px;
    padding-bottom: 60px;
}


/* =========================================================
   THE PICKER
========================================================= */

.rp-search {
    position: relative;

    width: 320px;
    max-width: 100%;
    margin-bottom: 8px;
}

.rp-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    color: #8a90a8;
    font-size: 14px;

    pointer-events: none;
}

.rp-search input {
    width: 100%;
    height: 44px;

    padding: 0 15px 0 40px;

    background: #ffffff;
    border: 1px solid #d9dced;
    border-radius: 10px;

    color: #171724;
    font-size: 14.5px;
}

.rp-search input::placeholder {
    color: #9aa0b0;
}

.rp-search input:focus {
    outline: none;
    border-color: #a7b0ee;
    box-shadow: 0 0 0 3px rgba(82, 95, 225, .14);
}

.rp-noresult {
    margin: 22px 0 0;

    color: #70768c;
    font-size: 15px;
}


/* ---------- group heading ---------- */

.rp-group {
    margin-top: 28px;
}

.rp-group-head {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 13px;
}

.rp-group-icon {
    color: #8a90a8;
    font-size: 15px;
}

.rp-group-head h2 {
    margin: 0;

    color: #6d7490;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.rp-group-line {
    flex: 1;
    height: 1px;

    background: #e6e8f0;
}


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

.rp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.rp-tile {
    position: relative;

    display: block;
    padding: 18px 17px 16px;

    background: #ffffff;
    border: 1px solid #e4e7f1;
    border-radius: 14px;

    text-decoration: none;

    box-shadow: 0 2px 6px rgba(20, 26, 60, .035);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.rp-tile:hover,
.rp-tile:focus-visible {
    border-color: #bcc4ee;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(40, 52, 170, .11);
}

.rp-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin-bottom: 13px;

    background: #eef0fe;
    border-radius: 12px;

    color: #525fe1;
    font-size: 19px;
}

.rp-tile-count {
    position: absolute;
    top: 17px;
    right: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 24px;
    padding: 0 9px;

    background: #f2f3f9;
    border-radius: 12px;

    color: #4b5068;
    font-size: 12.5px;
    font-weight: 800;
}

.rp-tile-title {
    display: block;

    color: #171724;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.rp-tile-desc {
    display: block;
    margin-top: 5px;

    color: #70768c;
    font-size: 12.8px;
    line-height: 1.45;
}


/* Follow-up reports with something in them. A tile that
   means somebody has work to do should not look the same as
   a tile that is simply a list. */

.rp-tile-warn .rp-tile-icon {
    background: #fdf0e8;
    color: #d9631f;
}

.rp-tile-warn .rp-tile-count {
    background: #fdeee6;
    color: #b8481a;
}

.rp-tile-stat .rp-tile-icon {
    background: #eaf7f0;
    color: #1d8a56;
}


/* =========================================================
   THE RESULTS PAGE
========================================================= */

.rr-desc {
    margin: 0 0 18px;

    color: #5b6176;
    font-size: 14.5px;
}


/* ---------- controls ---------- */

.rr-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;

    margin-bottom: 17px;
}

.rr-spacer {
    flex: 1;
}

.rr-field {
    position: relative;
}

.rr-field select,
.rr-field input {
    height: 42px;

    padding: 0 15px;

    background: #ffffff;
    border: 1px solid #d9dced;
    border-radius: 9px;

    color: #3c4258;
    font-size: 14px;
}

.rr-field select {
    padding-right: 34px;

    /* The native arrow sits differently in every browser, so
       it is drawn here instead. */
    appearance: none;
    -webkit-appearance: none;

    background-image:
        url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;

    cursor: pointer;
}

.rr-field select:focus,
.rr-field input:focus {
    outline: none;
    border-color: #a7b0ee;
    box-shadow: 0 0 0 3px rgba(82, 95, 225, .14);
}

.rr-field-search {
    width: 290px;
    max-width: 100%;
}

.rr-field-search input {
    width: 100%;
    padding-left: 40px;
}

.rr-field-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    color: #8a90a8;
    font-size: 14px;

    pointer-events: none;
}


/* ---------- the table ---------- */

.rr-table-wrap {
    background: #ffffff;
    border: 1px solid #e4e7f1;
    border-radius: 13px;

    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 26, 60, .04);
}

.rr-table {
    width: 100%;
    border-collapse: collapse;

    font-size: 13.8px;
}

.rr-table th {
    padding: 12px 18px;

    background: #fafbfe;
    border-bottom: 1px solid #e9ebf2;

    color: #6d7490;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.rr-table td {
    padding: 13px 18px;
    border-bottom: 1px solid #f1f2f7;

    color: #2f3448;
}

.rr-table tr:last-child td {
    border-bottom: 0;
}

.rr-table td.rr-name {
    color: #171724;
    font-weight: 600;
}

.rr-blank {
    color: #c3c7d4;
}


/* ---------- the grey divider rows ---------- */

.rr-group-row td {
    padding: 9px 18px;

    background: #f6f7fc;

    color: #525fe1;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}


/* The column being grouped on, folded away while the grey
   dividers are doing its job. It is still in the HTML, so
   searching still finds it and Print and CSV still carry it. */

.rr-table.rr-grouped .rr-col-grouped {
    display: none;
}


/* ---------- the row button ---------- */

.rr-action {
    text-align: right;
    white-space: nowrap;
}

.rr-view {
    display: inline-block;
    padding: 5px 13px;

    border: 1px solid #d9dced;
    border-radius: 7px;

    color: #4b5068;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.rr-view:hover {
    background: #525fe1;
    border-color: #525fe1;
    color: #ffffff;
}


/* ---------- pager ---------- */

.rr-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    padding: 14px 18px;
    border-top: 1px solid #e9ebf2;
}

.rr-pager:empty {
    display: none;
}

.rr-pager-info {
    color: #70768c;
    font-size: 12.8px;
}

.rr-pager-buttons {
    display: flex;
    gap: 6px;
}

.rr-page {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 32px;
    padding: 0 9px;

    background: #ffffff;
    border: 1px solid #d9dced;
    border-radius: 7px;

    color: #4b5068;
    font-size: 12.5px;
    font-weight: 600;

    cursor: pointer;
}

.rr-page:hover:not(.disabled):not(.active) {
    border-color: #a7b0ee;
    color: #2c37a8;
}

.rr-page.active {
    background: #525fe1;
    border-color: #525fe1;
    color: #ffffff;
    cursor: default;
}

.rr-page.disabled {
    color: #b9bfd4;
    cursor: default;
}

.rr-page-gap {
    display: flex;
    align-items: center;

    padding: 0 3px;
    color: #b9bfd4;
}


/* ---------- empty states ---------- */

.rr-empty,
.rr-nomatch {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    padding: 26px 20px;

    color: #5b6176;
    font-size: 15px;
}

.rr-empty {
    background: #f6f7fc;
    border: 1px solid #e9ebf2;
    border-radius: 12px;
}

.rr-empty i {
    color: #1d8a56;
}

.rr-nomatch i {
    color: #8a90a8;
}


/* ---------- the rest of this group ---------- */

.rr-next {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;

    margin-top: 17px;
    padding: 15px 18px;

    background: #f6f7fc;
    border: 1px solid #e9ebf2;
    border-radius: 12px;
}

.rr-next-label {
    margin-right: 4px;

    color: #6d7490;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rr-next a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 13px;

    background: #ffffff;
    border: 1px solid #e0e3ee;
    border-radius: 8px;

    color: #4b5068;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.rr-next a:hover {
    border-color: #bcc4ee;
    color: #2c37a8;
}

.rr-next a i {
    color: #8a90a8;
    font-size: 13px;
}

.rr-next a:hover i {
    color: #525fe1;
}


/* =========================================================
   STATISTICS
========================================================= */

.rs-summary {
    display: grid;
    /* Wider than before: the icon now sits BESIDE the text
       rather than above it, so each tile needs more width
       and fewer of them fit per row. */
    grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
    gap: 13px;

    margin-bottom: 26px;
}

/* Icon on the left, label and number stacked to its right.
   Done entirely here: the markup is still icon, label,
   value as three siblings, so nothing else that uses these
   classes has to change. */
.rs-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 13px;
    align-items: center;

    padding: 15px 17px;

    background: #ffffff;
    border: 1px solid #e4e7f1;
    border-radius: 13px;

    box-shadow: 0 2px 6px rgba(20, 26, 60, .035);
}

.rs-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    /* Spans both text rows, so it stays centred against the
       label-and-number block however tall that becomes. */
    grid-row: 1 / 3;

    width: 40px;
    height: 40px;
    margin-bottom: 0;

    border-radius: 11px;
    font-size: 16px;
}

.rs-ind   { background: #eef0fe; color: #525fe1; }
.rs-green { background: #eaf7f0; color: #1d8a56; }
.rs-amber { background: #fdf0e8; color: #d9631f; }
.rs-blue  { background: #e8f3fb; color: #2a7fb8; }
.rs-pink  { background: #fcecf1; color: #c04a6e; }

.rs-card-label {
    display: block;
    grid-column: 2;
    align-self: end;

    color: #70768c;
    font-size: 12.8px;
    line-height: 1.25;
}

.rs-card-value {
    display: block;
    grid-column: 2;
    align-self: start;
    margin-top: 1px;

    color: #171724;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
}


/* ---------- charts ---------- */

.rs-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rs-chart-box {
    padding: 20px 20px 16px;

    background: #ffffff;
    border: 1px solid #e4e7f1;
    border-radius: 13px;

    box-shadow: 0 2px 8px rgba(20, 26, 60, .04);
}

.rs-chart-box h3 {
    margin: 0 0 14px;

    color: #171724;
    font-size: 15.5px;
    font-weight: 700;
}

.rs-chart {
    position: relative;
    height: 290px;
}

.rs-chart-small {
    height: 240px;
}

.rs-chart-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 0 0 20px;
    padding: 14px 16px;

    background: #fdf4ee;
    border: 1px solid #f3d7c3;
    border-radius: 11px;

    color: #8a4a1c;
    font-size: 14.5px;
    line-height: 1.5;
}

.rs-chart-error i {
    margin-top: 3px;
    color: #d9631f;
}


/* =========================================================
   GREETING BUTTONS AND DIALOG

   On the birthday and anniversary reports only.
========================================================= */

.rr-greet {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-right: 7px;
    padding: 5px 12px;

    background: #fff6f1;
    border: 1px solid #f3d2bd;
    border-radius: 7px;

    color: #b8481a;
    font-size: 12.5px;
    font-weight: 600;

    cursor: pointer;
}

.rr-greet:hover {
    background: #eb6834;
    border-color: #eb6834;
    color: #ffffff;
}

.rr-greet i {
    font-size: 12px;
}

/* Nothing on record to send to. Said rather than shown as a
   button that does nothing when pressed. */
.rr-greet-none {
    margin-right: 7px;

    color: #b9bfd4;
    font-size: 12px;
    font-style: italic;
}


/* ---------- the dialog ---------- */

.gr-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(10, 16, 44, .55);
}

.gr-backdrop[hidden] {
    display: none;
}

/* Stops the page behind scrolling under the dialog. */
body.gr-open {
    overflow: hidden;
}

.gr-dialog {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;

    display: flex;
    flex-direction: column;

    padding: 24px 26px 22px;

    background: #ffffff;
    border-radius: 16px;

    box-shadow: 0 30px 70px rgba(6, 12, 40, .4);
}

.gr-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 4px;
}

.gr-head h3 {
    margin: 0;

    color: #171724;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.gr-close {
    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: 0;
    border-radius: 8px;

    color: #8a90a8;
    font-size: 16px;

    cursor: pointer;
}

.gr-close:hover {
    background: #f1f2f7;
    color: #171724;
}

.gr-to {
    margin: 0 0 16px;

    color: #70768c;
    font-size: 13px;
}

.gr-label {
    display: block;
    margin-bottom: 7px;

    color: #6d7490;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gr-text {
    width: 100%;
    min-height: 180px;

    padding: 13px 15px;

    background: #ffffff;
    border: 1px solid #d9dced;
    border-radius: 10px;

    color: #2f3448;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.6;

    resize: vertical;
}

.gr-text:focus {
    outline: none;
    border-color: #a7b0ee;
    box-shadow: 0 0 0 3px rgba(82, 95, 225, .14);
}

.gr-note {
    margin: 9px 0 0;

    color: #8a90a8;
    font-size: 12.3px;
    line-height: 1.5;
}

.gr-result {
    margin: 13px 0 0;
    padding: 10px 13px;

    border-radius: 9px;
    font-size: 13.5px;
}

.gr-result[hidden] {
    display: none;
}

.gr-good {
    background: #eaf7f0;
    border: 1px solid #c4e8d6;
    color: #146b43;
}

.gr-bad {
    background: #fdf0ec;
    border: 1px solid #f3cfc2;
    color: #a63c18;
}

.gr-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 20px;
}

.gr-grow {
    flex: 1;
}

.gr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 42px;
    padding: 0 16px;

    background: #ffffff;
    border: 1px solid #d9dced;
    border-radius: 9px;

    color: #3c4258;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;
}

.gr-btn[hidden] {
    display: none;
}

.gr-btn:hover {
    border-color: #a7b0ee;
    color: #2c37a8;
}

.gr-btn:disabled {
    color: #b9bfd4;
    cursor: default;
}

/* WhatsApp's own green, because that is the thing being
   opened and the colour is what people recognise. */
.gr-wa {
    background: #1fa855;
    border-color: #1fa855;
    color: #ffffff;
}

.gr-wa:hover {
    background: #198f47;
    border-color: #198f47;
    color: #ffffff;
}


/* =========================================================
   SMALLER SCREENS
========================================================= */

@media (max-width: 1100px) {
    .rp-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {

    .rp-grid    { grid-template-columns: repeat(2, 1fr); }
    .rs-charts  { grid-template-columns: 1fr; }

    .rr-controls .rr-spacer { display: none; }

    .rr-field-search { width: 100%; }

    /* A wide report will not fit, so it scrolls sideways
       rather than crushing every column. */
    .rr-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rr-table {
        min-width: 680px;
    }
}

@media (max-width: 575px) {

    .rp-grid { grid-template-columns: 1fr; }

    .rp-search { width: 100%; }

    .rr-controls .rr-field { flex: 1 1 100%; }
    .rr-controls .rr-field select { width: 100%; }

    .rs-summary { grid-template-columns: repeat(2, 1fr); }

    .rr-pager {
        flex-direction: column;
        align-items: flex-start;
    }

    .gr-dialog {
        padding: 20px 18px 18px;
        max-height: 94vh;
    }

    .gr-actions .gr-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .gr-grow {
        display: none;
    }
}


/* =========================================================
   PRINT

   The browser's own print, not report_print.php. Someone
   will press Ctrl+P on these pages, so they should come out
   as something rather than as a mess.
========================================================= */

@media print {

    .rp-search,
    .rr-controls,
    .rr-pager,
    .rr-next,
    .rr-action,
    .gr-backdrop,
    .app-hero-actions {
        display: none !important;
    }

    .rr-table-wrap,
    .rp-tile,
    .rs-card,
    .rs-chart-box {
        border-color: #cfd3e0;
        box-shadow: none;
    }

    .rs-charts {
        grid-template-columns: repeat(2, 1fr);
    }

    /* A page break through the middle of a table row is
       unreadable. */
    .rr-table tr {
        break-inside: avoid;
    }
}


/* =========================================================
   CHURCH SETTINGS

   admin/church_settings.php. It lives in this file because
   it is the page that feeds the greeting buttons, and one
   stylesheet is easier to keep than two.
========================================================= */

.church-settings {
    padding-top: 30px;
    padding-bottom: 60px;
}

.cs-intro {
    margin: 0 0 22px;

    color: #5b6176;
    font-size: 14.5px;
    line-height: 1.6;
}

.cs-intro strong {
    padding: 1px 6px;

    background: #eef0fe;
    border-radius: 5px;

    color: #3a46c0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
}

.cs-notice {
    margin: 0 0 20px;
    padding: 13px 16px;

    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.55;
}

.cs-good {
    background: #eaf7f0;
    border: 1px solid #c4e8d6;
    color: #146b43;
}

.cs-bad {
    background: #fdf0ec;
    border: 1px solid #f3cfc2;
    color: #a63c18;
}


/* ---------- one card per church ---------- */

.cs-card {
    margin-bottom: 18px;
    padding: 22px 24px 20px;

    background: #ffffff;
    border: 1px solid #e4e7f1;
    border-radius: 14px;

    box-shadow: 0 2px 8px rgba(20, 26, 60, .04);
}

.cs-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f6;
}

.cs-card-head h2 {
    margin: 0;

    color: #171724;
    font-size: 19px;
    font-weight: 700;
}

.cs-saved {
    color: #8a90a8;
    font-size: 12.5px;
}

.cs-unset {
    font-style: italic;
}


/* ---------- fields ---------- */

.cs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cs-field {
    flex: 1 1 220px;
    margin-bottom: 15px;
}

.cs-narrow {
    flex: 0 0 150px;
}

.cs-field label {
    display: block;
    margin-bottom: 7px;

    color: #6d7490;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cs-field input,
.cs-field select,
.cs-field textarea {
    width: 100%;

    padding: 11px 14px;

    background: #ffffff;
    border: 1px solid #d9dced;
    border-radius: 9px;

    color: #2f3448;
    font-family: inherit;
    font-size: 14.5px;
}

.cs-field textarea {
    line-height: 1.6;
    resize: vertical;
}

.cs-field input::placeholder,
.cs-field textarea::placeholder {
    color: #aeb4c4;
}

.cs-field input:focus,
.cs-field select:focus,
.cs-field textarea:focus {
    outline: none;
    border-color: #a7b0ee;
    box-shadow: 0 0 0 3px rgba(82, 95, 225, .14);
}


/* ---------- how it will sign ---------- */

.cs-preview {
    margin: 4px 0 18px;
    padding: 14px 16px;

    background: #f6f7fc;
    border: 1px solid #e9ebf2;
    border-radius: 10px;

    color: #2f3448;
    font-size: 14px;
    line-height: 1.55;
}

.cs-preview-label {
    display: block;
    margin-bottom: 5px;

    color: #8a90a8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.cs-actions {
    display: flex;
    justify-content: flex-end;
}


@media (max-width: 575px) {

    .cs-narrow { flex: 1 1 100%; }

    .cs-actions .pbtn { width: 100%; justify-content: center; }
}


/* ---------- age groups ---------- */

.cs-ages-lead {
    margin: 0 0 18px;
    max-width: 68ch;

    color: #5b6176;
    font-size: 14.5px;
    line-height: 1.6;
}

.cs-ages-now {
    margin: 0;
    padding: 11px 14px;

    background: #f6f7fc;
    border: 1px solid #e9ebf2;
    border-radius: 9px;

    color: #5b6176;
    font-size: 13.5px;
    line-height: 1.6;
}

.cs-ages-now b {
    color: #171724;
}

/* ---------------------------------------------------------
   THE AGE OF MAJORITY, set apart from the programme ages.

   The three above it are the church's own and every church
   draws them differently. This one is the law's, and it
   decides what the app will show and where it will send a
   greeting - so it should not look like one more number in
   the same row.
--------------------------------------------------------- */

.cs-legal {
    margin-top: 22px;
    padding: 18px 20px 14px;

    background: #f7f8fc;
    border: 1px solid #e3e6f0;
    border-left: 4px solid #4e5ad6;
    border-radius: 10px;
}

.cs-legal .cs-row { margin-bottom: 0; }

.cs-legal-foot {
    margin: 12px 0 0;
    max-width: 78ch;

    font-size: 13px;
    line-height: 1.6;
    color: #6b7084;
}

.cs-ages-sub {
    margin: 8px 0 0;
    max-width: 62ch;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7084;
}

/* Jumped to from the Reports menu in the nav. Without this
   the sticky header sits on top of the heading you just
   asked to be taken to. */
.rp-group[id] { scroll-margin-top: 96px; }

/* Report headers follow the shared church branding. */
body .reports-page .rp-group-head {
    background:var(--site-primary,#303e8c);
    color:var(--site-on-primary,#fff);
    padding:15px 18px;
    min-height:64px;
    border-radius:11px;
    gap:13px;
    margin-bottom:16px;
}
body .reports-page .rp-group-head h2 {
    color:var(--site-on-primary,#fff);
    font-size:15px;
    line-height:1.4;
    font-weight:700;
    letter-spacing:0;
    text-transform:none;
}
body .reports-page .rp-group-icon {
    display:flex;align-items:center;justify-content:center;
    width:34px;height:34px;flex:0 0 34px;
    border-radius:9px;background:#ffffff20;
    color:var(--site-on-primary,#fff);font-size:16px;
}
body .reports-page .rp-group-line {display:none}
body .report-results .rr-table thead th {
    background:var(--site-primary,#303e8c);
    color:var(--site-on-primary,#fff);
    border-bottom-color:var(--site-primary,#303e8c);
    padding-top:16px;padding-bottom:16px;
    font-size:12px;font-weight:700;letter-spacing:.03em;
}
body .report-results .rr-table .rr-group-row td {
    background:#eef0fa;
    background:color-mix(in srgb,var(--site-primary,#303e8c) 9%,white);
    color:var(--site-primary-ink,#303e8c);
    padding:12px 18px;
    font-size:12px;font-weight:700;letter-spacing:.03em;
    border-top:1px solid #dce1f2;
    border-bottom:1px solid #dce1f2;
}
@media(max-width:575px){body .reports-page .rp-group-head{padding:13px 15px;gap:11px}body .reports-page .rp-group-head h2{font-size:14px}}
