@media print {
    .print-visible {
        display: block !important;
        color: #000 !important;
        background: none !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

.tooltip {
  pointer-events: none;
}

/* ========================================
   AUTHOR PROFILE TABS
   ======================================== */
.nav-pills .nav-link {
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
    background: linear-gradient(135deg, rgba(246, 211, 101, 0.1), rgba(253, 160, 133, 0.1));
    border-color: rgba(246, 211, 101, 0.3);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, rgba(246, 211, 101, 1), rgba(253, 160, 133, 1));
    color: white !important;
    box-shadow: 0 4px 12px rgba(246, 211, 101, 0.4);
}

.nav-pills .nav-link i {
    font-size: 1.1em;
}

#sidebar {
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    height: 100vh;
    width: 60px;
    background: #343a40;
    transition: all .2s ease-in-out;
}
#sidebar:hover {
    width: 250px;
}
#sidebar a {
    text-decoration: none;
    display: block;
    padding: 8px 20px;
    color: #fff;
    letter-spacing: 1px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    white-space: nowrap;
    transition: all .2s ease-in-out;
}
#sidebar a span,
#sidebar .sidebar-link span {
    position: relative;
    top: -6px;
    opacity: 0;
    transition: all .2s ease-in-out;
    display: none;
}
#sidebar .sidebar-has-submenu span{
    display: none;
    position: absolute;
    top: 15px;
    left: 54px;
}
#sidebar:hover a span,
#sidebar:hover .sidebar-has-submenu span{
    display: inline;
}

#sidebar:hover a span,
#sidebar .sidebar-link:hover span {
    opacity: 1;
}

#sidebar:hover .sidebar-link span {
    opacity: 1;
    color: #fff;
    font-weight: bold;
    transition: all .2s ease-in-out;
}

.sidebar-avatar-block {
    position: relative;
    display: flex;
    align-items: center;
    height: 70px;
    padding-left: 8px;
    margin-bottom: 8px
}
.sidebar-avatar-block img.user-avatar {
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.sidebar-user-info {
    position: absolute;
    left: 65px;
    color: #fff;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s;
    pointer-events: none;
}
#sidebar:hover .sidebar-user-info {
    opacity: 1;
    pointer-events: auto;
}
.sidebar-user-name {
    font-weight: bold;
}
.sidebar-user-role {
    font-size: 0.9em;
    color: #ccc;
}

.sidebar-icon {
    font-size: 1.7em; /* ou la taille souhaitée */
}

.sidebar-link{
    padding: 8px 20px;
}

.sidebar-link:hover {
    background: #495057; /* gris Bootstrap plus clair que #343a40 */
}

.sidebar-link span {
    margin-left: 2px;
    font-size: 16px;
    letter-spacing: 1px;
    opacity:0;
}

.sidebar-has-submenu {
    position: relative;
}
.sidebar-submenu {
    display: none;
    position: absolute;
    left: 250px;
    top: 0;
    background: #343a40;
    min-width: 120px;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    z-index: 20;
}

.sidebar-has-submenu:hover .sidebar-submenu,
.sidebar-has-submenu:focus-within .sidebar-submenu {
    display: block;
}

#sidebar .sidebar-submenu a {
    display: flex;
    align-items: center;
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 1em;
    height: 56.8px;
    position: relative;
}
#sidebar .sidebar-submenu span#unread-badge {
    position: absolute;
  top: 7px;
  right: 0;
  background: #dc3545;
  background-color: rgb(220, 53, 69);
  color: #fff;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 0.75em;
  font-weight: bold;
  display: block;
  left: auto;
}
#sidebar .sidebar-submenu span#announcement-badge-menu{
    position: absolute;
    top: 7px;
    right: 17px;
    background: #dc3545;
    background-color: rgb(220, 53, 69);
    color: #fff;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.75em;
    font-weight: bold;
    display: block;
    left: auto;
}

#sidebar .sidebar-has-submenu span#communication-alert-badge {
    position: absolute;
    top: 0px;
    right: -35px;
    left: auto;
}
.sidebar-submenu a:hover {
    background: #6c757d;
}

#sidebar .logout-link {
    position: absolute;
    bottom: 0; /* optionnel, pour l’espace en bas */
}

.autocomplete-menu {
  position: absolute;
  z-index: 1000;
  display: block;
  min-width: 100%;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.05);
  margin-top: 2px;
  max-height: 250px;
  overflow-y: auto;
}

.autocomplete-menu .autocomplete-item {
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.autocomplete-menu .autocomplete-item.active,
.autocomplete-menu .autocomplete-item:hover {
  background-color: #e9ecef;
  color: #495057;
}
@media print {
    /* En-tête de facture */
    .facture-header {
        margin-bottom: 1.5rem !important;
        font-size: 1.3rem !important;
    }
    
    /* Adresses */
    .facture-addresses {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    .facture-address {
        display: block;
    }
    .facture-address > div {
        white-space: nowrap;
        line-height: 1.4;
    }
    .facture-siret {
        display: block;
        margin-top: 0.3em;
        font-size: 0.85em;
    }
}
.facture-header {
    margin-bottom: 2.5rem;
}
.facture-addresses {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.facture-address {
    display: block;
}
.facture-address > div {
    white-space: nowrap;
}
.facture-siret {
    display: block;
    margin-top: 0.2em;
    font-size: 0.95em;
}
@media print {
    /* Masquer les éléments non nécessaires */
    .d-print-none, .input-group, .form-select, .form-control, .btn, nav, header, footer, .modal, 
    .alert:not(.bank-info-print):not(.print-visible), .row.mb-3, 
    .container > form, .container > .row, .container > .col-2, .container > .col-md-2, 
    .container > .col-md-3, .container > .col-md-4, .container > .col-md-6, .container > .col-6, 
    .container > .col { 
        display: none !important; 
    }
    
    /* Alertes visibles à l'impression */
    .alert.print-visible { 
        display: block !important; 
        color: #000 !important; 
        background: none !important; 
        border: 1px solid #000 !important; 
        box-shadow: none !important; 
    }
    
    /* Configuration de base */
    body, html { 
        background: #fff !important; 
        margin: 0 !important; 
        padding: 0.5cm !important; 
        width: 100% !important; 
        font-size: 10pt;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Tableau des lignes de facture - optimisé */
    .table-responsive { 
        overflow: visible !important; 
        margin: 0.5rem 0 !important; 
        padding: 0 !important; 
    }
    
    .table { 
        font-size: 9pt !important;
        width: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important;
        border-collapse: collapse !important;
    }
    
    .table thead th {
        background-color: #f0f0f0 !important;
        font-weight: bold !important;
        padding: 0.3rem 0.4rem !important;
        border: 1px solid #333 !important;
        font-size: 9pt !important;
    }
    
    .table tbody td {
        padding: 0.25rem 0.4rem !important;
        border: 1px solid #666 !important;
        font-size: 9pt !important;
    }
    
    /* Colonne # plus étroite */
    .table thead th:first-child,
    .table tbody td:first-child {
        width: 5% !important;
        text-align: center !important;
    }
    
    /* Colonne Titre plus large */
    .table thead th:nth-child(2),
    .table tbody td:nth-child(2) {
        width: 50% !important;
    }
    
    /* Colonnes numériques alignées à droite */
    .table thead th:nth-child(3),
    .table thead th:nth-child(4),
    .table thead th:nth-child(5),
    .table tbody td:nth-child(3),
    .table tbody td:nth-child(4),
    .table tbody td:nth-child(5) {
        text-align: right !important;
        width: 15% !important;
    }
    
    .table-responsive, .table, table { 
        margin-left: 0 !important; 
        margin-right: 0 !important; 
    }
    
    /* Tableau des totaux - aligné à droite avec style épuré */
    .table-borderless {
        font-size: 10pt !important;
        margin-top: 0.5rem !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        width: auto !important;
        min-width: 45% !important;
        max-width: 60% !important;
    }
    
    .table-borderless td {
        padding: 0.15rem 0.5rem !important;
        white-space: nowrap !important;
    }
    
    .table-borderless td:first-child {
        text-align: right !important;
        padding-right: 1rem !important;
    }
    
    .table-borderless td:last-child {
        text-align: right !important;
        font-weight: normal !important;
    }
    
    .table-borderless .fw-bold {
        font-weight: bold !important;
    }
    
    .table-borderless tr {
        border: none !important;
    }
    
    /* Texte en toutes lettres */
    .fst-italic {
        font-size: 9pt !important;
        margin-top: 0.5rem !important;
        font-style: italic;
    }
    
    /* Informations bancaires */
    .bank-info-print {
        display: block !important;
        background-color: white !important;
        border: 2px solid #333 !important;
        color: #000 !important;
        padding: 0.5rem !important;
        margin-top: 1rem !important;
        font-size: 9pt !important;
        page-break-inside: avoid;
    }
    
    .bank-info-print h6 {
        font-size: 10pt !important;
        margin-bottom: 0.3rem !important;
    }
    
    .bank-info-print .text-muted {
        color: #666 !important;
    }
    
    .bank-info-print .small {
        font-size: 8pt !important;
    }
    
    /* Éviter les coupures */
    .bi-chevron-down, .btn[data-bs-toggle="collapse"] { 
        display: none !important; 
    }
    
    h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .bank-info-print {
        page-break-inside: avoid;
    }
    
    /* Report de page en page - En-tête et pied de page */
    @page {
        margin-top: 2cm;
        margin-bottom: 2cm;
        
        @top-right {
            content: "Report page précédente : " attr(data-report-amount);
            font-size: 9pt;
            font-weight: bold;
            color: #666;
        }
        
        @bottom-right {
            content: "À reporter page suivante : " attr(data-report-amount);
            font-size: 9pt;
            font-weight: bold;
            color: #666;
        }
    }
    
    /* Masquer le report sur la première page */
    @page :first {
        @top-right {
            content: none;
        }
    }
    
    /* Le tableau peut maintenant se couper entre les pages */
    .table {
        page-break-inside: auto !important;
    }
    
    .table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .table thead {
        display: table-header-group; /* Répète l'en-tête sur chaque page */
    }
}

.filter-pill {
    cursor: pointer;
    user-select: none;
    opacity: 0.92;
    transition: box-shadow 0.15s, filter 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
}
.filter-pill:hover {
    opacity: 1;
    filter: brightness(1.08);
}
.filter-pill.active, .filter-pill:active, .filter-pill:focus {
    font-weight: 600;
    box-shadow: none;
    border: 2px solid #111 !important;
    filter: brightness(0.95);
    outline: none;
    opacity: 1;
}
/* Hauteur minimale forcée pour le textarea du message */
.message-textarea {
    min-height: 180px !important;
    resize: vertical;
}
.user-avatar {
	border-radius: 50%;
}

.gradient-custom {
	/* fallback for old browsers */
	background: #f6d365;

	/* Chrome 10-25, Safari 5.1-6 */
	background: -webkit-linear-gradient(to right bottom, rgba(246, 211, 101, 1), rgba(253, 160, 133, 1));

	/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
	background: linear-gradient(to right bottom, rgba(246, 211, 101, 1), rgba(253, 160, 133, 1))
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.messages-container {
    max-height: 60vh;
    overflow-y: auto;
}

/* Style commun aux bulles */
.message-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Messages reçus */
.message-bubble.received {
    background-color: #f1f0f0;
    color: #333;
    align-self: flex-start;
}

/* Messages envoyés */
.message-bubble.sent {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
}

.kpi-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: none;
    }
    .kpi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    }
    .kpi-icon {
        font-size: 2.5rem;
        opacity: 0.2;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .kpi-value {
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0;
    }
    .kpi-label {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.8;
        margin-bottom: 0.5rem;
    }
    .chart-card {
        transition: box-shadow 0.3s ease;
    }
    .chart-card:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
    }

    #bookTabs .nav-link {
            color: #6c757d;
            background: transparent;
        }
        #bookTabs .nav-link:hover {
            color: #0d6efd;
            background-color: #f8f9fa;
            border-bottom-color: #0d6efd !important;
        }
        #bookTabs .nav-link.active {
            color: #0d6efd;
            background-color: #fff;
            border-bottom-color: #0d6efd !important;
        }

@media (max-width: 767.98px) {
  body {
      margin: 65px 12px !important;
  }
}

/* ========================================
   STYLES D'IMPRESSION GLOBAUX
   ======================================== */

@media print {
    /* Masquer les éléments non imprimables */
    .d-print-none,
    nav,
    .navbar,
    button:not(.d-print-inline),
    .btn:not(.d-print-inline),
    .modal,
    .offcanvas {
        display: none !important;
    }

    /* Supprimer les marges/padding pour utiliser toute la largeur de page */
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .container,
    .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Supprimer les marges des lignes Bootstrap */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Réduire les padding des cartes */
    .card {
        border: none !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .card-body {
        padding: 0.5rem !important;
    }

    .card-header {
        background-color: #f8f9fa !important;
        border-bottom: 1px solid #000 !important;
        padding: 0.5rem !important;
    }

    /* Optimisation des tableaux */
    table {
        font-size: 10px;
        width: 100% !important;
        page-break-inside: auto;
    }

    thead {
        display: table-header-group; /* Répéter l'en-tête sur chaque page */
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    th {
        background-color: #f8f9fa !important;
        border: 1px solid #000 !important;
        font-weight: bold;
    }

    td {
        border: 1px solid #ddd !important;
    }

    /* Badges : ajouter des bordures pour la lisibilité */
    .badge {
        border: 1px solid #000 !important;
        padding: 2px 6px !important;
    }

    /* Titres et en-têtes */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Éviter les coupures */
    img {
        page-break-inside: avoid;
    }

    /* Liens : afficher l'URL après le texte */
    a[href]:not(.btn)::after {
        content: " (" attr(href) ")";
        font-size: 80%;
        color: #666;
    }

    /* Sauf pour les liens internes */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    /* Alertes et messages */
    .alert {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }

    /* Statistiques et infobulles */
    .text-muted {
        color: #666 !important;
    }
}

/* Utility classes */
.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    opacity: 0.85;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* ========================================
   SCHEDULE EVENTS TABLE STYLES
   ======================================== */
.schedule-events-table {
    min-width: 1200px;
}

.schedule-events-table thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.schedule-events-table thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.schedule-events-table tbody tr td {
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
}

.event-date-value {
    display: none;
}

/* Day separator styling */
.table > tbody > tr.event-day-separator > * {
    background-color: #cfe2ff !important;
    color: #084298 !important;
    border-left: 3px solid #495057 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    text-align: left;
    --bs-table-bg-type: transparent;
}

.table > tbody > tr.event-day-separator {
    background-color: transparent !important;
}

/* Add spacing between day groups */
.schedule-events-table > tbody > tr:has(+ tr.event-day-separator) > td {
    padding-bottom: 1.5rem !important;
}

.event-day-separator td i {
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

.event-day-separator td span {
    font-size: 1rem;
    font-weight: bold;
}

/* Badge styling for event types */
.badge-sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    font-weight: 500;
}

/* Print styles specific to schedule */
@media print {
    .schedule-events-table {
        font-size: 12pt;
    }

    .input-group,
    .form-select,
    .form-control,
    header,
    footer,
    .d-print-none {
        display: none !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    .collapse,
    .collapsing {
        display: table-row !important;
    }

    .event-day-separator {
        background: #eee !important;
        color: #222;
        font-size: 1.1em;
        border-left: 2px solid #999 !important;
    }

    .bi-chevron-down,
    .btn[data-bs-toggle="collapse"] {
        display: none !important;
    }

    #print-title {
        display: block !important;
        font-size: 1.5em;
        font-weight: bold;
        text-align: center;
        margin-bottom: 1rem;
    }

    /* Hide trajets rows by default in print */
    .trajet-row {
        display: none !important;
    }

    .trajet-row.print-parent-visible {
        display: table-row !important;
    }
}

/* ========================================
   STATUS INDICATORS (Stock page)
   ======================================== */
.status-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    cursor: help;
    transition: transform 0.2s ease;
}

.status-indicator:hover {
    transform: scale(1.3);
}

.status-success {
    background-color: #28a745;
    border-color: #1e7e34;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.4);
}

.status-danger {
    background-color: #dc3545;
    border-color: #c82333;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.4);
}

.status-warning {
    background-color: #ffc107;
    border-color: #d39e00;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.4);
}

.status-secondary {
    background-color: #6c757d;
    border-color: #545b62;
    box-shadow: 0 0 4px rgba(108, 117, 125, 0.4);
}

/* ========================================
   INLINE EDITABLE FIELDS (Stock page)
   ======================================== */
.inline-editable {
    position: relative;
    cursor: pointer;
    padding: 2px 20px 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-block;
}

.inline-editable:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.inline-editable .edit-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #0d6efd;
}

.inline-editable:hover .edit-icon {
    opacity: 0.7;
}

.inline-editable.editing {
    background-color: #fff;
    border: 1px solid #0d6efd;
    padding: 1px 3px;
}

.inline-editable input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.inline-editable.saving {
    opacity: 0.6;
    pointer-events: none;
}

.inline-editable.success {
    animation: flash-success 0.5s ease;
}

.inline-editable.error {
    animation: flash-error 0.5s ease;
}

@keyframes flash-success {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(40, 167, 69, 0.3); }
}

@keyframes flash-error {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(220, 53, 69, 0.3); }
}

/* ========================================
   PRICE LOOKUP PAGE - MOBILE FIRST
   ======================================== */

.price-lookup-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-lookup-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-lookup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price-lookup-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.price-lookup-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.price-lookup-header p {
    font-size: 0.95rem;
    margin: 0;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.button-group .btn {
    font-weight: 600;
}

/* Scanner Container */
.scanner-container {
    margin-top: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #000;
    position: relative;
}

.scanner-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.scanner-header h5 {
    margin: 0;
    font-size: 0.9rem;
}

.viewport {
    position: relative;
    width: 100%;
    height: 300px;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-line {
    width: 80%;
    height: 2px;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% {
        transform: translateY(-150px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(150px);
        opacity: 1;
    }
}

/* Book Result */
.book-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.book-result-success {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    border: 2px solid #28a745;
}

.book-result-error {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: 2px solid #dc3545;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-header i {
    font-size: 2rem;
}

.book-result-success .result-header i {
    color: #28a745;
}

.book-result-error .result-header i {
    color: #dc3545;
}

.result-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.book-info {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    gap: 1rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.info-value {
    text-align: right;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.price-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    color: white;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.price-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .price-lookup-container {
        padding: 2rem;
    }

    .price-lookup-card {
        padding: 2.5rem;
    }

    .price-lookup-header h1 {
        font-size: 2rem;
    }

    .button-group .btn {
        font-size: 1.1rem;
    }

    .viewport {
        height: 400px;
    }
}

/* Accessibility improvements */
.btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ========================================
   MOBILE NAVIGATION MENU
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1050;
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Hamburger Icon */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .menu-icon span {
    background: #f0f0f0;
}

/* Mobile Sidebar */
.mobile-sidebar {
    width: 85vw !important;
    max-width: 320px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
}

.mobile-sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 1rem;
    border-bottom: none;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-user-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1.2;
}

.mobile-user-role {
    font-size: 0.85rem;
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

/* Mobile Sidebar Body */
.mobile-sidebar-body {
    padding: 0;
    background: #34495e;
}

/* Mobile Navigation */
.mobile-nav {
    padding: 0.5rem 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: #ecf0f1;
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    gap: 1rem;
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.3rem;
    width: 24px;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    flex: 1;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 1.5rem;
}

.mobile-nav-item:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Nav Toggle (for submenus) */
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.chevron-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.mobile-nav-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile Submenu */
.mobile-submenu {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #667eea;
    margin: 0;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem 0.875rem 2.5rem;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 0.875rem;
}

.mobile-submenu-item i {
    font-size: 1.1rem;
    width: 20px;
}

.mobile-submenu-item:hover,
.mobile-submenu-item:focus {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding-left: 2.75rem;
}

/* Mobile Nav Divider */
.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0.75rem 1.25rem;
}

/* Mobile Nav Logout */
.mobile-nav-logout {
    color: #e74c3c;
    font-weight: 600;
}

.mobile-nav-logout:hover,
.mobile-nav-logout:focus {
    background: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
}

/* Badges in mobile menu */
.mobile-submenu-item .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Animation for offcanvas */
.mobile-sidebar.show {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile Nav Group */
.mobile-nav-group {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .mobile-sidebar {
        width: 90vw !important;
    }
    
    .mobile-nav-item {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .mobile-submenu-item {
        padding: 0.75rem 1rem 0.75rem 2.25rem;
    }
}

/* Ensure smooth scrolling in mobile menu */
.mobile-sidebar-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for mobile menu */
.mobile-sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mobile-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}


