/* Afficheur cuisine tablette/PC : structure flex unique, sans superposition. */
@media (min-width:651px){
body[data-view="kitchen"]{overflow:hidden!important;background:#061526}
body[data-view="kitchen"] .topbar{height:58px!important;padding:0 14px!important}
body[data-view="kitchen"] .topbar .brand-mark{width:36px;height:36px}
body[data-view="kitchen"] .topbar .brand b{font-size:17px}
body[data-view="kitchen"] .topbar .brand small{font-size:8px}
body[data-view="kitchen"] .rail{display:none!important}
body[data-view="kitchen"] #content{position:fixed!important;inset:58px 0 0!important;height:auto!important;min-height:0!important;padding:0!important;overflow:hidden!important;background:#061526}
body[data-view="kitchen"] .kds-os{box-sizing:border-box;width:100%;max-width:none!important;height:100%!important;min-height:0!important;padding:5px 8px!important;overflow:hidden!important;display:flex!important;flex-direction:column;gap:4px;background:#061526!important;isolation:isolate}
body[data-view="kitchen"] .kds-head,body[data-view="kitchen"] .kds-view-tabs,body[data-view="kitchen"] .kds-tools,body[data-view="kitchen"] .kds-carla{position:relative!important;inset:auto!important;transform:none!important;flex:0 0 auto;width:100%!important;max-width:none!important;margin:0!important;z-index:4}
body[data-view="kitchen"] .kds-head{min-height:42px;padding:4px 8px;display:grid!important;grid-template-columns:minmax(150px,auto) minmax(310px,1fr) auto auto;align-items:center;gap:7px;border:1px solid #214560;border-radius:11px;background:#081a2c!important}
body[data-view="kitchen"] .kds-head>div:first-child{min-width:0;margin:0!important}
body[data-view="kitchen"] .kds-head>div:first-child small:after{content:" · POSTE GRAND ÉCRAN";color:#36d7ff}
body[data-view="kitchen"] .kds-head>div:first-child small{font-size:9px}
body[data-view="kitchen"] .kds-head>div:first-child h1{font-size:21px;line-height:1;margin:2px 0 0}
body[data-view="kitchen"] .kds-online{display:none!important}
body[data-view="kitchen"] .kds-head nav{grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(70px,1fr));overflow:hidden!important}
body[data-view="kitchen"] .kds-head nav button{min-width:0!important;min-height:32px;padding:4px 8px;white-space:nowrap}
body[data-view="kitchen"] .kds-view-tabs{min-height:38px;padding:3px;display:grid!important;grid-template-columns:repeat(3,1fr);gap:4px;background:#071829!important}
body[data-view="kitchen"] .kds-view-tabs button{min-height:32px!important;padding:3px 8px!important}
body[data-view="kitchen"] .kds-view-tabs button small{display:none!important}
body[data-view="kitchen"] .kds-tools{min-height:36px;padding:0!important;display:grid!important;grid-template-columns:minmax(230px,.8fr) minmax(420px,1.2fr)!important;gap:6px}
body[data-view="kitchen"] .kds-tools input{min-height:36px!important;height:36px!important;padding:6px 10px!important}
body[data-view="kitchen"] .kds-tools button{min-height:36px!important;height:36px!important;padding:4px 7px!important}
body[data-view="kitchen"] .kds-tools label{width:auto!important;min-width:0;margin:0}
body[data-view="kitchen"] .kds-tools>div{width:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
body[data-view="kitchen"] .kds-carla{min-height:38px;max-height:44px;padding:6px 10px!important;overflow:hidden;background:#0b2540!important;border-color:#7659ff!important;box-shadow:0 5px 18px #0004}
body[data-view="kitchen"] .kds-board{box-sizing:border-box;position:relative!important;inset:auto!important;transform:none!important;z-index:2;flex:1 1 0;width:100%;height:auto!important;min-height:0!important;margin:0!important;padding:8px;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px;overflow:hidden!important;border:1px solid #1d405c;border-radius:15px;background:#071829!important}
body[data-view="kitchen"] .kds-column,body[data-view="kitchen"] .kds-column.ready{grid-column:auto!important;width:auto!important;min-width:0;max-width:none!important;height:100%!important;min-height:0!important;display:flex!important;flex-direction:column;overflow:hidden!important;contain:layout paint;background:#081a2c!important}
body[data-view="kitchen"] .kds-column>header{flex:0 0 auto;min-height:47px;padding:9px 11px;background:#0a2035}
body[data-view="kitchen"] .kds-stack,body[data-view="kitchen"] .kds-column.ready .kds-stack{flex:1 1 0;min-height:0!important;height:auto!important;max-height:none!important;display:block!important;padding:8px;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
body[data-view="kitchen"] .kds-ticket{width:auto;max-width:100%;margin:0 0 8px;box-shadow:none}
body[data-view="kitchen"] .kds-table-id{display:inline-flex;align-items:center;padding:4px 8px;border:1px solid var(--table-accent,#4ce1ff);border-radius:7px;background:#063451;color:#fff!important;font-size:16px!important;letter-spacing:.05em}
body[data-view="kitchen"] .kds-summary,body[data-view="kitchen"] .kds-layout{display:none!important}
body[data-view="kitchen"] .kds-full-tickets,body[data-view="kitchen"] .kds-history{flex:1 1 0;width:100%;max-width:none!important;height:auto!important;min-height:0!important;overflow-y:auto!important;background:#061526!important}
body[data-view="kitchen"] .kds-full-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;align-content:start}
body[data-view="kitchen"] .kds-urgent-title{position:sticky;top:-8px;z-index:5;display:grid;grid-template-columns:1fr auto;gap:2px;margin:-8px -8px 9px;padding:10px 12px;border-bottom:2px solid #ff5964;background:linear-gradient(90deg,#641f2b,#351823);color:#fff}
body[data-view="kitchen"] .kds-urgent-title b{color:#ffb1b8}body[data-view="kitchen"] .kds-urgent-title span{grid-row:1/3;grid-column:2;align-self:center;padding:5px 8px;border-radius:999px;background:#ff5964;font-weight:900}body[data-view="kitchen"] .kds-urgent-title small{color:#ffc7cc}
body[data-view="kitchen"] .kds-normal-title{margin:12px 0 8px;padding:7px 9px;border-left:4px solid #42d8ff;background:#0d2941;color:#7be6ff;font-size:11px;font-weight:900}
}
@media (min-width:651px) and (max-width:900px) and (orientation:portrait){
body[data-view="kitchen"] #content{overflow-y:auto!important}body[data-view="kitchen"] .kds-os{height:auto!important;min-height:100%!important;overflow:visible!important}
body[data-view="kitchen"] .kds-head{grid-template-columns:minmax(150px,1fr) auto auto auto}body[data-view="kitchen"] .kds-head nav{grid-column:1/-1!important;grid-row:2!important}body[data-view="kitchen"] .kds-online{display:none}
body[data-view="kitchen"] .kds-board{flex:none;height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}body[data-view="kitchen"] .kds-column{height:56dvh!important}body[data-view="kitchen"] .kds-column.ready{grid-column:1/-1!important;height:42dvh!important}
}
@media (min-width:651px) and (max-height:720px){body[data-view="kitchen"] #content{inset:62px 0 0!important}body[data-view="kitchen"] .kds-os{padding:5px 8px!important;gap:4px}body[data-view="kitchen"] .kds-head{min-height:42px;padding:4px 8px}body[data-view="kitchen"] .kds-view-tabs{min-height:38px}body[data-view="kitchen"] .kds-view-tabs button small{display:none}body[data-view="kitchen"] .kds-tools{min-height:36px}body[data-view="kitchen"] .kds-carla{min-height:39px;max-height:44px}}
