/* ===========================
   BASE GÉNÉRALE
=========================== */
html, body {
    margin: 0;
    padding: 0;
}

body.livreur-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f5f7;
    color: #333;
}

/* ===========================
   HEADER / NAVBAR
=========================== */
.navbar {
    min-height: 52px;
}

.navbar .navbar-brand {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar .navbar-brand i {
    font-size: 18px;
}

.navbar .text-end small {
    line-height: 1.2;
}

/* ===========================
   CONTAINER / CARTES
=========================== */
.container {
    max-width: 600px;
}

.card {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

.card-body {
    padding: 12px 14px;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    margin: 0;
}

/* ===========================
   BOUTONS
=========================== */
.btn {
    font-size: 14px;
    border-radius: 8px;
}

.btn-sm {
    font-size: 12px;
    padding: 4px 8px;
}

/* Pour des gros boutons faciles au doigt */
.btn-lg,
.input-group .btn-lg {
    font-size: 16px;
    border-radius: 10px;
}

/* ===========================
   BADGES / ÉTATS
=========================== */
.badge {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
}

/* État global côté livreur (mêmes classes que tracking-admin) */
.etat-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
}

.etat-nontraite {
    background: #6c757d;
}

.etat-encours {
    background: #0d6efd;
}

.etat-terminee {
    background: #198754;
}

/* ===========================
   FORMULAIRES
=========================== */
.form-label {
    font-size: 13px;
    margin-bottom: 2px;
}

.form-control,
.form-select {
    border-radius: 8px;
    font-size: 14px;
    padding: 6px 10px;
}

/* input de scan */
.form-control-lg {
    font-size: 16px;
    padding: 10px 12px;
}

/* ===========================
   SIGNATURE PAD
=========================== */
#signature-pad {
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    height: 200px;
    touch-action: none; /* important pour mobile */
}

/* ===========================
   PHOTOS
=========================== */
.card-img-top {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card .small {
    font-size: 12px;
}

/* ===========================
   TABLES (mes_colis)
=========================== */
.table {
    font-size: 13px;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom-width: 1px;
}

.table td,
.table th {
    padding: 6px 8px;
    vertical-align: middle;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar .navbar-brand {
        font-size: 15px;
    }
}
