:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #192d25; background: #f4f4ed; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 58rem; margin: auto; padding: 1rem; }
header { position: sticky; top: 0; z-index: 5; background: #153e31; color: #fff; }
section { scroll-margin-top: 7rem; }
header h1 { margin: 0 0 .5rem; }
nav, .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
header a { color: #eef6ef; }
button, .action { font: inherit; font-weight: 650; background: #205b48; color: #fff; border: 1px solid #205b48; border-radius: .55rem; padding: .6rem .85rem; cursor: pointer; text-decoration: none; display: inline-block; }
button:not(:disabled):hover, .action:hover { background: #123e30; }
:focus-visible { outline: 3px solid #be751f; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: default; }
.panel, dialog { background: #fff; border: 1px solid #d7e1d7; border-radius: 1rem; padding: 1rem; margin-block: 1rem; }
.panel h2, dialog h2 { margin-top: 0; }
dialog { margin: auto; width: min(32rem, calc(100% - 2rem)); max-height: 90dvh; }
dialog::backdrop { background: #102a22a8; }
label { display: block; margin: .5rem 0; }
input:not([type=radio],[type=checkbox]) { font: inherit; width: 100%; padding: .55rem; border: 1px solid #91aa9b; border-radius: .4rem; }
fieldset { border: 1px solid #d7e1d7; border-radius: .5rem; margin: .5rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem; }
.product { background: #fff; color: #153e31; border-color: #d7e1d7; text-align: left; }
.product:not(:disabled):hover { background: #e7f2e9; }
.product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .4rem; }
.product span { display: block; }
ul { padding-inline-start: 1.3rem; }
li { margin: .4rem 0; }
.line-tail { margin-inline-start: .55rem; }
.order + .order { border-top: 1px solid #d7e1d7; margin-top: .8rem; padding-top: .8rem; }
.state { display: inline-block; border-radius: .45rem; padding: .12rem .45rem; background: #f7ebce; }
.ready { background: #def0e3; }
.cancelled { background: #f8e2e0; }
.qr { width: min(10rem, 100%); display: block; }
@media print {
  body { background: #fff; }
  header, .no-print, #status, button, a { display: none !important; }
  .panel { break-inside: avoid; }
}
