/* Dona Manis staff system — mobile first.
   Base styles are for a phone held in one hand; wider screens add on top. */
:root{--brand:#A62C20;--gold:#E8CA7A;--bg:#faf8f4;--ink:#222;--line:#e6e0d4;--soft:#f3efe6;--tab-h:62px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink);
  padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom));-webkit-tap-highlight-color:transparent}
a{color:var(--brand)}
h1{font-size:1.35rem;margin:.4rem 0 .8rem}
h2{font-size:1.1rem;margin:1.6rem 0 .6rem}
code{background:var(--soft);padding:.1rem .3rem;border-radius:4px}

/* Top bar + menu */
.topbar{position:sticky;top:0;z-index:30;background:var(--brand);color:#fff;display:flex;align-items:center;
  justify-content:space-between;padding:.45rem .75rem;padding-top:calc(.45rem + env(safe-area-inset-top))}
.brand{display:flex;align-items:center;gap:.6rem;color:#fff;text-decoration:none;font-weight:700;letter-spacing:.04em}
.brand img{width:38px;height:38px;border-radius:8px;background:#fff;display:block}
.nav-toggle{position:absolute;opacity:0;pointer-events:none}
.hamburger{font-size:1.7rem;line-height:1;padding:.4rem .7rem;border-radius:10px;cursor:pointer;user-select:none;min-width:48px;text-align:center}
.nav-toggle:focus-visible + .hamburger{outline:2px solid #fff}
.links{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);
  box-shadow:0 10px 18px rgba(0,0,0,.15);flex-direction:column;max-height:calc(100vh - 70px);overflow-y:auto}
.nav-toggle:checked ~ .links{display:flex}
.links a{padding:1rem 1.1rem;color:var(--ink);text-decoration:none;border-top:1px solid var(--line);font-size:1.05rem}
.links a.active{font-weight:700;color:var(--brand);background:var(--soft)}

/* Bottom tab bar */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;height:calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);display:flex}
.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:.72rem;text-decoration:none;color:#555;min-width:0}
.tabbar a span{font-size:1.4rem;line-height:1}
.tabbar a.active{color:var(--brand);font-weight:700}

main{max-width:960px;margin:0 auto;padding:.9rem .85rem 1.5rem}

/* Forms: thumb-sized controls, 16px text so iOS does not zoom on focus */
label{display:grid;gap:.3rem;font-size:.95rem;font-weight:600}
input,select,textarea,button{font:inherit;font-size:16px;min-height:48px;padding:.65rem .8rem;border:1px solid #c9c2b4;
  border-radius:10px;width:100%;background:#fff;color:var(--ink)}
textarea{min-height:84px}
button{background:var(--brand);color:#fff;border:0;font-weight:700;cursor:pointer;width:auto;padding:.65rem 1.1rem}
button:active{filter:brightness(.92)}
button.big{width:100%;min-height:54px;font-size:1.05rem}
input[type=checkbox]{width:auto;min-height:0}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem;display:grid;gap:.9rem;width:100%;max-width:none}
.row{display:flex;gap:.5rem;align-items:center}
.row input{flex:1;min-width:0}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.5rem 1rem;border-radius:10px;
  background:#fff;border:1px solid var(--brand);color:var(--brand);text-decoration:none;font-weight:700;font-size:.95rem;margin:.15rem .1rem}
.card a{text-align:center}
.tag{display:inline-block;background:#fff3cd;color:#8a6d00;border-radius:6px;padding:.1rem .45rem;font-size:.75rem;font-weight:700}
.muted{color:#777;font-size:.9rem}
.small{font-size:.75rem;word-break:break-all}
.flash{padding:.8rem 1rem;border-radius:10px;margin-bottom:1rem}
.flash.ok{background:#e6f4ea;color:#1e6b34}
.flash.err{background:#fde8e8;color:#9b1c1c}

/* Home tiles: big, two across */
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
.tile{display:flex;align-items:center;justify-content:center;text-align:center;min-height:92px;background:#fff;
  border:1px solid var(--line);border-radius:14px;padding:1rem .6rem;font-weight:700;font-size:1.05rem;color:var(--ink);text-decoration:none}
.tile.alt{background:var(--brand);color:#fff;border-color:var(--brand)}
.tiles.small{grid-template-columns:repeat(2,1fr)}
.tiles.small .tile{min-height:0;padding:.8rem;font-weight:500;flex-direction:column}
.tile b{font-size:1.45rem}

/* Tables */
table{width:100%;border-collapse:collapse;background:#fff;font-size:.95rem}
th,td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:.8rem;color:#555}
.filters{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.filters select,.filters input,.filters button{width:100%}

/* Login */
body.center{display:grid;place-items:center;min-height:100vh;padding:1rem}
.center .card{width:min(380px,100%)}
.logo{display:block;width:100%;max-width:220px;height:auto;margin:0 auto}
.subtitle{margin:0;text-align:center;font-size:1.15rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--brand)}
.center-text{text-align:center;display:block}

/* Header: menu button, title, log-out */
.topbar{gap:.4rem}
.topbar .title{flex:1;color:#fff;text-decoration:none;font-size:1.35rem;font-weight:600;padding:.3rem .4rem}
.topbar .logout{display:grid;place-items:center;width:48px;height:48px;color:#fff;border-radius:10px}
.topbar .logout svg{width:26px;height:26px}
.hamburger{font-size:1.9rem;display:grid;place-items:center;width:48px;height:48px;padding:0}
.tabbar a span svg{width:26px;height:26px;display:block}
.tabbar a span{display:grid;place-items:center}

/* Home: banner, quick links, tiles */
.hero{position:relative;overflow:hidden;background:#fbf6ec;border:1px solid var(--line);border-radius:20px;
  min-height:190px;display:grid;place-items:center;padding:1.4rem 1rem;margin-bottom:1rem}
.hero img{position:relative;z-index:2;width:auto;max-width:54%;max-height:160px;height:auto}
.hero .blob{position:absolute;border-radius:50%;z-index:1}
.hero .b1{width:120px;height:120px;background:var(--brand);left:-55px;bottom:-45px}
.hero .b2{width:90px;height:90px;background:var(--gold);left:-30px;top:-40px}
.hero .b3{width:100px;height:100px;background:var(--gold);right:-35px;bottom:-45px}
.hero .cake{position:absolute;z-index:2;right:12px;top:10px;width:52px;height:52px;color:var(--brand)}
.quick{background:#fbf6ec;border:1px solid var(--line);border-radius:18px;padding:.4rem;margin-bottom:1.1rem}
.qrow{display:flex;flex-wrap:nowrap}
.qrow + .qrow{border-top:1px solid var(--line);margin-top:.35rem;padding-top:.35rem}
.quick a{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.55rem .2rem;
  text-decoration:none;color:#555;font-size:.74rem;text-align:center;border-radius:14px;line-height:1.15;overflow-wrap:anywhere}
.quick a svg{width:26px;height:26px}
.quick a.active{background:var(--brand);color:#fff}
.greet{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;font-size:1.5rem;line-height:1.2;margin:.2rem 0 .3rem}
.greet svg{width:46px;height:46px;color:var(--gold);flex:none}
.role-line{margin:0 0 1rem}
.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.mtile{display:flex;align-items:center;gap:.65rem;background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:.7rem;text-decoration:none;color:var(--ink);font-weight:700;min-height:78px;min-width:0;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.mtile .ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:#fff;flex:none}
.mtile .ico svg{width:26px;height:26px}
.mtile .lbl{min-width:0;overflow-wrap:anywhere;line-height:1.2;font-size:.95rem}
.mtile .chev{margin-left:auto;color:#9a9a9a;width:18px;height:18px;flex:none}
.c-red{background:#A62C20}.c-orange{background:#E8963A}.c-green{background:#3F9A4B}.c-blue{background:#3B82C4}
.c-purple{background:#7A4FA8}.c-teal{background:#1FA39A}.c-brown{background:#B07A2A}.c-indigo{background:#4A5FC1}
.dash-bar{display:flex;align-items:center;gap:.7rem;margin-top:.8rem;background:var(--brand);color:#fff;border-radius:16px;
  padding:.8rem 1rem;text-decoration:none;font-weight:700;font-size:1.05rem;min-height:62px}
.dash-bar svg{width:26px;height:26px;flex:none}
.dash-bar .chev{margin-left:auto}

/* Long entry forms: submit stays in reach; badge for transfers waiting */
.sticky-submit{position:sticky;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + .5rem);z-index:15;display:flex;
  align-items:center;gap:.75rem;background:rgba(255,255,255,.97);padding:.6rem;margin-top:.8rem;border:1px solid var(--line);
  border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.14)}
.sticky-submit .count{white-space:nowrap;font-size:.85rem;color:#555}
.sticky-submit button{flex:1}
#find{margin-bottom:.6rem}
.badge{font-style:normal;background:#E8963A;color:#fff;border-radius:999px;font-size:.7rem;font-weight:700;min-width:20px;
  height:20px;display:inline-grid;place-items:center;padding:0 5px}
.tabbar a{position:relative}
.tabbar .badge{position:absolute;top:5px;left:calc(50% + 6px)}
.mtile .badge{margin-left:auto}
.mtile .badge + .chev{margin-left:.3rem}

/* Header: title on the left, account icon on the right (menu behind it) */
.topnav{display:none}
.acct{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.18);
  color:#fff;cursor:pointer;flex:none}
.acct svg{width:26px;height:26px}
.nav-toggle:focus-visible + .acct{outline:2px solid #fff}
.acct-menu{display:none;position:absolute;top:calc(100% + 6px);right:.6rem;width:min(300px,calc(100vw - 1.2rem));
  background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 30px rgba(0,0,0,.22);
  padding:.4rem;z-index:40}
#acct-toggle:checked ~ .acct-menu{display:block}
.acct-menu .who{padding:.7rem .8rem;border-bottom:1px solid var(--line);margin-bottom:.3rem;display:flex;flex-direction:column;gap:.1rem}
.acct-menu .who span{color:#777;font-size:.85rem}
.acct-menu a{display:block;padding:.85rem .8rem;border-radius:10px;color:var(--ink);text-decoration:none;font-size:1rem}
.acct-menu a.active{background:var(--soft);color:var(--brand);font-weight:700}
.acct-menu a.out{color:#9b1c1c;font-weight:700}
.acct-menu .grp{margin:.55rem .8rem .1rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#999}

/* Stock screens: one tab with a segmented switch */
.seg{display:flex;gap:4px;background:var(--soft);border-radius:12px;padding:4px;margin-bottom:.9rem}
.seg a{flex:1;text-align:center;padding:.65rem .3rem;border-radius:9px;text-decoration:none;color:#555;font-weight:600;font-size:.92rem;min-width:0}
.seg a.on{background:#fff;color:var(--brand);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.cal-chip{display:inline-block;border-radius:999px;padding:.05rem .55rem;font-size:.75rem;font-weight:700;white-space:nowrap}
.cal-list{list-style:none;margin:.5rem 0 0;padding:0;display:grid;gap:.45rem;font-size:.92rem}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:1rem}
.cal-grid .h{text-align:center;font-weight:700;font-size:.75rem;color:#777;padding:.2rem 0}
.cal-grid .d{background:#fff;border:1px solid #e6e0d4;border-radius:8px;min-height:4.6rem;padding:.25rem;font-size:.7rem;overflow:hidden;text-decoration:none;color:inherit;display:block}
.cal-grid .d.out{background:transparent;border-color:transparent}
.cal-grid .d.today{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.cal-grid .d b{display:block;font-size:.85rem;margin-bottom:.15rem}
.cal-grid .t{display:block;border-radius:4px;padding:0 .2rem;margin-top:2px;line-height:1.25;overflow:hidden;text-overflow:ellipsis}
.manage{margin:1.4rem 0 .5rem;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#888}

button.mini{min-height:38px;padding:.25rem .7rem;background:var(--soft);color:var(--ink);font-size:.9rem}

/* Products: collapsed add form and drag-and-drop ordering */
.adder{margin-bottom:1rem}
.adder summary{list-style:none;display:inline-flex;align-items:center;min-height:46px;padding:.5rem 1rem;border-radius:10px;
  background:#fff;border:1px solid var(--brand);color:var(--brand);font-weight:700;cursor:pointer}
.adder summary::-webkit-details-marker{display:none}
.adder .card{margin-top:.7rem}
.sort-cat{margin:1.2rem 0 .4rem;font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:#888}
.sortlist{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.sortlist li{display:flex;align-items:center;gap:.3rem;background:#fff;border:1px solid var(--line);border-radius:12px;min-height:54px}
.sortlist li.dragging{box-shadow:0 8px 20px rgba(0,0,0,.22);border-color:var(--brand);position:relative;z-index:5}
.sortlist .handle{touch-action:none;cursor:grab;user-select:none;padding:.4rem 1rem;font-size:1.6rem;color:#9a9a9a;
  align-self:stretch;display:grid;place-items:center}
.sortlist .nm{font-weight:600}

/* One menu: three-line button on the left, no bottom bar */
:root{--tab-h:0px}
.burger{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;color:#fff;cursor:pointer;flex:none;position:relative}
.burger svg{width:28px;height:28px}
.burger .dot{position:absolute;top:9px;right:9px;width:11px;height:11px;border-radius:50%;background:#E8963A;border:2px solid var(--brand)}
.nav-toggle:focus-visible + .burger{outline:2px solid #fff}
.topbar .title{font-size:1.15rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.acct-menu{left:.6rem;right:auto;max-height:calc(100vh - 90px);overflow-y:auto}
.acct-menu a{display:flex;align-items:center}
.acct-menu .mi{display:inline-grid;place-items:center;margin-right:.7rem;color:#8a8a8a;flex:none}
.acct-menu .mi svg{width:22px;height:22px}
.acct-menu a.active .mi{color:var(--brand)}
.acct-menu .badge{margin-left:auto}

.ver{text-align:center;color:#aaa;font-size:.75rem;margin:2rem 0 .5rem}
.opening-hidden{display:none !important}

/* Add / remove stock: + / - toggle, quantity and remarks on each line */
.arow{background:#fff;border:1px solid var(--line);border-radius:12px;padding:.6rem .7rem;margin-bottom:.5rem;display:grid;gap:.5rem}
.arow .nm{font-weight:600}
.arow .ctl{display:flex;gap:.6rem;align-items:center}
.arow .ctl input[type=text]{width:7rem}
.arow .rem{width:100%;display:none}
.arow.is-minus .rem{display:block}
.pmgrp{display:inline-flex;gap:6px}
.pm-opt{display:inline-block;position:relative}
.pm-opt input{position:absolute;opacity:0;width:0;height:0}
.pm-opt span{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;border:1px solid #c9c2b4;
  background:#fff;color:#777;font-size:1.5rem;font-weight:700;cursor:pointer;user-select:none}
.pm-opt.plus input:checked + span{background:#2E7D32;border-color:#2E7D32;color:#fff}
.pm-opt.minus input:checked + span{background:#B3261E;border-color:#B3261E;color:#fff}
.pm-opt input:focus-visible + span{outline:2px solid var(--brand);outline-offset:2px}
@media (min-width:700px){.arow{grid-template-columns:1fr auto 1.2fr;align-items:center}}
.expect{margin:0;background:#fff3cd;color:#6b5400;padding:.65rem .85rem;border-radius:10px;font-weight:700}
#needs .make{font-weight:700;color:var(--brand)}

/* Phones: wide read-only tables become stacked cards (cells are labelled by script in page_footer) */
@media (max-width:640px){
  table:not(.stack):not(.keep){display:block;overflow-x:auto}
  table.stack,table.stack tbody{display:block;background:none}
  table.stack tr.hdr{display:none}
  table.stack tr{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;margin:0 0 .6rem;padding:.35rem .8rem}
  table.stack tr.cat{background:var(--soft);padding:.5rem .8rem;font-weight:700}
  table.stack td{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.25rem 1rem;
    padding:.4rem 0;border:0;text-align:right}
  table.stack td + td{border-top:1px solid var(--soft)}
  table.stack td::before{content:attr(data-label);font-weight:600;color:#777;text-align:left;font-size:.85rem}
  table.stack td[data-label=""]::before{display:none}
  table.stack td form{width:100%;display:flex;gap:.4rem;flex-wrap:wrap}
  table.stack td form input{flex:1;min-width:8rem;width:auto}
}

/* Tablets and up: put the menu inline, drop the tab bar, tighten controls */
@media (min-width:900px){
  body{padding-bottom:0}
  .sticky-submit{bottom:.75rem}
  .tabbar{display:none}
  .hamburger{display:none}
  .topbar .title{flex:0 0 auto;margin-right:1.2rem}
  .topnav{display:flex;gap:.3rem;flex:1}
  .topnav a{display:flex;align-items:center;gap:.4rem;color:#fff;text-decoration:none;padding:.55rem .9rem;border-radius:10px;font-size:.98rem}
  .topnav a.active{background:rgba(255,255,255,.2);font-weight:700}
  .links{order:2}
  .topbar .logout{order:3;margin-left:.4rem}
  .links{display:flex;position:static;flex-direction:row;flex-wrap:wrap;background:none;border:0;box-shadow:none;max-height:none;overflow:visible}
  .links a{color:#fff;border:0;padding:.5rem .7rem;font-size:.92rem;border-radius:8px}
  .links a.active{background:rgba(255,255,255,.18);color:#fff}
  .topbar{padding-left:1.2rem;padding-right:1.2rem}
  main{padding-top:1.4rem}
  .tiles{grid-template-columns:repeat(4,1fr)}
  .tiles.small{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .filters{display:flex;flex-wrap:wrap}
  .filters select,.filters input,.filters button{width:auto}
  input,select,textarea,button{min-height:42px}
  button.big{min-height:48px}
}

/* v32: phone home screen. Icon above the label so words never break mid-word. */
html{touch-action:manipulation}
.hero{min-height:0;padding:.9rem 1rem;margin-bottom:.8rem;border-radius:18px}
.hero img{max-width:46%;max-height:96px}
.hero .cake{width:38px;height:38px;right:10px;top:8px}
.hero .b1{width:90px;height:90px;left:-42px;bottom:-34px}
.hero .b2{width:64px;height:64px;left:-24px;top:-30px}
.hero .b3{width:72px;height:72px;right:-26px;bottom:-34px}
.greet{font-size:1.3rem;margin:.1rem 0 .1rem}
.greet svg{width:34px;height:34px}
.role-line{margin:0 0 .8rem}
.menu-grid{gap:.6rem}
.mtile{position:relative;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.55rem;
  padding:.85rem .8rem;min-height:104px;user-select:none;-webkit-user-select:none}
.mtile:active{background:var(--soft)}
.mtile .ico{width:46px;height:46px}
.mtile .lbl{overflow-wrap:break-word;word-break:normal;hyphens:none;font-size:1rem;line-height:1.2;width:100%}
.mtile .chev{display:none}
.mtile .badge{position:absolute;top:10px;right:10px;margin:0}
.dash-bar{margin-top:.6rem}
.dash-bar .chev{display:block}
.manage{margin:1.2rem 0 .5rem}
@media (max-width:340px){.menu-grid{grid-template-columns:minmax(0,1fr)}.mtile{flex-direction:row;align-items:center;min-height:68px}}

/* v38: incoming-transfer alert */
.dm-toast{position:fixed;left:.75rem;right:.75rem;top:calc(.75rem + env(safe-area-inset-top));z-index:60;background:#E8963A;color:#fff;
  padding:.9rem 1rem;border-radius:14px;font-weight:700;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.28)}

/* v39: sortable column headings (Products) */
.sortable-head th[data-sort]{cursor:pointer;user-select:none;white-space:nowrap}
.sortable-head th[data-sort]::after{content:" \2195";color:#c3bcae;font-size:.85em}
.sortable-head th[data-sort][data-arrow]:not([data-arrow=""])::after{content:" " attr(data-arrow);color:var(--brand)}
.sortable-head th[data-sort]:hover{color:var(--brand)}

/* v41: drag and drop in the Products list */
#product-table .dh{display:none !important}
#product-table.dragging .dh{display:table-cell !important;touch-action:none;cursor:grab;user-select:none;color:#9a9a9a;
  font-size:1.5rem;text-align:center;width:2.4rem}
#product-table tr.drag-row{background:#fff7e6;box-shadow:0 6px 18px rgba(0,0,0,.22);position:relative;z-index:5}
button.on{background:#2E7D32}
@media (max-width:640px){#product-table.dragging .dh{display:flex !important;justify-content:flex-end}}

/* v47: Staff page cards */
.ugrid{display:grid;gap:.7rem}
@media (min-width:700px){.ugrid{grid-template-columns:1fr 1fr}}
.ucard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:.8rem .9rem;display:grid;gap:.5rem;align-content:start}
.ucard.off{opacity:.72}
.uhead{display:flex;justify-content:space-between;align-items:flex-start;gap:.6rem}
.uhead .tag{font-size:.75rem;white-space:nowrap;padding:.2rem .55rem}
.umeta{display:flex;flex-wrap:wrap;gap:.15rem .9rem;color:#777;font-size:.88rem}
.uman summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;min-height:42px;padding:.4rem 1rem;border-radius:10px;
  border:1px solid var(--brand);color:var(--brand);font-weight:700;user-select:none}
.uman summary::-webkit-details-marker{display:none}
.uman[open] summary{background:var(--soft)}
.ufrm{display:grid;gap:.6rem;margin-top:.8rem;padding-top:.8rem;border-top:1px solid var(--line)}
button.danger{background:#B3261E}

/* v51: icon-only row buttons (Products). Same size, icon centred, name in the tooltip / screen-reader label. */
.racts{display:flex;gap:.45rem;align-items:center}
.racts form{margin:0}
.ibtn,button.ibtn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-height:40px;padding:0;
  border-radius:10px;border:1px solid #d6cfc1;background:#fff;color:var(--ink);cursor:pointer;text-decoration:none;line-height:1}
.ibtn svg{width:22px;height:22px;stroke-width:2.2;display:block}
.ibtn:hover,button.ibtn:hover{background:var(--soft)}
.ibtn:active,button.ibtn:active{filter:none;background:#eadfd0}
.ibtn.off,button.ibtn.off{color:#E5384F;border-color:#efc9cd}
.ibtn.off:hover,button.ibtn.off:hover{background:#fde8e8}
.ibtn.on,button.ibtn.on{color:#2E7D32;border-color:#bcdcc0}
.ibtn.on:hover,button.ibtn.on:hover{background:#e6f4ea}

/* v53: on phones the icon buttons carry their word too (there is no hover tooltip on a touch screen) */
.ibtn .lbl{display:none;font-size:.88rem;font-weight:700;white-space:nowrap}
@media (max-width:699px){
  .ibtn,button.ibtn{width:auto;padding:0 .85rem;gap:.45rem}
  .ibtn .lbl{display:inline}
}

/* v55: Products toolbar: the three buttons sit on one line */
.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 .9rem}
.toolbar .btn{margin:0;cursor:pointer;width:auto;font:inherit;font-weight:700;font-size:.95rem;min-height:46px}
.panel[hidden]{display:none}
.panel{margin:0 0 1rem}

/* v56: wastage lines */
.wline{margin-bottom:.7rem}
.wl-head{display:flex;justify-content:space-between;align-items:center}
.wl-row{display:grid;grid-template-columns:1fr 1.5fr;gap:.6rem}

/* v58: notification bell (right of the top bar) and a smaller pop-up */
.bell{position:relative;display:grid;place-items:center;flex:none;width:46px;height:46px;min-height:46px;padding:0;background:transparent;color:#fff;border:0;border-radius:12px;cursor:pointer}
.bell:active{filter:none;background:rgba(255,255,255,.15)}
.bell svg{width:26px;height:26px}
.bell .bn{position:absolute;top:3px;right:2px;min-width:18px;height:18px;border-radius:999px;background:#E8963A;color:#fff;
  font:700 .7rem/18px system-ui,sans-serif;text-align:center;padding:0 4px;font-style:normal;border:2px solid var(--brand);box-sizing:content-box}
.bell .bn[hidden]{display:none}
.bell-panel{position:absolute;top:calc(100% + 6px);right:.6rem;width:min(330px,calc(100vw - 1.2rem));max-height:70vh;overflow:auto;
  background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 30px rgba(0,0,0,.22);padding:.4rem;z-index:41}
.bell-panel[hidden]{display:none}
.bell-panel .bh{padding:.55rem .8rem;font-weight:700;border-bottom:1px solid var(--line);margin-bottom:.3rem}
.bell-panel .none{padding:.9rem .8rem;color:#777}
.bell-panel a.bi{display:block;padding:.6rem .8rem;border-radius:10px;color:var(--ink);text-decoration:none;background:#f8f6f0;border-left:4px solid #3B82C4;margin:.25rem 0}
.bell-panel a.bi b{display:block;font-size:.92rem}
.bell-panel a.bi span{display:block;font-size:.82rem;color:#666;margin-top:.1rem}
.bell-panel a.bi.red{border-left-color:#B3261E}
.bell-panel a.bi.amber{border-left-color:#E8963A}
.dm-toast{left:auto;right:.6rem;top:calc(3.8rem + env(safe-area-inset-top));max-width:240px;padding:.5rem .75rem;font-size:.82rem;font-weight:600;line-height:1.25;border-radius:12px;box-shadow:0 4px 14px rgba(0,0,0,.25)}

/* v59: minus / plus stepper next to a quantity box */
.stp{display:inline-flex;gap:.3rem;align-items:center}
.stp input{width:4.8rem}
/* Every quantity / number box shows its number in the middle (v88). */
input[inputmode=numeric],input[inputmode=decimal],input[type=number],.stp input,input[name^="q["],input[name^="r["],input[name^="s["],input[name^="quantity"],input[name$="_qty"],input[name=oven_temp],input[name=baking_time]{text-align:center}
.stp button{min-width:40px;min-height:44px;padding:0 .5rem;font-size:1.2rem;line-height:1}

/* Orders page (v90) */
.ord{gap:.4rem;margin-bottom:.6rem}
.ord.done{opacity:.6}
.ord-top{display:flex;justify-content:space-between;align-items:center;gap:.6rem}
.ord-items{font-weight:600}
.ord-sum{margin-bottom:.9rem}
.ord-tot{font-size:1.5rem;font-weight:800}
.ord-date{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-bottom:.9rem}
.ord-date input[type=date]{width:auto}
.shop-chip{font-style:normal;font-weight:700;font-size:.78rem;padding:.12rem .5rem;border-radius:6px;color:#1A1714;box-shadow:inset 0 0 0 1px rgba(0,0,0,.28)}
.shop-dot{display:inline-block;width:.7rem;height:.7rem;border-radius:50%;margin-right:.3rem;box-shadow:inset 0 0 0 1px rgba(0,0,0,.3)}
.ord-key{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 .8rem}
