/* ==========================================================================
   JOBS.HTML — feuille dédiée (refonte du 21/10/2026) : règles
   d'origine puis habillage « route de nuit ».
   ========================================================================== */


        /* ============================================
           MES LIVRAISONS — consultation des missions enregistrées
           Cette page ne saisit rien et ne calcule aucun gain : elle LIT ce que le
           hub a écrit à partir de la télémétrie du tracker. Le socle (couleurs,
           rayons, typographie) vient de hub.css ; ici, seuls les blocs propres à
           la page sont posés.
           ============================================ */
        .jb-alerte {
            display: none; border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 20px;
            font-size: var(--font-base); line-height: 1.6;
            border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary);
        }
        .jb-alerte.visible { display: block; }
        .jb-alerte.info { background: rgba(var(--rgb-blue), .10); border-color: rgba(var(--rgb-blue), .35); }
        .jb-alerte.warn { background: rgba(var(--rgb-yellow), .10); border-color: rgba(var(--rgb-yellow), .35); }
        .jb-alerte a { color: var(--accent-blue); font-weight: var(--font-weight-semibold); }

        .jb-block {
            background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 20px;
            box-shadow: var(--shadow-sm);
        }
        .jb-block h2 { font-size: var(--font-xl); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 4px; }
        .jb-block p.hint { font-size: var(--font-md); color: var(--text-secondary); margin-bottom: 14px; }
        .jb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
        .jb-head p.hint { margin-bottom: 0; }

        .jb-btn {
            display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
            border-radius: var(--radius-md); border: 1px solid var(--border-color);
            background: var(--bg-input); color: var(--text-secondary);
            font-size: var(--font-base); font-weight: var(--font-weight-semibold);
            cursor: pointer; font-family: inherit;
            transition: color var(--transition-rapide), border-color var(--transition-rapide),
                        background-color var(--transition-rapide);
        }
        .jb-btn:hover { color: var(--text-primary); border-color: var(--accent-blue); }
        .jb-btn:disabled { opacity: .55; cursor: not-allowed; }
        .jb-btn:focus-visible { outline: var(--focus-ring-outline); outline-offset: 2px; }

        /* ---------- mission en cours : des faits, jamais un bloc vide ---------- */
        .jb-faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
        .jb-fait {
            background: var(--bg-secondary); border: 1px solid var(--border-color);
            border-radius: var(--radius-md); padding: 11px 13px;
        }
        .jb-fait .l { font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
        .jb-fait .v {
            font-size: var(--font-lg); font-weight: var(--font-weight-bold); color: var(--text-primary);
            margin-top: 3px; word-break: break-word; font-variant-numeric: tabular-nums;
        }

        /* ---------- totaux ---------- */
        .jb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
        .jb-stat {
            background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: var(--radius-md); padding: 15px 17px; box-shadow: var(--shadow-sm);
        }
        .jb-stat .v { font-size: var(--font-4xl); font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
        .jb-stat .l { font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); margin-top: 2px; }
        .jb-stat .n { font-size: var(--font-xs); color: var(--text-muted); margin-top: 6px; }
        .jb-stat.blue .v { color: var(--accent-blue); }
        .jb-stat.green .v { color: var(--accent-green); }
        .jb-stat.gold .v { color: var(--accent-yellow); }
        .jb-stat.red .v { color: var(--accent-red); }
        #jbStatsNote { margin: 10px 0 20px; }

        /* ---------- filtres ---------- */
        .jb-filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
        .jb-filtres label { font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
        .jb-select, .jb-input {
            padding: 9px 12px; background: var(--bg-input); color: var(--text-primary);
            border: 1px solid var(--border-color); border-radius: var(--radius-sm);
            font-size: var(--font-md); font-family: inherit;
        }
        .jb-input { min-width: 260px; flex: 1 1 220px; }
        .jb-select:focus-visible, .jb-input:focus-visible { outline: var(--focus-ring-outline); outline-offset: 2px; }
        .jb-select option { background: var(--bg-card); color: var(--text-primary); }

        /* ---------- tableau ---------- */
        .jb-table { width: 100%; border-collapse: collapse; font-size: var(--font-md); }
        .jb-table th {
            text-align: left; font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .4px;
            color: var(--text-muted); padding: 8px 10px; white-space: nowrap;
        }
        .jb-table td { padding: 9px 10px; border-top: 1px solid var(--border-color); color: var(--text-primary); vertical-align: top; }
        .jb-table tbody tr[data-index] { cursor: pointer; transition: background-color var(--transition-rapide); }
        .jb-table tbody tr[data-index]:hover { background: var(--bg-secondary); }
        .jb-table tbody tr[data-index]:focus-visible { outline: var(--focus-ring-outline); outline-offset: -2px; }
        .jb-table tbody tr:nth-child(even):not(:hover) { background: rgba(var(--rgb-white), .02); }
        .jb-trajet { font-weight: var(--font-weight-semibold); }
        .jb-montant { font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
        .jb-note { display: block; font-size: var(--font-xs); color: var(--text-muted); margin-top: 3px; line-height: 1.5; }

        /* ---------- pastilles de statut ---------- */
        .jb-pill {
            display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
            border-radius: var(--radius-xl); font-size: var(--font-xs); font-weight: var(--font-weight-bold);
            white-space: nowrap;
        }
        .jb-pill.ok { background: rgba(var(--rgb-green), .15); color: var(--accent-green); border: 1px solid rgba(var(--rgb-green), .35); }
        .jb-pill.warn { background: rgba(var(--rgb-yellow), .15); color: var(--accent-yellow); border: 1px solid rgba(var(--rgb-yellow), .35); }
        .jb-pill.ko { background: rgba(var(--rgb-red), .15); color: var(--accent-red); border: 1px solid rgba(var(--rgb-red), .35); }
        .jb-pill.off { background: rgba(148, 163, 184, .12); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, .3); }

        /* ---------- états vides et listes ---------- */
        .jb-vide { text-align: center; padding: 26px 12px; color: var(--text-muted); font-size: var(--font-md); }
        .jb-vide strong { display: block; color: var(--text-secondary); font-size: var(--font-lg); margin-bottom: 6px; }
        .jb-vide span { display: block; max-width: 640px; margin: 0 auto; line-height: 1.6; }
        .jb-texte { font-size: var(--font-md); color: var(--text-secondary); line-height: 1.7; padding-left: 20px; }
        .jb-texte li { margin-bottom: 7px; }

        /* ---------- détail d'une mission ---------- */
        .jb-modal {
            position: fixed; inset: 0; z-index: var(--z-modal);
            display: flex; align-items: center; justify-content: center; padding: 20px;
            background: rgba(var(--rgb-black), .72); backdrop-filter: blur(6px);
        }
        .jb-modal[hidden] { display: none; }
        .jb-modal-boite {
            background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: var(--radius-xl); max-width: 820px; width: 100%; max-height: 90vh;
            display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
        }
        .jb-modal-tete {
            display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
            padding: 18px 20px; border-bottom: 1px solid var(--border-color);
        }
        .jb-modal-tete h2 { font-size: var(--font-2xl); font-weight: 800; color: var(--text-primary); }
        .jb-modal-tete p { font-size: var(--font-md); color: var(--text-secondary); margin-top: 4px; }
        .jb-modal-fermer {
            width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
            border: 1px solid var(--border-color); background: var(--bg-input);
            color: var(--text-muted); cursor: pointer;
        }
        .jb-modal-fermer:hover { color: var(--accent-red); border-color: rgba(var(--rgb-red), .4); }
        .jb-modal-fermer:focus-visible { outline: var(--focus-ring-outline); outline-offset: 2px; }
        .jb-modal-corps { padding: 18px 20px; overflow-y: auto; }
        .jb-section {
            font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .6px;
            color: var(--text-muted); font-weight: var(--font-weight-bold);
            margin: 18px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border-color);
        }
        .jb-section:first-child { margin-top: 0; }
        .jb-ligne { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: var(--font-base); }
        .jb-ligne:last-child { border-bottom: none; }
        .jb-ligne .l { color: var(--text-muted); font-size: var(--font-md); flex-shrink: 0; }
        .jb-ligne .v { color: var(--text-primary); font-weight: var(--font-weight-semibold); text-align: right; word-break: break-word; }
        .jb-controle { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border-color); }
        .jb-controle:last-child { border-bottom: none; }
        .jb-controle .marque { flex-shrink: 0; font-weight: 800; }
        .jb-controle.ok .marque { color: var(--accent-green); }
        .jb-controle.ko .marque { color: var(--accent-red); }
        .jb-controle .texte { font-size: var(--font-md); color: var(--text-secondary); line-height: 1.6; }
        .jb-controle .texte strong { display: block; color: var(--text-primary); font-size: var(--font-base); }

        @media (max-width: 768px) {
            .jb-ligne { flex-direction: column; gap: 2px; }
            .jb-ligne .v { text-align: left; }
            .jb-input { min-width: 0; }
        }
    
.page-header h1, h1 { font-family: 'Barlow Condensed','Inter',sans-serif; text-transform: uppercase; font-weight: 800; color: var(--text-primary); }
.job-card, .card, section { border-radius: var(--radius-xl); border-color: rgba(var(--rgb-white), .07); }
.tableau-defile { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
