:root{font-family:'DM Sans',Arial,sans-serif;color:#211d1c;background:#f5f5f4;font-size:16px;--wine:#381216;--gold:#b27e29;--line:#dcdad7}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:inherit}button,input,select,textarea{border:1px solid #bdb9b5;border-radius:5px}button{min-height:44px;padding:.65rem 1rem;background:#fff;color:#211d1c;font-weight:600}input,select,textarea{width:100%;min-height:44px;padding:.65rem;background:#fff;color:#211d1c}input[type=checkbox]{width:19px;min-height:19px;accent-color:var(--wine)}label{display:flex;flex-direction:column;gap:.45rem;font-size:.875rem;font-weight:600}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bb8639;outline-offset:3px}h1{font-family:Georgia,serif;font-weight:400;font-size:2.55rem;line-height:1.15;margin:.5rem 0}h2{font-family:Georgia,serif;font-size:1.75rem;font-weight:400}.staff-header{padding:1.2rem 4vw;background:var(--wine);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:1rem}.wordmark{text-decoration:none;font-family:Georgia,serif;font-size:1.55rem;letter-spacing:.16em}.wordmark span{font:12px Arial,sans-serif;display:block;letter-spacing:.25em;margin-top:.3rem}.staff-account{display:flex;align-items:center;gap:1.25rem;font-size:.875rem}.staff-account>span{color:#e4d5c0}main{max-width:1440px;margin:auto;padding:2.3rem 4vw 4rem}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.6rem}.eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.15em;color:#715325;margin:0}.muted,.help{color:#625d58;font-size:.875rem}.departments{display:flex;gap:.75rem;margin-bottom:1.5rem}.departments button{min-width:210px;text-align:left;border:1px solid #cac5be;padding:.85rem 1.15rem;font-size:1.1rem}.departments button span{display:block;font-size:.875rem;font-weight:400;margin-top:.3rem}.departments [aria-selected=true]{background:var(--wine);color:#fff;border-color:var(--wine)}.worksheet-meta,.toolbar{display:flex;gap:1rem;align-items:end;flex-wrap:wrap}.worksheet-meta{padding:1.3rem;background:#fff;border:1px solid var(--line);border-radius:8px;margin-bottom:1.5rem}.worksheet-meta label{flex:1;min-width:155px}.worksheet-meta .history-field{flex:1.4}.toolbar{margin-bottom:.9rem}.search-label{flex:1.6;min-width:190px}.toolbar>label:not(.search-label){flex:1;min-width:170px}.checkbox{flex-direction:row;align-items:center;min-height:44px;font-weight:400}.progress-box{min-width:160px;font-size:.875rem}progress{width:100%;height:9px;margin-top:.6rem;accent-color:var(--wine)}.help{line-height:1.5;margin:.85rem 0 1.1rem}.table-wrap{border:1px solid var(--line);border-radius:8px;overflow:auto;background:#fff}table{width:100%;border-collapse:collapse;table-layout:fixed}th{font-size:.875rem;text-align:left;background:#262321;color:#fff;font-weight:600;padding:.95rem .75rem}th:first-child{width:34%}th:nth-child(2){width:12%}th:last-child{width:10%}td{padding:.8rem .65rem;border-top:1px solid #e5e2de;vertical-align:middle}td input,td select{padding:.55rem .4rem;min-width:0;background:#fffcf4}.item-name{font-size:1rem;font-weight:600;line-height:1.35}.item-category{display:block;font-size:.8rem;color:#736e67;margin-top:.3rem}.to-order{font-weight:600;display:block;text-align:center}.to-order.needed{color:#814e05;background:#fff0d0;padding:.55rem .25rem;border-radius:4px}.detail-button{font-size:.875rem;padding:.5rem .6rem;width:100%}.count-notes{margin-top:1.25rem}.save-bar{position:sticky;bottom:0;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 -4px 18px #00000007;padding:1rem 1.15rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.25rem}.save-bar p{margin:.3rem 0 0;color:#625d58;font-size:.875rem}.actions{display:flex;flex-wrap:wrap;gap:.65rem}.primary{background:var(--wine);border-color:var(--wine);color:#fff}.primary:hover{background:#542027}.secondary:hover{background:#f1efeb}#message:empty{display:none}#message{background:#fff3d9;border:1px solid #ddbd83;border-radius:6px;padding:1rem;margin-bottom:1rem;line-height:1.5}#message.error{background:#fff0ef;border-color:#c98983;color:#81291f}#message.success{background:#f2f7f2;border-color:#b1c7b2;color:#2d5738}dialog{width:min(560px,94vw);max-height:88svh;overflow:auto;border:1px solid #c7c1b7;border-radius:12px;padding:1.7rem}dialog::backdrop{background:#170c0c99}.detail-grid{display:grid;gap:1.1rem;margin:1.2rem 0}.close{float:right}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.empty{padding:2rem;text-align:center;color:#655f59}.access-card{max-width:560px;margin:7vh auto;padding:2.2rem;background:#fff;border:1px solid var(--line);border-radius:8px;line-height:1.6}.access-card .primary{display:inline-block;text-decoration:none;padding:.8rem 1.2rem;border-radius:5px}.readonly input,.readonly select,.readonly textarea{background:#f4f4f3}
@media(max-width:820px){main{padding:1.5rem 1rem 2rem}.staff-header{padding:1rem}.staff-account>span{display:none}.page-heading{align-items:start;flex-direction:column}h1{font-size:2rem}.departments button{min-width:0;flex:1}.save-bar{flex-direction:column;align-items:stretch;position:static}.actions>*{flex:1}.progress-box{flex:1}.worksheet-meta{padding:1rem}.table-wrap{overflow:visible;border:0;background:transparent}table,tbody,tr,td{display:block}thead{display:none}tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:8px;margin-bottom:.7rem}td{border:0;padding:0}td:first-child{grid-column:1/3}td:nth-child(2){grid-column:3}td:nth-child(n+3):nth-child(-n+5)::before{content:attr(data-label);display:block;font-size:.8rem;color:#5e5852;margin-bottom:.4rem}td:last-child{grid-column:1/-1}.detail-button{width:auto}.to-order{min-height:44px;display:flex;align-items:center;justify-content:center}.item-category{margin-bottom:.4rem}.empty{display:block}.count-notes textarea{font-size:1rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
