/* Menu Studio shares the till's categories and keeps editing beside the list. */
.pm-shell{--pm-bg:var(--surface,#171827);--pm-soft:var(--surface-2,#202134);--pm-border:var(--border,#38394c);--pm-muted:var(--muted,var(--text-muted,#a8abc2));--pm-purple:#9675ef;display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--text,#f1edff);height:100%;box-sizing:border-box;padding:6px}
.pm-header,.pm-actions,.pm-event{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.pm-header{flex:none;padding:6px 2px}.pm-header small,.pm-panel-title small,.pm-stock-shortcut>small{font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--pm-muted)}.pm-header h2{margin:4px 0 0;font-size:24px;letter-spacing:-.04em}.pm-header h2 span{font-size:12px;color:var(--pm-muted);font-weight:500;letter-spacing:0;margin-inline-start:8px}.pm-shell .action-btn{min-height:40px;padding:8px 12px;border-radius:10px;border:1px solid var(--pm-border);background:var(--pm-bg);color:inherit;box-shadow:none;touch-action:manipulation;font-size:12px}.pm-shell .action-btn:hover{border-color:var(--pm-purple);background:color-mix(in srgb,var(--pm-purple) 9%,var(--pm-bg))}.pm-shell :is(.action-btn.primary,[data-pm-action=new]){background:#7043ce;color:#fff;border-color:#7043ce}.pm-shell button:focus-visible,.pm-shell input:focus-visible,.pm-shell select:focus-visible{outline:2px solid var(--pm-purple);outline-offset:2px}.pm-shell button[aria-label]{min-width:40px}.pm-shell button:disabled{opacity:.5;cursor:wait}
.pm-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(310px,1fr);gap:16px}.pm-card{padding:20px;background:var(--pm-bg);border:1px solid var(--pm-border);border-radius:18px;min-width:0;box-shadow:0 3px 18px #15073704}.pm-catalogue{display:flex;flex-direction:column;min-height:0;padding:16px 12px 10px}.pm-list-tools{display:flex;gap:8px;padding:0 4px}.pm-list-tools>.pm-search{flex:1}.pm-list-tools>select{width:auto;max-width:145px}.pm-shell label{display:grid;gap:7px;font-size:12px;font-weight:550;color:inherit;min-width:0}.pm-shell input,.pm-shell select{width:100%;min-height:42px;border:1px solid var(--pm-border);border-radius:10px;background:var(--pm-soft);color:inherit;font:inherit;padding:10px 11px;min-width:0;box-sizing:border-box}.pm-shell select option{background:var(--pm-bg);color:inherit}.pm-category-bar{display:flex;gap:8px;align-items:center;margin:14px 4px 8px;min-width:0}.pm-category-bar nav{display:flex;overflow-x:auto;gap:6px;flex:1;min-width:0;padding:2px}.pm-category-bar nav button{flex:none;white-space:nowrap;min-height:36px}.pm-category-bar button[aria-pressed=true]{background:color-mix(in srgb,var(--pm-purple) 17%,var(--pm-bg));border-color:var(--pm-purple)}.pm-category-bar>[data-pm-action=categories]{font-size:11px;flex:none}
.pm-table-scroll{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}.pm-table{width:100%;border-collapse:separate;border-spacing:0 5px;text-align:left;font-size:13px}.pm-table th{position:sticky;top:0;background:var(--pm-bg);z-index:1;font-size:10px;color:var(--pm-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em}.pm-table td,.pm-table th{padding:11px 8px;vertical-align:middle}.pm-table td{border-bottom:1px solid var(--pm-border)}.pm-table td:first-child{border-radius:12px 0 0 12px;min-width:0}.pm-table td:last-child{border-radius:0 12px 12px 0}.pm-table tr.pm-selected td{background:color-mix(in srgb,var(--pm-purple) 13%,var(--pm-bg));border-bottom-color:transparent}.pm-product-cell{display:flex;gap:10px;align-items:center}.pm-product-cell>div{min-width:0}.pm-avatar{display:grid;place-items:center;width:38px;height:40px;border-radius:11px;background:color-mix(in srgb,var(--pm-color,#8175db) 18%,var(--pm-bg));color:var(--text);font-size:12px;font-weight:750;flex:none}.pm-product-name{border:0;background:none;color:inherit;text-align:start;font:inherit;font-weight:650;padding:4px 0;cursor:pointer;overflow-wrap:anywhere;min-height:32px}.pm-product-name:hover{text-decoration:underline}.pm-table small,.pm-preview small{display:block;color:var(--pm-muted);font-size:11px;font-weight:400;margin-top:4px;overflow-wrap:anywhere}.pm-price{white-space:nowrap;font-weight:650;font-variant-numeric:tabular-nums}.pm-table .pm-actions{justify-content:flex-end;gap:4px;flex-wrap:nowrap}.pm-table .action-btn{min-height:36px;padding:7px 8px;font-size:11px}.pm-table [data-pm-action=delete]{color:var(--pm-muted)}.pm-list-footer{display:flex;justify-content:space-between;color:var(--pm-muted);font-size:11px;flex:none;border-top:1px solid var(--pm-border);padding:12px 4px 2px;margin-top:4px}.pm-empty-list{text-align:center;padding:45px 12px!important}.pm-empty-list p{font-size:12px;color:var(--pm-muted)}
.pm-inspector{min-height:0;overflow:auto;overscroll-behavior:contain}.pm-inspector>.pm-card{min-height:100%;box-sizing:border-box}.pm-panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.pm-panel-title h3{font-size:20px;letter-spacing:-.03em;margin:5px 0 0}.pm-panel-title>.action-btn{font-size:22px;padding:0;min-width:36px;min-height:36px}.pm-preview{display:flex;gap:10px;align-items:center;background:var(--pm-soft);border:1px solid var(--pm-border);border-radius:13px;padding:12px;margin-bottom:20px}.pm-preview>div{flex:1;min-width:0}.pm-preview strong{overflow-wrap:anywhere;font-size:14px}.pm-preview b{font-size:14px;color:var(--pm-purple);white-space:nowrap}.pm-form{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:15px 12px}.pm-form h4,.pm-form>.pm-note,.pm-form>.pm-actions,.pm-category-field,.pm-stock-shortcut,.pm-availability,.pm-editor-footer,.pm-confirm{grid-column:1/-1}.pm-category-field>span{display:flex;gap:8px}.pm-category-field select{flex:1}.pm-category-field .action-btn{flex:none}.pm-form label:has([name=tax_reason]){grid-column:1/-1}.pm-shell .pm-check{display:flex;align-items:center;gap:10px}.pm-check input{width:18px;min-height:18px;height:18px;accent-color:#8257da;flex:none}.pm-availability{padding:8px 0;font-weight:400!important}.pm-stock-shortcut{display:grid;gap:7px;border-top:1px solid var(--pm-border);padding-top:16px;margin-top:3px}.pm-stock-shortcut button{text-align:start;white-space:normal}.pm-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--pm-border);padding-top:18px;margin-top:6px}.pm-shell :is([data-pm-action=delete-confirm],.pm-editor-footer [data-pm-action=delete]){color:#df5875;border-color:#df587555;background:#df58750a}.pm-note{color:var(--pm-muted);font-size:12px;line-height:1.6;margin:4px 0 16px}.pm-inspector-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px}.pm-inspector-empty h3,.pm-inspector-empty p{margin:0}.pm-inspector-empty p{max-width:240px;color:var(--pm-muted);font-size:13px;line-height:1.6}.pm-inspector-empty>small{color:var(--pm-muted);font-size:11px}.pm-empty-icon{display:grid;place-items:center;width:64px;height:64px;background:var(--pm-soft);color:var(--pm-purple);border-radius:18px;font-size:32px;margin-bottom:8px}
.pm-category-list{margin-bottom:18px}.pm-category-row{display:flex;align-items:center;gap:7px;min-height:58px;border-bottom:1px solid var(--pm-border);font-size:12px}.pm-category-row strong{flex:1;overflow-wrap:anywhere}.pm-category-row small{color:var(--pm-muted)}.pm-category-row .action-btn{padding:6px 8px;font-size:11px;min-height:36px}.pm-dot{width:10px;height:10px;border-radius:50%;background:var(--pm-color);flex:none}.pm-confirm{background:#de557410;border:1px solid #df587555;border-radius:12px;padding:12px;font-size:12px}.pm-confirm p{line-height:1.5;color:var(--pm-muted);margin:6px 0 12px}.pm-confirm .action-btn{margin:3px}.pm-form input[type=color]{padding:5px;height:42px}.pm-import-list{display:grid;gap:10px;max-height:55dvh;overflow:auto;padding:2px}.pm-import-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 0;border-bottom:1px solid var(--pm-border)}.pm-import-row>.pm-check{grid-column:1/-1}.pm-check small{display:block;color:var(--pm-muted);font-size:11px;margin-top:4px}.pm-import-list+.pm-actions{margin-top:16px}.pm-error{flex:none;border:1px solid #b64a66;border-radius:10px;background:#68213b22;padding:12px;margin:0;font-size:13px;overflow-wrap:anywhere}.pm-event{border-top:1px solid var(--pm-border);padding:14px 0}.pm-event p{color:var(--pm-muted);font-size:13px}.pm-event>div{min-width:0;flex:1;overflow-wrap:anywhere}
html[data-theme=light] .pm-shell,body.light .pm-shell{--pm-bg:#fff;--pm-soft:#f8f7fc;--pm-border:#e7e3f0;--pm-muted:#6f6b80;--pm-purple:#7043ce;color:#272239}.pm-shell[data-pm-mode=inventory]{height:auto;min-height:600px}.pm-shell[data-pm-mode=inventory] .pm-workspace{min-height:480px;max-height:75dvh}
@media(max-width:1100px){.pm-workspace{grid-template-columns:minmax(0,1.15fr) minmax(285px,1fr);gap:10px}.pm-card{padding:16px}.pm-catalogue{padding:12px 8px 8px}.pm-table .pm-actions{flex-wrap:wrap}.pm-table td,.pm-table th{padding:8px 5px}.pm-header h2 span{display:block;margin:4px 0 0}}
@media(max-width:760px){.pm-shell{gap:10px;padding:0;position:relative}.pm-header{gap:8px}.pm-header h2{font-size:21px}.pm-header>.pm-actions{gap:5px}.pm-header .action-btn{padding:8px;font-size:11px}.pm-workspace{display:flex;flex-direction:column;position:relative;gap:0}.pm-catalogue{flex:1}.pm-inspector{display:none}.pm-inspector-open>.pm-inspector{position:absolute;inset:0;z-index:3;display:block;border-radius:18px;background:var(--pm-bg);box-shadow:0 4px 22px #25103c22}.pm-inspector-open>.pm-inspector>.pm-card{border:1px solid var(--pm-border)}.pm-form{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.pm-table .pm-actions{flex-direction:column;align-items:stretch}.pm-table .pm-actions .action-btn{min-height:40px}.pm-table th:last-child{width:60px}.pm-avatar{width:32px;height:36px}.pm-product-cell{gap:7px}.pm-category-bar{gap:4px}.pm-category-bar>[data-pm-action=categories]{font-size:10px;padding:7px}.pm-list-tools>select{max-width:112px;font-size:11px}.pm-table-scroll{min-height:140px}.pm-shell[data-pm-mode=inventory]{height:75dvh;min-height:500px}.pm-shell[data-pm-mode=inventory] .pm-workspace{max-height:none;min-height:0}.pm-editor-footer{position:sticky;bottom:-16px;background:var(--pm-bg);padding-bottom:12px}.pm-panel-title{margin-bottom:12px}}
