@import url('brandingPalette.css');

/* ── Job list table ──────────────────────────────────────────
   Brand typography for the canonical job list rendered by
   JobView::renderJobList. The table tag itself is in the page
   (e.g. #mc_jobList, #jobsList_TB); these rules style the rows
   the view injects. */

.cwh-job-list thead th {
    font-family: var(--cwh-font-family);
    font-weight: var(--cwh-font-bold);
    color: var(--cwh-dark-blue);
    border-bottom: 1px solid var(--cwh-border);
}

.cwh-job-list tbody td {
    font-family: var(--cwh-font-family);
    color: var(--cwh-black);
    border-color: var(--cwh-border);
    vertical-align: middle;
}

/* ── Status badges ───────────────────────────────────────────
   Replaces Bootstrap's badge-soft-* utilities for branded job
   status, facilitator status, and site status pills. */

.cwh-job-badge {
    display: inline-block;
    font-family: var(--cwh-font-family);
    font-weight: var(--cwh-font-medium);
    font-size: 12px;
    padding: 6px 12px !important;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

.cwh-job-badge--success {
    background: rgba(40, 167, 69, 0.12);
    color: var(--cwh-success);
}

.cwh-job-badge--danger {
    background: var(--cwh-danger-bg);
    color: var(--cwh-danger);
}

.cwh-job-badge--primary {
    background: rgba(0, 51, 126, 0.10);
    color: var(--cwh-dark-blue);
}

.cwh-job-badge--info {
    background: rgba(61, 150, 217, 0.18);
    color: var(--cwh-middle-blue);
}

.cwh-job-badge--warning {
    background: rgba(255, 237, 0, 0.30);
    color: var(--cwh-dark-blue);
}

.cwh-job-badge--neutral {
    background: var(--cwh-border);
    color: var(--cwh-mid-grey);
}

/* ── Metric badges (Booked / Breaks / Displaced) ─────────────
   Solid pills used in the calculations columns of the job list. */

.cwh-job-metric {
    display: inline-block;
    font-family: var(--cwh-font-family);
    font-weight: var(--cwh-font-bold);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--cwh-white);
    min-width: 32px;
    text-align: center;
}

.cwh-job-metric--booked {
    background: var(--cwh-middle-blue);
}

.cwh-job-metric--breaks {
    background: var(--cwh-open-blue);
}

.cwh-job-metric--displaced {
    background: var(--cwh-dark-blue);
}

/* ── Row action button ───────────────────────────────────────
   Branded replacement for the Bootstrap btn-success "View" button
   used at the end of each job row. */

.cwh-job-action-btn {
    font-family: var(--cwh-font-family);
    font-weight: var(--cwh-font-medium);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--cwh-dark-blue);
    color: var(--cwh-white);
    border: 1px solid var(--cwh-dark-blue);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cwh-job-action-btn:hover {
    background: var(--cwh-open-blue);
    border-color: var(--cwh-open-blue);
    color: var(--cwh-white);
}
