.report-card {
    --card-bg: #f7f3ea;
    --card-accent: #c9a469;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
    background: var(--card-bg);
    border-left: 5px solid var(--card-accent);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Report Type (Summary/Detailed) tints the card's off-white background and
   its left accent bar - Summary keeps the original warm cream/gold tone,
   Detailed switches to a cooler off-white with a blue accent. */
.report-card.report-type-detailed {
    --card-bg: #e6ebf4;
    --card-accent: #6d8fc9;
}

/* Left-border color by Project Status, used on ReportCompletedYearly and
   DashboardSummary (see Lookups.ProjectStatusBorderClass) - Completed cards
   keep the default border color above, since these three only cover the
   "still running" statuses. !important because on DashboardSummary this
   needs to win over the ProcessType-driven --card-accent border tint
   (process-type-*, defined in dashboard-summary.css) - only the border color
   itself is status-driven there, the background/corner tint stays
   ProcessType-based. */
.report-card.status-in-progress {
    border-left-color: #2f8f4e !important;
}

.report-card.status-pending {
    border-left-color: #d4a017 !important;
}

.report-card.status-hold {
    border-left-color: #dc3545 !important;
}

.report-card-header {
    background: #eaf5ee;
    border-bottom: 1px solid #dcebe0;
    padding: .45rem .7rem;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #d7ead9;
    color: #2f6d46;
    flex-shrink: 0;
}

.header-icon svg { width: 15px; height: 15px; }

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dcebe0;
    text-decoration: none;
    flex-shrink: 0;
}

.header-action svg { width: 12px; height: 12px; }

.header-action.action-view { color: #0d6efd; }
.header-action.action-remove { color: #dc3545; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .6rem;
    color: #5c8a6a;
    font-weight: 600;
    line-height: 1;
    margin-bottom: .1rem;
}

.pilot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f5586;
}

.pilot-badge svg { width: 11px; height: 11px; }

.project-name {
    color: #1e3d31 !important;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.1;
}

.report-card-body {
    background: var(--card-bg);
    padding: .65rem .75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.info-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .3rem 0;
}

.row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #ece4cf;
    color: #8a7f63;
    flex-shrink: 0;
}

.row-icon svg { width: 14px; height: 14px; }

/* The Project Type row shows the entry's process (Sketch Verification,
   Sketch Check, Paper to Apex, Draw from Imagery) - tint the whole row by
   that value, not by Production/Pilot, so every card with the same process
   type reads the same color regardless of project type. */
.process-type-row {
    border-radius: 8px;
    padding: .3rem .5rem;
    margin: 0 -.5rem;
}

.process-type-row.process-type-sketch-verification {
    background: #f1ece0;
}

.process-type-row.process-type-sketch-check {
    background: #dbe4f3;
}

.process-type-row.process-type-sketch-check .row-icon {
    background: #cddaf0;
    color: #2f5586;
}

.process-type-row.process-type-paper-to-apex {
    background: #dfefe1;
}

.process-type-row.process-type-paper-to-apex .row-icon {
    background: #cbe5cf;
    color: #2f6d46;
}

.process-type-row.process-type-draw-from-imagery {
    background: #e9e0f2;
}

.process-type-row.process-type-draw-from-imagery .row-icon {
    background: #dccdef;
    color: #6a4f96;
}

.process-type-row.process-type-other {
    background: #e6e6e6;
}

.process-type-row.process-type-other .row-icon {
    background: #dcdcdc;
    color: #5a5a5a;
}

.row-label {
    text-transform: uppercase;
    font-size: .6rem;
    letter-spacing: .05em;
    color: #9a9484;
    line-height: 1.2;
}

.row-value {
    font-weight: 700;
    color: #2b2b28;
    line-height: 1.2;
}

.report-card-body hr {
    margin: 0;
    border-color: #e4ddc9;
    opacity: 1;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .5rem;
}

.count-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2b2b28;
    line-height: 1.15;
}

.count-label {
    font-size: .65rem;
    color: #9a9484;
    text-transform: lowercase;
    line-height: 1.2;
}

.completed-count-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2f6d46;
    margin-top: .2rem;
    line-height: 1.15;
}

.ring-wrap {
    text-align: center;
}

.progress-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#c9a469 calc(var(--pct) * 1%), #ece4cf 0);
    margin: 0 auto .15rem;
    position: relative;
}

.progress-ring::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--card-bg);
}

.progress-ring span {
    position: relative;
    z-index: 1;
    font-size: .65rem;
    font-weight: 700;
    color: #2b2b28;
}

.header-action.action-note {
    position: relative;
}

.note-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dc3545;
    border: 1px solid #fff;
}

/* Two-way comment thread (admin <-> guest) shown in the Notes modal - each row
   is a date/author column plus a comment-text column, tinted by who wrote it
   so the two sides of the conversation are visually distinct at a glance.
   Reuses the same warm-cream vs cool-blue tones as report-type-summary vs
   report-type-detailed for consistency with the rest of the app's color
   language: admin stays on the app's default warm tone, guest gets the cooler
   blue used elsewhere for the "other" variant. */
.comment-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: .75rem;
    padding: .5rem .6rem;
    border-radius: 8px;
    margin-bottom: .5rem;
}

.comment-row-admin {
    background: #f1ece0;
}

.comment-row-guest {
    background: #e6ebf4;
}

.comment-meta {
    font-size: .7rem;
    color: #6b6558;
    line-height: 1.3;
}

.comment-author {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.comment-text {
    font-size: .9rem;
    color: #2b2b28;
    word-break: break-word;
}

.ring-label {
    font-size: .6rem;
    color: #9a9484;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
