/**
 * =====================================================================
 * [ÉTAT : FINAL] Date : 22-05-2026 13:47:00
 * FICHIER : prise_inventaire.css
 * RÔLE : Styles spécifiques à l'interface de prise d'inventaire (Grid)
 * Auteurs : Yvan Dubé & Gemini (IA Collaboratrice)
 * =====================================================================
 */

/* --- 1. NAVIGATION & STICKY HEADER --- */

#sticky-header {
    position: sticky;
    top: 90px; /* Ajusté pour se caler sous la bannière universelle */
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#banniere_bas {
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid var(--couleur-bordure);
}

.navigation-bar-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--couleur-grise-pale);
}

.btn-nav {
    background-color: white;
    color: #333;
    padding: 8px 15px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid var(--couleur-bordure);
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.active-reste {
    background-color: #ff9800 !important;
    color: white !important;
    border-color: #e68a00 !important;
    font-weight: bold;
}

.btn-danger {
    background-color: #d32f2f !important;
    color: white !important;
    border: none;
}

.btn-danger:hover { 
    background-color: #b71c1c !important; 
}

/* --- 2. MENU DES CATÉGORIES (CARTES) --- */

.menu-categories-visuel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    justify-content: center;
    background: #fdfdfd;
    border-bottom: 1px solid var(--couleur-bordure);
}

.card-cat {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #444;
    min-width: 110px;
    text-align: center;
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

.card-cat:hover {
    background-color: #f0f0f0;
    border-color: var(--couleur-primaire);
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-cat.selected {
    border: 2px solid var(--couleur-primaire);
    background: #f9f0ff;
    font-weight: bold;
}

/* --- 3. GRILLE D'INVENTAIRE (ALIGNEMENT CSS GRID) --- */

html, body {
    height: 100%;
    overflow: hidden; 
}

body {
    display: flex;
    flex-direction: column;
}

.container-prise-inventaire {
    max-width: 1000px;
    margin: 10px auto;
    border: 1px solid var(--couleur-bordure);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.grid-header {
    display: grid;
    grid-template-columns: 108px 1fr 180px; 
    align-items: center;
    background-color: var(--couleur-primaire) !important;
    color: white !important;
    font-weight: bold;
    flex-shrink: 0;
}

.grid-header > div:first-child {
    padding-left: 23px; 
}

.grid-header > div {
    padding: 15px;
}

.scrollable-prise {
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-gutter: stable;
}

.grid-row {
    display: grid;
    grid-template-columns: 100px 1fr 180px;
    align-items: center;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--couleur-bordure);
}

.grid-row > div {
    padding: 12px 15px;
}

/* --- 4. ÉTATS & FORMULAIRES --- */

.item-complete {
    background-color: #f0fff4 !important;
    border-left: 8px solid var(--couleur-succes);
}

.item-pending {
    background-color: white;
    border-left: 8px solid #ffa500;
}

.form-inventaire-inline {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.input-qte {
    width: 80px !important;
    height: 35px;
    text-align: center;
    border: 2px solid var(--couleur-bordure);
    border-radius: 4px;
    font-weight: bold;
}

.btn-modifier {
    background-color: var(--couleur-primaire);
    color: white;
    border: none;
    height: 35px;
    padding: 0 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
}

.scrollable-prise::-webkit-scrollbar { width: 10px; }
.scrollable-prise::-webkit-scrollbar-thumb { 
    background: #c19bc9; 
    border-radius: 10px; 
}