:root{
  --black:#090909;--panel:#171717;--panel-soft:#202020;--line:#353535;--white:#fff;--muted:#bcb7af;
  --cream:#e8cda0;--red:#d71920;--red-dark:#831015;--green:#169447;--amber:#d88908;--blue:#2878d4;
}
*{box-sizing:border-box}
html{background:var(--black)}
body{margin:0;min-height:100vh;color:var(--white);background:#0c0c0c;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}
[hidden]{display:none!important}
.kitchen-header{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;min-height:88px;padding:10px 22px;background:rgba(7,7,7,.98);border-bottom:1px solid var(--line)}
.kitchen-brand{display:flex;align-items:center;gap:12px;width:max-content;color:inherit;text-decoration:none}.kitchen-brand img{width:64px;height:64px;object-fit:cover;border-radius:50%}.kitchen-brand span,.kitchen-brand strong,.kitchen-brand small{display:block}.kitchen-brand strong{font:900 25px/1 Georgia,serif;text-transform:uppercase}.kitchen-brand small{margin-top:4px;color:var(--cream);font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.kitchen-clock{text-align:center}.kitchen-clock strong{display:block;font-size:34px;line-height:1;font-variant-numeric:tabular-nums}.kitchen-clock span{display:block;margin-top:4px;color:var(--muted);font-size:12px;font-weight:800;text-transform:capitalize}
.kitchen-header-actions{justify-self:end;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.kitchen-header-actions a,.kitchen-header-actions button,.refresh-status button{min-height:44px;padding:0 14px;color:#fff;background:#242424;border:1px solid #414141;border-radius:10px;text-decoration:none;font-weight:900}
main{padding:20px 22px 54px}
.kitchen-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.kitchen-filters{display:flex;gap:9px;flex-wrap:wrap}.filter-button{min-height:54px;padding:0 18px;color:#fff;background:#1d1d1d;border:2px solid #393939;border-radius:12px;font-size:17px;font-weight:900}.filter-button strong{display:inline-grid;place-items:center;min-width:30px;height:30px;margin-left:7px;padding:0 7px;color:#111;background:#ddd0b9;border-radius:999px}.filter-button.active{color:#111;background:var(--cream);border-color:var(--cream)}
.refresh-status{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;font-weight:800}.refresh-dot{width:10px;height:10px;background:var(--green);border-radius:50%;box-shadow:0 0 0 5px rgba(22,148,71,.13)}
.kitchen-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.kitchen-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:14px 18px;background:#171717;border:1px solid #303030;border-radius:14px}.kitchen-summary span{color:var(--muted);font-size:15px;font-weight:900;text-transform:uppercase}.kitchen-summary strong{font-size:34px;font-variant-numeric:tabular-nums}
.kitchen-message{margin-bottom:16px;padding:15px 18px;color:#111;background:var(--cream);border-radius:12px;font-weight:900}
.kitchen-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.kitchen-empty{grid-column:1/-1;min-height:340px;display:grid;place-items:center;padding:30px;text-align:center;background:#151515;border:2px dashed #3b3b3b;border-radius:18px}.kitchen-empty strong{display:block;font:900 38px Georgia,serif}.kitchen-empty span{display:block;margin-top:8px;color:var(--muted);font-size:18px}
.kitchen-order{position:relative;overflow:hidden;background:var(--panel);border:3px solid #373737;border-radius:20px;box-shadow:0 18px 45px rgba(0,0,0,.24)}.kitchen-order.ready{border-color:var(--green)}.kitchen-order.delivery{box-shadow:inset 7px 0 0 var(--blue),0 18px 45px rgba(0,0,0,.24)}.kitchen-order.pickup{box-shadow:inset 7px 0 0 var(--cream),0 18px 45px rgba(0,0,0,.24)}
.order-head{display:grid;grid-template-columns:1fr auto;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--line)}.order-id{margin:0;color:var(--muted);font-size:13px;font-weight:900;letter-spacing:.06em}.order-service{display:inline-flex;width:max-content;margin-top:7px;padding:7px 11px;border-radius:999px;font-size:16px;font-weight:950;text-transform:uppercase}.order-service.pickup{color:#17120b;background:var(--cream)}.order-service.delivery{color:#fff;background:var(--blue)}.order-slot{text-align:right}.order-slot span{display:block;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase}.order-slot strong{display:block;margin-top:2px;color:#fff;font-size:42px;line-height:1;font-variant-numeric:tabular-nums}
.order-timers{display:grid;grid-template-columns:1fr;gap:1px;background:var(--line);border-bottom:1px solid var(--line)}.order-timer{padding:13px 18px;background:#121212}.order-timer span{display:block;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase}.order-timer strong{display:block;margin-top:4px;font-size:24px;font-variant-numeric:tabular-nums}.order-timer.accepted strong{color:var(--cream)}
.order-customer{display:flex;justify-content:space-between;gap:12px;padding:14px 20px;color:#ddd4c8;background:#111}.order-customer strong{font-size:21px}.order-customer span{color:var(--muted);font-size:14px;text-align:right}
.order-items{display:grid;gap:0;margin:0;padding:0;list-style:none}.order-item{padding:18px 20px;border-bottom:1px solid #333}.item-main{display:grid;grid-template-columns:auto 1fr;gap:13px;align-items:start}.item-quantity{display:grid;place-items:center;min-width:58px;height:58px;padding:0 8px;color:#111;background:var(--cream);border-radius:12px;font-size:30px;font-weight:950}.item-name{padding-top:4px;font-size:28px;font-weight:950;line-height:1.05;text-transform:uppercase}.item-modification{display:block;margin:11px 0 0 71px;padding:10px 13px;color:#18120c;background:#ffd67b;border-left:7px solid var(--amber);border-radius:8px;font-size:19px;font-weight:950;line-height:1.25}.item-note{background:#ffb9bc;border-left-color:var(--red)}
.order-instructions{margin:0 20px 18px;padding:13px 15px;color:#17100d;background:#f4dfb9;border-radius:10px;font-size:17px;font-weight:900}.order-instructions strong{display:block;margin-bottom:3px;text-transform:uppercase}
.order-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px 20px 20px}.order-actions button{min-height:68px;padding:8px 12px;color:#fff;background:#292929;border:2px solid #444;border-radius:12px;font-size:20px;font-weight:950}.order-actions button.current{border-color:var(--cream);background:#3b3224}.order-actions button.action-preparing{background:#b96d00;border-color:#e79519}.order-actions button.action-ready{background:#13713a;border-color:#21a958}.order-actions button.action-completed{background:#1f64aa;border-color:#3185d8}.order-actions .delivery-wait{grid-column:1/-1;min-height:68px;display:grid;place-items:center;padding:10px;color:#cfe5ff;background:#162c43;border:2px solid #2b638f;border-radius:12px;font-size:19px;font-weight:950;text-align:center}
.kitchen-login{min-height:calc(100vh - 130px);display:grid;place-items:center}.login-card{width:min(520px,100%);padding:32px;background:#171717;border:1px solid #353535;border-radius:20px}.eyebrow{margin:0 0 8px;color:var(--cream);font-size:12px;font-weight:950;letter-spacing:.16em;text-transform:uppercase}.login-card h1{margin:0 0 10px;font:900 38px Georgia,serif}.login-card p{color:var(--muted)}.login-card form{display:grid;gap:14px}.login-card label{display:grid;gap:7px;font-weight:900}.login-card input{height:52px;padding:0 13px;color:#111;background:#fff;border:2px solid transparent;border-radius:10px;font-size:18px}.login-card form button{min-height:58px;color:#fff;background:var(--red);border:0;border-radius:11px;font-size:18px;font-weight:950}.form-error{margin:0!important;padding:11px;color:#fff!important;background:#7d1217;border-radius:8px}
@media(max-width:1050px){.kitchen-header{grid-template-columns:1fr auto}.kitchen-clock{display:none}.kitchen-orders{grid-template-columns:1fr}.kitchen-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.kitchen-header{position:relative;display:flex;align-items:center;flex-wrap:wrap;padding:9px 12px}.kitchen-brand img{width:48px;height:48px}.kitchen-brand strong{font-size:20px}.kitchen-header-actions{width:100%;justify-content:stretch}.kitchen-header-actions>*{flex:1;text-align:center;font-size:12px}.kitchen-header-actions #logoutButton{display:none}main{padding:12px 10px 34px}.kitchen-toolbar{align-items:stretch;flex-direction:column}.kitchen-filters{display:grid;grid-template-columns:repeat(3,1fr)}.filter-button{min-height:50px;padding:5px;font-size:13px}.filter-button strong{display:block;margin:3px auto 0}.refresh-status{justify-content:space-between}.kitchen-summary>div{min-height:62px;padding:10px 12px}.kitchen-summary span{font-size:11px}.kitchen-summary strong{font-size:28px}.order-head{padding:14px}.order-slot strong{font-size:34px}.order-timers{grid-template-columns:1fr}.order-timer{padding:10px 14px}.order-customer{padding:12px 14px}.order-customer strong{font-size:18px}.order-item{padding:15px 14px}.item-quantity{min-width:50px;height:50px;font-size:25px}.item-name{font-size:23px}.item-modification{margin-left:63px;font-size:17px}.order-actions{padding:13px 14px 16px;grid-template-columns:1fr}.order-actions button{min-height:58px;font-size:18px}}

/* V5.13.1.61 — acceptation des commandes depuis le mode cuisine */
.pending-acceptance-panel{margin-bottom:18px;padding:16px;background:linear-gradient(135deg,#4d0d10,#25090b);border:3px solid var(--red);border-radius:18px;box-shadow:0 0 0 5px rgba(215,25,32,.12),0 18px 45px rgba(0,0,0,.28)}
.pending-acceptance-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:2px 4px}.pending-acceptance-head h2{margin:0;font:900 32px Georgia,serif}.pending-acceptance-head p:not(.eyebrow){margin:5px 0 0;color:#f1d8d9;font-size:15px;font-weight:800}.pending-acceptance-head>strong{display:grid;place-items:center;min-width:62px;height:62px;padding:0 14px;color:#111;background:#fff;border-radius:999px;font-size:34px;font-variant-numeric:tabular-nums}
.pending-acceptance-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.kitchen-order.awaiting-acceptance{border-color:var(--red);animation:pendingOrderPulse 1.8s ease-in-out infinite}.acceptance-banner{padding:11px 18px;color:#fff;background:var(--red);font-size:18px;font-weight:950;letter-spacing:.03em;text-align:center;text-transform:uppercase}.order-actions button.action-accept{grid-column:1/-1;min-height:76px;color:#fff;background:var(--red);border-color:#ff555b;font-size:23px}
@keyframes pendingOrderPulse{0%,100%{box-shadow:0 18px 45px rgba(0,0,0,.24),0 0 0 0 rgba(215,25,32,.38)}50%{box-shadow:0 18px 45px rgba(0,0,0,.24),0 0 0 8px rgba(215,25,32,0)}}
@media(max-width:1050px){.pending-acceptance-orders{grid-template-columns:1fr}.kitchen-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.pending-acceptance-panel{padding:10px}.pending-acceptance-head h2{font-size:25px}.pending-acceptance-head p:not(.eyebrow){font-size:13px}.pending-acceptance-head>strong{min-width:50px;height:50px;font-size:27px}.kitchen-summary{grid-template-columns:repeat(2,1fr)}.acceptance-banner{font-size:15px}.order-actions button.action-accept{min-height:64px;font-size:19px}}

/* V5.13.1.99 — cartes de commandes plus compactes en mode cuisine */
@media (min-width:721px){
  .kitchen-orders,.pending-acceptance-orders{gap:13px}
  .kitchen-order{border-width:2px;border-radius:16px}
  .order-head{gap:10px;padding:14px 16px 11px}
  .order-service{margin-top:6px;padding:6px 9px;font-size:14px}
  .order-slot strong{font-size:36px}
  .order-timer{padding:10px 15px}
  .order-timer strong{font-size:21px}
  .order-customer{padding:11px 16px}
  .order-customer strong{font-size:18px}
  .order-customer span{font-size:13px}
  .order-item{padding:14px 16px}
  .item-main{gap:11px}
  .item-quantity{min-width:50px;height:50px;border-radius:10px;font-size:26px}
  .item-name{padding-top:3px;font-size:24px;line-height:1.08}
  .item-modification{margin:8px 0 0 61px;padding:8px 11px;border-left-width:6px;font-size:16px}
  .order-instructions{margin:0 16px 14px;padding:10px 12px;font-size:15px}
  .order-actions{gap:8px;padding:12px 16px 15px}
  .order-actions button{min-height:56px;padding:7px 10px;border-radius:10px;font-size:17px}
  .order-actions .delivery-wait{min-height:56px;font-size:16px}
  .acceptance-banner{padding:9px 15px;font-size:16px}
  .order-actions button.action-accept{min-height:62px;font-size:19px}
}

@media (max-width:720px){
  .kitchen-order{border-width:2px;border-radius:16px}
  .order-head{padding:12px}
  .order-slot strong{font-size:30px}
  .order-customer{padding:10px 12px}
  .order-customer strong{font-size:17px}
  .order-item{padding:12px}
  .item-quantity{min-width:44px;height:44px;font-size:22px}
  .item-name{font-size:21px}
  .item-modification{margin:8px 0 0 55px;padding:8px 10px;font-size:15px}
  .order-instructions{margin:0 12px 12px;font-size:15px}
  .order-actions{gap:8px;padding:11px 12px 13px}
  .order-actions button{min-height:52px;font-size:16px}
}

/* V5.13.1.108 — répartition visuelle des grosses commandes */
.kitchen-production-plan{padding:12px 16px 13px;background:#fff6d9;border-top:1px solid #e8ca78;border-bottom:1px solid #e8ca78}.production-plan-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.production-plan-head strong{font-size:16px;color:#6d4500}.production-plan-head span{padding:5px 8px;border-radius:999px;background:#fff;font-size:12px;font-weight:900}.production-plan-slots{display:flex;gap:8px;flex-wrap:wrap}.production-plan-slot{display:grid;grid-template-columns:auto auto;gap:1px 8px;align-items:center;min-width:135px;padding:8px 10px;border:1px solid #dfc070;border-radius:10px;background:#fff}.production-plan-slot span{grid-column:1/-1;color:#7b6a4d;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.production-plan-slot strong{font-size:21px}.production-plan-slot b{font-size:13px}.production-plan-slot.first{border:2px solid #c78b00;background:#fffaf0}
@media(max-width:720px){.kitchen-production-plan{padding:10px 12px}.production-plan-head{align-items:flex-start;flex-direction:column;gap:5px}.production-plan-head strong{font-size:15px}.production-plan-slots{display:grid;grid-template-columns:1fr 1fr;width:100%}.production-plan-slot{min-width:0}.production-plan-slot strong{font-size:19px}}
