/* assets/css/caisse.css - Styles spécifiques de la tablette caisse */

body.caisse {
    margin: 0;
    background: #FAFAF8;
    min-height: 100vh;
}

/* ============ HEADER ============ */
.caisse-header {
    background: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

.caisse-header .identite {
    display: flex;
    align-items: center;
    gap: 12px;
}

.caisse-header .logo {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.caisse-header .resto-nom {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.caisse-header .resto-meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.caisse-header .badge-caisse {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F0F0EC;
    border-radius: 8px;
    font-size: 13px;
}

/* ============ STATS DU JOUR ============ */
.caisse-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 18px;
    background: white;
    border-bottom: 1px solid var(--color-border);
}

.stat-bloc {
    background: #F5F5F2;
    padding: 12px 14px;
    border-radius: 10px;
}

.stat-libelle {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.stat-valeur {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 600;
}

/* ============ ZONE PRINCIPALE ============ */
.caisse-main {
    padding: 16px 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-nouvelle-commande {
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-nouvelle-commande:hover {
    background: var(--color-primary-dark);
}

/* ============ FILTRES ============ */
.filtres {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filtre-btn {
    background: white;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
}

.filtre-btn:hover {
    background: #F5F5F2;
}

.filtre-btn.actif {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

/* ============ LISTE COMMANDES ============ */
.liste-commandes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.commande-carte {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.commande-carte:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.commande-carte.priorite-prete {
    border: 1.5px solid var(--color-success);
    box-shadow: 0 0 0 3px rgba(29,158,117,0.1);
}

.commande-carte.priorite-urgente {
    border: 1.5px solid var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216,90,48,0.1);
}

.commande-carte.servie {
    background: #F5F5F2;
    opacity: 0.65;
}

.commande-numero {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    min-width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.commande-carte.priorite-prete .commande-numero {
    background: #EAF3DE;
    color: #27500A;
}

.commande-carte.servie .commande-numero {
    background: white;
    color: var(--color-text-secondary);
}

.commande-infos {
    flex: 1;
    min-width: 0;
}

.commande-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.commande-meta i {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.commande-nom {
    font-size: 13px;
    font-weight: 600;
}

.commande-type {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.commande-heure {
    font-size: 12px;
    color: #999996;
}

.commande-resume {
    margin: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
}

/* Badge échéance */
.echeance-badge {
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    background: #F0F0EC;
    color: var(--color-text-secondary);
}

.echeance-badge.urgente {
    background: #FCEAD8;
    color: #8A4B0E;
    font-weight: 600;
}

.echeance-badge.lointaine {
    background: #F0F0EC;
    color: var(--color-text-secondary);
}

.commande-droite {
    text-align: right;
    flex-shrink: 0;
}

.commande-total {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

/* Badges de statut */
.statut-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 3px;
    font-weight: 500;
}

.statut-attente { background: #FCEAD8; color: #8A4B0E; }
.statut-prep    { background: #DEEAF9; color: #0E3F73; }
.statut-prete   { background: #EAF3DE; color: #27500A; }
.statut-servie  { background: #F0F0EC; color: #8A8A85; }
.statut-annulee { background: #F4D4D4; color: #C73E3E; }

/* État vide */
.etat-vide {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.etat-vide i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}