*{box-sizing:border-box}body{margin:0;background:#f2f4ef;color:#182823;font:16px system-ui,sans-serif}header{height:72px;display:flex;align-items:center;gap:24px;padding:0 24px;background:#182823;color:white}header strong{font-size:20px;white-space:nowrap}nav,.toolbar,.actions,.tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap}nav{flex:1}button,input,select,textarea{font:inherit;min-height:48px;border:1px solid #bdc7bc;border-radius:9px;padding:8px 12px;background:white;color:inherit}button{cursor:pointer;font-weight:650}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #4f9076;outline-offset:2px}nav button{background:transparent;border:0;color:#e6eee8;white-space:nowrap}nav button.active{background:#39584b}.primary,.activeTab{background:#215944;color:white;border-color:#215944}.danger{color:#902d2d}.split{height:calc(100dvh - 72px);display:grid;grid-template-columns:65% 35%;overflow:hidden}.selection,.ticket,.page{min-width:0;padding:20px;overflow:auto}.ticket{background:#fff;border-left:1px solid #d9dfd5;display:flex;flex-direction:column;gap:12px}.ticket-lines{min-height:100px;overflow:auto;flex:1}.line{border-bottom:1px solid #dce2db;padding:10px 0}.row{display:flex;justify-content:space-between;gap:12px;align-items:center}.total{font-size:clamp(28px,3vw,42px);font-weight:750}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:14px}.tile{text-align:left;min-height:100px;overflow:hidden;background:var(--color,#e1eee5);display:flex;flex-direction:column;justify-content:space-between;gap:6px}.tile.visual{aspect-ratio:1}.tile img{width:100%;height:64%;object-fit:cover;border-radius:5px}.tile .initial{font-size:28px;color:#2b5a47}.tabs{margin-top:14px}.search{flex:1;min-width:130px}.page{max-width:1200px;margin:auto}.panel,.metric{background:white;border:1px solid #d9dfd5;border-radius:12px;padding:16px;margin:12px 0}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}.metric strong{display:block;font-size:25px}.muted,small{color:#506258}.alert{color:#9a3030}.badge{font-size:12px;font-weight:700}.table{overflow:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:8px;border-bottom:1px solid #dce2db}dialog{width:min(720px,95vw);max-height:94dvh;border:0;border-radius:14px;padding:24px;color:inherit}dialog::backdrop{background:#101f19aa}dialog.wide{width:min(1000px,96vw)}h1,h2,h3{margin:0 0 12px}form{display:grid;gap:10px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}label{display:grid;gap:4px}label.check{display:flex;align-items:center}input[type=checkbox]{min-height:0;width:20px;height:20px}#toast{position:fixed;bottom:14px;left:18px;background:#182823;color:white;border-radius:8px;padding:10px;pointer-events:none;z-index:10}#toast:empty{display:none}.bar{height:9px;background:#407c60;border-radius:5px;margin:4px 0 12px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:360px}.print-sheet{font-family:system-ui,sans-serif}@media(max-width:950px){header{height:auto;min-height:72px;gap:8px;flex-wrap:wrap;padding:8px}.split{height:calc(100dvh - 108px)}.selection,.ticket,.page{padding:12px}}@media(max-width:620px){.split{display:block;height:auto;overflow:visible}.selection{max-height:57dvh}.ticket{border-left:0;border-top:1px solid #d9dfd5}.ticket-lines{max-height:48dvh}.grid{grid-template-columns:repeat(auto-fill,minmax(105px,1fr))}}
@media print{body.printing>header,body.printing>main,body.printing>dialog,body.printing>#toast{display:none!important}.print-sheet.ticket-print{width:72mm;font-size:11px}.print-sheet h1{font-size:19px}.print-sheet td,.print-sheet th{padding:4px}}

[hidden]{display:none!important}

/* Navigation et commandes tactiles */
body{display:flex;flex-direction:column;min-height:100dvh;background:#f4f6f3}
.shell-header{height:auto;min-height:76px;padding:8px clamp(12px,2.5vw,32px);gap:clamp(10px,2.2vw,28px);flex-wrap:nowrap}
.brand{display:flex;align-items:center;gap:10px}
.brand strong{font-size:16px;letter-spacing:-.02em}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#d7e8dd;color:#193b30;font-size:13px;font-weight:800;letter-spacing:.06em}
#nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px}
#nav .nav-link{position:relative;padding-inline:14px;border:1px solid transparent;color:#d8e2dd;font-size:14px;font-weight:600}
#nav .nav-link:hover{background:#293c34;color:white}
#nav .nav-link[aria-current=page]{background:#334c40;border-color:#557565;color:white}
#status{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#e2ebe5;font-size:12px}
#status::before{content:'';width:7px;height:7px;border-radius:50%;background:#a2c9ac}
#app{flex:1;min-height:0}
.split{height:auto;min-height:calc(100dvh - 76px)}
@media(min-width:721px){body:has(.split){height:100dvh;overflow:hidden}.split{height:100%;min-height:0}}
.selection h1,.page h1{font-size:clamp(24px,3vw,34px);letter-spacing:-.035em}
.checkout-tools button{background:#e7ede7;border-color:#d3ded4}
.category-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:3px 2px 7px}
.category-tabs button{white-space:nowrap;border-color:#d6dfd6;border-radius:24px;padding-inline:17px}
.category-tabs [aria-pressed=true]{background:#215944;border-color:#215944;color:white}
.ticket h2{margin:0;font-size:20px;letter-spacing:-.02em}
@media(max-width:900px){.shell-header{flex-wrap:wrap;row-gap:5px;justify-content:space-between}.shell-header #nav{order:3;flex:0 0 100%}.brand strong{font-size:15px}}
@media(max-width:720px){.split{display:block}.selection{max-height:none}.ticket{border-left:0;border-top:1px solid #d9dfd5}.ticket-lines{max-height:44dvh}}
.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px}
.profile-card{padding:16px;border:1px solid #d9dfd5;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start}
.profile-card.selected-profile{border-color:#5e8770;background:#f0f6f1}
.profile-card ul{margin:0 0 16px;padding-left:20px;line-height:1.65}
.profile-card .actions{margin-top:auto}
.profile-current{font-weight:650;color:#215944}
