/* Application générée : coque, listes, documents, caisse, salle, cuisine, pipeline */
/* ---------- coque façon ZainSoft : barre latérale sombre, barre du haut, mode nuit */
:root { --side-bg: #0f172a; --side-txt: #cbd5e1; --side-muted: #64748b; --side-actif: rgba(255, 255, 255, .08); --side-fort: #f1f5f9; }
:root[data-theme="dark"] { --side-bg: #080c14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --side-bg: #080c14; } }
:root[data-menu="clair"] { --side-bg: var(--surface); --side-txt: var(--txt-2); --side-muted: var(--txt-2); --side-actif: var(--acc-doux); --side-fort: var(--txt); }
.coque { display: grid; grid-template-columns: auto minmax(0, 1fr); height: 100vh; }
.lateral { width: 240px; background: var(--side-bg); color: var(--side-txt); display: flex; flex-direction: column; min-height: 0;
  padding: 16px 12px 10px; border-inline-end: 1px solid color-mix(in srgb, var(--side-txt) 10%, transparent); transition: width .18s; }
.lateral .marque { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; }
.lateral .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--acc); color: var(--acc-txt); display: grid; place-items: center;
  font-weight: 800; font-size: 16px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.lateral .nom-app { font-weight: 700; font-size: 14.5px; line-height: 1.2; color: var(--side-fort); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lateral .sous { color: var(--side-muted); font-size: 12px; }
.lateral nav { flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -12px; padding: 0 12px; }
.lateral .section { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); padding: 14px 12px 6px; white-space: nowrap; }
.lateral nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 9px; color: var(--side-txt);
  font-weight: 550; white-space: nowrap; transition: background .12s, color .12s; }
.lateral nav a:hover { background: var(--side-actif); color: var(--side-fort); text-decoration: none; }
.lateral nav a.actif { background: var(--side-actif); color: var(--side-fort); }
:root[data-menu="clair"] .lateral nav a.actif { color: var(--acc); }
.lateral nav a.actif::before { content: ""; position: absolute; inset-inline-start: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); }
[dir="rtl"] .lateral nav a.actif::before { border-radius: 3px 0 0 3px; }
.lateral nav a .ic { opacity: .9; }
.lateral .pied { margin-top: auto; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--side-txt) 14%, transparent); display: flex; align-items: center; gap: 2px; }
.lateral .pied { flex-wrap: wrap; }
.lateral .pied .qui { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; min-width: 0; padding: 4px 4px 6px; }
.lateral .pied [data-reduire] { margin-inline-start: auto; }
.lateral .pied .qui b { color: var(--side-fort); font-weight: 600; font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lateral .pied .qui span { color: var(--side-muted); font-size: 12px; }
.lateral .pied .btn { color: var(--side-txt); background: transparent; border-color: transparent; }
.lateral .pied .btn:hover { background: var(--side-actif); color: var(--side-fort); }
.lateral .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--acc); color: var(--acc-txt); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
/* barre réduite aux icônes */
.lateral.reduit { width: 72px; }
.lateral.reduit .nom-app, .lateral.reduit .sous, .lateral.reduit .section, .lateral.reduit nav a span, .lateral.reduit .pied .qui > div, .lateral.reduit .pied .btn:not([data-reduire]) { display: none; }
.lateral.reduit nav a { justify-content: center; padding: 0; }
.lateral.reduit .marque { justify-content: center; padding-inline: 0; }
.lateral.reduit .pied { flex-direction: column; gap: 6px; flex-wrap: nowrap; }
.lateral.reduit .pied .qui { justify-content: center; flex: none; }
.lateral.reduit nav .section { height: 10px; padding: 0; }
.principal { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.entete { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--bord); }
.entete h1 { font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pastille { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); color: var(--txt-2);
  font-weight: 600; font-size: 12.5px; border: 0; white-space: nowrap; cursor: pointer; font-family: var(--police); }
.pastille.alerte { background: var(--alerte-doux); color: var(--alerte); }
.pastille.danger { background: var(--danger-doux); color: var(--danger); }
.pastille.ok { background: var(--ok-doux); color: var(--ok); }
.horloge { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--txt-2); min-width: 44px; text-align: end; }
.defile { flex: 1; overflow-y: auto; min-height: 0; }
.barre { display: flex; align-items: center; gap: 12px; padding: 18px 24px 0; flex-wrap: wrap; justify-content: flex-end; }
.barre:empty { display: none; }
.barre h1 { display: none; }
.contenu { padding: 18px 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.burger { display: none; }
.outils { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.outils .recherche { position: relative; flex: 1; min-width: 200px; max-width: 360px; margin-inline-end: auto; }
.outils .recherche input { padding-inline-start: 34px; }
.outils .recherche .ic { position: absolute; inset-inline-start: 10px; top: 9px; color: var(--txt-2); }

/* Tableau de bord */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; }
.kpi .val { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .lib { font-size: 12.5px; color: var(--txt-2); font-weight: 500; }
.kpi.fort { background: var(--acc); border-color: var(--acc); color: var(--acc-txt); }
.kpi.fort .lib { color: color-mix(in srgb, var(--acc-txt) 80%, transparent); }
.kpi.alerte .val { color: var(--alerte); }
.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.histo { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; }
.histo .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.histo .barre-v { width: 100%; max-width: 34px; background: var(--acc); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.histo .b:last-child .barre-v { opacity: 1; }
.histo .b span { font-size: 10.5px; color: var(--txt-2); }
.histo .b:hover .barre-v { opacity: 1; }

/* Fiche */
.fiche-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.onglets { display: flex; gap: 2px; border-bottom: 1px solid var(--bord); padding: 0 16px; overflow-x: auto; }
.onglets button { border: 0; background: none; padding: 11px 12px; font: 500 13.5px var(--police); color: var(--txt-2); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.onglets button.actif { color: var(--acc); border-bottom-color: var(--acc); }

/* Document */
.doc-lignes td input { min-height: 32px; padding: 5px 8px; }
.doc-lignes td.n input { text-align: end; }
.doc-totaux { display: grid; grid-template-columns: auto auto; gap: 6px 24px; justify-content: end; padding: 14px 16px; font-variant-numeric: tabular-nums; }
.doc-totaux .grand { font-size: 18px; font-weight: 700; }
.choix-article { position: relative; }
.suggestions { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 100%; z-index: 20; background: var(--surface); border: 1px solid var(--bord-fort); border-radius: 8px; box-shadow: var(--ombre-haute); max-height: 260px; overflow-y: auto; }
.suggestions div { padding: 8px 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.suggestions div:hover, .suggestions div.sel { background: var(--acc-doux); }
.chaine { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- Caisse (POS) ---------- */
.pos { display: grid; grid-template-columns: 1fr 400px; height: 100vh; background: var(--bg); }
.pos-gauche { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pos-haut { display: flex; gap: 10px; padding: 12px; align-items: center; background: var(--surface); border-bottom: 1px solid var(--bord); }
.pos-haut .scan { flex: 1; position: relative; }
.pos-haut .scan input { height: 44px; font-size: 16px; padding-inline-start: 40px; }
.pos-haut .scan .ic { position: absolute; inset-inline-start: 12px; top: 13px; color: var(--txt-2); }
.pos-cats { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; flex: none; }
.pos-cats button { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bord-fort); background: var(--surface); font: 600 13.5px var(--police); color: var(--txt); cursor: pointer; }
.pos-cats button.actif { background: var(--txt); color: var(--surface); border-color: var(--txt); }
.pos-grille { flex: 1; overflow-y: auto; padding: 4px 12px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-content: start; }
.tuile { position: relative; height: 96px; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface); text-align: start; padding-block: 10px; padding-inline: 16px 12px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; font: 600 13.5px/1.25 var(--police); color: var(--txt); overflow: hidden; box-shadow: var(--ombre); }
.tuile::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--acc)); }
.tuile:hover { border-color: var(--c, var(--acc)); }
.tuile:active { transform: scale(.98); }
.tuile .prix { font-weight: 700; font-variant-numeric: tabular-nums; }
.tuile .st { position: absolute; inset-inline-end: 8px; top: 8px; font-size: 11px; font-weight: 600; color: var(--txt-2); }
.tuile .st.bas { color: var(--danger); }
.pos-droite { background: var(--surface); border-inline-start: 1px solid var(--bord); display: flex; flex-direction: column; min-height: 0; }
.pos-entete { padding: 12px 14px; border-bottom: 1px solid var(--bord); display: flex; align-items: center; gap: 8px; }
.pos-client { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--bord); background: var(--surface-2); font-size: 13px; }
.pos-panier { flex: 1; overflow-y: auto; }
.pos-ligne { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px; border-bottom: 1px solid var(--bord); cursor: pointer; }
.pos-ligne.sel { background: var(--acc-doux); }
.pos-ligne .nm { font-weight: 600; }
.pos-ligne .tt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.pos-ligne .dt { font-size: 12.5px; color: var(--txt-2); }
.pos-ligne .etat { font-size: 11px; font-weight: 700; }
.pos-qte { display: flex; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--bord); overflow-x: auto; }
.pos-qte .btn { flex: none; padding: 0 10px; }
.btn.icone.grand { width: 46px; }
.pos-total { padding: 12px 14px; border-top: 1px solid var(--bord); }
.pos-total .gros { font-size: 30px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pos-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.pos-actions .payer { grid-column: 1 / -1; height: 58px; font-size: 18px; border-radius: 12px; }
.pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pave button { height: 54px; font-size: 20px; font-weight: 600; border-radius: 10px; border: 1px solid var(--bord-fort); background: var(--surface); color: var(--txt); cursor: pointer; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.modes button { height: 52px; }
.paye-liste div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--bord); }
.affiche-montant { font-size: 34px; font-weight: 750; text-align: end; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); font-variant-numeric: tabular-nums; }

/* Plan de salle */
.salle-zone { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.table-r { position: relative; height: 112px; border-radius: 16px; border: 2px solid var(--bord-fort); background: var(--surface); cursor: pointer; padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; color: var(--txt); text-align: start; font-family: var(--police); }
.table-r.ronde { border-radius: 56px; align-items: center; text-align: center; }
.table-r.occupee { border-color: var(--acc); background: var(--acc-doux); }
.table-r .nm { font-size: 20px; }
.table-r .info { font-size: 12px; font-weight: 600; color: var(--txt-2); }
.table-r .pastille { position: absolute; top: 8px; inset-inline-end: 10px; }
.cuisine { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bon { background: var(--surface); border: 1px solid var(--bord); border-top: 6px solid var(--acc); border-radius: 12px; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.bon.vieux { border-top-color: var(--alerte); }
.bon.tres-vieux { border-top-color: var(--danger); }
.bon .tete { padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--bord); }
.bon .tete b { font-size: 18px; }
.bon .item { padding: 9px 14px; display: flex; gap: 10px; align-items: baseline; border-bottom: 1px dashed var(--bord); cursor: pointer; font-size: 15px; }
.bon .item .q { font-weight: 800; min-width: 28px; }
.bon .item .note { display: block; color: var(--alerte); font-size: 13px; font-weight: 600; }

/* Pipeline */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.colonne { background: var(--surface-2); border: 1px solid var(--bord); border-radius: 12px; display: flex; flex-direction: column; min-height: 300px; }
.colonne .tete { padding: 10px 12px; display: flex; justify-content: space-between; font-weight: 650; border-bottom: 1px solid var(--bord); }
.colonne .cartes { padding: 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.colonne.survol { outline: 2px dashed var(--acc); outline-offset: -4px; }
.opp { background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px; cursor: grab; box-shadow: var(--ombre); }
.opp .m { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 16px; background:
  radial-gradient(1200px 500px at 10% -10%, var(--acc-doux), transparent), var(--bg); }
.connexion .carte { width: min(400px, 100%); padding: 28px; }
.connexion .logo { width: 46px; height: 46px; border-radius: 12px; background: var(--acc); color: var(--acc-txt); display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 14px; }

/* Impression */
#impression { display: none; }
@media print {
  body > *:not(#impression) { display: none !important; }
  #impression { display: block; color: #000; background: #fff; }
  @page { margin: 12mm; }
}
.ticket80 { width: 72mm; font: 12px/1.35 var(--mono); }
.ticket80 .c { text-align: center; } .ticket80 hr { border: 0; border-top: 1px dashed #000; }
.ticket80 table { width: 100%; border-collapse: collapse; } .ticket80 td { padding: 1px 0; vertical-align: top; }
.a4 { font: 12.5px/1.45 var(--police); color: #000; }
.a4 .ent { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.a4 h1 { font-size: 24px; margin-bottom: 4px; }
.a4 table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.a4 th { text-align: start; border-bottom: 2px solid #000; padding: 6px 4px; font-size: 11.5px; }
.a4 td { border-bottom: 1px solid #ccc; padding: 6px 4px; }
.a4 .tot { margin-inline-start: auto; width: 280px; margin-top: 14px; }
.a4 .tot div { display: flex; justify-content: space-between; padding: 3px 0; }
.a4 .tot .g { font-size: 16px; font-weight: 700; border-top: 2px solid #000; margin-top: 4px; padding-top: 6px; }

@media (max-width: 1000px) {
  .duo { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr 340px; }
}
@media (max-width: 760px) {
  .coque { grid-template-columns: minmax(0, 1fr); }
  .lateral, .lateral.reduit { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .18s; box-shadow: var(--ombre-haute); }
  .entete { padding: 0 12px; }
  .horloge, .entete [data-plein] { display: none; }
  .coque.menu-ouvert .lateral { transform: none; }
  [dir="rtl"] .lateral { inset: 0 0 0 auto; transform: translateX(100%); }
  [dir="rtl"] .coque.menu-ouvert .lateral { transform: none; }
  .burger { display: inline-flex; }
  .barre, .contenu { padding-inline-start: 16px; padding-inline-end: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .val { font-size: 19px; }
  .pos { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: auto; min-height: 100vh; }
  .pos-droite { border-inline-start: 0; border-top: 1px solid var(--bord); }
  .pos-grille { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* Arabe : les icônes directionnelles sont retournées */
[dir="rtl"] .ic-dir { transform: scaleX(-1); }

/* Plan de salle : tables placées librement */
.plan-salle { position: relative; height: max(480px, calc(100vh - 190px)); border-radius: 18px; border: 1px solid var(--bord); background: var(--surface); overflow: hidden; touch-action: none; }
.plan-salle .table-r { position: absolute; width: 118px; height: 96px; }
.plan-salle .table-r.ronde { width: 104px; height: 104px; }
.plan-salle .table-r.longue { width: 200px; }
.plan-salle .vide { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.plan-salle.edition { background-image: radial-gradient(var(--bord-fort) 1px, transparent 1px); background-size: 24px 24px; }
.plan-salle.edition .table-r { cursor: grab; border-style: dashed; }
.plan-salle .table-r.glisse { cursor: grabbing; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); z-index: 5; }
.plan-salle.sol-parquet { background-color: #e7d3b5; background-image: repeating-linear-gradient(90deg, rgba(120, 72, 24, .12) 0 2px, transparent 2px 60px); }
.plan-salle.sol-carrelage { background-color: #eef1f4; background-image: linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .06) 1px, transparent 1px); background-size: 48px 48px; }
.plan-salle.sol-terrasse { background-color: #dcefd9; background-image: repeating-linear-gradient(45deg, rgba(22, 101, 52, .08) 0 10px, transparent 10px 20px); }
.barre-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--bord); background: var(--acc-doux); }
.barre-plan[hidden] { display: none; }

/* Champ de recherche avec création sur place */
.combo { position: relative; }
.combo-liste > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; cursor: pointer; }
.combo-liste > div.sel, .combo-liste > [data-id]:hover, .combo-liste > [data-nouveau]:hover { background: var(--acc-doux); }
.combo-liste .combo-vide { cursor: default; }
.combo-liste .combo-nouveau { justify-content: flex-start; align-items: center; border-top: 1px solid var(--bord); position: sticky; bottom: 0; background: var(--surface); }
.combo-nouveau { color: var(--acc); }
.pos-ligne.combo-nouveau { display: flex; align-items: center; gap: 10px; cursor: pointer; }

/* Poste de pointage (écran dédié) */
.kiosque { min-height: 100vh; padding: 24px clamp(16px, 4vw, 48px); display: flex; flex-direction: column; gap: 22px; }
.kiosque header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kiosque-heure { text-align: center; }
.kiosque-heure b { display: block; font-size: clamp(40px, 8vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; }
.kiosque-heure span { color: var(--txt-2); text-transform: capitalize; }

/* Menu : sections repliables, recherche */
.lateral button.section { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); padding: 14px 12px 6px; text-align: start; }
.lateral button.section:hover { color: var(--side-fort); }
.lateral .section .chevron { display: inline-flex; transition: transform .15s; }
.lateral .groupe.ferme .section .chevron { transform: rotate(-90deg); }
[dir="rtl"] .lateral .groupe.ferme .section .chevron { transform: rotate(90deg); }
.lateral .groupe.ferme .entrees { display: none; }
.lateral nav.en-recherche .groupe .entrees { display: block; }
.lateral .menu-recherche { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 0 10px; height: 36px; border-radius: 9px; background: var(--side-actif); color: var(--side-muted); }
.lateral .menu-recherche input { flex: 1; min-width: 0; border: 0; background: none; color: var(--side-fort); font: inherit; font-size: 13px; outline: none; }
.lateral.reduit .menu-recherche, .lateral.reduit button.section { display: none; }
.lateral.reduit .groupe.ferme .entrees { display: block; }
/* Organiser le menu */
.org-menu { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.org-ligne { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--bord); }
.org-ligne:last-child { border-bottom: 0; }
.org-ligne.masque span { opacity: .45; text-decoration: line-through; }

.ok-txt { color: var(--ok, #15803d); } .danger-txt { color: var(--danger, #b91c1c); }

/* Photos (champ image, listes, caisse) */
.champ-image { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.champ-image .apercu { width: 96px; height: 96px; border-radius: 12px; border: 1px dashed var(--bord-fort); display: grid; place-items: center; overflow: hidden; color: var(--txt-2); background: var(--surface-2, var(--fond)); }
.champ-image .apercu img { width: 100%; height: 100%; object-fit: cover; }
.vignette { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: inline-grid; place-items: center; vertical-align: middle; }
.vignette.vide-img { background: var(--surface-2, var(--fond)); color: var(--txt-2); }
.tuile.avec-photo { padding-top: 6px; }
.tuile .tuile-photo { width: 100%; height: 76px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }

/* Caisse : panneau des fonctions (≡), rappel ticket, remboursement */
.pos-actions .pos-fn { flex: 0 0 auto; width: 44px; }
.pos-fonctions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pos-fonctions .btn { flex-direction: column; height: 96px; gap: 8px; font-weight: 650; position: relative; white-space: normal; text-align: center; }
.pos-fonctions .verrou { position: absolute; top: 6px; inset-inline-end: 6px; color: var(--alerte); }
.rappel-liste { margin-top: 12px; max-height: 50vh; overflow: auto; border: 1px solid var(--bord); border-radius: 10px; }
.rappel-liste tr[data-id] { cursor: pointer; }
.rappel-liste tr.sel td { background: var(--acc-doux); }
.remb { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.remb-fleches { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.remb-fleches .btn { font-size: 20px; font-weight: 800; }
.remb-liste { border: 1px solid var(--bord); border-radius: 10px; min-height: 240px; max-height: 46vh; overflow: auto; margin-top: 6px; background: var(--surface); }
@media (max-width: 640px) { .pos-fonctions { grid-template-columns: repeat(2, 1fr); } .remb { grid-template-columns: 1fr; } .remb-fleches { flex-direction: row; } }
