/*
|--------------------------------------------------------------------------
| RESET
|--------------------------------------------------------------------------
*/

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}

html,
body {

    width: 100%;

    overflow-x: hidden;
}

body {

    font-family: Arial, sans-serif;

    background: #f5f7fb;

    color: #222;

    padding: 15px;
}

/*
|--------------------------------------------------------------------------
| CONTAINER
|--------------------------------------------------------------------------
*/

.container {

    width: 100%;

    max-width: 1000px;

    margin: auto;
}

/*
|--------------------------------------------------------------------------
| TITRES
|--------------------------------------------------------------------------
*/

h1,
h2,
h3 {

    margin-bottom: 15px;

    color: #1e293b;
}

/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.card {

    background: white;

    border-radius: 16px;

    padding: 20px;

    margin-bottom: 20px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

    width: 100%;

    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| FORMULAIRES
|--------------------------------------------------------------------------
*/

form {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;

    overflow: hidden;
}

label {

    font-weight: bold;

    display: block;
}

/*
|--------------------------------------------------------------------------
| INPUTS
|--------------------------------------------------------------------------
*/

input,
select,
button,
textarea {

    width: 100%;

    max-width: 100%;

    min-width: 0;

    height: 50px;

    padding: 0 14px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    font-size: 16px;

    box-sizing: border-box;

    background: white;
}

/*
|--------------------------------------------------------------------------
| IOS FIX
|--------------------------------------------------------------------------
*/

input[type="date"],
input[type="month"] {

    appearance: none;
    -webkit-appearance: none;

    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    display: block;

    overflow: hidden;

    line-height: normal;
}

textarea {

    min-height: 120px;

    padding-top: 14px;

    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/*
|--------------------------------------------------------------------------
| BOUTONS
|--------------------------------------------------------------------------
*/

button,
.btn {

    width: 100%;

    height: 50px;

    background: #2563eb;

    color: white;

    border: none;

    cursor: pointer;

    font-weight: bold;

    transition: 0.2s;

    text-decoration: none;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 10px;

    box-sizing: border-box;
}

button:hover,
.btn:hover {

    background: #1d4ed8;
}

.btn-secondary {

    background: #64748b;
}

.btn-secondary:hover {

    background: #475569;
}

.btn-success {

    background: #16a34a;
}

.btn-success:hover {

    background: #15803d;
}

/*
|--------------------------------------------------------------------------
| IMAGE TICKET
|--------------------------------------------------------------------------
*/

.receipt-image {

    width: 70px;

    border-radius: 8px;

    cursor: pointer;

    transition: 0.2s;

    display: block;

    margin: auto;
}

.receipt-image:hover {

    transform: scale(1.05);
}

/*
|--------------------------------------------------------------------------
| FULLSCREEN IMAGE
|--------------------------------------------------------------------------
*/

.image-modal {

    display: none;

    position: fixed;

    z-index: 9999;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.95);

    justify-content: center;
    align-items: center;

    padding: 20px;
}

.fullscreen-image {

    max-width: 100%;

    max-height: 100%;

    border-radius: 12px;
}

/*
|--------------------------------------------------------------------------
| TABLEAU
|--------------------------------------------------------------------------
*/

.table-wrapper {

    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.table {

    width: 100%;

    border-collapse: collapse;

    background: white;

    border-radius: 12px;

    overflow: hidden;
}

.table th {

    background: #2563eb;

    color: white;

    padding: 14px;

    text-align: left;

    font-size: 14px;

    white-space: nowrap;
}

.table td {

    padding: 12px;

    border-bottom: 1px solid #eee;

    font-size: 14px;

    white-space: nowrap;
}

.table tr:hover {

    background: #f8fafc;
}

/*
|--------------------------------------------------------------------------
| BADGES CATÉGORIES
|--------------------------------------------------------------------------
*/

.badge {

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: bold;

    display: inline-block;
}

.badge-gasoil {

    background: #fef3c7;

    color: #92400e;
}

.badge-essence {

    background: #fee2e2;

    color: #991b1b;
}

.badge-parking {

    background: #dbeafe;

    color: #1e40af;
}

.badge-peage {

    background: #ede9fe;

    color: #5b21b6;
}

.badge-autre {

    background: #e5e7eb;

    color: #374151;
}

/*
|--------------------------------------------------------------------------
| TOTAL BOX
|--------------------------------------------------------------------------
*/

.total-box {

    background: #1e293b;

    color: white;

    padding: 20px;

    border-radius: 16px;

    margin-top: 20px;
}

.total-box h2 {

    color: white;
}

.total-price {

    font-size: 32px;

    font-weight: bold;

    margin-top: 10px;
}

/*
|--------------------------------------------------------------------------
| OCR TEXTE
|--------------------------------------------------------------------------
*/

pre {

    background: #111827;

    color: #f9fafb;

    padding: 15px;

    border-radius: 12px;

    overflow-x: auto;

    font-size: 13px;

    margin-top: 15px;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE MOBILE
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 768px) {

    body {

        padding: 10px;
    }

    .card {

        padding: 15px;

        border-radius: 12px;
    }

    h1 {

        font-size: 26px;
    }

    h2 {

        font-size: 22px;
    }

    .table th,
    .table td {

        font-size: 13px;

        padding: 10px;
    }

    .total-price {

        font-size: 26px;
    }

    .receipt-image {

        width: 60px;
    }
}