:root {
    --navy: #16324f;
    --blue: #1d6fa5;
    --light: #f4f7fa;
    --border: #dbe2ea;
    --text: #23303d;
    --danger: #dc3545;
    --success: #28a745;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--light);
    color: var(--text);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    background: var(--navy);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: #fff; }
.topbar .brand { font-weight: 700; font-size: 1.15rem; }
.topbar nav a { margin-left: 18px; font-size: 0.95rem; }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 20px;
}

h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.25rem; margin-top: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

label { display: block; font-weight: 600; margin: 12px 0 5px; font-size: 0.92rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=file], input[type=tel], textarea, select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}
textarea { min-height: 90px; resize: vertical; }

.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 14px;
}
.btn:hover { background: #175a86; text-decoration: none; }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-secondary { background: #6c757d; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; margin-top: 0; }

.link-btn-danger {
    background: none;
    border: none;
    padding: 0;
    color: var(--danger);
    text-decoration: underline;
    font-size: inherit;
    cursor: pointer;
}
.link-btn-danger:hover { color: #a71d2a; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { background: #eef2f6; }

.badge {
    display: inline-block;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 0.92rem; }
.alert-success { background: #e6f6ea; color: #1c6b31; border: 1px solid #b7e3c3; }
.alert-error { background: #fdecec; color: #a02330; border: 1px solid #f3bcc0; }
.alert-info { background: #e8f2fa; color: #14588a; border: 1px solid #bcdcf3; }

.muted { color: #6c7a89; font-size: 0.87rem; }
.stat-box { text-align: center; padding: 18px; }
.stat-box .num { font-size: 2rem; font-weight: 700; color: var(--navy); }

.center-box {
    max-width: 420px;
    margin: 60px auto;
}

/* ---- Job cards (professional, highlighted look) ---- */
.job-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--blue);
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(22, 50, 79, 0.06);
}
.job-card.job-card-awarded { border-left-color: var(--success); }
.job-card.job-card-closed { border-left-color: #6c7a89; opacity: 0.85; }

.job-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.job-card-head h2 { margin: 0; font-size: 1.3rem; color: var(--navy); }

.journey-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    white-space: nowrap;
}
.journey-return { background: linear-gradient(135deg, #1d6fa5, #16324f); }
.journey-am_only { background: linear-gradient(135deg, #e0a800, #b3860a); }
.journey-pm_only { background: linear-gradient(135deg, #6f42c1, #4c2d8c); }

.job-tags { margin: 6px 0 16px; }
.job-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef4fa;
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 8px 8px 0;
}
.job-tag.job-tag-highlight { background: #fff4d6; color: #7a5b00; }

.schedule-block { margin: 14px 0; }
.schedule-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 14px;
    background: #f4f7fa;
    border-radius: 8px;
    margin-bottom: 8px;
}
.schedule-days {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 6px;
    min-width: 62px;
    text-align: center;
}
.schedule-leg { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.leg-badge {
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    min-width: 30px;
    text-align: center;
}
.leg-arrow { color: #9aa7b4; }

.job-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px 20px;
    margin: 16px 0;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.job-meta-item .meta-label {
    display: block;
    color: #6c7a89;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}
.job-meta-item .meta-value { font-size: 0.92rem; font-weight: 600; color: var(--text); }

.extra-stops-block {
    margin: 14px 0;
    padding: 10px 14px;
    background: #fbf7ff;
    border: 1px dashed #d9c6f5;
    border-radius: 8px;
}
.extra-stop-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    padding: 4px 0;
}

/* ---- "What you are bidding for" panel on the bid form ---- */
.bid-for-panel {
    background: linear-gradient(135deg, #eef4fa, #e3edf7);
    border: 1px solid #cddff0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.bid-for-panel .meta-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    color: #5b7a96;
}
.bid-for-panel .bid-for-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

/* =========================================================
   DRIVER JOB CARD - "route timeline" design
   Deliberately different structure from the admin card: a dark
   header band instead of a thin top accent, and every stop
   (main pickup/drop-off plus any extra stops) threaded onto one
   connected timeline with dots and a line, rather than a main
   route box followed by a separate boxed list of extras.
   ========================================================= */
.job-card-simple {
    position: relative;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(22, 50, 79, 0.10), 0 1px 3px rgba(22, 50, 79, 0.08);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.job-card-simple:hover {
    box-shadow: 0 14px 34px rgba(22, 50, 79, 0.16), 0 2px 8px rgba(22, 50, 79, 0.1);
    transform: translateY(-3px);
}

.jc-band {
    background: linear-gradient(120deg, #16324f 0%, #1d6fa5 100%);
    padding: 18px 24px 16px;
    position: relative;
}
.job-card-simple.is-awarded .jc-band {
    background: linear-gradient(120deg, #145c33 0%, #28a745 100%);
}
.jc-band::after {
    content: "";
    position: absolute;
    right: -30px; top: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.jc-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}
.jc-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.jc-band .job-ref-tag {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}
.jc-band .journey-pill {
    background: rgba(255,255,255,0.18) !important;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(2px);
}
.jc-sub {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
}

.jc-body { padding: 20px 24px 22px; }

/* Route timeline - every stop (main + extra) as a connected dot/line,
   in visit order, instead of a boxed "main route" panel plus a separate
   boxed list of extras. */
.jc-timeline { margin-bottom: 18px; }
.jc-stop {
    display: flex;
    gap: 14px;
    position: relative;
}
.jc-stop-marker {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18px;
}
.jc-stop-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid #dcecf8;
    flex: 0 0 auto;
    z-index: 1;
}
.jc-stop.is-dropoff .jc-stop-dot { background: #6f42c1; border-color: #ebe1f8; }
.jc-stop-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, #cfe0ee, #e7d9f7);
    margin: 2px 0;
    min-height: 22px;
}
.jc-stop:last-child .jc-stop-line { display: none; }
.jc-stop-content { flex: 1; padding-bottom: 18px; min-width: 0; }
.jc-stop:last-child .jc-stop-content { padding-bottom: 0; }
.jc-stop-kind {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}
.jc-stop.is-dropoff .jc-stop-kind { color: #6f42c1; }
.jc-stop-days {
    background: #eef4fa;
    color: var(--navy);
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.jc-stop.is-dropoff .jc-stop-days { background: #f1e9fa; }
.jc-override-flag {
    background: #fff0d6;
    color: #8a6900;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.jc-stop-address {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}
.jc-stop.is-override .jc-stop-content {
    background: linear-gradient(135deg, #fffaf0, #fef3d9);
    border: 1px solid #f0dfa8;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: -2px;
}
.jc-stop-meta {
    font-size: 0.83rem;
    color: #6c7a89;
    margin-top: 2px;
}

/* Additional Student - a genuinely DIFFERENT pupil collected/dropped on
   the same route. Kept visually distinct from the timeline above (which
   is one student's journey, however many days/addresses it varies by),
   using a warm boxed panel rather than more timeline dots, so it never
   reads as part of the same person's route. */
.jc-additional-stops {
    background: linear-gradient(135deg, #fff9ec 0%, #fef3d9 100%);
    border: 1px solid #f0dfa8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.jc-additional-stops-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a6900;
    margin-bottom: 10px;
}
.jc-additional-stop-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #4a3d00;
}
.jc-additional-stop-row + .jc-additional-stop-row { margin-top: 8px; }
.jc-stop-badge {
    flex: 0 0 auto;
    display: inline-block;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.jc-stop-badge-pickup { background: linear-gradient(135deg, #1d6fa5, #2f9bd6); }
.jc-stop-badge-dropoff { background: linear-gradient(135deg, #6f42c1, #9163d9); }

/* Stat chips - a horizontal strip instead of stacked key/value rows */
.jc-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.jc-stat-chip {
    flex: 1 1 130px;
    background: #f4f7fa;
    border: 1px solid #e7edf3;
    border-radius: 10px;
    padding: 9px 12px;
}
.jc-stat-chip-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8092a3;
    margin-bottom: 3px;
}
.jc-stat-chip-value { font-size: 0.9rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.jc-stat-chip-value .jc-muted { font-weight: 400; color: #6c7a89; }
.jc-stat-chip.is-highlight { background: linear-gradient(135deg, #eef6fc, #e0eefa); border-color: #cfe4f5; }

.jc-flags { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.jc-flag {
    display: inline-block;
    background: linear-gradient(135deg, #fff0d6, #ffe4b3);
    color: #7a4b00;
    border: 1px solid #f0c878;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.83rem;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(154, 108, 0, 0.1);
}

.jc-actions { margin-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.jc-actions .btn {
    box-shadow: 0 2px 8px rgba(29, 111, 165, 0.28);
}
.jc-note { font-size: 0.88rem; color: #6c7a89; margin: 10px 0 0; }

@media (max-width: 760px) {
    .job-card-simple:hover { transform: none; }
    .jc-band { padding: 16px 18px 14px; }
    .jc-body { padding: 18px; }
    .jc-stats { flex-direction: column; }
    .jc-stat-chip { flex: 1 1 auto; }
}

@media (max-width: 760px) {
    .job-card-simple:hover { transform: none; }
}

/* =========================================================
   MOBILE
   ========================================================= */

/* Tables that would otherwise overflow can scroll sideways */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 760px) {
    .wrap { padding: 18px 14px 48px; }

    /* Stack the header and let nav links wrap instead of squashing */
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }
    .topbar nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 14px;
        width: 100%;
    }
    .topbar nav a { margin-left: 0; font-size: 0.9rem; }
    .topbar .brand { font-size: 1.05rem; }

    .card { padding: 18px 16px; }
    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.12rem; }

    /* Comfortable tap targets, and stop iOS zooming on focus (needs >=16px) */
    input[type=text], input[type=email], input[type=password], input[type=number],
    input[type=date], input[type=datetime-local], input[type=file], input[type=tel],
    textarea, select {
        font-size: 16px;
        padding: 11px 12px;
    }
    .btn { padding: 12px 18px; width: 100%; text-align: center; }
    .btn + .btn { margin-top: 8px; }
    .btn-sm { width: auto; padding: 8px 14px; }

    /* Job cards */
    .job-card { padding: 16px 15px; }
    .jc-title { font-size: 1.1rem; }
    .jc-band { padding: 14px 16px 12px; }
    .jc-body { padding: 16px; }

    .job-card-head { flex-direction: column; align-items: flex-start; }
    .schedule-group { flex-direction: column; align-items: flex-start; gap: 8px; }
    .job-meta-grid { grid-template-columns: 1fr; gap: 12px; }

    /* Wide admin tables scroll rather than break the layout */
    .card table { min-width: 560px; }
    .table-scroll .card table, .table-scroll table { min-width: 560px; }
}

@media (max-width: 420px) {
    .jc-extra { margin-left: 0; }
    .stat-box .num { font-size: 1.7rem; }
}

/* =========================================================
   PUBLIC HOME PAGE
   ========================================================= */
.hero {
    background: linear-gradient(135deg, var(--navy), #1d4f78);
    color: #fff;
    border-radius: 12px;
    padding: 44px 32px;
    text-align: center;
    margin-bottom: 24px;
}
.hero h1 { color: #fff; font-size: 1.9rem; margin: 0 0 12px; }
.hero p { max-width: 560px; margin: 0 auto 22px; opacity: 0.92; line-height: 1.55; }
.hero .btn { background: #fff; color: var(--navy); font-weight: 700; }
.hero .btn:hover { background: #e9f1f8; }
.hero .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.65);
}
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); }

.home-job {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.home-job-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.home-job-route { font-size: 0.93rem; line-height: 1.5; }
.home-job-route .arrow { color: #9aa7b4; padding: 0 4px; }
.home-job-more { display: inline-block; margin-top: 10px; font-size: 0.9rem; font-weight: 600; }

@media (max-width: 760px) {
    .hero { padding: 32px 20px; border-radius: 10px; }
    .hero h1 { font-size: 1.45rem; }
    .hero p { font-size: 0.95rem; }
    .hero .btn { width: 100%; }
}

/* =========================================================
   FARE ESTIMATE BOX (bid page + admin job form preview)
   ========================================================= */
.fare-estimate-box {
    background: linear-gradient(135deg, #fffdf0, #fef9e0);
    border: 1px solid #f0e098;
    border-left: 4px solid #c8a200;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
}
.fare-estimate-headline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.fare-icon { font-size: 1.25rem; flex: 0 0 auto; }
.fare-main { font-size: 1.05rem; color: var(--navy); }
.fare-label-pill {
    background: #c8a200;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.fare-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.83rem;
    color: #5a5000;
    margin-bottom: 8px;
}
.fare-breakdown span { white-space: nowrap; }
.fare-return-note {
    flex: 0 0 100%;
    font-weight: 600;
    color: var(--navy);
    margin-top: 4px;
    white-space: normal !important;
}
.fare-disclaimer {
    margin: 0;
    font-size: 0.8rem;
    color: #7a6a00;
    font-style: italic;
}

@media (max-width: 760px) {
    .fare-estimate-headline { flex-direction: column; align-items: flex-start; }
    .fare-breakdown { flex-direction: column; gap: 4px; }
    .fare-breakdown span { white-space: normal; }
}

/* Unique job reference tag shown next to the title */
.job-ref-tag {
    display: inline-block;
    background: linear-gradient(135deg, #eef6fc, #dceefa);
    color: var(--navy);
    border: 1px solid #b9dcf2;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Job search box on the driver Open Jobs page */
.job-search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.job-search-box input[type=text] {
    flex: 1;
}
.job-search-box .btn { margin-top: 0; width: auto; white-space: nowrap; }
@media (max-width: 760px) {
    .job-search-box { flex-direction: column; }
    .job-search-box .btn { width: 100%; }
}

/* =========================================================
   ALL JOBS TABLE (admin) - redesigned again after the sticky
   actions column squeezed the Status/Bids columns. This
   version uses fewer, merged columns and lightweight inline
   action links (not full-width stacked buttons) so the whole
   table fits comfortably without needing a sticky column or,
   usually, any horizontal scroll at all on a normal screen.
   ========================================================= */
.jobs-table-card { padding: 0; }
.jobs-table-card .table-scroll {
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: auto;
}
.jobs-table-card .table-scroll::-webkit-scrollbar { height: 10px; }
.jobs-table-card .table-scroll::-webkit-scrollbar-track { background: #eef2f6; }
.jobs-table-card .table-scroll::-webkit-scrollbar-thumb { background: #b7c3cf; border-radius: 6px; }
.jobs-table-card .table-scroll::-webkit-scrollbar-thumb:hover { background: #98a7b6; }
.jobs-table { margin: 0; width: 100%; table-layout: fixed; }
.jobs-table th {
    background: #f4f7fa;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c7a89;
    padding: 11px 12px;
    white-space: nowrap;
    text-align: left;
}
.jobs-table td { padding: 11px 12px; vertical-align: top; font-size: 0.86rem; overflow-wrap: break-word; }
.jobs-table tr:hover td { background: #fafcfe; }

.jobs-table col.col-job      { width: 21%; }
.jobs-table col.col-requires { width: 9%; }
.jobs-table col.col-days     { width: 7%; }
.jobs-table col.col-route    { width: 24%; }
.jobs-table col.col-dates    { width: 14%; }
.jobs-table col.col-status   { width: 9%; }
.jobs-table col.col-actions  { width: 16%; }

.jt-ref {
    display: inline-block;
    background: #eef4fa;
    color: var(--navy);
    border: 1px solid #cddff0;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 6px;
    margin-bottom: 3px;
}
.jt-title { display: block; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 2px; font-size: 0.88rem; }
.jt-school { display: block; font-size: 0.76rem; color: #6c7a89; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-journey.journey-pill { font-size: 0.64rem; padding: 2px 8px; }

.jt-req-pill {
    display: inline-block;
    background: #fff4d6;
    color: #7a5b00;
    border: 1px solid #f0e0b0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    margin: 0 3px 3px 0;
}

.jt-days { font-weight: 600; color: var(--navy); }

.jt-route { font-size: 0.8rem; line-height: 1.45; cursor: help; }
.jt-route span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-route-arrow { color: #9aa7b4; padding-left: 2px; }

.jt-dates { font-size: 0.76rem; line-height: 1.4; }
.jt-dates .jt-dates-label { display: block; color: #8092a3; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 6px; }
.jt-dates .jt-dates-label:first-child { margin-top: 0; }
.jt-closed-flag {
    display: inline-block;
    background: #fdecec;
    color: #a02330;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-top: 3px;
}

.jt-status-cell { text-align: center; }
.jt-status-cell .badge { font-size: 0.72rem; }
.jt-bids-count { display: block; margin-top: 5px; font-size: 0.72rem; color: #6c7a89; }
.jt-bids-count strong { color: var(--navy); }

/* Lightweight inline action links - not full-width buttons, so the
   column doesn't need to be wide enough for three stacked buttons. */
.jt-actions { white-space: nowrap; font-size: 0.83rem; }
.jt-actions a { font-weight: 600; }
.jt-actions .jt-sep { color: #cdd6df; padding: 0 4px; }
.jt-actions form { display: inline; }
.jt-actions .link-btn-danger { font-size: 0.83rem; font-weight: 600; }

@media (max-width: 1000px) {
    .jobs-table { min-width: 900px; table-layout: auto; }
}
