@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
:root {
    --font-orbiton: 'Orbitron', sans-serif;
    --font-ubuntu: 'Ubuntu', sans-serif;
}

html {
    height: 100%;
    width: 100%;
}

body {
    width: 210mm;
    /* largeur paysage */
    height: 148mm;
    /* hauteur paysage */
    margin: 0 auto;
    font-size: 13px;
}

* {
    font-family: var(--font-ubuntu);
    letter-spacing: 1px;
}

body:not(.printable-receipt) {
    background-color: #cfd9df;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

body.login-page {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

div.page-title,
div.page-title * {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #5e5e5e;
    font-family: var(--font-orbiton);
}

.flashdata {
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-left: 8px solid var(--bs-gray-400);
}

.flashdata.flashdata-success {
    border-left-color: var(--bs-success);
}

.flashdata.flashdata-danger {
    border-left-color: var(--bs-danger);
}

.flashdata .flashdata-close {
    text-decoration: none;
    color: #777;
}

.flashdata .flashdata-close:hover {
    color: #4f4f4f;
}

#order-item-tbl * {
    font-size: .8rem;
}

body.printable-receipt * {
    font-size: 11px;
}

body.printable-receipt h3 {
    font-size: 14px;
}

body.printable-receipt h4 {
    font-size: 12px;
}

hr.dashed {
    border: 2px dashed #000;
    opacity: .75;
}

.container-flex {
    display: flex;
    justify-content: flex-start;
    /* alignement à gauche pour rapprocher les colonnes */
    align-items: flex-start;
    /* fait remonter les colonnes en haut */
    gap: 1mm;
    /* espace horizontal entre client et billetage */
}

.info-client {
    width: 52%;
    /* largeur de la colonne client */
}

.billetage {
    margin-top: -60px;
    /* remonte le tableau vers le haut */
    margin-left: -30px;
    /* décale légèrement vers la gauche */
    width: 48%;
    /* garde largeur proportionnelle */
}

.billetage table {
    margin-left: -3mm;
    /* décale le tableau vers la gauche */
}

.table th,
.table td {
    font-size: 11px;
    /* rend le tableau plus compact */
    padding: 0.2rem 0.3rem;
    /* réduit les espaces vertical et horizontal */
}

.gold-bg {
    background-color: rgb(209, 186, 54);
    /* couleur de fond */
    padding: 2px 5px;
    /* petit padding pour aérer le texte */
    border-radius: 3px;
    /* coins légèrement arrondis */
    display: inline-block;
    /* pour que le fond suive juste le texte */
}


/* --- Styles de secours pour fonctionnement hors-ligne (sans CDN/JS) --- */


/* Ces règles permettent d'avoir un rendu lisible si Bootstrap/FontAwesome ne sont pas disponibles */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #212529;
    color: #fff;
}

.navbar .navbar-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.navbar .nav-link {
    color: #e9ecef;
    text-decoration: none;
    padding: 0.375rem 0.5rem;
    display: inline-block;
}

.navbar .nav-link:hover {
    color: #fff;
}

.btn {
    display: inline-block;
    padding: .375rem .75rem;
    border-radius: .25rem;
    border: 1px solid transparent;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.btn.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn:disabled {
    opacity: .65;
    cursor: default;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    background: #fff;
    box-sizing: border-box;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    border: 1px solid #dee2e6;
    padding: .5rem;
    vertical-align: middle;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ccc;
    display: none;
    min-width: 10rem;
    z-index: 1000;
}


/* Affiche le menu au survol - remplace le comportement JS pour desktop */

.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-toggler {
    display: none;
}


/* Fallback pour icônes FontAwesome : masquer si la police manquante provoque un rendu incohérent */

.fa,
.fas,
.far,
.fab {
    font-style: normal;
    display: inline-block;
    width: 1em;
    text-align: center;
}


/* Assurer que les inputs numériques prennent toute la largeur dans les tables */

.table td .form-control {
    width: 100%;
    box-sizing: border-box;
}


/* Fin des styles de secours */

.info-client {
    font-family: "Times New Roman", Times, serif;
    font-size: 25px;
    /* augmente légèrement la taille */
    line-height: 4;
    /* espace entre les phrases */
}

.info-client h6 {
    font-size: 17px;
    margin-bottom: 8px;
}

.info-client small {
    display: block;
    /* chaque info sur une ligne */
    margin-bottom: 10px;
    /* petit espace entre les phrases */
}

.info-client b {
    font-weight: bold;
}

.header-invoice {
    display: flex;
    align-items: center;
    /* aligne verticalement logo + texte */
    justify-content: center;
    /* centre tout le bloc */
    gap: 12px;
    /* espace entre logo et texte */
}

.logo-finex {
    max-width: 120px;
    height: auto;
}

.header-text {
    text-align: center;
    /* garde exactement ton alignement actuel */
    line-height: 1.2;
}

.info-client {
    font-family: "Times New Roman", Times, serif;
    font-size: 15px;
    /* taille légèrement augmentée */
    line-height: 1.7;
    /* espace entre les lignes */
}

.info-client h6 {
    font-size: 17px;
}

.info-client small {
    font-family: "Times New Roman", Times, serif;
}