/* Layout and accessibility only: the installation owns all visual tokens. */
.ecc-editor .ecc-skip-content { position:fixed;left:16px;top:-100px;z-index:100001;padding:12px 18px;background:var(--ecc-surface);color:var(--ecc-text);border-radius:var(--ecc-radius); }
.ecc-editor .ecc-skip-content:focus { top:16px; }
body.ecc-editor-app .ecc-nav-group { display:grid;gap:4px;min-width:0; }
body.ecc-editor-app .ecc-nav-group__title { margin:16px 14px 4px;font-family:var(--ecc-font-interface,var(--ecc-font-body));font-size:.75rem;font-weight:700;letter-spacing:.08em;color:var(--ecc-secondary-contrast,#fff); }
body.ecc-editor-app .ecc-stats { gap:12px; }
body.ecc-editor-app .ecc-stats article { margin-bottom:0;min-width:0; }
body.ecc-editor-app .ecc-catalog-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr)); }
body.ecc-editor-app .ecc-catalog-card { min-width:0;overflow-wrap:anywhere; }
body.ecc-editor-app .ecc-workspace :is(.ecc-form-grid,.ecc-editor-section,.ecc-panel) { min-width:0; }
body.ecc-app :is(.ecc-store,.ecc-pos,.ecc-operations) :is(a,summary):focus-visible { outline:3px solid var(--ecc-accent);outline-offset:3px; }
.ecc-store :is([data-categories] button,.ecc-quantity button),.ecc-pos :is([data-pos-categories] button,.ecc-pos-product button,.ecc-quantity button),.ecc-tables .ecc-quantity button { min-height:44px!important;min-width:44px; }
.ecc-store .ecc-cart-line { flex-wrap:wrap;gap:12px; }
.ecc-store .ecc-cart-line > div:first-child { flex:1 1 160px;overflow-wrap:anywhere; }
.ecc-store .ecc-cart { overscroll-behavior:contain;padding-bottom:max(20px,env(safe-area-inset-bottom)); }
.ecc-store :is(.ecc-store__identity,.ecc-store__identity>span,.ecc-product-detail__info) { min-width:0;overflow-wrap:anywhere; }
.ecc-store .ecc-store__nav a { display:inline-flex;align-items:center;min-height:44px; }
.ecc-store .ecc-store__pagination { flex-wrap:wrap; }
.ecc-store .ecc-checkout-summary strong,.ecc-pos .ecc-pos__totals strong { font-variant-numeric:tabular-nums;white-space:nowrap; }
.ecc-pos :is(.ecc-pos__catalog,.ecc-pos__cart,.ecc-payment-row,.ecc-payment-row label),.ecc-tables .ecc-pos__catalog { min-width:0; }
.ecc-pos .ecc-pos__tabs button { min-height:44px; }
.ecc-operations > nav { flex-wrap:wrap;gap:8px; }
.ecc-operations > nav a { display:inline-flex;align-items:center;min-height:44px;text-decoration:none; }
.ecc-operations :is(.ecc-cash-order,.ecc-kitchen-ticket,.ecc-print-job) { overflow-wrap:anywhere; }
.ecc-operations :is(.ecc-canonical-ticket__compact,.ecc-canonical-ticket__text) > summary { min-height:44px;padding-block:10px; }
@media(min-width:1024px) {
 body.ecc-editor-app .ecc-nav { position:sticky;top:0;height:100dvh;overflow-y:auto;overscroll-behavior:contain; }
}
@media(max-width:1023px) {
 body.ecc-editor-app .ecc-nav nav { display:grid!important; }
 body.ecc-editor-app .ecc-nav-group { width:100%; }
 body.ecc-editor-app .ecc-nav nav :is(button,a) { white-space:normal; }
}
@media(max-width:600px) {
 body.ecc-app :is(.ecc-editor,.ecc-store,.ecc-pos) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px!important; }
 .ecc-pos > header { flex-wrap:wrap; }
 .ecc-pos .ecc-pos__tabs { width:100%; }
 .ecc-pos .ecc-pos__tabs button { flex:1 1 140px; }
 .ecc-pos .ecc-payment-row { grid-template-columns:minmax(0,1fr); }
 .ecc-pos .ecc-payment-row label:last-of-type { grid-column:auto; }
 .ecc-store .ecc-store__head { grid-template-columns:minmax(0,1fr) auto; }
 .ecc-store .ecc-store__head-actions { min-width:0; }
 .ecc-store .ecc-store__cart-trigger { padding-inline:10px; }
 body.ecc-editor-app .ecc-stats span { overflow-wrap:anywhere; }
}
@media(prefers-reduced-motion:reduce) {
 .ecc-pos *, .ecc-operations * { scroll-behavior:auto!important;transition:none!important;animation:none!important; }
}

/* Categorías del pedido en mesa, independientes del rubro y la identidad. */
.ecc-tables [data-pos-products].ecc-table-categories { display:grid;grid-template-columns:minmax(0,1fr);gap:12px; }
.ecc-tables .ecc-table-category { min-width:0;border:1px solid var(--ecc-border);border-radius:var(--ecc-radius);background:var(--ecc-surface);color:var(--ecc-text); }
.ecc-tables .ecc-table-category > summary { display:flex;align-items:center;gap:12px;min-height:52px;padding:14px 16px;cursor:pointer;font-weight:700;list-style:none; }
.ecc-tables .ecc-table-category > summary::-webkit-details-marker { display:none; }
.ecc-tables .ecc-table-category > summary small { margin-left:auto;font-weight:400;white-space:nowrap; }
.ecc-tables .ecc-table-category > summary::after { content:'+';font-size:1.3rem; }
.ecc-tables .ecc-table-category[open] > summary::after { content:'−'; }
.ecc-tables .ecc-table-category[open] > summary { border-bottom:1px solid var(--ecc-border); }
.ecc-tables .ecc-table-category > .ecc-products { padding:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr)); }
.ecc-editor.ecc-tables .ecc-tables__actions button.ecc-button--quiet { background:var(--ecc-surface)!important;color:var(--ecc-text)!important;border:1px solid var(--ecc-border)!important;box-shadow:none; }
.ecc-tables .ecc-tables__actions { gap:10px; }

/* Grupos de navegación: encabezados desplegables y opciones subordinadas. */
body.ecc-editor-app details.ecc-nav-group { display:block;margin-top:10px;border:1px solid color-mix(in srgb,var(--ecc-secondary-contrast,#fff) 25%,transparent);border-radius:var(--ecc-radius); }
body.ecc-editor-app .ecc-nav-group > summary.ecc-nav-group__title { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:0;padding:12px;font-size:.9rem;font-weight:800;letter-spacing:.02em;cursor:pointer;list-style:none;background:color-mix(in srgb,var(--ecc-secondary-contrast,#fff) 10%,transparent);border-radius:var(--ecc-radius); }
body.ecc-editor-app .ecc-nav-group > summary::-webkit-details-marker { display:none; }
body.ecc-editor-app .ecc-nav-group > summary::after { content:'';flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:4px; }
body.ecc-editor-app .ecc-nav-group[open] > summary::after { transform:rotate(225deg); }
body.ecc-editor-app .ecc-nav-group > summary:focus-visible { outline:3px solid var(--ecc-accent);outline-offset:2px; }
body.ecc-editor-app .ecc-nav-group__items { display:grid;gap:4px;padding:6px; }

.ecc-tables .ecc-table-join { margin-bottom:18px;padding:12px;border:1px solid var(--ecc-border);border-radius:var(--ecc-radius);background:var(--ecc-surface-alt);color:var(--ecc-text); }
.ecc-tables .ecc-table-join > summary { min-height:44px;cursor:pointer;font-weight:700;padding:10px; }
.ecc-tables .ecc-table-join__choices { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px; }
.ecc-tables .ecc-table-join__choices label { display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;border:1px solid var(--ecc-border);border-radius:var(--ecc-radius); }
.ecc-tables .ecc-table-join input[name=guest_count] { max-width:180px; }
.ecc-editor.ecc-tables .ecc-tables__actions button.ecc-button--quiet { background:var(--ecc-button-secondary-background,var(--ecc-secondary))!important;color:var(--ecc-button-secondary-color,var(--ecc-secondary-contrast,#fff))!important; }
