/* Cardápio: reuses clients.css tokens, buttons and side drawer. */
.catalog-view svg{width:16px;height:16px;flex-shrink:0}
.catalog-view button{font:inherit;cursor:pointer}
.catalog-view button:disabled{cursor:default;opacity:.4}
.catalog-view :is(button,input,a,select):focus-visible,.catalog-dialog :is(button,input,select,textarea,label):focus-visible{outline:3px solid #c90015;outline-offset:2px}
.catalog-loading{color:#7b7e89;padding:40px 0}
.catalog-intro-actions{display:flex;gap:10px;flex-wrap:wrap}
.catalog-intro-actions a{text-decoration:none}
/* Same buttons in the page top bar (connected app), outside .clients-view. */
.catalog-header-actions{font-size:14px;line-height:1.5}
.catalog-header-actions svg{width:18px;height:18px;flex-shrink:0}
.catalog-header-actions button{font:inherit;cursor:pointer}
.catalog-header-actions button:disabled{cursor:default}
.catalog-header-actions :is(a,button):focus-visible{outline:3px solid #c90015;outline-offset:3px}
.catalog-intro-actions .clients-primary:disabled{background:#fa8391;border-color:#fa8391;opacity:1}
.catalog-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--clients-line);border-radius:10px;padding:12px 16px;margin-bottom:18px;font-size:13px}
.catalog-status strong{font-weight:650}
.catalog-status>span:last-child{color:var(--clients-muted)}
.catalog-status-dot{width:8px;height:8px;border-radius:50%;background:#2ca25a}
.catalog-status.pending{background:#fffbf2;border-color:#fdd573}
.catalog-status.pending .catalog-status-dot{background:#eb9c00}
.catalog-tabs{display:flex;gap:4px;border-bottom:1px solid var(--clients-line);margin-bottom:16px}
.catalog-tabs button{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:#6d707b;font-size:14px!important;padding:12px 14px;min-height:44px;border-bottom:2px solid transparent;margin-bottom:-1px}
.catalog-tabs button span{font-size:12px;background:#f4f5f7;border-radius:6px;padding:1px 6px}
.catalog-tabs button[aria-selected="true"]{color:#d9204d;border-bottom-color:#e32238;font-weight:650}
.catalog-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.catalog-toolbar .clients-search{max-width:420px;background:#fff}
.catalog-toolbar .clients-search+*{margin-left:auto}
.catalog-category{background:#fff;border:1px solid var(--clients-line);border-radius:13px;margin-bottom:16px;overflow:hidden}
.catalog-category-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #f4f4f7;background:#fdfdfe}
.catalog-category-title{flex:1;min-width:0}
.catalog-category-title h3{font-size:15px;font-weight:650;letter-spacing:-.2px;margin:0}
.catalog-category-title span{font-size:12px;color:var(--clients-muted)}
.catalog-category-actions{display:flex;align-items:center;gap:8px}
.catalog-category.paused .catalog-category-title h3,.catalog-category.paused .catalog-products{opacity:.55}
.catalog-compact{min-height:36px!important;padding:7px 11px!important;font-size:12px!important}
.catalog-order{display:flex;flex-direction:column;gap:2px}
.catalog-order-row{flex-direction:row;align-items:center}
.catalog-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:22px;border:0;border-radius:6px;background:transparent;color:#8b8f9a;font-size:18px!important;line-height:1}
.catalog-icon:hover:not(:disabled){background:#f6f6f8;color:#3e414b}
.catalog-order-row .catalog-icon{height:32px;width:32px}
.catalog-products{list-style:none;margin:0;padding:0}
.catalog-product{display:flex;align-items:center;gap:12px;padding:10px 16px;border-top:1px solid #f6f6f8}
.catalog-product:first-child{border-top:0}
.catalog-product-main{display:flex;align-items:center;gap:13px;flex:1;min-width:0;border:0;background:none;text-align:left;padding:4px;border-radius:8px;color:inherit}
.catalog-product-main:hover{background:#fbfbfd}
.catalog-thumb{width:56px;height:56px;border-radius:10px;background:#f9f0f2;color:#c4415d;display:flex;align-items:center;justify-content:center;font-weight:650;font-size:14px;overflow:hidden;flex-shrink:0}
.catalog-thumb img{width:100%;height:100%;object-fit:cover}
.catalog-product-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.catalog-product-text strong{font-size:14px;font-weight:600}
.catalog-product-text small{color:var(--clients-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.catalog-badge{background:#f5f6f9;color:#5b5f6b}
.catalog-badge svg{width:11px;height:11px}
.catalog-badge-paused{background:#f3f4f6;color:#6d707b}
.catalog-badge-warning{background:#fff5eb;color:#ae4d02}
.catalog-price{display:flex;flex-direction:column;align-items:flex-end;min-width:92px;font-size:14px}
.catalog-price s{font-size:12px;color:#9a9da7}
.catalog-price strong{font-weight:650}
.catalog-product.paused .catalog-product-main,.catalog-product.paused .catalog-price{opacity:.5}
.catalog-empty-row{color:#8b8f9a;font-size:13px;padding:16px;margin:0;list-style:none}
.catalog-switch{position:relative;display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.catalog-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.catalog-switch span{width:36px;height:20px;border-radius:20px;background:#d5d6dd;position:relative;transition:background .15s}
.catalog-switch span::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.catalog-switch input:checked+span{background:#2ca25a}
.catalog-switch input:checked+span::after{transform:translateX(16px)}
.catalog-switch input:focus-visible+span{outline:3px solid #c90015;outline-offset:3px}
.catalog-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
.catalog-group{background:#fff;border:1px solid var(--clients-line);border-radius:13px;padding:16px 18px}
.catalog-group.blocked{border-color:#fdb46f}
.catalog-group header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.catalog-group h3{font-size:14px;font-weight:650;margin:0 0 3px}
.catalog-group header span{font-size:12px;color:var(--clients-muted)}
.catalog-group ul{list-style:none;margin:0;padding:0}
.catalog-group li{display:flex;align-items:center;gap:10px;border-top:1px solid #f6f6f8;padding:2px 0;font-size:13px}
.catalog-group li span:first-child{flex:1}
.catalog-group li small{color:var(--clients-muted);font-size:12px}
.catalog-group li.paused>span,.catalog-group li.paused>small{opacity:.5;text-decoration:line-through}
.catalog-warning{background:#fff7ef;border:1px solid #ffc177;color:#964403;border-radius:8px;padding:9px 12px;font-size:12px!important;margin:6px 0 10px}
.catalog-footnote{font-size:12px;color:#8b8f9a;margin:22px 0 0}
.catalog-link{border:0;background:none;color:#c70e2c;text-decoration:underline;padding:0;font-size:12px}
.catalog-form h3{margin-top:26px}
.catalog-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-size:13px;color:#4a4d58;flex:1}
.catalog-field>span{font-weight:550}
.catalog-dialog textarea{font:inherit;color:#35363e;border:1px solid #e8e8ed;border-radius:8px;background:#fff;padding:10px 12px;resize:vertical}
.catalog-field-row{display:flex;gap:12px}
.catalog-check{display:flex;align-items:center;gap:9px;font-size:13px;min-height:44px;margin-bottom:6px}
.catalog-dialog .catalog-check input{min-height:0;width:18px;height:18px;accent-color:#e32238}
.catalog-dialog input:disabled{background:#f8f8f9;color:#9a9da7}
.catalog-photo{display:flex;gap:16px;align-items:center;margin-bottom:18px}
.catalog-photo>div{display:flex;flex-direction:column;gap:4px;font-size:13px}
.catalog-photo small{color:#8b909b;font-size:12px}
.catalog-photo-preview{width:96px;height:96px;border-radius:12px;background:#f9f0f2;color:#c4415d;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.catalog-photo-preview svg{width:28px;height:28px}
.catalog-photo-preview img{width:100%;height:100%;object-fit:cover}
.catalog-photo-actions{display:flex;gap:8px;margin-top:6px}
.catalog-photo-actions label{cursor:pointer}
.catalog-photo-actions label:focus-within{outline:3px solid #c90015;outline-offset:2px}
.catalog-links{list-style:none;margin:0 0 10px;padding:0;border:1px solid #f2f2f5;border-radius:10px}
.catalog-links li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 8px 14px;border-top:1px solid #f4f4f7}
.catalog-links li:first-child{border-top:0}
.catalog-links strong{display:block;font-size:13px;font-weight:600}
.catalog-links small{font-size:12px;color:#8b909b}
.catalog-link-add{display:flex;gap:8px}
.catalog-link-add select{flex:1;min-width:0}
.catalog-option-head{display:grid;grid-template-columns:1fr 112px 44px 32px;gap:8px;font-size:12px;color:#8b909b;padding:0 2px 4px}
.catalog-options{list-style:none;margin:0 0 10px;padding:0}
.catalog-option{display:grid;grid-template-columns:1fr 112px 44px 32px;gap:8px;align-items:center;margin-bottom:6px}
.catalog-option input[name="option-price"]{text-align:right}
.catalog-option .catalog-icon{height:32px;width:32px}
.catalog-danger{color:#c70e2c!important;border-color:#f395a2!important;margin-left:auto}
.catalog-problems,.catalog-changes{font-size:13px;padding-left:18px;line-height:1.8}
.catalog-problems{color:#964403}
.catalog-product-picker{position:relative;margin-bottom:12px}
.catalog-product-picker .catalog-field{margin-bottom:6px}
.catalog-product-picker .clients-search{background:#fff;border-color:#cfd1d9}
.catalog-dialog .catalog-product-picker .clients-search input{border:0;min-height:42px;padding:0;font-size:13px}
.catalog-dialog .catalog-product-picker .clients-search input:focus-visible{outline:none}
.catalog-product-picker .clients-search:focus-within{outline:3px solid #c90015;outline-offset:2px}
.catalog-picker-results{position:absolute;left:0;right:0;top:100%;z-index:2;list-style:none;margin:4px 0 0;padding:4px;background:#fff;border:1px solid #e8e8ed;border-radius:10px;box-shadow:0 10px 30px #1b1d2622;max-height:280px;overflow-y:auto}
.catalog-picker-results li[data-pick]{display:flex;flex-direction:column;padding:9px 12px;border-radius:7px;cursor:pointer}
.catalog-picker-results li[data-pick]:hover,.catalog-picker-results li[aria-selected="true"]{background:#fff4f7}
.catalog-picker-results strong{font-size:13px;font-weight:600}
.catalog-picker-results small{font-size:12px;color:#8b909b}
.catalog-used{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.catalog-used>li:not(.catalog-empty-row){display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #ebecf1;border-radius:9px;padding:9px 8px 9px 14px}
.catalog-used strong{display:block;font-size:14px;font-weight:600}
.catalog-used small{display:block;font-size:12px;color:#7b7e89}
.catalog-text-button{border:0;background:none;color:#35363e;font-weight:600;font-size:13px!important;min-height:44px;padding:0 12px;border-radius:7px}
.catalog-text-button:hover{background:#f9f9fa;color:#c70e2c}
.catalog-switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #f2f2f5;border-radius:10px;padding:6px 8px 6px 14px;margin:4px 0 6px;font-size:13px;font-weight:550;color:#4a4d58}
.catalog-switch-row small{display:block;font-weight:400;font-size:12px;color:#8b909b}
.catalog-discount{margin:-6px 0 12px;font-size:13px!important;font-weight:600;color:#208449;min-height:0}
.catalog-discount:empty{display:none}
.catalog-discount.invalid{color:#c70e2c;font-weight:500}
.catalog-off{font-size:12px;font-weight:700;color:#208449;background:#eef8f2;border-radius:5px;padding:1px 5px;margin-top:2px}
.catalog-dialog [data-money]{font-variant-numeric:tabular-nums}
@media(max-width:767px){
  .catalog-product{flex-wrap:wrap;padding:10px 12px}
  .catalog-product .catalog-order{display:none}
  .catalog-product-main{flex-basis:calc(100% - 60px)}
  .catalog-price{min-width:0;margin-left:auto;flex-direction:row;gap:8px;align-items:center}
  .catalog-category-head{flex-wrap:wrap;padding:12px}
  .catalog-category-actions{width:100%;justify-content:flex-end}
  .catalog-category-actions .clients-button span{display:none}
  .catalog-toolbar .clients-search{max-width:none;flex-basis:100%}
  .catalog-toolbar .clients-search+*{margin-left:0}
  .catalog-field-row{flex-direction:column;gap:0}
  .catalog-groups{grid-template-columns:1fr}
}
html[data-theme="dark"] :is(.catalog-category,.catalog-group,.catalog-status,.catalog-category-head){background:#1c2029;border-color:#353e4c}
html[data-theme="dark"] .catalog-status.pending{background:#322811;border-color:#715516}
html[data-theme="dark"] :is(.catalog-product,.catalog-group li,.catalog-links li){border-color:#2c3340}
html[data-theme="dark"] .catalog-product-main:hover{background:#232834}
html[data-theme="dark"] .catalog-thumb,html[data-theme="dark"] .catalog-photo-preview{background:#2b2d34;color:#fd6e91}
html[data-theme="dark"] :is(.catalog-badge,.catalog-badge-paused,.catalog-tabs button span){background:#2b313d;color:#a6b7d5}
html[data-theme="dark"] .catalog-tabs button{color:#a9b1bf}
html[data-theme="dark"] .catalog-tabs button[aria-selected="true"]{color:#ff6782}
html[data-theme="dark"] .catalog-warning{background:#382613;border-color:#714716;color:#ffb35c}
html[data-theme="dark"] .catalog-dialog textarea{background:#1c293e;color:#edf0f6;border-color:#414d60}
html[data-theme="dark"] :is(.catalog-picker-results,.catalog-product-picker .clients-search){background:#1c293e;border-color:#414d60}
html[data-theme="dark"] .catalog-picker-results li[aria-selected="true"],html[data-theme="dark"] .catalog-picker-results li[data-pick]:hover{background:#2b2d34}
html[data-theme="dark"] .catalog-used>li:not(.catalog-empty-row){border-color:#414d60}
html[data-theme="dark"] .catalog-text-button{color:#edf0f6}
html[data-theme="dark"] .catalog-switch-row{border-color:#414d60;color:#e5ecf6}
html[data-theme="dark"] .catalog-discount{color:#55d984}
html[data-theme="dark"] .catalog-off{background:#173d27;color:#6fe79a}
/* Read-only (atendente): status visible, nothing clickable. */
.catalog-switch:has(input:disabled),.catalog-switch input:disabled{cursor:default}
.catalog-switch input:disabled+span{opacity:.6}
div.catalog-product-main:hover{background:none}
html[data-theme="dark"] div.catalog-product-main:hover{background:none}
