/* The Wiring page look on the table pages (body class "card-rows"): light gray page, every job
   a white rounded card with a gap. Each page keeps its own columns and header.
   Load after the page's own CSS. */

.card-rows .pBottom{
    background: #f7f7f7;
}

/* the gray goes right up to the black line under the top bar, and down to the bottom */
.card-rows .pTop{
    margin-bottom: 0;
}

.card-rows .pannel{
    padding-bottom: 0;
}

/* header: quiet gray text on the gray page (still sticks to the top while scrolling) */
.card-rows .row-head{
    background: #f7f7f7;
    border-bottom: none;
    font-size: 12px;
    font-weight: 600;
    color: #777;
}

/* Start Date: the header is just small gray capitals on the page, lined up with the card text
   (the clear 1px border matches the cards' border so the columns line up exactly) */
.card-rows.startdate-page .row-head{
    background: #f7f7f7;
    border: 1px solid transparent;
    border-bottom: 1px solid #e2e2e2;
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-rows.startdate-page .row-head > div{
    padding-top: 12px;
    padding-bottom: 6px;
}

/* title above the table (computer only): "Upcoming Jobs [76]" */
.card-rows.startdate-page .upcoming-title{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

@media (max-width: 1024px) {
    .card-rows.startdate-page .upcoming-title{
        display: none;
    }
}

.card-rows.startdate-page .upcoming-count{
    padding: 2px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.card-rows .rows-container{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.card-rows .rows-container:empty{
    padding: 0;
}

.card-rows .rows-container .job-row,
.card-rows .rows-container .job-row:nth-child(even){
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
}

/* open (tapped) job: yellow, like before */
.card-rows .rows-container .job-row.open,
.card-rows .rows-container .job-row.open:nth-child(even){
    background: #fff6d6;
    border-color: #f5a800;
}

.card-rows .rows-container .job-row.highlight{
    background: #fffbef;
    border-color: #f5a800;
}

/* Mechanics / Drafting / Start Date: no yellow — an open job stays white, with a darker border */
.card-rows.mechanic-page .rows-container .job-row.open,
.card-rows.mechanic-page .rows-container .job-row.open:nth-child(even),
.card-rows.mechanic-page .rows-container .job-row.highlight,
.card-rows.startdate-page .rows-container .job-row.open,
.card-rows.startdate-page .rows-container .job-row.open:nth-child(even),
.card-rows.startdate-page .rows-container .job-row.highlight{
    background: #fff;
    border-color: #c8c8c8;
}

/* no line above Plans / Steel */
.card-rows.startdate-page .detail-items{
    border-top: none;
}

/* Phone / tablet cards (Mechanics + Drafting): the same top as the Wiring cards —
     270 Bergen St (bold)                Nov 2
     Brooklyn, NY (small gray)                   */
@media (max-width: 1024px) {
    .card-rows .rows-container .job-row,
    .card-rows .rows-container .job-row:nth-child(even){
        border-radius: 12px;
    }

    /* Start Date: less gray on the sides, so the rows are wider (same as Mechanics) */
    .card-rows.startdate-page .pBottom{
        padding-left: 8px;
        padding-right: 8px;
    }

    /* same inside space as the Wiring cards */
    .card-rows.mechanic-page .rows-container .job-row,
    .card-rows.mechanic-page .rows-container .job-row:nth-child(even){
        padding: 14px;
    }

    .card-rows.mechanic-page .job-row .name,
    .card-rows.mechanic-page .job-row .name-text{
        font-size: 15px;
        font-weight: 700;
        color: #111;
    }

    .card-rows.mechanic-page .job-row .job-gc{
        display: block;
        margin-top: 2px;
        font-size: 13px;
        font-weight: 400;
        color: #777;
    }

    /* the start date: plain text, no pill (a late date keeps its red pill) */
    .card-rows.mechanic-page .job-row .startdate:not(.late){
        padding: 0;
        background: none;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #111;
    }
}

/* "Started more than 4 weeks ago": a white card too, its jobs on gray inside it */
.card-rows .past-section{
    margin-top: 8px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
}

.card-rows .past-toggle{
    background: none;
    border: none;
}

.card-rows .past-body{
    padding: 0 8px;
    background: #f7f7f7;
}
