
:root{--red:#dc293a;--navy:#171c32;--muted:#7d8496;--bg:#f5f6fa;--line:#e8eaf1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#22283a;font:14px Tahoma,Arial}button,input,select,textarea{font:inherit}button{cursor:pointer}aside{width:248px;background:var(--navy);color:white;position:fixed;right:0;top:0;bottom:0;padding:24px 16px;overflow:auto}.logo{font-size:24px;font-weight:bold;padding:10px 12px 30px}.logo b{color:#ff6877}.nav{display:block;width:100%;background:none;border:0;color:#d0d3e1;text-align:right;padding:14px 16px;border-radius:12px;margin-bottom:5px}.nav.active,.nav:hover{background:#323851;color:white}.pill{display:inline-block;background:#ffe9ed;color:#c21c37;padding:6px 12px;border-radius:30px;font-size:12px}.shell{margin-right:248px;padding:30px;max-width:1700px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.top h1{font-size:25px;margin:0 0 9px}.top small{color:var(--muted)}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:22px;margin-bottom:20px;box-shadow:0 8px 24px #151b3010}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat strong{font-size:25px;display:block;margin:13px 0}.stat small,.muted{color:var(--muted)}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}h2{font-size:18px;margin:0 0 20px}table{border-collapse:collapse;width:100%;text-align:right}th,td{padding:15px 10px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:normal}.btn{border:0;border-radius:10px;padding:11px 15px;background:#eef0f5;color:#22283a}.btn.red{background:var(--red);color:white}.btn.green{background:#e5f7eb;color:#147c41}input,select,textarea{background:white;border:1px solid #dfe2eb;border-radius:10px;padding:11px;max-width:100%}.field{display:grid;gap:8px;min-width:170px}.section{display:none}.section.active{display:block}.tag{border-radius:20px;padding:6px 10px;background:#fff2df;color:#9c6414}.tag.done{background:#e3f8ea;color:#137840}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.notice{background:#fff3d8;border:1px solid #f6dda0;padding:14px;border-radius:12px;line-height:2;margin-bottom:20px}.preview{border:1px solid #eee;border-radius:14px;padding:18px;max-width:320px}.preview.closed{filter:grayscale(1);opacity:.65}.hide{display:none}ul{line-height:2.4}.week{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.day{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;padding:10px}@media(max-width:950px){aside{width:70px;padding:12px 5px}.logo{font-size:12px;padding:12px 3px}.nav{font-size:0;text-align:center}.nav span{font-size:21px}.shell{margin-right:70px;padding:15px}.grid,.two{grid-template-columns:1fr 1fr}}@media(max-width:600px){.grid,.two,.week{grid-template-columns:1fr}.top{align-items:flex-start;flex-direction:column}table{font-size:12px}th,td{padding:10px 5px}}

[hidden]{display:none!important}fieldset{border:0;padding:0;margin:0;min-width:0}button:disabled,fieldset:disabled{opacity:.55;cursor:not-allowed}.login{max-width:430px;margin:9vh auto;padding:30px}.login .logo{color:var(--navy);padding:0 0 20px}.login .field{margin:20px 0}.login input{width:100%;direction:ltr}.login h1{font-size:23px}p{line-height:1.9}small{line-height:1.8}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.formgrid .field{min-width:0}.field input,.field select,.field textarea{width:100%}.span2{grid-column:1/-1}.form-title{margin-top:25px}.menu-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line)}.menu-row small{display:block;color:var(--muted)}.menu-actions{display:flex;gap:8px;flex-wrap:wrap}.menu-row img{width:65px;height:65px;object-fit:cover;border-radius:10px}.primary{background:var(--red);color:white}.danger{color:#b12636}.rest-card{border:1px solid var(--line);border-radius:14px;padding:18px;margin-top:16px}.rest-head,.rest-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.rest-actions{margin-top:16px;justify-content:flex-start}.rest-items{background:var(--bg);padding:14px;border-radius:12px;line-height:2}.rest-line{padding:10px 0;overflow-wrap:anywhere}.rest-timer{font-weight:bold;color:var(--red)}.error{color:#b12636}.toast{position:fixed;bottom:20px;left:20px;right:20px;margin:auto;max-width:550px;padding:16px;background:var(--navy);color:white;border-radius:12px;z-index:100}.shell,.card,.two>*{min-width:0}dialog{border:0;border-radius:18px;padding:24px;max-width:min(450px,90vw);width:100%}dialog::backdrop{background:#171c3288}dialog .field{margin-bottom:16px}#foodPhotoPreview{max-width:180px!important}input[type=file]{width:100%}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #dc293a80;outline-offset:3px}@media(max-width:600px){.formgrid{grid-template-columns:1fr}.login{margin:5vh 15px}.rest-actions .btn{width:100%}.shell{padding:15px}.menu-actions{width:100%}.btn{max-width:100%}}

.table-scroll{overflow-x:auto}table{min-width:510px}.table-scroll td{overflow-wrap:anywhere}fieldset:disabled button{cursor:not-allowed}
/* Restaurant authentication and feature dialogs */
.brand-logo{width:140px;height:80px;object-fit:contain;max-width:100%}.logo{padding:0 0 20px}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;margin-left:9px;flex-shrink:0}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.auth-form{width:100%;max-width:580px;justify-self:center;padding:50px 48px;align-self:center;animation:formEnter .3s ease}.auth-form h1{font-size:26px;line-height:1.8}.auth-form .eyebrow{color:var(--red);font-weight:500}.auth-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding:12px 0;margin:20px 0}.auth-tabs .btn{flex:1}.auth-form form>.btn{width:100%;min-height:48px}.auth-brand{background:#d92338;color:#fff;display:grid;place-items:center;text-align:center;padding:50px;min-width:0}.auth-brand h2{font-size:34px;margin:26px 0}.auth-brand p{line-height:2.2;opacity:.9}.auth-brand .brand-logo{background:white;border-radius:20px;width:180px;height:110px;padding:12px}.brand-art{margin:35px auto;max-width:240px;border:1px solid #ffffff40;border-radius:40px;background:#ffffff12}.brand-art svg{width:100%;stroke:white;fill:none;stroke-width:4;stroke-linecap:round}.pending-panel{max-width:760px;margin:35px auto}.category-editor{background:#f7f8fb;padding:16px;border-radius:12px;margin-bottom:20px}.category-editor input{min-width:0;flex:1}.category-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.category-row b{flex:1}.weekly-row{display:grid;grid-template-columns:80px 1fr 1fr 1fr;align-items:center;gap:8px;margin:12px 0}.weekly-row input{width:100%;min-width:0}.ticket,.message{border:1px solid var(--line);padding:16px;border-radius:12px;margin:14px 0;overflow-wrap:anywhere}.message.unread{border-right:4px solid var(--red)}.reply{background:#f6f7fa;border-radius:10px;padding:12px;margin:10px 0;white-space:pre-wrap}.reply.admin{border-right:3px solid var(--red)}.ticket textarea{width:100%}dialog{width:min(700px,calc(100vw - 24px));max-height:90vh;overflow:auto;box-sizing:border-box}#foodDialog .formgrid{grid-template-columns:1fr 1fr}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:18px 0}.calendar-grid button{min-height:40px;padding:4px}.calendar-grid .selected{background:var(--red);color:white}.report-totals{display:flex;gap:20px;flex-wrap:wrap;margin:20px 0}.report-totals strong{display:block;font-size:22px}.muted,small{line-height:1.8}textarea{resize:vertical;min-height:85px}.nav{white-space:normal}.nav .icon{display:inline-block}.auth-layout[hidden]{display:none}.auth-form form:not([hidden]){animation:formEnter .25s ease}@keyframes formEnter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:950px){aside .logo{padding-top:8px}aside .brand-logo{height:42px;width:48px}aside .nav{font-size:0}aside .nav .icon{margin:0;width:22px;height:22px}}@media(max-width:700px){.auth-layout{grid-template-columns:1fr}.auth-brand{order:-1;padding:25px 20px}.auth-brand h2{font-size:23px;margin:12px 0}.auth-brand p,.auth-brand small,.brand-art{display:none}.auth-brand .brand-logo{width:135px;height:70px}.auth-form{padding:26px 22px}.auth-form h1{font-size:22px}.pending-panel{margin:12px}.weekly-row{grid-template-columns:65px 1fr 1fr}.weekly-row label:last-child{grid-column:2/4}#foodDialog .formgrid{grid-template-columns:1fr}#foodDialog .span2{grid-column:auto}.category-row .btn{padding:8px}.calendar-grid{gap:3px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
#hours .two{grid-template-columns:minmax(0,1fr)}.weekly-row{grid-template-columns:90px minmax(0,1fr) minmax(0,1fr) minmax(60px,1fr)}.weekly-row label{min-width:0}.weekly-row input[type=checkbox]{width:auto}.auth-form .field{min-width:0;margin:16px 0}.auth-form input{width:100%;direction:ltr}.btn.danger{background:#ffe8eb;color:#b12636}@media(max-width:600px){.weekly-row{grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--line);padding-bottom:12px}.weekly-row>b,.weekly-row label:last-child{grid-column:1/-1}.weekly-row input{padding:6px 2px}}@media(max-width:380px){.weekly-row{grid-template-columns:minmax(0,1fr)}.weekly-row label:last-child{grid-column:auto}}
.menu-actions .icon,.category-row .icon{width:17px;height:17px;margin:0}
