/* ── Printable Runs List ─────────────────────────────────────────────────── */

.print-actions {
    margin-bottom: 1.25em;
}

.print-rides-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    line-height: 1.4;
}

.print-rides-table thead th {
    background: #555;
    color: #fff;
    padding: 0.45em 0.7em;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.print-rides-table tbody td {
    padding: 0.3em 0.7em;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.print-rides-table tr.day-header td {
    background: #dde8f0;
    font-weight: 700;
    font-size: 0.95em;
    padding: 0.45em 0.7em;
    border-top: 2px solid #aac4d8;
    border-bottom: 1px solid #aac4d8;
}

.print-rides-table tr.day-header:first-child td {
    border-top: none;
}

.print-rides-table tbody tr:not(.day-header):hover td {
    background: #f6f8fb;
}

/* Column widths */
.print-rides-table thead th:nth-child(1) { width: 22%; }
.print-rides-table thead th:nth-child(2) { width: 8%;  }
.print-rides-table thead th:nth-child(3) { width: 30%; }
.print-rides-table thead th:nth-child(4) { width: 18%; }
.print-rides-table thead th:nth-child(5) { width: 22%; }

/* ── Print styles ────────────────────────────────────────────────────────── */

@media print {
    /* Hide navigation, footer, and on-screen controls */
    #header,
    #footer,
    .print-actions {
        display: none !important;
    }

    body,
    #page-wrapper,
    #main,
    .container,
    .box.post {
        background: white !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .print-rides-table {
        font-size: 8.5pt;
        line-height: 1.3;
        width: 100%;
    }

    .print-rides-table thead th {
        background: #555 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 0.3em 0.5em;
    }

    .print-rides-table tbody td {
        padding: 0.2em 0.5em;
    }

    .print-rides-table tr.day-header td {
        background: #dde8f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 0.3em 0.5em;
    }

    /* Keep each day's header with its first ride row */
    .print-rides-table tr.day-header {
        page-break-after: avoid;
        break-after: avoid;
    }

    /* Avoid splitting a single ride row across pages */
    .print-rides-table tbody tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    h2 {
        font-size: 14pt;
        margin-bottom: 0.5em;
    }
}
